data-structure-typed 2.5.3 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +7 -2
- package/.github/workflows/release-package.yml +9 -2
- package/.husky/pre-commit +3 -0
- package/CHANGELOG.md +1 -1
- package/MIGRATION.md +48 -0
- package/README.md +20 -2
- package/README_CN.md +20 -2
- package/SPECIFICATION.md +24 -0
- package/SPECIFICATION.zh-CN.md +24 -0
- package/dist/cjs/binary-tree.cjs +1897 -19
- package/dist/cjs/graph.cjs +174 -0
- package/dist/cjs/hash.cjs +33 -0
- package/dist/cjs/heap.cjs +71 -0
- package/dist/cjs/index.cjs +2383 -3
- package/dist/cjs/linked-list.cjs +224 -2
- package/dist/cjs/matrix.cjs +24 -0
- package/dist/cjs/priority-queue.cjs +71 -0
- package/dist/cjs/queue.cjs +221 -1
- package/dist/cjs/stack.cjs +59 -0
- package/dist/cjs/trie.cjs +62 -0
- package/dist/cjs-legacy/binary-tree.cjs +1897 -19
- package/dist/cjs-legacy/graph.cjs +174 -0
- package/dist/cjs-legacy/hash.cjs +33 -0
- package/dist/cjs-legacy/heap.cjs +71 -0
- package/dist/cjs-legacy/index.cjs +2383 -3
- package/dist/cjs-legacy/linked-list.cjs +224 -2
- package/dist/cjs-legacy/matrix.cjs +24 -0
- package/dist/cjs-legacy/priority-queue.cjs +71 -0
- package/dist/cjs-legacy/queue.cjs +221 -1
- package/dist/cjs-legacy/stack.cjs +59 -0
- package/dist/cjs-legacy/trie.cjs +62 -0
- package/dist/esm/binary-tree.mjs +1897 -19
- package/dist/esm/graph.mjs +174 -0
- package/dist/esm/hash.mjs +33 -0
- package/dist/esm/heap.mjs +71 -0
- package/dist/esm/index.mjs +2383 -3
- package/dist/esm/linked-list.mjs +224 -2
- package/dist/esm/matrix.mjs +24 -0
- package/dist/esm/priority-queue.mjs +71 -0
- package/dist/esm/queue.mjs +221 -1
- package/dist/esm/stack.mjs +59 -0
- package/dist/esm/trie.mjs +62 -0
- package/dist/esm-legacy/binary-tree.mjs +1897 -19
- package/dist/esm-legacy/graph.mjs +174 -0
- package/dist/esm-legacy/hash.mjs +33 -0
- package/dist/esm-legacy/heap.mjs +71 -0
- package/dist/esm-legacy/index.mjs +2383 -3
- package/dist/esm-legacy/linked-list.mjs +224 -2
- package/dist/esm-legacy/matrix.mjs +24 -0
- package/dist/esm-legacy/priority-queue.mjs +71 -0
- package/dist/esm-legacy/queue.mjs +221 -1
- package/dist/esm-legacy/stack.mjs +59 -0
- package/dist/esm-legacy/trie.mjs +62 -0
- package/dist/types/data-structures/base/iterable-element-base.d.ts +17 -0
- package/dist/types/data-structures/base/linear-base.d.ts +6 -0
- package/dist/types/data-structures/binary-tree/avl-tree.d.ts +36 -0
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +42 -0
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +75 -0
- package/dist/types/data-structures/binary-tree/bst.d.ts +72 -0
- package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +57 -0
- package/dist/types/data-structures/binary-tree/segment-tree.d.ts +18 -0
- package/dist/types/data-structures/binary-tree/tree-map.d.ts +375 -0
- package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +389 -0
- package/dist/types/data-structures/binary-tree/tree-multi-set.d.ts +330 -0
- package/dist/types/data-structures/binary-tree/tree-set.d.ts +438 -0
- package/dist/types/data-structures/graph/directed-graph.d.ts +30 -0
- package/dist/types/data-structures/graph/undirected-graph.d.ts +27 -0
- package/dist/types/data-structures/hash/hash-map.d.ts +33 -0
- package/dist/types/data-structures/heap/heap.d.ts +42 -0
- package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +75 -2
- package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +45 -0
- package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +54 -0
- package/dist/types/data-structures/matrix/matrix.d.ts +24 -0
- package/dist/types/data-structures/queue/deque.d.ts +90 -1
- package/dist/types/data-structures/queue/queue.d.ts +36 -0
- package/dist/types/data-structures/stack/stack.d.ts +30 -0
- package/dist/types/data-structures/trie/trie.d.ts +36 -0
- package/dist/umd/data-structure-typed.js +2383 -3
- package/dist/umd/data-structure-typed.min.js +3 -3
- package/docs-site-docusaurus/docs/api/classes/AVLTree.md +108 -108
- package/docs-site-docusaurus/docs/api/classes/BST.md +101 -101
- package/docs-site-docusaurus/docs/api/classes/BinaryIndexedTree.md +13 -13
- package/docs-site-docusaurus/docs/api/classes/BinaryTree.md +66 -66
- package/docs-site-docusaurus/docs/api/classes/Deque.md +235 -51
- package/docs-site-docusaurus/docs/api/classes/DirectedGraph.md +21 -21
- package/docs-site-docusaurus/docs/api/classes/DoublyLinkedList.md +231 -67
- package/docs-site-docusaurus/docs/api/classes/FibonacciHeap.md +9 -9
- package/docs-site-docusaurus/docs/api/classes/FibonacciHeapNode.md +1 -1
- package/docs-site-docusaurus/docs/api/classes/HashMap.md +14 -14
- package/docs-site-docusaurus/docs/api/classes/Heap.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/IterableElementBase.md +83 -13
- package/docs-site-docusaurus/docs/api/classes/LinearBase.md +124 -20
- package/docs-site-docusaurus/docs/api/classes/LinearLinkedBase.md +140 -32
- package/docs-site-docusaurus/docs/api/classes/LinkedHashMap.md +30 -26
- package/docs-site-docusaurus/docs/api/classes/LinkedListQueue.md +159 -51
- package/docs-site-docusaurus/docs/api/classes/MapGraph.md +20 -20
- package/docs-site-docusaurus/docs/api/classes/Matrix.md +23 -23
- package/docs-site-docusaurus/docs/api/classes/MaxHeap.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/MaxPriorityQueue.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/MinHeap.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/MinPriorityQueue.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/PriorityQueue.md +117 -34
- package/docs-site-docusaurus/docs/api/classes/Queue.md +142 -34
- package/docs-site-docusaurus/docs/api/classes/RedBlackTree.md +117 -117
- package/docs-site-docusaurus/docs/api/classes/SegmentTree.md +8 -8
- package/docs-site-docusaurus/docs/api/classes/SinglyLinkedList.md +158 -50
- package/docs-site-docusaurus/docs/api/classes/SkipList.md +21 -21
- package/docs-site-docusaurus/docs/api/classes/Stack.md +108 -26
- package/docs-site-docusaurus/docs/api/classes/TreeMap.md +33 -33
- package/docs-site-docusaurus/docs/api/classes/TreeMultiMap.md +75 -39
- package/docs-site-docusaurus/docs/api/classes/TreeSet.md +301 -39
- package/docs-site-docusaurus/docs/api/classes/Trie.md +110 -28
- package/docs-site-docusaurus/docs/api/classes/UndirectedGraph.md +20 -20
- package/jest.integration.config.js +1 -2
- package/package.json +51 -50
- package/src/common/error.ts +15 -32
- package/src/common/index.ts +0 -3
- package/src/data-structures/base/iterable-element-base.ts +32 -3
- package/src/data-structures/base/linear-base.ts +13 -36
- package/src/data-structures/binary-tree/avl-tree.ts +31 -493
- package/src/data-structures/binary-tree/binary-indexed-tree.ts +47 -530
- package/src/data-structures/binary-tree/binary-tree.ts +326 -1236
- package/src/data-structures/binary-tree/bst.ts +158 -1010
- package/src/data-structures/binary-tree/red-black-tree.ts +451 -1233
- package/src/data-structures/binary-tree/segment-tree.ts +73 -333
- package/src/data-structures/binary-tree/tree-map.ts +462 -4749
- package/src/data-structures/binary-tree/tree-multi-map.ts +310 -4530
- package/src/data-structures/binary-tree/tree-multi-set.ts +300 -3652
- package/src/data-structures/binary-tree/tree-set.ts +437 -4443
- package/src/data-structures/graph/abstract-graph.ts +98 -167
- package/src/data-structures/graph/directed-graph.ts +137 -532
- package/src/data-structures/graph/map-graph.ts +0 -3
- package/src/data-structures/graph/undirected-graph.ts +132 -484
- package/src/data-structures/hash/hash-map.ts +154 -549
- package/src/data-structures/heap/heap.ts +200 -753
- package/src/data-structures/linked-list/doubly-linked-list.ts +153 -809
- package/src/data-structures/linked-list/singly-linked-list.ts +122 -749
- package/src/data-structures/linked-list/skip-linked-list.ts +211 -864
- package/src/data-structures/matrix/matrix.ts +179 -494
- package/src/data-structures/matrix/navigator.ts +0 -1
- package/src/data-structures/priority-queue/max-priority-queue.ts +1 -6
- package/src/data-structures/priority-queue/min-priority-queue.ts +6 -11
- package/src/data-structures/priority-queue/priority-queue.ts +1 -2
- package/src/data-structures/queue/deque.ts +241 -807
- package/src/data-structures/queue/queue.ts +102 -589
- package/src/data-structures/stack/stack.ts +76 -475
- package/src/data-structures/trie/trie.ts +98 -592
- package/src/types/common.ts +0 -10
- package/src/types/data-structures/binary-tree/bst.ts +0 -7
- package/src/types/data-structures/binary-tree/red-black-tree.ts +0 -1
- package/src/types/data-structures/graph/abstract-graph.ts +0 -2
- package/src/types/data-structures/hash/hash-map.ts +0 -3
- package/src/types/data-structures/hash/index.ts +0 -1
- package/src/types/data-structures/matrix/navigator.ts +0 -2
- package/src/types/utils/utils.ts +0 -7
- package/src/types/utils/validate-type.ts +0 -7
- package/src/utils/number.ts +0 -2
- package/src/utils/utils.ts +0 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -392,6 +392,35 @@ var IterableElementBase = class {
|
|
|
392
392
|
for (const ele of this) if (ele === element) return true;
|
|
393
393
|
return false;
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Check whether a value exists (Array-compatible alias for `has`).
|
|
397
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
398
|
+
* @param element - Element to search for (uses `===`).
|
|
399
|
+
* @returns `true` if found.
|
|
400
|
+
*/
|
|
401
|
+
includes(element) {
|
|
402
|
+
return this.has(element);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Return an iterator of `[index, value]` pairs (Array-compatible).
|
|
406
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
407
|
+
*/
|
|
408
|
+
*entries() {
|
|
409
|
+
let index = 0;
|
|
410
|
+
for (const value of this) {
|
|
411
|
+
yield [index++, value];
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Return an iterator of numeric indices (Array-compatible).
|
|
416
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
417
|
+
*/
|
|
418
|
+
*keys() {
|
|
419
|
+
let index = 0;
|
|
420
|
+
for (const _ of this) {
|
|
421
|
+
yield index++;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
395
424
|
/**
|
|
396
425
|
* Reduces all elements to a single accumulated value.
|
|
397
426
|
*
|
|
@@ -702,6 +731,16 @@ var LinearBase = class _LinearBase extends IterableElementBase {
|
|
|
702
731
|
}
|
|
703
732
|
return this;
|
|
704
733
|
}
|
|
734
|
+
/**
|
|
735
|
+
* Return a new instance of the same type with elements in reverse order (non-mutating).
|
|
736
|
+
* @remarks Provided for familiarity when migrating from Array (ES2023 `toReversed`). Time O(n), Space O(n).
|
|
737
|
+
* @returns A new reversed instance.
|
|
738
|
+
*/
|
|
739
|
+
toReversed() {
|
|
740
|
+
const cloned = this.clone();
|
|
741
|
+
cloned.reverse();
|
|
742
|
+
return cloned;
|
|
743
|
+
}
|
|
705
744
|
};
|
|
706
745
|
var LinearLinkedBase = class extends LinearBase {
|
|
707
746
|
static {
|
|
@@ -1074,6 +1113,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1074
1113
|
|
|
1075
1114
|
|
|
1076
1115
|
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1077
1119
|
|
|
1078
1120
|
|
|
1079
1121
|
|
|
@@ -1123,6 +1165,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1123
1165
|
|
|
1124
1166
|
|
|
1125
1167
|
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1126
1171
|
|
|
1127
1172
|
|
|
1128
1173
|
|
|
@@ -1223,6 +1268,12 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1223
1268
|
|
|
1224
1269
|
|
|
1225
1270
|
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1226
1277
|
|
|
1227
1278
|
|
|
1228
1279
|
|
|
@@ -1298,6 +1349,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1298
1349
|
|
|
1299
1350
|
|
|
1300
1351
|
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1301
1355
|
|
|
1302
1356
|
|
|
1303
1357
|
|
|
@@ -1362,6 +1416,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1362
1416
|
|
|
1363
1417
|
|
|
1364
1418
|
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1365
1422
|
|
|
1366
1423
|
|
|
1367
1424
|
|
|
@@ -1433,6 +1490,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1433
1490
|
|
|
1434
1491
|
|
|
1435
1492
|
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
|
|
1436
1496
|
|
|
1437
1497
|
|
|
1438
1498
|
|
|
@@ -1489,6 +1549,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1489
1549
|
|
|
1490
1550
|
|
|
1491
1551
|
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1492
1555
|
|
|
1493
1556
|
|
|
1494
1557
|
|
|
@@ -1563,6 +1626,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1563
1626
|
|
|
1564
1627
|
|
|
1565
1628
|
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1566
1632
|
|
|
1567
1633
|
|
|
1568
1634
|
|
|
@@ -1620,6 +1686,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1620
1686
|
|
|
1621
1687
|
|
|
1622
1688
|
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1623
1692
|
|
|
1624
1693
|
|
|
1625
1694
|
|
|
@@ -1679,6 +1748,9 @@ var HashMap = class extends IterableEntryBase {
|
|
|
1679
1748
|
|
|
1680
1749
|
|
|
1681
1750
|
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
|
|
1682
1754
|
|
|
1683
1755
|
|
|
1684
1756
|
|
|
@@ -2246,6 +2318,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2246
2318
|
|
|
2247
2319
|
|
|
2248
2320
|
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
|
|
2249
2324
|
|
|
2250
2325
|
|
|
2251
2326
|
|
|
@@ -2317,6 +2392,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2317
2392
|
|
|
2318
2393
|
|
|
2319
2394
|
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
|
|
2320
2398
|
|
|
2321
2399
|
|
|
2322
2400
|
|
|
@@ -2393,6 +2471,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2393
2471
|
|
|
2394
2472
|
|
|
2395
2473
|
|
|
2474
|
+
|
|
2475
|
+
|
|
2476
|
+
|
|
2396
2477
|
|
|
2397
2478
|
|
|
2398
2479
|
|
|
@@ -2451,6 +2532,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2451
2532
|
|
|
2452
2533
|
|
|
2453
2534
|
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
|
|
2454
2538
|
|
|
2455
2539
|
|
|
2456
2540
|
|
|
@@ -2570,6 +2654,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2570
2654
|
|
|
2571
2655
|
|
|
2572
2656
|
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2573
2660
|
|
|
2574
2661
|
|
|
2575
2662
|
|
|
@@ -2633,6 +2720,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2633
2720
|
|
|
2634
2721
|
|
|
2635
2722
|
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2636
2726
|
|
|
2637
2727
|
|
|
2638
2728
|
|
|
@@ -2685,6 +2775,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2685
2775
|
|
|
2686
2776
|
|
|
2687
2777
|
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2688
2781
|
|
|
2689
2782
|
|
|
2690
2783
|
|
|
@@ -2743,6 +2836,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2743
2836
|
|
|
2744
2837
|
|
|
2745
2838
|
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
|
|
2746
2842
|
|
|
2747
2843
|
|
|
2748
2844
|
|
|
@@ -2806,6 +2902,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2806
2902
|
|
|
2807
2903
|
|
|
2808
2904
|
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
|
|
2809
2908
|
|
|
2810
2909
|
|
|
2811
2910
|
|
|
@@ -2877,6 +2976,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2877
2976
|
|
|
2878
2977
|
|
|
2879
2978
|
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
|
|
2880
2982
|
|
|
2881
2983
|
|
|
2882
2984
|
|
|
@@ -2925,6 +3027,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2925
3027
|
|
|
2926
3028
|
|
|
2927
3029
|
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
2928
3033
|
|
|
2929
3034
|
|
|
2930
3035
|
|
|
@@ -2979,6 +3084,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
2979
3084
|
|
|
2980
3085
|
|
|
2981
3086
|
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
2982
3090
|
|
|
2983
3091
|
|
|
2984
3092
|
|
|
@@ -3199,6 +3307,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
3199
3307
|
|
|
3200
3308
|
|
|
3201
3309
|
|
|
3310
|
+
|
|
3311
|
+
|
|
3312
|
+
|
|
3202
3313
|
|
|
3203
3314
|
|
|
3204
3315
|
|
|
@@ -3257,6 +3368,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
3257
3368
|
|
|
3258
3369
|
|
|
3259
3370
|
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
|
|
3260
3374
|
|
|
3261
3375
|
|
|
3262
3376
|
|
|
@@ -3343,6 +3457,9 @@ var SinglyLinkedList = class extends LinearLinkedBase {
|
|
|
3343
3457
|
|
|
3344
3458
|
|
|
3345
3459
|
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3346
3463
|
|
|
3347
3464
|
|
|
3348
3465
|
|
|
@@ -3667,6 +3784,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
3667
3784
|
|
|
3668
3785
|
|
|
3669
3786
|
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
|
|
3670
3790
|
|
|
3671
3791
|
|
|
3672
3792
|
|
|
@@ -3740,6 +3860,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
3740
3860
|
|
|
3741
3861
|
|
|
3742
3862
|
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
|
|
3743
3866
|
|
|
3744
3867
|
|
|
3745
3868
|
|
|
@@ -3812,6 +3935,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
3812
3935
|
|
|
3813
3936
|
|
|
3814
3937
|
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
|
|
3815
3941
|
|
|
3816
3942
|
|
|
3817
3943
|
|
|
@@ -3875,6 +4001,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
3875
4001
|
|
|
3876
4002
|
|
|
3877
4003
|
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
|
|
3878
4007
|
|
|
3879
4008
|
|
|
3880
4009
|
|
|
@@ -3967,6 +4096,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
3967
4096
|
|
|
3968
4097
|
|
|
3969
4098
|
|
|
4099
|
+
|
|
4100
|
+
|
|
4101
|
+
|
|
3970
4102
|
|
|
3971
4103
|
|
|
3972
4104
|
|
|
@@ -4020,6 +4152,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4020
4152
|
|
|
4021
4153
|
|
|
4022
4154
|
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4023
4158
|
|
|
4024
4159
|
|
|
4025
4160
|
|
|
@@ -4104,6 +4239,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4104
4239
|
|
|
4105
4240
|
|
|
4106
4241
|
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
|
|
4107
4245
|
|
|
4108
4246
|
|
|
4109
4247
|
|
|
@@ -4216,6 +4354,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4216
4354
|
|
|
4217
4355
|
|
|
4218
4356
|
|
|
4357
|
+
|
|
4358
|
+
|
|
4359
|
+
|
|
4219
4360
|
|
|
4220
4361
|
|
|
4221
4362
|
|
|
@@ -4275,6 +4416,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4275
4416
|
|
|
4276
4417
|
|
|
4277
4418
|
|
|
4419
|
+
|
|
4420
|
+
|
|
4421
|
+
|
|
4278
4422
|
|
|
4279
4423
|
|
|
4280
4424
|
|
|
@@ -4336,6 +4480,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4336
4480
|
|
|
4337
4481
|
|
|
4338
4482
|
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
|
|
4339
4486
|
|
|
4340
4487
|
|
|
4341
4488
|
|
|
@@ -4384,6 +4531,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4384
4531
|
|
|
4385
4532
|
|
|
4386
4533
|
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
|
|
4387
4537
|
|
|
4388
4538
|
|
|
4389
4539
|
|
|
@@ -4436,6 +4586,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4436
4586
|
|
|
4437
4587
|
|
|
4438
4588
|
|
|
4589
|
+
|
|
4590
|
+
|
|
4591
|
+
|
|
4439
4592
|
|
|
4440
4593
|
|
|
4441
4594
|
|
|
@@ -4499,11 +4652,31 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4499
4652
|
* @example
|
|
4500
4653
|
* // Find value scanning from tail
|
|
4501
4654
|
* const list = new DoublyLinkedList<number>([1, 2, 3, 4]);
|
|
4502
|
-
* //
|
|
4503
|
-
* const found = list.
|
|
4655
|
+
* // findLast scans from tail to head, returns first match
|
|
4656
|
+
* const found = list.findLast(node => node.value < 4);
|
|
4504
4657
|
* console.log(found); // 3;
|
|
4505
4658
|
*/
|
|
4659
|
+
/**
|
|
4660
|
+
* @deprecated Use `findLast` instead. Will be removed in a future major version.
|
|
4661
|
+
*/
|
|
4506
4662
|
getBackward(elementNodeOrPredicate) {
|
|
4663
|
+
return this.findLast(elementNodeOrPredicate);
|
|
4664
|
+
}
|
|
4665
|
+
/**
|
|
4666
|
+
* Find the first value matching a predicate scanning backward (tail → head).
|
|
4667
|
+
* @remarks Time O(N), Space O(1)
|
|
4668
|
+
* @param elementNodeOrPredicate - Element, node, or predicate to match.
|
|
4669
|
+
* @returns Matching value or undefined.
|
|
4670
|
+
|
|
4671
|
+
|
|
4672
|
+
* @example
|
|
4673
|
+
* // Find value scanning from tail
|
|
4674
|
+
* const list = new DoublyLinkedList<number>([1, 2, 3, 4]);
|
|
4675
|
+
* // findLast scans from tail to head, returns first match
|
|
4676
|
+
* const found = list.findLast(node => node.value < 4);
|
|
4677
|
+
* console.log(found); // 3;
|
|
4678
|
+
*/
|
|
4679
|
+
findLast(elementNodeOrPredicate) {
|
|
4507
4680
|
const predicate = this._ensurePredicate(elementNodeOrPredicate);
|
|
4508
4681
|
let current = this.tail;
|
|
4509
4682
|
while (current) {
|
|
@@ -4512,6 +4685,22 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4512
4685
|
}
|
|
4513
4686
|
return void 0;
|
|
4514
4687
|
}
|
|
4688
|
+
/**
|
|
4689
|
+
* Find the index of the last value matching a predicate (scans tail → head).
|
|
4690
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
4691
|
+
* @param predicate - Function called with (value, index, list).
|
|
4692
|
+
* @returns Matching index, or -1 if not found.
|
|
4693
|
+
*/
|
|
4694
|
+
findLastIndex(predicate) {
|
|
4695
|
+
let current = this.tail;
|
|
4696
|
+
let index = this.length - 1;
|
|
4697
|
+
while (current) {
|
|
4698
|
+
if (predicate(current.value, index, this)) return index;
|
|
4699
|
+
current = current.prev;
|
|
4700
|
+
index--;
|
|
4701
|
+
}
|
|
4702
|
+
return -1;
|
|
4703
|
+
}
|
|
4515
4704
|
/**
|
|
4516
4705
|
* Reverse the list in place.
|
|
4517
4706
|
* @remarks Time O(N), Space O(1)
|
|
@@ -4551,6 +4740,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4551
4740
|
|
|
4552
4741
|
|
|
4553
4742
|
|
|
4743
|
+
|
|
4744
|
+
|
|
4745
|
+
|
|
4554
4746
|
|
|
4555
4747
|
|
|
4556
4748
|
|
|
@@ -4637,6 +4829,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4637
4829
|
|
|
4638
4830
|
|
|
4639
4831
|
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
|
|
4640
4835
|
|
|
4641
4836
|
|
|
4642
4837
|
|
|
@@ -4694,6 +4889,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4694
4889
|
|
|
4695
4890
|
|
|
4696
4891
|
|
|
4892
|
+
|
|
4893
|
+
|
|
4894
|
+
|
|
4697
4895
|
|
|
4698
4896
|
|
|
4699
4897
|
|
|
@@ -4770,6 +4968,9 @@ var DoublyLinkedList = class extends LinearLinkedBase {
|
|
|
4770
4968
|
|
|
4771
4969
|
|
|
4772
4970
|
|
|
4971
|
+
|
|
4972
|
+
|
|
4973
|
+
|
|
4773
4974
|
|
|
4774
4975
|
|
|
4775
4976
|
|
|
@@ -4995,6 +5196,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
4995
5196
|
|
|
4996
5197
|
|
|
4997
5198
|
|
|
5199
|
+
|
|
5200
|
+
|
|
5201
|
+
|
|
4998
5202
|
|
|
4999
5203
|
|
|
5000
5204
|
|
|
@@ -5041,6 +5245,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5041
5245
|
|
|
5042
5246
|
|
|
5043
5247
|
|
|
5248
|
+
|
|
5249
|
+
|
|
5250
|
+
|
|
5044
5251
|
|
|
5045
5252
|
|
|
5046
5253
|
|
|
@@ -5090,6 +5297,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5090
5297
|
|
|
5091
5298
|
|
|
5092
5299
|
|
|
5300
|
+
|
|
5301
|
+
|
|
5302
|
+
|
|
5093
5303
|
|
|
5094
5304
|
|
|
5095
5305
|
|
|
@@ -5147,6 +5357,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5147
5357
|
|
|
5148
5358
|
|
|
5149
5359
|
|
|
5360
|
+
|
|
5361
|
+
|
|
5362
|
+
|
|
5150
5363
|
|
|
5151
5364
|
|
|
5152
5365
|
|
|
@@ -5229,6 +5442,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5229
5442
|
|
|
5230
5443
|
|
|
5231
5444
|
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
|
|
5232
5448
|
|
|
5233
5449
|
|
|
5234
5450
|
|
|
@@ -5296,6 +5512,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5296
5512
|
|
|
5297
5513
|
|
|
5298
5514
|
|
|
5515
|
+
|
|
5516
|
+
|
|
5517
|
+
|
|
5299
5518
|
|
|
5300
5519
|
|
|
5301
5520
|
|
|
@@ -5346,6 +5565,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5346
5565
|
|
|
5347
5566
|
|
|
5348
5567
|
|
|
5568
|
+
|
|
5569
|
+
|
|
5570
|
+
|
|
5349
5571
|
|
|
5350
5572
|
|
|
5351
5573
|
|
|
@@ -5416,6 +5638,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5416
5638
|
|
|
5417
5639
|
|
|
5418
5640
|
|
|
5641
|
+
|
|
5642
|
+
|
|
5643
|
+
|
|
5419
5644
|
|
|
5420
5645
|
|
|
5421
5646
|
|
|
@@ -5466,6 +5691,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5466
5691
|
|
|
5467
5692
|
|
|
5468
5693
|
|
|
5694
|
+
|
|
5695
|
+
|
|
5696
|
+
|
|
5469
5697
|
|
|
5470
5698
|
|
|
5471
5699
|
|
|
@@ -5518,6 +5746,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5518
5746
|
|
|
5519
5747
|
|
|
5520
5748
|
|
|
5749
|
+
|
|
5750
|
+
|
|
5751
|
+
|
|
5521
5752
|
|
|
5522
5753
|
|
|
5523
5754
|
|
|
@@ -5568,6 +5799,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5568
5799
|
|
|
5569
5800
|
|
|
5570
5801
|
|
|
5802
|
+
|
|
5803
|
+
|
|
5804
|
+
|
|
5571
5805
|
|
|
5572
5806
|
|
|
5573
5807
|
|
|
@@ -5621,6 +5855,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5621
5855
|
|
|
5622
5856
|
|
|
5623
5857
|
|
|
5858
|
+
|
|
5859
|
+
|
|
5860
|
+
|
|
5624
5861
|
|
|
5625
5862
|
|
|
5626
5863
|
|
|
@@ -5679,6 +5916,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5679
5916
|
|
|
5680
5917
|
|
|
5681
5918
|
|
|
5919
|
+
|
|
5920
|
+
|
|
5921
|
+
|
|
5682
5922
|
|
|
5683
5923
|
|
|
5684
5924
|
|
|
@@ -5735,6 +5975,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5735
5975
|
|
|
5736
5976
|
|
|
5737
5977
|
|
|
5978
|
+
|
|
5979
|
+
|
|
5980
|
+
|
|
5738
5981
|
|
|
5739
5982
|
|
|
5740
5983
|
|
|
@@ -5790,6 +6033,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5790
6033
|
|
|
5791
6034
|
|
|
5792
6035
|
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
|
|
5793
6039
|
|
|
5794
6040
|
|
|
5795
6041
|
|
|
@@ -5851,6 +6097,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5851
6097
|
|
|
5852
6098
|
|
|
5853
6099
|
|
|
6100
|
+
|
|
6101
|
+
|
|
6102
|
+
|
|
5854
6103
|
|
|
5855
6104
|
|
|
5856
6105
|
|
|
@@ -5920,6 +6169,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5920
6169
|
|
|
5921
6170
|
|
|
5922
6171
|
|
|
6172
|
+
|
|
6173
|
+
|
|
6174
|
+
|
|
5923
6175
|
|
|
5924
6176
|
|
|
5925
6177
|
|
|
@@ -5973,6 +6225,9 @@ var SkipList = class _SkipList extends IterableEntryBase {
|
|
|
5973
6225
|
|
|
5974
6226
|
|
|
5975
6227
|
|
|
6228
|
+
|
|
6229
|
+
|
|
6230
|
+
|
|
5976
6231
|
|
|
5977
6232
|
|
|
5978
6233
|
|
|
@@ -6110,6 +6365,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6110
6365
|
|
|
6111
6366
|
|
|
6112
6367
|
|
|
6368
|
+
|
|
6369
|
+
|
|
6370
|
+
|
|
6113
6371
|
|
|
6114
6372
|
|
|
6115
6373
|
|
|
@@ -6174,6 +6432,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6174
6432
|
|
|
6175
6433
|
|
|
6176
6434
|
|
|
6435
|
+
|
|
6436
|
+
|
|
6437
|
+
|
|
6177
6438
|
|
|
6178
6439
|
|
|
6179
6440
|
|
|
@@ -6227,6 +6488,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6227
6488
|
|
|
6228
6489
|
|
|
6229
6490
|
|
|
6491
|
+
|
|
6492
|
+
|
|
6493
|
+
|
|
6230
6494
|
|
|
6231
6495
|
|
|
6232
6496
|
|
|
@@ -6280,6 +6544,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6280
6544
|
|
|
6281
6545
|
|
|
6282
6546
|
|
|
6547
|
+
|
|
6548
|
+
|
|
6549
|
+
|
|
6283
6550
|
|
|
6284
6551
|
|
|
6285
6552
|
|
|
@@ -6342,6 +6609,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6342
6609
|
|
|
6343
6610
|
|
|
6344
6611
|
|
|
6612
|
+
|
|
6613
|
+
|
|
6614
|
+
|
|
6345
6615
|
|
|
6346
6616
|
|
|
6347
6617
|
|
|
@@ -6419,6 +6689,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6419
6689
|
|
|
6420
6690
|
|
|
6421
6691
|
|
|
6692
|
+
|
|
6693
|
+
|
|
6694
|
+
|
|
6422
6695
|
|
|
6423
6696
|
|
|
6424
6697
|
|
|
@@ -6496,6 +6769,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6496
6769
|
|
|
6497
6770
|
|
|
6498
6771
|
|
|
6772
|
+
|
|
6773
|
+
|
|
6774
|
+
|
|
6499
6775
|
|
|
6500
6776
|
|
|
6501
6777
|
|
|
@@ -6546,6 +6822,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6546
6822
|
|
|
6547
6823
|
|
|
6548
6824
|
|
|
6825
|
+
|
|
6826
|
+
|
|
6827
|
+
|
|
6549
6828
|
|
|
6550
6829
|
|
|
6551
6830
|
|
|
@@ -6602,6 +6881,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6602
6881
|
|
|
6603
6882
|
|
|
6604
6883
|
|
|
6884
|
+
|
|
6885
|
+
|
|
6886
|
+
|
|
6605
6887
|
|
|
6606
6888
|
|
|
6607
6889
|
|
|
@@ -6678,6 +6960,9 @@ var Stack = class extends IterableElementBase {
|
|
|
6678
6960
|
|
|
6679
6961
|
|
|
6680
6962
|
|
|
6963
|
+
|
|
6964
|
+
|
|
6965
|
+
|
|
6681
6966
|
|
|
6682
6967
|
|
|
6683
6968
|
|
|
@@ -6845,6 +7130,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
6845
7130
|
|
|
6846
7131
|
|
|
6847
7132
|
|
|
7133
|
+
|
|
7134
|
+
|
|
7135
|
+
|
|
6848
7136
|
|
|
6849
7137
|
|
|
6850
7138
|
|
|
@@ -6899,6 +7187,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
6899
7187
|
|
|
6900
7188
|
|
|
6901
7189
|
|
|
7190
|
+
|
|
7191
|
+
|
|
7192
|
+
|
|
6902
7193
|
|
|
6903
7194
|
|
|
6904
7195
|
|
|
@@ -6977,6 +7268,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
6977
7268
|
|
|
6978
7269
|
|
|
6979
7270
|
|
|
7271
|
+
|
|
7272
|
+
|
|
7273
|
+
|
|
6980
7274
|
|
|
6981
7275
|
|
|
6982
7276
|
|
|
@@ -7043,6 +7337,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7043
7337
|
|
|
7044
7338
|
|
|
7045
7339
|
|
|
7340
|
+
|
|
7341
|
+
|
|
7342
|
+
|
|
7046
7343
|
|
|
7047
7344
|
|
|
7048
7345
|
|
|
@@ -7116,6 +7413,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7116
7413
|
|
|
7117
7414
|
|
|
7118
7415
|
|
|
7416
|
+
|
|
7417
|
+
|
|
7418
|
+
|
|
7119
7419
|
|
|
7120
7420
|
|
|
7121
7421
|
|
|
@@ -7179,6 +7479,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7179
7479
|
|
|
7180
7480
|
|
|
7181
7481
|
|
|
7482
|
+
|
|
7483
|
+
|
|
7484
|
+
|
|
7182
7485
|
|
|
7183
7486
|
|
|
7184
7487
|
|
|
@@ -7235,6 +7538,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7235
7538
|
|
|
7236
7539
|
|
|
7237
7540
|
|
|
7541
|
+
|
|
7542
|
+
|
|
7543
|
+
|
|
7238
7544
|
|
|
7239
7545
|
|
|
7240
7546
|
|
|
@@ -7347,6 +7653,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7347
7653
|
|
|
7348
7654
|
|
|
7349
7655
|
|
|
7656
|
+
|
|
7657
|
+
|
|
7658
|
+
|
|
7350
7659
|
|
|
7351
7660
|
|
|
7352
7661
|
|
|
@@ -7397,6 +7706,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7397
7706
|
|
|
7398
7707
|
|
|
7399
7708
|
|
|
7709
|
+
|
|
7710
|
+
|
|
7711
|
+
|
|
7400
7712
|
|
|
7401
7713
|
|
|
7402
7714
|
|
|
@@ -7470,6 +7782,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7470
7782
|
|
|
7471
7783
|
|
|
7472
7784
|
|
|
7785
|
+
|
|
7786
|
+
|
|
7787
|
+
|
|
7473
7788
|
|
|
7474
7789
|
|
|
7475
7790
|
|
|
@@ -7527,6 +7842,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7527
7842
|
|
|
7528
7843
|
|
|
7529
7844
|
|
|
7845
|
+
|
|
7846
|
+
|
|
7847
|
+
|
|
7530
7848
|
|
|
7531
7849
|
|
|
7532
7850
|
|
|
@@ -7588,6 +7906,9 @@ var Queue = class _Queue extends LinearBase {
|
|
|
7588
7906
|
|
|
7589
7907
|
|
|
7590
7908
|
|
|
7909
|
+
|
|
7910
|
+
|
|
7911
|
+
|
|
7591
7912
|
|
|
7592
7913
|
|
|
7593
7914
|
|
|
@@ -7890,7 +8211,10 @@ var Deque = class extends LinearBase {
|
|
|
7890
8211
|
}
|
|
7891
8212
|
/**
|
|
7892
8213
|
* Deque peek at both ends
|
|
7893
|
-
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
|
|
8217
|
+
* @example
|
|
7894
8218
|
* // Deque peek at both ends
|
|
7895
8219
|
* const deque = new Deque<number>([10, 20, 30, 40, 50]);
|
|
7896
8220
|
*
|
|
@@ -7948,6 +8272,9 @@ var Deque = class extends LinearBase {
|
|
|
7948
8272
|
|
|
7949
8273
|
|
|
7950
8274
|
|
|
8275
|
+
|
|
8276
|
+
|
|
8277
|
+
|
|
7951
8278
|
|
|
7952
8279
|
|
|
7953
8280
|
|
|
@@ -8015,6 +8342,9 @@ var Deque = class extends LinearBase {
|
|
|
8015
8342
|
|
|
8016
8343
|
|
|
8017
8344
|
|
|
8345
|
+
|
|
8346
|
+
|
|
8347
|
+
|
|
8018
8348
|
|
|
8019
8349
|
|
|
8020
8350
|
|
|
@@ -8095,6 +8425,9 @@ var Deque = class extends LinearBase {
|
|
|
8095
8425
|
|
|
8096
8426
|
|
|
8097
8427
|
|
|
8428
|
+
|
|
8429
|
+
|
|
8430
|
+
|
|
8098
8431
|
|
|
8099
8432
|
|
|
8100
8433
|
|
|
@@ -8162,6 +8495,9 @@ var Deque = class extends LinearBase {
|
|
|
8162
8495
|
|
|
8163
8496
|
|
|
8164
8497
|
|
|
8498
|
+
|
|
8499
|
+
|
|
8500
|
+
|
|
8165
8501
|
|
|
8166
8502
|
|
|
8167
8503
|
|
|
@@ -8230,6 +8566,9 @@ var Deque = class extends LinearBase {
|
|
|
8230
8566
|
|
|
8231
8567
|
|
|
8232
8568
|
|
|
8569
|
+
|
|
8570
|
+
|
|
8571
|
+
|
|
8233
8572
|
|
|
8234
8573
|
|
|
8235
8574
|
|
|
@@ -8339,6 +8678,9 @@ var Deque = class extends LinearBase {
|
|
|
8339
8678
|
|
|
8340
8679
|
|
|
8341
8680
|
|
|
8681
|
+
|
|
8682
|
+
|
|
8683
|
+
|
|
8342
8684
|
|
|
8343
8685
|
|
|
8344
8686
|
|
|
@@ -8388,6 +8730,9 @@ var Deque = class extends LinearBase {
|
|
|
8388
8730
|
|
|
8389
8731
|
|
|
8390
8732
|
|
|
8733
|
+
|
|
8734
|
+
|
|
8735
|
+
|
|
8391
8736
|
|
|
8392
8737
|
|
|
8393
8738
|
|
|
@@ -8441,6 +8786,9 @@ var Deque = class extends LinearBase {
|
|
|
8441
8786
|
|
|
8442
8787
|
|
|
8443
8788
|
|
|
8789
|
+
|
|
8790
|
+
|
|
8791
|
+
|
|
8444
8792
|
|
|
8445
8793
|
|
|
8446
8794
|
|
|
@@ -8645,6 +8993,9 @@ var Deque = class extends LinearBase {
|
|
|
8645
8993
|
|
|
8646
8994
|
|
|
8647
8995
|
|
|
8996
|
+
|
|
8997
|
+
|
|
8998
|
+
|
|
8648
8999
|
|
|
8649
9000
|
|
|
8650
9001
|
|
|
@@ -8739,6 +9090,64 @@ var Deque = class extends LinearBase {
|
|
|
8739
9090
|
|
|
8740
9091
|
|
|
8741
9092
|
|
|
9093
|
+
|
|
9094
|
+
* @example
|
|
9095
|
+
* // Deque for...of iteration and reverse
|
|
9096
|
+
* const deque = new Deque<string>(['A', 'B', 'C', 'D']);
|
|
9097
|
+
*
|
|
9098
|
+
* // Iterate forward
|
|
9099
|
+
* const forward: string[] = [];
|
|
9100
|
+
* for (const item of deque) {
|
|
9101
|
+
* forward.push(item);
|
|
9102
|
+
* }
|
|
9103
|
+
* console.log(forward); // ['A', 'B', 'C', 'D'];
|
|
9104
|
+
*
|
|
9105
|
+
* // Reverse the deque
|
|
9106
|
+
* deque.reverse();
|
|
9107
|
+
* const backward: string[] = [];
|
|
9108
|
+
* for (const item of deque) {
|
|
9109
|
+
* backward.push(item);
|
|
9110
|
+
* }
|
|
9111
|
+
* console.log(backward); // ['D', 'C', 'B', 'A'];
|
|
9112
|
+
*/
|
|
9113
|
+
/**
|
|
9114
|
+
* Find the last value matching a predicate (scans back-to-front).
|
|
9115
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
9116
|
+
* @param predicate - Function called with (value, index, deque).
|
|
9117
|
+
* @returns Matching value or undefined.
|
|
9118
|
+
* @example
|
|
9119
|
+
* // Find last matching value
|
|
9120
|
+
* const d = new Deque([1, 2, 3, 4, 5]);
|
|
9121
|
+
* console.log(d.findLast(v => v > 2)); // 5;
|
|
9122
|
+
* console.log(d.findLast(v => v % 2 === 0)); // 4;
|
|
9123
|
+
*/
|
|
9124
|
+
findLast(predicate) {
|
|
9125
|
+
for (let i = this.length - 1; i >= 0; i--) {
|
|
9126
|
+
const val = this.at(i);
|
|
9127
|
+
if (predicate(val, i, this)) return val;
|
|
9128
|
+
}
|
|
9129
|
+
return void 0;
|
|
9130
|
+
}
|
|
9131
|
+
/**
|
|
9132
|
+
* Find the index of the last value matching a predicate (scans back-to-front).
|
|
9133
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
9134
|
+
* @param predicate - Function called with (value, index, deque).
|
|
9135
|
+
* @returns Matching index, or -1 if not found.
|
|
9136
|
+
* @example
|
|
9137
|
+
* // Find last matching index
|
|
9138
|
+
* const d = new Deque([10, 20, 30, 20, 10]);
|
|
9139
|
+
* console.log(d.findLastIndex(v => v === 20)); // 3;
|
|
9140
|
+
* console.log(d.findLastIndex(v => v === 10)); // 4;
|
|
9141
|
+
*/
|
|
9142
|
+
findLastIndex(predicate) {
|
|
9143
|
+
for (let i = this.length - 1; i >= 0; i--) {
|
|
9144
|
+
if (predicate(this.at(i), i, this)) return i;
|
|
9145
|
+
}
|
|
9146
|
+
return -1;
|
|
9147
|
+
}
|
|
9148
|
+
/**
|
|
9149
|
+
* Deque for...of iteration and reverse
|
|
9150
|
+
|
|
8742
9151
|
|
|
8743
9152
|
* @example
|
|
8744
9153
|
* // Deque for...of iteration and reverse
|
|
@@ -8852,6 +9261,9 @@ var Deque = class extends LinearBase {
|
|
|
8852
9261
|
|
|
8853
9262
|
|
|
8854
9263
|
|
|
9264
|
+
|
|
9265
|
+
|
|
9266
|
+
|
|
8855
9267
|
|
|
8856
9268
|
|
|
8857
9269
|
|
|
@@ -8927,6 +9339,9 @@ var Deque = class extends LinearBase {
|
|
|
8927
9339
|
|
|
8928
9340
|
|
|
8929
9341
|
|
|
9342
|
+
|
|
9343
|
+
|
|
9344
|
+
|
|
8930
9345
|
|
|
8931
9346
|
|
|
8932
9347
|
|
|
@@ -8985,6 +9400,9 @@ var Deque = class extends LinearBase {
|
|
|
8985
9400
|
|
|
8986
9401
|
|
|
8987
9402
|
|
|
9403
|
+
|
|
9404
|
+
|
|
9405
|
+
|
|
8988
9406
|
|
|
8989
9407
|
|
|
8990
9408
|
|
|
@@ -9063,6 +9481,9 @@ var Deque = class extends LinearBase {
|
|
|
9063
9481
|
|
|
9064
9482
|
|
|
9065
9483
|
|
|
9484
|
+
|
|
9485
|
+
|
|
9486
|
+
|
|
9066
9487
|
|
|
9067
9488
|
|
|
9068
9489
|
|
|
@@ -9265,6 +9686,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9265
9686
|
|
|
9266
9687
|
|
|
9267
9688
|
|
|
9689
|
+
|
|
9690
|
+
|
|
9691
|
+
|
|
9268
9692
|
|
|
9269
9693
|
|
|
9270
9694
|
|
|
@@ -9355,6 +9779,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9355
9779
|
|
|
9356
9780
|
|
|
9357
9781
|
|
|
9782
|
+
|
|
9783
|
+
|
|
9784
|
+
|
|
9358
9785
|
|
|
9359
9786
|
|
|
9360
9787
|
|
|
@@ -9416,6 +9843,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9416
9843
|
|
|
9417
9844
|
|
|
9418
9845
|
|
|
9846
|
+
|
|
9847
|
+
|
|
9848
|
+
|
|
9419
9849
|
|
|
9420
9850
|
|
|
9421
9851
|
|
|
@@ -9510,6 +9940,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9510
9940
|
*/
|
|
9511
9941
|
/**
|
|
9512
9942
|
* @deprecated Use `pop` instead. Will be removed in a future major version.
|
|
9943
|
+
|
|
9944
|
+
|
|
9945
|
+
|
|
9513
9946
|
* @example
|
|
9514
9947
|
* // Heap with custom comparator (MaxHeap behavior)
|
|
9515
9948
|
* interface Task {
|
|
@@ -9593,6 +10026,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9593
10026
|
|
|
9594
10027
|
|
|
9595
10028
|
|
|
10029
|
+
|
|
10030
|
+
|
|
10031
|
+
|
|
9596
10032
|
|
|
9597
10033
|
|
|
9598
10034
|
|
|
@@ -9697,6 +10133,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9697
10133
|
|
|
9698
10134
|
|
|
9699
10135
|
|
|
10136
|
+
|
|
10137
|
+
|
|
10138
|
+
|
|
9700
10139
|
|
|
9701
10140
|
|
|
9702
10141
|
|
|
@@ -9748,6 +10187,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9748
10187
|
|
|
9749
10188
|
|
|
9750
10189
|
|
|
10190
|
+
|
|
10191
|
+
|
|
10192
|
+
|
|
9751
10193
|
|
|
9752
10194
|
|
|
9753
10195
|
|
|
@@ -9792,6 +10234,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9792
10234
|
|
|
9793
10235
|
|
|
9794
10236
|
|
|
10237
|
+
|
|
10238
|
+
|
|
10239
|
+
|
|
9795
10240
|
|
|
9796
10241
|
|
|
9797
10242
|
|
|
@@ -9843,6 +10288,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9843
10288
|
|
|
9844
10289
|
|
|
9845
10290
|
|
|
10291
|
+
|
|
10292
|
+
|
|
10293
|
+
|
|
9846
10294
|
|
|
9847
10295
|
|
|
9848
10296
|
|
|
@@ -9946,6 +10394,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
9946
10394
|
|
|
9947
10395
|
|
|
9948
10396
|
|
|
10397
|
+
|
|
10398
|
+
|
|
10399
|
+
|
|
9949
10400
|
|
|
9950
10401
|
|
|
9951
10402
|
|
|
@@ -10030,6 +10481,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
10030
10481
|
|
|
10031
10482
|
|
|
10032
10483
|
|
|
10484
|
+
|
|
10485
|
+
|
|
10486
|
+
|
|
10033
10487
|
|
|
10034
10488
|
|
|
10035
10489
|
|
|
@@ -10087,6 +10541,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
10087
10541
|
|
|
10088
10542
|
|
|
10089
10543
|
|
|
10544
|
+
|
|
10545
|
+
|
|
10546
|
+
|
|
10090
10547
|
|
|
10091
10548
|
|
|
10092
10549
|
|
|
@@ -10143,6 +10600,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
10143
10600
|
|
|
10144
10601
|
|
|
10145
10602
|
|
|
10603
|
+
|
|
10604
|
+
|
|
10605
|
+
|
|
10146
10606
|
|
|
10147
10607
|
|
|
10148
10608
|
|
|
@@ -10206,6 +10666,9 @@ var Heap = class _Heap extends IterableElementBase {
|
|
|
10206
10666
|
|
|
10207
10667
|
|
|
10208
10668
|
|
|
10669
|
+
|
|
10670
|
+
|
|
10671
|
+
|
|
10209
10672
|
|
|
10210
10673
|
|
|
10211
10674
|
|
|
@@ -11646,6 +12109,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
11646
12109
|
|
|
11647
12110
|
|
|
11648
12111
|
|
|
12112
|
+
|
|
12113
|
+
|
|
12114
|
+
|
|
11649
12115
|
|
|
11650
12116
|
|
|
11651
12117
|
|
|
@@ -11738,6 +12204,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
11738
12204
|
|
|
11739
12205
|
|
|
11740
12206
|
|
|
12207
|
+
|
|
12208
|
+
|
|
12209
|
+
|
|
11741
12210
|
|
|
11742
12211
|
|
|
11743
12212
|
|
|
@@ -11828,6 +12297,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
11828
12297
|
|
|
11829
12298
|
|
|
11830
12299
|
|
|
12300
|
+
|
|
12301
|
+
|
|
12302
|
+
|
|
11831
12303
|
|
|
11832
12304
|
|
|
11833
12305
|
|
|
@@ -11909,6 +12381,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
11909
12381
|
|
|
11910
12382
|
|
|
11911
12383
|
|
|
12384
|
+
|
|
12385
|
+
|
|
12386
|
+
|
|
11912
12387
|
|
|
11913
12388
|
|
|
11914
12389
|
|
|
@@ -11967,6 +12442,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
11967
12442
|
|
|
11968
12443
|
|
|
11969
12444
|
|
|
12445
|
+
|
|
12446
|
+
|
|
12447
|
+
|
|
11970
12448
|
|
|
11971
12449
|
|
|
11972
12450
|
|
|
@@ -12078,6 +12556,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
12078
12556
|
|
|
12079
12557
|
|
|
12080
12558
|
|
|
12559
|
+
|
|
12560
|
+
|
|
12561
|
+
|
|
12081
12562
|
|
|
12082
12563
|
|
|
12083
12564
|
|
|
@@ -12170,6 +12651,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
12170
12651
|
|
|
12171
12652
|
|
|
12172
12653
|
|
|
12654
|
+
|
|
12655
|
+
|
|
12656
|
+
|
|
12173
12657
|
|
|
12174
12658
|
|
|
12175
12659
|
|
|
@@ -12224,6 +12708,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
12224
12708
|
|
|
12225
12709
|
|
|
12226
12710
|
|
|
12711
|
+
|
|
12712
|
+
|
|
12713
|
+
|
|
12227
12714
|
|
|
12228
12715
|
|
|
12229
12716
|
|
|
@@ -12331,6 +12818,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
12331
12818
|
|
|
12332
12819
|
|
|
12333
12820
|
|
|
12821
|
+
|
|
12822
|
+
|
|
12823
|
+
|
|
12334
12824
|
|
|
12335
12825
|
|
|
12336
12826
|
|
|
@@ -12441,6 +12931,9 @@ var DirectedGraph = class _DirectedGraph extends AbstractGraph {
|
|
|
12441
12931
|
|
|
12442
12932
|
|
|
12443
12933
|
|
|
12934
|
+
|
|
12935
|
+
|
|
12936
|
+
|
|
12444
12937
|
|
|
12445
12938
|
|
|
12446
12939
|
|
|
@@ -12617,6 +13110,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
12617
13110
|
|
|
12618
13111
|
|
|
12619
13112
|
|
|
13113
|
+
|
|
13114
|
+
|
|
13115
|
+
|
|
12620
13116
|
|
|
12621
13117
|
|
|
12622
13118
|
|
|
@@ -12705,6 +13201,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
12705
13201
|
|
|
12706
13202
|
|
|
12707
13203
|
|
|
13204
|
+
|
|
13205
|
+
|
|
13206
|
+
|
|
12708
13207
|
|
|
12709
13208
|
|
|
12710
13209
|
|
|
@@ -12793,6 +13292,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
12793
13292
|
|
|
12794
13293
|
|
|
12795
13294
|
|
|
13295
|
+
|
|
13296
|
+
|
|
13297
|
+
|
|
12796
13298
|
|
|
12797
13299
|
|
|
12798
13300
|
|
|
@@ -12895,6 +13397,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
12895
13397
|
|
|
12896
13398
|
|
|
12897
13399
|
|
|
13400
|
+
|
|
13401
|
+
|
|
13402
|
+
|
|
12898
13403
|
|
|
12899
13404
|
|
|
12900
13405
|
|
|
@@ -12953,6 +13458,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
12953
13458
|
|
|
12954
13459
|
|
|
12955
13460
|
|
|
13461
|
+
|
|
13462
|
+
|
|
13463
|
+
|
|
12956
13464
|
|
|
12957
13465
|
|
|
12958
13466
|
|
|
@@ -13081,6 +13589,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
13081
13589
|
|
|
13082
13590
|
|
|
13083
13591
|
|
|
13592
|
+
|
|
13593
|
+
|
|
13594
|
+
|
|
13084
13595
|
|
|
13085
13596
|
|
|
13086
13597
|
|
|
@@ -13231,6 +13742,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
13231
13742
|
|
|
13232
13743
|
|
|
13233
13744
|
|
|
13745
|
+
|
|
13746
|
+
|
|
13747
|
+
|
|
13234
13748
|
|
|
13235
13749
|
|
|
13236
13750
|
|
|
@@ -13303,6 +13817,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
13303
13817
|
|
|
13304
13818
|
|
|
13305
13819
|
|
|
13820
|
+
|
|
13821
|
+
|
|
13822
|
+
|
|
13306
13823
|
|
|
13307
13824
|
|
|
13308
13825
|
|
|
@@ -13357,6 +13874,9 @@ var UndirectedGraph = class _UndirectedGraph extends AbstractGraph {
|
|
|
13357
13874
|
|
|
13358
13875
|
|
|
13359
13876
|
|
|
13877
|
+
|
|
13878
|
+
|
|
13879
|
+
|
|
13360
13880
|
|
|
13361
13881
|
|
|
13362
13882
|
|
|
@@ -13921,6 +14441,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
13921
14441
|
|
|
13922
14442
|
|
|
13923
14443
|
|
|
14444
|
+
|
|
14445
|
+
|
|
14446
|
+
|
|
13924
14447
|
|
|
13925
14448
|
|
|
13926
14449
|
|
|
@@ -13979,6 +14502,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
13979
14502
|
|
|
13980
14503
|
|
|
13981
14504
|
|
|
14505
|
+
|
|
14506
|
+
|
|
14507
|
+
|
|
13982
14508
|
|
|
13983
14509
|
|
|
13984
14510
|
|
|
@@ -14089,6 +14615,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14089
14615
|
|
|
14090
14616
|
|
|
14091
14617
|
|
|
14618
|
+
|
|
14619
|
+
|
|
14620
|
+
|
|
14092
14621
|
|
|
14093
14622
|
|
|
14094
14623
|
|
|
@@ -14135,6 +14664,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14135
14664
|
|
|
14136
14665
|
|
|
14137
14666
|
|
|
14667
|
+
|
|
14668
|
+
|
|
14669
|
+
|
|
14138
14670
|
|
|
14139
14671
|
|
|
14140
14672
|
|
|
@@ -14202,6 +14734,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14202
14734
|
|
|
14203
14735
|
|
|
14204
14736
|
|
|
14737
|
+
|
|
14738
|
+
|
|
14739
|
+
|
|
14205
14740
|
|
|
14206
14741
|
|
|
14207
14742
|
|
|
@@ -14308,6 +14843,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14308
14843
|
|
|
14309
14844
|
|
|
14310
14845
|
|
|
14846
|
+
|
|
14847
|
+
|
|
14848
|
+
|
|
14311
14849
|
|
|
14312
14850
|
|
|
14313
14851
|
|
|
@@ -14412,6 +14950,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14412
14950
|
|
|
14413
14951
|
|
|
14414
14952
|
|
|
14953
|
+
|
|
14954
|
+
|
|
14955
|
+
|
|
14415
14956
|
|
|
14416
14957
|
|
|
14417
14958
|
|
|
@@ -14474,6 +15015,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14474
15015
|
|
|
14475
15016
|
|
|
14476
15017
|
|
|
15018
|
+
|
|
15019
|
+
|
|
15020
|
+
|
|
14477
15021
|
|
|
14478
15022
|
|
|
14479
15023
|
|
|
@@ -14538,6 +15082,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14538
15082
|
|
|
14539
15083
|
|
|
14540
15084
|
|
|
15085
|
+
|
|
15086
|
+
|
|
15087
|
+
|
|
14541
15088
|
|
|
14542
15089
|
|
|
14543
15090
|
|
|
@@ -14590,6 +15137,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14590
15137
|
|
|
14591
15138
|
|
|
14592
15139
|
|
|
15140
|
+
|
|
15141
|
+
|
|
15142
|
+
|
|
14593
15143
|
|
|
14594
15144
|
|
|
14595
15145
|
|
|
@@ -14651,6 +15201,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14651
15201
|
|
|
14652
15202
|
|
|
14653
15203
|
|
|
15204
|
+
|
|
15205
|
+
|
|
15206
|
+
|
|
14654
15207
|
|
|
14655
15208
|
|
|
14656
15209
|
|
|
@@ -14739,6 +15292,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14739
15292
|
|
|
14740
15293
|
|
|
14741
15294
|
|
|
15295
|
+
|
|
15296
|
+
|
|
15297
|
+
|
|
14742
15298
|
|
|
14743
15299
|
|
|
14744
15300
|
|
|
@@ -14804,6 +15360,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
14804
15360
|
|
|
14805
15361
|
|
|
14806
15362
|
|
|
15363
|
+
|
|
15364
|
+
|
|
15365
|
+
|
|
14807
15366
|
|
|
14808
15367
|
|
|
14809
15368
|
|
|
@@ -15285,6 +15844,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
15285
15844
|
|
|
15286
15845
|
|
|
15287
15846
|
|
|
15847
|
+
|
|
15848
|
+
|
|
15849
|
+
|
|
15288
15850
|
|
|
15289
15851
|
|
|
15290
15852
|
|
|
@@ -15341,6 +15903,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
15341
15903
|
|
|
15342
15904
|
|
|
15343
15905
|
|
|
15906
|
+
|
|
15907
|
+
|
|
15908
|
+
|
|
15344
15909
|
|
|
15345
15910
|
|
|
15346
15911
|
|
|
@@ -15401,6 +15966,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
15401
15966
|
|
|
15402
15967
|
|
|
15403
15968
|
|
|
15969
|
+
|
|
15970
|
+
|
|
15971
|
+
|
|
15404
15972
|
|
|
15405
15973
|
|
|
15406
15974
|
|
|
@@ -15486,6 +16054,9 @@ var BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
15486
16054
|
|
|
15487
16055
|
|
|
15488
16056
|
|
|
16057
|
+
|
|
16058
|
+
|
|
16059
|
+
|
|
15489
16060
|
|
|
15490
16061
|
|
|
15491
16062
|
|
|
@@ -16314,6 +16885,12 @@ var BST = class extends BinaryTree {
|
|
|
16314
16885
|
|
|
16315
16886
|
|
|
16316
16887
|
|
|
16888
|
+
|
|
16889
|
+
|
|
16890
|
+
|
|
16891
|
+
|
|
16892
|
+
|
|
16893
|
+
|
|
16317
16894
|
|
|
16318
16895
|
|
|
16319
16896
|
|
|
@@ -16659,6 +17236,15 @@ var BST = class extends BinaryTree {
|
|
|
16659
17236
|
|
|
16660
17237
|
|
|
16661
17238
|
|
|
17239
|
+
|
|
17240
|
+
|
|
17241
|
+
|
|
17242
|
+
|
|
17243
|
+
|
|
17244
|
+
|
|
17245
|
+
|
|
17246
|
+
|
|
17247
|
+
|
|
16662
17248
|
|
|
16663
17249
|
|
|
16664
17250
|
|
|
@@ -16785,6 +17371,12 @@ var BST = class extends BinaryTree {
|
|
|
16785
17371
|
|
|
16786
17372
|
|
|
16787
17373
|
|
|
17374
|
+
|
|
17375
|
+
|
|
17376
|
+
|
|
17377
|
+
|
|
17378
|
+
|
|
17379
|
+
|
|
16788
17380
|
|
|
16789
17381
|
|
|
16790
17382
|
|
|
@@ -17079,6 +17671,9 @@ var BST = class extends BinaryTree {
|
|
|
17079
17671
|
|
|
17080
17672
|
|
|
17081
17673
|
|
|
17674
|
+
|
|
17675
|
+
|
|
17676
|
+
|
|
17082
17677
|
|
|
17083
17678
|
|
|
17084
17679
|
|
|
@@ -17152,6 +17747,9 @@ var BST = class extends BinaryTree {
|
|
|
17152
17747
|
|
|
17153
17748
|
|
|
17154
17749
|
|
|
17750
|
+
|
|
17751
|
+
|
|
17752
|
+
|
|
17155
17753
|
|
|
17156
17754
|
|
|
17157
17755
|
|
|
@@ -17279,6 +17877,12 @@ var BST = class extends BinaryTree {
|
|
|
17279
17877
|
|
|
17280
17878
|
|
|
17281
17879
|
|
|
17880
|
+
|
|
17881
|
+
|
|
17882
|
+
|
|
17883
|
+
|
|
17884
|
+
|
|
17885
|
+
|
|
17282
17886
|
|
|
17283
17887
|
|
|
17284
17888
|
|
|
@@ -17979,6 +18583,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
17979
18583
|
|
|
17980
18584
|
|
|
17981
18585
|
|
|
18586
|
+
|
|
18587
|
+
|
|
18588
|
+
|
|
18589
|
+
|
|
18590
|
+
|
|
18591
|
+
|
|
17982
18592
|
|
|
17983
18593
|
|
|
17984
18594
|
|
|
@@ -18063,6 +18673,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18063
18673
|
|
|
18064
18674
|
|
|
18065
18675
|
|
|
18676
|
+
|
|
18677
|
+
|
|
18678
|
+
|
|
18679
|
+
|
|
18680
|
+
|
|
18681
|
+
|
|
18066
18682
|
|
|
18067
18683
|
|
|
18068
18684
|
|
|
@@ -18147,6 +18763,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18147
18763
|
|
|
18148
18764
|
|
|
18149
18765
|
|
|
18766
|
+
|
|
18767
|
+
|
|
18768
|
+
|
|
18769
|
+
|
|
18770
|
+
|
|
18771
|
+
|
|
18150
18772
|
|
|
18151
18773
|
|
|
18152
18774
|
|
|
@@ -18231,6 +18853,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18231
18853
|
|
|
18232
18854
|
|
|
18233
18855
|
|
|
18856
|
+
|
|
18857
|
+
|
|
18858
|
+
|
|
18859
|
+
|
|
18860
|
+
|
|
18861
|
+
|
|
18234
18862
|
|
|
18235
18863
|
|
|
18236
18864
|
|
|
@@ -18313,6 +18941,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18313
18941
|
|
|
18314
18942
|
|
|
18315
18943
|
|
|
18944
|
+
|
|
18945
|
+
|
|
18946
|
+
|
|
18947
|
+
|
|
18948
|
+
|
|
18949
|
+
|
|
18316
18950
|
|
|
18317
18951
|
|
|
18318
18952
|
|
|
@@ -18402,6 +19036,12 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18402
19036
|
|
|
18403
19037
|
|
|
18404
19038
|
|
|
19039
|
+
|
|
19040
|
+
|
|
19041
|
+
|
|
19042
|
+
|
|
19043
|
+
|
|
19044
|
+
|
|
18405
19045
|
|
|
18406
19046
|
|
|
18407
19047
|
|
|
@@ -18459,6 +19099,9 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18459
19099
|
|
|
18460
19100
|
|
|
18461
19101
|
|
|
19102
|
+
|
|
19103
|
+
|
|
19104
|
+
|
|
18462
19105
|
|
|
18463
19106
|
|
|
18464
19107
|
|
|
@@ -18524,6 +19167,9 @@ var BinaryIndexedTree = class _BinaryIndexedTree {
|
|
|
18524
19167
|
|
|
18525
19168
|
|
|
18526
19169
|
|
|
19170
|
+
|
|
19171
|
+
|
|
19172
|
+
|
|
18527
19173
|
|
|
18528
19174
|
|
|
18529
19175
|
|
|
@@ -18692,6 +19338,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
18692
19338
|
|
|
18693
19339
|
|
|
18694
19340
|
|
|
19341
|
+
|
|
19342
|
+
|
|
19343
|
+
|
|
18695
19344
|
|
|
18696
19345
|
|
|
18697
19346
|
|
|
@@ -18768,6 +19417,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
18768
19417
|
|
|
18769
19418
|
|
|
18770
19419
|
|
|
19420
|
+
|
|
19421
|
+
|
|
19422
|
+
|
|
18771
19423
|
|
|
18772
19424
|
|
|
18773
19425
|
|
|
@@ -18838,6 +19490,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
18838
19490
|
|
|
18839
19491
|
|
|
18840
19492
|
|
|
19493
|
+
|
|
19494
|
+
|
|
19495
|
+
|
|
18841
19496
|
|
|
18842
19497
|
|
|
18843
19498
|
|
|
@@ -18915,6 +19570,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
18915
19570
|
|
|
18916
19571
|
|
|
18917
19572
|
|
|
19573
|
+
|
|
19574
|
+
|
|
19575
|
+
|
|
18918
19576
|
|
|
18919
19577
|
|
|
18920
19578
|
|
|
@@ -18970,6 +19628,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
18970
19628
|
|
|
18971
19629
|
|
|
18972
19630
|
|
|
19631
|
+
|
|
19632
|
+
|
|
19633
|
+
|
|
18973
19634
|
|
|
18974
19635
|
|
|
18975
19636
|
|
|
@@ -19051,6 +19712,9 @@ var SegmentTree = class _SegmentTree {
|
|
|
19051
19712
|
|
|
19052
19713
|
|
|
19053
19714
|
|
|
19715
|
+
|
|
19716
|
+
|
|
19717
|
+
|
|
19054
19718
|
|
|
19055
19719
|
|
|
19056
19720
|
|
|
@@ -19455,6 +20119,18 @@ var AVLTree = class extends BST {
|
|
|
19455
20119
|
|
|
19456
20120
|
|
|
19457
20121
|
|
|
20122
|
+
|
|
20123
|
+
|
|
20124
|
+
|
|
20125
|
+
|
|
20126
|
+
|
|
20127
|
+
|
|
20128
|
+
|
|
20129
|
+
|
|
20130
|
+
|
|
20131
|
+
|
|
20132
|
+
|
|
20133
|
+
|
|
19458
20134
|
|
|
19459
20135
|
|
|
19460
20136
|
|
|
@@ -19594,6 +20270,15 @@ var AVLTree = class extends BST {
|
|
|
19594
20270
|
|
|
19595
20271
|
|
|
19596
20272
|
|
|
20273
|
+
|
|
20274
|
+
|
|
20275
|
+
|
|
20276
|
+
|
|
20277
|
+
|
|
20278
|
+
|
|
20279
|
+
|
|
20280
|
+
|
|
20281
|
+
|
|
19597
20282
|
|
|
19598
20283
|
|
|
19599
20284
|
|
|
@@ -19688,6 +20373,12 @@ var AVLTree = class extends BST {
|
|
|
19688
20373
|
|
|
19689
20374
|
|
|
19690
20375
|
|
|
20376
|
+
|
|
20377
|
+
|
|
20378
|
+
|
|
20379
|
+
|
|
20380
|
+
|
|
20381
|
+
|
|
19691
20382
|
|
|
19692
20383
|
|
|
19693
20384
|
|
|
@@ -19833,6 +20524,15 @@ var AVLTree = class extends BST {
|
|
|
19833
20524
|
|
|
19834
20525
|
|
|
19835
20526
|
|
|
20527
|
+
|
|
20528
|
+
|
|
20529
|
+
|
|
20530
|
+
|
|
20531
|
+
|
|
20532
|
+
|
|
20533
|
+
|
|
20534
|
+
|
|
20535
|
+
|
|
19836
20536
|
|
|
19837
20537
|
|
|
19838
20538
|
|
|
@@ -20468,6 +21168,18 @@ var RedBlackTree = class extends BST {
|
|
|
20468
21168
|
|
|
20469
21169
|
|
|
20470
21170
|
|
|
21171
|
+
|
|
21172
|
+
|
|
21173
|
+
|
|
21174
|
+
|
|
21175
|
+
|
|
21176
|
+
|
|
21177
|
+
|
|
21178
|
+
|
|
21179
|
+
|
|
21180
|
+
|
|
21181
|
+
|
|
21182
|
+
|
|
20471
21183
|
|
|
20472
21184
|
|
|
20473
21185
|
|
|
@@ -20959,6 +21671,18 @@ var RedBlackTree = class extends BST {
|
|
|
20959
21671
|
|
|
20960
21672
|
|
|
20961
21673
|
|
|
21674
|
+
|
|
21675
|
+
|
|
21676
|
+
|
|
21677
|
+
|
|
21678
|
+
|
|
21679
|
+
|
|
21680
|
+
|
|
21681
|
+
|
|
21682
|
+
|
|
21683
|
+
|
|
21684
|
+
|
|
21685
|
+
|
|
20962
21686
|
|
|
20963
21687
|
|
|
20964
21688
|
|
|
@@ -21174,6 +21898,18 @@ var RedBlackTree = class extends BST {
|
|
|
21174
21898
|
|
|
21175
21899
|
|
|
21176
21900
|
|
|
21901
|
+
|
|
21902
|
+
|
|
21903
|
+
|
|
21904
|
+
|
|
21905
|
+
|
|
21906
|
+
|
|
21907
|
+
|
|
21908
|
+
|
|
21909
|
+
|
|
21910
|
+
|
|
21911
|
+
|
|
21912
|
+
|
|
21177
21913
|
|
|
21178
21914
|
|
|
21179
21915
|
|
|
@@ -21372,6 +22108,15 @@ var RedBlackTree = class extends BST {
|
|
|
21372
22108
|
|
|
21373
22109
|
|
|
21374
22110
|
|
|
22111
|
+
|
|
22112
|
+
|
|
22113
|
+
|
|
22114
|
+
|
|
22115
|
+
|
|
22116
|
+
|
|
22117
|
+
|
|
22118
|
+
|
|
22119
|
+
|
|
21375
22120
|
|
|
21376
22121
|
|
|
21377
22122
|
|
|
@@ -21537,6 +22282,18 @@ var RedBlackTree = class extends BST {
|
|
|
21537
22282
|
|
|
21538
22283
|
|
|
21539
22284
|
|
|
22285
|
+
|
|
22286
|
+
|
|
22287
|
+
|
|
22288
|
+
|
|
22289
|
+
|
|
22290
|
+
|
|
22291
|
+
|
|
22292
|
+
|
|
22293
|
+
|
|
22294
|
+
|
|
22295
|
+
|
|
22296
|
+
|
|
21540
22297
|
|
|
21541
22298
|
|
|
21542
22299
|
|
|
@@ -22071,6 +22828,21 @@ var TreeSet = class _TreeSet {
|
|
|
22071
22828
|
|
|
22072
22829
|
|
|
22073
22830
|
|
|
22831
|
+
|
|
22832
|
+
|
|
22833
|
+
|
|
22834
|
+
|
|
22835
|
+
|
|
22836
|
+
|
|
22837
|
+
|
|
22838
|
+
|
|
22839
|
+
|
|
22840
|
+
|
|
22841
|
+
|
|
22842
|
+
|
|
22843
|
+
|
|
22844
|
+
|
|
22845
|
+
|
|
22074
22846
|
|
|
22075
22847
|
|
|
22076
22848
|
|
|
@@ -22275,6 +23047,21 @@ var TreeSet = class _TreeSet {
|
|
|
22275
23047
|
|
|
22276
23048
|
|
|
22277
23049
|
|
|
23050
|
+
|
|
23051
|
+
|
|
23052
|
+
|
|
23053
|
+
|
|
23054
|
+
|
|
23055
|
+
|
|
23056
|
+
|
|
23057
|
+
|
|
23058
|
+
|
|
23059
|
+
|
|
23060
|
+
|
|
23061
|
+
|
|
23062
|
+
|
|
23063
|
+
|
|
23064
|
+
|
|
22278
23065
|
|
|
22279
23066
|
|
|
22280
23067
|
|
|
@@ -22320,6 +23107,18 @@ var TreeSet = class _TreeSet {
|
|
|
22320
23107
|
|
|
22321
23108
|
|
|
22322
23109
|
|
|
23110
|
+
|
|
23111
|
+
|
|
23112
|
+
|
|
23113
|
+
|
|
23114
|
+
|
|
23115
|
+
|
|
23116
|
+
|
|
23117
|
+
|
|
23118
|
+
|
|
23119
|
+
|
|
23120
|
+
|
|
23121
|
+
|
|
22323
23122
|
|
|
22324
23123
|
|
|
22325
23124
|
|
|
@@ -22519,6 +23318,21 @@ var TreeSet = class _TreeSet {
|
|
|
22519
23318
|
|
|
22520
23319
|
|
|
22521
23320
|
|
|
23321
|
+
|
|
23322
|
+
|
|
23323
|
+
|
|
23324
|
+
|
|
23325
|
+
|
|
23326
|
+
|
|
23327
|
+
|
|
23328
|
+
|
|
23329
|
+
|
|
23330
|
+
|
|
23331
|
+
|
|
23332
|
+
|
|
23333
|
+
|
|
23334
|
+
|
|
23335
|
+
|
|
22522
23336
|
|
|
22523
23337
|
|
|
22524
23338
|
|
|
@@ -22723,6 +23537,21 @@ var TreeSet = class _TreeSet {
|
|
|
22723
23537
|
|
|
22724
23538
|
|
|
22725
23539
|
|
|
23540
|
+
|
|
23541
|
+
|
|
23542
|
+
|
|
23543
|
+
|
|
23544
|
+
|
|
23545
|
+
|
|
23546
|
+
|
|
23547
|
+
|
|
23548
|
+
|
|
23549
|
+
|
|
23550
|
+
|
|
23551
|
+
|
|
23552
|
+
|
|
23553
|
+
|
|
23554
|
+
|
|
22726
23555
|
|
|
22727
23556
|
|
|
22728
23557
|
|
|
@@ -22932,6 +23761,21 @@ var TreeSet = class _TreeSet {
|
|
|
22932
23761
|
|
|
22933
23762
|
|
|
22934
23763
|
|
|
23764
|
+
|
|
23765
|
+
|
|
23766
|
+
|
|
23767
|
+
|
|
23768
|
+
|
|
23769
|
+
|
|
23770
|
+
|
|
23771
|
+
|
|
23772
|
+
|
|
23773
|
+
|
|
23774
|
+
|
|
23775
|
+
|
|
23776
|
+
|
|
23777
|
+
|
|
23778
|
+
|
|
22935
23779
|
|
|
22936
23780
|
|
|
22937
23781
|
|
|
@@ -23121,6 +23965,21 @@ var TreeSet = class _TreeSet {
|
|
|
23121
23965
|
|
|
23122
23966
|
|
|
23123
23967
|
|
|
23968
|
+
|
|
23969
|
+
|
|
23970
|
+
|
|
23971
|
+
|
|
23972
|
+
|
|
23973
|
+
|
|
23974
|
+
|
|
23975
|
+
|
|
23976
|
+
|
|
23977
|
+
|
|
23978
|
+
|
|
23979
|
+
|
|
23980
|
+
|
|
23981
|
+
|
|
23982
|
+
|
|
23124
23983
|
|
|
23125
23984
|
|
|
23126
23985
|
|
|
@@ -23311,6 +24170,21 @@ var TreeSet = class _TreeSet {
|
|
|
23311
24170
|
|
|
23312
24171
|
|
|
23313
24172
|
|
|
24173
|
+
|
|
24174
|
+
|
|
24175
|
+
|
|
24176
|
+
|
|
24177
|
+
|
|
24178
|
+
|
|
24179
|
+
|
|
24180
|
+
|
|
24181
|
+
|
|
24182
|
+
|
|
24183
|
+
|
|
24184
|
+
|
|
24185
|
+
|
|
24186
|
+
|
|
24187
|
+
|
|
23314
24188
|
|
|
23315
24189
|
|
|
23316
24190
|
|
|
@@ -23501,6 +24375,21 @@ var TreeSet = class _TreeSet {
|
|
|
23501
24375
|
|
|
23502
24376
|
|
|
23503
24377
|
|
|
24378
|
+
|
|
24379
|
+
|
|
24380
|
+
|
|
24381
|
+
|
|
24382
|
+
|
|
24383
|
+
|
|
24384
|
+
|
|
24385
|
+
|
|
24386
|
+
|
|
24387
|
+
|
|
24388
|
+
|
|
24389
|
+
|
|
24390
|
+
|
|
24391
|
+
|
|
24392
|
+
|
|
23504
24393
|
|
|
23505
24394
|
|
|
23506
24395
|
|
|
@@ -23694,6 +24583,21 @@ var TreeSet = class _TreeSet {
|
|
|
23694
24583
|
|
|
23695
24584
|
|
|
23696
24585
|
|
|
24586
|
+
|
|
24587
|
+
|
|
24588
|
+
|
|
24589
|
+
|
|
24590
|
+
|
|
24591
|
+
|
|
24592
|
+
|
|
24593
|
+
|
|
24594
|
+
|
|
24595
|
+
|
|
24596
|
+
|
|
24597
|
+
|
|
24598
|
+
|
|
24599
|
+
|
|
24600
|
+
|
|
23697
24601
|
|
|
23698
24602
|
|
|
23699
24603
|
|
|
@@ -23887,6 +24791,21 @@ var TreeSet = class _TreeSet {
|
|
|
23887
24791
|
|
|
23888
24792
|
|
|
23889
24793
|
|
|
24794
|
+
|
|
24795
|
+
|
|
24796
|
+
|
|
24797
|
+
|
|
24798
|
+
|
|
24799
|
+
|
|
24800
|
+
|
|
24801
|
+
|
|
24802
|
+
|
|
24803
|
+
|
|
24804
|
+
|
|
24805
|
+
|
|
24806
|
+
|
|
24807
|
+
|
|
24808
|
+
|
|
23890
24809
|
|
|
23891
24810
|
|
|
23892
24811
|
|
|
@@ -24083,6 +25002,21 @@ var TreeSet = class _TreeSet {
|
|
|
24083
25002
|
|
|
24084
25003
|
|
|
24085
25004
|
|
|
25005
|
+
|
|
25006
|
+
|
|
25007
|
+
|
|
25008
|
+
|
|
25009
|
+
|
|
25010
|
+
|
|
25011
|
+
|
|
25012
|
+
|
|
25013
|
+
|
|
25014
|
+
|
|
25015
|
+
|
|
25016
|
+
|
|
25017
|
+
|
|
25018
|
+
|
|
25019
|
+
|
|
24086
25020
|
|
|
24087
25021
|
|
|
24088
25022
|
|
|
@@ -24279,6 +25213,21 @@ var TreeSet = class _TreeSet {
|
|
|
24279
25213
|
|
|
24280
25214
|
|
|
24281
25215
|
|
|
25216
|
+
|
|
25217
|
+
|
|
25218
|
+
|
|
25219
|
+
|
|
25220
|
+
|
|
25221
|
+
|
|
25222
|
+
|
|
25223
|
+
|
|
25224
|
+
|
|
25225
|
+
|
|
25226
|
+
|
|
25227
|
+
|
|
25228
|
+
|
|
25229
|
+
|
|
25230
|
+
|
|
24282
25231
|
|
|
24283
25232
|
|
|
24284
25233
|
|
|
@@ -24470,6 +25419,21 @@ var TreeSet = class _TreeSet {
|
|
|
24470
25419
|
|
|
24471
25420
|
|
|
24472
25421
|
|
|
25422
|
+
|
|
25423
|
+
|
|
25424
|
+
|
|
25425
|
+
|
|
25426
|
+
|
|
25427
|
+
|
|
25428
|
+
|
|
25429
|
+
|
|
25430
|
+
|
|
25431
|
+
|
|
25432
|
+
|
|
25433
|
+
|
|
25434
|
+
|
|
25435
|
+
|
|
25436
|
+
|
|
24473
25437
|
|
|
24474
25438
|
|
|
24475
25439
|
|
|
@@ -24662,6 +25626,21 @@ var TreeSet = class _TreeSet {
|
|
|
24662
25626
|
|
|
24663
25627
|
|
|
24664
25628
|
|
|
25629
|
+
|
|
25630
|
+
|
|
25631
|
+
|
|
25632
|
+
|
|
25633
|
+
|
|
25634
|
+
|
|
25635
|
+
|
|
25636
|
+
|
|
25637
|
+
|
|
25638
|
+
|
|
25639
|
+
|
|
25640
|
+
|
|
25641
|
+
|
|
25642
|
+
|
|
25643
|
+
|
|
24665
25644
|
|
|
24666
25645
|
|
|
24667
25646
|
|
|
@@ -24854,6 +25833,21 @@ var TreeSet = class _TreeSet {
|
|
|
24854
25833
|
|
|
24855
25834
|
|
|
24856
25835
|
|
|
25836
|
+
|
|
25837
|
+
|
|
25838
|
+
|
|
25839
|
+
|
|
25840
|
+
|
|
25841
|
+
|
|
25842
|
+
|
|
25843
|
+
|
|
25844
|
+
|
|
25845
|
+
|
|
25846
|
+
|
|
25847
|
+
|
|
25848
|
+
|
|
25849
|
+
|
|
25850
|
+
|
|
24857
25851
|
|
|
24858
25852
|
|
|
24859
25853
|
|
|
@@ -25049,6 +26043,21 @@ var TreeSet = class _TreeSet {
|
|
|
25049
26043
|
|
|
25050
26044
|
|
|
25051
26045
|
|
|
26046
|
+
|
|
26047
|
+
|
|
26048
|
+
|
|
26049
|
+
|
|
26050
|
+
|
|
26051
|
+
|
|
26052
|
+
|
|
26053
|
+
|
|
26054
|
+
|
|
26055
|
+
|
|
26056
|
+
|
|
26057
|
+
|
|
26058
|
+
|
|
26059
|
+
|
|
26060
|
+
|
|
25052
26061
|
|
|
25053
26062
|
|
|
25054
26063
|
|
|
@@ -25238,6 +26247,21 @@ var TreeSet = class _TreeSet {
|
|
|
25238
26247
|
|
|
25239
26248
|
|
|
25240
26249
|
|
|
26250
|
+
|
|
26251
|
+
|
|
26252
|
+
|
|
26253
|
+
|
|
26254
|
+
|
|
26255
|
+
|
|
26256
|
+
|
|
26257
|
+
|
|
26258
|
+
|
|
26259
|
+
|
|
26260
|
+
|
|
26261
|
+
|
|
26262
|
+
|
|
26263
|
+
|
|
26264
|
+
|
|
25241
26265
|
|
|
25242
26266
|
|
|
25243
26267
|
|
|
@@ -25300,6 +26324,9 @@ var TreeSet = class _TreeSet {
|
|
|
25300
26324
|
|
|
25301
26325
|
|
|
25302
26326
|
|
|
26327
|
+
|
|
26328
|
+
|
|
26329
|
+
|
|
25303
26330
|
|
|
25304
26331
|
|
|
25305
26332
|
|
|
@@ -25372,6 +26399,9 @@ var TreeSet = class _TreeSet {
|
|
|
25372
26399
|
|
|
25373
26400
|
|
|
25374
26401
|
|
|
26402
|
+
|
|
26403
|
+
|
|
26404
|
+
|
|
25375
26405
|
|
|
25376
26406
|
|
|
25377
26407
|
|
|
@@ -25422,6 +26452,9 @@ var TreeSet = class _TreeSet {
|
|
|
25422
26452
|
|
|
25423
26453
|
|
|
25424
26454
|
|
|
26455
|
+
|
|
26456
|
+
|
|
26457
|
+
|
|
25425
26458
|
|
|
25426
26459
|
|
|
25427
26460
|
|
|
@@ -25477,6 +26510,9 @@ var TreeSet = class _TreeSet {
|
|
|
25477
26510
|
|
|
25478
26511
|
|
|
25479
26512
|
|
|
26513
|
+
|
|
26514
|
+
|
|
26515
|
+
|
|
25480
26516
|
|
|
25481
26517
|
|
|
25482
26518
|
|
|
@@ -25633,6 +26669,18 @@ var TreeSet = class _TreeSet {
|
|
|
25633
26669
|
|
|
25634
26670
|
|
|
25635
26671
|
|
|
26672
|
+
|
|
26673
|
+
|
|
26674
|
+
|
|
26675
|
+
|
|
26676
|
+
|
|
26677
|
+
|
|
26678
|
+
|
|
26679
|
+
|
|
26680
|
+
|
|
26681
|
+
|
|
26682
|
+
|
|
26683
|
+
|
|
25636
26684
|
|
|
25637
26685
|
|
|
25638
26686
|
|
|
@@ -25806,6 +26854,18 @@ var TreeSet = class _TreeSet {
|
|
|
25806
26854
|
|
|
25807
26855
|
|
|
25808
26856
|
|
|
26857
|
+
|
|
26858
|
+
|
|
26859
|
+
|
|
26860
|
+
|
|
26861
|
+
|
|
26862
|
+
|
|
26863
|
+
|
|
26864
|
+
|
|
26865
|
+
|
|
26866
|
+
|
|
26867
|
+
|
|
26868
|
+
|
|
25809
26869
|
|
|
25810
26870
|
|
|
25811
26871
|
|
|
@@ -25971,6 +27031,18 @@ var TreeSet = class _TreeSet {
|
|
|
25971
27031
|
|
|
25972
27032
|
|
|
25973
27033
|
|
|
27034
|
+
|
|
27035
|
+
|
|
27036
|
+
|
|
27037
|
+
|
|
27038
|
+
|
|
27039
|
+
|
|
27040
|
+
|
|
27041
|
+
|
|
27042
|
+
|
|
27043
|
+
|
|
27044
|
+
|
|
27045
|
+
|
|
25974
27046
|
|
|
25975
27047
|
|
|
25976
27048
|
|
|
@@ -26134,6 +27206,18 @@ var TreeSet = class _TreeSet {
|
|
|
26134
27206
|
|
|
26135
27207
|
|
|
26136
27208
|
|
|
27209
|
+
|
|
27210
|
+
|
|
27211
|
+
|
|
27212
|
+
|
|
27213
|
+
|
|
27214
|
+
|
|
27215
|
+
|
|
27216
|
+
|
|
27217
|
+
|
|
27218
|
+
|
|
27219
|
+
|
|
27220
|
+
|
|
26137
27221
|
|
|
26138
27222
|
|
|
26139
27223
|
|
|
@@ -26300,6 +27384,18 @@ var TreeSet = class _TreeSet {
|
|
|
26300
27384
|
|
|
26301
27385
|
|
|
26302
27386
|
|
|
27387
|
+
|
|
27388
|
+
|
|
27389
|
+
|
|
27390
|
+
|
|
27391
|
+
|
|
27392
|
+
|
|
27393
|
+
|
|
27394
|
+
|
|
27395
|
+
|
|
27396
|
+
|
|
27397
|
+
|
|
27398
|
+
|
|
26303
27399
|
|
|
26304
27400
|
|
|
26305
27401
|
|
|
@@ -26393,6 +27489,12 @@ var TreeSet = class _TreeSet {
|
|
|
26393
27489
|
|
|
26394
27490
|
|
|
26395
27491
|
|
|
27492
|
+
|
|
27493
|
+
|
|
27494
|
+
|
|
27495
|
+
|
|
27496
|
+
|
|
27497
|
+
|
|
26396
27498
|
* @example
|
|
26397
27499
|
* // Pagination by position in tree order
|
|
26398
27500
|
* const tree = new TreeSet<number>(
|
|
@@ -26585,6 +27687,145 @@ var TreeSet = class _TreeSet {
|
|
|
26585
27687
|
|
|
26586
27688
|
|
|
26587
27689
|
|
|
27690
|
+
|
|
27691
|
+
|
|
27692
|
+
|
|
27693
|
+
|
|
27694
|
+
|
|
27695
|
+
|
|
27696
|
+
|
|
27697
|
+
|
|
27698
|
+
|
|
27699
|
+
|
|
27700
|
+
|
|
27701
|
+
|
|
27702
|
+
|
|
27703
|
+
* @example
|
|
27704
|
+
* // Deep clone
|
|
27705
|
+
* const ts = new TreeSet<number>([1, 2, 3]);
|
|
27706
|
+
* const copy = ts.clone();
|
|
27707
|
+
* copy.delete(1);
|
|
27708
|
+
* console.log(ts.has(1)); // true;
|
|
27709
|
+
*/
|
|
27710
|
+
// ---- ES2025 Set-like operations ----
|
|
27711
|
+
/**
|
|
27712
|
+
* Return a new TreeSet containing all elements from both sets.
|
|
27713
|
+
* @remarks When both sets share the same comparator, uses O(n+m) merge. Otherwise O(m log n).
|
|
27714
|
+
* @param other - Any iterable of keys.
|
|
27715
|
+
* @returns A new TreeSet.
|
|
27716
|
+
* @example
|
|
27717
|
+
* // Merge two sets
|
|
27718
|
+
* console.log([...a.union(b)]); // [1, 2, 3, 4, 5, 6, 7];
|
|
27719
|
+
*/
|
|
27720
|
+
union(other) {
|
|
27721
|
+
const result = this.clone();
|
|
27722
|
+
for (const key of other) result.add(key);
|
|
27723
|
+
return result;
|
|
27724
|
+
}
|
|
27725
|
+
/**
|
|
27726
|
+
* Return a new TreeSet containing only elements present in both sets.
|
|
27727
|
+
* @remarks Time O(n+m) with ordered merge when possible, otherwise O(n log m).
|
|
27728
|
+
* @param other - Any iterable of keys (converted to Set for fast lookup if not a TreeSet).
|
|
27729
|
+
* @returns A new TreeSet.
|
|
27730
|
+
* @example
|
|
27731
|
+
* // Find common elements
|
|
27732
|
+
* console.log([...a.intersection(b)]); // [3, 4, 5];
|
|
27733
|
+
*/
|
|
27734
|
+
intersection(other) {
|
|
27735
|
+
const otherSet = other instanceof _TreeSet || other instanceof Set ? other : new Set(other);
|
|
27736
|
+
const result = new _TreeSet([], { comparator: this.#isDefaultComparator ? void 0 : this.#userComparator });
|
|
27737
|
+
for (const key of this) {
|
|
27738
|
+
if (otherSet.has(key)) result.add(key);
|
|
27739
|
+
}
|
|
27740
|
+
return result;
|
|
27741
|
+
}
|
|
27742
|
+
/**
|
|
27743
|
+
* Return a new TreeSet containing elements in this set but not in the other.
|
|
27744
|
+
* @remarks Time O(n+m) with ordered merge when possible, otherwise O(n log m).
|
|
27745
|
+
* @param other - Any iterable of keys.
|
|
27746
|
+
* @returns A new TreeSet.
|
|
27747
|
+
* @example
|
|
27748
|
+
* // Find exclusive elements
|
|
27749
|
+
* console.log([...a.difference(b)]); // [1, 2];
|
|
27750
|
+
*/
|
|
27751
|
+
difference(other) {
|
|
27752
|
+
const otherSet = other instanceof _TreeSet || other instanceof Set ? other : new Set(other);
|
|
27753
|
+
const result = new _TreeSet([], { comparator: this.#isDefaultComparator ? void 0 : this.#userComparator });
|
|
27754
|
+
for (const key of this) {
|
|
27755
|
+
if (!otherSet.has(key)) result.add(key);
|
|
27756
|
+
}
|
|
27757
|
+
return result;
|
|
27758
|
+
}
|
|
27759
|
+
/**
|
|
27760
|
+
* Return a new TreeSet containing elements in either set but not both.
|
|
27761
|
+
* @remarks Time O(n+m).
|
|
27762
|
+
* @param other - Any iterable of keys.
|
|
27763
|
+
* @returns A new TreeSet.
|
|
27764
|
+
* @example
|
|
27765
|
+
* // Find symmetric difference
|
|
27766
|
+
* console.log([...a.symmetricDifference(b)]); // [1, 2, 6, 7];
|
|
27767
|
+
*/
|
|
27768
|
+
symmetricDifference(other) {
|
|
27769
|
+
const otherSet = other instanceof _TreeSet || other instanceof Set ? other : new Set(other);
|
|
27770
|
+
const result = new _TreeSet([], { comparator: this.#isDefaultComparator ? void 0 : this.#userComparator });
|
|
27771
|
+
for (const key of this) {
|
|
27772
|
+
if (!otherSet.has(key)) result.add(key);
|
|
27773
|
+
}
|
|
27774
|
+
for (const key of otherSet) {
|
|
27775
|
+
if (!this.has(key)) result.add(key);
|
|
27776
|
+
}
|
|
27777
|
+
return result;
|
|
27778
|
+
}
|
|
27779
|
+
/**
|
|
27780
|
+
* Check whether every element in this set is also in the other.
|
|
27781
|
+
* @remarks Time O(n).
|
|
27782
|
+
* @param other - Any iterable of keys (converted to Set for fast lookup if not a TreeSet).
|
|
27783
|
+
* @returns `true` if this is a subset of other.
|
|
27784
|
+
* @example
|
|
27785
|
+
* // Check subset
|
|
27786
|
+
* console.log(new TreeSet([3, 4]).isSubsetOf(a)); // true;
|
|
27787
|
+
*/
|
|
27788
|
+
isSubsetOf(other) {
|
|
27789
|
+
const otherSet = other instanceof _TreeSet || other instanceof Set ? other : new Set(other);
|
|
27790
|
+
for (const key of this) {
|
|
27791
|
+
if (!otherSet.has(key)) return false;
|
|
27792
|
+
}
|
|
27793
|
+
return true;
|
|
27794
|
+
}
|
|
27795
|
+
/**
|
|
27796
|
+
* Check whether every element in the other set is also in this set.
|
|
27797
|
+
* @remarks Time O(m).
|
|
27798
|
+
* @param other - Any iterable of keys.
|
|
27799
|
+
* @returns `true` if this is a superset of other.
|
|
27800
|
+
* @example
|
|
27801
|
+
* // Check superset
|
|
27802
|
+
* console.log(a.isSupersetOf(new TreeSet([2, 3]))); // true;
|
|
27803
|
+
*/
|
|
27804
|
+
isSupersetOf(other) {
|
|
27805
|
+
for (const key of other) {
|
|
27806
|
+
if (!this.has(key)) return false;
|
|
27807
|
+
}
|
|
27808
|
+
return true;
|
|
27809
|
+
}
|
|
27810
|
+
/**
|
|
27811
|
+
* Check whether this set and the other share no common elements.
|
|
27812
|
+
* @remarks Time O(min(n,m)), can short-circuit on first overlap.
|
|
27813
|
+
* @param other - Any iterable of keys (converted to Set for fast lookup if not a TreeSet).
|
|
27814
|
+
* @returns `true` if sets are disjoint.
|
|
27815
|
+
* @example
|
|
27816
|
+
* // Check disjoint
|
|
27817
|
+
* console.log(a.isDisjointFrom(new TreeSet([8, 9]))); // true;
|
|
27818
|
+
*/
|
|
27819
|
+
isDisjointFrom(other) {
|
|
27820
|
+
const otherSet = other instanceof _TreeSet || other instanceof Set ? other : new Set(other);
|
|
27821
|
+
for (const key of this) {
|
|
27822
|
+
if (otherSet.has(key)) return false;
|
|
27823
|
+
}
|
|
27824
|
+
return true;
|
|
27825
|
+
}
|
|
27826
|
+
/**
|
|
27827
|
+
* Deep copy
|
|
27828
|
+
|
|
26588
27829
|
|
|
26589
27830
|
|
|
26590
27831
|
|
|
@@ -26847,6 +28088,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
26847
28088
|
|
|
26848
28089
|
|
|
26849
28090
|
|
|
28091
|
+
|
|
28092
|
+
|
|
28093
|
+
|
|
28094
|
+
|
|
28095
|
+
|
|
28096
|
+
|
|
28097
|
+
|
|
28098
|
+
|
|
28099
|
+
|
|
28100
|
+
|
|
28101
|
+
|
|
28102
|
+
|
|
28103
|
+
|
|
28104
|
+
|
|
28105
|
+
|
|
26850
28106
|
|
|
26851
28107
|
|
|
26852
28108
|
|
|
@@ -27035,6 +28291,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27035
28291
|
|
|
27036
28292
|
|
|
27037
28293
|
|
|
28294
|
+
|
|
28295
|
+
|
|
28296
|
+
|
|
28297
|
+
|
|
28298
|
+
|
|
28299
|
+
|
|
28300
|
+
|
|
28301
|
+
|
|
28302
|
+
|
|
28303
|
+
|
|
28304
|
+
|
|
28305
|
+
|
|
28306
|
+
|
|
28307
|
+
|
|
28308
|
+
|
|
27038
28309
|
|
|
27039
28310
|
|
|
27040
28311
|
|
|
@@ -27090,6 +28361,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27090
28361
|
|
|
27091
28362
|
|
|
27092
28363
|
|
|
28364
|
+
|
|
28365
|
+
|
|
28366
|
+
|
|
27093
28367
|
|
|
27094
28368
|
|
|
27095
28369
|
|
|
@@ -27134,6 +28408,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27134
28408
|
|
|
27135
28409
|
|
|
27136
28410
|
|
|
28411
|
+
|
|
28412
|
+
|
|
28413
|
+
|
|
27137
28414
|
|
|
27138
28415
|
|
|
27139
28416
|
|
|
@@ -27355,6 +28632,24 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27355
28632
|
|
|
27356
28633
|
|
|
27357
28634
|
|
|
28635
|
+
|
|
28636
|
+
|
|
28637
|
+
|
|
28638
|
+
|
|
28639
|
+
|
|
28640
|
+
|
|
28641
|
+
|
|
28642
|
+
|
|
28643
|
+
|
|
28644
|
+
|
|
28645
|
+
|
|
28646
|
+
|
|
28647
|
+
|
|
28648
|
+
|
|
28649
|
+
|
|
28650
|
+
|
|
28651
|
+
|
|
28652
|
+
|
|
27358
28653
|
|
|
27359
28654
|
|
|
27360
28655
|
|
|
@@ -27589,6 +28884,24 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27589
28884
|
|
|
27590
28885
|
|
|
27591
28886
|
|
|
28887
|
+
|
|
28888
|
+
|
|
28889
|
+
|
|
28890
|
+
|
|
28891
|
+
|
|
28892
|
+
|
|
28893
|
+
|
|
28894
|
+
|
|
28895
|
+
|
|
28896
|
+
|
|
28897
|
+
|
|
28898
|
+
|
|
28899
|
+
|
|
28900
|
+
|
|
28901
|
+
|
|
28902
|
+
|
|
28903
|
+
|
|
28904
|
+
|
|
27592
28905
|
|
|
27593
28906
|
|
|
27594
28907
|
|
|
@@ -27778,6 +29091,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
27778
29091
|
|
|
27779
29092
|
|
|
27780
29093
|
|
|
29094
|
+
|
|
29095
|
+
|
|
29096
|
+
|
|
29097
|
+
|
|
29098
|
+
|
|
29099
|
+
|
|
29100
|
+
|
|
29101
|
+
|
|
29102
|
+
|
|
29103
|
+
|
|
29104
|
+
|
|
29105
|
+
|
|
29106
|
+
|
|
29107
|
+
|
|
29108
|
+
|
|
27781
29109
|
|
|
27782
29110
|
|
|
27783
29111
|
|
|
@@ -28034,6 +29362,24 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28034
29362
|
|
|
28035
29363
|
|
|
28036
29364
|
|
|
29365
|
+
|
|
29366
|
+
|
|
29367
|
+
|
|
29368
|
+
|
|
29369
|
+
|
|
29370
|
+
|
|
29371
|
+
|
|
29372
|
+
|
|
29373
|
+
|
|
29374
|
+
|
|
29375
|
+
|
|
29376
|
+
|
|
29377
|
+
|
|
29378
|
+
|
|
29379
|
+
|
|
29380
|
+
|
|
29381
|
+
|
|
29382
|
+
|
|
28037
29383
|
|
|
28038
29384
|
|
|
28039
29385
|
|
|
@@ -28094,6 +29440,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28094
29440
|
|
|
28095
29441
|
|
|
28096
29442
|
|
|
29443
|
+
|
|
29444
|
+
|
|
29445
|
+
|
|
28097
29446
|
|
|
28098
29447
|
|
|
28099
29448
|
|
|
@@ -28139,6 +29488,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28139
29488
|
|
|
28140
29489
|
|
|
28141
29490
|
|
|
29491
|
+
|
|
29492
|
+
|
|
29493
|
+
|
|
28142
29494
|
|
|
28143
29495
|
|
|
28144
29496
|
|
|
@@ -28189,6 +29541,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28189
29541
|
|
|
28190
29542
|
|
|
28191
29543
|
|
|
29544
|
+
|
|
29545
|
+
|
|
29546
|
+
|
|
28192
29547
|
|
|
28193
29548
|
|
|
28194
29549
|
|
|
@@ -28391,6 +29746,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28391
29746
|
|
|
28392
29747
|
|
|
28393
29748
|
|
|
29749
|
+
|
|
29750
|
+
|
|
29751
|
+
|
|
29752
|
+
|
|
29753
|
+
|
|
29754
|
+
|
|
29755
|
+
|
|
29756
|
+
|
|
29757
|
+
|
|
29758
|
+
|
|
29759
|
+
|
|
29760
|
+
|
|
29761
|
+
|
|
29762
|
+
|
|
29763
|
+
|
|
28394
29764
|
|
|
28395
29765
|
|
|
28396
29766
|
|
|
@@ -28582,6 +29952,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28582
29952
|
|
|
28583
29953
|
|
|
28584
29954
|
|
|
29955
|
+
|
|
29956
|
+
|
|
29957
|
+
|
|
29958
|
+
|
|
29959
|
+
|
|
29960
|
+
|
|
29961
|
+
|
|
29962
|
+
|
|
29963
|
+
|
|
29964
|
+
|
|
29965
|
+
|
|
29966
|
+
|
|
29967
|
+
|
|
29968
|
+
|
|
29969
|
+
|
|
28585
29970
|
|
|
28586
29971
|
|
|
28587
29972
|
|
|
@@ -28608,6 +29993,31 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28608
29993
|
*values() {
|
|
28609
29994
|
for (const [, bucket] of this) yield bucket;
|
|
28610
29995
|
}
|
|
29996
|
+
/**
|
|
29997
|
+
* Iterate over all `[key, values[]]` entries (Map-compatible).
|
|
29998
|
+
* @remarks Time O(n), Space O(1) per step.
|
|
29999
|
+
|
|
30000
|
+
|
|
30001
|
+
|
|
30002
|
+
|
|
30003
|
+
|
|
30004
|
+
|
|
30005
|
+
|
|
30006
|
+
|
|
30007
|
+
* @example
|
|
30008
|
+
* // Iterate over entries
|
|
30009
|
+
* const mm = new TreeMultiMap<number, string>();
|
|
30010
|
+
* mm.set(1, 'a');
|
|
30011
|
+
* mm.set(1, 'b');
|
|
30012
|
+
* mm.set(2, 'c');
|
|
30013
|
+
* console.log([...mm.entries()]); // [
|
|
30014
|
+
* // [1, ['a', 'b']],
|
|
30015
|
+
* // [2, ['c']]
|
|
30016
|
+
* // ];
|
|
30017
|
+
*/
|
|
30018
|
+
*entries() {
|
|
30019
|
+
yield* this;
|
|
30020
|
+
}
|
|
28611
30021
|
// ---- entry-flat views ----
|
|
28612
30022
|
/**
|
|
28613
30023
|
* Iterates over all entries for a specific key.
|
|
@@ -28638,6 +30048,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28638
30048
|
|
|
28639
30049
|
|
|
28640
30050
|
|
|
30051
|
+
|
|
30052
|
+
|
|
30053
|
+
|
|
28641
30054
|
|
|
28642
30055
|
|
|
28643
30056
|
|
|
@@ -28683,6 +30096,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28683
30096
|
|
|
28684
30097
|
|
|
28685
30098
|
|
|
30099
|
+
|
|
30100
|
+
|
|
30101
|
+
|
|
28686
30102
|
|
|
28687
30103
|
|
|
28688
30104
|
|
|
@@ -28728,6 +30144,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28728
30144
|
|
|
28729
30145
|
|
|
28730
30146
|
|
|
30147
|
+
|
|
30148
|
+
|
|
30149
|
+
|
|
28731
30150
|
|
|
28732
30151
|
|
|
28733
30152
|
|
|
@@ -28812,6 +30231,12 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28812
30231
|
|
|
28813
30232
|
|
|
28814
30233
|
|
|
30234
|
+
|
|
30235
|
+
|
|
30236
|
+
|
|
30237
|
+
|
|
30238
|
+
|
|
30239
|
+
|
|
28815
30240
|
|
|
28816
30241
|
|
|
28817
30242
|
|
|
@@ -28901,6 +30326,12 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28901
30326
|
|
|
28902
30327
|
|
|
28903
30328
|
|
|
30329
|
+
|
|
30330
|
+
|
|
30331
|
+
|
|
30332
|
+
|
|
30333
|
+
|
|
30334
|
+
|
|
28904
30335
|
|
|
28905
30336
|
|
|
28906
30337
|
|
|
@@ -28954,6 +30385,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
28954
30385
|
|
|
28955
30386
|
|
|
28956
30387
|
|
|
30388
|
+
|
|
30389
|
+
|
|
30390
|
+
|
|
28957
30391
|
|
|
28958
30392
|
|
|
28959
30393
|
|
|
@@ -29003,6 +30437,9 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29003
30437
|
|
|
29004
30438
|
|
|
29005
30439
|
|
|
30440
|
+
|
|
30441
|
+
|
|
30442
|
+
|
|
29006
30443
|
|
|
29007
30444
|
|
|
29008
30445
|
|
|
@@ -29189,6 +30626,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29189
30626
|
|
|
29190
30627
|
|
|
29191
30628
|
|
|
30629
|
+
|
|
30630
|
+
|
|
30631
|
+
|
|
30632
|
+
|
|
30633
|
+
|
|
30634
|
+
|
|
30635
|
+
|
|
30636
|
+
|
|
30637
|
+
|
|
30638
|
+
|
|
30639
|
+
|
|
30640
|
+
|
|
30641
|
+
|
|
30642
|
+
|
|
30643
|
+
|
|
29192
30644
|
|
|
29193
30645
|
|
|
29194
30646
|
|
|
@@ -29391,6 +30843,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29391
30843
|
|
|
29392
30844
|
|
|
29393
30845
|
|
|
30846
|
+
|
|
30847
|
+
|
|
30848
|
+
|
|
30849
|
+
|
|
30850
|
+
|
|
30851
|
+
|
|
30852
|
+
|
|
30853
|
+
|
|
30854
|
+
|
|
30855
|
+
|
|
30856
|
+
|
|
30857
|
+
|
|
30858
|
+
|
|
30859
|
+
|
|
30860
|
+
|
|
29394
30861
|
|
|
29395
30862
|
|
|
29396
30863
|
|
|
@@ -29557,6 +31024,18 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29557
31024
|
|
|
29558
31025
|
|
|
29559
31026
|
|
|
31027
|
+
|
|
31028
|
+
|
|
31029
|
+
|
|
31030
|
+
|
|
31031
|
+
|
|
31032
|
+
|
|
31033
|
+
|
|
31034
|
+
|
|
31035
|
+
|
|
31036
|
+
|
|
31037
|
+
|
|
31038
|
+
|
|
29560
31039
|
|
|
29561
31040
|
|
|
29562
31041
|
|
|
@@ -29719,6 +31198,18 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29719
31198
|
|
|
29720
31199
|
|
|
29721
31200
|
|
|
31201
|
+
|
|
31202
|
+
|
|
31203
|
+
|
|
31204
|
+
|
|
31205
|
+
|
|
31206
|
+
|
|
31207
|
+
|
|
31208
|
+
|
|
31209
|
+
|
|
31210
|
+
|
|
31211
|
+
|
|
31212
|
+
|
|
29722
31213
|
|
|
29723
31214
|
|
|
29724
31215
|
|
|
@@ -29915,6 +31406,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
29915
31406
|
|
|
29916
31407
|
|
|
29917
31408
|
|
|
31409
|
+
|
|
31410
|
+
|
|
31411
|
+
|
|
31412
|
+
|
|
31413
|
+
|
|
31414
|
+
|
|
31415
|
+
|
|
31416
|
+
|
|
31417
|
+
|
|
31418
|
+
|
|
31419
|
+
|
|
31420
|
+
|
|
31421
|
+
|
|
31422
|
+
|
|
31423
|
+
|
|
29918
31424
|
|
|
29919
31425
|
|
|
29920
31426
|
|
|
@@ -30105,6 +31611,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
30105
31611
|
|
|
30106
31612
|
|
|
30107
31613
|
|
|
31614
|
+
|
|
31615
|
+
|
|
31616
|
+
|
|
31617
|
+
|
|
31618
|
+
|
|
31619
|
+
|
|
31620
|
+
|
|
31621
|
+
|
|
31622
|
+
|
|
31623
|
+
|
|
31624
|
+
|
|
31625
|
+
|
|
31626
|
+
|
|
31627
|
+
|
|
31628
|
+
|
|
30108
31629
|
|
|
30109
31630
|
|
|
30110
31631
|
|
|
@@ -30300,6 +31821,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
30300
31821
|
|
|
30301
31822
|
|
|
30302
31823
|
|
|
31824
|
+
|
|
31825
|
+
|
|
31826
|
+
|
|
31827
|
+
|
|
31828
|
+
|
|
31829
|
+
|
|
31830
|
+
|
|
31831
|
+
|
|
31832
|
+
|
|
31833
|
+
|
|
31834
|
+
|
|
31835
|
+
|
|
31836
|
+
|
|
31837
|
+
|
|
31838
|
+
|
|
30303
31839
|
|
|
30304
31840
|
|
|
30305
31841
|
|
|
@@ -30497,6 +32033,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
30497
32033
|
|
|
30498
32034
|
|
|
30499
32035
|
|
|
32036
|
+
|
|
32037
|
+
|
|
32038
|
+
|
|
32039
|
+
|
|
32040
|
+
|
|
32041
|
+
|
|
32042
|
+
|
|
32043
|
+
|
|
32044
|
+
|
|
32045
|
+
|
|
32046
|
+
|
|
32047
|
+
|
|
32048
|
+
|
|
32049
|
+
|
|
32050
|
+
|
|
30500
32051
|
|
|
30501
32052
|
|
|
30502
32053
|
|
|
@@ -30692,6 +32243,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
30692
32243
|
|
|
30693
32244
|
|
|
30694
32245
|
|
|
32246
|
+
|
|
32247
|
+
|
|
32248
|
+
|
|
32249
|
+
|
|
32250
|
+
|
|
32251
|
+
|
|
32252
|
+
|
|
32253
|
+
|
|
32254
|
+
|
|
32255
|
+
|
|
32256
|
+
|
|
32257
|
+
|
|
32258
|
+
|
|
32259
|
+
|
|
32260
|
+
|
|
30695
32261
|
|
|
30696
32262
|
|
|
30697
32263
|
|
|
@@ -30880,6 +32446,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
30880
32446
|
|
|
30881
32447
|
|
|
30882
32448
|
|
|
32449
|
+
|
|
32450
|
+
|
|
32451
|
+
|
|
32452
|
+
|
|
32453
|
+
|
|
32454
|
+
|
|
32455
|
+
|
|
32456
|
+
|
|
32457
|
+
|
|
32458
|
+
|
|
32459
|
+
|
|
32460
|
+
|
|
32461
|
+
|
|
32462
|
+
|
|
32463
|
+
|
|
30883
32464
|
|
|
30884
32465
|
|
|
30885
32466
|
|
|
@@ -31041,6 +32622,18 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
31041
32622
|
|
|
31042
32623
|
|
|
31043
32624
|
|
|
32625
|
+
|
|
32626
|
+
|
|
32627
|
+
|
|
32628
|
+
|
|
32629
|
+
|
|
32630
|
+
|
|
32631
|
+
|
|
32632
|
+
|
|
32633
|
+
|
|
32634
|
+
|
|
32635
|
+
|
|
32636
|
+
|
|
31044
32637
|
|
|
31045
32638
|
|
|
31046
32639
|
|
|
@@ -31265,6 +32858,12 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
31265
32858
|
|
|
31266
32859
|
|
|
31267
32860
|
|
|
32861
|
+
|
|
32862
|
+
|
|
32863
|
+
|
|
32864
|
+
|
|
32865
|
+
|
|
32866
|
+
|
|
31268
32867
|
* @example
|
|
31269
32868
|
* // Pagination by position in tree order
|
|
31270
32869
|
* const tree = new TreeMultiMap<number>(
|
|
@@ -31304,6 +32903,21 @@ var TreeMultiMap = class _TreeMultiMap {
|
|
|
31304
32903
|
|
|
31305
32904
|
|
|
31306
32905
|
|
|
32906
|
+
|
|
32907
|
+
|
|
32908
|
+
|
|
32909
|
+
|
|
32910
|
+
|
|
32911
|
+
|
|
32912
|
+
|
|
32913
|
+
|
|
32914
|
+
|
|
32915
|
+
|
|
32916
|
+
|
|
32917
|
+
|
|
32918
|
+
|
|
32919
|
+
|
|
32920
|
+
|
|
31307
32921
|
|
|
31308
32922
|
|
|
31309
32923
|
|
|
@@ -31587,6 +33201,21 @@ var TreeMap = class _TreeMap {
|
|
|
31587
33201
|
|
|
31588
33202
|
|
|
31589
33203
|
|
|
33204
|
+
|
|
33205
|
+
|
|
33206
|
+
|
|
33207
|
+
|
|
33208
|
+
|
|
33209
|
+
|
|
33210
|
+
|
|
33211
|
+
|
|
33212
|
+
|
|
33213
|
+
|
|
33214
|
+
|
|
33215
|
+
|
|
33216
|
+
|
|
33217
|
+
|
|
33218
|
+
|
|
31590
33219
|
|
|
31591
33220
|
|
|
31592
33221
|
|
|
@@ -31784,6 +33413,21 @@ var TreeMap = class _TreeMap {
|
|
|
31784
33413
|
|
|
31785
33414
|
|
|
31786
33415
|
|
|
33416
|
+
|
|
33417
|
+
|
|
33418
|
+
|
|
33419
|
+
|
|
33420
|
+
|
|
33421
|
+
|
|
33422
|
+
|
|
33423
|
+
|
|
33424
|
+
|
|
33425
|
+
|
|
33426
|
+
|
|
33427
|
+
|
|
33428
|
+
|
|
33429
|
+
|
|
33430
|
+
|
|
31787
33431
|
|
|
31788
33432
|
|
|
31789
33433
|
|
|
@@ -31838,6 +33482,18 @@ var TreeMap = class _TreeMap {
|
|
|
31838
33482
|
|
|
31839
33483
|
|
|
31840
33484
|
|
|
33485
|
+
|
|
33486
|
+
|
|
33487
|
+
|
|
33488
|
+
|
|
33489
|
+
|
|
33490
|
+
|
|
33491
|
+
|
|
33492
|
+
|
|
33493
|
+
|
|
33494
|
+
|
|
33495
|
+
|
|
33496
|
+
|
|
31841
33497
|
|
|
31842
33498
|
|
|
31843
33499
|
|
|
@@ -32037,6 +33693,21 @@ var TreeMap = class _TreeMap {
|
|
|
32037
33693
|
|
|
32038
33694
|
|
|
32039
33695
|
|
|
33696
|
+
|
|
33697
|
+
|
|
33698
|
+
|
|
33699
|
+
|
|
33700
|
+
|
|
33701
|
+
|
|
33702
|
+
|
|
33703
|
+
|
|
33704
|
+
|
|
33705
|
+
|
|
33706
|
+
|
|
33707
|
+
|
|
33708
|
+
|
|
33709
|
+
|
|
33710
|
+
|
|
32040
33711
|
|
|
32041
33712
|
|
|
32042
33713
|
|
|
@@ -32245,6 +33916,21 @@ var TreeMap = class _TreeMap {
|
|
|
32245
33916
|
|
|
32246
33917
|
|
|
32247
33918
|
|
|
33919
|
+
|
|
33920
|
+
|
|
33921
|
+
|
|
33922
|
+
|
|
33923
|
+
|
|
33924
|
+
|
|
33925
|
+
|
|
33926
|
+
|
|
33927
|
+
|
|
33928
|
+
|
|
33929
|
+
|
|
33930
|
+
|
|
33931
|
+
|
|
33932
|
+
|
|
33933
|
+
|
|
32248
33934
|
|
|
32249
33935
|
|
|
32250
33936
|
|
|
@@ -32453,6 +34139,21 @@ var TreeMap = class _TreeMap {
|
|
|
32453
34139
|
|
|
32454
34140
|
|
|
32455
34141
|
|
|
34142
|
+
|
|
34143
|
+
|
|
34144
|
+
|
|
34145
|
+
|
|
34146
|
+
|
|
34147
|
+
|
|
34148
|
+
|
|
34149
|
+
|
|
34150
|
+
|
|
34151
|
+
|
|
34152
|
+
|
|
34153
|
+
|
|
34154
|
+
|
|
34155
|
+
|
|
34156
|
+
|
|
32456
34157
|
|
|
32457
34158
|
|
|
32458
34159
|
|
|
@@ -32667,6 +34368,21 @@ var TreeMap = class _TreeMap {
|
|
|
32667
34368
|
|
|
32668
34369
|
|
|
32669
34370
|
|
|
34371
|
+
|
|
34372
|
+
|
|
34373
|
+
|
|
34374
|
+
|
|
34375
|
+
|
|
34376
|
+
|
|
34377
|
+
|
|
34378
|
+
|
|
34379
|
+
|
|
34380
|
+
|
|
34381
|
+
|
|
34382
|
+
|
|
34383
|
+
|
|
34384
|
+
|
|
34385
|
+
|
|
32670
34386
|
|
|
32671
34387
|
|
|
32672
34388
|
|
|
@@ -32856,6 +34572,21 @@ var TreeMap = class _TreeMap {
|
|
|
32856
34572
|
|
|
32857
34573
|
|
|
32858
34574
|
|
|
34575
|
+
|
|
34576
|
+
|
|
34577
|
+
|
|
34578
|
+
|
|
34579
|
+
|
|
34580
|
+
|
|
34581
|
+
|
|
34582
|
+
|
|
34583
|
+
|
|
34584
|
+
|
|
34585
|
+
|
|
34586
|
+
|
|
34587
|
+
|
|
34588
|
+
|
|
34589
|
+
|
|
32859
34590
|
|
|
32860
34591
|
|
|
32861
34592
|
|
|
@@ -33049,6 +34780,21 @@ var TreeMap = class _TreeMap {
|
|
|
33049
34780
|
|
|
33050
34781
|
|
|
33051
34782
|
|
|
34783
|
+
|
|
34784
|
+
|
|
34785
|
+
|
|
34786
|
+
|
|
34787
|
+
|
|
34788
|
+
|
|
34789
|
+
|
|
34790
|
+
|
|
34791
|
+
|
|
34792
|
+
|
|
34793
|
+
|
|
34794
|
+
|
|
34795
|
+
|
|
34796
|
+
|
|
34797
|
+
|
|
33052
34798
|
|
|
33053
34799
|
|
|
33054
34800
|
|
|
@@ -33239,6 +34985,21 @@ var TreeMap = class _TreeMap {
|
|
|
33239
34985
|
|
|
33240
34986
|
|
|
33241
34987
|
|
|
34988
|
+
|
|
34989
|
+
|
|
34990
|
+
|
|
34991
|
+
|
|
34992
|
+
|
|
34993
|
+
|
|
34994
|
+
|
|
34995
|
+
|
|
34996
|
+
|
|
34997
|
+
|
|
34998
|
+
|
|
34999
|
+
|
|
35000
|
+
|
|
35001
|
+
|
|
35002
|
+
|
|
33242
35003
|
|
|
33243
35004
|
|
|
33244
35005
|
|
|
@@ -33432,6 +35193,21 @@ var TreeMap = class _TreeMap {
|
|
|
33432
35193
|
|
|
33433
35194
|
|
|
33434
35195
|
|
|
35196
|
+
|
|
35197
|
+
|
|
35198
|
+
|
|
35199
|
+
|
|
35200
|
+
|
|
35201
|
+
|
|
35202
|
+
|
|
35203
|
+
|
|
35204
|
+
|
|
35205
|
+
|
|
35206
|
+
|
|
35207
|
+
|
|
35208
|
+
|
|
35209
|
+
|
|
35210
|
+
|
|
33435
35211
|
|
|
33436
35212
|
|
|
33437
35213
|
|
|
@@ -33625,6 +35401,21 @@ var TreeMap = class _TreeMap {
|
|
|
33625
35401
|
|
|
33626
35402
|
|
|
33627
35403
|
|
|
35404
|
+
|
|
35405
|
+
|
|
35406
|
+
|
|
35407
|
+
|
|
35408
|
+
|
|
35409
|
+
|
|
35410
|
+
|
|
35411
|
+
|
|
35412
|
+
|
|
35413
|
+
|
|
35414
|
+
|
|
35415
|
+
|
|
35416
|
+
|
|
35417
|
+
|
|
35418
|
+
|
|
33628
35419
|
|
|
33629
35420
|
|
|
33630
35421
|
|
|
@@ -33821,6 +35612,21 @@ var TreeMap = class _TreeMap {
|
|
|
33821
35612
|
|
|
33822
35613
|
|
|
33823
35614
|
|
|
35615
|
+
|
|
35616
|
+
|
|
35617
|
+
|
|
35618
|
+
|
|
35619
|
+
|
|
35620
|
+
|
|
35621
|
+
|
|
35622
|
+
|
|
35623
|
+
|
|
35624
|
+
|
|
35625
|
+
|
|
35626
|
+
|
|
35627
|
+
|
|
35628
|
+
|
|
35629
|
+
|
|
33824
35630
|
|
|
33825
35631
|
|
|
33826
35632
|
|
|
@@ -34017,6 +35823,21 @@ var TreeMap = class _TreeMap {
|
|
|
34017
35823
|
|
|
34018
35824
|
|
|
34019
35825
|
|
|
35826
|
+
|
|
35827
|
+
|
|
35828
|
+
|
|
35829
|
+
|
|
35830
|
+
|
|
35831
|
+
|
|
35832
|
+
|
|
35833
|
+
|
|
35834
|
+
|
|
35835
|
+
|
|
35836
|
+
|
|
35837
|
+
|
|
35838
|
+
|
|
35839
|
+
|
|
35840
|
+
|
|
34020
35841
|
|
|
34021
35842
|
|
|
34022
35843
|
|
|
@@ -34207,6 +36028,21 @@ var TreeMap = class _TreeMap {
|
|
|
34207
36028
|
|
|
34208
36029
|
|
|
34209
36030
|
|
|
36031
|
+
|
|
36032
|
+
|
|
36033
|
+
|
|
36034
|
+
|
|
36035
|
+
|
|
36036
|
+
|
|
36037
|
+
|
|
36038
|
+
|
|
36039
|
+
|
|
36040
|
+
|
|
36041
|
+
|
|
36042
|
+
|
|
36043
|
+
|
|
36044
|
+
|
|
36045
|
+
|
|
34210
36046
|
|
|
34211
36047
|
|
|
34212
36048
|
|
|
@@ -34399,6 +36235,21 @@ var TreeMap = class _TreeMap {
|
|
|
34399
36235
|
|
|
34400
36236
|
|
|
34401
36237
|
|
|
36238
|
+
|
|
36239
|
+
|
|
36240
|
+
|
|
36241
|
+
|
|
36242
|
+
|
|
36243
|
+
|
|
36244
|
+
|
|
36245
|
+
|
|
36246
|
+
|
|
36247
|
+
|
|
36248
|
+
|
|
36249
|
+
|
|
36250
|
+
|
|
36251
|
+
|
|
36252
|
+
|
|
34402
36253
|
|
|
34403
36254
|
|
|
34404
36255
|
|
|
@@ -34592,6 +36443,21 @@ var TreeMap = class _TreeMap {
|
|
|
34592
36443
|
|
|
34593
36444
|
|
|
34594
36445
|
|
|
36446
|
+
|
|
36447
|
+
|
|
36448
|
+
|
|
36449
|
+
|
|
36450
|
+
|
|
36451
|
+
|
|
36452
|
+
|
|
36453
|
+
|
|
36454
|
+
|
|
36455
|
+
|
|
36456
|
+
|
|
36457
|
+
|
|
36458
|
+
|
|
36459
|
+
|
|
36460
|
+
|
|
34595
36461
|
|
|
34596
36462
|
|
|
34597
36463
|
|
|
@@ -34786,6 +36652,21 @@ var TreeMap = class _TreeMap {
|
|
|
34786
36652
|
|
|
34787
36653
|
|
|
34788
36654
|
|
|
36655
|
+
|
|
36656
|
+
|
|
36657
|
+
|
|
36658
|
+
|
|
36659
|
+
|
|
36660
|
+
|
|
36661
|
+
|
|
36662
|
+
|
|
36663
|
+
|
|
36664
|
+
|
|
36665
|
+
|
|
36666
|
+
|
|
36667
|
+
|
|
36668
|
+
|
|
36669
|
+
|
|
34789
36670
|
|
|
34790
36671
|
|
|
34791
36672
|
|
|
@@ -34975,6 +36856,21 @@ var TreeMap = class _TreeMap {
|
|
|
34975
36856
|
|
|
34976
36857
|
|
|
34977
36858
|
|
|
36859
|
+
|
|
36860
|
+
|
|
36861
|
+
|
|
36862
|
+
|
|
36863
|
+
|
|
36864
|
+
|
|
36865
|
+
|
|
36866
|
+
|
|
36867
|
+
|
|
36868
|
+
|
|
36869
|
+
|
|
36870
|
+
|
|
36871
|
+
|
|
36872
|
+
|
|
36873
|
+
|
|
34978
36874
|
|
|
34979
36875
|
|
|
34980
36876
|
|
|
@@ -35038,6 +36934,9 @@ var TreeMap = class _TreeMap {
|
|
|
35038
36934
|
|
|
35039
36935
|
|
|
35040
36936
|
|
|
36937
|
+
|
|
36938
|
+
|
|
36939
|
+
|
|
35041
36940
|
|
|
35042
36941
|
|
|
35043
36942
|
|
|
@@ -35110,6 +37009,9 @@ var TreeMap = class _TreeMap {
|
|
|
35110
37009
|
|
|
35111
37010
|
|
|
35112
37011
|
|
|
37012
|
+
|
|
37013
|
+
|
|
37014
|
+
|
|
35113
37015
|
|
|
35114
37016
|
|
|
35115
37017
|
|
|
@@ -35166,6 +37068,9 @@ var TreeMap = class _TreeMap {
|
|
|
35166
37068
|
|
|
35167
37069
|
|
|
35168
37070
|
|
|
37071
|
+
|
|
37072
|
+
|
|
37073
|
+
|
|
35169
37074
|
|
|
35170
37075
|
|
|
35171
37076
|
|
|
@@ -35226,6 +37131,9 @@ var TreeMap = class _TreeMap {
|
|
|
35226
37131
|
|
|
35227
37132
|
|
|
35228
37133
|
|
|
37134
|
+
|
|
37135
|
+
|
|
37136
|
+
|
|
35229
37137
|
|
|
35230
37138
|
|
|
35231
37139
|
|
|
@@ -35388,6 +37296,18 @@ var TreeMap = class _TreeMap {
|
|
|
35388
37296
|
|
|
35389
37297
|
|
|
35390
37298
|
|
|
37299
|
+
|
|
37300
|
+
|
|
37301
|
+
|
|
37302
|
+
|
|
37303
|
+
|
|
37304
|
+
|
|
37305
|
+
|
|
37306
|
+
|
|
37307
|
+
|
|
37308
|
+
|
|
37309
|
+
|
|
37310
|
+
|
|
35391
37311
|
|
|
35392
37312
|
|
|
35393
37313
|
|
|
@@ -35577,6 +37497,18 @@ var TreeMap = class _TreeMap {
|
|
|
35577
37497
|
|
|
35578
37498
|
|
|
35579
37499
|
|
|
37500
|
+
|
|
37501
|
+
|
|
37502
|
+
|
|
37503
|
+
|
|
37504
|
+
|
|
37505
|
+
|
|
37506
|
+
|
|
37507
|
+
|
|
37508
|
+
|
|
37509
|
+
|
|
37510
|
+
|
|
37511
|
+
|
|
35580
37512
|
|
|
35581
37513
|
|
|
35582
37514
|
|
|
@@ -35750,6 +37682,18 @@ var TreeMap = class _TreeMap {
|
|
|
35750
37682
|
|
|
35751
37683
|
|
|
35752
37684
|
|
|
37685
|
+
|
|
37686
|
+
|
|
37687
|
+
|
|
37688
|
+
|
|
37689
|
+
|
|
37690
|
+
|
|
37691
|
+
|
|
37692
|
+
|
|
37693
|
+
|
|
37694
|
+
|
|
37695
|
+
|
|
37696
|
+
|
|
35753
37697
|
|
|
35754
37698
|
|
|
35755
37699
|
|
|
@@ -35923,6 +37867,18 @@ var TreeMap = class _TreeMap {
|
|
|
35923
37867
|
|
|
35924
37868
|
|
|
35925
37869
|
|
|
37870
|
+
|
|
37871
|
+
|
|
37872
|
+
|
|
37873
|
+
|
|
37874
|
+
|
|
37875
|
+
|
|
37876
|
+
|
|
37877
|
+
|
|
37878
|
+
|
|
37879
|
+
|
|
37880
|
+
|
|
37881
|
+
|
|
35926
37882
|
|
|
35927
37883
|
|
|
35928
37884
|
|
|
@@ -36097,6 +38053,18 @@ var TreeMap = class _TreeMap {
|
|
|
36097
38053
|
|
|
36098
38054
|
|
|
36099
38055
|
|
|
38056
|
+
|
|
38057
|
+
|
|
38058
|
+
|
|
38059
|
+
|
|
38060
|
+
|
|
38061
|
+
|
|
38062
|
+
|
|
38063
|
+
|
|
38064
|
+
|
|
38065
|
+
|
|
38066
|
+
|
|
38067
|
+
|
|
36100
38068
|
|
|
36101
38069
|
|
|
36102
38070
|
|
|
@@ -36208,6 +38176,12 @@ var TreeMap = class _TreeMap {
|
|
|
36208
38176
|
|
|
36209
38177
|
|
|
36210
38178
|
|
|
38179
|
+
|
|
38180
|
+
|
|
38181
|
+
|
|
38182
|
+
|
|
38183
|
+
|
|
38184
|
+
|
|
36211
38185
|
* @example
|
|
36212
38186
|
* // Pagination by position in tree order
|
|
36213
38187
|
* const tree = new TreeMap<number>(
|
|
@@ -36393,6 +38367,21 @@ var TreeMap = class _TreeMap {
|
|
|
36393
38367
|
|
|
36394
38368
|
|
|
36395
38369
|
|
|
38370
|
+
|
|
38371
|
+
|
|
38372
|
+
|
|
38373
|
+
|
|
38374
|
+
|
|
38375
|
+
|
|
38376
|
+
|
|
38377
|
+
|
|
38378
|
+
|
|
38379
|
+
|
|
38380
|
+
|
|
38381
|
+
|
|
38382
|
+
|
|
38383
|
+
|
|
38384
|
+
|
|
36396
38385
|
|
|
36397
38386
|
|
|
36398
38387
|
|
|
@@ -36516,6 +38505,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
36516
38505
|
|
|
36517
38506
|
|
|
36518
38507
|
|
|
38508
|
+
|
|
38509
|
+
|
|
38510
|
+
|
|
36519
38511
|
|
|
36520
38512
|
|
|
36521
38513
|
|
|
@@ -36695,6 +38687,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
36695
38687
|
|
|
36696
38688
|
|
|
36697
38689
|
|
|
38690
|
+
|
|
38691
|
+
|
|
38692
|
+
|
|
38693
|
+
|
|
38694
|
+
|
|
38695
|
+
|
|
38696
|
+
|
|
38697
|
+
|
|
38698
|
+
|
|
38699
|
+
|
|
38700
|
+
|
|
38701
|
+
|
|
38702
|
+
|
|
38703
|
+
|
|
38704
|
+
|
|
36698
38705
|
|
|
36699
38706
|
|
|
36700
38707
|
|
|
@@ -36886,6 +38893,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
36886
38893
|
|
|
36887
38894
|
|
|
36888
38895
|
|
|
38896
|
+
|
|
38897
|
+
|
|
38898
|
+
|
|
38899
|
+
|
|
38900
|
+
|
|
38901
|
+
|
|
38902
|
+
|
|
38903
|
+
|
|
38904
|
+
|
|
38905
|
+
|
|
38906
|
+
|
|
38907
|
+
|
|
38908
|
+
|
|
38909
|
+
|
|
38910
|
+
|
|
36889
38911
|
|
|
36890
38912
|
|
|
36891
38913
|
|
|
@@ -36942,6 +38964,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
36942
38964
|
|
|
36943
38965
|
|
|
36944
38966
|
|
|
38967
|
+
|
|
38968
|
+
|
|
38969
|
+
|
|
36945
38970
|
|
|
36946
38971
|
|
|
36947
38972
|
|
|
@@ -37116,6 +39141,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37116
39141
|
|
|
37117
39142
|
|
|
37118
39143
|
|
|
39144
|
+
|
|
39145
|
+
|
|
39146
|
+
|
|
39147
|
+
|
|
39148
|
+
|
|
39149
|
+
|
|
39150
|
+
|
|
39151
|
+
|
|
39152
|
+
|
|
39153
|
+
|
|
39154
|
+
|
|
39155
|
+
|
|
39156
|
+
|
|
39157
|
+
|
|
39158
|
+
|
|
37119
39159
|
|
|
37120
39160
|
|
|
37121
39161
|
|
|
@@ -37181,6 +39221,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37181
39221
|
|
|
37182
39222
|
|
|
37183
39223
|
|
|
39224
|
+
|
|
39225
|
+
|
|
39226
|
+
|
|
37184
39227
|
|
|
37185
39228
|
|
|
37186
39229
|
|
|
@@ -37373,6 +39416,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37373
39416
|
|
|
37374
39417
|
|
|
37375
39418
|
|
|
39419
|
+
|
|
39420
|
+
|
|
39421
|
+
|
|
39422
|
+
|
|
39423
|
+
|
|
39424
|
+
|
|
39425
|
+
|
|
39426
|
+
|
|
39427
|
+
|
|
39428
|
+
|
|
39429
|
+
|
|
39430
|
+
|
|
39431
|
+
|
|
39432
|
+
|
|
39433
|
+
|
|
37376
39434
|
|
|
37377
39435
|
|
|
37378
39436
|
|
|
@@ -37439,6 +39497,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37439
39497
|
|
|
37440
39498
|
|
|
37441
39499
|
|
|
39500
|
+
|
|
39501
|
+
|
|
39502
|
+
|
|
37442
39503
|
|
|
37443
39504
|
|
|
37444
39505
|
|
|
@@ -37487,6 +39548,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37487
39548
|
|
|
37488
39549
|
|
|
37489
39550
|
|
|
39551
|
+
|
|
39552
|
+
|
|
39553
|
+
|
|
37490
39554
|
|
|
37491
39555
|
|
|
37492
39556
|
|
|
@@ -37666,6 +39730,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37666
39730
|
|
|
37667
39731
|
|
|
37668
39732
|
|
|
39733
|
+
|
|
39734
|
+
|
|
39735
|
+
|
|
39736
|
+
|
|
39737
|
+
|
|
39738
|
+
|
|
39739
|
+
|
|
39740
|
+
|
|
39741
|
+
|
|
39742
|
+
|
|
39743
|
+
|
|
39744
|
+
|
|
39745
|
+
|
|
39746
|
+
|
|
39747
|
+
|
|
37669
39748
|
|
|
37670
39749
|
|
|
37671
39750
|
|
|
@@ -37702,6 +39781,46 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37702
39781
|
for (let i = 0; i < c; i++) yield k;
|
|
37703
39782
|
}
|
|
37704
39783
|
}
|
|
39784
|
+
/**
|
|
39785
|
+
* Iterate over all elements with multiplicity (Set-compatible, alias for `[Symbol.iterator]`).
|
|
39786
|
+
* @remarks Each key is yielded `count(key)` times. Time O(size), Space O(1) per step.
|
|
39787
|
+
|
|
39788
|
+
|
|
39789
|
+
|
|
39790
|
+
|
|
39791
|
+
|
|
39792
|
+
|
|
39793
|
+
|
|
39794
|
+
|
|
39795
|
+
* @example
|
|
39796
|
+
* // Iterate with multiplicity
|
|
39797
|
+
* const ms = new TreeMultiSet<number>();
|
|
39798
|
+
* ms.add(1); ms.add(1); ms.add(2); ms.add(3); ms.add(3); ms.add(3);
|
|
39799
|
+
* console.log([...ms.keys()]); // [1, 1, 2, 3, 3, 3];
|
|
39800
|
+
*/
|
|
39801
|
+
*keys() {
|
|
39802
|
+
yield* this;
|
|
39803
|
+
}
|
|
39804
|
+
/**
|
|
39805
|
+
* Iterate over all elements with multiplicity (Set-compatible, alias for `[Symbol.iterator]`).
|
|
39806
|
+
* @remarks Each key is yielded `count(key)` times. Time O(size), Space O(1) per step.
|
|
39807
|
+
|
|
39808
|
+
|
|
39809
|
+
|
|
39810
|
+
|
|
39811
|
+
|
|
39812
|
+
|
|
39813
|
+
|
|
39814
|
+
|
|
39815
|
+
* @example
|
|
39816
|
+
* // Iterate with multiplicity
|
|
39817
|
+
* const ms = new TreeMultiSet<number>();
|
|
39818
|
+
* ms.add(5); ms.add(5); ms.add(10);
|
|
39819
|
+
* console.log([...ms.values()]); // [5, 5, 10];
|
|
39820
|
+
*/
|
|
39821
|
+
*values() {
|
|
39822
|
+
yield* this;
|
|
39823
|
+
}
|
|
37705
39824
|
/**
|
|
37706
39825
|
* Returns an array with all elements (expanded).
|
|
37707
39826
|
* @remarks Time O(size), Space O(size)
|
|
@@ -37867,6 +39986,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37867
39986
|
|
|
37868
39987
|
|
|
37869
39988
|
|
|
39989
|
+
|
|
39990
|
+
|
|
39991
|
+
|
|
39992
|
+
|
|
39993
|
+
|
|
39994
|
+
|
|
39995
|
+
|
|
39996
|
+
|
|
39997
|
+
|
|
39998
|
+
|
|
39999
|
+
|
|
40000
|
+
|
|
40001
|
+
|
|
40002
|
+
|
|
40003
|
+
|
|
37870
40004
|
|
|
37871
40005
|
|
|
37872
40006
|
|
|
@@ -37922,6 +40056,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37922
40056
|
|
|
37923
40057
|
|
|
37924
40058
|
|
|
40059
|
+
|
|
40060
|
+
|
|
40061
|
+
|
|
37925
40062
|
|
|
37926
40063
|
|
|
37927
40064
|
|
|
@@ -37965,6 +40102,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
37965
40102
|
|
|
37966
40103
|
|
|
37967
40104
|
|
|
40105
|
+
|
|
40106
|
+
|
|
40107
|
+
|
|
37968
40108
|
|
|
37969
40109
|
|
|
37970
40110
|
|
|
@@ -38153,6 +40293,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38153
40293
|
|
|
38154
40294
|
|
|
38155
40295
|
|
|
40296
|
+
|
|
40297
|
+
|
|
40298
|
+
|
|
40299
|
+
|
|
40300
|
+
|
|
40301
|
+
|
|
40302
|
+
|
|
40303
|
+
|
|
40304
|
+
|
|
40305
|
+
|
|
40306
|
+
|
|
40307
|
+
|
|
40308
|
+
|
|
40309
|
+
|
|
40310
|
+
|
|
38156
40311
|
|
|
38157
40312
|
|
|
38158
40313
|
|
|
@@ -38211,6 +40366,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38211
40366
|
|
|
38212
40367
|
|
|
38213
40368
|
|
|
40369
|
+
|
|
40370
|
+
|
|
40371
|
+
|
|
38214
40372
|
|
|
38215
40373
|
|
|
38216
40374
|
|
|
@@ -38255,6 +40413,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38255
40413
|
|
|
38256
40414
|
|
|
38257
40415
|
|
|
40416
|
+
|
|
40417
|
+
|
|
40418
|
+
|
|
38258
40419
|
|
|
38259
40420
|
|
|
38260
40421
|
|
|
@@ -38299,6 +40460,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38299
40460
|
|
|
38300
40461
|
|
|
38301
40462
|
|
|
40463
|
+
|
|
40464
|
+
|
|
40465
|
+
|
|
38302
40466
|
|
|
38303
40467
|
|
|
38304
40468
|
|
|
@@ -38347,6 +40511,9 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38347
40511
|
|
|
38348
40512
|
|
|
38349
40513
|
|
|
40514
|
+
|
|
40515
|
+
|
|
40516
|
+
|
|
38350
40517
|
|
|
38351
40518
|
|
|
38352
40519
|
|
|
@@ -38496,6 +40663,18 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38496
40663
|
|
|
38497
40664
|
|
|
38498
40665
|
|
|
40666
|
+
|
|
40667
|
+
|
|
40668
|
+
|
|
40669
|
+
|
|
40670
|
+
|
|
40671
|
+
|
|
40672
|
+
|
|
40673
|
+
|
|
40674
|
+
|
|
40675
|
+
|
|
40676
|
+
|
|
40677
|
+
|
|
38499
40678
|
|
|
38500
40679
|
|
|
38501
40680
|
|
|
@@ -38653,6 +40832,18 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38653
40832
|
|
|
38654
40833
|
|
|
38655
40834
|
|
|
40835
|
+
|
|
40836
|
+
|
|
40837
|
+
|
|
40838
|
+
|
|
40839
|
+
|
|
40840
|
+
|
|
40841
|
+
|
|
40842
|
+
|
|
40843
|
+
|
|
40844
|
+
|
|
40845
|
+
|
|
40846
|
+
|
|
38656
40847
|
|
|
38657
40848
|
|
|
38658
40849
|
|
|
@@ -38810,6 +41001,18 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38810
41001
|
|
|
38811
41002
|
|
|
38812
41003
|
|
|
41004
|
+
|
|
41005
|
+
|
|
41006
|
+
|
|
41007
|
+
|
|
41008
|
+
|
|
41009
|
+
|
|
41010
|
+
|
|
41011
|
+
|
|
41012
|
+
|
|
41013
|
+
|
|
41014
|
+
|
|
41015
|
+
|
|
38813
41016
|
|
|
38814
41017
|
|
|
38815
41018
|
|
|
@@ -38966,6 +41169,18 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
38966
41169
|
|
|
38967
41170
|
|
|
38968
41171
|
|
|
41172
|
+
|
|
41173
|
+
|
|
41174
|
+
|
|
41175
|
+
|
|
41176
|
+
|
|
41177
|
+
|
|
41178
|
+
|
|
41179
|
+
|
|
41180
|
+
|
|
41181
|
+
|
|
41182
|
+
|
|
41183
|
+
|
|
38969
41184
|
|
|
38970
41185
|
|
|
38971
41186
|
|
|
@@ -39157,6 +41372,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
39157
41372
|
|
|
39158
41373
|
|
|
39159
41374
|
|
|
41375
|
+
|
|
41376
|
+
|
|
41377
|
+
|
|
41378
|
+
|
|
41379
|
+
|
|
41380
|
+
|
|
41381
|
+
|
|
41382
|
+
|
|
41383
|
+
|
|
41384
|
+
|
|
41385
|
+
|
|
41386
|
+
|
|
41387
|
+
|
|
41388
|
+
|
|
41389
|
+
|
|
39160
41390
|
|
|
39161
41391
|
|
|
39162
41392
|
|
|
@@ -39353,6 +41583,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
39353
41583
|
|
|
39354
41584
|
|
|
39355
41585
|
|
|
41586
|
+
|
|
41587
|
+
|
|
41588
|
+
|
|
41589
|
+
|
|
41590
|
+
|
|
41591
|
+
|
|
41592
|
+
|
|
41593
|
+
|
|
41594
|
+
|
|
41595
|
+
|
|
41596
|
+
|
|
41597
|
+
|
|
41598
|
+
|
|
41599
|
+
|
|
41600
|
+
|
|
39356
41601
|
|
|
39357
41602
|
|
|
39358
41603
|
|
|
@@ -39556,6 +41801,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
39556
41801
|
|
|
39557
41802
|
|
|
39558
41803
|
|
|
41804
|
+
|
|
41805
|
+
|
|
41806
|
+
|
|
41807
|
+
|
|
41808
|
+
|
|
41809
|
+
|
|
41810
|
+
|
|
41811
|
+
|
|
41812
|
+
|
|
41813
|
+
|
|
41814
|
+
|
|
41815
|
+
|
|
41816
|
+
|
|
41817
|
+
|
|
41818
|
+
|
|
39559
41819
|
|
|
39560
41820
|
|
|
39561
41821
|
|
|
@@ -39754,6 +42014,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
39754
42014
|
|
|
39755
42015
|
|
|
39756
42016
|
|
|
42017
|
+
|
|
42018
|
+
|
|
42019
|
+
|
|
42020
|
+
|
|
42021
|
+
|
|
42022
|
+
|
|
42023
|
+
|
|
42024
|
+
|
|
42025
|
+
|
|
42026
|
+
|
|
42027
|
+
|
|
42028
|
+
|
|
42029
|
+
|
|
42030
|
+
|
|
42031
|
+
|
|
39757
42032
|
|
|
39758
42033
|
|
|
39759
42034
|
|
|
@@ -39987,6 +42262,12 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
39987
42262
|
|
|
39988
42263
|
|
|
39989
42264
|
|
|
42265
|
+
|
|
42266
|
+
|
|
42267
|
+
|
|
42268
|
+
|
|
42269
|
+
|
|
42270
|
+
|
|
39990
42271
|
* @example
|
|
39991
42272
|
* // Pagination by position in tree order
|
|
39992
42273
|
* const tree = new TreeMultiSet<number>(
|
|
@@ -40025,6 +42306,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
40025
42306
|
|
|
40026
42307
|
|
|
40027
42308
|
|
|
42309
|
+
|
|
42310
|
+
|
|
42311
|
+
|
|
42312
|
+
|
|
42313
|
+
|
|
42314
|
+
|
|
42315
|
+
|
|
42316
|
+
|
|
42317
|
+
|
|
42318
|
+
|
|
42319
|
+
|
|
42320
|
+
|
|
42321
|
+
|
|
42322
|
+
|
|
42323
|
+
|
|
40028
42324
|
|
|
40029
42325
|
|
|
40030
42326
|
|
|
@@ -40182,6 +42478,18 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
40182
42478
|
|
|
40183
42479
|
|
|
40184
42480
|
|
|
42481
|
+
|
|
42482
|
+
|
|
42483
|
+
|
|
42484
|
+
|
|
42485
|
+
|
|
42486
|
+
|
|
42487
|
+
|
|
42488
|
+
|
|
42489
|
+
|
|
42490
|
+
|
|
42491
|
+
|
|
42492
|
+
|
|
40185
42493
|
|
|
40186
42494
|
|
|
40187
42495
|
|
|
@@ -40374,6 +42682,21 @@ var TreeMultiSet = class _TreeMultiSet {
|
|
|
40374
42682
|
|
|
40375
42683
|
|
|
40376
42684
|
|
|
42685
|
+
|
|
42686
|
+
|
|
42687
|
+
|
|
42688
|
+
|
|
42689
|
+
|
|
42690
|
+
|
|
42691
|
+
|
|
42692
|
+
|
|
42693
|
+
|
|
42694
|
+
|
|
42695
|
+
|
|
42696
|
+
|
|
42697
|
+
|
|
42698
|
+
|
|
42699
|
+
|
|
40377
42700
|
|
|
40378
42701
|
|
|
40379
42702
|
|
|
@@ -40577,6 +42900,9 @@ var Matrix = class _Matrix {
|
|
|
40577
42900
|
|
|
40578
42901
|
|
|
40579
42902
|
|
|
42903
|
+
|
|
42904
|
+
|
|
42905
|
+
|
|
40580
42906
|
|
|
40581
42907
|
|
|
40582
42908
|
|
|
@@ -40649,6 +42975,9 @@ var Matrix = class _Matrix {
|
|
|
40649
42975
|
|
|
40650
42976
|
|
|
40651
42977
|
|
|
42978
|
+
|
|
42979
|
+
|
|
42980
|
+
|
|
40652
42981
|
|
|
40653
42982
|
|
|
40654
42983
|
|
|
@@ -40717,6 +43046,9 @@ var Matrix = class _Matrix {
|
|
|
40717
43046
|
|
|
40718
43047
|
|
|
40719
43048
|
|
|
43049
|
+
|
|
43050
|
+
|
|
43051
|
+
|
|
40720
43052
|
|
|
40721
43053
|
|
|
40722
43054
|
|
|
@@ -40807,6 +43139,9 @@ var Matrix = class _Matrix {
|
|
|
40807
43139
|
|
|
40808
43140
|
|
|
40809
43141
|
|
|
43142
|
+
|
|
43143
|
+
|
|
43144
|
+
|
|
40810
43145
|
|
|
40811
43146
|
|
|
40812
43147
|
|
|
@@ -40880,6 +43215,9 @@ var Matrix = class _Matrix {
|
|
|
40880
43215
|
|
|
40881
43216
|
|
|
40882
43217
|
|
|
43218
|
+
|
|
43219
|
+
|
|
43220
|
+
|
|
40883
43221
|
|
|
40884
43222
|
|
|
40885
43223
|
|
|
@@ -40975,6 +43313,9 @@ var Matrix = class _Matrix {
|
|
|
40975
43313
|
|
|
40976
43314
|
|
|
40977
43315
|
|
|
43316
|
+
|
|
43317
|
+
|
|
43318
|
+
|
|
40978
43319
|
|
|
40979
43320
|
|
|
40980
43321
|
|
|
@@ -41057,6 +43398,9 @@ var Matrix = class _Matrix {
|
|
|
41057
43398
|
|
|
41058
43399
|
|
|
41059
43400
|
|
|
43401
|
+
|
|
43402
|
+
|
|
43403
|
+
|
|
41060
43404
|
|
|
41061
43405
|
|
|
41062
43406
|
|
|
@@ -41164,6 +43508,9 @@ var Matrix = class _Matrix {
|
|
|
41164
43508
|
|
|
41165
43509
|
|
|
41166
43510
|
|
|
43511
|
+
|
|
43512
|
+
|
|
43513
|
+
|
|
41167
43514
|
|
|
41168
43515
|
|
|
41169
43516
|
|
|
@@ -41684,6 +44031,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41684
44031
|
|
|
41685
44032
|
|
|
41686
44033
|
|
|
44034
|
+
|
|
44035
|
+
|
|
44036
|
+
|
|
41687
44037
|
|
|
41688
44038
|
|
|
41689
44039
|
|
|
@@ -41760,6 +44110,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41760
44110
|
|
|
41761
44111
|
|
|
41762
44112
|
|
|
44113
|
+
|
|
44114
|
+
|
|
44115
|
+
|
|
41763
44116
|
|
|
41764
44117
|
|
|
41765
44118
|
|
|
@@ -41823,6 +44176,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41823
44176
|
|
|
41824
44177
|
|
|
41825
44178
|
|
|
44179
|
+
|
|
44180
|
+
|
|
44181
|
+
|
|
41826
44182
|
|
|
41827
44183
|
|
|
41828
44184
|
|
|
@@ -41881,6 +44237,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41881
44237
|
|
|
41882
44238
|
|
|
41883
44239
|
|
|
44240
|
+
|
|
44241
|
+
|
|
44242
|
+
|
|
41884
44243
|
|
|
41885
44244
|
|
|
41886
44245
|
|
|
@@ -41931,6 +44290,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41931
44290
|
|
|
41932
44291
|
|
|
41933
44292
|
|
|
44293
|
+
|
|
44294
|
+
|
|
44295
|
+
|
|
41934
44296
|
|
|
41935
44297
|
|
|
41936
44298
|
|
|
@@ -41985,6 +44347,9 @@ var Trie = class extends IterableElementBase {
|
|
|
41985
44347
|
|
|
41986
44348
|
|
|
41987
44349
|
|
|
44350
|
+
|
|
44351
|
+
|
|
44352
|
+
|
|
41988
44353
|
|
|
41989
44354
|
|
|
41990
44355
|
|
|
@@ -42121,6 +44486,9 @@ var Trie = class extends IterableElementBase {
|
|
|
42121
44486
|
|
|
42122
44487
|
|
|
42123
44488
|
|
|
44489
|
+
|
|
44490
|
+
|
|
44491
|
+
|
|
42124
44492
|
|
|
42125
44493
|
|
|
42126
44494
|
|
|
@@ -42201,6 +44569,9 @@ var Trie = class extends IterableElementBase {
|
|
|
42201
44569
|
|
|
42202
44570
|
|
|
42203
44571
|
|
|
44572
|
+
|
|
44573
|
+
|
|
44574
|
+
|
|
42204
44575
|
|
|
42205
44576
|
|
|
42206
44577
|
|
|
@@ -42264,6 +44635,9 @@ var Trie = class extends IterableElementBase {
|
|
|
42264
44635
|
|
|
42265
44636
|
|
|
42266
44637
|
|
|
44638
|
+
|
|
44639
|
+
|
|
44640
|
+
|
|
42267
44641
|
|
|
42268
44642
|
|
|
42269
44643
|
|
|
@@ -42345,6 +44719,9 @@ var Trie = class extends IterableElementBase {
|
|
|
42345
44719
|
|
|
42346
44720
|
|
|
42347
44721
|
|
|
44722
|
+
|
|
44723
|
+
|
|
44724
|
+
|
|
42348
44725
|
|
|
42349
44726
|
|
|
42350
44727
|
|
|
@@ -42399,6 +44776,9 @@ var Trie = class extends IterableElementBase {
|
|
|
42399
44776
|
|
|
42400
44777
|
|
|
42401
44778
|
|
|
44779
|
+
|
|
44780
|
+
|
|
44781
|
+
|
|
42402
44782
|
|
|
42403
44783
|
|
|
42404
44784
|
|