antd-mobile 5.34.0 → 5.35.0
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/2x/bundle/antd-mobile.cjs.development.js +427 -1385
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +428 -1386
- package/2x/bundle/antd-mobile.es.js +6409 -7003
- package/2x/bundle/antd-mobile.umd.development.js +427 -1385
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/css-vars-patch.css +3 -3
- package/2x/bundle/style.css +6 -10
- package/2x/cjs/components/button/button.d.ts +1 -1
- package/2x/cjs/components/button/button.patch.css +3 -3
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/2x/cjs/components/checkbox/native-input.js +1 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/2x/cjs/components/error-block/create-error-block.js +1 -0
- package/2x/cjs/components/error-block/index.d.ts +0 -1
- package/2x/cjs/components/error-block/index.js +2 -3
- package/2x/cjs/components/form/form-item.js +1 -0
- package/2x/cjs/components/form/form.js +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/cjs/components/picker-view/wheel.js +7 -4
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.d.ts +1 -1
- package/2x/cjs/components/radio/radio.css +1 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -1
- package/2x/cjs/components/radio/radio.js +5 -5
- package/2x/cjs/components/result-page/result-page.css +5 -5
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/cjs/components/text-area/text-area.css +0 -4
- package/2x/cjs/global/css-vars-patch.css +3 -3
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/index.js +6 -0
- package/2x/cjs/locales/hu-HU.d.ts +139 -0
- package/2x/cjs/locales/hu-HU.js +148 -0
- package/2x/cjs/locales/th-TH.d.ts +139 -0
- package/2x/cjs/locales/th-TH.js +149 -0
- package/2x/cjs/utils/with-default-props.js +8 -9
- package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/2x/cjs/utils/with-stop-propagation.js +2 -1
- package/2x/es/components/button/button.d.ts +1 -1
- package/2x/es/components/button/button.patch.css +3 -3
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/2x/es/components/checkbox/native-input.js +1 -1
- package/2x/es/components/config-provider/config-provider.d.ts +3 -2
- package/2x/es/components/error-block/create-error-block.d.ts +1 -0
- package/2x/es/components/error-block/create-error-block.js +1 -0
- package/2x/es/components/error-block/index.d.ts +0 -1
- package/2x/es/components/error-block/index.js +0 -1
- package/2x/es/components/form/form-item.js +1 -0
- package/2x/es/components/form/form.js +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/es/components/picker-view/wheel.js +6 -3
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.d.ts +1 -1
- package/2x/es/components/radio/radio.css +1 -1
- package/2x/es/components/radio/radio.d.ts +1 -1
- package/2x/es/components/radio/radio.js +4 -4
- package/2x/es/components/result-page/result-page.css +5 -5
- package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/es/components/text-area/text-area.css +0 -4
- package/2x/es/global/css-vars-patch.css +3 -3
- package/2x/es/index.d.ts +1 -1
- package/2x/es/index.js +1 -1
- package/2x/es/locales/hu-HU.d.ts +139 -0
- package/2x/es/locales/hu-HU.js +140 -0
- package/2x/es/locales/th-TH.d.ts +139 -0
- package/2x/es/locales/th-TH.js +142 -0
- package/2x/es/utils/with-default-props.js +8 -8
- package/2x/es/utils/with-stop-propagation.d.ts +1 -1
- package/2x/es/utils/with-stop-propagation.js +2 -1
- package/2x/package.json +11 -3
- package/bundle/antd-mobile.cjs.development.js +427 -1385
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +428 -1386
- package/bundle/antd-mobile.es.js +6409 -7003
- package/bundle/antd-mobile.umd.development.js +427 -1385
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/css-vars-patch.css +3 -3
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +1 -1
- package/cjs/components/button/button.patch.css +3 -3
- package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/cjs/components/checkbox/native-input.js +1 -1
- package/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/cjs/components/error-block/create-error-block.js +1 -0
- package/cjs/components/error-block/index.d.ts +0 -1
- package/cjs/components/error-block/index.js +2 -3
- package/cjs/components/form/form-item.js +1 -0
- package/cjs/components/form/form.js +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/cjs/components/picker-view/wheel.js +7 -4
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -1
- package/cjs/components/radio/radio.d.ts +1 -1
- package/cjs/components/radio/radio.js +5 -5
- package/cjs/components/result-page/result-page.css +5 -5
- package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/cjs/components/text-area/text-area.css +0 -3
- package/cjs/global/css-vars-patch.css +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -0
- package/cjs/locales/hu-HU.d.ts +139 -0
- package/cjs/locales/hu-HU.js +148 -0
- package/cjs/locales/th-TH.d.ts +139 -0
- package/cjs/locales/th-TH.js +149 -0
- package/cjs/utils/with-default-props.js +8 -9
- package/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/cjs/utils/with-stop-propagation.js +2 -1
- package/es/components/button/button.d.ts +1 -1
- package/es/components/button/button.patch.css +3 -3
- package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/es/components/checkbox/native-input.js +1 -1
- package/es/components/config-provider/config-provider.d.ts +3 -2
- package/es/components/error-block/create-error-block.d.ts +1 -0
- package/es/components/error-block/create-error-block.js +1 -0
- package/es/components/error-block/index.d.ts +0 -1
- package/es/components/error-block/index.js +0 -1
- package/es/components/form/form-item.js +1 -0
- package/es/components/form/form.js +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/es/components/picker-view/wheel.js +6 -3
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.d.ts +1 -1
- package/es/components/radio/radio.css +1 -1
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +4 -4
- package/es/components/result-page/result-page.css +5 -5
- package/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/es/components/text-area/text-area.css +0 -3
- package/es/global/css-vars-patch.css +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/hu-HU.d.ts +139 -0
- package/es/locales/hu-HU.js +140 -0
- package/es/locales/th-TH.d.ts +139 -0
- package/es/locales/th-TH.js +142 -0
- package/es/utils/with-default-props.js +8 -8
- package/es/utils/with-stop-propagation.d.ts +1 -1
- package/es/utils/with-stop-propagation.js +2 -1
- package/package.json +11 -3
- package/umd/antd-mobile.js +1 -1
|
@@ -585,466 +585,15 @@ function withNativeProps(props, element) {
|
|
|
585
585
|
}
|
|
586
586
|
return React__default.cloneElement(element, p);
|
|
587
587
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
var root$8 = _root;
|
|
595
|
-
var Symbol$4 = root$8.Symbol;
|
|
596
|
-
var _Symbol = Symbol$4;
|
|
597
|
-
var Symbol$3 = _Symbol;
|
|
598
|
-
var objectProto$e = Object.prototype;
|
|
599
|
-
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
600
|
-
var nativeObjectToString$1 = objectProto$e.toString;
|
|
601
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
602
|
-
function getRawTag$1(value) {
|
|
603
|
-
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
604
|
-
try {
|
|
605
|
-
value[symToStringTag$1] = void 0;
|
|
606
|
-
var unmasked = true;
|
|
607
|
-
} catch (e2) {
|
|
608
|
-
}
|
|
609
|
-
var result = nativeObjectToString$1.call(value);
|
|
610
|
-
if (unmasked) {
|
|
611
|
-
if (isOwn) {
|
|
612
|
-
value[symToStringTag$1] = tag;
|
|
613
|
-
} else {
|
|
614
|
-
delete value[symToStringTag$1];
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
return result;
|
|
618
|
-
}
|
|
619
|
-
var _getRawTag = getRawTag$1;
|
|
620
|
-
var objectProto$d = Object.prototype;
|
|
621
|
-
var nativeObjectToString = objectProto$d.toString;
|
|
622
|
-
function objectToString$1(value) {
|
|
623
|
-
return nativeObjectToString.call(value);
|
|
624
|
-
}
|
|
625
|
-
var _objectToString = objectToString$1;
|
|
626
|
-
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
627
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
628
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
629
|
-
function baseGetTag$6(value) {
|
|
630
|
-
if (value == null) {
|
|
631
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
632
|
-
}
|
|
633
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
634
|
-
}
|
|
635
|
-
var _baseGetTag = baseGetTag$6;
|
|
636
|
-
function isObject$b(value) {
|
|
637
|
-
var type4 = typeof value;
|
|
638
|
-
return value != null && (type4 == "object" || type4 == "function");
|
|
639
|
-
}
|
|
640
|
-
var isObject_1 = isObject$b;
|
|
641
|
-
var baseGetTag$5 = _baseGetTag, isObject$a = isObject_1;
|
|
642
|
-
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
643
|
-
function isFunction$4(value) {
|
|
644
|
-
if (!isObject$a(value)) {
|
|
645
|
-
return false;
|
|
646
|
-
}
|
|
647
|
-
var tag = baseGetTag$5(value);
|
|
648
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
649
|
-
}
|
|
650
|
-
var isFunction_1 = isFunction$4;
|
|
651
|
-
var root$7 = _root;
|
|
652
|
-
var coreJsData$1 = root$7["__core-js_shared__"];
|
|
653
|
-
var _coreJsData = coreJsData$1;
|
|
654
|
-
var coreJsData = _coreJsData;
|
|
655
|
-
var maskSrcKey = function() {
|
|
656
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
657
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
658
|
-
}();
|
|
659
|
-
function isMasked$1(func) {
|
|
660
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
661
|
-
}
|
|
662
|
-
var _isMasked = isMasked$1;
|
|
663
|
-
var funcProto$2 = Function.prototype;
|
|
664
|
-
var funcToString$2 = funcProto$2.toString;
|
|
665
|
-
function toSource$2(func) {
|
|
666
|
-
if (func != null) {
|
|
667
|
-
try {
|
|
668
|
-
return funcToString$2.call(func);
|
|
669
|
-
} catch (e2) {
|
|
670
|
-
}
|
|
671
|
-
try {
|
|
672
|
-
return func + "";
|
|
673
|
-
} catch (e2) {
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
return "";
|
|
677
|
-
}
|
|
678
|
-
var _toSource = toSource$2;
|
|
679
|
-
var isFunction$3 = isFunction_1, isMasked = _isMasked, isObject$9 = isObject_1, toSource$1 = _toSource;
|
|
680
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
681
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
682
|
-
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
683
|
-
var funcToString$1 = funcProto$1.toString;
|
|
684
|
-
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
685
|
-
var reIsNative = RegExp(
|
|
686
|
-
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
687
|
-
);
|
|
688
|
-
function baseIsNative$1(value) {
|
|
689
|
-
if (!isObject$9(value) || isMasked(value)) {
|
|
690
|
-
return false;
|
|
691
|
-
}
|
|
692
|
-
var pattern4 = isFunction$3(value) ? reIsNative : reIsHostCtor;
|
|
693
|
-
return pattern4.test(toSource$1(value));
|
|
694
|
-
}
|
|
695
|
-
var _baseIsNative = baseIsNative$1;
|
|
696
|
-
function getValue$3(object4, key) {
|
|
697
|
-
return object4 == null ? void 0 : object4[key];
|
|
698
|
-
}
|
|
699
|
-
var _getValue = getValue$3;
|
|
700
|
-
var baseIsNative = _baseIsNative, getValue$2 = _getValue;
|
|
701
|
-
function getNative$7(object4, key) {
|
|
702
|
-
var value = getValue$2(object4, key);
|
|
703
|
-
return baseIsNative(value) ? value : void 0;
|
|
704
|
-
}
|
|
705
|
-
var _getNative = getNative$7;
|
|
706
|
-
var getNative$6 = _getNative;
|
|
707
|
-
var defineProperty$2 = function() {
|
|
708
|
-
try {
|
|
709
|
-
var func = getNative$6(Object, "defineProperty");
|
|
710
|
-
func({}, "", {});
|
|
711
|
-
return func;
|
|
712
|
-
} catch (e2) {
|
|
713
|
-
}
|
|
714
|
-
}();
|
|
715
|
-
var _defineProperty$2 = defineProperty$2;
|
|
716
|
-
var defineProperty$1 = _defineProperty$2;
|
|
717
|
-
function baseAssignValue$3(object4, key, value) {
|
|
718
|
-
if (key == "__proto__" && defineProperty$1) {
|
|
719
|
-
defineProperty$1(object4, key, {
|
|
720
|
-
"configurable": true,
|
|
721
|
-
"enumerable": true,
|
|
722
|
-
"value": value,
|
|
723
|
-
"writable": true
|
|
724
|
-
});
|
|
725
|
-
} else {
|
|
726
|
-
object4[key] = value;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
var _baseAssignValue = baseAssignValue$3;
|
|
730
|
-
function eq$5(value, other) {
|
|
731
|
-
return value === other || value !== value && other !== other;
|
|
732
|
-
}
|
|
733
|
-
var eq_1 = eq$5;
|
|
734
|
-
var baseAssignValue$2 = _baseAssignValue, eq$4 = eq_1;
|
|
735
|
-
var objectProto$b = Object.prototype;
|
|
736
|
-
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
737
|
-
function assignValue$1(object4, key, value) {
|
|
738
|
-
var objValue = object4[key];
|
|
739
|
-
if (!(hasOwnProperty$9.call(object4, key) && eq$4(objValue, value)) || value === void 0 && !(key in object4)) {
|
|
740
|
-
baseAssignValue$2(object4, key, value);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
var _assignValue = assignValue$1;
|
|
744
|
-
var assignValue = _assignValue, baseAssignValue$1 = _baseAssignValue;
|
|
745
|
-
function copyObject$2(source, props, object4, customizer) {
|
|
746
|
-
var isNew = !object4;
|
|
747
|
-
object4 || (object4 = {});
|
|
748
|
-
var index2 = -1, length = props.length;
|
|
749
|
-
while (++index2 < length) {
|
|
750
|
-
var key = props[index2];
|
|
751
|
-
var newValue = customizer ? customizer(object4[key], source[key], key, object4, source) : void 0;
|
|
752
|
-
if (newValue === void 0) {
|
|
753
|
-
newValue = source[key];
|
|
754
|
-
}
|
|
755
|
-
if (isNew) {
|
|
756
|
-
baseAssignValue$1(object4, key, newValue);
|
|
757
|
-
} else {
|
|
758
|
-
assignValue(object4, key, newValue);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
return object4;
|
|
762
|
-
}
|
|
763
|
-
var _copyObject = copyObject$2;
|
|
764
|
-
function identity$3(value) {
|
|
765
|
-
return value;
|
|
766
|
-
}
|
|
767
|
-
var identity_1 = identity$3;
|
|
768
|
-
function apply$2(func, thisArg, args) {
|
|
769
|
-
switch (args.length) {
|
|
770
|
-
case 0:
|
|
771
|
-
return func.call(thisArg);
|
|
772
|
-
case 1:
|
|
773
|
-
return func.call(thisArg, args[0]);
|
|
774
|
-
case 2:
|
|
775
|
-
return func.call(thisArg, args[0], args[1]);
|
|
776
|
-
case 3:
|
|
777
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
778
|
-
}
|
|
779
|
-
return func.apply(thisArg, args);
|
|
780
|
-
}
|
|
781
|
-
var _apply = apply$2;
|
|
782
|
-
var apply$1 = _apply;
|
|
783
|
-
var nativeMax$1 = Math.max;
|
|
784
|
-
function overRest$1(func, start2, transform) {
|
|
785
|
-
start2 = nativeMax$1(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
786
|
-
return function() {
|
|
787
|
-
var args = arguments, index2 = -1, length = nativeMax$1(args.length - start2, 0), array4 = Array(length);
|
|
788
|
-
while (++index2 < length) {
|
|
789
|
-
array4[index2] = args[start2 + index2];
|
|
790
|
-
}
|
|
791
|
-
index2 = -1;
|
|
792
|
-
var otherArgs = Array(start2 + 1);
|
|
793
|
-
while (++index2 < start2) {
|
|
794
|
-
otherArgs[index2] = args[index2];
|
|
795
|
-
}
|
|
796
|
-
otherArgs[start2] = transform(array4);
|
|
797
|
-
return apply$1(func, this, otherArgs);
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
var _overRest = overRest$1;
|
|
801
|
-
function constant$1(value) {
|
|
802
|
-
return function() {
|
|
803
|
-
return value;
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
var constant_1 = constant$1;
|
|
807
|
-
var constant = constant_1, defineProperty = _defineProperty$2, identity$2 = identity_1;
|
|
808
|
-
var baseSetToString$1 = !defineProperty ? identity$2 : function(func, string3) {
|
|
809
|
-
return defineProperty(func, "toString", {
|
|
810
|
-
"configurable": true,
|
|
811
|
-
"enumerable": false,
|
|
812
|
-
"value": constant(string3),
|
|
813
|
-
"writable": true
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
|
-
var _baseSetToString = baseSetToString$1;
|
|
817
|
-
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
818
|
-
var nativeNow = Date.now;
|
|
819
|
-
function shortOut$1(func) {
|
|
820
|
-
var count = 0, lastCalled = 0;
|
|
821
|
-
return function() {
|
|
822
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
823
|
-
lastCalled = stamp;
|
|
824
|
-
if (remaining > 0) {
|
|
825
|
-
if (++count >= HOT_COUNT) {
|
|
826
|
-
return arguments[0];
|
|
827
|
-
}
|
|
828
|
-
} else {
|
|
829
|
-
count = 0;
|
|
830
|
-
}
|
|
831
|
-
return func.apply(void 0, arguments);
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
var _shortOut = shortOut$1;
|
|
835
|
-
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
836
|
-
var setToString$1 = shortOut(baseSetToString);
|
|
837
|
-
var _setToString = setToString$1;
|
|
838
|
-
var identity$1 = identity_1, overRest = _overRest, setToString = _setToString;
|
|
839
|
-
function baseRest$1(func, start2) {
|
|
840
|
-
return setToString(overRest(func, start2, identity$1), func + "");
|
|
841
|
-
}
|
|
842
|
-
var _baseRest = baseRest$1;
|
|
843
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
844
|
-
function isLength$2(value) {
|
|
845
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
846
|
-
}
|
|
847
|
-
var isLength_1 = isLength$2;
|
|
848
|
-
var isFunction$2 = isFunction_1, isLength$1 = isLength_1;
|
|
849
|
-
function isArrayLike$4(value) {
|
|
850
|
-
return value != null && isLength$1(value.length) && !isFunction$2(value);
|
|
851
|
-
}
|
|
852
|
-
var isArrayLike_1 = isArrayLike$4;
|
|
853
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
854
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
855
|
-
function isIndex$2(value, length) {
|
|
856
|
-
var type4 = typeof value;
|
|
857
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
858
|
-
return !!length && (type4 == "number" || type4 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
859
|
-
}
|
|
860
|
-
var _isIndex = isIndex$2;
|
|
861
|
-
var eq$3 = eq_1, isArrayLike$3 = isArrayLike_1, isIndex$1 = _isIndex, isObject$8 = isObject_1;
|
|
862
|
-
function isIterateeCall$1(value, index2, object4) {
|
|
863
|
-
if (!isObject$8(object4)) {
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
var type4 = typeof index2;
|
|
867
|
-
if (type4 == "number" ? isArrayLike$3(object4) && isIndex$1(index2, object4.length) : type4 == "string" && index2 in object4) {
|
|
868
|
-
return eq$3(object4[index2], value);
|
|
869
|
-
}
|
|
870
|
-
return false;
|
|
871
|
-
}
|
|
872
|
-
var _isIterateeCall = isIterateeCall$1;
|
|
873
|
-
var baseRest = _baseRest, isIterateeCall = _isIterateeCall;
|
|
874
|
-
function createAssigner$2(assigner) {
|
|
875
|
-
return baseRest(function(object4, sources) {
|
|
876
|
-
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
877
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
878
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
879
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
880
|
-
length = 1;
|
|
881
|
-
}
|
|
882
|
-
object4 = Object(object4);
|
|
883
|
-
while (++index2 < length) {
|
|
884
|
-
var source = sources[index2];
|
|
885
|
-
if (source) {
|
|
886
|
-
assigner(object4, source, index2, customizer);
|
|
588
|
+
function mergeProps(...items) {
|
|
589
|
+
const ret = {};
|
|
590
|
+
items.forEach((item) => {
|
|
591
|
+
Object.keys(item).forEach((key) => {
|
|
592
|
+
if (item[key] !== void 0) {
|
|
593
|
+
ret[key] = item[key];
|
|
887
594
|
}
|
|
888
|
-
}
|
|
889
|
-
return object4;
|
|
595
|
+
});
|
|
890
596
|
});
|
|
891
|
-
}
|
|
892
|
-
var _createAssigner = createAssigner$2;
|
|
893
|
-
function baseTimes$1(n2, iteratee) {
|
|
894
|
-
var index2 = -1, result = Array(n2);
|
|
895
|
-
while (++index2 < n2) {
|
|
896
|
-
result[index2] = iteratee(index2);
|
|
897
|
-
}
|
|
898
|
-
return result;
|
|
899
|
-
}
|
|
900
|
-
var _baseTimes = baseTimes$1;
|
|
901
|
-
function isObjectLike$7(value) {
|
|
902
|
-
return value != null && typeof value == "object";
|
|
903
|
-
}
|
|
904
|
-
var isObjectLike_1 = isObjectLike$7;
|
|
905
|
-
var baseGetTag$4 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
|
|
906
|
-
var argsTag$2 = "[object Arguments]";
|
|
907
|
-
function baseIsArguments$1(value) {
|
|
908
|
-
return isObjectLike$6(value) && baseGetTag$4(value) == argsTag$2;
|
|
909
|
-
}
|
|
910
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
911
|
-
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
912
|
-
var objectProto$a = Object.prototype;
|
|
913
|
-
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
914
|
-
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
915
|
-
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
916
|
-
return arguments;
|
|
917
|
-
}()) ? baseIsArguments : function(value) {
|
|
918
|
-
return isObjectLike$5(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
919
|
-
};
|
|
920
|
-
var isArguments_1 = isArguments$2;
|
|
921
|
-
var isArray$4 = Array.isArray;
|
|
922
|
-
var isArray_1 = isArray$4;
|
|
923
|
-
var isBuffer$3 = { exports: {} };
|
|
924
|
-
function stubFalse() {
|
|
925
|
-
return false;
|
|
926
|
-
}
|
|
927
|
-
var stubFalse_1 = stubFalse;
|
|
928
|
-
isBuffer$3.exports;
|
|
929
|
-
(function(module, exports) {
|
|
930
|
-
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
931
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
932
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
933
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
934
|
-
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
935
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
936
|
-
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
937
|
-
module.exports = isBuffer2;
|
|
938
|
-
})(isBuffer$3, isBuffer$3.exports);
|
|
939
|
-
var isBufferExports = isBuffer$3.exports;
|
|
940
|
-
var baseGetTag$3 = _baseGetTag, isLength = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
941
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
942
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
943
|
-
var typedArrayTags = {};
|
|
944
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
945
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
946
|
-
function baseIsTypedArray$1(value) {
|
|
947
|
-
return isObjectLike$4(value) && isLength(value.length) && !!typedArrayTags[baseGetTag$3(value)];
|
|
948
|
-
}
|
|
949
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
950
|
-
function baseUnary$1(func) {
|
|
951
|
-
return function(value) {
|
|
952
|
-
return func(value);
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
var _baseUnary = baseUnary$1;
|
|
956
|
-
var _nodeUtil = { exports: {} };
|
|
957
|
-
_nodeUtil.exports;
|
|
958
|
-
(function(module, exports) {
|
|
959
|
-
var freeGlobal2 = _freeGlobal;
|
|
960
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
961
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
962
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
963
|
-
var freeProcess = moduleExports && freeGlobal2.process;
|
|
964
|
-
var nodeUtil2 = function() {
|
|
965
|
-
try {
|
|
966
|
-
var types2 = freeModule && freeModule.require && freeModule.require("util").types;
|
|
967
|
-
if (types2) {
|
|
968
|
-
return types2;
|
|
969
|
-
}
|
|
970
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
971
|
-
} catch (e2) {
|
|
972
|
-
}
|
|
973
|
-
}();
|
|
974
|
-
module.exports = nodeUtil2;
|
|
975
|
-
})(_nodeUtil, _nodeUtil.exports);
|
|
976
|
-
var _nodeUtilExports = _nodeUtil.exports;
|
|
977
|
-
var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
978
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
979
|
-
var isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
980
|
-
var isTypedArray_1 = isTypedArray$3;
|
|
981
|
-
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$3 = isArray_1, isBuffer$2 = isBufferExports, isIndex = _isIndex, isTypedArray$2 = isTypedArray_1;
|
|
982
|
-
var objectProto$9 = Object.prototype;
|
|
983
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
984
|
-
function arrayLikeKeys$2(value, inherited) {
|
|
985
|
-
var isArr = isArray$3(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$2(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
986
|
-
for (var key in value) {
|
|
987
|
-
if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
988
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
989
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
990
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
991
|
-
isIndex(key, length)))) {
|
|
992
|
-
result.push(key);
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
return result;
|
|
996
|
-
}
|
|
997
|
-
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
998
|
-
var objectProto$8 = Object.prototype;
|
|
999
|
-
function isPrototype$3(value) {
|
|
1000
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$8;
|
|
1001
|
-
return value === proto;
|
|
1002
|
-
}
|
|
1003
|
-
var _isPrototype = isPrototype$3;
|
|
1004
|
-
function overArg$2(func, transform) {
|
|
1005
|
-
return function(arg) {
|
|
1006
|
-
return func(transform(arg));
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
var _overArg = overArg$2;
|
|
1010
|
-
var overArg$1 = _overArg;
|
|
1011
|
-
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
1012
|
-
var _nativeKeys = nativeKeys$1;
|
|
1013
|
-
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
1014
|
-
var objectProto$7 = Object.prototype;
|
|
1015
|
-
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
1016
|
-
function baseKeys$1(object4) {
|
|
1017
|
-
if (!isPrototype$2(object4)) {
|
|
1018
|
-
return nativeKeys(object4);
|
|
1019
|
-
}
|
|
1020
|
-
var result = [];
|
|
1021
|
-
for (var key in Object(object4)) {
|
|
1022
|
-
if (hasOwnProperty$6.call(object4, key) && key != "constructor") {
|
|
1023
|
-
result.push(key);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
return result;
|
|
1027
|
-
}
|
|
1028
|
-
var _baseKeys = baseKeys$1;
|
|
1029
|
-
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$2 = isArrayLike_1;
|
|
1030
|
-
function keys$2(object4) {
|
|
1031
|
-
return isArrayLike$2(object4) ? arrayLikeKeys$1(object4) : baseKeys(object4);
|
|
1032
|
-
}
|
|
1033
|
-
var keys_1 = keys$2;
|
|
1034
|
-
var copyObject$1 = _copyObject, createAssigner$1 = _createAssigner, keys$1 = keys_1;
|
|
1035
|
-
var assignWith = createAssigner$1(function(object4, source, srcIndex, customizer) {
|
|
1036
|
-
copyObject$1(source, keys$1(source), object4, customizer);
|
|
1037
|
-
});
|
|
1038
|
-
var assignWith_1 = assignWith;
|
|
1039
|
-
const assignWith$1 = /* @__PURE__ */ getDefaultExportFromCjs(assignWith_1);
|
|
1040
|
-
function mergeProps(...items) {
|
|
1041
|
-
function customizer(objValue, srcValue) {
|
|
1042
|
-
return srcValue === void 0 ? objValue : srcValue;
|
|
1043
|
-
}
|
|
1044
|
-
let ret = Object.assign({}, items[0]);
|
|
1045
|
-
for (let i2 = 1; i2 < items.length; i2++) {
|
|
1046
|
-
ret = assignWith$1(ret, items[i2], customizer);
|
|
1047
|
-
}
|
|
1048
597
|
return ret;
|
|
1049
598
|
}
|
|
1050
599
|
var createUpdateEffect = function(hook) {
|
|
@@ -1064,7 +613,7 @@ var createUpdateEffect = function(hook) {
|
|
|
1064
613
|
}, deps);
|
|
1065
614
|
};
|
|
1066
615
|
};
|
|
1067
|
-
var isFunction
|
|
616
|
+
var isFunction = function(value) {
|
|
1068
617
|
return typeof value === "function";
|
|
1069
618
|
};
|
|
1070
619
|
var isNumber = function(value) {
|
|
@@ -1074,7 +623,7 @@ var isDev = true;
|
|
|
1074
623
|
const isDev$1 = isDev;
|
|
1075
624
|
function useMemoizedFn(fn) {
|
|
1076
625
|
if (isDev$1) {
|
|
1077
|
-
if (!isFunction
|
|
626
|
+
if (!isFunction(fn)) {
|
|
1078
627
|
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
1079
628
|
}
|
|
1080
629
|
}
|
|
@@ -1111,7 +660,7 @@ function useLatest(value) {
|
|
|
1111
660
|
}
|
|
1112
661
|
var useUnmount = function(fn) {
|
|
1113
662
|
if (isDev$1) {
|
|
1114
|
-
if (!isFunction
|
|
663
|
+
if (!isFunction(fn)) {
|
|
1115
664
|
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
1116
665
|
}
|
|
1117
666
|
}
|
|
@@ -1123,9 +672,20 @@ var useUnmount = function(fn) {
|
|
|
1123
672
|
}, []);
|
|
1124
673
|
};
|
|
1125
674
|
const useUnmount$1 = useUnmount;
|
|
1126
|
-
|
|
675
|
+
function isObject$4(value) {
|
|
676
|
+
var type4 = typeof value;
|
|
677
|
+
return value != null && (type4 == "object" || type4 == "function");
|
|
678
|
+
}
|
|
679
|
+
var isObject_1 = isObject$4;
|
|
680
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
681
|
+
var _freeGlobal = freeGlobal$1;
|
|
682
|
+
var freeGlobal = _freeGlobal;
|
|
683
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
684
|
+
var root$2 = freeGlobal || freeSelf || Function("return this")();
|
|
685
|
+
var _root = root$2;
|
|
686
|
+
var root$1 = _root;
|
|
1127
687
|
var now$1 = function() {
|
|
1128
|
-
return root$
|
|
688
|
+
return root$1.Date.now();
|
|
1129
689
|
};
|
|
1130
690
|
var now_1 = now$1;
|
|
1131
691
|
var reWhitespace = /\s/;
|
|
@@ -1142,13 +702,59 @@ function baseTrim$1(string3) {
|
|
|
1142
702
|
return string3 ? string3.slice(0, trimmedEndIndex(string3) + 1).replace(reTrimStart, "") : string3;
|
|
1143
703
|
}
|
|
1144
704
|
var _baseTrim = baseTrim$1;
|
|
1145
|
-
var
|
|
1146
|
-
var
|
|
705
|
+
var root = _root;
|
|
706
|
+
var Symbol$3 = root.Symbol;
|
|
707
|
+
var _Symbol = Symbol$3;
|
|
708
|
+
var Symbol$2 = _Symbol;
|
|
709
|
+
var objectProto$1 = Object.prototype;
|
|
710
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
711
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
712
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
713
|
+
function getRawTag$1(value) {
|
|
714
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
715
|
+
try {
|
|
716
|
+
value[symToStringTag$1] = void 0;
|
|
717
|
+
var unmasked = true;
|
|
718
|
+
} catch (e2) {
|
|
719
|
+
}
|
|
720
|
+
var result = nativeObjectToString$1.call(value);
|
|
721
|
+
if (unmasked) {
|
|
722
|
+
if (isOwn) {
|
|
723
|
+
value[symToStringTag$1] = tag;
|
|
724
|
+
} else {
|
|
725
|
+
delete value[symToStringTag$1];
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
return result;
|
|
729
|
+
}
|
|
730
|
+
var _getRawTag = getRawTag$1;
|
|
731
|
+
var objectProto = Object.prototype;
|
|
732
|
+
var nativeObjectToString = objectProto.toString;
|
|
733
|
+
function objectToString$1(value) {
|
|
734
|
+
return nativeObjectToString.call(value);
|
|
735
|
+
}
|
|
736
|
+
var _objectToString = objectToString$1;
|
|
737
|
+
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
738
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
739
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
740
|
+
function baseGetTag$1(value) {
|
|
741
|
+
if (value == null) {
|
|
742
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
743
|
+
}
|
|
744
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
745
|
+
}
|
|
746
|
+
var _baseGetTag = baseGetTag$1;
|
|
747
|
+
function isObjectLike$1(value) {
|
|
748
|
+
return value != null && typeof value == "object";
|
|
749
|
+
}
|
|
750
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
751
|
+
var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
|
|
752
|
+
var symbolTag = "[object Symbol]";
|
|
1147
753
|
function isSymbol$1(value) {
|
|
1148
|
-
return typeof value == "symbol" || isObjectLike
|
|
754
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1149
755
|
}
|
|
1150
756
|
var isSymbol_1 = isSymbol$1;
|
|
1151
|
-
var baseTrim = _baseTrim, isObject$
|
|
757
|
+
var baseTrim = _baseTrim, isObject$3 = isObject_1, isSymbol = isSymbol_1;
|
|
1152
758
|
var NAN = 0 / 0;
|
|
1153
759
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
1154
760
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -1161,9 +767,9 @@ function toNumber$1(value) {
|
|
|
1161
767
|
if (isSymbol(value)) {
|
|
1162
768
|
return NAN;
|
|
1163
769
|
}
|
|
1164
|
-
if (isObject$
|
|
770
|
+
if (isObject$3(value)) {
|
|
1165
771
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
1166
|
-
value = isObject$
|
|
772
|
+
value = isObject$3(other) ? other + "" : other;
|
|
1167
773
|
}
|
|
1168
774
|
if (typeof value != "string") {
|
|
1169
775
|
return value === 0 ? value : +value;
|
|
@@ -1173,16 +779,16 @@ function toNumber$1(value) {
|
|
|
1173
779
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
1174
780
|
}
|
|
1175
781
|
var toNumber_1 = toNumber$1;
|
|
1176
|
-
var isObject$
|
|
1177
|
-
var FUNC_ERROR_TEXT$
|
|
782
|
+
var isObject$2 = isObject_1, now = now_1, toNumber = toNumber_1;
|
|
783
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
1178
784
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1179
785
|
function debounce$1(func, wait, options) {
|
|
1180
786
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
1181
787
|
if (typeof func != "function") {
|
|
1182
|
-
throw new TypeError(FUNC_ERROR_TEXT$
|
|
788
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
1183
789
|
}
|
|
1184
790
|
wait = toNumber(wait) || 0;
|
|
1185
|
-
if (isObject$
|
|
791
|
+
if (isObject$2(options)) {
|
|
1186
792
|
leading = !!options.leading;
|
|
1187
793
|
maxing = "maxWait" in options;
|
|
1188
794
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -1261,14 +867,14 @@ var debounce_1 = debounce$1;
|
|
|
1261
867
|
const debounce$2 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1);
|
|
1262
868
|
var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1263
869
|
const isBrowser$3 = isBrowser$2;
|
|
1264
|
-
var debounce = debounce_1, isObject$
|
|
1265
|
-
var FUNC_ERROR_TEXT
|
|
870
|
+
var debounce = debounce_1, isObject$1 = isObject_1;
|
|
871
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1266
872
|
function throttle$1(func, wait, options) {
|
|
1267
873
|
var leading = true, trailing = true;
|
|
1268
874
|
if (typeof func != "function") {
|
|
1269
|
-
throw new TypeError(FUNC_ERROR_TEXT
|
|
875
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1270
876
|
}
|
|
1271
|
-
if (isObject$
|
|
877
|
+
if (isObject$1(options)) {
|
|
1272
878
|
leading = "leading" in options ? !!options.leading : leading;
|
|
1273
879
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
1274
880
|
}
|
|
@@ -1282,7 +888,7 @@ var throttle_1 = throttle$1;
|
|
|
1282
888
|
const throttle$2 = /* @__PURE__ */ getDefaultExportFromCjs(throttle_1);
|
|
1283
889
|
var useMount = function(fn) {
|
|
1284
890
|
if (isDev$1) {
|
|
1285
|
-
if (!isFunction
|
|
891
|
+
if (!isFunction(fn)) {
|
|
1286
892
|
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1287
893
|
}
|
|
1288
894
|
}
|
|
@@ -1306,7 +912,7 @@ function getTargetElement(target, defaultElement) {
|
|
|
1306
912
|
return defaultElement;
|
|
1307
913
|
}
|
|
1308
914
|
var targetElement;
|
|
1309
|
-
if (isFunction
|
|
915
|
+
if (isFunction(target)) {
|
|
1310
916
|
targetElement = target();
|
|
1311
917
|
} else if ("current" in target) {
|
|
1312
918
|
targetElement = target.current;
|
|
@@ -1701,7 +1307,7 @@ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
|
1701
1307
|
function useDebounceFn(fn, options) {
|
|
1702
1308
|
var _a;
|
|
1703
1309
|
if (isDev$1) {
|
|
1704
|
-
if (!isFunction
|
|
1310
|
+
if (!isFunction(fn)) {
|
|
1705
1311
|
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1706
1312
|
}
|
|
1707
1313
|
}
|
|
@@ -1735,590 +1341,6 @@ function useDebounceEffect(effect, deps, options) {
|
|
|
1735
1341
|
}, deps);
|
|
1736
1342
|
useUpdateEffect(effect, [flag]);
|
|
1737
1343
|
}
|
|
1738
|
-
function listCacheClear$1() {
|
|
1739
|
-
this.__data__ = [];
|
|
1740
|
-
this.size = 0;
|
|
1741
|
-
}
|
|
1742
|
-
var _listCacheClear = listCacheClear$1;
|
|
1743
|
-
var eq$2 = eq_1;
|
|
1744
|
-
function assocIndexOf$4(array4, key) {
|
|
1745
|
-
var length = array4.length;
|
|
1746
|
-
while (length--) {
|
|
1747
|
-
if (eq$2(array4[length][0], key)) {
|
|
1748
|
-
return length;
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
return -1;
|
|
1752
|
-
}
|
|
1753
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
1754
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
1755
|
-
var arrayProto = Array.prototype;
|
|
1756
|
-
var splice = arrayProto.splice;
|
|
1757
|
-
function listCacheDelete$1(key) {
|
|
1758
|
-
var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
|
1759
|
-
if (index2 < 0) {
|
|
1760
|
-
return false;
|
|
1761
|
-
}
|
|
1762
|
-
var lastIndex = data.length - 1;
|
|
1763
|
-
if (index2 == lastIndex) {
|
|
1764
|
-
data.pop();
|
|
1765
|
-
} else {
|
|
1766
|
-
splice.call(data, index2, 1);
|
|
1767
|
-
}
|
|
1768
|
-
--this.size;
|
|
1769
|
-
return true;
|
|
1770
|
-
}
|
|
1771
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
1772
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
1773
|
-
function listCacheGet$1(key) {
|
|
1774
|
-
var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
|
1775
|
-
return index2 < 0 ? void 0 : data[index2][1];
|
|
1776
|
-
}
|
|
1777
|
-
var _listCacheGet = listCacheGet$1;
|
|
1778
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
1779
|
-
function listCacheHas$1(key) {
|
|
1780
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
1781
|
-
}
|
|
1782
|
-
var _listCacheHas = listCacheHas$1;
|
|
1783
|
-
var assocIndexOf = _assocIndexOf;
|
|
1784
|
-
function listCacheSet$1(key, value) {
|
|
1785
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1786
|
-
if (index2 < 0) {
|
|
1787
|
-
++this.size;
|
|
1788
|
-
data.push([key, value]);
|
|
1789
|
-
} else {
|
|
1790
|
-
data[index2][1] = value;
|
|
1791
|
-
}
|
|
1792
|
-
return this;
|
|
1793
|
-
}
|
|
1794
|
-
var _listCacheSet = listCacheSet$1;
|
|
1795
|
-
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
1796
|
-
function ListCache$4(entries) {
|
|
1797
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1798
|
-
this.clear();
|
|
1799
|
-
while (++index2 < length) {
|
|
1800
|
-
var entry = entries[index2];
|
|
1801
|
-
this.set(entry[0], entry[1]);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
1805
|
-
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
1806
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
1807
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
1808
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
1809
|
-
var _ListCache = ListCache$4;
|
|
1810
|
-
var ListCache$3 = _ListCache;
|
|
1811
|
-
function stackClear$1() {
|
|
1812
|
-
this.__data__ = new ListCache$3();
|
|
1813
|
-
this.size = 0;
|
|
1814
|
-
}
|
|
1815
|
-
var _stackClear = stackClear$1;
|
|
1816
|
-
function stackDelete$1(key) {
|
|
1817
|
-
var data = this.__data__, result = data["delete"](key);
|
|
1818
|
-
this.size = data.size;
|
|
1819
|
-
return result;
|
|
1820
|
-
}
|
|
1821
|
-
var _stackDelete = stackDelete$1;
|
|
1822
|
-
function stackGet$1(key) {
|
|
1823
|
-
return this.__data__.get(key);
|
|
1824
|
-
}
|
|
1825
|
-
var _stackGet = stackGet$1;
|
|
1826
|
-
function stackHas$1(key) {
|
|
1827
|
-
return this.__data__.has(key);
|
|
1828
|
-
}
|
|
1829
|
-
var _stackHas = stackHas$1;
|
|
1830
|
-
var getNative$5 = _getNative, root$5 = _root;
|
|
1831
|
-
var Map$4 = getNative$5(root$5, "Map");
|
|
1832
|
-
var _Map = Map$4;
|
|
1833
|
-
var getNative$4 = _getNative;
|
|
1834
|
-
var nativeCreate$4 = getNative$4(Object, "create");
|
|
1835
|
-
var _nativeCreate = nativeCreate$4;
|
|
1836
|
-
var nativeCreate$3 = _nativeCreate;
|
|
1837
|
-
function hashClear$1() {
|
|
1838
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
1839
|
-
this.size = 0;
|
|
1840
|
-
}
|
|
1841
|
-
var _hashClear = hashClear$1;
|
|
1842
|
-
function hashDelete$1(key) {
|
|
1843
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
1844
|
-
this.size -= result ? 1 : 0;
|
|
1845
|
-
return result;
|
|
1846
|
-
}
|
|
1847
|
-
var _hashDelete = hashDelete$1;
|
|
1848
|
-
var nativeCreate$2 = _nativeCreate;
|
|
1849
|
-
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
1850
|
-
var objectProto$6 = Object.prototype;
|
|
1851
|
-
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
1852
|
-
function hashGet$1(key) {
|
|
1853
|
-
var data = this.__data__;
|
|
1854
|
-
if (nativeCreate$2) {
|
|
1855
|
-
var result = data[key];
|
|
1856
|
-
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
1857
|
-
}
|
|
1858
|
-
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
1859
|
-
}
|
|
1860
|
-
var _hashGet = hashGet$1;
|
|
1861
|
-
var nativeCreate$1 = _nativeCreate;
|
|
1862
|
-
var objectProto$5 = Object.prototype;
|
|
1863
|
-
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
1864
|
-
function hashHas$1(key) {
|
|
1865
|
-
var data = this.__data__;
|
|
1866
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
|
|
1867
|
-
}
|
|
1868
|
-
var _hashHas = hashHas$1;
|
|
1869
|
-
var nativeCreate = _nativeCreate;
|
|
1870
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1871
|
-
function hashSet$1(key, value) {
|
|
1872
|
-
var data = this.__data__;
|
|
1873
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1874
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1875
|
-
return this;
|
|
1876
|
-
}
|
|
1877
|
-
var _hashSet = hashSet$1;
|
|
1878
|
-
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
1879
|
-
function Hash$1(entries) {
|
|
1880
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1881
|
-
this.clear();
|
|
1882
|
-
while (++index2 < length) {
|
|
1883
|
-
var entry = entries[index2];
|
|
1884
|
-
this.set(entry[0], entry[1]);
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
Hash$1.prototype.clear = hashClear;
|
|
1888
|
-
Hash$1.prototype["delete"] = hashDelete;
|
|
1889
|
-
Hash$1.prototype.get = hashGet;
|
|
1890
|
-
Hash$1.prototype.has = hashHas;
|
|
1891
|
-
Hash$1.prototype.set = hashSet;
|
|
1892
|
-
var _Hash = Hash$1;
|
|
1893
|
-
var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
|
1894
|
-
function mapCacheClear$1() {
|
|
1895
|
-
this.size = 0;
|
|
1896
|
-
this.__data__ = {
|
|
1897
|
-
"hash": new Hash(),
|
|
1898
|
-
"map": new (Map$3 || ListCache$2)(),
|
|
1899
|
-
"string": new Hash()
|
|
1900
|
-
};
|
|
1901
|
-
}
|
|
1902
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
1903
|
-
function isKeyable$1(value) {
|
|
1904
|
-
var type4 = typeof value;
|
|
1905
|
-
return type4 == "string" || type4 == "number" || type4 == "symbol" || type4 == "boolean" ? value !== "__proto__" : value === null;
|
|
1906
|
-
}
|
|
1907
|
-
var _isKeyable = isKeyable$1;
|
|
1908
|
-
var isKeyable = _isKeyable;
|
|
1909
|
-
function getMapData$4(map, key) {
|
|
1910
|
-
var data = map.__data__;
|
|
1911
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1912
|
-
}
|
|
1913
|
-
var _getMapData = getMapData$4;
|
|
1914
|
-
var getMapData$3 = _getMapData;
|
|
1915
|
-
function mapCacheDelete$1(key) {
|
|
1916
|
-
var result = getMapData$3(this, key)["delete"](key);
|
|
1917
|
-
this.size -= result ? 1 : 0;
|
|
1918
|
-
return result;
|
|
1919
|
-
}
|
|
1920
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
1921
|
-
var getMapData$2 = _getMapData;
|
|
1922
|
-
function mapCacheGet$1(key) {
|
|
1923
|
-
return getMapData$2(this, key).get(key);
|
|
1924
|
-
}
|
|
1925
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
1926
|
-
var getMapData$1 = _getMapData;
|
|
1927
|
-
function mapCacheHas$1(key) {
|
|
1928
|
-
return getMapData$1(this, key).has(key);
|
|
1929
|
-
}
|
|
1930
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
1931
|
-
var getMapData = _getMapData;
|
|
1932
|
-
function mapCacheSet$1(key, value) {
|
|
1933
|
-
var data = getMapData(this, key), size = data.size;
|
|
1934
|
-
data.set(key, value);
|
|
1935
|
-
this.size += data.size == size ? 0 : 1;
|
|
1936
|
-
return this;
|
|
1937
|
-
}
|
|
1938
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
1939
|
-
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
1940
|
-
function MapCache$3(entries) {
|
|
1941
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1942
|
-
this.clear();
|
|
1943
|
-
while (++index2 < length) {
|
|
1944
|
-
var entry = entries[index2];
|
|
1945
|
-
this.set(entry[0], entry[1]);
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
MapCache$3.prototype.clear = mapCacheClear;
|
|
1949
|
-
MapCache$3.prototype["delete"] = mapCacheDelete;
|
|
1950
|
-
MapCache$3.prototype.get = mapCacheGet;
|
|
1951
|
-
MapCache$3.prototype.has = mapCacheHas;
|
|
1952
|
-
MapCache$3.prototype.set = mapCacheSet;
|
|
1953
|
-
var _MapCache = MapCache$3;
|
|
1954
|
-
var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache;
|
|
1955
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1956
|
-
function stackSet$1(key, value) {
|
|
1957
|
-
var data = this.__data__;
|
|
1958
|
-
if (data instanceof ListCache$1) {
|
|
1959
|
-
var pairs = data.__data__;
|
|
1960
|
-
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1961
|
-
pairs.push([key, value]);
|
|
1962
|
-
this.size = ++data.size;
|
|
1963
|
-
return this;
|
|
1964
|
-
}
|
|
1965
|
-
data = this.__data__ = new MapCache$2(pairs);
|
|
1966
|
-
}
|
|
1967
|
-
data.set(key, value);
|
|
1968
|
-
this.size = data.size;
|
|
1969
|
-
return this;
|
|
1970
|
-
}
|
|
1971
|
-
var _stackSet = stackSet$1;
|
|
1972
|
-
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
1973
|
-
function Stack$2(entries) {
|
|
1974
|
-
var data = this.__data__ = new ListCache(entries);
|
|
1975
|
-
this.size = data.size;
|
|
1976
|
-
}
|
|
1977
|
-
Stack$2.prototype.clear = stackClear;
|
|
1978
|
-
Stack$2.prototype["delete"] = stackDelete;
|
|
1979
|
-
Stack$2.prototype.get = stackGet;
|
|
1980
|
-
Stack$2.prototype.has = stackHas;
|
|
1981
|
-
Stack$2.prototype.set = stackSet;
|
|
1982
|
-
var _Stack = Stack$2;
|
|
1983
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1984
|
-
function setCacheAdd$1(value) {
|
|
1985
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
1986
|
-
return this;
|
|
1987
|
-
}
|
|
1988
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
1989
|
-
function setCacheHas$1(value) {
|
|
1990
|
-
return this.__data__.has(value);
|
|
1991
|
-
}
|
|
1992
|
-
var _setCacheHas = setCacheHas$1;
|
|
1993
|
-
var MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
|
|
1994
|
-
function SetCache$1(values) {
|
|
1995
|
-
var index2 = -1, length = values == null ? 0 : values.length;
|
|
1996
|
-
this.__data__ = new MapCache$1();
|
|
1997
|
-
while (++index2 < length) {
|
|
1998
|
-
this.add(values[index2]);
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
|
2002
|
-
SetCache$1.prototype.has = setCacheHas;
|
|
2003
|
-
var _SetCache = SetCache$1;
|
|
2004
|
-
function arraySome$1(array4, predicate) {
|
|
2005
|
-
var index2 = -1, length = array4 == null ? 0 : array4.length;
|
|
2006
|
-
while (++index2 < length) {
|
|
2007
|
-
if (predicate(array4[index2], index2, array4)) {
|
|
2008
|
-
return true;
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
return false;
|
|
2012
|
-
}
|
|
2013
|
-
var _arraySome = arraySome$1;
|
|
2014
|
-
function cacheHas$1(cache, key) {
|
|
2015
|
-
return cache.has(key);
|
|
2016
|
-
}
|
|
2017
|
-
var _cacheHas = cacheHas$1;
|
|
2018
|
-
var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
|
|
2019
|
-
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2020
|
-
function equalArrays$2(array4, other, bitmask, customizer, equalFunc, stack) {
|
|
2021
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array4.length, othLength = other.length;
|
|
2022
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
2023
|
-
return false;
|
|
2024
|
-
}
|
|
2025
|
-
var arrStacked = stack.get(array4);
|
|
2026
|
-
var othStacked = stack.get(other);
|
|
2027
|
-
if (arrStacked && othStacked) {
|
|
2028
|
-
return arrStacked == other && othStacked == array4;
|
|
2029
|
-
}
|
|
2030
|
-
var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
2031
|
-
stack.set(array4, other);
|
|
2032
|
-
stack.set(other, array4);
|
|
2033
|
-
while (++index2 < arrLength) {
|
|
2034
|
-
var arrValue = array4[index2], othValue = other[index2];
|
|
2035
|
-
if (customizer) {
|
|
2036
|
-
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array4, stack) : customizer(arrValue, othValue, index2, array4, other, stack);
|
|
2037
|
-
}
|
|
2038
|
-
if (compared !== void 0) {
|
|
2039
|
-
if (compared) {
|
|
2040
|
-
continue;
|
|
2041
|
-
}
|
|
2042
|
-
result = false;
|
|
2043
|
-
break;
|
|
2044
|
-
}
|
|
2045
|
-
if (seen) {
|
|
2046
|
-
if (!arraySome(other, function(othValue2, othIndex) {
|
|
2047
|
-
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
2048
|
-
return seen.push(othIndex);
|
|
2049
|
-
}
|
|
2050
|
-
})) {
|
|
2051
|
-
result = false;
|
|
2052
|
-
break;
|
|
2053
|
-
}
|
|
2054
|
-
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
2055
|
-
result = false;
|
|
2056
|
-
break;
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
stack["delete"](array4);
|
|
2060
|
-
stack["delete"](other);
|
|
2061
|
-
return result;
|
|
2062
|
-
}
|
|
2063
|
-
var _equalArrays = equalArrays$2;
|
|
2064
|
-
var root$4 = _root;
|
|
2065
|
-
var Uint8Array$2 = root$4.Uint8Array;
|
|
2066
|
-
var _Uint8Array = Uint8Array$2;
|
|
2067
|
-
function mapToArray$1(map) {
|
|
2068
|
-
var index2 = -1, result = Array(map.size);
|
|
2069
|
-
map.forEach(function(value, key) {
|
|
2070
|
-
result[++index2] = [key, value];
|
|
2071
|
-
});
|
|
2072
|
-
return result;
|
|
2073
|
-
}
|
|
2074
|
-
var _mapToArray = mapToArray$1;
|
|
2075
|
-
function setToArray$1(set2) {
|
|
2076
|
-
var index2 = -1, result = Array(set2.size);
|
|
2077
|
-
set2.forEach(function(value) {
|
|
2078
|
-
result[++index2] = value;
|
|
2079
|
-
});
|
|
2080
|
-
return result;
|
|
2081
|
-
}
|
|
2082
|
-
var _setToArray = setToArray$1;
|
|
2083
|
-
var Symbol$1 = _Symbol, Uint8Array$1 = _Uint8Array, eq$1 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
2084
|
-
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2085
|
-
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$1 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
2086
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]";
|
|
2087
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
2088
|
-
function equalByTag$1(object4, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
2089
|
-
switch (tag) {
|
|
2090
|
-
case dataViewTag$1:
|
|
2091
|
-
if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
|
|
2092
|
-
return false;
|
|
2093
|
-
}
|
|
2094
|
-
object4 = object4.buffer;
|
|
2095
|
-
other = other.buffer;
|
|
2096
|
-
case arrayBufferTag:
|
|
2097
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object4), new Uint8Array$1(other))) {
|
|
2098
|
-
return false;
|
|
2099
|
-
}
|
|
2100
|
-
return true;
|
|
2101
|
-
case boolTag:
|
|
2102
|
-
case dateTag:
|
|
2103
|
-
case numberTag:
|
|
2104
|
-
return eq$1(+object4, +other);
|
|
2105
|
-
case errorTag:
|
|
2106
|
-
return object4.name == other.name && object4.message == other.message;
|
|
2107
|
-
case regexpTag:
|
|
2108
|
-
case stringTag:
|
|
2109
|
-
return object4 == other + "";
|
|
2110
|
-
case mapTag$1:
|
|
2111
|
-
var convert = mapToArray;
|
|
2112
|
-
case setTag$1:
|
|
2113
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
2114
|
-
convert || (convert = setToArray);
|
|
2115
|
-
if (object4.size != other.size && !isPartial) {
|
|
2116
|
-
return false;
|
|
2117
|
-
}
|
|
2118
|
-
var stacked = stack.get(object4);
|
|
2119
|
-
if (stacked) {
|
|
2120
|
-
return stacked == other;
|
|
2121
|
-
}
|
|
2122
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
2123
|
-
stack.set(object4, other);
|
|
2124
|
-
var result = equalArrays$1(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2125
|
-
stack["delete"](object4);
|
|
2126
|
-
return result;
|
|
2127
|
-
case symbolTag:
|
|
2128
|
-
if (symbolValueOf) {
|
|
2129
|
-
return symbolValueOf.call(object4) == symbolValueOf.call(other);
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
return false;
|
|
2133
|
-
}
|
|
2134
|
-
var _equalByTag = equalByTag$1;
|
|
2135
|
-
function arrayPush$1(array4, values) {
|
|
2136
|
-
var index2 = -1, length = values.length, offset2 = array4.length;
|
|
2137
|
-
while (++index2 < length) {
|
|
2138
|
-
array4[offset2 + index2] = values[index2];
|
|
2139
|
-
}
|
|
2140
|
-
return array4;
|
|
2141
|
-
}
|
|
2142
|
-
var _arrayPush = arrayPush$1;
|
|
2143
|
-
var arrayPush = _arrayPush, isArray$2 = isArray_1;
|
|
2144
|
-
function baseGetAllKeys$1(object4, keysFunc, symbolsFunc) {
|
|
2145
|
-
var result = keysFunc(object4);
|
|
2146
|
-
return isArray$2(object4) ? result : arrayPush(result, symbolsFunc(object4));
|
|
2147
|
-
}
|
|
2148
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
2149
|
-
function arrayFilter$1(array4, predicate) {
|
|
2150
|
-
var index2 = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result = [];
|
|
2151
|
-
while (++index2 < length) {
|
|
2152
|
-
var value = array4[index2];
|
|
2153
|
-
if (predicate(value, index2, array4)) {
|
|
2154
|
-
result[resIndex++] = value;
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
return result;
|
|
2158
|
-
}
|
|
2159
|
-
var _arrayFilter = arrayFilter$1;
|
|
2160
|
-
function stubArray$1() {
|
|
2161
|
-
return [];
|
|
2162
|
-
}
|
|
2163
|
-
var stubArray_1 = stubArray$1;
|
|
2164
|
-
var arrayFilter = _arrayFilter, stubArray = stubArray_1;
|
|
2165
|
-
var objectProto$4 = Object.prototype;
|
|
2166
|
-
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
2167
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
2168
|
-
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object4) {
|
|
2169
|
-
if (object4 == null) {
|
|
2170
|
-
return [];
|
|
2171
|
-
}
|
|
2172
|
-
object4 = Object(object4);
|
|
2173
|
-
return arrayFilter(nativeGetSymbols(object4), function(symbol) {
|
|
2174
|
-
return propertyIsEnumerable.call(object4, symbol);
|
|
2175
|
-
});
|
|
2176
|
-
};
|
|
2177
|
-
var _getSymbols = getSymbols$1;
|
|
2178
|
-
var baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys = keys_1;
|
|
2179
|
-
function getAllKeys$1(object4) {
|
|
2180
|
-
return baseGetAllKeys(object4, keys, getSymbols);
|
|
2181
|
-
}
|
|
2182
|
-
var _getAllKeys = getAllKeys$1;
|
|
2183
|
-
var getAllKeys = _getAllKeys;
|
|
2184
|
-
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
2185
|
-
var objectProto$3 = Object.prototype;
|
|
2186
|
-
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
2187
|
-
function equalObjects$1(object4, other, bitmask, customizer, equalFunc, stack) {
|
|
2188
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object4), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
2189
|
-
if (objLength != othLength && !isPartial) {
|
|
2190
|
-
return false;
|
|
2191
|
-
}
|
|
2192
|
-
var index2 = objLength;
|
|
2193
|
-
while (index2--) {
|
|
2194
|
-
var key = objProps[index2];
|
|
2195
|
-
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
2196
|
-
return false;
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
var objStacked = stack.get(object4);
|
|
2200
|
-
var othStacked = stack.get(other);
|
|
2201
|
-
if (objStacked && othStacked) {
|
|
2202
|
-
return objStacked == other && othStacked == object4;
|
|
2203
|
-
}
|
|
2204
|
-
var result = true;
|
|
2205
|
-
stack.set(object4, other);
|
|
2206
|
-
stack.set(other, object4);
|
|
2207
|
-
var skipCtor = isPartial;
|
|
2208
|
-
while (++index2 < objLength) {
|
|
2209
|
-
key = objProps[index2];
|
|
2210
|
-
var objValue = object4[key], othValue = other[key];
|
|
2211
|
-
if (customizer) {
|
|
2212
|
-
var compared = isPartial ? customizer(othValue, objValue, key, other, object4, stack) : customizer(objValue, othValue, key, object4, other, stack);
|
|
2213
|
-
}
|
|
2214
|
-
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2215
|
-
result = false;
|
|
2216
|
-
break;
|
|
2217
|
-
}
|
|
2218
|
-
skipCtor || (skipCtor = key == "constructor");
|
|
2219
|
-
}
|
|
2220
|
-
if (result && !skipCtor) {
|
|
2221
|
-
var objCtor = object4.constructor, othCtor = other.constructor;
|
|
2222
|
-
if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
2223
|
-
result = false;
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
stack["delete"](object4);
|
|
2227
|
-
stack["delete"](other);
|
|
2228
|
-
return result;
|
|
2229
|
-
}
|
|
2230
|
-
var _equalObjects = equalObjects$1;
|
|
2231
|
-
var getNative$3 = _getNative, root$3 = _root;
|
|
2232
|
-
var DataView$1 = getNative$3(root$3, "DataView");
|
|
2233
|
-
var _DataView = DataView$1;
|
|
2234
|
-
var getNative$2 = _getNative, root$2 = _root;
|
|
2235
|
-
var Promise$2 = getNative$2(root$2, "Promise");
|
|
2236
|
-
var _Promise = Promise$2;
|
|
2237
|
-
var getNative$1 = _getNative, root$1 = _root;
|
|
2238
|
-
var Set$2 = getNative$1(root$1, "Set");
|
|
2239
|
-
var _Set = Set$2;
|
|
2240
|
-
var getNative = _getNative, root = _root;
|
|
2241
|
-
var WeakMap$2 = getNative(root, "WeakMap");
|
|
2242
|
-
var _WeakMap = WeakMap$2;
|
|
2243
|
-
var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
|
|
2244
|
-
var mapTag = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
|
|
2245
|
-
var dataViewTag = "[object DataView]";
|
|
2246
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
2247
|
-
var getTag$1 = baseGetTag$1;
|
|
2248
|
-
if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
|
|
2249
|
-
getTag$1 = function(value) {
|
|
2250
|
-
var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2251
|
-
if (ctorString) {
|
|
2252
|
-
switch (ctorString) {
|
|
2253
|
-
case dataViewCtorString:
|
|
2254
|
-
return dataViewTag;
|
|
2255
|
-
case mapCtorString:
|
|
2256
|
-
return mapTag;
|
|
2257
|
-
case promiseCtorString:
|
|
2258
|
-
return promiseTag;
|
|
2259
|
-
case setCtorString:
|
|
2260
|
-
return setTag;
|
|
2261
|
-
case weakMapCtorString:
|
|
2262
|
-
return weakMapTag;
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
return result;
|
|
2266
|
-
};
|
|
2267
|
-
}
|
|
2268
|
-
var _getTag = getTag$1;
|
|
2269
|
-
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$1 = isArray_1, isBuffer$1 = isBufferExports, isTypedArray$1 = isTypedArray_1;
|
|
2270
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
2271
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag$1 = "[object Object]";
|
|
2272
|
-
var objectProto$2 = Object.prototype;
|
|
2273
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
2274
|
-
function baseIsEqualDeep$1(object4, other, bitmask, customizer, equalFunc, stack) {
|
|
2275
|
-
var objIsArr = isArray$1(object4), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag(object4), othTag = othIsArr ? arrayTag : getTag(other);
|
|
2276
|
-
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
2277
|
-
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
2278
|
-
var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
|
2279
|
-
if (isSameTag && isBuffer$1(object4)) {
|
|
2280
|
-
if (!isBuffer$1(other)) {
|
|
2281
|
-
return false;
|
|
2282
|
-
}
|
|
2283
|
-
objIsArr = true;
|
|
2284
|
-
objIsObj = false;
|
|
2285
|
-
}
|
|
2286
|
-
if (isSameTag && !objIsObj) {
|
|
2287
|
-
stack || (stack = new Stack$1());
|
|
2288
|
-
return objIsArr || isTypedArray$1(object4) ? equalArrays(object4, other, bitmask, customizer, equalFunc, stack) : equalByTag(object4, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2289
|
-
}
|
|
2290
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
2291
|
-
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object4, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
|
|
2292
|
-
if (objIsWrapped || othIsWrapped) {
|
|
2293
|
-
var objUnwrapped = objIsWrapped ? object4.value() : object4, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2294
|
-
stack || (stack = new Stack$1());
|
|
2295
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
if (!isSameTag) {
|
|
2299
|
-
return false;
|
|
2300
|
-
}
|
|
2301
|
-
stack || (stack = new Stack$1());
|
|
2302
|
-
return equalObjects(object4, other, bitmask, customizer, equalFunc, stack);
|
|
2303
|
-
}
|
|
2304
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
2305
|
-
var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$2 = isObjectLike_1;
|
|
2306
|
-
function baseIsEqual$1(value, other, bitmask, customizer, stack) {
|
|
2307
|
-
if (value === other) {
|
|
2308
|
-
return true;
|
|
2309
|
-
}
|
|
2310
|
-
if (value == null || other == null || !isObjectLike$2(value) && !isObjectLike$2(other)) {
|
|
2311
|
-
return value !== value && other !== other;
|
|
2312
|
-
}
|
|
2313
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$1, stack);
|
|
2314
|
-
}
|
|
2315
|
-
var _baseIsEqual = baseIsEqual$1;
|
|
2316
|
-
var baseIsEqual = _baseIsEqual;
|
|
2317
|
-
function isEqual$1(value, other) {
|
|
2318
|
-
return baseIsEqual(value, other);
|
|
2319
|
-
}
|
|
2320
|
-
var isEqual_1 = isEqual$1;
|
|
2321
|
-
const isEqual$2 = /* @__PURE__ */ getDefaultExportFromCjs(isEqual_1);
|
|
2322
1344
|
function useGetState(initialState) {
|
|
2323
1345
|
var _a = __read(useState(initialState), 2), state = _a[0], setState = _a[1];
|
|
2324
1346
|
var stateRef = useRef(state);
|
|
@@ -2959,27 +1981,6 @@ function useRafState(initialState) {
|
|
|
2959
1981
|
});
|
|
2960
1982
|
return [state, setRafState];
|
|
2961
1983
|
}
|
|
2962
|
-
var overArg = _overArg;
|
|
2963
|
-
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
2964
|
-
var _getPrototype = getPrototype$2;
|
|
2965
|
-
var baseGetTag = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike$1 = isObjectLike_1;
|
|
2966
|
-
var objectTag = "[object Object]";
|
|
2967
|
-
var funcProto = Function.prototype, objectProto$1 = Object.prototype;
|
|
2968
|
-
var funcToString = funcProto.toString;
|
|
2969
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
2970
|
-
var objectCtorString = funcToString.call(Object);
|
|
2971
|
-
function isPlainObject$1(value) {
|
|
2972
|
-
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag) {
|
|
2973
|
-
return false;
|
|
2974
|
-
}
|
|
2975
|
-
var proto = getPrototype$1(value);
|
|
2976
|
-
if (proto === null) {
|
|
2977
|
-
return true;
|
|
2978
|
-
}
|
|
2979
|
-
var Ctor = hasOwnProperty$1.call(proto, "constructor") && proto.constructor;
|
|
2980
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2981
|
-
}
|
|
2982
|
-
var isPlainObject_1 = isPlainObject$1;
|
|
2983
1984
|
var useUnmountedRef = function() {
|
|
2984
1985
|
var unmountedRef = useRef(false);
|
|
2985
1986
|
useEffect(function() {
|
|
@@ -3519,7 +2520,7 @@ function useSize(target) {
|
|
|
3519
2520
|
function useThrottleFn(fn, options) {
|
|
3520
2521
|
var _a;
|
|
3521
2522
|
if (isDev$1) {
|
|
3522
|
-
if (!isFunction
|
|
2523
|
+
if (!isFunction(fn)) {
|
|
3523
2524
|
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3524
2525
|
}
|
|
3525
2526
|
}
|
|
@@ -3899,7 +2900,7 @@ const is = {
|
|
|
3899
2900
|
num: (a) => typeof a === "number",
|
|
3900
2901
|
und: (a) => a === void 0
|
|
3901
2902
|
};
|
|
3902
|
-
function isEqual(a, b) {
|
|
2903
|
+
function isEqual$1(a, b) {
|
|
3903
2904
|
if (is.arr(a)) {
|
|
3904
2905
|
if (!is.arr(b) || a.length !== b.length)
|
|
3905
2906
|
return false;
|
|
@@ -4982,13 +3983,13 @@ const resolveProp = (prop, key) => is.obj(prop) ? key && prop[key] : prop;
|
|
|
4982
3983
|
const getDefaultProp = (props, key) => props.default === true ? props[key] : props.default ? props.default[key] : void 0;
|
|
4983
3984
|
const noopTransform = (value) => value;
|
|
4984
3985
|
const getDefaultProps = (props, transform = noopTransform) => {
|
|
4985
|
-
let
|
|
3986
|
+
let keys = DEFAULT_PROPS;
|
|
4986
3987
|
if (props.default && props.default !== true) {
|
|
4987
3988
|
props = props.default;
|
|
4988
|
-
|
|
3989
|
+
keys = Object.keys(props);
|
|
4989
3990
|
}
|
|
4990
3991
|
const defaults2 = {};
|
|
4991
|
-
for (const key of
|
|
3992
|
+
for (const key of keys) {
|
|
4992
3993
|
const value = transform(props[key], key);
|
|
4993
3994
|
if (!is.und(value)) {
|
|
4994
3995
|
defaults2[key] = value;
|
|
@@ -5819,12 +4820,12 @@ class SpringValue extends FrameValue {
|
|
|
5819
4820
|
}
|
|
5820
4821
|
if (props.reverse)
|
|
5821
4822
|
[to2, from] = [from, to2];
|
|
5822
|
-
const hasFromChanged = !isEqual(from, prevFrom);
|
|
4823
|
+
const hasFromChanged = !isEqual$1(from, prevFrom);
|
|
5823
4824
|
if (hasFromChanged) {
|
|
5824
4825
|
anim.from = from;
|
|
5825
4826
|
}
|
|
5826
4827
|
from = getFluidValue(from);
|
|
5827
|
-
const hasToChanged = !isEqual(to2, prevTo);
|
|
4828
|
+
const hasToChanged = !isEqual$1(to2, prevTo);
|
|
5828
4829
|
if (hasToChanged) {
|
|
5829
4830
|
this._focus(to2);
|
|
5830
4831
|
}
|
|
@@ -5866,10 +4867,10 @@ class SpringValue extends FrameValue {
|
|
|
5866
4867
|
if (!started) {
|
|
5867
4868
|
const hasValueChanged = reset || !hasAnimated(this) && hasFromChanged;
|
|
5868
4869
|
if (hasToChanged || hasValueChanged) {
|
|
5869
|
-
finished = isEqual(computeGoal(value), goal);
|
|
4870
|
+
finished = isEqual$1(computeGoal(value), goal);
|
|
5870
4871
|
started = !finished;
|
|
5871
4872
|
}
|
|
5872
|
-
if (!isEqual(anim.immediate, immediate) && !immediate || !isEqual(config2.decay, decay) || !isEqual(config2.velocity, velocity)) {
|
|
4873
|
+
if (!isEqual$1(anim.immediate, immediate) && !immediate || !isEqual$1(config2.decay, decay) || !isEqual$1(config2.velocity, velocity)) {
|
|
5873
4874
|
started = true;
|
|
5874
4875
|
}
|
|
5875
4876
|
}
|
|
@@ -5961,7 +4962,7 @@ class SpringValue extends FrameValue {
|
|
|
5961
4962
|
const value = getFluidValue(arg);
|
|
5962
4963
|
if (!is.und(value)) {
|
|
5963
4964
|
const oldNode = getAnimated(this);
|
|
5964
|
-
if (!oldNode || !isEqual(value, oldNode.getValue())) {
|
|
4965
|
+
if (!oldNode || !isEqual$1(value, oldNode.getValue())) {
|
|
5965
4966
|
const nodeType = getAnimatedType(value);
|
|
5966
4967
|
if (!oldNode || oldNode.constructor != nodeType) {
|
|
5967
4968
|
setAnimated(this, nodeType.create(value));
|
|
@@ -6038,7 +5039,7 @@ class SpringValue extends FrameValue {
|
|
|
6038
5039
|
function checkFinished(target, to2) {
|
|
6039
5040
|
const goal = computeGoal(to2);
|
|
6040
5041
|
const value = computeGoal(target.get());
|
|
6041
|
-
return isEqual(value, goal);
|
|
5042
|
+
return isEqual$1(value, goal);
|
|
6042
5043
|
}
|
|
6043
5044
|
function createLoopUpdate(props, loop2 = props.loop, to2 = props.to) {
|
|
6044
5045
|
let loopRet = callProp(loop2);
|
|
@@ -6061,12 +5062,12 @@ function createUpdate(props) {
|
|
|
6061
5062
|
to: to2,
|
|
6062
5063
|
from
|
|
6063
5064
|
} = props = inferTo(props);
|
|
6064
|
-
const
|
|
5065
|
+
const keys = /* @__PURE__ */ new Set();
|
|
6065
5066
|
if (is.obj(to2))
|
|
6066
|
-
findDefined(to2,
|
|
5067
|
+
findDefined(to2, keys);
|
|
6067
5068
|
if (is.obj(from))
|
|
6068
|
-
findDefined(from,
|
|
6069
|
-
props.keys =
|
|
5069
|
+
findDefined(from, keys);
|
|
5070
|
+
props.keys = keys.size ? Array.from(keys) : null;
|
|
6070
5071
|
return props;
|
|
6071
5072
|
}
|
|
6072
5073
|
function declareUpdate(props) {
|
|
@@ -6076,8 +5077,8 @@ function declareUpdate(props) {
|
|
|
6076
5077
|
}
|
|
6077
5078
|
return update2;
|
|
6078
5079
|
}
|
|
6079
|
-
function findDefined(values,
|
|
6080
|
-
eachProp(values, (value, key) => value != null &&
|
|
5080
|
+
function findDefined(values, keys) {
|
|
5081
|
+
eachProp(values, (value, key) => value != null && keys.add(key));
|
|
6081
5082
|
}
|
|
6082
5083
|
const ACTIVE_EVENTS = ["onStart", "onRest", "onChange", "onPause", "onResume"];
|
|
6083
5084
|
function mergeActiveFn(target, props, type4) {
|
|
@@ -6169,38 +5170,38 @@ let Controller$1 = class Controller {
|
|
|
6169
5170
|
prepareKeys(this, queue);
|
|
6170
5171
|
return flushUpdateQueue(this, queue);
|
|
6171
5172
|
}
|
|
6172
|
-
stop(arg,
|
|
5173
|
+
stop(arg, keys) {
|
|
6173
5174
|
if (arg !== !!arg) {
|
|
6174
|
-
|
|
5175
|
+
keys = arg;
|
|
6175
5176
|
}
|
|
6176
|
-
if (
|
|
5177
|
+
if (keys) {
|
|
6177
5178
|
const springs = this.springs;
|
|
6178
|
-
each(toArray$3(
|
|
5179
|
+
each(toArray$3(keys), (key) => springs[key].stop(!!arg));
|
|
6179
5180
|
} else {
|
|
6180
5181
|
stopAsync(this._state, this._lastAsyncId);
|
|
6181
5182
|
this.each((spring) => spring.stop(!!arg));
|
|
6182
5183
|
}
|
|
6183
5184
|
return this;
|
|
6184
5185
|
}
|
|
6185
|
-
pause(
|
|
6186
|
-
if (is.und(
|
|
5186
|
+
pause(keys) {
|
|
5187
|
+
if (is.und(keys)) {
|
|
6187
5188
|
this.start({
|
|
6188
5189
|
pause: true
|
|
6189
5190
|
});
|
|
6190
5191
|
} else {
|
|
6191
5192
|
const springs = this.springs;
|
|
6192
|
-
each(toArray$3(
|
|
5193
|
+
each(toArray$3(keys), (key) => springs[key].pause());
|
|
6193
5194
|
}
|
|
6194
5195
|
return this;
|
|
6195
5196
|
}
|
|
6196
|
-
resume(
|
|
6197
|
-
if (is.und(
|
|
5197
|
+
resume(keys) {
|
|
5198
|
+
if (is.und(keys)) {
|
|
6198
5199
|
this.start({
|
|
6199
5200
|
pause: false
|
|
6200
5201
|
});
|
|
6201
5202
|
} else {
|
|
6202
5203
|
const springs = this.springs;
|
|
6203
|
-
each(toArray$3(
|
|
5204
|
+
each(toArray$3(keys), (key) => springs[key].resume());
|
|
6204
5205
|
}
|
|
6205
5206
|
return this;
|
|
6206
5207
|
}
|
|
@@ -6256,7 +5257,7 @@ function flushUpdateQueue(ctrl, queue) {
|
|
|
6256
5257
|
}
|
|
6257
5258
|
async function flushUpdate(ctrl, props, isLoop) {
|
|
6258
5259
|
const {
|
|
6259
|
-
keys
|
|
5260
|
+
keys,
|
|
6260
5261
|
to: to2,
|
|
6261
5262
|
from,
|
|
6262
5263
|
loop: loop2,
|
|
@@ -6314,7 +5315,7 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
6314
5315
|
} else if (state.paused) {
|
|
6315
5316
|
props.pause = true;
|
|
6316
5317
|
}
|
|
6317
|
-
const promises = (
|
|
5318
|
+
const promises = (keys || Object.keys(ctrl.springs)).map((key) => ctrl.springs[key].start(props));
|
|
6318
5319
|
const cancel = props.cancel === true || getDefaultProp(props, "cancel") === true;
|
|
6319
5320
|
if (asyncTo || cancel && state.asyncId) {
|
|
6320
5321
|
promises.push(scheduleProps(++ctrl["_lastAsyncId"], {
|
|
@@ -6623,7 +5624,7 @@ class Interpolation extends FrameValue {
|
|
|
6623
5624
|
advance(_dt) {
|
|
6624
5625
|
const value = this._get();
|
|
6625
5626
|
const oldValue = this.get();
|
|
6626
|
-
if (!isEqual(value, oldValue)) {
|
|
5627
|
+
if (!isEqual$1(value, oldValue)) {
|
|
6627
5628
|
getAnimated(this).setValue(value);
|
|
6628
5629
|
this._onChange(value, this.idle);
|
|
6629
5630
|
}
|
|
@@ -6948,7 +5949,8 @@ function useShouldRender(active, forceRender, destroyOnClose) {
|
|
|
6948
5949
|
return !destroyOnClose;
|
|
6949
5950
|
}
|
|
6950
5951
|
const eventToPropRecord$1 = {
|
|
6951
|
-
"click": "onClick"
|
|
5952
|
+
"click": "onClick",
|
|
5953
|
+
"touchstart": "onTouchStart"
|
|
6952
5954
|
};
|
|
6953
5955
|
function withStopPropagation(events, element) {
|
|
6954
5956
|
const props = Object.assign({}, element.props);
|
|
@@ -7685,18 +6687,18 @@ const V = {
|
|
|
7685
6687
|
v1[1] -= v2[1];
|
|
7686
6688
|
}
|
|
7687
6689
|
};
|
|
7688
|
-
function rubberband$1(distance, dimension,
|
|
6690
|
+
function rubberband$1(distance, dimension, constant) {
|
|
7689
6691
|
if (dimension === 0 || Math.abs(dimension) === Infinity)
|
|
7690
|
-
return Math.pow(distance,
|
|
7691
|
-
return distance * dimension *
|
|
6692
|
+
return Math.pow(distance, constant * 5);
|
|
6693
|
+
return distance * dimension * constant / (dimension + constant * distance);
|
|
7692
6694
|
}
|
|
7693
|
-
function rubberbandIfOutOfBounds$1(position, min2, max2,
|
|
7694
|
-
if (
|
|
6695
|
+
function rubberbandIfOutOfBounds$1(position, min2, max2, constant = 0.15) {
|
|
6696
|
+
if (constant === 0)
|
|
7695
6697
|
return clamp$1(position, min2, max2);
|
|
7696
6698
|
if (position < min2)
|
|
7697
|
-
return -rubberband$1(min2 - position, max2 - min2,
|
|
6699
|
+
return -rubberband$1(min2 - position, max2 - min2, constant) + min2;
|
|
7698
6700
|
if (position > max2)
|
|
7699
|
-
return +rubberband$1(position - max2, max2 - min2,
|
|
6701
|
+
return +rubberband$1(position - max2, max2 - min2, constant) + max2;
|
|
7700
6702
|
return position;
|
|
7701
6703
|
}
|
|
7702
6704
|
function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
|
|
@@ -8643,11 +7645,11 @@ const dragConfigResolver = _objectSpread2$1(_objectSpread2$1({}, coordinatesConf
|
|
|
8643
7645
|
pointer: {
|
|
8644
7646
|
capture = true,
|
|
8645
7647
|
buttons = 1,
|
|
8646
|
-
keys
|
|
7648
|
+
keys = true
|
|
8647
7649
|
} = {}
|
|
8648
7650
|
}) {
|
|
8649
7651
|
this.pointerButtons = buttons;
|
|
8650
|
-
this.keys =
|
|
7652
|
+
this.keys = keys;
|
|
8651
7653
|
return !this.pointerLock && this.device === "pointer" && capture;
|
|
8652
7654
|
},
|
|
8653
7655
|
threshold(value, _k, {
|
|
@@ -11009,7 +10011,7 @@ var reactIs_development = {};
|
|
|
11009
10011
|
*/
|
|
11010
10012
|
{
|
|
11011
10013
|
(function() {
|
|
11012
|
-
var
|
|
10014
|
+
var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
|
|
11013
10015
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
11014
10016
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
11015
10017
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
@@ -11054,7 +10056,7 @@ var reactIs_development = {};
|
|
|
11054
10056
|
if (typeof object4 === "object" && object4 !== null) {
|
|
11055
10057
|
var $$typeof = object4.$$typeof;
|
|
11056
10058
|
switch ($$typeof) {
|
|
11057
|
-
case
|
|
10059
|
+
case REACT_ELEMENT_TYPE2:
|
|
11058
10060
|
var type4 = object4.type;
|
|
11059
10061
|
switch (type4) {
|
|
11060
10062
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -11085,7 +10087,7 @@ var reactIs_development = {};
|
|
|
11085
10087
|
}
|
|
11086
10088
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
11087
10089
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
11088
|
-
var Element2 =
|
|
10090
|
+
var Element2 = REACT_ELEMENT_TYPE2;
|
|
11089
10091
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
11090
10092
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
11091
10093
|
var Lazy = REACT_LAZY_TYPE;
|
|
@@ -11122,7 +10124,7 @@ var reactIs_development = {};
|
|
|
11122
10124
|
return typeOf(object4) === REACT_PROVIDER_TYPE;
|
|
11123
10125
|
}
|
|
11124
10126
|
function isElement2(object4) {
|
|
11125
|
-
return typeof object4 === "object" && object4 !== null && object4.$$typeof ===
|
|
10127
|
+
return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE2;
|
|
11126
10128
|
}
|
|
11127
10129
|
function isForwardRef(object4) {
|
|
11128
10130
|
return typeOf(object4) === REACT_FORWARD_REF_TYPE;
|
|
@@ -11317,18 +10319,108 @@ const Card = (props) => {
|
|
|
11317
10319
|
onClick: props.onClick
|
|
11318
10320
|
}, renderHeader(), renderBody()));
|
|
11319
10321
|
};
|
|
11320
|
-
function rubberband(distance, dimension,
|
|
11321
|
-
return distance * dimension *
|
|
10322
|
+
function rubberband(distance, dimension, constant) {
|
|
10323
|
+
return distance * dimension * constant / (dimension + constant * distance);
|
|
11322
10324
|
}
|
|
11323
|
-
function rubberbandIfOutOfBounds(position, min2, max2, dimension,
|
|
11324
|
-
if (
|
|
10325
|
+
function rubberbandIfOutOfBounds(position, min2, max2, dimension, constant = 0.15) {
|
|
10326
|
+
if (constant === 0)
|
|
11325
10327
|
return bound(position, min2, max2);
|
|
11326
10328
|
if (position < min2)
|
|
11327
|
-
return -rubberband(min2 - position, dimension,
|
|
10329
|
+
return -rubberband(min2 - position, dimension, constant) + min2;
|
|
11328
10330
|
if (position > max2)
|
|
11329
|
-
return +rubberband(position - max2, dimension,
|
|
10331
|
+
return +rubberband(position - max2, dimension, constant) + max2;
|
|
11330
10332
|
return position;
|
|
11331
10333
|
}
|
|
10334
|
+
var hasElementType = typeof Element !== "undefined";
|
|
10335
|
+
var hasMap = typeof Map === "function";
|
|
10336
|
+
var hasSet = typeof Set === "function";
|
|
10337
|
+
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
10338
|
+
function equal(a, b) {
|
|
10339
|
+
if (a === b)
|
|
10340
|
+
return true;
|
|
10341
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
10342
|
+
if (a.constructor !== b.constructor)
|
|
10343
|
+
return false;
|
|
10344
|
+
var length, i2, keys;
|
|
10345
|
+
if (Array.isArray(a)) {
|
|
10346
|
+
length = a.length;
|
|
10347
|
+
if (length != b.length)
|
|
10348
|
+
return false;
|
|
10349
|
+
for (i2 = length; i2-- !== 0; )
|
|
10350
|
+
if (!equal(a[i2], b[i2]))
|
|
10351
|
+
return false;
|
|
10352
|
+
return true;
|
|
10353
|
+
}
|
|
10354
|
+
var it;
|
|
10355
|
+
if (hasMap && a instanceof Map && b instanceof Map) {
|
|
10356
|
+
if (a.size !== b.size)
|
|
10357
|
+
return false;
|
|
10358
|
+
it = a.entries();
|
|
10359
|
+
while (!(i2 = it.next()).done)
|
|
10360
|
+
if (!b.has(i2.value[0]))
|
|
10361
|
+
return false;
|
|
10362
|
+
it = a.entries();
|
|
10363
|
+
while (!(i2 = it.next()).done)
|
|
10364
|
+
if (!equal(i2.value[1], b.get(i2.value[0])))
|
|
10365
|
+
return false;
|
|
10366
|
+
return true;
|
|
10367
|
+
}
|
|
10368
|
+
if (hasSet && a instanceof Set && b instanceof Set) {
|
|
10369
|
+
if (a.size !== b.size)
|
|
10370
|
+
return false;
|
|
10371
|
+
it = a.entries();
|
|
10372
|
+
while (!(i2 = it.next()).done)
|
|
10373
|
+
if (!b.has(i2.value[0]))
|
|
10374
|
+
return false;
|
|
10375
|
+
return true;
|
|
10376
|
+
}
|
|
10377
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
10378
|
+
length = a.length;
|
|
10379
|
+
if (length != b.length)
|
|
10380
|
+
return false;
|
|
10381
|
+
for (i2 = length; i2-- !== 0; )
|
|
10382
|
+
if (a[i2] !== b[i2])
|
|
10383
|
+
return false;
|
|
10384
|
+
return true;
|
|
10385
|
+
}
|
|
10386
|
+
if (a.constructor === RegExp)
|
|
10387
|
+
return a.source === b.source && a.flags === b.flags;
|
|
10388
|
+
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === "function" && typeof b.valueOf === "function")
|
|
10389
|
+
return a.valueOf() === b.valueOf();
|
|
10390
|
+
if (a.toString !== Object.prototype.toString && typeof a.toString === "function" && typeof b.toString === "function")
|
|
10391
|
+
return a.toString() === b.toString();
|
|
10392
|
+
keys = Object.keys(a);
|
|
10393
|
+
length = keys.length;
|
|
10394
|
+
if (length !== Object.keys(b).length)
|
|
10395
|
+
return false;
|
|
10396
|
+
for (i2 = length; i2-- !== 0; )
|
|
10397
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i2]))
|
|
10398
|
+
return false;
|
|
10399
|
+
if (hasElementType && a instanceof Element)
|
|
10400
|
+
return false;
|
|
10401
|
+
for (i2 = length; i2-- !== 0; ) {
|
|
10402
|
+
if ((keys[i2] === "_owner" || keys[i2] === "__v" || keys[i2] === "__o") && a.$$typeof) {
|
|
10403
|
+
continue;
|
|
10404
|
+
}
|
|
10405
|
+
if (!equal(a[keys[i2]], b[keys[i2]]))
|
|
10406
|
+
return false;
|
|
10407
|
+
}
|
|
10408
|
+
return true;
|
|
10409
|
+
}
|
|
10410
|
+
return a !== a && b !== b;
|
|
10411
|
+
}
|
|
10412
|
+
var reactFastCompare = function isEqual(a, b) {
|
|
10413
|
+
try {
|
|
10414
|
+
return equal(a, b);
|
|
10415
|
+
} catch (error) {
|
|
10416
|
+
if ((error.message || "").match(/stack|recursion/i)) {
|
|
10417
|
+
console.warn("react-fast-compare cannot handle circular refs");
|
|
10418
|
+
return false;
|
|
10419
|
+
}
|
|
10420
|
+
throw error;
|
|
10421
|
+
}
|
|
10422
|
+
};
|
|
10423
|
+
const isEqual2 = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
|
|
11332
10424
|
function measureCSSLength(raw) {
|
|
11333
10425
|
if (raw === null || raw === void 0 || raw === "") {
|
|
11334
10426
|
{
|
|
@@ -11565,8 +10657,10 @@ const Wheel = memo((props) => {
|
|
|
11565
10657
|
}
|
|
11566
10658
|
return React__default.createElement("div", {
|
|
11567
10659
|
key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
|
|
11568
|
-
"data-selected":
|
|
11569
|
-
className: `${classPrefix$18}-column-item`,
|
|
10660
|
+
"data-selected": selected,
|
|
10661
|
+
className: classNames(`${classPrefix$18}-column-item`, {
|
|
10662
|
+
[`${classPrefix$18}-column-item-active`]: selected
|
|
10663
|
+
}),
|
|
11570
10664
|
onClick: handleClick,
|
|
11571
10665
|
"aria-hidden": !selected,
|
|
11572
10666
|
"aria-label": selected ? "active" : ""
|
|
@@ -11585,7 +10679,7 @@ const Wheel = memo((props) => {
|
|
|
11585
10679
|
return false;
|
|
11586
10680
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
11587
10681
|
return false;
|
|
11588
|
-
if (!
|
|
10682
|
+
if (!isEqual2(prev.column, next.column))
|
|
11589
10683
|
return false;
|
|
11590
10684
|
return true;
|
|
11591
10685
|
});
|
|
@@ -12552,34 +11646,82 @@ const CheckListItem = (props) => {
|
|
|
12552
11646
|
const CheckList = attachPropertiesToComponent(CheckList$1, {
|
|
12553
11647
|
Item: CheckListItem
|
|
12554
11648
|
});
|
|
12555
|
-
var
|
|
12556
|
-
var
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
}
|
|
12561
|
-
var
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
11649
|
+
function $cf838c15c8b009ba$var$vrgs(f) {
|
|
11650
|
+
var s = f + "", i2 = s.indexOf("...");
|
|
11651
|
+
return i2 >= 0 && (i2 < s.indexOf(")") || s.indexOf("arguments") >= 0);
|
|
11652
|
+
}
|
|
11653
|
+
function $cf838c15c8b009ba$export$22f15dd4e5be7e52(fn, o) {
|
|
11654
|
+
o || (o = {});
|
|
11655
|
+
var vargs = o.vargs || $cf838c15c8b009ba$var$vrgs(fn), k = [], cache = /* @__PURE__ */ new Map(), u, to2, d = function(key) {
|
|
11656
|
+
return to2 = setTimeout(function() {
|
|
11657
|
+
if (u) {
|
|
11658
|
+
cache.delete(key);
|
|
11659
|
+
return;
|
|
11660
|
+
}
|
|
11661
|
+
k.splice(key, 1);
|
|
11662
|
+
}, o.maxAge);
|
|
11663
|
+
}, c = o.maxAge > 0 && o.maxAge < Infinity ? d : 0, eq = o.equals ? o.equals : 0, maxargs = o.maxArgs, srlz = o.serializer, f;
|
|
11664
|
+
if (fn.length === 1 && !o.equals && !vargs) {
|
|
11665
|
+
f = function(a) {
|
|
11666
|
+
if (srlz)
|
|
11667
|
+
a = srlz(a);
|
|
11668
|
+
var r;
|
|
11669
|
+
return cache.get(a) || (!c || c(a), cache.set(a, r = fn.call(this, a)), r);
|
|
11670
|
+
};
|
|
11671
|
+
u = 1;
|
|
11672
|
+
} else if (eq)
|
|
11673
|
+
f = function() {
|
|
11674
|
+
var l = maxargs || arguments.length, kl = k.length, i2 = -1;
|
|
11675
|
+
while (++i2 < kl)
|
|
11676
|
+
if (k[i2].length === l) {
|
|
11677
|
+
var j = -1;
|
|
11678
|
+
while (++j < l && eq(arguments[j], k[i2][j]))
|
|
11679
|
+
;
|
|
11680
|
+
if (j === l)
|
|
11681
|
+
return k[i2].val;
|
|
11682
|
+
}
|
|
11683
|
+
k[i2] = arguments;
|
|
11684
|
+
return !c || c(i2), arguments.val = fn.apply(this, k[i2]);
|
|
11685
|
+
};
|
|
11686
|
+
else
|
|
11687
|
+
f = function() {
|
|
11688
|
+
var l = maxargs || arguments.length, kl = k.length, i2 = -1;
|
|
11689
|
+
while (++i2 < kl)
|
|
11690
|
+
if (k[i2].length === l) {
|
|
11691
|
+
var j = -1;
|
|
11692
|
+
while (++j < l && arguments[j] === k[i2][j])
|
|
11693
|
+
;
|
|
11694
|
+
if (j === l)
|
|
11695
|
+
return k[i2].val;
|
|
11696
|
+
}
|
|
11697
|
+
k[i2] = arguments;
|
|
11698
|
+
return !c || c(i2), arguments.val = fn.apply(this, k[i2]);
|
|
11699
|
+
};
|
|
11700
|
+
f.clear = function() {
|
|
11701
|
+
if (to2)
|
|
11702
|
+
clearTimeout(to2);
|
|
11703
|
+
cache.clear();
|
|
11704
|
+
k = [];
|
|
11705
|
+
};
|
|
11706
|
+
f.keys = function() {
|
|
11707
|
+
return u ? [
|
|
11708
|
+
...cache.keys()
|
|
11709
|
+
] : k.slice();
|
|
11710
|
+
};
|
|
11711
|
+
f.values = function() {
|
|
11712
|
+
return u ? [
|
|
11713
|
+
...cache.values()
|
|
11714
|
+
] : k.map((args) => args.val);
|
|
12569
11715
|
};
|
|
12570
|
-
|
|
12571
|
-
return memoized;
|
|
11716
|
+
return f;
|
|
12572
11717
|
}
|
|
12573
|
-
memoize.Cache = MapCache;
|
|
12574
|
-
var memoize_1 = memoize;
|
|
12575
|
-
const memoize$1 = /* @__PURE__ */ getDefaultExportFromCjs(memoize_1);
|
|
12576
11718
|
function useCascaderValueExtend(options, fieldNames) {
|
|
12577
11719
|
const {
|
|
12578
11720
|
valueName,
|
|
12579
11721
|
childrenName
|
|
12580
11722
|
} = fieldNames;
|
|
12581
11723
|
const generateItems = useMemo(() => {
|
|
12582
|
-
return
|
|
11724
|
+
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12583
11725
|
const ret = [];
|
|
12584
11726
|
let currentOptions = options;
|
|
12585
11727
|
for (const v of val) {
|
|
@@ -12593,16 +11735,20 @@ function useCascaderValueExtend(options, fieldNames) {
|
|
|
12593
11735
|
currentOptions = target[childrenName];
|
|
12594
11736
|
}
|
|
12595
11737
|
return ret;
|
|
12596
|
-
},
|
|
11738
|
+
}, {
|
|
11739
|
+
equals: isEqual2
|
|
11740
|
+
});
|
|
12597
11741
|
}, [options]);
|
|
12598
11742
|
const generateIsLeaf = useMemo(() => {
|
|
12599
|
-
return
|
|
11743
|
+
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12600
11744
|
const children = val.reduce((currentOptions, v) => {
|
|
12601
11745
|
var _a;
|
|
12602
11746
|
return ((_a = currentOptions.find((option) => option[valueName] === v)) === null || _a === void 0 ? void 0 : _a[childrenName]) || [];
|
|
12603
11747
|
}, options);
|
|
12604
11748
|
return children.length === 0;
|
|
12605
|
-
},
|
|
11749
|
+
}, {
|
|
11750
|
+
equals: isEqual2
|
|
11751
|
+
});
|
|
12606
11752
|
}, [options]);
|
|
12607
11753
|
function generateValueExtend(val) {
|
|
12608
11754
|
return {
|
|
@@ -12643,10 +11789,10 @@ const defaultSkeletonParagraphProps = {
|
|
|
12643
11789
|
};
|
|
12644
11790
|
const SkeletonParagraph = (p) => {
|
|
12645
11791
|
const props = mergeProps(defaultSkeletonParagraphProps, p);
|
|
12646
|
-
const
|
|
11792
|
+
const keys = generateIntArray(1, props.lineCount);
|
|
12647
11793
|
const node = React__default.createElement("div", {
|
|
12648
11794
|
className: `${classPrefix$$}-paragraph`
|
|
12649
|
-
},
|
|
11795
|
+
}, keys.map((key) => React__default.createElement(Skeleton$1, {
|
|
12650
11796
|
key,
|
|
12651
11797
|
animated: props.animated,
|
|
12652
11798
|
className: `${classPrefix$$}-paragraph-line`
|
|
@@ -16673,8 +15819,8 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
16673
15819
|
options.messages = this.messages();
|
|
16674
15820
|
}
|
|
16675
15821
|
var series = {};
|
|
16676
|
-
var
|
|
16677
|
-
|
|
15822
|
+
var keys = options.keys || Object.keys(this.rules);
|
|
15823
|
+
keys.forEach(function(z) {
|
|
16678
15824
|
var arr = _this2.rules[z];
|
|
16679
15825
|
var value = source[z];
|
|
16680
15826
|
arr.forEach(function(r) {
|
|
@@ -16827,12 +15973,12 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
16827
15973
|
if (typeof rule.validator === "function") {
|
|
16828
15974
|
return rule.validator;
|
|
16829
15975
|
}
|
|
16830
|
-
var
|
|
16831
|
-
var messageIndex =
|
|
15976
|
+
var keys = Object.keys(rule);
|
|
15977
|
+
var messageIndex = keys.indexOf("message");
|
|
16832
15978
|
if (messageIndex !== -1) {
|
|
16833
|
-
|
|
15979
|
+
keys.splice(messageIndex, 1);
|
|
16834
15980
|
}
|
|
16835
|
-
if (
|
|
15981
|
+
if (keys.length === 1 && keys[0] === "required") {
|
|
16836
15982
|
return validators.required;
|
|
16837
15983
|
}
|
|
16838
15984
|
return validators[this.getType(rule)] || void 0;
|
|
@@ -16991,7 +16137,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
16991
16137
|
return matchNamePath(path, namePath);
|
|
16992
16138
|
});
|
|
16993
16139
|
}
|
|
16994
|
-
function isObject
|
|
16140
|
+
function isObject(obj) {
|
|
16995
16141
|
return _typeof$1(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
16996
16142
|
}
|
|
16997
16143
|
function internalSetValues(store, values) {
|
|
@@ -17002,7 +16148,7 @@ function internalSetValues(store, values) {
|
|
|
17002
16148
|
Object.keys(values).forEach(function(key) {
|
|
17003
16149
|
var prevValue = newStore[key];
|
|
17004
16150
|
var value = values[key];
|
|
17005
|
-
var recursive = isObject
|
|
16151
|
+
var recursive = isObject(prevValue) && isObject(value);
|
|
17006
16152
|
newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : cloneDeep(value);
|
|
17007
16153
|
});
|
|
17008
16154
|
return newStore;
|
|
@@ -17035,8 +16181,8 @@ function isSimilar(source, target) {
|
|
|
17035
16181
|
}
|
|
17036
16182
|
var sourceKeys = Object.keys(source);
|
|
17037
16183
|
var targetKeys = Object.keys(target);
|
|
17038
|
-
var
|
|
17039
|
-
return _toConsumableArray(
|
|
16184
|
+
var keys = new Set([].concat(sourceKeys, targetKeys));
|
|
16185
|
+
return _toConsumableArray(keys).every(function(key) {
|
|
17040
16186
|
var sourceValue = source[key];
|
|
17041
16187
|
var targetValue = target[key];
|
|
17042
16188
|
if (typeof sourceValue === "function" && typeof targetValue === "function") {
|
|
@@ -18912,215 +18058,103 @@ const defaultFormContext = {
|
|
|
18912
18058
|
const FormContext = React__default.createContext(defaultFormContext);
|
|
18913
18059
|
const NoStyleItemContext = React__default.createContext(null);
|
|
18914
18060
|
const Header = () => null;
|
|
18915
|
-
var
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
}
|
|
18921
|
-
var _assignMergeValue = assignMergeValue$2;
|
|
18922
|
-
function createBaseFor$1(fromRight) {
|
|
18923
|
-
return function(object4, iteratee, keysFunc) {
|
|
18924
|
-
var index2 = -1, iterable = Object(object4), props = keysFunc(object4), length = props.length;
|
|
18925
|
-
while (length--) {
|
|
18926
|
-
var key = props[fromRight ? length : ++index2];
|
|
18927
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
18928
|
-
break;
|
|
18929
|
-
}
|
|
18930
|
-
}
|
|
18931
|
-
return object4;
|
|
18932
|
-
};
|
|
18061
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
18062
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
18063
|
+
};
|
|
18064
|
+
function isNonNullObject(value) {
|
|
18065
|
+
return !!value && typeof value === "object";
|
|
18933
18066
|
}
|
|
18934
|
-
|
|
18935
|
-
var
|
|
18936
|
-
|
|
18937
|
-
var _baseFor = baseFor$1;
|
|
18938
|
-
var _cloneBuffer = { exports: {} };
|
|
18939
|
-
_cloneBuffer.exports;
|
|
18940
|
-
(function(module, exports) {
|
|
18941
|
-
var root2 = _root;
|
|
18942
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
18943
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
18944
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
18945
|
-
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
18946
|
-
function cloneBuffer2(buffer, isDeep) {
|
|
18947
|
-
if (isDeep) {
|
|
18948
|
-
return buffer.slice();
|
|
18949
|
-
}
|
|
18950
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
18951
|
-
buffer.copy(result);
|
|
18952
|
-
return result;
|
|
18953
|
-
}
|
|
18954
|
-
module.exports = cloneBuffer2;
|
|
18955
|
-
})(_cloneBuffer, _cloneBuffer.exports);
|
|
18956
|
-
var _cloneBufferExports = _cloneBuffer.exports;
|
|
18957
|
-
var Uint8Array = _Uint8Array;
|
|
18958
|
-
function cloneArrayBuffer$1(arrayBuffer) {
|
|
18959
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
18960
|
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
18961
|
-
return result;
|
|
18067
|
+
function isSpecial(value) {
|
|
18068
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
18069
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
18962
18070
|
}
|
|
18963
|
-
var
|
|
18964
|
-
var
|
|
18965
|
-
function
|
|
18966
|
-
|
|
18967
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
18071
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18072
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18073
|
+
function isReactElement(value) {
|
|
18074
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18968
18075
|
}
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
var index2 = -1, length = source.length;
|
|
18972
|
-
array4 || (array4 = Array(length));
|
|
18973
|
-
while (++index2 < length) {
|
|
18974
|
-
array4[index2] = source[index2];
|
|
18975
|
-
}
|
|
18976
|
-
return array4;
|
|
18076
|
+
function emptyTarget(val) {
|
|
18077
|
+
return Array.isArray(val) ? [] : {};
|
|
18977
18078
|
}
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
var objectCreate = Object.create;
|
|
18981
|
-
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
18982
|
-
function object4() {
|
|
18983
|
-
}
|
|
18984
|
-
return function(proto) {
|
|
18985
|
-
if (!isObject$3(proto)) {
|
|
18986
|
-
return {};
|
|
18987
|
-
}
|
|
18988
|
-
if (objectCreate) {
|
|
18989
|
-
return objectCreate(proto);
|
|
18990
|
-
}
|
|
18991
|
-
object4.prototype = proto;
|
|
18992
|
-
var result = new object4();
|
|
18993
|
-
object4.prototype = void 0;
|
|
18994
|
-
return result;
|
|
18995
|
-
};
|
|
18996
|
-
}();
|
|
18997
|
-
var _baseCreate = baseCreate$1;
|
|
18998
|
-
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype$1 = _isPrototype;
|
|
18999
|
-
function initCloneObject$1(object4) {
|
|
19000
|
-
return typeof object4.constructor == "function" && !isPrototype$1(object4) ? baseCreate(getPrototype(object4)) : {};
|
|
19001
|
-
}
|
|
19002
|
-
var _initCloneObject = initCloneObject$1;
|
|
19003
|
-
var isArrayLike$1 = isArrayLike_1, isObjectLike = isObjectLike_1;
|
|
19004
|
-
function isArrayLikeObject$1(value) {
|
|
19005
|
-
return isObjectLike(value) && isArrayLike$1(value);
|
|
19006
|
-
}
|
|
19007
|
-
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
19008
|
-
function safeGet$2(object4, key) {
|
|
19009
|
-
if (key === "constructor" && typeof object4[key] === "function") {
|
|
19010
|
-
return;
|
|
19011
|
-
}
|
|
19012
|
-
if (key == "__proto__") {
|
|
19013
|
-
return;
|
|
19014
|
-
}
|
|
19015
|
-
return object4[key];
|
|
18079
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
18080
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
19016
18081
|
}
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
for (var key in Object(object4)) {
|
|
19022
|
-
result.push(key);
|
|
19023
|
-
}
|
|
19024
|
-
}
|
|
19025
|
-
return result;
|
|
18082
|
+
function defaultArrayMerge(target, source, options) {
|
|
18083
|
+
return target.concat(source).map(function(element) {
|
|
18084
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
18085
|
+
});
|
|
19026
18086
|
}
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
19031
|
-
function baseKeysIn$1(object4) {
|
|
19032
|
-
if (!isObject$2(object4)) {
|
|
19033
|
-
return nativeKeysIn(object4);
|
|
18087
|
+
function getMergeFunction(key, options) {
|
|
18088
|
+
if (!options.customMerge) {
|
|
18089
|
+
return deepmerge;
|
|
19034
18090
|
}
|
|
19035
|
-
var
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
18091
|
+
var customMerge = options.customMerge(key);
|
|
18092
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
18093
|
+
}
|
|
18094
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
18095
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
18096
|
+
return Object.propertyIsEnumerable.call(target, symbol);
|
|
18097
|
+
}) : [];
|
|
18098
|
+
}
|
|
18099
|
+
function getKeys(target) {
|
|
18100
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
18101
|
+
}
|
|
18102
|
+
function propertyIsOnObject(object4, property) {
|
|
18103
|
+
try {
|
|
18104
|
+
return property in object4;
|
|
18105
|
+
} catch (_) {
|
|
18106
|
+
return false;
|
|
19040
18107
|
}
|
|
19041
|
-
return result;
|
|
19042
18108
|
}
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
}
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
}
|
|
19053
|
-
var toPlainObject_1 = toPlainObject$1;
|
|
19054
|
-
var assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$1 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;
|
|
19055
|
-
function baseMergeDeep$1(object4, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
19056
|
-
var objValue = safeGet$1(object4, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);
|
|
19057
|
-
if (stacked) {
|
|
19058
|
-
assignMergeValue$1(object4, key, stacked);
|
|
19059
|
-
return;
|
|
18109
|
+
function propertyIsUnsafe(target, key) {
|
|
18110
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
18111
|
+
}
|
|
18112
|
+
function mergeObject(target, source, options) {
|
|
18113
|
+
var destination = {};
|
|
18114
|
+
if (options.isMergeableObject(target)) {
|
|
18115
|
+
getKeys(target).forEach(function(key) {
|
|
18116
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
18117
|
+
});
|
|
19060
18118
|
}
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
if (isArray(objValue)) {
|
|
19068
|
-
newValue = objValue;
|
|
19069
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
19070
|
-
newValue = copyArray(objValue);
|
|
19071
|
-
} else if (isBuff) {
|
|
19072
|
-
isCommon = false;
|
|
19073
|
-
newValue = cloneBuffer(srcValue, true);
|
|
19074
|
-
} else if (isTyped) {
|
|
19075
|
-
isCommon = false;
|
|
19076
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
19077
|
-
} else {
|
|
19078
|
-
newValue = [];
|
|
19079
|
-
}
|
|
19080
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
19081
|
-
newValue = objValue;
|
|
19082
|
-
if (isArguments(objValue)) {
|
|
19083
|
-
newValue = toPlainObject(objValue);
|
|
19084
|
-
} else if (!isObject$1(objValue) || isFunction(objValue)) {
|
|
19085
|
-
newValue = initCloneObject(srcValue);
|
|
19086
|
-
}
|
|
18119
|
+
getKeys(source).forEach(function(key) {
|
|
18120
|
+
if (propertyIsUnsafe(target, key)) {
|
|
18121
|
+
return;
|
|
18122
|
+
}
|
|
18123
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
18124
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
19087
18125
|
} else {
|
|
19088
|
-
|
|
18126
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
19089
18127
|
}
|
|
18128
|
+
});
|
|
18129
|
+
return destination;
|
|
18130
|
+
}
|
|
18131
|
+
function deepmerge(target, source, options) {
|
|
18132
|
+
options = options || {};
|
|
18133
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
18134
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
18135
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
18136
|
+
var sourceIsArray = Array.isArray(source);
|
|
18137
|
+
var targetIsArray = Array.isArray(target);
|
|
18138
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
18139
|
+
if (!sourceAndTargetTypesMatch) {
|
|
18140
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
18141
|
+
} else if (sourceIsArray) {
|
|
18142
|
+
return options.arrayMerge(target, source, options);
|
|
18143
|
+
} else {
|
|
18144
|
+
return mergeObject(target, source, options);
|
|
19090
18145
|
}
|
|
19091
|
-
if (isCommon) {
|
|
19092
|
-
stack.set(srcValue, newValue);
|
|
19093
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
19094
|
-
stack["delete"](srcValue);
|
|
19095
|
-
}
|
|
19096
|
-
assignMergeValue$1(object4, key, newValue);
|
|
19097
18146
|
}
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
if (object4 === source) {
|
|
19102
|
-
return;
|
|
18147
|
+
deepmerge.all = function deepmergeAll(array4, options) {
|
|
18148
|
+
if (!Array.isArray(array4)) {
|
|
18149
|
+
throw new Error("first argument should be an array");
|
|
19103
18150
|
}
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
newValue = srcValue;
|
|
19112
|
-
}
|
|
19113
|
-
assignMergeValue(object4, key, newValue);
|
|
19114
|
-
}
|
|
19115
|
-
}, keysIn);
|
|
19116
|
-
}
|
|
19117
|
-
var _baseMerge = baseMerge$1;
|
|
19118
|
-
var baseMerge = _baseMerge, createAssigner = _createAssigner;
|
|
19119
|
-
var merge = createAssigner(function(object4, source, srcIndex) {
|
|
19120
|
-
baseMerge(object4, source, srcIndex);
|
|
19121
|
-
});
|
|
19122
|
-
var merge_1 = merge;
|
|
19123
|
-
const merge$1 = /* @__PURE__ */ getDefaultExportFromCjs(merge_1);
|
|
18151
|
+
return array4.reduce(function(prev, next) {
|
|
18152
|
+
return deepmerge(prev, next, options);
|
|
18153
|
+
}, {});
|
|
18154
|
+
};
|
|
18155
|
+
var deepmerge_1 = deepmerge;
|
|
18156
|
+
var cjs = deepmerge_1;
|
|
18157
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(cjs);
|
|
19124
18158
|
const FormArray = (props) => {
|
|
19125
18159
|
return React__default.createElement(List, {
|
|
19126
18160
|
name: props.name,
|
|
@@ -19171,7 +18205,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
19171
18205
|
const {
|
|
19172
18206
|
locale
|
|
19173
18207
|
} = useConfig();
|
|
19174
|
-
const validateMessages = useMemo(() => merge
|
|
18208
|
+
const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
19175
18209
|
const lists = [];
|
|
19176
18210
|
let currentHeader = null;
|
|
19177
18211
|
let items = [];
|
|
@@ -21108,6 +20142,7 @@ const FormItemLayout = (props) => {
|
|
|
21108
20142
|
}, React__default.createElement("span", {
|
|
21109
20143
|
className: `${classPrefix$L}-label-help`,
|
|
21110
20144
|
onClick: (e2) => {
|
|
20145
|
+
e2.stopPropagation();
|
|
21111
20146
|
e2.preventDefault();
|
|
21112
20147
|
}
|
|
21113
20148
|
}, React__default.createElement(QuestionCircleOutline, null))));
|
|
@@ -22370,8 +21405,11 @@ const InfiniteScroll = (p) => {
|
|
|
22370
21405
|
if (current >= elementTop - props.threshold) {
|
|
22371
21406
|
const nextFlag = {};
|
|
22372
21407
|
nextFlagRef.current = nextFlag;
|
|
22373
|
-
|
|
22374
|
-
|
|
21408
|
+
try {
|
|
21409
|
+
yield doLoadMore(false);
|
|
21410
|
+
setFlag(nextFlag);
|
|
21411
|
+
} catch (e2) {
|
|
21412
|
+
}
|
|
22375
21413
|
}
|
|
22376
21414
|
}), {
|
|
22377
21415
|
wait: 100,
|
|
@@ -22398,8 +21436,11 @@ const InfiniteScroll = (p) => {
|
|
|
22398
21436
|
function retry() {
|
|
22399
21437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22400
21438
|
setFailed(false);
|
|
22401
|
-
|
|
22402
|
-
|
|
21439
|
+
try {
|
|
21440
|
+
yield doLoadMore(true);
|
|
21441
|
+
setFlag(nextFlagRef.current);
|
|
21442
|
+
} catch (e2) {
|
|
21443
|
+
}
|
|
22403
21444
|
});
|
|
22404
21445
|
}
|
|
22405
21446
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -22974,7 +22015,7 @@ const NumberKeyboard = (p) => {
|
|
|
22974
22015
|
locale
|
|
22975
22016
|
} = useConfig();
|
|
22976
22017
|
const keyboardRef = useRef(null);
|
|
22977
|
-
const
|
|
22018
|
+
const keys = useMemo(() => {
|
|
22978
22019
|
const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
22979
22020
|
const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
|
|
22980
22021
|
const customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
@@ -23051,7 +22092,7 @@ const NumberKeyboard = (p) => {
|
|
|
23051
22092
|
const className = classNames(`${classPrefix$w}-key`, {
|
|
23052
22093
|
[`${classPrefix$w}-key-number`]: isNumberKey,
|
|
23053
22094
|
[`${classPrefix$w}-key-sign`]: !isNumberKey && key,
|
|
23054
|
-
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText &&
|
|
22095
|
+
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys.length < 12
|
|
23055
22096
|
});
|
|
23056
22097
|
const ariaProps = key ? {
|
|
23057
22098
|
role: "button",
|
|
@@ -23096,7 +22137,7 @@ const NumberKeyboard = (p) => {
|
|
|
23096
22137
|
className: classNames(`${classPrefix$w}-main`, {
|
|
23097
22138
|
[`${classPrefix$w}-main-confirmed-style`]: !!confirmText
|
|
23098
22139
|
})
|
|
23099
|
-
},
|
|
22140
|
+
}, keys.map(renderKey)), !!confirmText && React__default.createElement("div", {
|
|
23100
22141
|
className: `${classPrefix$w}-confirm`
|
|
23101
22142
|
}, React__default.createElement("div", {
|
|
23102
22143
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-bs`,
|
|
@@ -25352,9 +24393,9 @@ function useRefState(initialState) {
|
|
|
25352
24393
|
function mergeFuncProps(p1, p2) {
|
|
25353
24394
|
const p1Keys = Object.keys(p1);
|
|
25354
24395
|
const p2Keys = Object.keys(p2);
|
|
25355
|
-
const
|
|
24396
|
+
const keys = /* @__PURE__ */ new Set([...p1Keys, ...p2Keys]);
|
|
25356
24397
|
const res = {};
|
|
25357
|
-
|
|
24398
|
+
keys.forEach((key) => {
|
|
25358
24399
|
const p1Value = p1[key];
|
|
25359
24400
|
const p2Value = p2[key];
|
|
25360
24401
|
if (typeof p1Value === "function" && typeof p2Value === "function") {
|
|
@@ -26270,7 +25311,7 @@ const Multiple = (p) => {
|
|
|
26270
25311
|
defaultValue: props.defaultValue
|
|
26271
25312
|
});
|
|
26272
25313
|
const getLeafKeys = (option) => {
|
|
26273
|
-
const
|
|
25314
|
+
const keys = [];
|
|
26274
25315
|
const walker = (op) => {
|
|
26275
25316
|
var _a;
|
|
26276
25317
|
if (!op) {
|
|
@@ -26279,11 +25320,11 @@ const Multiple = (p) => {
|
|
|
26279
25320
|
if ((_a = op[childrenName]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
26280
25321
|
op[childrenName].forEach((i2) => walker(i2));
|
|
26281
25322
|
} else {
|
|
26282
|
-
|
|
25323
|
+
keys.push(op[valueName]);
|
|
26283
25324
|
}
|
|
26284
25325
|
};
|
|
26285
25326
|
walker(option);
|
|
26286
|
-
return
|
|
25327
|
+
return keys;
|
|
26287
25328
|
};
|
|
26288
25329
|
const [deep, optionsMap, optionsParentMap] = useMemo(() => {
|
|
26289
25330
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
@@ -26329,8 +25370,8 @@ const Multiple = (p) => {
|
|
|
26329
25370
|
var _a;
|
|
26330
25371
|
let groupKeys = [...targetKeys];
|
|
26331
25372
|
let unusedKeys = [];
|
|
26332
|
-
const walker = (
|
|
26333
|
-
|
|
25373
|
+
const walker = (keys) => {
|
|
25374
|
+
keys.forEach((key) => {
|
|
26334
25375
|
var _a2;
|
|
26335
25376
|
if (unusedKeys.includes(key)) {
|
|
26336
25377
|
return;
|
|
@@ -26363,9 +25404,9 @@ const Multiple = (p) => {
|
|
|
26363
25404
|
const next = optionsParentMap.get(current[valueName]);
|
|
26364
25405
|
current = next;
|
|
26365
25406
|
}
|
|
26366
|
-
const
|
|
26367
|
-
setExpandKeys(
|
|
26368
|
-
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props,
|
|
25407
|
+
const keys = parentNodes.map((i2) => i2[valueName]);
|
|
25408
|
+
setExpandKeys(keys);
|
|
25409
|
+
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, parentNodes);
|
|
26369
25410
|
};
|
|
26370
25411
|
const renderSelectAllItem = (columnOptions, index2) => {
|
|
26371
25412
|
var _a;
|
|
@@ -26815,5 +25856,6 @@ export {
|
|
|
26815
25856
|
createErrorBlock,
|
|
26816
25857
|
reduceMotion,
|
|
26817
25858
|
restoreMotion,
|
|
26818
|
-
setDefaultConfig
|
|
25859
|
+
setDefaultConfig,
|
|
25860
|
+
useConfig
|
|
26819
25861
|
};
|