@number10/phaserjsx 0.4.1 → 0.4.2
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/README.md +1 -1
- package/dist/{TransformOriginView-Bx81YEUU.cjs → TransformOriginView-CrzevUOh.cjs} +429 -388
- package/dist/TransformOriginView-CrzevUOh.cjs.map +1 -0
- package/dist/{TransformOriginView-DCvId72M.js → TransformOriginView-TeXhLqNs.js} +393 -369
- package/dist/TransformOriginView-TeXhLqNs.js.map +1 -0
- package/dist/camera/use-camera-fx.d.ts +4 -1
- package/dist/camera/use-camera-fx.d.ts.map +1 -1
- package/dist/components/appliers/applyBackground.d.ts +5 -1
- package/dist/components/appliers/applyBackground.d.ts.map +1 -1
- package/dist/components/appliers/applyGestures.d.ts +1 -1
- package/dist/components/appliers/applyGestures.d.ts.map +1 -1
- package/dist/components/appliers/applyGraphics.d.ts +4 -1
- package/dist/components/appliers/applyGraphics.d.ts.map +1 -1
- package/dist/components/appliers/applyGraphicsLayout.d.ts +4 -1
- package/dist/components/appliers/applyGraphicsLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyImage.d.ts +4 -1
- package/dist/components/appliers/applyImage.d.ts.map +1 -1
- package/dist/components/appliers/applyImageLayout.d.ts +4 -1
- package/dist/components/appliers/applyImageLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyNineSlice.d.ts +4 -1
- package/dist/components/appliers/applyNineSlice.d.ts.map +1 -1
- package/dist/components/appliers/applyNineSliceLayout.d.ts +4 -1
- package/dist/components/appliers/applyNineSliceLayout.d.ts.map +1 -1
- package/dist/components/appliers/applySprite.d.ts +4 -1
- package/dist/components/appliers/applySprite.d.ts.map +1 -1
- package/dist/components/appliers/applySpriteLayout.d.ts +4 -1
- package/dist/components/appliers/applySpriteLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyTextLayout.d.ts +4 -1
- package/dist/components/appliers/applyTextLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyTooltip.d.ts +5 -1
- package/dist/components/appliers/applyTooltip.d.ts.map +1 -1
- package/dist/components/creators/createBackground.d.ts +5 -1
- package/dist/components/creators/createBackground.d.ts.map +1 -1
- package/dist/components/creators/createGestures.d.ts +1 -1
- package/dist/components/creators/createGestures.d.ts.map +1 -1
- package/dist/components/creators/createGraphicsLayout.d.ts +4 -1
- package/dist/components/creators/createGraphicsLayout.d.ts.map +1 -1
- package/dist/components/creators/createImageLayout.d.ts +4 -1
- package/dist/components/creators/createImageLayout.d.ts.map +1 -1
- package/dist/components/creators/createNineSliceLayout.d.ts +4 -1
- package/dist/components/creators/createNineSliceLayout.d.ts.map +1 -1
- package/dist/components/creators/createSpriteLayout.d.ts +4 -1
- package/dist/components/creators/createSpriteLayout.d.ts.map +1 -1
- package/dist/components/creators/createTextLayout.d.ts +4 -1
- package/dist/components/creators/createTextLayout.d.ts.map +1 -1
- package/dist/components/custom/Graphics.d.ts +6 -1
- package/dist/components/custom/Graphics.d.ts.map +1 -1
- package/dist/components/custom/Image.d.ts +6 -1
- package/dist/components/custom/Image.d.ts.map +1 -1
- package/dist/components/custom/NineSlice.d.ts +6 -1
- package/dist/components/custom/NineSlice.d.ts.map +1 -1
- package/dist/components/custom/Sprite.d.ts +1 -1
- package/dist/components/custom/Sprite.d.ts.map +1 -1
- package/dist/components/custom/Text.d.ts +6 -1
- package/dist/components/custom/Text.d.ts.map +1 -1
- package/dist/components/custom/TileSprite.d.ts +1 -1
- package/dist/components/custom/TileSprite.d.ts.map +1 -1
- package/dist/components/custom/View.d.ts +6 -1
- package/dist/components/custom/View.d.ts.map +1 -1
- package/dist/components/custom/index.cjs +1 -1
- package/dist/components/custom/index.js +1 -1
- package/dist/components/primitives/graphics.d.ts +107 -1
- package/dist/components/primitives/graphics.d.ts.map +1 -1
- package/dist/components/primitives/image.d.ts +114 -1
- package/dist/components/primitives/image.d.ts.map +1 -1
- package/dist/components/primitives/nineslice.d.ts +161 -1
- package/dist/components/primitives/nineslice.d.ts.map +1 -1
- package/dist/components/primitives/sprite.d.ts +90 -1
- package/dist/components/primitives/sprite.d.ts.map +1 -1
- package/dist/components/primitives/text.d.ts +130 -1
- package/dist/components/primitives/text.d.ts.map +1 -1
- package/dist/components/primitives/tilesprite.d.ts +115 -1
- package/dist/components/primitives/tilesprite.d.ts.map +1 -1
- package/dist/components/primitives/view.d.ts +107 -1
- package/dist/components/primitives/view.d.ts.map +1 -1
- package/dist/core-types.d.ts +5 -1
- package/dist/core-types.d.ts.map +1 -1
- package/dist/design-tokens/design-token-types.d.ts +5 -1
- package/dist/design-tokens/design-token-types.d.ts.map +1 -1
- package/dist/gestures/gesture-manager.d.ts +5 -1
- package/dist/gestures/gesture-manager.d.ts.map +1 -1
- package/dist/gestures/gesture-types.d.ts +4 -1
- package/dist/gestures/gesture-types.d.ts.map +1 -1
- package/dist/hooks-svg.d.ts +5 -1
- package/dist/hooks-svg.d.ts.map +1 -1
- package/dist/host.d.ts +5 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/index.cjs +28 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/layout/appliers/background-applier.d.ts +4 -1
- package/dist/layout/appliers/background-applier.d.ts.map +1 -1
- package/dist/layout/appliers/container-applier.d.ts +4 -1
- package/dist/layout/appliers/container-applier.d.ts.map +1 -1
- package/dist/layout/layout-engine-test-utils.d.ts +4 -1
- package/dist/layout/layout-engine-test-utils.d.ts.map +1 -1
- package/dist/layout/layout-engine.d.ts +5 -1
- package/dist/layout/layout-engine.d.ts.map +1 -1
- package/dist/layout/types.d.ts +4 -1
- package/dist/layout/types.d.ts.map +1 -1
- package/dist/layout/utils/child-utils.d.ts +4 -1
- package/dist/layout/utils/child-utils.d.ts.map +1 -1
- package/dist/particles/emit-zone.d.ts +4 -1
- package/dist/particles/emit-zone.d.ts.map +1 -1
- package/dist/particles/particle-types.d.ts +4 -1
- package/dist/particles/particle-types.d.ts.map +1 -1
- package/dist/particles/preset-registry.d.ts +4 -1
- package/dist/particles/preset-registry.d.ts.map +1 -1
- package/dist/plugin.d.ts +5 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/portal/portal-registry.d.ts +4 -1
- package/dist/portal/portal-registry.d.ts.map +1 -1
- package/dist/portal/portal-types.d.ts +5 -1
- package/dist/portal/portal-types.d.ts.map +1 -1
- package/dist/render-context.d.ts +5 -1
- package/dist/render-context.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/dom-input-manager.d.ts +5 -1
- package/dist/utils/dom-input-manager.d.ts.map +1 -1
- package/dist/utils/fast-deep-equal.d.ts +4 -0
- package/dist/utils/fast-deep-equal.d.ts.map +1 -0
- package/dist/utils/svg-texture.d.ts +5 -1
- package/dist/utils/svg-texture.d.ts.map +1 -1
- package/dist/utils/texture-registry.d.ts +5 -1
- package/dist/utils/texture-registry.d.ts.map +1 -1
- package/dist/vdom.d.ts +1 -1
- package/dist/vdom.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/TransformOriginView-Bx81YEUU.cjs.map +0 -1
- package/dist/TransformOriginView-DCvId72M.js.map +0 -1
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
const jsxRuntime = require("./jsx-runtime.cjs");
|
|
3
3
|
const Phaser$1 = require("phaser");
|
|
4
4
|
const signalsCore = require("@preact/signals-core");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
function _mergeNamespaces(n, m) {
|
|
22
|
+
for (var i = 0; i < m.length; i++) {
|
|
23
|
+
const e = m[i];
|
|
24
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
25
|
+
for (const k in e) {
|
|
26
|
+
if (k !== "default" && !(k in n)) {
|
|
27
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
28
|
+
if (d) {
|
|
29
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: () => e[k]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
39
|
+
}
|
|
40
|
+
const Phaser__namespace = /* @__PURE__ */ _interopNamespaceDefault(Phaser$1);
|
|
5
41
|
const nodeRegistry = {};
|
|
6
42
|
function register(type, descriptor) {
|
|
7
43
|
nodeRegistry[type] = descriptor;
|
|
@@ -42,7 +78,7 @@ const host = {
|
|
|
42
78
|
* @param child - Child node to append
|
|
43
79
|
*/
|
|
44
80
|
append(parent, child) {
|
|
45
|
-
if (parent instanceof
|
|
81
|
+
if (parent instanceof Phaser__namespace.GameObjects.Container) {
|
|
46
82
|
parent.add(child);
|
|
47
83
|
} else if (parent && typeof parent === "object" && "sys" in parent) {
|
|
48
84
|
const scene = parent;
|
|
@@ -62,7 +98,7 @@ const host = {
|
|
|
62
98
|
remove(parent, child) {
|
|
63
99
|
const childObj = child;
|
|
64
100
|
if (!childObj.scene) return;
|
|
65
|
-
if (parent instanceof
|
|
101
|
+
if (parent instanceof Phaser__namespace.GameObjects.Container) {
|
|
66
102
|
parent.remove(childObj, false);
|
|
67
103
|
}
|
|
68
104
|
if (childObj.destroy) {
|
|
@@ -115,7 +151,12 @@ function requireFastDeepEqual() {
|
|
|
115
151
|
return fastDeepEqual;
|
|
116
152
|
}
|
|
117
153
|
var fastDeepEqualExports = requireFastDeepEqual();
|
|
118
|
-
const
|
|
154
|
+
const index = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
155
|
+
const equalImport = /* @__PURE__ */ _mergeNamespaces({
|
|
156
|
+
__proto__: null,
|
|
157
|
+
default: index
|
|
158
|
+
}, [fastDeepEqualExports]);
|
|
159
|
+
const equal = typeof equalImport === "function" ? equalImport : index;
|
|
119
160
|
var lodash$1 = { exports: {} };
|
|
120
161
|
var lodash = lodash$1.exports;
|
|
121
162
|
var hasRequiredLodash;
|
|
@@ -479,17 +520,17 @@ function requireLodash() {
|
|
|
479
520
|
return func.apply(thisArg, args);
|
|
480
521
|
}
|
|
481
522
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
482
|
-
var
|
|
483
|
-
while (++
|
|
484
|
-
var value = array[
|
|
523
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
524
|
+
while (++index2 < length) {
|
|
525
|
+
var value = array[index2];
|
|
485
526
|
setter(accumulator, value, iteratee(value), array);
|
|
486
527
|
}
|
|
487
528
|
return accumulator;
|
|
488
529
|
}
|
|
489
530
|
function arrayEach(array, iteratee) {
|
|
490
|
-
var
|
|
491
|
-
while (++
|
|
492
|
-
if (iteratee(array[
|
|
531
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
532
|
+
while (++index2 < length) {
|
|
533
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
493
534
|
break;
|
|
494
535
|
}
|
|
495
536
|
}
|
|
@@ -505,19 +546,19 @@ function requireLodash() {
|
|
|
505
546
|
return array;
|
|
506
547
|
}
|
|
507
548
|
function arrayEvery(array, predicate) {
|
|
508
|
-
var
|
|
509
|
-
while (++
|
|
510
|
-
if (!predicate(array[
|
|
549
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
550
|
+
while (++index2 < length) {
|
|
551
|
+
if (!predicate(array[index2], index2, array)) {
|
|
511
552
|
return false;
|
|
512
553
|
}
|
|
513
554
|
}
|
|
514
555
|
return true;
|
|
515
556
|
}
|
|
516
557
|
function arrayFilter(array, predicate) {
|
|
517
|
-
var
|
|
518
|
-
while (++
|
|
519
|
-
var value = array[
|
|
520
|
-
if (predicate(value,
|
|
558
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
559
|
+
while (++index2 < length) {
|
|
560
|
+
var value = array[index2];
|
|
561
|
+
if (predicate(value, index2, array)) {
|
|
521
562
|
result[resIndex++] = value;
|
|
522
563
|
}
|
|
523
564
|
}
|
|
@@ -528,35 +569,35 @@ function requireLodash() {
|
|
|
528
569
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
529
570
|
}
|
|
530
571
|
function arrayIncludesWith(array, value, comparator) {
|
|
531
|
-
var
|
|
532
|
-
while (++
|
|
533
|
-
if (comparator(value, array[
|
|
572
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
573
|
+
while (++index2 < length) {
|
|
574
|
+
if (comparator(value, array[index2])) {
|
|
534
575
|
return true;
|
|
535
576
|
}
|
|
536
577
|
}
|
|
537
578
|
return false;
|
|
538
579
|
}
|
|
539
580
|
function arrayMap(array, iteratee) {
|
|
540
|
-
var
|
|
541
|
-
while (++
|
|
542
|
-
result[
|
|
581
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
582
|
+
while (++index2 < length) {
|
|
583
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
543
584
|
}
|
|
544
585
|
return result;
|
|
545
586
|
}
|
|
546
587
|
function arrayPush(array, values) {
|
|
547
|
-
var
|
|
548
|
-
while (++
|
|
549
|
-
array[offset +
|
|
588
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
589
|
+
while (++index2 < length) {
|
|
590
|
+
array[offset + index2] = values[index2];
|
|
550
591
|
}
|
|
551
592
|
return array;
|
|
552
593
|
}
|
|
553
594
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
554
|
-
var
|
|
595
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
555
596
|
if (initAccum && length) {
|
|
556
|
-
accumulator = array[++
|
|
597
|
+
accumulator = array[++index2];
|
|
557
598
|
}
|
|
558
|
-
while (++
|
|
559
|
-
accumulator = iteratee(accumulator, array[
|
|
599
|
+
while (++index2 < length) {
|
|
600
|
+
accumulator = iteratee(accumulator, array[index2], index2, array);
|
|
560
601
|
}
|
|
561
602
|
return accumulator;
|
|
562
603
|
}
|
|
@@ -571,9 +612,9 @@ function requireLodash() {
|
|
|
571
612
|
return accumulator;
|
|
572
613
|
}
|
|
573
614
|
function arraySome(array, predicate) {
|
|
574
|
-
var
|
|
575
|
-
while (++
|
|
576
|
-
if (predicate(array[
|
|
615
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
616
|
+
while (++index2 < length) {
|
|
617
|
+
if (predicate(array[index2], index2, array)) {
|
|
577
618
|
return true;
|
|
578
619
|
}
|
|
579
620
|
}
|
|
@@ -597,10 +638,10 @@ function requireLodash() {
|
|
|
597
638
|
return result;
|
|
598
639
|
}
|
|
599
640
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
600
|
-
var length = array.length,
|
|
601
|
-
while (fromRight ?
|
|
602
|
-
if (predicate(array[
|
|
603
|
-
return
|
|
641
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
|
642
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
643
|
+
if (predicate(array[index2], index2, array)) {
|
|
644
|
+
return index2;
|
|
604
645
|
}
|
|
605
646
|
}
|
|
606
647
|
return -1;
|
|
@@ -609,10 +650,10 @@ function requireLodash() {
|
|
|
609
650
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
610
651
|
}
|
|
611
652
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
|
612
|
-
var
|
|
613
|
-
while (++
|
|
614
|
-
if (comparator(array[
|
|
615
|
-
return
|
|
653
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
654
|
+
while (++index2 < length) {
|
|
655
|
+
if (comparator(array[index2], value)) {
|
|
656
|
+
return index2;
|
|
616
657
|
}
|
|
617
658
|
}
|
|
618
659
|
return -1;
|
|
@@ -635,8 +676,8 @@ function requireLodash() {
|
|
|
635
676
|
};
|
|
636
677
|
}
|
|
637
678
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
638
|
-
eachFunc(collection, function(value,
|
|
639
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
|
679
|
+
eachFunc(collection, function(value, index2, collection2) {
|
|
680
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
|
|
640
681
|
});
|
|
641
682
|
return accumulator;
|
|
642
683
|
}
|
|
@@ -649,9 +690,9 @@ function requireLodash() {
|
|
|
649
690
|
return array;
|
|
650
691
|
}
|
|
651
692
|
function baseSum(array, iteratee) {
|
|
652
|
-
var result,
|
|
653
|
-
while (++
|
|
654
|
-
var current = iteratee(array[
|
|
693
|
+
var result, index2 = -1, length = array.length;
|
|
694
|
+
while (++index2 < length) {
|
|
695
|
+
var current = iteratee(array[index2]);
|
|
655
696
|
if (current !== undefined$1) {
|
|
656
697
|
result = result === undefined$1 ? current : result + current;
|
|
657
698
|
}
|
|
@@ -659,9 +700,9 @@ function requireLodash() {
|
|
|
659
700
|
return result;
|
|
660
701
|
}
|
|
661
702
|
function baseTimes(n, iteratee) {
|
|
662
|
-
var
|
|
663
|
-
while (++
|
|
664
|
-
result[
|
|
703
|
+
var index2 = -1, result = Array(n);
|
|
704
|
+
while (++index2 < n) {
|
|
705
|
+
result[index2] = iteratee(index2);
|
|
665
706
|
}
|
|
666
707
|
return result;
|
|
667
708
|
}
|
|
@@ -687,16 +728,16 @@ function requireLodash() {
|
|
|
687
728
|
return cache.has(key);
|
|
688
729
|
}
|
|
689
730
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
690
|
-
var
|
|
691
|
-
while (++
|
|
731
|
+
var index2 = -1, length = strSymbols.length;
|
|
732
|
+
while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
692
733
|
}
|
|
693
|
-
return
|
|
734
|
+
return index2;
|
|
694
735
|
}
|
|
695
736
|
function charsEndIndex(strSymbols, chrSymbols) {
|
|
696
|
-
var
|
|
697
|
-
while (
|
|
737
|
+
var index2 = strSymbols.length;
|
|
738
|
+
while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
698
739
|
}
|
|
699
|
-
return
|
|
740
|
+
return index2;
|
|
700
741
|
}
|
|
701
742
|
function countHolders(array, placeholder) {
|
|
702
743
|
var length = array.length, result = 0;
|
|
@@ -729,9 +770,9 @@ function requireLodash() {
|
|
|
729
770
|
return result;
|
|
730
771
|
}
|
|
731
772
|
function mapToArray(map) {
|
|
732
|
-
var
|
|
773
|
+
var index2 = -1, result = Array(map.size);
|
|
733
774
|
map.forEach(function(value, key) {
|
|
734
|
-
result[++
|
|
775
|
+
result[++index2] = [key, value];
|
|
735
776
|
});
|
|
736
777
|
return result;
|
|
737
778
|
}
|
|
@@ -741,47 +782,47 @@ function requireLodash() {
|
|
|
741
782
|
};
|
|
742
783
|
}
|
|
743
784
|
function replaceHolders(array, placeholder) {
|
|
744
|
-
var
|
|
745
|
-
while (++
|
|
746
|
-
var value = array[
|
|
785
|
+
var index2 = -1, length = array.length, resIndex = 0, result = [];
|
|
786
|
+
while (++index2 < length) {
|
|
787
|
+
var value = array[index2];
|
|
747
788
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
748
|
-
array[
|
|
749
|
-
result[resIndex++] =
|
|
789
|
+
array[index2] = PLACEHOLDER;
|
|
790
|
+
result[resIndex++] = index2;
|
|
750
791
|
}
|
|
751
792
|
}
|
|
752
793
|
return result;
|
|
753
794
|
}
|
|
754
795
|
function setToArray(set) {
|
|
755
|
-
var
|
|
796
|
+
var index2 = -1, result = Array(set.size);
|
|
756
797
|
set.forEach(function(value) {
|
|
757
|
-
result[++
|
|
798
|
+
result[++index2] = value;
|
|
758
799
|
});
|
|
759
800
|
return result;
|
|
760
801
|
}
|
|
761
802
|
function setToPairs(set) {
|
|
762
|
-
var
|
|
803
|
+
var index2 = -1, result = Array(set.size);
|
|
763
804
|
set.forEach(function(value) {
|
|
764
|
-
result[++
|
|
805
|
+
result[++index2] = [value, value];
|
|
765
806
|
});
|
|
766
807
|
return result;
|
|
767
808
|
}
|
|
768
809
|
function strictIndexOf(array, value, fromIndex) {
|
|
769
|
-
var
|
|
770
|
-
while (++
|
|
771
|
-
if (array[
|
|
772
|
-
return
|
|
810
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
811
|
+
while (++index2 < length) {
|
|
812
|
+
if (array[index2] === value) {
|
|
813
|
+
return index2;
|
|
773
814
|
}
|
|
774
815
|
}
|
|
775
816
|
return -1;
|
|
776
817
|
}
|
|
777
818
|
function strictLastIndexOf(array, value, fromIndex) {
|
|
778
|
-
var
|
|
779
|
-
while (
|
|
780
|
-
if (array[
|
|
781
|
-
return
|
|
819
|
+
var index2 = fromIndex + 1;
|
|
820
|
+
while (index2--) {
|
|
821
|
+
if (array[index2] === value) {
|
|
822
|
+
return index2;
|
|
782
823
|
}
|
|
783
824
|
}
|
|
784
|
-
return
|
|
825
|
+
return index2;
|
|
785
826
|
}
|
|
786
827
|
function stringSize(string) {
|
|
787
828
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
@@ -790,10 +831,10 @@ function requireLodash() {
|
|
|
790
831
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
791
832
|
}
|
|
792
833
|
function trimmedEndIndex(string) {
|
|
793
|
-
var
|
|
794
|
-
while (
|
|
834
|
+
var index2 = string.length;
|
|
835
|
+
while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
|
795
836
|
}
|
|
796
|
-
return
|
|
837
|
+
return index2;
|
|
797
838
|
}
|
|
798
839
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
|
799
840
|
function unicodeSize(string) {
|
|
@@ -959,15 +1000,15 @@ function requireLodash() {
|
|
|
959
1000
|
return result2;
|
|
960
1001
|
}
|
|
961
1002
|
function lazyValue() {
|
|
962
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start,
|
|
1003
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
963
1004
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
964
1005
|
return baseWrapperValue(array, this.__actions__);
|
|
965
1006
|
}
|
|
966
1007
|
var result2 = [];
|
|
967
1008
|
outer:
|
|
968
1009
|
while (length-- && resIndex < takeCount) {
|
|
969
|
-
|
|
970
|
-
var iterIndex = -1, value = array[
|
|
1010
|
+
index2 += dir;
|
|
1011
|
+
var iterIndex = -1, value = array[index2];
|
|
971
1012
|
while (++iterIndex < iterLength) {
|
|
972
1013
|
var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
|
|
973
1014
|
if (type == LAZY_MAP_FLAG) {
|
|
@@ -987,10 +1028,10 @@ function requireLodash() {
|
|
|
987
1028
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
988
1029
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
989
1030
|
function Hash(entries) {
|
|
990
|
-
var
|
|
1031
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
991
1032
|
this.clear();
|
|
992
|
-
while (++
|
|
993
|
-
var entry = entries[
|
|
1033
|
+
while (++index2 < length) {
|
|
1034
|
+
var entry = entries[index2];
|
|
994
1035
|
this.set(entry[0], entry[1]);
|
|
995
1036
|
}
|
|
996
1037
|
}
|
|
@@ -1027,10 +1068,10 @@ function requireLodash() {
|
|
|
1027
1068
|
Hash.prototype.has = hashHas;
|
|
1028
1069
|
Hash.prototype.set = hashSet;
|
|
1029
1070
|
function ListCache(entries) {
|
|
1030
|
-
var
|
|
1071
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1031
1072
|
this.clear();
|
|
1032
|
-
while (++
|
|
1033
|
-
var entry = entries[
|
|
1073
|
+
while (++index2 < length) {
|
|
1074
|
+
var entry = entries[index2];
|
|
1034
1075
|
this.set(entry[0], entry[1]);
|
|
1035
1076
|
}
|
|
1036
1077
|
}
|
|
@@ -1039,33 +1080,33 @@ function requireLodash() {
|
|
|
1039
1080
|
this.size = 0;
|
|
1040
1081
|
}
|
|
1041
1082
|
function listCacheDelete(key) {
|
|
1042
|
-
var data = this.__data__,
|
|
1043
|
-
if (
|
|
1083
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1084
|
+
if (index2 < 0) {
|
|
1044
1085
|
return false;
|
|
1045
1086
|
}
|
|
1046
1087
|
var lastIndex = data.length - 1;
|
|
1047
|
-
if (
|
|
1088
|
+
if (index2 == lastIndex) {
|
|
1048
1089
|
data.pop();
|
|
1049
1090
|
} else {
|
|
1050
|
-
splice.call(data,
|
|
1091
|
+
splice.call(data, index2, 1);
|
|
1051
1092
|
}
|
|
1052
1093
|
--this.size;
|
|
1053
1094
|
return true;
|
|
1054
1095
|
}
|
|
1055
1096
|
function listCacheGet(key) {
|
|
1056
|
-
var data = this.__data__,
|
|
1057
|
-
return
|
|
1097
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1098
|
+
return index2 < 0 ? undefined$1 : data[index2][1];
|
|
1058
1099
|
}
|
|
1059
1100
|
function listCacheHas(key) {
|
|
1060
1101
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1061
1102
|
}
|
|
1062
1103
|
function listCacheSet(key, value) {
|
|
1063
|
-
var data = this.__data__,
|
|
1064
|
-
if (
|
|
1104
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1105
|
+
if (index2 < 0) {
|
|
1065
1106
|
++this.size;
|
|
1066
1107
|
data.push([key, value]);
|
|
1067
1108
|
} else {
|
|
1068
|
-
data[
|
|
1109
|
+
data[index2][1] = value;
|
|
1069
1110
|
}
|
|
1070
1111
|
return this;
|
|
1071
1112
|
}
|
|
@@ -1075,10 +1116,10 @@ function requireLodash() {
|
|
|
1075
1116
|
ListCache.prototype.has = listCacheHas;
|
|
1076
1117
|
ListCache.prototype.set = listCacheSet;
|
|
1077
1118
|
function MapCache(entries) {
|
|
1078
|
-
var
|
|
1119
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1079
1120
|
this.clear();
|
|
1080
|
-
while (++
|
|
1081
|
-
var entry = entries[
|
|
1121
|
+
while (++index2 < length) {
|
|
1122
|
+
var entry = entries[index2];
|
|
1082
1123
|
this.set(entry[0], entry[1]);
|
|
1083
1124
|
}
|
|
1084
1125
|
}
|
|
@@ -1113,10 +1154,10 @@ function requireLodash() {
|
|
|
1113
1154
|
MapCache.prototype.has = mapCacheHas;
|
|
1114
1155
|
MapCache.prototype.set = mapCacheSet;
|
|
1115
1156
|
function SetCache(values2) {
|
|
1116
|
-
var
|
|
1157
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
1117
1158
|
this.__data__ = new MapCache();
|
|
1118
|
-
while (++
|
|
1119
|
-
this.add(values2[
|
|
1159
|
+
while (++index2 < length) {
|
|
1160
|
+
this.add(values2[index2]);
|
|
1120
1161
|
}
|
|
1121
1162
|
}
|
|
1122
1163
|
function setCacheAdd(value) {
|
|
@@ -1235,9 +1276,9 @@ function requireLodash() {
|
|
|
1235
1276
|
}
|
|
1236
1277
|
}
|
|
1237
1278
|
function baseAt(object, paths) {
|
|
1238
|
-
var
|
|
1239
|
-
while (++
|
|
1240
|
-
result2[
|
|
1279
|
+
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1280
|
+
while (++index2 < length) {
|
|
1281
|
+
result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
|
|
1241
1282
|
}
|
|
1242
1283
|
return result2;
|
|
1243
1284
|
}
|
|
@@ -1341,7 +1382,7 @@ function requireLodash() {
|
|
|
1341
1382
|
}, wait);
|
|
1342
1383
|
}
|
|
1343
1384
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
1344
|
-
var
|
|
1385
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
1345
1386
|
if (!length) {
|
|
1346
1387
|
return result2;
|
|
1347
1388
|
}
|
|
@@ -1357,8 +1398,8 @@ function requireLodash() {
|
|
|
1357
1398
|
values2 = new SetCache(values2);
|
|
1358
1399
|
}
|
|
1359
1400
|
outer:
|
|
1360
|
-
while (++
|
|
1361
|
-
var value = array[
|
|
1401
|
+
while (++index2 < length) {
|
|
1402
|
+
var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value);
|
|
1362
1403
|
value = comparator || value !== 0 ? value : 0;
|
|
1363
1404
|
if (isCommon && computed === computed) {
|
|
1364
1405
|
var valuesIndex = valuesLength;
|
|
@@ -1378,16 +1419,16 @@ function requireLodash() {
|
|
|
1378
1419
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
1379
1420
|
function baseEvery(collection, predicate) {
|
|
1380
1421
|
var result2 = true;
|
|
1381
|
-
baseEach(collection, function(value,
|
|
1382
|
-
result2 = !!predicate(value,
|
|
1422
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1423
|
+
result2 = !!predicate(value, index2, collection2);
|
|
1383
1424
|
return result2;
|
|
1384
1425
|
});
|
|
1385
1426
|
return result2;
|
|
1386
1427
|
}
|
|
1387
1428
|
function baseExtremum(array, iteratee2, comparator) {
|
|
1388
|
-
var
|
|
1389
|
-
while (++
|
|
1390
|
-
var value = array[
|
|
1429
|
+
var index2 = -1, length = array.length;
|
|
1430
|
+
while (++index2 < length) {
|
|
1431
|
+
var value = array[index2], current = iteratee2(value);
|
|
1391
1432
|
if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
1392
1433
|
var computed = current, result2 = value;
|
|
1393
1434
|
}
|
|
@@ -1412,19 +1453,19 @@ function requireLodash() {
|
|
|
1412
1453
|
}
|
|
1413
1454
|
function baseFilter(collection, predicate) {
|
|
1414
1455
|
var result2 = [];
|
|
1415
|
-
baseEach(collection, function(value,
|
|
1416
|
-
if (predicate(value,
|
|
1456
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1457
|
+
if (predicate(value, index2, collection2)) {
|
|
1417
1458
|
result2.push(value);
|
|
1418
1459
|
}
|
|
1419
1460
|
});
|
|
1420
1461
|
return result2;
|
|
1421
1462
|
}
|
|
1422
1463
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
1423
|
-
var
|
|
1464
|
+
var index2 = -1, length = array.length;
|
|
1424
1465
|
predicate || (predicate = isFlattenable);
|
|
1425
1466
|
result2 || (result2 = []);
|
|
1426
|
-
while (++
|
|
1427
|
-
var value = array[
|
|
1467
|
+
while (++index2 < length) {
|
|
1468
|
+
var value = array[index2];
|
|
1428
1469
|
if (depth > 0 && predicate(value)) {
|
|
1429
1470
|
if (depth > 1) {
|
|
1430
1471
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
@@ -1452,11 +1493,11 @@ function requireLodash() {
|
|
|
1452
1493
|
}
|
|
1453
1494
|
function baseGet(object, path) {
|
|
1454
1495
|
path = castPath(path, object);
|
|
1455
|
-
var
|
|
1456
|
-
while (object != null &&
|
|
1457
|
-
object = object[toKey(path[
|
|
1496
|
+
var index2 = 0, length = path.length;
|
|
1497
|
+
while (object != null && index2 < length) {
|
|
1498
|
+
object = object[toKey(path[index2++])];
|
|
1458
1499
|
}
|
|
1459
|
-
return
|
|
1500
|
+
return index2 && index2 == length ? object : undefined$1;
|
|
1460
1501
|
}
|
|
1461
1502
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1462
1503
|
var result2 = keysFunc(object);
|
|
@@ -1491,10 +1532,10 @@ function requireLodash() {
|
|
|
1491
1532
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
1492
1533
|
}
|
|
1493
1534
|
array = arrays[0];
|
|
1494
|
-
var
|
|
1535
|
+
var index2 = -1, seen = caches[0];
|
|
1495
1536
|
outer:
|
|
1496
|
-
while (++
|
|
1497
|
-
var value = array[
|
|
1537
|
+
while (++index2 < length && result2.length < maxLength) {
|
|
1538
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1498
1539
|
value = comparator || value !== 0 ? value : 0;
|
|
1499
1540
|
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
1500
1541
|
othIndex = othLength;
|
|
@@ -1576,19 +1617,19 @@ function requireLodash() {
|
|
|
1576
1617
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
1577
1618
|
}
|
|
1578
1619
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
1579
|
-
var
|
|
1620
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
1580
1621
|
if (object == null) {
|
|
1581
1622
|
return !length;
|
|
1582
1623
|
}
|
|
1583
1624
|
object = Object2(object);
|
|
1584
|
-
while (
|
|
1585
|
-
var data = matchData[
|
|
1625
|
+
while (index2--) {
|
|
1626
|
+
var data = matchData[index2];
|
|
1586
1627
|
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1587
1628
|
return false;
|
|
1588
1629
|
}
|
|
1589
1630
|
}
|
|
1590
|
-
while (++
|
|
1591
|
-
data = matchData[
|
|
1631
|
+
while (++index2 < length) {
|
|
1632
|
+
data = matchData[index2];
|
|
1592
1633
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1593
1634
|
if (noCustomizer && data[2]) {
|
|
1594
1635
|
if (objValue === undefined$1 && !(key in object)) {
|
|
@@ -1662,9 +1703,9 @@ function requireLodash() {
|
|
|
1662
1703
|
return value < other;
|
|
1663
1704
|
}
|
|
1664
1705
|
function baseMap(collection, iteratee2) {
|
|
1665
|
-
var
|
|
1706
|
+
var index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
1666
1707
|
baseEach(collection, function(value, key, collection2) {
|
|
1667
|
-
result2[++
|
|
1708
|
+
result2[++index2] = iteratee2(value, key, collection2);
|
|
1668
1709
|
});
|
|
1669
1710
|
return result2;
|
|
1670
1711
|
}
|
|
@@ -1767,13 +1808,13 @@ function requireLodash() {
|
|
|
1767
1808
|
} else {
|
|
1768
1809
|
iteratees = [identity];
|
|
1769
1810
|
}
|
|
1770
|
-
var
|
|
1811
|
+
var index2 = -1;
|
|
1771
1812
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
1772
1813
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
1773
1814
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
|
1774
1815
|
return iteratee2(value);
|
|
1775
1816
|
});
|
|
1776
|
-
return { "criteria": criteria, "index": ++
|
|
1817
|
+
return { "criteria": criteria, "index": ++index2, "value": value };
|
|
1777
1818
|
});
|
|
1778
1819
|
return baseSortBy(result2, function(object, other) {
|
|
1779
1820
|
return compareMultiple(object, other, orders);
|
|
@@ -1785,9 +1826,9 @@ function requireLodash() {
|
|
|
1785
1826
|
});
|
|
1786
1827
|
}
|
|
1787
1828
|
function basePickBy(object, paths, predicate) {
|
|
1788
|
-
var
|
|
1789
|
-
while (++
|
|
1790
|
-
var path = paths[
|
|
1829
|
+
var index2 = -1, length = paths.length, result2 = {};
|
|
1830
|
+
while (++index2 < length) {
|
|
1831
|
+
var path = paths[index2], value = baseGet(object, path);
|
|
1791
1832
|
if (predicate(value, path)) {
|
|
1792
1833
|
baseSet(result2, castPath(path, object), value);
|
|
1793
1834
|
}
|
|
@@ -1800,15 +1841,15 @@ function requireLodash() {
|
|
|
1800
1841
|
};
|
|
1801
1842
|
}
|
|
1802
1843
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
1803
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
|
1844
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
|
|
1804
1845
|
if (array === values2) {
|
|
1805
1846
|
values2 = copyArray(values2);
|
|
1806
1847
|
}
|
|
1807
1848
|
if (iteratee2) {
|
|
1808
1849
|
seen = arrayMap(array, baseUnary(iteratee2));
|
|
1809
1850
|
}
|
|
1810
|
-
while (++
|
|
1811
|
-
var fromIndex = 0, value = values2[
|
|
1851
|
+
while (++index2 < length) {
|
|
1852
|
+
var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1812
1853
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
1813
1854
|
if (seen !== array) {
|
|
1814
1855
|
splice.call(seen, fromIndex, 1);
|
|
@@ -1821,13 +1862,13 @@ function requireLodash() {
|
|
|
1821
1862
|
function basePullAt(array, indexes) {
|
|
1822
1863
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
1823
1864
|
while (length--) {
|
|
1824
|
-
var
|
|
1825
|
-
if (length == lastIndex ||
|
|
1826
|
-
var previous =
|
|
1827
|
-
if (isIndex(
|
|
1828
|
-
splice.call(array,
|
|
1865
|
+
var index2 = indexes[length];
|
|
1866
|
+
if (length == lastIndex || index2 !== previous) {
|
|
1867
|
+
var previous = index2;
|
|
1868
|
+
if (isIndex(index2)) {
|
|
1869
|
+
splice.call(array, index2, 1);
|
|
1829
1870
|
} else {
|
|
1830
|
-
baseUnset(array,
|
|
1871
|
+
baseUnset(array, index2);
|
|
1831
1872
|
}
|
|
1832
1873
|
}
|
|
1833
1874
|
}
|
|
@@ -1837,9 +1878,9 @@ function requireLodash() {
|
|
|
1837
1878
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
1838
1879
|
}
|
|
1839
1880
|
function baseRange(start, end, step, fromRight) {
|
|
1840
|
-
var
|
|
1881
|
+
var index2 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
1841
1882
|
while (length--) {
|
|
1842
|
-
result2[fromRight ? length : ++
|
|
1883
|
+
result2[fromRight ? length : ++index2] = start;
|
|
1843
1884
|
start += step;
|
|
1844
1885
|
}
|
|
1845
1886
|
return result2;
|
|
@@ -1875,17 +1916,17 @@ function requireLodash() {
|
|
|
1875
1916
|
return object;
|
|
1876
1917
|
}
|
|
1877
1918
|
path = castPath(path, object);
|
|
1878
|
-
var
|
|
1879
|
-
while (nested != null && ++
|
|
1880
|
-
var key = toKey(path[
|
|
1919
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
1920
|
+
while (nested != null && ++index2 < length) {
|
|
1921
|
+
var key = toKey(path[index2]), newValue = value;
|
|
1881
1922
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
1882
1923
|
return object;
|
|
1883
1924
|
}
|
|
1884
|
-
if (
|
|
1925
|
+
if (index2 != lastIndex) {
|
|
1885
1926
|
var objValue = nested[key];
|
|
1886
1927
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
1887
1928
|
if (newValue === undefined$1) {
|
|
1888
|
-
newValue = isObject(objValue) ? objValue : isIndex(path[
|
|
1929
|
+
newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
1889
1930
|
}
|
|
1890
1931
|
}
|
|
1891
1932
|
assignValue(nested, key, newValue);
|
|
@@ -1909,7 +1950,7 @@ function requireLodash() {
|
|
|
1909
1950
|
return shuffleSelf(values(collection));
|
|
1910
1951
|
}
|
|
1911
1952
|
function baseSlice(array, start, end) {
|
|
1912
|
-
var
|
|
1953
|
+
var index2 = -1, length = array.length;
|
|
1913
1954
|
if (start < 0) {
|
|
1914
1955
|
start = -start > length ? 0 : length + start;
|
|
1915
1956
|
}
|
|
@@ -1920,15 +1961,15 @@ function requireLodash() {
|
|
|
1920
1961
|
length = start > end ? 0 : end - start >>> 0;
|
|
1921
1962
|
start >>>= 0;
|
|
1922
1963
|
var result2 = Array2(length);
|
|
1923
|
-
while (++
|
|
1924
|
-
result2[
|
|
1964
|
+
while (++index2 < length) {
|
|
1965
|
+
result2[index2] = array[index2 + start];
|
|
1925
1966
|
}
|
|
1926
1967
|
return result2;
|
|
1927
1968
|
}
|
|
1928
1969
|
function baseSome(collection, predicate) {
|
|
1929
1970
|
var result2;
|
|
1930
|
-
baseEach(collection, function(value,
|
|
1931
|
-
result2 = predicate(value,
|
|
1971
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1972
|
+
result2 = predicate(value, index2, collection2);
|
|
1932
1973
|
return !result2;
|
|
1933
1974
|
});
|
|
1934
1975
|
return !!result2;
|
|
@@ -1979,10 +2020,10 @@ function requireLodash() {
|
|
|
1979
2020
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
1980
2021
|
}
|
|
1981
2022
|
function baseSortedUniq(array, iteratee2) {
|
|
1982
|
-
var
|
|
1983
|
-
while (++
|
|
1984
|
-
var value = array[
|
|
1985
|
-
if (!
|
|
2023
|
+
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
|
2024
|
+
while (++index2 < length) {
|
|
2025
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2026
|
+
if (!index2 || !eq(computed, seen)) {
|
|
1986
2027
|
var seen = computed;
|
|
1987
2028
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
1988
2029
|
}
|
|
@@ -2012,7 +2053,7 @@ function requireLodash() {
|
|
|
2012
2053
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
2013
2054
|
}
|
|
2014
2055
|
function baseUniq(array, iteratee2, comparator) {
|
|
2015
|
-
var
|
|
2056
|
+
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
2016
2057
|
if (comparator) {
|
|
2017
2058
|
isCommon = false;
|
|
2018
2059
|
includes2 = arrayIncludesWith;
|
|
@@ -2028,8 +2069,8 @@ function requireLodash() {
|
|
|
2028
2069
|
seen = iteratee2 ? [] : result2;
|
|
2029
2070
|
}
|
|
2030
2071
|
outer:
|
|
2031
|
-
while (++
|
|
2032
|
-
var value = array[
|
|
2072
|
+
while (++index2 < length) {
|
|
2073
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2033
2074
|
value = comparator || value !== 0 ? value : 0;
|
|
2034
2075
|
if (isCommon && computed === computed) {
|
|
2035
2076
|
var seenIndex = seen.length;
|
|
@@ -2060,10 +2101,10 @@ function requireLodash() {
|
|
|
2060
2101
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
2061
2102
|
}
|
|
2062
2103
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
2063
|
-
var length = array.length,
|
|
2064
|
-
while ((fromRight ?
|
|
2104
|
+
var length = array.length, index2 = fromRight ? length : -1;
|
|
2105
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
|
2065
2106
|
}
|
|
2066
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
|
2107
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
|
2067
2108
|
}
|
|
2068
2109
|
function baseWrapperValue(value, actions) {
|
|
2069
2110
|
var result2 = value;
|
|
@@ -2079,22 +2120,22 @@ function requireLodash() {
|
|
|
2079
2120
|
if (length < 2) {
|
|
2080
2121
|
return length ? baseUniq(arrays[0]) : [];
|
|
2081
2122
|
}
|
|
2082
|
-
var
|
|
2083
|
-
while (++
|
|
2084
|
-
var array = arrays[
|
|
2123
|
+
var index2 = -1, result2 = Array2(length);
|
|
2124
|
+
while (++index2 < length) {
|
|
2125
|
+
var array = arrays[index2], othIndex = -1;
|
|
2085
2126
|
while (++othIndex < length) {
|
|
2086
|
-
if (othIndex !=
|
|
2087
|
-
result2[
|
|
2127
|
+
if (othIndex != index2) {
|
|
2128
|
+
result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
|
|
2088
2129
|
}
|
|
2089
2130
|
}
|
|
2090
2131
|
}
|
|
2091
2132
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
2092
2133
|
}
|
|
2093
2134
|
function baseZipObject(props, values2, assignFunc) {
|
|
2094
|
-
var
|
|
2095
|
-
while (++
|
|
2096
|
-
var value =
|
|
2097
|
-
assignFunc(result2, props[
|
|
2135
|
+
var index2 = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
2136
|
+
while (++index2 < length) {
|
|
2137
|
+
var value = index2 < valsLength ? values2[index2] : undefined$1;
|
|
2138
|
+
assignFunc(result2, props[index2], value);
|
|
2098
2139
|
}
|
|
2099
2140
|
return result2;
|
|
2100
2141
|
}
|
|
@@ -2162,14 +2203,14 @@ function requireLodash() {
|
|
|
2162
2203
|
return 0;
|
|
2163
2204
|
}
|
|
2164
2205
|
function compareMultiple(object, other, orders) {
|
|
2165
|
-
var
|
|
2166
|
-
while (++
|
|
2167
|
-
var result2 = compareAscending(objCriteria[
|
|
2206
|
+
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
2207
|
+
while (++index2 < length) {
|
|
2208
|
+
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
|
2168
2209
|
if (result2) {
|
|
2169
|
-
if (
|
|
2210
|
+
if (index2 >= ordersLength) {
|
|
2170
2211
|
return result2;
|
|
2171
2212
|
}
|
|
2172
|
-
var order = orders[
|
|
2213
|
+
var order = orders[index2];
|
|
2173
2214
|
return result2 * (order == "desc" ? -1 : 1);
|
|
2174
2215
|
}
|
|
2175
2216
|
}
|
|
@@ -2207,19 +2248,19 @@ function requireLodash() {
|
|
|
2207
2248
|
return result2;
|
|
2208
2249
|
}
|
|
2209
2250
|
function copyArray(source, array) {
|
|
2210
|
-
var
|
|
2251
|
+
var index2 = -1, length = source.length;
|
|
2211
2252
|
array || (array = Array2(length));
|
|
2212
|
-
while (++
|
|
2213
|
-
array[
|
|
2253
|
+
while (++index2 < length) {
|
|
2254
|
+
array[index2] = source[index2];
|
|
2214
2255
|
}
|
|
2215
2256
|
return array;
|
|
2216
2257
|
}
|
|
2217
2258
|
function copyObject(source, props, object, customizer) {
|
|
2218
2259
|
var isNew = !object;
|
|
2219
2260
|
object || (object = {});
|
|
2220
|
-
var
|
|
2221
|
-
while (++
|
|
2222
|
-
var key = props[
|
|
2261
|
+
var index2 = -1, length = props.length;
|
|
2262
|
+
while (++index2 < length) {
|
|
2263
|
+
var key = props[index2];
|
|
2223
2264
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1;
|
|
2224
2265
|
if (newValue === undefined$1) {
|
|
2225
2266
|
newValue = source[key];
|
|
@@ -2246,17 +2287,17 @@ function requireLodash() {
|
|
|
2246
2287
|
}
|
|
2247
2288
|
function createAssigner(assigner) {
|
|
2248
2289
|
return baseRest(function(object, sources) {
|
|
2249
|
-
var
|
|
2290
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
|
2250
2291
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
|
2251
2292
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2252
2293
|
customizer = length < 3 ? undefined$1 : customizer;
|
|
2253
2294
|
length = 1;
|
|
2254
2295
|
}
|
|
2255
2296
|
object = Object2(object);
|
|
2256
|
-
while (++
|
|
2257
|
-
var source = sources[
|
|
2297
|
+
while (++index2 < length) {
|
|
2298
|
+
var source = sources[index2];
|
|
2258
2299
|
if (source) {
|
|
2259
|
-
assigner(object, source,
|
|
2300
|
+
assigner(object, source, index2, customizer);
|
|
2260
2301
|
}
|
|
2261
2302
|
}
|
|
2262
2303
|
return object;
|
|
@@ -2270,9 +2311,9 @@ function requireLodash() {
|
|
|
2270
2311
|
if (!isArrayLike(collection)) {
|
|
2271
2312
|
return eachFunc(collection, iteratee2);
|
|
2272
2313
|
}
|
|
2273
|
-
var length = collection.length,
|
|
2274
|
-
while (fromRight ?
|
|
2275
|
-
if (iteratee2(iterable[
|
|
2314
|
+
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
|
2315
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
2316
|
+
if (iteratee2(iterable[index2], index2, iterable) === false) {
|
|
2276
2317
|
break;
|
|
2277
2318
|
}
|
|
2278
2319
|
}
|
|
@@ -2281,9 +2322,9 @@ function requireLodash() {
|
|
|
2281
2322
|
}
|
|
2282
2323
|
function createBaseFor(fromRight) {
|
|
2283
2324
|
return function(object, iteratee2, keysFunc) {
|
|
2284
|
-
var
|
|
2325
|
+
var index2 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length;
|
|
2285
2326
|
while (length--) {
|
|
2286
|
-
var key = props[fromRight ? length : ++
|
|
2327
|
+
var key = props[fromRight ? length : ++index2];
|
|
2287
2328
|
if (iteratee2(iterable[key], key, iterable) === false) {
|
|
2288
2329
|
break;
|
|
2289
2330
|
}
|
|
@@ -2341,9 +2382,9 @@ function requireLodash() {
|
|
|
2341
2382
|
function createCurry(func, bitmask, arity) {
|
|
2342
2383
|
var Ctor = createCtor(func);
|
|
2343
2384
|
function wrapper() {
|
|
2344
|
-
var length = arguments.length, args = Array2(length),
|
|
2345
|
-
while (
|
|
2346
|
-
args[
|
|
2385
|
+
var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper);
|
|
2386
|
+
while (index2--) {
|
|
2387
|
+
args[index2] = arguments[index2];
|
|
2347
2388
|
}
|
|
2348
2389
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
2349
2390
|
length -= holders.length;
|
|
@@ -2376,18 +2417,18 @@ function requireLodash() {
|
|
|
2376
2417
|
return iteratee2(iterable[key], key, iterable);
|
|
2377
2418
|
};
|
|
2378
2419
|
}
|
|
2379
|
-
var
|
|
2380
|
-
return
|
|
2420
|
+
var index2 = findIndexFunc(collection, predicate, fromIndex);
|
|
2421
|
+
return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined$1;
|
|
2381
2422
|
};
|
|
2382
2423
|
}
|
|
2383
2424
|
function createFlow(fromRight) {
|
|
2384
2425
|
return flatRest(function(funcs) {
|
|
2385
|
-
var length = funcs.length,
|
|
2426
|
+
var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
|
|
2386
2427
|
if (fromRight) {
|
|
2387
2428
|
funcs.reverse();
|
|
2388
2429
|
}
|
|
2389
|
-
while (
|
|
2390
|
-
var func = funcs[
|
|
2430
|
+
while (index2--) {
|
|
2431
|
+
var func = funcs[index2];
|
|
2391
2432
|
if (typeof func != "function") {
|
|
2392
2433
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
2393
2434
|
}
|
|
@@ -2395,9 +2436,9 @@ function requireLodash() {
|
|
|
2395
2436
|
var wrapper = new LodashWrapper([], true);
|
|
2396
2437
|
}
|
|
2397
2438
|
}
|
|
2398
|
-
|
|
2399
|
-
while (++
|
|
2400
|
-
func = funcs[
|
|
2439
|
+
index2 = wrapper ? index2 : length;
|
|
2440
|
+
while (++index2 < length) {
|
|
2441
|
+
func = funcs[index2];
|
|
2401
2442
|
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
2402
2443
|
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
2403
2444
|
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
@@ -2410,9 +2451,9 @@ function requireLodash() {
|
|
|
2410
2451
|
if (wrapper && args.length == 1 && isArray(value)) {
|
|
2411
2452
|
return wrapper.plant(value).value();
|
|
2412
2453
|
}
|
|
2413
|
-
var
|
|
2414
|
-
while (++
|
|
2415
|
-
result2 = funcs[
|
|
2454
|
+
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
|
2455
|
+
while (++index3 < length) {
|
|
2456
|
+
result2 = funcs[index3].call(this, result2);
|
|
2416
2457
|
}
|
|
2417
2458
|
return result2;
|
|
2418
2459
|
};
|
|
@@ -2421,9 +2462,9 @@ function requireLodash() {
|
|
|
2421
2462
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
2422
2463
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
|
2423
2464
|
function wrapper() {
|
|
2424
|
-
var length = arguments.length, args = Array2(length),
|
|
2425
|
-
while (
|
|
2426
|
-
args[
|
|
2465
|
+
var length = arguments.length, args = Array2(length), index2 = length;
|
|
2466
|
+
while (index2--) {
|
|
2467
|
+
args[index2] = arguments[index2];
|
|
2427
2468
|
}
|
|
2428
2469
|
if (isCurried) {
|
|
2429
2470
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
|
@@ -2691,13 +2732,13 @@ function requireLodash() {
|
|
|
2691
2732
|
if (arrStacked && othStacked) {
|
|
2692
2733
|
return arrStacked == other && othStacked == array;
|
|
2693
2734
|
}
|
|
2694
|
-
var
|
|
2735
|
+
var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
|
2695
2736
|
stack.set(array, other);
|
|
2696
2737
|
stack.set(other, array);
|
|
2697
|
-
while (++
|
|
2698
|
-
var arrValue = array[
|
|
2738
|
+
while (++index2 < arrLength) {
|
|
2739
|
+
var arrValue = array[index2], othValue = other[index2];
|
|
2699
2740
|
if (customizer) {
|
|
2700
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
2741
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
|
2701
2742
|
}
|
|
2702
2743
|
if (compared !== undefined$1) {
|
|
2703
2744
|
if (compared) {
|
|
@@ -2775,9 +2816,9 @@ function requireLodash() {
|
|
|
2775
2816
|
if (objLength != othLength && !isPartial) {
|
|
2776
2817
|
return false;
|
|
2777
2818
|
}
|
|
2778
|
-
var
|
|
2779
|
-
while (
|
|
2780
|
-
var key = objProps[
|
|
2819
|
+
var index2 = objLength;
|
|
2820
|
+
while (index2--) {
|
|
2821
|
+
var key = objProps[index2];
|
|
2781
2822
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
2782
2823
|
return false;
|
|
2783
2824
|
}
|
|
@@ -2791,8 +2832,8 @@ function requireLodash() {
|
|
|
2791
2832
|
stack.set(object, other);
|
|
2792
2833
|
stack.set(other, object);
|
|
2793
2834
|
var skipCtor = isPartial;
|
|
2794
|
-
while (++
|
|
2795
|
-
key = objProps[
|
|
2835
|
+
while (++index2 < objLength) {
|
|
2836
|
+
key = objProps[index2];
|
|
2796
2837
|
var objValue = object[key], othValue = other[key];
|
|
2797
2838
|
if (customizer) {
|
|
2798
2839
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
@@ -2916,9 +2957,9 @@ function requireLodash() {
|
|
|
2916
2957
|
};
|
|
2917
2958
|
}
|
|
2918
2959
|
function getView(start, end, transforms) {
|
|
2919
|
-
var
|
|
2920
|
-
while (++
|
|
2921
|
-
var data = transforms[
|
|
2960
|
+
var index2 = -1, length = transforms.length;
|
|
2961
|
+
while (++index2 < length) {
|
|
2962
|
+
var data = transforms[index2], size2 = data.size;
|
|
2922
2963
|
switch (data.type) {
|
|
2923
2964
|
case "drop":
|
|
2924
2965
|
start += size2;
|
|
@@ -2942,15 +2983,15 @@ function requireLodash() {
|
|
|
2942
2983
|
}
|
|
2943
2984
|
function hasPath(object, path, hasFunc) {
|
|
2944
2985
|
path = castPath(path, object);
|
|
2945
|
-
var
|
|
2946
|
-
while (++
|
|
2947
|
-
var key = toKey(path[
|
|
2986
|
+
var index2 = -1, length = path.length, result2 = false;
|
|
2987
|
+
while (++index2 < length) {
|
|
2988
|
+
var key = toKey(path[index2]);
|
|
2948
2989
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
2949
2990
|
break;
|
|
2950
2991
|
}
|
|
2951
2992
|
object = object[key];
|
|
2952
2993
|
}
|
|
2953
|
-
if (result2 || ++
|
|
2994
|
+
if (result2 || ++index2 != length) {
|
|
2954
2995
|
return result2;
|
|
2955
2996
|
}
|
|
2956
2997
|
length = object == null ? 0 : object.length;
|
|
@@ -3018,13 +3059,13 @@ function requireLodash() {
|
|
|
3018
3059
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
3019
3060
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3020
3061
|
}
|
|
3021
|
-
function isIterateeCall(value,
|
|
3062
|
+
function isIterateeCall(value, index2, object) {
|
|
3022
3063
|
if (!isObject(object)) {
|
|
3023
3064
|
return false;
|
|
3024
3065
|
}
|
|
3025
|
-
var type = typeof
|
|
3026
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
|
3027
|
-
return eq(object[
|
|
3066
|
+
var type = typeof index2;
|
|
3067
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
|
3068
|
+
return eq(object[index2], value);
|
|
3028
3069
|
}
|
|
3029
3070
|
return false;
|
|
3030
3071
|
}
|
|
@@ -3133,14 +3174,14 @@ function requireLodash() {
|
|
|
3133
3174
|
function overRest(func, start, transform2) {
|
|
3134
3175
|
start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
|
|
3135
3176
|
return function() {
|
|
3136
|
-
var args = arguments,
|
|
3137
|
-
while (++
|
|
3138
|
-
array[
|
|
3177
|
+
var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
3178
|
+
while (++index2 < length) {
|
|
3179
|
+
array[index2] = args[start + index2];
|
|
3139
3180
|
}
|
|
3140
|
-
|
|
3181
|
+
index2 = -1;
|
|
3141
3182
|
var otherArgs = Array2(start + 1);
|
|
3142
|
-
while (++
|
|
3143
|
-
otherArgs[
|
|
3183
|
+
while (++index2 < start) {
|
|
3184
|
+
otherArgs[index2] = args[index2];
|
|
3144
3185
|
}
|
|
3145
3186
|
otherArgs[start] = transform2(array);
|
|
3146
3187
|
return apply(func, this, otherArgs);
|
|
@@ -3152,8 +3193,8 @@ function requireLodash() {
|
|
|
3152
3193
|
function reorder(array, indexes) {
|
|
3153
3194
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
3154
3195
|
while (length--) {
|
|
3155
|
-
var
|
|
3156
|
-
array[length] = isIndex(
|
|
3196
|
+
var index2 = indexes[length];
|
|
3197
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined$1;
|
|
3157
3198
|
}
|
|
3158
3199
|
return array;
|
|
3159
3200
|
}
|
|
@@ -3191,12 +3232,12 @@ function requireLodash() {
|
|
|
3191
3232
|
};
|
|
3192
3233
|
}
|
|
3193
3234
|
function shuffleSelf(array, size2) {
|
|
3194
|
-
var
|
|
3235
|
+
var index2 = -1, length = array.length, lastIndex = length - 1;
|
|
3195
3236
|
size2 = size2 === undefined$1 ? length : size2;
|
|
3196
|
-
while (++
|
|
3197
|
-
var rand = baseRandom(
|
|
3198
|
-
array[rand] = array[
|
|
3199
|
-
array[
|
|
3237
|
+
while (++index2 < size2) {
|
|
3238
|
+
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
|
3239
|
+
array[rand] = array[index2];
|
|
3240
|
+
array[index2] = value;
|
|
3200
3241
|
}
|
|
3201
3242
|
array.length = size2;
|
|
3202
3243
|
return array;
|
|
@@ -3260,16 +3301,16 @@ function requireLodash() {
|
|
|
3260
3301
|
if (!length || size2 < 1) {
|
|
3261
3302
|
return [];
|
|
3262
3303
|
}
|
|
3263
|
-
var
|
|
3264
|
-
while (
|
|
3265
|
-
result2[resIndex++] = baseSlice(array,
|
|
3304
|
+
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
3305
|
+
while (index2 < length) {
|
|
3306
|
+
result2[resIndex++] = baseSlice(array, index2, index2 += size2);
|
|
3266
3307
|
}
|
|
3267
3308
|
return result2;
|
|
3268
3309
|
}
|
|
3269
3310
|
function compact(array) {
|
|
3270
|
-
var
|
|
3271
|
-
while (++
|
|
3272
|
-
var value = array[
|
|
3311
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
3312
|
+
while (++index2 < length) {
|
|
3313
|
+
var value = array[index2];
|
|
3273
3314
|
if (value) {
|
|
3274
3315
|
result2[resIndex++] = value;
|
|
3275
3316
|
}
|
|
@@ -3281,9 +3322,9 @@ function requireLodash() {
|
|
|
3281
3322
|
if (!length) {
|
|
3282
3323
|
return [];
|
|
3283
3324
|
}
|
|
3284
|
-
var args = Array2(length - 1), array = arguments[0],
|
|
3285
|
-
while (
|
|
3286
|
-
args[
|
|
3325
|
+
var args = Array2(length - 1), array = arguments[0], index2 = length;
|
|
3326
|
+
while (index2--) {
|
|
3327
|
+
args[index2 - 1] = arguments[index2];
|
|
3287
3328
|
}
|
|
3288
3329
|
return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
3289
3330
|
}
|
|
@@ -3343,23 +3384,23 @@ function requireLodash() {
|
|
|
3343
3384
|
if (!length) {
|
|
3344
3385
|
return -1;
|
|
3345
3386
|
}
|
|
3346
|
-
var
|
|
3347
|
-
if (
|
|
3348
|
-
|
|
3387
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3388
|
+
if (index2 < 0) {
|
|
3389
|
+
index2 = nativeMax(length + index2, 0);
|
|
3349
3390
|
}
|
|
3350
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
3391
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2);
|
|
3351
3392
|
}
|
|
3352
3393
|
function findLastIndex(array, predicate, fromIndex) {
|
|
3353
3394
|
var length = array == null ? 0 : array.length;
|
|
3354
3395
|
if (!length) {
|
|
3355
3396
|
return -1;
|
|
3356
3397
|
}
|
|
3357
|
-
var
|
|
3398
|
+
var index2 = length - 1;
|
|
3358
3399
|
if (fromIndex !== undefined$1) {
|
|
3359
|
-
|
|
3360
|
-
|
|
3400
|
+
index2 = toInteger(fromIndex);
|
|
3401
|
+
index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3361
3402
|
}
|
|
3362
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
3403
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2, true);
|
|
3363
3404
|
}
|
|
3364
3405
|
function flatten(array) {
|
|
3365
3406
|
var length = array == null ? 0 : array.length;
|
|
@@ -3378,9 +3419,9 @@ function requireLodash() {
|
|
|
3378
3419
|
return baseFlatten(array, depth);
|
|
3379
3420
|
}
|
|
3380
3421
|
function fromPairs(pairs) {
|
|
3381
|
-
var
|
|
3382
|
-
while (++
|
|
3383
|
-
var pair = pairs[
|
|
3422
|
+
var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
3423
|
+
while (++index2 < length) {
|
|
3424
|
+
var pair = pairs[index2];
|
|
3384
3425
|
result2[pair[0]] = pair[1];
|
|
3385
3426
|
}
|
|
3386
3427
|
return result2;
|
|
@@ -3393,11 +3434,11 @@ function requireLodash() {
|
|
|
3393
3434
|
if (!length) {
|
|
3394
3435
|
return -1;
|
|
3395
3436
|
}
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3398
|
-
|
|
3437
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3438
|
+
if (index2 < 0) {
|
|
3439
|
+
index2 = nativeMax(length + index2, 0);
|
|
3399
3440
|
}
|
|
3400
|
-
return baseIndexOf(array, value,
|
|
3441
|
+
return baseIndexOf(array, value, index2);
|
|
3401
3442
|
}
|
|
3402
3443
|
function initial(array) {
|
|
3403
3444
|
var length = array == null ? 0 : array.length;
|
|
@@ -3436,12 +3477,12 @@ function requireLodash() {
|
|
|
3436
3477
|
if (!length) {
|
|
3437
3478
|
return -1;
|
|
3438
3479
|
}
|
|
3439
|
-
var
|
|
3480
|
+
var index2 = length;
|
|
3440
3481
|
if (fromIndex !== undefined$1) {
|
|
3441
|
-
|
|
3442
|
-
|
|
3482
|
+
index2 = toInteger(fromIndex);
|
|
3483
|
+
index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3443
3484
|
}
|
|
3444
|
-
return value === value ? strictLastIndexOf(array, value,
|
|
3485
|
+
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true);
|
|
3445
3486
|
}
|
|
3446
3487
|
function nth(array, n) {
|
|
3447
3488
|
return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
|
|
@@ -3458,8 +3499,8 @@ function requireLodash() {
|
|
|
3458
3499
|
}
|
|
3459
3500
|
var pullAt = flatRest(function(array, indexes) {
|
|
3460
3501
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
3461
|
-
basePullAt(array, arrayMap(indexes, function(
|
|
3462
|
-
return isIndex(
|
|
3502
|
+
basePullAt(array, arrayMap(indexes, function(index2) {
|
|
3503
|
+
return isIndex(index2, length) ? +index2 : index2;
|
|
3463
3504
|
}).sort(compareAscending));
|
|
3464
3505
|
return result2;
|
|
3465
3506
|
});
|
|
@@ -3468,13 +3509,13 @@ function requireLodash() {
|
|
|
3468
3509
|
if (!(array && array.length)) {
|
|
3469
3510
|
return result2;
|
|
3470
3511
|
}
|
|
3471
|
-
var
|
|
3512
|
+
var index2 = -1, indexes = [], length = array.length;
|
|
3472
3513
|
predicate = getIteratee(predicate, 3);
|
|
3473
|
-
while (++
|
|
3474
|
-
var value = array[
|
|
3475
|
-
if (predicate(value,
|
|
3514
|
+
while (++index2 < length) {
|
|
3515
|
+
var value = array[index2];
|
|
3516
|
+
if (predicate(value, index2, array)) {
|
|
3476
3517
|
result2.push(value);
|
|
3477
|
-
indexes.push(
|
|
3518
|
+
indexes.push(index2);
|
|
3478
3519
|
}
|
|
3479
3520
|
}
|
|
3480
3521
|
basePullAt(array, indexes);
|
|
@@ -3506,9 +3547,9 @@ function requireLodash() {
|
|
|
3506
3547
|
function sortedIndexOf(array, value) {
|
|
3507
3548
|
var length = array == null ? 0 : array.length;
|
|
3508
3549
|
if (length) {
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3550
|
+
var index2 = baseSortedIndex(array, value);
|
|
3551
|
+
if (index2 < length && eq(array[index2], value)) {
|
|
3552
|
+
return index2;
|
|
3512
3553
|
}
|
|
3513
3554
|
}
|
|
3514
3555
|
return -1;
|
|
@@ -3522,9 +3563,9 @@ function requireLodash() {
|
|
|
3522
3563
|
function sortedLastIndexOf(array, value) {
|
|
3523
3564
|
var length = array == null ? 0 : array.length;
|
|
3524
3565
|
if (length) {
|
|
3525
|
-
var
|
|
3526
|
-
if (eq(array[
|
|
3527
|
-
return
|
|
3566
|
+
var index2 = baseSortedIndex(array, value, true) - 1;
|
|
3567
|
+
if (eq(array[index2], value)) {
|
|
3568
|
+
return index2;
|
|
3528
3569
|
}
|
|
3529
3570
|
}
|
|
3530
3571
|
return -1;
|
|
@@ -3597,8 +3638,8 @@ function requireLodash() {
|
|
|
3597
3638
|
return true;
|
|
3598
3639
|
}
|
|
3599
3640
|
});
|
|
3600
|
-
return baseTimes(length, function(
|
|
3601
|
-
return arrayMap(array, baseProperty(
|
|
3641
|
+
return baseTimes(length, function(index2) {
|
|
3642
|
+
return arrayMap(array, baseProperty(index2));
|
|
3602
3643
|
});
|
|
3603
3644
|
}
|
|
3604
3645
|
function unzipWith(array, iteratee2) {
|
|
@@ -3783,9 +3824,9 @@ function requireLodash() {
|
|
|
3783
3824
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
3784
3825
|
}
|
|
3785
3826
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
3786
|
-
var
|
|
3827
|
+
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
3787
3828
|
baseEach(collection, function(value) {
|
|
3788
|
-
result2[++
|
|
3829
|
+
result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
|
3789
3830
|
});
|
|
3790
3831
|
return result2;
|
|
3791
3832
|
});
|
|
@@ -4071,9 +4112,9 @@ function requireLodash() {
|
|
|
4071
4112
|
transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
|
4072
4113
|
var funcsLength = transforms.length;
|
|
4073
4114
|
return baseRest(function(args) {
|
|
4074
|
-
var
|
|
4075
|
-
while (++
|
|
4076
|
-
args[
|
|
4115
|
+
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
|
4116
|
+
while (++index2 < length) {
|
|
4117
|
+
args[index2] = transforms[index2].call(this, args[index2]);
|
|
4077
4118
|
}
|
|
4078
4119
|
return apply(func, this, args);
|
|
4079
4120
|
});
|
|
@@ -4388,14 +4429,14 @@ function requireLodash() {
|
|
|
4388
4429
|
}
|
|
4389
4430
|
var defaults = baseRest(function(object, sources) {
|
|
4390
4431
|
object = Object2(object);
|
|
4391
|
-
var
|
|
4432
|
+
var index2 = -1;
|
|
4392
4433
|
var length = sources.length;
|
|
4393
4434
|
var guard = length > 2 ? sources[2] : undefined$1;
|
|
4394
4435
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
4395
4436
|
length = 1;
|
|
4396
4437
|
}
|
|
4397
|
-
while (++
|
|
4398
|
-
var source = sources[
|
|
4438
|
+
while (++index2 < length) {
|
|
4439
|
+
var source = sources[index2];
|
|
4399
4440
|
var props = keysIn(source);
|
|
4400
4441
|
var propsIndex = -1;
|
|
4401
4442
|
var propsLength = props.length;
|
|
@@ -4533,15 +4574,15 @@ function requireLodash() {
|
|
|
4533
4574
|
}
|
|
4534
4575
|
function result(object, path, defaultValue) {
|
|
4535
4576
|
path = castPath(path, object);
|
|
4536
|
-
var
|
|
4577
|
+
var index2 = -1, length = path.length;
|
|
4537
4578
|
if (!length) {
|
|
4538
4579
|
length = 1;
|
|
4539
4580
|
object = undefined$1;
|
|
4540
4581
|
}
|
|
4541
|
-
while (++
|
|
4542
|
-
var value = object == null ? undefined$1 : object[toKey(path[
|
|
4582
|
+
while (++index2 < length) {
|
|
4583
|
+
var value = object == null ? undefined$1 : object[toKey(path[index2])];
|
|
4543
4584
|
if (value === undefined$1) {
|
|
4544
|
-
|
|
4585
|
+
index2 = length;
|
|
4545
4586
|
value = defaultValue;
|
|
4546
4587
|
}
|
|
4547
4588
|
object = isFunction(value) ? value.call(object) : value;
|
|
@@ -4570,8 +4611,8 @@ function requireLodash() {
|
|
|
4570
4611
|
accumulator = {};
|
|
4571
4612
|
}
|
|
4572
4613
|
}
|
|
4573
|
-
(isArrLike ? arrayEach : baseForOwn)(object, function(value,
|
|
4574
|
-
return iteratee2(accumulator, value,
|
|
4614
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index2, object2) {
|
|
4615
|
+
return iteratee2(accumulator, value, index2, object2);
|
|
4575
4616
|
});
|
|
4576
4617
|
return accumulator;
|
|
4577
4618
|
}
|
|
@@ -4653,9 +4694,9 @@ function requireLodash() {
|
|
|
4653
4694
|
}
|
|
4654
4695
|
return baseRandom(lower, upper);
|
|
4655
4696
|
}
|
|
4656
|
-
var camelCase = createCompounder(function(result2, word,
|
|
4697
|
+
var camelCase = createCompounder(function(result2, word, index2) {
|
|
4657
4698
|
word = word.toLowerCase();
|
|
4658
|
-
return result2 + (
|
|
4699
|
+
return result2 + (index2 ? capitalize(word) : word);
|
|
4659
4700
|
});
|
|
4660
4701
|
function capitalize(string) {
|
|
4661
4702
|
return upperFirst(toString(string).toLowerCase());
|
|
@@ -4681,11 +4722,11 @@ function requireLodash() {
|
|
|
4681
4722
|
string = toString(string);
|
|
4682
4723
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
|
4683
4724
|
}
|
|
4684
|
-
var kebabCase = createCompounder(function(result2, word,
|
|
4685
|
-
return result2 + (
|
|
4725
|
+
var kebabCase = createCompounder(function(result2, word, index2) {
|
|
4726
|
+
return result2 + (index2 ? "-" : "") + word.toLowerCase();
|
|
4686
4727
|
});
|
|
4687
|
-
var lowerCase = createCompounder(function(result2, word,
|
|
4688
|
-
return result2 + (
|
|
4728
|
+
var lowerCase = createCompounder(function(result2, word, index2) {
|
|
4729
|
+
return result2 + (index2 ? " " : "") + word.toLowerCase();
|
|
4689
4730
|
});
|
|
4690
4731
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
4691
4732
|
function pad(string, length, chars) {
|
|
@@ -4730,8 +4771,8 @@ function requireLodash() {
|
|
|
4730
4771
|
var args = arguments, string = toString(args[0]);
|
|
4731
4772
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
4732
4773
|
}
|
|
4733
|
-
var snakeCase = createCompounder(function(result2, word,
|
|
4734
|
-
return result2 + (
|
|
4774
|
+
var snakeCase = createCompounder(function(result2, word, index2) {
|
|
4775
|
+
return result2 + (index2 ? "_" : "") + word.toLowerCase();
|
|
4735
4776
|
});
|
|
4736
4777
|
function split(string, separator, limit) {
|
|
4737
4778
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
@@ -4750,8 +4791,8 @@ function requireLodash() {
|
|
|
4750
4791
|
}
|
|
4751
4792
|
return string.split(separator, limit);
|
|
4752
4793
|
}
|
|
4753
|
-
var startCase = createCompounder(function(result2, word,
|
|
4754
|
-
return result2 + (
|
|
4794
|
+
var startCase = createCompounder(function(result2, word, index2) {
|
|
4795
|
+
return result2 + (index2 ? " " : "") + upperFirst(word);
|
|
4755
4796
|
});
|
|
4756
4797
|
function startsWith(string, target, position) {
|
|
4757
4798
|
string = toString(string);
|
|
@@ -4767,7 +4808,7 @@ function requireLodash() {
|
|
|
4767
4808
|
string = toString(string);
|
|
4768
4809
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
4769
4810
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
4770
|
-
var isEscaping, isEvaluating,
|
|
4811
|
+
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
4771
4812
|
var reDelimiters = RegExp2(
|
|
4772
4813
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
4773
4814
|
"g"
|
|
@@ -4775,7 +4816,7 @@ function requireLodash() {
|
|
|
4775
4816
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
4776
4817
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
4777
4818
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
4778
|
-
source += string.slice(
|
|
4819
|
+
source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar);
|
|
4779
4820
|
if (escapeValue) {
|
|
4780
4821
|
isEscaping = true;
|
|
4781
4822
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
@@ -4787,7 +4828,7 @@ function requireLodash() {
|
|
|
4787
4828
|
if (interpolateValue) {
|
|
4788
4829
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
4789
4830
|
}
|
|
4790
|
-
|
|
4831
|
+
index2 = offset + match.length;
|
|
4791
4832
|
return match;
|
|
4792
4833
|
});
|
|
4793
4834
|
source += "';\n";
|
|
@@ -4887,9 +4928,9 @@ function requireLodash() {
|
|
|
4887
4928
|
result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
|
|
4888
4929
|
}
|
|
4889
4930
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
4890
|
-
var
|
|
4891
|
-
if (
|
|
4892
|
-
result2 = result2.slice(0,
|
|
4931
|
+
var index2 = result2.lastIndexOf(separator);
|
|
4932
|
+
if (index2 > -1) {
|
|
4933
|
+
result2 = result2.slice(0, index2);
|
|
4893
4934
|
}
|
|
4894
4935
|
}
|
|
4895
4936
|
return result2 + omission;
|
|
@@ -4898,8 +4939,8 @@ function requireLodash() {
|
|
|
4898
4939
|
string = toString(string);
|
|
4899
4940
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
4900
4941
|
}
|
|
4901
|
-
var upperCase = createCompounder(function(result2, word,
|
|
4902
|
-
return result2 + (
|
|
4942
|
+
var upperCase = createCompounder(function(result2, word, index2) {
|
|
4943
|
+
return result2 + (index2 ? " " : "") + word.toUpperCase();
|
|
4903
4944
|
});
|
|
4904
4945
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
4905
4946
|
function words(string, pattern, guard) {
|
|
@@ -4933,9 +4974,9 @@ function requireLodash() {
|
|
|
4933
4974
|
return [toIteratee(pair[0]), pair[1]];
|
|
4934
4975
|
});
|
|
4935
4976
|
return baseRest(function(args) {
|
|
4936
|
-
var
|
|
4937
|
-
while (++
|
|
4938
|
-
var pair = pairs[
|
|
4977
|
+
var index2 = -1;
|
|
4978
|
+
while (++index2 < length) {
|
|
4979
|
+
var pair = pairs[index2];
|
|
4939
4980
|
if (apply(pair[0], this, args)) {
|
|
4940
4981
|
return apply(pair[1], this, args);
|
|
4941
4982
|
}
|
|
@@ -5051,12 +5092,12 @@ function requireLodash() {
|
|
|
5051
5092
|
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
|
5052
5093
|
return [];
|
|
5053
5094
|
}
|
|
5054
|
-
var
|
|
5095
|
+
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
5055
5096
|
iteratee2 = getIteratee(iteratee2);
|
|
5056
5097
|
n -= MAX_ARRAY_LENGTH;
|
|
5057
5098
|
var result2 = baseTimes(length, iteratee2);
|
|
5058
|
-
while (++
|
|
5059
|
-
iteratee2(
|
|
5099
|
+
while (++index2 < n) {
|
|
5100
|
+
iteratee2(index2);
|
|
5060
5101
|
}
|
|
5061
5102
|
return result2;
|
|
5062
5103
|
}
|
|
@@ -5428,10 +5469,10 @@ function requireLodash() {
|
|
|
5428
5469
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
5429
5470
|
lodash2[methodName].placeholder = lodash2;
|
|
5430
5471
|
});
|
|
5431
|
-
arrayEach(["drop", "take"], function(methodName,
|
|
5472
|
+
arrayEach(["drop", "take"], function(methodName, index2) {
|
|
5432
5473
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
5433
5474
|
n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
|
|
5434
|
-
var result2 = this.__filtered__ && !
|
|
5475
|
+
var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
|
|
5435
5476
|
if (result2.__filtered__) {
|
|
5436
5477
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
5437
5478
|
} else {
|
|
@@ -5446,8 +5487,8 @@ function requireLodash() {
|
|
|
5446
5487
|
return this.reverse()[methodName](n).reverse();
|
|
5447
5488
|
};
|
|
5448
5489
|
});
|
|
5449
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
|
5450
|
-
var type =
|
|
5490
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) {
|
|
5491
|
+
var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
|
5451
5492
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
5452
5493
|
var result2 = this.clone();
|
|
5453
5494
|
result2.__iteratees__.push({
|
|
@@ -5458,14 +5499,14 @@ function requireLodash() {
|
|
|
5458
5499
|
return result2;
|
|
5459
5500
|
};
|
|
5460
5501
|
});
|
|
5461
|
-
arrayEach(["head", "last"], function(methodName,
|
|
5462
|
-
var takeName = "take" + (
|
|
5502
|
+
arrayEach(["head", "last"], function(methodName, index2) {
|
|
5503
|
+
var takeName = "take" + (index2 ? "Right" : "");
|
|
5463
5504
|
LazyWrapper.prototype[methodName] = function() {
|
|
5464
5505
|
return this[takeName](1).value()[0];
|
|
5465
5506
|
};
|
|
5466
5507
|
});
|
|
5467
|
-
arrayEach(["initial", "tail"], function(methodName,
|
|
5468
|
-
var dropName = "drop" + (
|
|
5508
|
+
arrayEach(["initial", "tail"], function(methodName, index2) {
|
|
5509
|
+
var dropName = "drop" + (index2 ? "" : "Right");
|
|
5469
5510
|
LazyWrapper.prototype[methodName] = function() {
|
|
5470
5511
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
5471
5512
|
};
|
|
@@ -7601,7 +7642,7 @@ function distributeFlexSpace(children, availableSpace, direction) {
|
|
|
7601
7642
|
}
|
|
7602
7643
|
const flexItems = [];
|
|
7603
7644
|
let nonFlexSpace = 0;
|
|
7604
|
-
children.forEach((layoutChild,
|
|
7645
|
+
children.forEach((layoutChild, index2) => {
|
|
7605
7646
|
const props = layoutChild.child.__layoutProps;
|
|
7606
7647
|
const hasExplicitFlex = props?.flex !== void 0;
|
|
7607
7648
|
const hasExplicitShrink = props?.flexShrink !== void 0;
|
|
@@ -7628,7 +7669,7 @@ function distributeFlexSpace(children, availableSpace, direction) {
|
|
|
7628
7669
|
if (isFlexItem) {
|
|
7629
7670
|
flexItems.push({
|
|
7630
7671
|
child: layoutChild,
|
|
7631
|
-
index,
|
|
7672
|
+
index: index2,
|
|
7632
7673
|
flexGrow,
|
|
7633
7674
|
flexShrink,
|
|
7634
7675
|
flexBasis: basisSize,
|
|
@@ -9746,11 +9787,11 @@ class RenderContext {
|
|
|
9746
9787
|
}
|
|
9747
9788
|
}
|
|
9748
9789
|
function getRenderContext(parentOrScene) {
|
|
9749
|
-
const scene = parentOrScene instanceof
|
|
9790
|
+
const scene = parentOrScene instanceof Phaser__namespace.Scene ? parentOrScene : parentOrScene.scene;
|
|
9750
9791
|
if (!scene || !scene.data || !scene.sys || !scene.sys.settings.active) {
|
|
9751
9792
|
throw new Error("getRenderContext: Invalid scene or scene.data is undefined");
|
|
9752
9793
|
}
|
|
9753
|
-
const containerKey = parentOrScene instanceof
|
|
9794
|
+
const containerKey = parentOrScene instanceof Phaser__namespace.GameObjects.Container ? `__renderContext_${parentOrScene.name || parentOrScene.id || "container"}__` : "__renderContext_scene__";
|
|
9754
9795
|
let context = scene.data.get(containerKey);
|
|
9755
9796
|
if (!context) {
|
|
9756
9797
|
context = new RenderContext(scene);
|
|
@@ -9977,7 +10018,7 @@ class MountRegistry {
|
|
|
9977
10018
|
*/
|
|
9978
10019
|
findByParentAndKey(parent, key) {
|
|
9979
10020
|
for (const entry of this.entries.values()) {
|
|
9980
|
-
const scene = entry.parent instanceof
|
|
10021
|
+
const scene = entry.parent instanceof Phaser__namespace.Scene ? entry.parent : entry.parent.scene;
|
|
9981
10022
|
if (!scene || !scene.sys || !scene.sys.settings.active) {
|
|
9982
10023
|
DebugLogger.log("vdom", `Removing mount ${entry.id} - scene inactive`);
|
|
9983
10024
|
this.unregister(entry.id);
|
|
@@ -10032,7 +10073,7 @@ class MountRegistry {
|
|
|
10032
10073
|
if (key) {
|
|
10033
10074
|
byKey.set(key, (byKey.get(key) ?? 0) + 1);
|
|
10034
10075
|
}
|
|
10035
|
-
const parentType = entry.parent instanceof
|
|
10076
|
+
const parentType = entry.parent instanceof Phaser__namespace.Scene ? "Scene" : "Container";
|
|
10036
10077
|
const mountInfo = {
|
|
10037
10078
|
id: entry.id,
|
|
10038
10079
|
type: typeName,
|
|
@@ -10073,13 +10114,13 @@ function remountAll() {
|
|
|
10073
10114
|
console.log(`[REMOUNT] Starting remount of ${entries.length} root(s)`);
|
|
10074
10115
|
entries.forEach((entry) => {
|
|
10075
10116
|
try {
|
|
10076
|
-
const scene = entry.parent instanceof
|
|
10117
|
+
const scene = entry.parent instanceof Phaser__namespace.Scene ? entry.parent : entry.parent.scene;
|
|
10077
10118
|
if (!scene || !scene.sys) {
|
|
10078
10119
|
console.warn("[REMOUNT] Scene is invalid, skipping remount");
|
|
10079
10120
|
return;
|
|
10080
10121
|
}
|
|
10081
10122
|
const currentVNode = scene.__rootVNode;
|
|
10082
|
-
if (entry.rootNode instanceof
|
|
10123
|
+
if (entry.rootNode instanceof Phaser__namespace.GameObjects.Container) {
|
|
10083
10124
|
const children = entry.rootNode.getAll();
|
|
10084
10125
|
children.forEach((child) => {
|
|
10085
10126
|
;
|
|
@@ -10120,7 +10161,7 @@ function remountAll() {
|
|
|
10120
10161
|
;
|
|
10121
10162
|
scene.__rootVNode = vnode;
|
|
10122
10163
|
const rootNode = mount(entry.parent, vnode);
|
|
10123
|
-
if (rootNode instanceof
|
|
10164
|
+
if (rootNode instanceof Phaser__namespace.GameObjects.Container) {
|
|
10124
10165
|
;
|
|
10125
10166
|
rootNode.__mountRootId = generateMountRootId();
|
|
10126
10167
|
}
|
|
@@ -10265,7 +10306,7 @@ function updateGestureHitAreaAfterLayout(container) {
|
|
|
10265
10306
|
if (!manager.hasContainer(container)) return;
|
|
10266
10307
|
const width = container.width;
|
|
10267
10308
|
const height = container.height;
|
|
10268
|
-
const hitArea = new
|
|
10309
|
+
const hitArea = new Phaser__namespace.Geom.Rectangle(0, 0, width, height);
|
|
10269
10310
|
manager.updateHitArea(container, hitArea);
|
|
10270
10311
|
} catch {
|
|
10271
10312
|
}
|
|
@@ -10378,7 +10419,7 @@ function mount(parentOrScene, vnode) {
|
|
|
10378
10419
|
vnode.__theme
|
|
10379
10420
|
);
|
|
10380
10421
|
}
|
|
10381
|
-
const scene2 = parentOrScene instanceof
|
|
10422
|
+
const scene2 = parentOrScene instanceof Phaser__namespace.Scene ? parentOrScene : parentOrScene.scene;
|
|
10382
10423
|
const ctx = {
|
|
10383
10424
|
index: 0,
|
|
10384
10425
|
slots: [],
|
|
@@ -10456,13 +10497,13 @@ function mount(parentOrScene, vnode) {
|
|
|
10456
10497
|
if (flatChildren.length > 0) {
|
|
10457
10498
|
warnMissingKeys(vnode, flatChildren);
|
|
10458
10499
|
}
|
|
10459
|
-
flatChildren.forEach((c,
|
|
10500
|
+
flatChildren.forEach((c, index2) => {
|
|
10460
10501
|
if (!shouldSkipChild(c)) {
|
|
10461
10502
|
let child = c;
|
|
10462
10503
|
if (!child || typeof child !== "object" || !child.type) {
|
|
10463
10504
|
const componentPath = buildComponentPath(vnode);
|
|
10464
10505
|
console.warn(
|
|
10465
|
-
`❌ Invalid child at index ${
|
|
10506
|
+
`❌ Invalid child at index ${index2}`,
|
|
10466
10507
|
`
|
|
10467
10508
|
📍 Component path: ${componentPath}`,
|
|
10468
10509
|
`
|
|
@@ -10493,7 +10534,7 @@ function mount(parentOrScene, vnode) {
|
|
|
10493
10534
|
if (node && "list" in node && Array.isArray(node.list)) {
|
|
10494
10535
|
const container = node;
|
|
10495
10536
|
let parentSize;
|
|
10496
|
-
if (parentOrScene instanceof
|
|
10537
|
+
if (parentOrScene instanceof Phaser__namespace.GameObjects.Container) {
|
|
10497
10538
|
const parentContainer = parentOrScene;
|
|
10498
10539
|
if (parentContainer.__getLayoutSize) {
|
|
10499
10540
|
const parentTotalSize = parentContainer.__getLayoutSize();
|
|
@@ -10792,7 +10833,7 @@ function patchVNode(parent, oldV, newV) {
|
|
|
10792
10833
|
const container = oldV.__node;
|
|
10793
10834
|
if (container.__layoutProps) {
|
|
10794
10835
|
let parentSize;
|
|
10795
|
-
if (parent instanceof
|
|
10836
|
+
if (parent instanceof Phaser__namespace.GameObjects.Container) {
|
|
10796
10837
|
const parentContainer = parent;
|
|
10797
10838
|
if (parentContainer.__getLayoutSize) {
|
|
10798
10839
|
const parentTotalSize = parentContainer.__getLayoutSize();
|
|
@@ -10884,7 +10925,7 @@ Solution: Add unique keys like { key: 'sidebar', ... } and { key: 'main', ... }`
|
|
|
10884
10925
|
return handle2;
|
|
10885
10926
|
}
|
|
10886
10927
|
const { width, height, disableAutoSize = false, key: _key, ...componentProps } = props;
|
|
10887
|
-
const scene = parentOrScene instanceof
|
|
10928
|
+
const scene = parentOrScene instanceof Phaser__namespace.Scene ? parentOrScene : parentOrScene.scene;
|
|
10888
10929
|
if (scene) {
|
|
10889
10930
|
const renderContext = getRenderContext(parentOrScene);
|
|
10890
10931
|
renderContext.setViewport(width, height, scene);
|
|
@@ -10917,7 +10958,7 @@ Solution: Add unique keys like { key: 'sidebar', ... } and { key: 'main', ... }`
|
|
|
10917
10958
|
scene.__rootVNode = vnode;
|
|
10918
10959
|
}
|
|
10919
10960
|
const rootNode = mount(parentOrScene, vnode);
|
|
10920
|
-
if (rootNode instanceof
|
|
10961
|
+
if (rootNode instanceof Phaser__namespace.GameObjects.Container) {
|
|
10921
10962
|
rootNode.__mountRootId = generateMountRootId();
|
|
10922
10963
|
}
|
|
10923
10964
|
rootNode.__rootVNode = vnode;
|
|
@@ -10928,7 +10969,7 @@ Solution: Add unique keys like { key: 'sidebar', ... } and { key: 'main', ... }`
|
|
|
10928
10969
|
return handle;
|
|
10929
10970
|
}
|
|
10930
10971
|
function unmountJSX(target) {
|
|
10931
|
-
const scene = target instanceof
|
|
10972
|
+
const scene = target instanceof Phaser__namespace.Scene ? target : target.scene;
|
|
10932
10973
|
const targetWithVNode = target;
|
|
10933
10974
|
const sceneWithVNode = scene;
|
|
10934
10975
|
const rootVNode = targetWithVNode.__rootVNode ?? sceneWithVNode?.__rootVNode;
|
|
@@ -12257,7 +12298,7 @@ function releaseAllSVGTextures() {
|
|
|
12257
12298
|
function useSVGTexture(key, svg, width = 32, height = 32) {
|
|
12258
12299
|
const [ready, setReady] = useState(false);
|
|
12259
12300
|
const ctx = getCurrent() || {};
|
|
12260
|
-
const scene = ctx.parent instanceof
|
|
12301
|
+
const scene = ctx.parent instanceof Phaser__namespace.Scene ? ctx.parent : ctx.parent?.scene;
|
|
12261
12302
|
useEffect(() => {
|
|
12262
12303
|
if (!scene) return;
|
|
12263
12304
|
let cancelled = false;
|
|
@@ -12278,7 +12319,7 @@ function useSVGTexture(key, svg, width = 32, height = 32) {
|
|
|
12278
12319
|
function useSVGTextures(configs) {
|
|
12279
12320
|
const [ready, setReady] = useState(false);
|
|
12280
12321
|
const ctx = getCurrent() || {};
|
|
12281
|
-
const scene = ctx.parent instanceof
|
|
12322
|
+
const scene = ctx.parent instanceof Phaser__namespace.Scene ? ctx.parent : ctx.parent?.scene;
|
|
12282
12323
|
const configKey = useMemo(
|
|
12283
12324
|
() => configs.map((c) => `${c.key}:${c.width ?? 32}:${c.height ?? 32}`).join("|"),
|
|
12284
12325
|
[configs]
|
|
@@ -12774,7 +12815,7 @@ function useSpring(initialValue, config, onComplete) {
|
|
|
12774
12815
|
valueSignal.current = animatedSignal(initialValue);
|
|
12775
12816
|
}
|
|
12776
12817
|
const ctx = getCurrent();
|
|
12777
|
-
const scene = ctx ? ctx.parent instanceof
|
|
12818
|
+
const scene = ctx ? ctx.parent instanceof Phaser__namespace.Scene ? ctx.parent : ctx.parent.scene : null;
|
|
12778
12819
|
const state = useRef({ value: initialValue, velocity: 0 });
|
|
12779
12820
|
const target = useRef({ value: initialValue });
|
|
12780
12821
|
const physics = useRef(new SpringPhysics(resolvedConfig));
|
|
@@ -12847,7 +12888,7 @@ function useSprings(initialValues, config) {
|
|
|
12847
12888
|
}
|
|
12848
12889
|
});
|
|
12849
12890
|
const ctx = getCurrent();
|
|
12850
|
-
const scene = ctx ? ctx.parent instanceof
|
|
12891
|
+
const scene = ctx ? ctx.parent instanceof Phaser__namespace.Scene ? ctx.parent : ctx.parent.scene : null;
|
|
12851
12892
|
if (scene && sceneRef.current !== scene) {
|
|
12852
12893
|
sceneRef.current = scene;
|
|
12853
12894
|
}
|
|
@@ -13685,9 +13726,9 @@ const getTextObject = (scene, container, textStyle, textObjectPool, activeTextOb
|
|
|
13685
13726
|
};
|
|
13686
13727
|
const returnToPool = (textObj, textObjectPool, activeTextObjects) => {
|
|
13687
13728
|
textObj.setVisible(false);
|
|
13688
|
-
const
|
|
13689
|
-
if (
|
|
13690
|
-
activeTextObjects.current.splice(
|
|
13729
|
+
const index2 = activeTextObjects.current.indexOf(textObj);
|
|
13730
|
+
if (index2 > -1) {
|
|
13731
|
+
activeTextObjects.current.splice(index2, 1);
|
|
13691
13732
|
}
|
|
13692
13733
|
textObjectPool.current.push(textObj);
|
|
13693
13734
|
};
|
|
@@ -13770,8 +13811,8 @@ function CharText(props) {
|
|
|
13770
13811
|
const textOverflow = props.textOverflow ?? "clip";
|
|
13771
13812
|
const wordWrap = props.wordWrap ?? themed.wordWrap ?? true;
|
|
13772
13813
|
const api = {
|
|
13773
|
-
insertChar: (char,
|
|
13774
|
-
const newText = displayedText.slice(0,
|
|
13814
|
+
insertChar: (char, index2) => {
|
|
13815
|
+
const newText = displayedText.slice(0, index2) + char + displayedText.slice(index2);
|
|
13775
13816
|
if (isControlled) {
|
|
13776
13817
|
props.onChange?.(newText);
|
|
13777
13818
|
} else {
|
|
@@ -13779,9 +13820,9 @@ function CharText(props) {
|
|
|
13779
13820
|
props.onChange?.(newText);
|
|
13780
13821
|
}
|
|
13781
13822
|
},
|
|
13782
|
-
deleteChar: (
|
|
13783
|
-
if (
|
|
13784
|
-
const newText = displayedText.slice(0,
|
|
13823
|
+
deleteChar: (index2) => {
|
|
13824
|
+
if (index2 < 0 || index2 >= displayedText.length) return;
|
|
13825
|
+
const newText = displayedText.slice(0, index2) + displayedText.slice(index2 + 1);
|
|
13785
13826
|
if (isControlled) {
|
|
13786
13827
|
props.onChange?.(newText);
|
|
13787
13828
|
} else {
|
|
@@ -13789,9 +13830,9 @@ function CharText(props) {
|
|
|
13789
13830
|
props.onChange?.(newText);
|
|
13790
13831
|
}
|
|
13791
13832
|
},
|
|
13792
|
-
replaceChar: (
|
|
13793
|
-
if (
|
|
13794
|
-
const newText = displayedText.slice(0,
|
|
13833
|
+
replaceChar: (index2, char) => {
|
|
13834
|
+
if (index2 < 0 || index2 >= displayedText.length) return;
|
|
13835
|
+
const newText = displayedText.slice(0, index2) + char + displayedText.slice(index2 + 1);
|
|
13795
13836
|
if (isControlled) {
|
|
13796
13837
|
props.onChange?.(newText);
|
|
13797
13838
|
} else {
|
|
@@ -14860,13 +14901,13 @@ function ScrollView(props) {
|
|
|
14860
14901
|
const sorted = [...snap.positions].sort((a, b) => a - b);
|
|
14861
14902
|
const inferredSizeY = sorted.length > 1 ? Math.max(0, (sorted[1] ?? 0) - (sorted[0] ?? 0)) : viewportHeightCurrent || 0;
|
|
14862
14903
|
const inferredSizeX = sorted.length > 1 ? Math.max(0, (sorted[1] ?? 0) - (sorted[0] ?? 0)) : viewportWidthCurrent || 0;
|
|
14863
|
-
const targetsX = sorted.map((position,
|
|
14864
|
-
const next = sorted[
|
|
14904
|
+
const targetsX = sorted.map((position, index2) => {
|
|
14905
|
+
const next = sorted[index2 + 1];
|
|
14865
14906
|
const size = next !== void 0 ? Math.max(0, next - position) : inferredSizeX > 0 ? inferredSizeX : viewportWidthCurrent || 0;
|
|
14866
14907
|
return { position, size };
|
|
14867
14908
|
});
|
|
14868
|
-
const targetsY = sorted.map((position,
|
|
14869
|
-
const next = sorted[
|
|
14909
|
+
const targetsY = sorted.map((position, index2) => {
|
|
14910
|
+
const next = sorted[index2 + 1];
|
|
14870
14911
|
const size = next !== void 0 ? Math.max(0, next - position) : inferredSizeY > 0 ? inferredSizeY : viewportHeightCurrent || 0;
|
|
14871
14912
|
return { position, size };
|
|
14872
14913
|
});
|
|
@@ -14879,8 +14920,8 @@ function ScrollView(props) {
|
|
|
14879
14920
|
let nearest = current;
|
|
14880
14921
|
let minDistance = Infinity;
|
|
14881
14922
|
let nearestIndex = -1;
|
|
14882
|
-
for (let
|
|
14883
|
-
const { position, size } = targets[
|
|
14923
|
+
for (let index2 = 0; index2 < targets.length; index2++) {
|
|
14924
|
+
const { position, size } = targets[index2] ?? { position: 0, size: 0 };
|
|
14884
14925
|
let adjustedPos = position;
|
|
14885
14926
|
if (snapAlignment === "center") {
|
|
14886
14927
|
adjustedPos = position + size / 2 - viewportSize / 2;
|
|
@@ -14892,11 +14933,11 @@ function ScrollView(props) {
|
|
|
14892
14933
|
if (distance < minDistance && distance <= effectiveSnapThreshold) {
|
|
14893
14934
|
minDistance = distance;
|
|
14894
14935
|
nearest = adjustedPos;
|
|
14895
|
-
nearestIndex =
|
|
14936
|
+
nearestIndex = index2;
|
|
14896
14937
|
} else if (distance < minDistance && effectiveSnapThreshold === Infinity) {
|
|
14897
14938
|
minDistance = distance;
|
|
14898
14939
|
nearest = adjustedPos;
|
|
14899
|
-
nearestIndex =
|
|
14940
|
+
nearestIndex = index2;
|
|
14900
14941
|
}
|
|
14901
14942
|
}
|
|
14902
14943
|
return { position: nearest, index: nearestIndex };
|
|
@@ -16086,14 +16127,14 @@ function Sidebar(props) {
|
|
|
16086
16127
|
const renderSections = () => {
|
|
16087
16128
|
if (!props.sections?.length) return null;
|
|
16088
16129
|
const lastSectionIndex = props.sections.length - 1;
|
|
16089
|
-
return props.sections.map((section,
|
|
16090
|
-
const sectionKey = section.key ?? `section-${
|
|
16130
|
+
return props.sections.map((section, index2) => {
|
|
16131
|
+
const sectionKey = section.key ?? `section-${index2}`;
|
|
16091
16132
|
return /* @__PURE__ */ jsxRuntime.jsxs(View, { direction: "column", gap: sectionGap, ...sectionContainer, children: [
|
|
16092
16133
|
renderTitle(section.title),
|
|
16093
16134
|
section.content ?? null,
|
|
16094
16135
|
renderItems(section.items, sectionKey),
|
|
16095
16136
|
section.footer ?? null,
|
|
16096
|
-
showDividers &&
|
|
16137
|
+
showDividers && index2 < lastSectionIndex ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
16097
16138
|
Divider,
|
|
16098
16139
|
{
|
|
16099
16140
|
color: dividerColorValue,
|
|
@@ -16612,12 +16653,12 @@ function Tabs(props) {
|
|
|
16612
16653
|
}, [props.children]);
|
|
16613
16654
|
const panelCount = Math.min(tabs.length, panels.length);
|
|
16614
16655
|
const safeIndex = panelCount > 0 ? Math.min(Math.max(rawIndex, 0), panelCount - 1) : 0;
|
|
16615
|
-
const handleSelect = (
|
|
16656
|
+
const handleSelect = (index2) => {
|
|
16616
16657
|
if (props.activeIndex === void 0) {
|
|
16617
|
-
setInternalIndex(
|
|
16658
|
+
setInternalIndex(index2);
|
|
16618
16659
|
}
|
|
16619
|
-
if (
|
|
16620
|
-
props.onChange?.(
|
|
16660
|
+
if (index2 !== safeIndex) {
|
|
16661
|
+
props.onChange?.(index2);
|
|
16621
16662
|
}
|
|
16622
16663
|
};
|
|
16623
16664
|
const tabListStyle = themed.tabListStyle ?? {};
|
|
@@ -16638,18 +16679,18 @@ function Tabs(props) {
|
|
|
16638
16679
|
const { children: _panelChildren, ...panelViewProps } = activePanelProps;
|
|
16639
16680
|
const scrollableTabs = props.scrollableTabs ?? true;
|
|
16640
16681
|
const tabListScrollProps = props.tabListScrollProps ?? {};
|
|
16641
|
-
const tabListContent = /* @__PURE__ */ jsxRuntime.jsx(View, { ...tabListStyle, direction: "row", width: scrollableTabs ? "auto" : "100%", children: tabs.slice(0, panelCount).map((tab,
|
|
16682
|
+
const tabListContent = /* @__PURE__ */ jsxRuntime.jsx(View, { ...tabListStyle, direction: "row", width: scrollableTabs ? "auto" : "100%", children: tabs.slice(0, panelCount).map((tab, index2) => {
|
|
16642
16683
|
const tabProps = tab.props ?? {};
|
|
16643
16684
|
const { disabled, onTouch, enableGestures, ...tabViewProps } = tabProps;
|
|
16644
16685
|
const tabChildren = tab.children ?? tabProps.children;
|
|
16645
|
-
const isActive =
|
|
16686
|
+
const isActive = index2 === safeIndex;
|
|
16646
16687
|
const combinedTabStyle = {
|
|
16647
16688
|
...tabStyle,
|
|
16648
16689
|
...isActive ? tabActiveStyle : {},
|
|
16649
16690
|
...disabled ? tabDisabledStyle : {},
|
|
16650
16691
|
...tabViewProps
|
|
16651
16692
|
};
|
|
16652
|
-
const tabKey = tab.__key ?? tabProps.key ??
|
|
16693
|
+
const tabKey = tab.__key ?? tabProps.key ?? index2;
|
|
16653
16694
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16654
16695
|
View,
|
|
16655
16696
|
{
|
|
@@ -16657,7 +16698,7 @@ function Tabs(props) {
|
|
|
16657
16698
|
enableGestures: !disabled && (enableGestures ?? true),
|
|
16658
16699
|
onTouch: (data) => {
|
|
16659
16700
|
if (disabled) return;
|
|
16660
|
-
handleSelect(
|
|
16701
|
+
handleSelect(index2);
|
|
16661
16702
|
onTouch?.(data);
|
|
16662
16703
|
},
|
|
16663
16704
|
children: tabChildren
|
|
@@ -17079,4 +17120,4 @@ exports.useWorldLayoutRect = useWorldLayoutRect;
|
|
|
17079
17120
|
exports.vdom = vdom;
|
|
17080
17121
|
exports.viewportRegistry = viewportRegistry;
|
|
17081
17122
|
exports.withHooks = withHooks;
|
|
17082
|
-
//# sourceMappingURL=TransformOriginView-
|
|
17123
|
+
//# sourceMappingURL=TransformOriginView-CrzevUOh.cjs.map
|