hezarfen_backend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Rate limiting, hand-rolled on a fixed 60-second window — no extra crates, |
| 2 | //! and nothing on the request path but a mutex (the one background task below |
| 3 | //! only shares counters). The counter is keyed generically: by client IP for the |
| 4 | //! middleware tiers below, by user id for the per-user chatbot tier |
| 5 | //! ([`UserRateLimiter`]), which cannot be middleware because the caller is only |
| 6 | //! known once `CurrentUser` has run. |
| 7 | //! |
| 8 | //! Two IP tiers are wired in: a strict one on the credential endpoints |
| 9 | //! (`/auth/login`, `/auth/register`) in [`crate::web::auth::routes`] to blunt |
| 10 | //! brute-force and enumeration attempts, and a generous catch-all over the |
| 11 | //! whole API in [`crate::build_router`]. Those two, and the per-user chat tier, |
| 12 | //! are all configured per-minute via environment variables (see |
| 13 | //! [`crate::config::Config`]); a limit of `0` switches that tier off entirely, |
| 14 | //! which is also what the test suites use to stay unaffected. |
| 15 | //! |
| 16 | //! Requests are keyed by client IP. By default that is the peer address of the |
| 17 | //! TCP connection ([`ConnectInfo`]). Behind a reverse proxy every connection |
| 18 | //! shows the proxy's address, so set `TRUST_PROXY=true` to key on the |
| 19 | //! **rightmost entry of the last** `X-Forwarded-For` header instead — that hop |
| 20 | //! is appended by the nearest proxy and is the only one the client cannot |
| 21 | //! forge. Both halves matter: a proxy may append its hop as a separate header |
| 22 | //! line rather than into the client's, and reading only the first line would |
| 23 | //! hand the key straight back to the client. Never enable it when clients can |
| 24 | //! reach the server directly: the header is then entirely attacker-controlled |
| 25 | //! and the limiter is trivially bypassed. |
| 26 | //! |
| 27 | //! Fixed windows admit up to a 2× burst straddling a window boundary. That is |
| 28 | //! an accepted trade-off for an implementation simple enough to read in one |
| 29 | //! sitting; argon2 keeps each allowed login attempt expensive anyway. |
| 30 | //! |
| 31 | //! # Bounding the bucket map |
| 32 | //! |
| 33 | //! One client, one bucket, so the map is only as bounded as the client set — |
| 34 | //! and an IPv6 /64 is not bounded at all. At [`crate::constant::PURGE_AT`] a |
| 35 | //! new key first sweeps out the lapsed windows and then, if that frees |
| 36 | //! nothing, evicts down to three quarters of the cap ([`evict_cheapest`]). |
| 37 | //! Exhausted buckets are exempt from eviction: they are the only ones actually |
| 38 | //! refusing anyone, and freeing one *raises* the limit for a client that had |
| 39 | //! reached it. When every bucket is exhausted there is nothing to evict and |
| 40 | //! the map stays at the cap; the unknown key is then metered against one shared |
| 41 | //! overflow counter ([`crate::constant::RATE_LIMIT_OVERFLOW_MAX`] per window, |
| 42 | //! for every keyless client together) instead of getting a bucket. |
| 43 | //! |
| 44 | //! Be precise about what that buys, because it is not everyone. A client |
| 45 | //! **already in the map** keeps its own counter throughout: no flood can starve |
| 46 | //! it, evict it, or spend its budget, which is the property worth having. |
| 47 | //! A **newcomer during** the flood is a different story — it never gets a |
| 48 | //! bucket while the map stays saturated, so *all* of its traffic (not just its |
| 49 | //! first request) comes out of the one shared budget, and once that budget is |
| 50 | //! spent every further newcomer is refused. An attacker who first fills the map |
| 51 | //! and then burns the shared budget therefore does `429` every newcomer for the |
| 52 | //! rest of the window; `tests/rate_limit.rs` asserts exactly that, ending on a |
| 53 | //! refused `newcomer-last`. |
| 54 | //! |
| 55 | //! That is the accepted trade, not an oversight. The alternative — admitting |
| 56 | //! keyless clients freely — makes a filled map the way to buy unmetered |
| 57 | //! throughput from fresh keys, which is an unbounded bypass rather than a |
| 58 | //! bounded outage, and refusing them outright would hand the attacker the same |
| 59 | //! `429`-the-newcomers result for free. The shared budget costs an attacker the |
| 60 | //! flood *plus* [`crate::constant::RATE_LIMIT_OVERFLOW_MAX`] requests a minute, |
| 61 | //! every minute, to keep it going. |
| 62 | //! |
| 63 | //! # The shared window |
| 64 | //! |
| 65 | //! The counters above are per process. [`RateLimiter::share`] also carries them |
| 66 | //! through the process: a background task folds each bucket's new admits into |
| 67 | //! one shared row per tier + client + wall window (`rate_limit`, see |
| 68 | //! [`crate::constant::RATE_LIMIT_TABLE`]) every |
| 69 | //! [`crate::constant::RATE_SYNC_INTERVAL_SECS`], and the stored total that |
| 70 | //! comes back caps what the local bucket admits for the rest of that window — |
| 71 | //! so a restart mid-window does not hand every client a fresh budget. |
| 72 | //! |
| 73 | //! Admission itself stays in memory and stays synchronous — no request ever |
| 74 | //! waits on the database to be let in, and a database that is down or slow |
| 75 | //! costs nothing but the sharing (the tiers fall back to their local budgets |
| 76 | //! rather than failing anyone). The cost is a lag: a process that has just |
| 77 | //! started can spend up to its own full budget for one interval before the |
| 78 | //! shared total tells it to stop. |
| 79 | |
| 80 | use HashMap; |
| 81 | use Hash; |
| 82 | use ; |
| 83 | use ; |
| 84 | use Duration; |
| 85 | |
| 86 | use ; |
| 87 | use Next; |
| 88 | use Response; |
| 89 | // tokio's `Instant` wraps `std::time::Instant` in production but obeys |
| 90 | // `tokio::time::pause`/`advance` under `start_paused` tests, which makes the |
| 91 | // window arithmetic below testable without sleeping. |
| 92 | use Instant; |
| 93 | |
| 94 | use crate |
| 95 | |
| 96 | |
| 97 | ; |
| 98 | use crateDatabase; |
| 99 | use crateTimestamp; |
| 100 | use crateAppError; |
| 101 | use crateMetrics; |
| 102 | |
| 103 | /// Per-IP rate-limit knobs, sourced from the environment (see `.env.example`) and |
| 104 | /// carried in [`crate::state::AppState`]. A `0` limit disables that tier. |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | /// A fixed-window counter per caller `K`: `max` requests per `window`, shared |
| 129 | /// across clones (clones see the same buckets, so one limiter can be captured |
| 130 | /// by a middleware closure and cloned per request for free). |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | /// The per-user tier, keyed by user id instead of client IP. Lives in |
| 223 | /// [`crate::state::AppState`] and is called from inside a handler, after |
| 224 | /// `CurrentUser` has identified the caller. |
| 225 | pub type UserRateLimiter = ; |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | |
| 333 | |
| 334 | |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 | |
| 348 | |
| 349 | |
| 350 | |
| 351 | |
| 352 | |
| 353 | |
| 354 | |
| 355 | |
| 356 | |
| 357 | |
| 358 | |
| 359 | |
| 360 | |
| 361 | |
| 362 | |
| 363 | /// Drop buckets until at most `target` remain, cheapest first, and **never** a |
| 364 | /// bucket that has spent `max` or more. |
| 365 | /// |
| 366 | /// The exemption is the whole point. An exhausted bucket is the only thing in |
| 367 | /// here actually refusing anyone, and evicting it hands that refusal straight |
| 368 | /// back to whoever earned it. Cheapest-first alone does not protect it: the |
| 369 | /// cutoff is a `<=`, so ties go arbitrarily, and an attacker who drives every |
| 370 | /// flood key to exactly the victim's spend puts the victim inside the tie band |
| 371 | /// (measured: a victim at `max` freed after ~12.5k flood keys). Exhaustion, |
| 372 | /// not rank, is what decides. |
| 373 | /// |
| 374 | /// Among the rest, least-spent-first: those are the throwaway keys a flood is |
| 375 | /// made of, and evicting one gives away only what it had spent. Evicting by |
| 376 | /// age would instead pick out long-running buckets, which is backwards. |
| 377 | /// |
| 378 | /// One pass over the map, and only when a new key arrives at the cap: the |
| 379 | /// target sits a quarter below it, so the sweep is amortised over that many |
| 380 | /// further inserts and the common path stays a single hash lookup. |
| 381 | |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | |
| 397 | |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | /// One bucket's report, taken while the map was locked so the round can run |
| 408 | /// its query without holding it. `counted` is the `count` the delta was read |
| 409 | /// from — a request admitted mid-round bumps `count` past it and is simply |
| 410 | /// carried into the next round. |
| 411 | |
| 412 | |
| 413 | |
| 414 | |
| 415 | |
| 416 | |
| 417 | |
| 418 | |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | |
| 427 | |
| 428 | |
| 429 | |
| 430 | |
| 431 | |
| 432 | |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | |
| 442 | |
| 443 | |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | |
| 457 | |
| 458 | |
| 459 | |
| 460 | |
| 461 | |
| 462 | |
| 463 | |
| 464 | |
| 465 | |
| 466 | |
| 467 | |
| 468 | |
| 469 | |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | |
| 483 | |
| 484 | |
| 485 | |
| 486 | |
| 487 | |
| 488 | |
| 489 | |
| 490 | |
| 491 | |
| 492 | /// Fold every live bucket's new admits into their shared rows and take the |
| 493 | /// window's totals back. |
| 494 | /// |
| 495 | /// The whole round is one statement: `INSERT … ON CONFLICT (id) DO UPDATE SET |
| 496 | /// hits = rate_limit.hits + EXCLUDED.hits RETURNING id, hits`, so a fold is |
| 497 | /// atomic — the old engine could fail one bucket's statement inside a round, |
| 498 | /// Postgres cannot fail half a statement. A round that fails (deadline, |
| 499 | /// outage) lands nothing: every bucket keeps its delta unreported and the |
| 500 | /// next round (2s later) carries it, which is why no retry loop is needed |
| 501 | /// here. Retrying the *statement* would double-apply the hits that landed, |
| 502 | /// since the fold accumulates — skipping a round is the only honest failure. |
| 503 | async |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |
| 513 | |
| 514 | |
| 515 | |
| 516 | |
| 517 | |
| 518 | |
| 519 | |
| 520 | |
| 521 | |
| 522 | |
| 523 | |
| 524 | |
| 525 | |
| 526 | |
| 527 | |
| 528 | |
| 529 | |
| 530 | |
| 531 | |
| 532 | |
| 533 | |
| 534 | |
| 535 | |
| 536 | |
| 537 | |
| 538 | |
| 539 | |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | |
| 556 | |
| 557 | |
| 558 | |
| 559 | |
| 560 | |
| 561 | |
| 562 | |
| 563 | |
| 564 | |
| 565 | |
| 566 | |
| 567 | |
| 568 | |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | /// The wall-clock window a shared row is keyed by, aligned so a restarted |
| 597 | /// process lands on the same one — the local windows cannot be used for this, |
| 598 | /// since each starts whenever that client's first request happened to land. |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | /// The shared row's key: tier, client, window. The client part is hashed |
| 605 | /// because it is a raw IP or user id — free of the `:` and `_` that would |
| 606 | /// otherwise let one client's key collide with another's by construction. |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | /// Lowercase hex of a byte slice, for [`row_key`]. |
| 614 | ; |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | /// Run one sync statement under a deadline. Postgres fails a dead connection |
| 623 | /// instead of parking the query, but a slow or overloaded server can still |
| 624 | /// stall a round past what the sharing can afford — every tier's budget rides |
| 625 | /// this one task, so a wedged round would stall all of them. A dropped round |
| 626 | /// leaves its deltas unreported and the next round carries them. |
| 627 | async |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | |
| 637 | /// Resolve the client IP a request is billed against. |
| 638 | /// |
| 639 | /// With `trust_proxy`, prefer the rightmost entry of the *last* |
| 640 | /// `X-Forwarded-For` header — appended by the nearest (trusted) proxy, unlike |
| 641 | /// the left entries and the earlier header lines, which arrive |
| 642 | /// attacker-controlled (a proxy that appends its own header line instead of |
| 643 | /// extending the client's leaves the client's line first). Earlier lines are |
| 644 | /// only consulted if the last one is empty or unparseable; if none yield an |
| 645 | /// address (or the header is missing) fall back to the connection's peer |
| 646 | /// address. `oneshot`-driven routers carry no [`ConnectInfo`]; those requests |
| 647 | /// share the unspecified-address bucket. |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | |
| 673 | |
| 674 | |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | |
| 693 | |
| 694 | |
| 695 | |
| 696 | |
| 697 | |
| 698 | |
| 699 | |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | |
| 717 | |
| 718 | |
| 719 | |
| 720 | |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | |
| 783 | |
| 784 | |
| 785 | |
| 786 | |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | |
| 801 | |
| 802 | |
| 803 | |
| 804 | |
| 805 | |
| 806 | |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | |
| 827 | |
| 828 | |
| 829 | |
| 830 | |
| 831 | |
| 832 | |
| 833 | |
| 834 | |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | |
| 840 | |
| 841 | |
| 842 | |
| 843 | |
| 844 | |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | |
| 851 | |
| 852 | |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | |
| 860 | |
| 861 | |
| 862 | |
| 863 | |
| 864 | |
| 865 | |
| 866 | |
| 867 | |
| 868 | |
| 869 | |
| 870 | |
| 871 | |
| 872 | |
| 873 | |
| 874 | |
| 875 | |
| 876 | |
| 877 | |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | |
| 883 | |
| 884 | |
| 885 | |
| 886 | |
| 887 | |
| 888 | |
| 889 | |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | |
| 897 | |
| 898 | |
| 899 | |
| 900 | |
| 901 | |
| 902 | |
| 903 | |
| 904 | |
| 905 | |
| 906 | |
| 907 | |
| 908 | |
| 909 | |
| 910 | |
| 911 | |
| 912 | |
| 913 | |
| 914 | |
| 915 | |
| 916 | |
| 917 | |
| 918 | |
| 919 | |
| 920 | |
| 921 | |
| 922 | |
| 923 | |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | |
| 936 | |
| 937 | |
| 938 | |
| 939 | |
| 940 | |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | |
| 947 | |
| 948 | |
| 949 | |
| 950 | |
| 951 | |
| 952 | |
| 953 | |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | |
| 971 | |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | |
| 995 | |
| 996 | |
| 997 | |
| 998 |