acud 0.0.71 → 0.0.72

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/dist/acud.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! acud v0.0.71 */
1
+ /*! acud v0.0.72 */
2
2
  (function webpackUniversalModuleDefinition(root, factory) {
3
3
  if(typeof exports === 'object' && typeof module === 'object')
4
4
  module.exports = factory(require("react"), require("react-dom"));
@@ -9572,7 +9572,6 @@ function PickerPanel(props) {
9572
9572
  var now = generateConfig.getNow();
9573
9573
  if (!date) return now; // When value is null and set showTime
9574
9574
 
9575
- // When value is null and set showTime
9576
9575
  if (!mergedValue && showTime) {
9577
9576
  if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(showTime) === 'object') {
9578
9577
  return Object(_utils_timeUtil__WEBPACK_IMPORTED_MODULE_23__["setDateTime"])(generateConfig, date, showTime.defaultValue || now);
@@ -10210,7 +10209,6 @@ function InnerRangePicker(props) {
10210
10209
  } // Fill disabled unit
10211
10210
 
10212
10211
 
10213
- // Fill disabled unit
10214
10212
  for (var i = 0; i < 2; i += 1) {
10215
10213
  if (mergedDisabled[i] && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(postValues, i) && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(allowEmpty, i)) {
10216
10214
  postValues = Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["updateValues"])(postValues, generateConfig.getNow(), i);
@@ -19721,6 +19719,80 @@ __webpack_require__.r(__webpack_exports__);
19721
19719
 
19722
19720
 
19723
19721
 
19722
+ /***/ }),
19723
+
19724
+ /***/ "./components/input/AutoComplete.tsx":
19725
+ /*!*******************************************!*\
19726
+ !*** ./components/input/AutoComplete.tsx ***!
19727
+ \*******************************************/
19728
+ /*! exports provided: default */
19729
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19730
+
19731
+ "use strict";
19732
+ __webpack_require__.r(__webpack_exports__);
19733
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
19734
+ /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
19735
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
19736
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
19737
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
19738
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
19739
+ /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../select */ "./components/select/index.tsx");
19740
+ /* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/reactNode */ "./components/_util/reactNode.ts");
19741
+ /* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
19742
+
19743
+
19744
+
19745
+
19746
+
19747
+
19748
+
19749
+ var Option = _select__WEBPACK_IMPORTED_MODULE_4__["default"].Option;
19750
+
19751
+ function isSelectOptionOrSelectOptGroup(child) {
19752
+ return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
19753
+ }
19754
+
19755
+ var AutoComplete = function AutoComplete(props, ref) {
19756
+ var _props$prefixCls = props.prefixCls,
19757
+ prefixCls = _props$prefixCls === void 0 ? 'acud-select' : _props$prefixCls,
19758
+ className = props.className,
19759
+ children = props.children;
19760
+ var childNodes = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__["default"])(children); // ============================= Input =============================
19761
+
19762
+ var customizeInput;
19763
+
19764
+ if (childNodes.length === 1 && Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
19765
+ var _childNodes = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(childNodes, 1);
19766
+
19767
+ customizeInput = _childNodes[0];
19768
+ }
19769
+
19770
+ var getInputElement = customizeInput ? function () {
19771
+ return customizeInput;
19772
+ } : undefined; // ============================ Options ============================
19773
+
19774
+ var optionChildren;
19775
+
19776
+ if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
19777
+ optionChildren = children;
19778
+ } else {
19779
+ optionChildren = [];
19780
+ }
19781
+
19782
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_select__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
19783
+ ref: ref
19784
+ }, props, {
19785
+ prefixCls: prefixCls,
19786
+ className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-auto-complete"), className),
19787
+ mode: _select__WEBPACK_IMPORTED_MODULE_4__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
19788
+ getInputElement: getInputElement
19789
+ }), optionChildren);
19790
+ };
19791
+
19792
+ var RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(AutoComplete);
19793
+ RefAutoComplete.Option = Option;
19794
+ /* harmony default export */ __webpack_exports__["default"] = (RefAutoComplete); // export default AutoComplete;
19795
+
19724
19796
  /***/ }),
19725
19797
 
19726
19798
  /***/ "./components/input/Input.tsx":
@@ -20468,9 +20540,9 @@ var __rest = undefined && undefined.__rest || function (s, e) {
20468
20540
 
20469
20541
 
20470
20542
 
20543
+ // const TextArea:React.FC<TextAreaProps> = props => {
20471
20544
 
20472
-
20473
- var TextArea = function TextArea(props) {
20545
+ var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.forwardRef(function (props, ref) {
20474
20546
  var _classNames;
20475
20547
 
20476
20548
  var _props$prefixCls = props.prefixCls,
@@ -20578,6 +20650,7 @@ var TextArea = function TextArea(props) {
20578
20650
  className: "".concat(prefixCls, "-outer"),
20579
20651
  style: style
20580
20652
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rc_textarea__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rest, {
20653
+ ref: ref,
20581
20654
  placeholder: placeholder,
20582
20655
  className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(classes),
20583
20656
  onChange: handleOnChange,
@@ -20599,8 +20672,7 @@ var TextArea = function TextArea(props) {
20599
20672
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", {
20600
20673
  className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(limitClassName, 'limit')
20601
20674
  }, currentLength, "/", limitLength)));
20602
- };
20603
-
20675
+ });
20604
20676
  /* harmony default export */ __webpack_exports__["default"] = (TextArea);
20605
20677
 
20606
20678
  /***/ }),
@@ -20619,6 +20691,8 @@ __webpack_require__.r(__webpack_exports__);
20619
20691
  /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.tsx");
20620
20692
  /* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Password */ "./components/input/Password.tsx");
20621
20693
  /* harmony import */ var _MultiSelectInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MultiSelectInput */ "./components/input/MultiSelectInput.tsx");
20694
+ /* harmony import */ var _AutoComplete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AutoComplete */ "./components/input/AutoComplete.tsx");
20695
+
20622
20696
 
20623
20697
 
20624
20698
 
@@ -20629,6 +20703,7 @@ Input.Label = _Label__WEBPACK_IMPORTED_MODULE_1__["default"];
20629
20703
  Input.TextArea = _TextArea__WEBPACK_IMPORTED_MODULE_2__["default"];
20630
20704
  Input.Password = _Password__WEBPACK_IMPORTED_MODULE_3__["default"];
20631
20705
  Input.MultiSelectInput = _MultiSelectInput__WEBPACK_IMPORTED_MODULE_4__["default"];
20706
+ Input.AutoComplete = _AutoComplete__WEBPACK_IMPORTED_MODULE_5__["default"];
20632
20707
  /* harmony default export */ __webpack_exports__["default"] = (Input);
20633
20708
 
20634
20709
  /***/ }),
@@ -46525,7 +46600,6 @@ function RawList(props, ref) {
46525
46600
  } // Always use virtual scroll bar in avoid shaking
46526
46601
 
46527
46602
 
46528
- // Always use virtual scroll bar in avoid shaking
46529
46603
  if (!inVirtual) {
46530
46604
  return {
46531
46605
  scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
@@ -46547,14 +46621,12 @@ function RawList(props, ref) {
46547
46621
  var cacheHeight = heights.get(key);
46548
46622
  var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
46549
46623
 
46550
- // Check item top in the range
46551
46624
  if (currentItemBottom >= scrollTop && startIndex === undefined) {
46552
46625
  startIndex = i;
46553
46626
  startOffset = itemTop;
46554
46627
  } // Check item bottom in the range. We will render additional one item for motion usage
46555
46628
 
46556
46629
 
46557
- // Check item bottom in the range. We will render additional one item for motion usage
46558
46630
  if (currentItemBottom > scrollTop + height && endIndex === undefined) {
46559
46631
  endIndex = i;
46560
46632
  }
@@ -46565,9 +46637,6 @@ function RawList(props, ref) {
46565
46637
  /* istanbul ignore next */
46566
46638
 
46567
46639
 
46568
- // Fallback to normal if not match. This code should never reach
46569
-
46570
- /* istanbul ignore next */
46571
46640
  if (startIndex === undefined) {
46572
46641
  startIndex = 0;
46573
46642
  startOffset = 0;
@@ -46578,7 +46647,6 @@ function RawList(props, ref) {
46578
46647
  } // Give cache to improve scroll experience
46579
46648
 
46580
46649
 
46581
- // Give cache to improve scroll experience
46582
46650
  endIndex = Math.min(endIndex + 1, mergedData.length);
46583
46651
  return {
46584
46652
  scrollHeight: itemTop,
@@ -47952,7 +48020,7 @@ function _defineProperty(obj, key, value) {
47952
48020
  __webpack_require__.r(__webpack_exports__);
47953
48021
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
47954
48022
  function _extends() {
47955
- _extends = Object.assign || function (target) {
48023
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
47956
48024
  for (var i = 1; i < arguments.length; i++) {
47957
48025
  var source = arguments[i];
47958
48026
 
@@ -47965,7 +48033,6 @@ function _extends() {
47965
48033
 
47966
48034
  return target;
47967
48035
  };
47968
-
47969
48036
  return _extends.apply(this, arguments);
47970
48037
  }
47971
48038
 
@@ -47985,7 +48052,7 @@ __webpack_require__.r(__webpack_exports__);
47985
48052
 
47986
48053
  function _get() {
47987
48054
  if (typeof Reflect !== "undefined" && Reflect.get) {
47988
- _get = Reflect.get;
48055
+ _get = Reflect.get.bind();
47989
48056
  } else {
47990
48057
  _get = function _get(target, property, receiver) {
47991
48058
  var base = Object(_superPropBase_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, property);
@@ -48016,7 +48083,7 @@ function _get() {
48016
48083
  __webpack_require__.r(__webpack_exports__);
48017
48084
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
48018
48085
  function _getPrototypeOf(o) {
48019
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
48086
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
48020
48087
  return o.__proto__ || Object.getPrototypeOf(o);
48021
48088
  };
48022
48089
  return _getPrototypeOf(o);
@@ -48298,6 +48365,372 @@ function _possibleConstructorReturn(self, call) {
48298
48365
 
48299
48366
  /***/ }),
48300
48367
 
48368
+ /***/ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":
48369
+ /*!***********************************************************************!*\
48370
+ !*** ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js ***!
48371
+ \***********************************************************************/
48372
+ /*! exports provided: default */
48373
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
48374
+
48375
+ "use strict";
48376
+ __webpack_require__.r(__webpack_exports__);
48377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _regeneratorRuntime; });
48378
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
48379
+
48380
+ function _regeneratorRuntime() {
48381
+ "use strict";
48382
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
48383
+
48384
+ _regeneratorRuntime = function _regeneratorRuntime() {
48385
+ return exports;
48386
+ };
48387
+
48388
+ var exports = {},
48389
+ Op = Object.prototype,
48390
+ hasOwn = Op.hasOwnProperty,
48391
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
48392
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
48393
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
48394
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
48395
+
48396
+ function define(obj, key, value) {
48397
+ return Object.defineProperty(obj, key, {
48398
+ value: value,
48399
+ enumerable: !0,
48400
+ configurable: !0,
48401
+ writable: !0
48402
+ }), obj[key];
48403
+ }
48404
+
48405
+ try {
48406
+ define({}, "");
48407
+ } catch (err) {
48408
+ define = function define(obj, key, value) {
48409
+ return obj[key] = value;
48410
+ };
48411
+ }
48412
+
48413
+ function wrap(innerFn, outerFn, self, tryLocsList) {
48414
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
48415
+ generator = Object.create(protoGenerator.prototype),
48416
+ context = new Context(tryLocsList || []);
48417
+ return generator._invoke = function (innerFn, self, context) {
48418
+ var state = "suspendedStart";
48419
+ return function (method, arg) {
48420
+ if ("executing" === state) throw new Error("Generator is already running");
48421
+
48422
+ if ("completed" === state) {
48423
+ if ("throw" === method) throw arg;
48424
+ return doneResult();
48425
+ }
48426
+
48427
+ for (context.method = method, context.arg = arg;;) {
48428
+ var delegate = context.delegate;
48429
+
48430
+ if (delegate) {
48431
+ var delegateResult = maybeInvokeDelegate(delegate, context);
48432
+
48433
+ if (delegateResult) {
48434
+ if (delegateResult === ContinueSentinel) continue;
48435
+ return delegateResult;
48436
+ }
48437
+ }
48438
+
48439
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
48440
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
48441
+ context.dispatchException(context.arg);
48442
+ } else "return" === context.method && context.abrupt("return", context.arg);
48443
+ state = "executing";
48444
+ var record = tryCatch(innerFn, self, context);
48445
+
48446
+ if ("normal" === record.type) {
48447
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
48448
+ return {
48449
+ value: record.arg,
48450
+ done: context.done
48451
+ };
48452
+ }
48453
+
48454
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
48455
+ }
48456
+ };
48457
+ }(innerFn, self, context), generator;
48458
+ }
48459
+
48460
+ function tryCatch(fn, obj, arg) {
48461
+ try {
48462
+ return {
48463
+ type: "normal",
48464
+ arg: fn.call(obj, arg)
48465
+ };
48466
+ } catch (err) {
48467
+ return {
48468
+ type: "throw",
48469
+ arg: err
48470
+ };
48471
+ }
48472
+ }
48473
+
48474
+ exports.wrap = wrap;
48475
+ var ContinueSentinel = {};
48476
+
48477
+ function Generator() {}
48478
+
48479
+ function GeneratorFunction() {}
48480
+
48481
+ function GeneratorFunctionPrototype() {}
48482
+
48483
+ var IteratorPrototype = {};
48484
+ define(IteratorPrototype, iteratorSymbol, function () {
48485
+ return this;
48486
+ });
48487
+ var getProto = Object.getPrototypeOf,
48488
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
48489
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
48490
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
48491
+
48492
+ function defineIteratorMethods(prototype) {
48493
+ ["next", "throw", "return"].forEach(function (method) {
48494
+ define(prototype, method, function (arg) {
48495
+ return this._invoke(method, arg);
48496
+ });
48497
+ });
48498
+ }
48499
+
48500
+ function AsyncIterator(generator, PromiseImpl) {
48501
+ function invoke(method, arg, resolve, reject) {
48502
+ var record = tryCatch(generator[method], generator, arg);
48503
+
48504
+ if ("throw" !== record.type) {
48505
+ var result = record.arg,
48506
+ value = result.value;
48507
+ return value && "object" == Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
48508
+ invoke("next", value, resolve, reject);
48509
+ }, function (err) {
48510
+ invoke("throw", err, resolve, reject);
48511
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
48512
+ result.value = unwrapped, resolve(result);
48513
+ }, function (error) {
48514
+ return invoke("throw", error, resolve, reject);
48515
+ });
48516
+ }
48517
+
48518
+ reject(record.arg);
48519
+ }
48520
+
48521
+ var previousPromise;
48522
+
48523
+ this._invoke = function (method, arg) {
48524
+ function callInvokeWithMethodAndArg() {
48525
+ return new PromiseImpl(function (resolve, reject) {
48526
+ invoke(method, arg, resolve, reject);
48527
+ });
48528
+ }
48529
+
48530
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
48531
+ };
48532
+ }
48533
+
48534
+ function maybeInvokeDelegate(delegate, context) {
48535
+ var method = delegate.iterator[context.method];
48536
+
48537
+ if (undefined === method) {
48538
+ if (context.delegate = null, "throw" === context.method) {
48539
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
48540
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
48541
+ }
48542
+
48543
+ return ContinueSentinel;
48544
+ }
48545
+
48546
+ var record = tryCatch(method, delegate.iterator, context.arg);
48547
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
48548
+ var info = record.arg;
48549
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
48550
+ }
48551
+
48552
+ function pushTryEntry(locs) {
48553
+ var entry = {
48554
+ tryLoc: locs[0]
48555
+ };
48556
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
48557
+ }
48558
+
48559
+ function resetTryEntry(entry) {
48560
+ var record = entry.completion || {};
48561
+ record.type = "normal", delete record.arg, entry.completion = record;
48562
+ }
48563
+
48564
+ function Context(tryLocsList) {
48565
+ this.tryEntries = [{
48566
+ tryLoc: "root"
48567
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
48568
+ }
48569
+
48570
+ function values(iterable) {
48571
+ if (iterable) {
48572
+ var iteratorMethod = iterable[iteratorSymbol];
48573
+ if (iteratorMethod) return iteratorMethod.call(iterable);
48574
+ if ("function" == typeof iterable.next) return iterable;
48575
+
48576
+ if (!isNaN(iterable.length)) {
48577
+ var i = -1,
48578
+ next = function next() {
48579
+ for (; ++i < iterable.length;) {
48580
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
48581
+ }
48582
+
48583
+ return next.value = undefined, next.done = !0, next;
48584
+ };
48585
+
48586
+ return next.next = next;
48587
+ }
48588
+ }
48589
+
48590
+ return {
48591
+ next: doneResult
48592
+ };
48593
+ }
48594
+
48595
+ function doneResult() {
48596
+ return {
48597
+ value: undefined,
48598
+ done: !0
48599
+ };
48600
+ }
48601
+
48602
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
48603
+ var ctor = "function" == typeof genFun && genFun.constructor;
48604
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
48605
+ }, exports.mark = function (genFun) {
48606
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
48607
+ }, exports.awrap = function (arg) {
48608
+ return {
48609
+ __await: arg
48610
+ };
48611
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
48612
+ return this;
48613
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
48614
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
48615
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
48616
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
48617
+ return result.done ? result.value : iter.next();
48618
+ });
48619
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
48620
+ return this;
48621
+ }), define(Gp, "toString", function () {
48622
+ return "[object Generator]";
48623
+ }), exports.keys = function (object) {
48624
+ var keys = [];
48625
+
48626
+ for (var key in object) {
48627
+ keys.push(key);
48628
+ }
48629
+
48630
+ return keys.reverse(), function next() {
48631
+ for (; keys.length;) {
48632
+ var key = keys.pop();
48633
+ if (key in object) return next.value = key, next.done = !1, next;
48634
+ }
48635
+
48636
+ return next.done = !0, next;
48637
+ };
48638
+ }, exports.values = values, Context.prototype = {
48639
+ constructor: Context,
48640
+ reset: function reset(skipTempReset) {
48641
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
48642
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
48643
+ }
48644
+ },
48645
+ stop: function stop() {
48646
+ this.done = !0;
48647
+ var rootRecord = this.tryEntries[0].completion;
48648
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
48649
+ return this.rval;
48650
+ },
48651
+ dispatchException: function dispatchException(exception) {
48652
+ if (this.done) throw exception;
48653
+ var context = this;
48654
+
48655
+ function handle(loc, caught) {
48656
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
48657
+ }
48658
+
48659
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48660
+ var entry = this.tryEntries[i],
48661
+ record = entry.completion;
48662
+ if ("root" === entry.tryLoc) return handle("end");
48663
+
48664
+ if (entry.tryLoc <= this.prev) {
48665
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
48666
+ hasFinally = hasOwn.call(entry, "finallyLoc");
48667
+
48668
+ if (hasCatch && hasFinally) {
48669
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
48670
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
48671
+ } else if (hasCatch) {
48672
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
48673
+ } else {
48674
+ if (!hasFinally) throw new Error("try statement without catch or finally");
48675
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
48676
+ }
48677
+ }
48678
+ }
48679
+ },
48680
+ abrupt: function abrupt(type, arg) {
48681
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48682
+ var entry = this.tryEntries[i];
48683
+
48684
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
48685
+ var finallyEntry = entry;
48686
+ break;
48687
+ }
48688
+ }
48689
+
48690
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
48691
+ var record = finallyEntry ? finallyEntry.completion : {};
48692
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
48693
+ },
48694
+ complete: function complete(record, afterLoc) {
48695
+ if ("throw" === record.type) throw record.arg;
48696
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
48697
+ },
48698
+ finish: function finish(finallyLoc) {
48699
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48700
+ var entry = this.tryEntries[i];
48701
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
48702
+ }
48703
+ },
48704
+ "catch": function _catch(tryLoc) {
48705
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48706
+ var entry = this.tryEntries[i];
48707
+
48708
+ if (entry.tryLoc === tryLoc) {
48709
+ var record = entry.completion;
48710
+
48711
+ if ("throw" === record.type) {
48712
+ var thrown = record.arg;
48713
+ resetTryEntry(entry);
48714
+ }
48715
+
48716
+ return thrown;
48717
+ }
48718
+ }
48719
+
48720
+ throw new Error("illegal catch attempt");
48721
+ },
48722
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
48723
+ return this.delegate = {
48724
+ iterator: values(iterable),
48725
+ resultName: resultName,
48726
+ nextLoc: nextLoc
48727
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
48728
+ }
48729
+ }, exports;
48730
+ }
48731
+
48732
+ /***/ }),
48733
+
48301
48734
  /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
48302
48735
  /*!*******************************************************************!*\
48303
48736
  !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
@@ -48309,11 +48742,10 @@ function _possibleConstructorReturn(self, call) {
48309
48742
  __webpack_require__.r(__webpack_exports__);
48310
48743
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
48311
48744
  function _setPrototypeOf(o, p) {
48312
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
48745
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
48313
48746
  o.__proto__ = p;
48314
48747
  return o;
48315
48748
  };
48316
-
48317
48749
  return _setPrototypeOf(o, p);
48318
48750
  }
48319
48751
 
@@ -48459,6 +48891,391 @@ function _unsupportedIterableToArray(o, minLen) {
48459
48891
 
48460
48892
  /***/ }),
48461
48893
 
48894
+ /***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
48895
+ /*!*******************************************************************!*\
48896
+ !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
48897
+ \*******************************************************************/
48898
+ /*! no static exports found */
48899
+ /***/ (function(module, exports, __webpack_require__) {
48900
+
48901
+ var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
48902
+
48903
+ function _regeneratorRuntime() {
48904
+ "use strict";
48905
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
48906
+
48907
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
48908
+ return exports;
48909
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
48910
+ var exports = {},
48911
+ Op = Object.prototype,
48912
+ hasOwn = Op.hasOwnProperty,
48913
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
48914
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
48915
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
48916
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
48917
+
48918
+ function define(obj, key, value) {
48919
+ return Object.defineProperty(obj, key, {
48920
+ value: value,
48921
+ enumerable: !0,
48922
+ configurable: !0,
48923
+ writable: !0
48924
+ }), obj[key];
48925
+ }
48926
+
48927
+ try {
48928
+ define({}, "");
48929
+ } catch (err) {
48930
+ define = function define(obj, key, value) {
48931
+ return obj[key] = value;
48932
+ };
48933
+ }
48934
+
48935
+ function wrap(innerFn, outerFn, self, tryLocsList) {
48936
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
48937
+ generator = Object.create(protoGenerator.prototype),
48938
+ context = new Context(tryLocsList || []);
48939
+ return generator._invoke = function (innerFn, self, context) {
48940
+ var state = "suspendedStart";
48941
+ return function (method, arg) {
48942
+ if ("executing" === state) throw new Error("Generator is already running");
48943
+
48944
+ if ("completed" === state) {
48945
+ if ("throw" === method) throw arg;
48946
+ return doneResult();
48947
+ }
48948
+
48949
+ for (context.method = method, context.arg = arg;;) {
48950
+ var delegate = context.delegate;
48951
+
48952
+ if (delegate) {
48953
+ var delegateResult = maybeInvokeDelegate(delegate, context);
48954
+
48955
+ if (delegateResult) {
48956
+ if (delegateResult === ContinueSentinel) continue;
48957
+ return delegateResult;
48958
+ }
48959
+ }
48960
+
48961
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
48962
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
48963
+ context.dispatchException(context.arg);
48964
+ } else "return" === context.method && context.abrupt("return", context.arg);
48965
+ state = "executing";
48966
+ var record = tryCatch(innerFn, self, context);
48967
+
48968
+ if ("normal" === record.type) {
48969
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
48970
+ return {
48971
+ value: record.arg,
48972
+ done: context.done
48973
+ };
48974
+ }
48975
+
48976
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
48977
+ }
48978
+ };
48979
+ }(innerFn, self, context), generator;
48980
+ }
48981
+
48982
+ function tryCatch(fn, obj, arg) {
48983
+ try {
48984
+ return {
48985
+ type: "normal",
48986
+ arg: fn.call(obj, arg)
48987
+ };
48988
+ } catch (err) {
48989
+ return {
48990
+ type: "throw",
48991
+ arg: err
48992
+ };
48993
+ }
48994
+ }
48995
+
48996
+ exports.wrap = wrap;
48997
+ var ContinueSentinel = {};
48998
+
48999
+ function Generator() {}
49000
+
49001
+ function GeneratorFunction() {}
49002
+
49003
+ function GeneratorFunctionPrototype() {}
49004
+
49005
+ var IteratorPrototype = {};
49006
+ define(IteratorPrototype, iteratorSymbol, function () {
49007
+ return this;
49008
+ });
49009
+ var getProto = Object.getPrototypeOf,
49010
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
49011
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
49012
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
49013
+
49014
+ function defineIteratorMethods(prototype) {
49015
+ ["next", "throw", "return"].forEach(function (method) {
49016
+ define(prototype, method, function (arg) {
49017
+ return this._invoke(method, arg);
49018
+ });
49019
+ });
49020
+ }
49021
+
49022
+ function AsyncIterator(generator, PromiseImpl) {
49023
+ function invoke(method, arg, resolve, reject) {
49024
+ var record = tryCatch(generator[method], generator, arg);
49025
+
49026
+ if ("throw" !== record.type) {
49027
+ var result = record.arg,
49028
+ value = result.value;
49029
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
49030
+ invoke("next", value, resolve, reject);
49031
+ }, function (err) {
49032
+ invoke("throw", err, resolve, reject);
49033
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
49034
+ result.value = unwrapped, resolve(result);
49035
+ }, function (error) {
49036
+ return invoke("throw", error, resolve, reject);
49037
+ });
49038
+ }
49039
+
49040
+ reject(record.arg);
49041
+ }
49042
+
49043
+ var previousPromise;
49044
+
49045
+ this._invoke = function (method, arg) {
49046
+ function callInvokeWithMethodAndArg() {
49047
+ return new PromiseImpl(function (resolve, reject) {
49048
+ invoke(method, arg, resolve, reject);
49049
+ });
49050
+ }
49051
+
49052
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
49053
+ };
49054
+ }
49055
+
49056
+ function maybeInvokeDelegate(delegate, context) {
49057
+ var method = delegate.iterator[context.method];
49058
+
49059
+ if (undefined === method) {
49060
+ if (context.delegate = null, "throw" === context.method) {
49061
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
49062
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
49063
+ }
49064
+
49065
+ return ContinueSentinel;
49066
+ }
49067
+
49068
+ var record = tryCatch(method, delegate.iterator, context.arg);
49069
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
49070
+ var info = record.arg;
49071
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
49072
+ }
49073
+
49074
+ function pushTryEntry(locs) {
49075
+ var entry = {
49076
+ tryLoc: locs[0]
49077
+ };
49078
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
49079
+ }
49080
+
49081
+ function resetTryEntry(entry) {
49082
+ var record = entry.completion || {};
49083
+ record.type = "normal", delete record.arg, entry.completion = record;
49084
+ }
49085
+
49086
+ function Context(tryLocsList) {
49087
+ this.tryEntries = [{
49088
+ tryLoc: "root"
49089
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
49090
+ }
49091
+
49092
+ function values(iterable) {
49093
+ if (iterable) {
49094
+ var iteratorMethod = iterable[iteratorSymbol];
49095
+ if (iteratorMethod) return iteratorMethod.call(iterable);
49096
+ if ("function" == typeof iterable.next) return iterable;
49097
+
49098
+ if (!isNaN(iterable.length)) {
49099
+ var i = -1,
49100
+ next = function next() {
49101
+ for (; ++i < iterable.length;) {
49102
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
49103
+ }
49104
+
49105
+ return next.value = undefined, next.done = !0, next;
49106
+ };
49107
+
49108
+ return next.next = next;
49109
+ }
49110
+ }
49111
+
49112
+ return {
49113
+ next: doneResult
49114
+ };
49115
+ }
49116
+
49117
+ function doneResult() {
49118
+ return {
49119
+ value: undefined,
49120
+ done: !0
49121
+ };
49122
+ }
49123
+
49124
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
49125
+ var ctor = "function" == typeof genFun && genFun.constructor;
49126
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
49127
+ }, exports.mark = function (genFun) {
49128
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
49129
+ }, exports.awrap = function (arg) {
49130
+ return {
49131
+ __await: arg
49132
+ };
49133
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
49134
+ return this;
49135
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
49136
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
49137
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
49138
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
49139
+ return result.done ? result.value : iter.next();
49140
+ });
49141
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
49142
+ return this;
49143
+ }), define(Gp, "toString", function () {
49144
+ return "[object Generator]";
49145
+ }), exports.keys = function (object) {
49146
+ var keys = [];
49147
+
49148
+ for (var key in object) {
49149
+ keys.push(key);
49150
+ }
49151
+
49152
+ return keys.reverse(), function next() {
49153
+ for (; keys.length;) {
49154
+ var key = keys.pop();
49155
+ if (key in object) return next.value = key, next.done = !1, next;
49156
+ }
49157
+
49158
+ return next.done = !0, next;
49159
+ };
49160
+ }, exports.values = values, Context.prototype = {
49161
+ constructor: Context,
49162
+ reset: function reset(skipTempReset) {
49163
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
49164
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
49165
+ }
49166
+ },
49167
+ stop: function stop() {
49168
+ this.done = !0;
49169
+ var rootRecord = this.tryEntries[0].completion;
49170
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
49171
+ return this.rval;
49172
+ },
49173
+ dispatchException: function dispatchException(exception) {
49174
+ if (this.done) throw exception;
49175
+ var context = this;
49176
+
49177
+ function handle(loc, caught) {
49178
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
49179
+ }
49180
+
49181
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49182
+ var entry = this.tryEntries[i],
49183
+ record = entry.completion;
49184
+ if ("root" === entry.tryLoc) return handle("end");
49185
+
49186
+ if (entry.tryLoc <= this.prev) {
49187
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
49188
+ hasFinally = hasOwn.call(entry, "finallyLoc");
49189
+
49190
+ if (hasCatch && hasFinally) {
49191
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
49192
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
49193
+ } else if (hasCatch) {
49194
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
49195
+ } else {
49196
+ if (!hasFinally) throw new Error("try statement without catch or finally");
49197
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
49198
+ }
49199
+ }
49200
+ }
49201
+ },
49202
+ abrupt: function abrupt(type, arg) {
49203
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49204
+ var entry = this.tryEntries[i];
49205
+
49206
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
49207
+ var finallyEntry = entry;
49208
+ break;
49209
+ }
49210
+ }
49211
+
49212
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
49213
+ var record = finallyEntry ? finallyEntry.completion : {};
49214
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
49215
+ },
49216
+ complete: function complete(record, afterLoc) {
49217
+ if ("throw" === record.type) throw record.arg;
49218
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
49219
+ },
49220
+ finish: function finish(finallyLoc) {
49221
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49222
+ var entry = this.tryEntries[i];
49223
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
49224
+ }
49225
+ },
49226
+ "catch": function _catch(tryLoc) {
49227
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49228
+ var entry = this.tryEntries[i];
49229
+
49230
+ if (entry.tryLoc === tryLoc) {
49231
+ var record = entry.completion;
49232
+
49233
+ if ("throw" === record.type) {
49234
+ var thrown = record.arg;
49235
+ resetTryEntry(entry);
49236
+ }
49237
+
49238
+ return thrown;
49239
+ }
49240
+ }
49241
+
49242
+ throw new Error("illegal catch attempt");
49243
+ },
49244
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
49245
+ return this.delegate = {
49246
+ iterator: values(iterable),
49247
+ resultName: resultName,
49248
+ nextLoc: nextLoc
49249
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
49250
+ }
49251
+ }, exports;
49252
+ }
49253
+
49254
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
49255
+
49256
+ /***/ }),
49257
+
49258
+ /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
49259
+ /*!*******************************************************!*\
49260
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
49261
+ \*******************************************************/
49262
+ /*! no static exports found */
49263
+ /***/ (function(module, exports) {
49264
+
49265
+ function _typeof(obj) {
49266
+ "@babel/helpers - typeof";
49267
+
49268
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
49269
+ return typeof obj;
49270
+ } : function (obj) {
49271
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
49272
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
49273
+ }
49274
+
49275
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
49276
+
49277
+ /***/ }),
49278
+
48462
49279
  /***/ "./node_modules/@babel/runtime/regenerator/index.js":
48463
49280
  /*!**********************************************************!*\
48464
49281
  !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
@@ -48466,7 +49283,21 @@ function _unsupportedIterableToArray(o, minLen) {
48466
49283
  /*! no static exports found */
48467
49284
  /***/ (function(module, exports, __webpack_require__) {
48468
49285
 
48469
- module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
49286
+ // TODO(Babel 8): Remove this file.
49287
+
49288
+ var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
49289
+ module.exports = runtime;
49290
+
49291
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
49292
+ try {
49293
+ regeneratorRuntime = runtime;
49294
+ } catch (accidentalStrictMode) {
49295
+ if (typeof globalThis === "object") {
49296
+ globalThis.regeneratorRuntime = runtime;
49297
+ } else {
49298
+ Function("r", "regeneratorRuntime = r")(runtime);
49299
+ }
49300
+ }
48470
49301
 
48471
49302
 
48472
49303
  /***/ }),
@@ -85630,7 +86461,16 @@ var Schema = /*#__PURE__*/function () {
85630
86461
  if (rule.asyncValidator) {
85631
86462
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
85632
86463
  } else if (rule.validator) {
85633
- res = rule.validator(rule, data.value, cb, data.source, options);
86464
+ try {
86465
+ res = rule.validator(rule, data.value, cb, data.source, options);
86466
+ } catch (error) {
86467
+ console.error == null ? void 0 : console.error(error); // rethrow to report error
86468
+
86469
+ setTimeout(function () {
86470
+ throw error;
86471
+ }, 0);
86472
+ cb(error.message);
86473
+ }
85634
86474
 
85635
86475
  if (res === true) {
85636
86476
  cb();
@@ -86143,8 +86983,8 @@ function getClientPosition(elem) {
86143
86983
  // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
86144
86984
  // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
86145
86985
 
86146
- x = box.left;
86147
- y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
86986
+ x = Math.floor(box.left);
86987
+ y = Math.floor(box.top); // In IE, most of the time, 2 extra pixels are added to the top and left
86148
86988
  // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
86149
86989
  // IE6 standards mode, this border can be overridden by setting the
86150
86990
  // document element's border to zero -- thus, we cannot rely on the
@@ -86551,7 +87391,7 @@ function getWH(elem, name, ex) {
86551
87391
  }
86552
87392
 
86553
87393
  var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
86554
- var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
87394
+ var borderBoxValue = name === 'width' ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
86555
87395
  var isBorderBox = isBorderBoxFn(elem);
86556
87396
  var cssBoxValue = 0;
86557
87397
 
@@ -117401,6 +118241,8 @@ __webpack_require__.r(__webpack_exports__);
117401
118241
  }
117402
118242
 
117403
118243
  function trigger(force) {
118244
+ cancelTrigger();
118245
+
117404
118246
  if (!calledRef.current || force === true) {
117405
118247
  if (callback() === false) {
117406
118248
  // Not delay since callback cancelled self
@@ -117408,12 +118250,10 @@ __webpack_require__.r(__webpack_exports__);
117408
118250
  }
117409
118251
 
117410
118252
  calledRef.current = true;
117411
- cancelTrigger();
117412
118253
  timeoutRef.current = window.setTimeout(function () {
117413
118254
  calledRef.current = false;
117414
118255
  }, buffer);
117415
118256
  } else {
117416
- cancelTrigger();
117417
118257
  timeoutRef.current = window.setTimeout(function () {
117418
118258
  calledRef.current = false;
117419
118259
  trigger();
@@ -117793,7 +118633,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117793
118633
 
117794
118634
  _this = _super.call.apply(_super, [this].concat(args));
117795
118635
 
117796
- _this.handleItemClick = function () {
118636
+ _this.onItemClick = function () {
117797
118637
  var _this$props = _this.props,
117798
118638
  onItemClick = _this$props.onItemClick,
117799
118639
  panelKey = _this$props.panelKey;
@@ -117805,10 +118645,41 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117805
118645
 
117806
118646
  _this.handleKeyPress = function (e) {
117807
118647
  if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
117808
- _this.handleItemClick();
118648
+ _this.onItemClick();
117809
118649
  }
117810
118650
  };
117811
118651
 
118652
+ _this.renderIcon = function () {
118653
+ var _this$props2 = _this.props,
118654
+ showArrow = _this$props2.showArrow,
118655
+ expandIcon = _this$props2.expandIcon,
118656
+ prefixCls = _this$props2.prefixCls,
118657
+ collapsible = _this$props2.collapsible;
118658
+
118659
+ if (!showArrow) {
118660
+ return null;
118661
+ }
118662
+
118663
+ var iconNode = typeof expandIcon === 'function' ? expandIcon(_this.props) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
118664
+ className: "arrow"
118665
+ });
118666
+ return iconNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
118667
+ className: "".concat(prefixCls, "-expand-icon"),
118668
+ onClick: collapsible === 'header' ? _this.onItemClick : null
118669
+ }, iconNode);
118670
+ };
118671
+
118672
+ _this.renderTitle = function () {
118673
+ var _this$props3 = _this.props,
118674
+ header = _this$props3.header,
118675
+ prefixCls = _this$props3.prefixCls,
118676
+ collapsible = _this$props3.collapsible;
118677
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
118678
+ className: "".concat(prefixCls, "-header-text"),
118679
+ onClick: collapsible === 'header' ? _this.onItemClick : null
118680
+ }, header);
118681
+ };
118682
+
117812
118683
  return _this;
117813
118684
  }
117814
118685
 
@@ -117820,34 +118691,26 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117820
118691
  }, {
117821
118692
  key: "render",
117822
118693
  value: function render() {
117823
- var _classNames,
117824
- _classNames2,
117825
- _this2 = this;
118694
+ var _classNames, _classNames2;
117826
118695
 
117827
- var _this$props2 = this.props,
117828
- className = _this$props2.className,
117829
- id = _this$props2.id,
117830
- style = _this$props2.style,
117831
- prefixCls = _this$props2.prefixCls,
117832
- header = _this$props2.header,
117833
- headerClass = _this$props2.headerClass,
117834
- children = _this$props2.children,
117835
- isActive = _this$props2.isActive,
117836
- showArrow = _this$props2.showArrow,
117837
- destroyInactivePanel = _this$props2.destroyInactivePanel,
117838
- accordion = _this$props2.accordion,
117839
- forceRender = _this$props2.forceRender,
117840
- openMotion = _this$props2.openMotion,
117841
- expandIcon = _this$props2.expandIcon,
117842
- extra = _this$props2.extra,
117843
- collapsible = _this$props2.collapsible;
118696
+ var _this$props4 = this.props,
118697
+ className = _this$props4.className,
118698
+ id = _this$props4.id,
118699
+ style = _this$props4.style,
118700
+ prefixCls = _this$props4.prefixCls,
118701
+ headerClass = _this$props4.headerClass,
118702
+ children = _this$props4.children,
118703
+ isActive = _this$props4.isActive,
118704
+ destroyInactivePanel = _this$props4.destroyInactivePanel,
118705
+ accordion = _this$props4.accordion,
118706
+ forceRender = _this$props4.forceRender,
118707
+ openMotion = _this$props4.openMotion,
118708
+ extra = _this$props4.extra,
118709
+ collapsible = _this$props4.collapsible;
117844
118710
  var disabled = collapsible === 'disabled';
117845
118711
  var collapsibleHeader = collapsible === 'header';
117846
- var headerCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()("".concat(prefixCls, "-header"), (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, headerClass, headerClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-header-collapsible-only"), collapsibleHeader), _classNames));
117847
- var itemCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item"), true), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item-active"), isActive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item-disabled"), disabled), _classNames2), className);
117848
- var icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
117849
- className: "arrow"
117850
- });
118712
+ var itemCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item"), true), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item-active"), isActive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item-disabled"), disabled), _classNames), className);
118713
+ var headerCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()("".concat(prefixCls, "-header"), (_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, headerClass, headerClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-header-collapsible-only"), collapsibleHeader), _classNames2));
117851
118714
  /** header 节点属性 */
117852
118715
 
117853
118716
  var headerProps = {
@@ -117856,21 +118719,8 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117856
118719
  onKeyPress: this.handleKeyPress
117857
118720
  };
117858
118721
 
117859
- if (showArrow && typeof expandIcon === 'function') {
117860
- icon = expandIcon(this.props);
117861
- }
117862
-
117863
- if (collapsibleHeader) {
117864
- icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
117865
- style: {
117866
- cursor: 'pointer'
117867
- },
117868
- onClick: function onClick() {
117869
- return _this2.handleItemClick();
117870
- }
117871
- }, icon);
117872
- } else {
117873
- headerProps.onClick = this.handleItemClick;
118722
+ if (!collapsibleHeader) {
118723
+ headerProps.onClick = this.onItemClick;
117874
118724
  headerProps.role = accordion ? 'tab' : 'button';
117875
118725
  headerProps.tabIndex = disabled ? -1 : 0;
117876
118726
  }
@@ -117880,10 +118730,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117880
118730
  className: itemCls,
117881
118731
  style: style,
117882
118732
  id: id
117883
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps, showArrow && icon, collapsibleHeader ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
117884
- onClick: this.handleItemClick,
117885
- className: "".concat(prefixCls, "-header-text")
117886
- }, header) : header, ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
118733
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps, this.renderIcon(), this.renderTitle(), ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
117887
118734
  className: "".concat(prefixCls, "-extra")
117888
118735
  }, extra)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
117889
118736
  visible: isActive,
@@ -120830,15 +121677,15 @@ __webpack_require__.r(__webpack_exports__);
120830
121677
  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
120831
121678
  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
120832
121679
  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
120833
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
120834
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
120835
- /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
121680
+ /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
121681
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
121682
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
120836
121683
  /* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
120837
121684
  /* harmony import */ var _utils_asyncUtil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/asyncUtil */ "./node_modules/rc-field-form/es/utils/asyncUtil.js");
120838
- /* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
121685
+ /* harmony import */ var _utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/cloneDeep */ "./node_modules/rc-field-form/es/utils/cloneDeep.js");
120839
121686
  /* harmony import */ var _utils_messages__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/messages */ "./node_modules/rc-field-form/es/utils/messages.js");
120840
- /* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
120841
- /* harmony import */ var _utils_cloneDeep__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/cloneDeep */ "./node_modules/rc-field-form/es/utils/cloneDeep.js");
121687
+ /* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
121688
+ /* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
120842
121689
 
120843
121690
 
120844
121691
 
@@ -120910,7 +121757,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
120910
121757
  };
120911
121758
  }
120912
121759
 
120913
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
121760
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
120914
121761
  return null;
120915
121762
  };
120916
121763
 
@@ -120926,13 +121773,13 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
120926
121773
  if (init) {
120927
121774
  var _this$prevWithoutPres;
120928
121775
 
120929
- var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])({}, initialValues, _this.store); // We will take consider prev form unmount fields.
121776
+ var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, initialValues, _this.store); // We will take consider prev form unmount fields.
120930
121777
  // When the field is not `preserve`, we need fill this with initialValues instead of store.
120931
121778
  // eslint-disable-next-line array-callback-return
120932
121779
 
120933
121780
  (_this$prevWithoutPres = _this.prevWithoutPreserves) === null || _this$prevWithoutPres === void 0 ? void 0 : _this$prevWithoutPres.map(function (_ref) {
120934
121781
  var namePath = _ref.key;
120935
- nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(nextStore, namePath, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(initialValues, namePath));
121782
+ nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(nextStore, namePath, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(initialValues, namePath));
120936
121783
  });
120937
121784
  _this.prevWithoutPreserves = null;
120938
121785
 
@@ -120941,10 +121788,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
120941
121788
  };
120942
121789
 
120943
121790
  this.destroyForm = function () {
120944
- var prevWithoutPreserves = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
121791
+ var prevWithoutPreserves = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
120945
121792
 
120946
121793
  _this.getFieldEntities(true).forEach(function (entity) {
120947
- if (!entity.isPreserve()) {
121794
+ if (!_this.isMergedPreserve(entity.isPreserve())) {
120948
121795
  prevWithoutPreserves.set(entity.getNamePath(), true);
120949
121796
  }
120950
121797
  });
@@ -120953,9 +121800,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
120953
121800
  };
120954
121801
 
120955
121802
  this.getInitialValue = function (namePath) {
120956
- var initValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.initialValues, namePath); // Not cloneDeep when without `namePath`
121803
+ var initValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.initialValues, namePath); // Not cloneDeep when without `namePath`
120957
121804
 
120958
- return namePath.length ? Object(_utils_cloneDeep__WEBPACK_IMPORTED_MODULE_13__["default"])(initValue) : initValue;
121805
+ return namePath.length ? Object(_utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__["default"])(initValue) : initValue;
120959
121806
  };
120960
121807
 
120961
121808
  this.setCallbacks = function (callbacks) {
@@ -121003,7 +121850,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121003
121850
  _this.timeoutId = null;
121004
121851
 
121005
121852
  if (!_this.formHooked) {
121006
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');
121853
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');
121007
121854
  }
121008
121855
  });
121009
121856
  }
@@ -121027,7 +121874,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121027
121874
 
121028
121875
  this.getFieldsMap = function () {
121029
121876
  var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
121030
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
121877
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121031
121878
 
121032
121879
  _this.getFieldEntities(pure).forEach(function (field) {
121033
121880
  var namePath = field.getNamePath();
@@ -121045,9 +121892,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121045
121892
  var cache = _this.getFieldsMap(true);
121046
121893
 
121047
121894
  return nameList.map(function (name) {
121048
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121895
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121049
121896
  return cache.get(namePath) || {
121050
- INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name)
121897
+ INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name)
121051
121898
  };
121052
121899
  });
121053
121900
  };
@@ -121082,14 +121929,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121082
121929
  }
121083
121930
  }
121084
121931
  });
121085
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]));
121932
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]));
121086
121933
  };
121087
121934
 
121088
121935
  this.getFieldValue = function (name) {
121089
121936
  _this.warningUnhooked();
121090
121937
 
121091
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121092
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.store, namePath);
121938
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121939
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
121093
121940
  };
121094
121941
 
121095
121942
  this.getFieldsError = function (nameList) {
@@ -121107,7 +121954,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121107
121954
  }
121108
121955
 
121109
121956
  return {
121110
- name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(nameList[index]),
121957
+ name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(nameList[index]),
121111
121958
  errors: [],
121112
121959
  warnings: []
121113
121960
  };
@@ -121117,7 +121964,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121117
121964
  this.getFieldError = function (name) {
121118
121965
  _this.warningUnhooked();
121119
121966
 
121120
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121967
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121121
121968
 
121122
121969
  var fieldError = _this.getFieldsError([namePath])[0];
121123
121970
 
@@ -121127,7 +121974,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121127
121974
  this.getFieldWarning = function (name) {
121128
121975
  _this.warningUnhooked();
121129
121976
 
121130
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121977
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121131
121978
 
121132
121979
  var fieldError = _this.getFieldsError([namePath])[0];
121133
121980
 
@@ -121150,14 +121997,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121150
121997
  namePathList = null;
121151
121998
  } else if (args.length === 1) {
121152
121999
  if (Array.isArray(arg0)) {
121153
- namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122000
+ namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121154
122001
  isAllFieldsTouched = false;
121155
122002
  } else {
121156
122003
  namePathList = null;
121157
122004
  isAllFieldsTouched = arg0;
121158
122005
  }
121159
122006
  } else {
121160
- namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122007
+ namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121161
122008
  isAllFieldsTouched = arg1;
121162
122009
  }
121163
122010
 
@@ -121173,7 +122020,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121173
122020
  } // Generate a nest tree for validate
121174
122021
 
121175
122022
 
121176
- var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122023
+ var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121177
122024
  namePathList.forEach(function (shortNamePath) {
121178
122025
  map.set(shortNamePath, []);
121179
122026
  });
@@ -121219,10 +122066,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121219
122066
  });
121220
122067
  }
121221
122068
 
121222
- var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122069
+ var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121223
122070
  return fieldEntities.some(function (testField) {
121224
122071
  var fieldNamePath = testField.getNamePath();
121225
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
122072
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
121226
122073
  });
121227
122074
  };
121228
122075
 
@@ -121235,7 +122082,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121235
122082
  this.resetWithFieldInitialValue = function () {
121236
122083
  var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
121237
122084
  // Create cache
121238
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122085
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121239
122086
 
121240
122087
  var fieldEntities = _this.getFieldEntities(true);
121241
122088
 
@@ -121264,19 +122111,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121264
122111
 
121265
122112
  if (formInitialValue !== undefined) {
121266
122113
  // Warning if conflict with form initialValues and do not modify value
121267
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
122114
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
121268
122115
  } else {
121269
122116
  var records = cache.get(namePath);
121270
122117
 
121271
122118
  if (records && records.size > 1) {
121272
122119
  // Warning if multiple field set `initialValue`and do not modify value
121273
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
122120
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
121274
122121
  } else if (records) {
121275
122122
  var originValue = _this.getFieldValue(namePath); // Set `initialValue`
121276
122123
 
121277
122124
 
121278
122125
  if (!info.skipExist || originValue === undefined) {
121279
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records)[0].value));
122126
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records)[0].value));
121280
122127
  }
121281
122128
  }
121282
122129
  }
@@ -121314,7 +122161,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121314
122161
  var prevStore = _this.store;
121315
122162
 
121316
122163
  if (!nameList) {
121317
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])({}, _this.initialValues));
122164
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, _this.initialValues));
121318
122165
 
121319
122166
  _this.resetWithFieldInitialValue();
121320
122167
 
@@ -121328,11 +122175,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121328
122175
  } // Reset by `nameList`
121329
122176
 
121330
122177
 
121331
- var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122178
+ var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121332
122179
  namePathList.forEach(function (namePath) {
121333
122180
  var initialValue = _this.getInitialValue(namePath);
121334
122181
 
121335
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, initialValue));
122182
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
121336
122183
  });
121337
122184
 
121338
122185
  _this.resetWithFieldInitialValue({
@@ -121356,11 +122203,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121356
122203
  errors = fieldData.errors,
121357
122204
  data = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(fieldData, _excluded);
121358
122205
 
121359
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122206
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121360
122207
  namePathList.push(namePath); // Value
121361
122208
 
121362
122209
  if ('value' in data) {
121363
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, data.value));
122210
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, data.value));
121364
122211
  }
121365
122212
 
121366
122213
  _this.notifyObservers(prevStore, [namePath], {
@@ -121397,14 +122244,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121397
122244
 
121398
122245
  if (initialValue !== undefined) {
121399
122246
  var namePath = entity.getNamePath();
121400
- var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.store, namePath);
122247
+ var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
121401
122248
 
121402
122249
  if (prevValue === undefined) {
121403
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, initialValue));
122250
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
121404
122251
  }
121405
122252
  }
121406
122253
  };
121407
122254
 
122255
+ this.isMergedPreserve = function (fieldPreserve) {
122256
+ var mergedPreserve = fieldPreserve !== undefined ? fieldPreserve : _this.preserve;
122257
+ return mergedPreserve !== null && mergedPreserve !== void 0 ? mergedPreserve : true;
122258
+ };
122259
+
121408
122260
  this.registerField = function (entity) {
121409
122261
  _this.fieldEntities.push(entity);
121410
122262
 
@@ -121434,19 +122286,17 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121434
122286
  return item !== entity;
121435
122287
  }); // Clean up store value if not preserve
121436
122288
 
121437
- var mergedPreserve = preserve !== undefined ? preserve : _this.preserve;
121438
-
121439
- if (mergedPreserve === false && (!isListField || subNamePath.length > 1)) {
122289
+ if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
121440
122290
  var defaultValue = isListField ? undefined : _this.getInitialValue(namePath);
121441
122291
 
121442
122292
  if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function (field) {
121443
122293
  return (// Only reset when no namePath exist
121444
- !Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["matchNamePath"])(field.getNamePath(), namePath)
122294
+ !Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["matchNamePath"])(field.getNamePath(), namePath)
121445
122295
  );
121446
122296
  })) {
121447
122297
  var _prevStore = _this.store;
121448
122298
 
121449
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_prevStore, namePath, defaultValue, true)); // Notify that field is unmount
122299
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_prevStore, namePath, defaultValue, true)); // Notify that field is unmount
121450
122300
 
121451
122301
 
121452
122302
  _this.notifyObservers(_prevStore, [namePath], {
@@ -121522,10 +122372,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121522
122372
  };
121523
122373
 
121524
122374
  this.updateValue = function (name, value) {
121525
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122375
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121526
122376
  var prevStore = _this.store;
121527
122377
 
121528
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, value));
122378
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, value));
121529
122379
 
121530
122380
  _this.notifyObservers(prevStore, [namePath], {
121531
122381
  type: 'valueUpdate',
@@ -121541,7 +122391,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121541
122391
  var onValuesChange = _this.callbacks.onValuesChange;
121542
122392
 
121543
122393
  if (onValuesChange) {
121544
- var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["cloneByNamePathList"])(_this.store, [namePath]);
122394
+ var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, [namePath]);
121545
122395
  onValuesChange(changedValues, _this.getFieldsValue());
121546
122396
  }
121547
122397
 
@@ -121554,7 +122404,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121554
122404
  var prevStore = _this.store;
121555
122405
 
121556
122406
  if (store) {
121557
- var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])(_this.store, store);
122407
+ var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])(_this.store, store);
121558
122408
 
121559
122409
  _this.updateStore(nextStore);
121560
122410
  }
@@ -121570,7 +122420,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121570
122420
  this.getDependencyChildrenFields = function (rootNamePath) {
121571
122421
  var children = new Set();
121572
122422
  var childrenFields = [];
121573
- var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122423
+ var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121574
122424
  /**
121575
122425
  * Generate maps
121576
122426
  * Can use cache to save perf if user report performance issue with this
@@ -121579,7 +122429,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121579
122429
  _this.getFieldEntities().forEach(function (field) {
121580
122430
  var dependencies = field.props.dependencies;
121581
122431
  (dependencies || []).forEach(function (dependency) {
121582
- var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(dependency);
122432
+ var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(dependency);
121583
122433
  dependencies2fields.update(dependencyNamePath, function () {
121584
122434
  var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
121585
122435
  fields.add(field);
@@ -121618,7 +122468,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121618
122468
 
121619
122469
 
121620
122470
  if (filedErrors) {
121621
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122471
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121622
122472
  filedErrors.forEach(function (_ref4) {
121623
122473
  var name = _ref4.name,
121624
122474
  errors = _ref4.errors;
@@ -121632,7 +122482,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121632
122482
 
121633
122483
  var changedFields = fields.filter(function (_ref5) {
121634
122484
  var fieldName = _ref5.name;
121635
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldName);
122485
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldName);
121636
122486
  });
121637
122487
  onFieldsChange(changedFields, fields);
121638
122488
  }
@@ -121642,7 +122492,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121642
122492
  _this.warningUnhooked();
121643
122493
 
121644
122494
  var provideNameList = !!nameList;
121645
- var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]) : []; // Collect result in promise list
122495
+ var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]) : []; // Collect result in promise list
121646
122496
 
121647
122497
  var promiseList = [];
121648
122498
 
@@ -121676,7 +122526,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121676
122526
 
121677
122527
  var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
121678
122528
 
121679
- if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldNamePath)) {
122529
+ if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath)) {
121680
122530
  var promise = field.validateRules(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
121681
122531
  validateMessages: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _utils_messages__WEBPACK_IMPORTED_MODULE_11__["defaultValidateMessages"]), _this.validateMessages)
121682
122532
  }, options)); // Wrap promise with field
@@ -121785,9 +122635,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121785
122635
  });
121786
122636
 
121787
122637
  function useForm(form) {
121788
- var formRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
122638
+ var formRef = react__WEBPACK_IMPORTED_MODULE_7__["useRef"]();
121789
122639
 
121790
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_6__["useState"]({}),
122640
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_7__["useState"]({}),
121791
122641
  _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
121792
122642
  forceUpdate = _React$useState2[1];
121793
122643
 
@@ -121835,6 +122685,14 @@ __webpack_require__.r(__webpack_exports__);
121835
122685
 
121836
122686
 
121837
122687
 
122688
+ function stringify(value) {
122689
+ try {
122690
+ return JSON.stringify(value);
122691
+ } catch (err) {
122692
+ return Math.random();
122693
+ }
122694
+ }
122695
+
121838
122696
  function useWatch() {
121839
122697
  var dependencies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
121840
122698
  var form = arguments.length > 1 ? arguments[1] : undefined;
@@ -121844,8 +122702,11 @@ function useWatch() {
121844
122702
  value = _useState2[0],
121845
122703
  setValue = _useState2[1];
121846
122704
 
121847
- var valueCacheRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])();
121848
- valueCacheRef.current = value;
122705
+ var valueStr = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
122706
+ return stringify(value);
122707
+ }, [value]);
122708
+ var valueStrRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(valueStr);
122709
+ valueStrRef.current = valueStr;
121849
122710
  var fieldContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(___WEBPACK_IMPORTED_MODULE_1__["FieldContext"]);
121850
122711
  var formInstance = form || fieldContext;
121851
122712
  var isValidForm = formInstance && formInstance._init; // Warning if not exist form instance
@@ -121871,8 +122732,9 @@ function useWatch() {
121871
122732
 
121872
122733
  var cancelRegister = registerWatch(function (store) {
121873
122734
  var newValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_5__["getValue"])(store, namePathRef.current);
122735
+ var nextValueStr = stringify(newValue); // Compare stringify in case it's nest object
121874
122736
 
121875
- if (valueCacheRef.current !== newValue) {
122737
+ if (valueStrRef.current !== nextValueStr) {
121876
122738
  setValue(newValue);
121877
122739
  }
121878
122740
  }); // TODO: We can improve this perf in future
@@ -122186,8 +123048,7 @@ __webpack_require__.r(__webpack_exports__);
122186
123048
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateRules", function() { return validateRules; });
122187
123049
  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
122188
123050
  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
122189
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
122190
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);
123051
+ /* harmony import */ var _babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");
122191
123052
  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
122192
123053
  /* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
122193
123054
  /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
@@ -122220,6 +123081,8 @@ function replaceMessage(template, kv) {
122220
123081
  });
122221
123082
  }
122222
123083
 
123084
+ var CODE_LOGIC_ERROR = 'CODE_LOGIC_ERROR';
123085
+
122223
123086
  function validateRule(_x, _x2, _x3, _x4, _x5) {
122224
123087
  return _validateRule.apply(this, arguments);
122225
123088
  }
@@ -122230,9 +123093,9 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
122230
123093
 
122231
123094
 
122232
123095
  function _validateRule() {
122233
- _validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(name, value, rule, options, messageVariables) {
122234
- var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
122235
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) {
123096
+ _validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee2(name, value, rule, options, messageVariables) {
123097
+ var cloneRule, originValidator, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
123098
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee2$(_context2) {
122236
123099
  while (1) {
122237
123100
  switch (_context2.prev = _context2.next) {
122238
123101
  case 0:
@@ -122240,7 +123103,21 @@ function _validateRule() {
122240
123103
  // https://github.com/react-component/field-form/issues/316
122241
123104
  // https://github.com/react-component/field-form/issues/313
122242
123105
 
122243
- delete cloneRule.ruleIndex; // We should special handle array validate
123106
+ delete cloneRule.ruleIndex;
123107
+
123108
+ if (cloneRule.validator) {
123109
+ originValidator = cloneRule.validator;
123110
+
123111
+ cloneRule.validator = function () {
123112
+ try {
123113
+ return originValidator.apply(void 0, arguments);
123114
+ } catch (error) {
123115
+ console.error(error);
123116
+ return Promise.reject(CODE_LOGIC_ERROR);
123117
+ }
123118
+ };
123119
+ } // We should special handle array validate
123120
+
122244
123121
 
122245
123122
  subRuleField = null;
122246
123123
 
@@ -122253,52 +123130,49 @@ function _validateRule() {
122253
123130
  messages = Object(_valueUtil__WEBPACK_IMPORTED_MODULE_9__["setValues"])({}, _messages__WEBPACK_IMPORTED_MODULE_8__["defaultValidateMessages"], options.validateMessages);
122254
123131
  validator.messages(messages);
122255
123132
  result = [];
122256
- _context2.prev = 8;
122257
- _context2.next = 11;
123133
+ _context2.prev = 9;
123134
+ _context2.next = 12;
122258
123135
  return Promise.resolve(validator.validate(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, name, value), Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, options)));
122259
123136
 
122260
- case 11:
122261
- _context2.next = 16;
123137
+ case 12:
123138
+ _context2.next = 17;
122262
123139
  break;
122263
123140
 
122264
- case 13:
122265
- _context2.prev = 13;
122266
- _context2.t0 = _context2["catch"](8);
123141
+ case 14:
123142
+ _context2.prev = 14;
123143
+ _context2.t0 = _context2["catch"](9);
122267
123144
 
122268
123145
  if (_context2.t0.errors) {
122269
123146
  result = _context2.t0.errors.map(function (_ref4, index) {
122270
123147
  var message = _ref4.message;
122271
- return (// Wrap ReactNode with `key`
122272
-
122273
- /*#__PURE__*/
122274
- react__WEBPACK_IMPORTED_MODULE_6__["isValidElement"](message) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"](message, {
122275
- key: "error_".concat(index)
122276
- }) : message
122277
- );
123148
+ var mergedMessage = message === CODE_LOGIC_ERROR ? messages.default : message;
123149
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["isValidElement"](mergedMessage) ?
123150
+ /*#__PURE__*/
123151
+ // Wrap ReactNode with `key`
123152
+ react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"](mergedMessage, {
123153
+ key: "error_".concat(index)
123154
+ }) : mergedMessage;
122278
123155
  });
122279
- } else {
122280
- console.error(_context2.t0);
122281
- result = [messages.default];
122282
123156
  }
122283
123157
 
122284
- case 16:
123158
+ case 17:
122285
123159
  if (!(!result.length && subRuleField)) {
122286
- _context2.next = 21;
123160
+ _context2.next = 22;
122287
123161
  break;
122288
123162
  }
122289
123163
 
122290
- _context2.next = 19;
123164
+ _context2.next = 20;
122291
123165
  return Promise.all(value.map(function (subValue, i) {
122292
123166
  return validateRule("".concat(name, ".").concat(i), subValue, subRuleField, options, messageVariables);
122293
123167
  }));
122294
123168
 
122295
- case 19:
123169
+ case 20:
122296
123170
  subResults = _context2.sent;
122297
123171
  return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
122298
123172
  return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(prev), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(errors));
122299
123173
  }, []));
122300
123174
 
122301
- case 21:
123175
+ case 22:
122302
123176
  // Replace message with variables
122303
123177
  kv = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, rule), {}, {
122304
123178
  name: name,
@@ -122313,12 +123187,12 @@ function _validateRule() {
122313
123187
  });
122314
123188
  return _context2.abrupt("return", fillVariableResult);
122315
123189
 
122316
- case 24:
123190
+ case 25:
122317
123191
  case "end":
122318
123192
  return _context2.stop();
122319
123193
  }
122320
123194
  }
122321
- }, _callee2, null, [[8, 13]]);
123195
+ }, _callee2, null, [[9, 14]]);
122322
123196
  }));
122323
123197
  return _validateRule.apply(this, arguments);
122324
123198
  }
@@ -122397,9 +123271,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
122397
123271
  if (validateFirst === true) {
122398
123272
  // >>>>> Validate by serialization
122399
123273
  summaryPromise = new Promise( /*#__PURE__*/function () {
122400
- var _ref3 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(resolve, reject) {
123274
+ var _ref3 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee(resolve, reject) {
122401
123275
  var i, rule, errors;
122402
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {
123276
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee$(_context) {
122403
123277
  while (1) {
122404
123278
  switch (_context.prev = _context.next) {
122405
123279
  case 0:
@@ -122478,8 +123352,8 @@ function finishOnAllFailed(_x8) {
122478
123352
  }
122479
123353
 
122480
123354
  function _finishOnAllFailed() {
122481
- _finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3(rulePromises) {
122482
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) {
123355
+ _finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee3(rulePromises) {
123356
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee3$(_context3) {
122483
123357
  while (1) {
122484
123358
  switch (_context3.prev = _context3.next) {
122485
123359
  case 0:
@@ -122506,9 +123380,9 @@ function finishOnFirstFailed(_x9) {
122506
123380
  }
122507
123381
 
122508
123382
  function _finishOnFirstFailed() {
122509
- _finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4(rulePromises) {
123383
+ _finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee4(rulePromises) {
122510
123384
  var count;
122511
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) {
123385
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee4$(_context4) {
122512
123386
  while (1) {
122513
123387
  switch (_context4.prev = _context4.next) {
122514
123388
  case 0:
@@ -124440,7 +125314,7 @@ __webpack_require__.r(__webpack_exports__);
124440
125314
 
124441
125315
 
124442
125316
 
124443
- var _excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
125317
+ var _excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
124444
125318
 
124445
125319
 
124446
125320
  // Use shared variable to save bundle size
@@ -124453,6 +125327,7 @@ function InternalItem(props, ref) {
124453
125327
  item = props.item,
124454
125328
  renderItem = props.renderItem,
124455
125329
  responsive = props.responsive,
125330
+ responsiveDisabled = props.responsiveDisabled,
124456
125331
  registerSize = props.registerSize,
124457
125332
  itemKey = props.itemKey,
124458
125333
  className = props.className,
@@ -124508,7 +125383,8 @@ function InternalItem(props, ref) {
124508
125383
  onResize: function onResize(_ref) {
124509
125384
  var offsetWidth = _ref.offsetWidth;
124510
125385
  internalRegisterSize(offsetWidth);
124511
- }
125386
+ },
125387
+ disabled: responsiveDisabled
124512
125388
  }, itemNode);
124513
125389
  }
124514
125390
 
@@ -124645,17 +125521,18 @@ function Overflow(props, ref) {
124645
125521
 
124646
125522
  var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
124647
125523
 
124648
- var isResponsive = data.length && maxCount === RESPONSIVE;
125524
+ var isResponsive = maxCount === RESPONSIVE;
125525
+ var shouldResponsive = data.length && isResponsive;
124649
125526
  var invalidate = maxCount === INVALIDATE;
124650
125527
  /**
124651
125528
  * When is `responsive`, we will always render rest node to get the real width of it for calculation
124652
125529
  */
124653
125530
 
124654
- var showRest = isResponsive || typeof maxCount === 'number' && data.length > maxCount;
125531
+ var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
124655
125532
  var mergedData = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
124656
125533
  var items = data;
124657
125534
 
124658
- if (isResponsive) {
125535
+ if (shouldResponsive) {
124659
125536
  if (containerWidth === null && fullySSR) {
124660
125537
  items = data;
124661
125538
  } else {
@@ -124666,14 +125543,14 @@ function Overflow(props, ref) {
124666
125543
  }
124667
125544
 
124668
125545
  return items;
124669
- }, [data, itemWidth, containerWidth, maxCount, isResponsive]);
125546
+ }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
124670
125547
  var omittedItems = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
124671
- if (isResponsive) {
125548
+ if (shouldResponsive) {
124672
125549
  return data.slice(mergedDisplayCount + 1);
124673
125550
  }
124674
125551
 
124675
125552
  return data.slice(mergedData.length);
124676
- }, [data, mergedData, isResponsive, mergedDisplayCount]); // ================================= Item =================================
125553
+ }, [data, mergedData, shouldResponsive, mergedDisplayCount]); // ================================= Item =================================
124677
125554
 
124678
125555
  var getKey = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (item, index) {
124679
125556
  var _ref;
@@ -124743,7 +125620,12 @@ function Overflow(props, ref) {
124743
125620
  }
124744
125621
 
124745
125622
  for (var i = 0; i < len; i += 1) {
124746
- var currentItemWidth = getItemWidth(i); // Break since data not ready
125623
+ var currentItemWidth = getItemWidth(i); // Fully will always render
125624
+
125625
+ if (fullySSR) {
125626
+ currentItemWidth = currentItemWidth || 0;
125627
+ } // Break since data not ready
125628
+
124747
125629
 
124748
125630
  if (currentItemWidth === undefined) {
124749
125631
  updateDisplayCount(i - 1, true);
@@ -124777,7 +125659,7 @@ function Overflow(props, ref) {
124777
125659
  var displayRest = restReady && !!omittedItems.length;
124778
125660
  var suffixStyle = {};
124779
125661
 
124780
- if (suffixFixedStart !== null && isResponsive) {
125662
+ if (suffixFixedStart !== null && shouldResponsive) {
124781
125663
  suffixStyle = {
124782
125664
  position: 'absolute',
124783
125665
  left: suffixFixedStart,
@@ -124787,7 +125669,7 @@ function Overflow(props, ref) {
124787
125669
 
124788
125670
  var itemSharedProps = {
124789
125671
  prefixCls: itemPrefixCls,
124790
- responsive: isResponsive,
125672
+ responsive: shouldResponsive,
124791
125673
  component: itemComponent,
124792
125674
  invalidate: invalidate
124793
125675
  }; // >>>>> Choice render fun by `renderRawItem`
@@ -124839,6 +125721,8 @@ function Overflow(props, ref) {
124839
125721
  style: style,
124840
125722
  ref: ref
124841
125723
  }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, itemSharedProps, {
125724
+ responsive: isResponsive,
125725
+ responsiveDisabled: !shouldResponsive,
124842
125726
  order: mergedDisplayCount,
124843
125727
  className: "".concat(itemPrefixCls, "-suffix"),
124844
125728
  registerSize: registerSuffixSize,
@@ -124848,7 +125732,8 @@ function Overflow(props, ref) {
124848
125732
 
124849
125733
  if (isResponsive) {
124850
125734
  overflowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_6__["default"], {
124851
- onResize: onOverflowResize
125735
+ onResize: onOverflowResize,
125736
+ disabled: !shouldResponsive
124852
125737
  }, overflowNode);
124853
125738
  }
124854
125739
 
@@ -129894,9 +130779,7 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129894
130779
  dropIndicatorRender = _this$props8.dropIndicatorRender,
129895
130780
  onContextMenu = _this$props8.onContextMenu,
129896
130781
  onScroll = _this$props8.onScroll,
129897
- direction = _this$props8.direction,
129898
- rootClassName = _this$props8.rootClassName,
129899
- rootStyle = _this$props8.rootStyle;
130782
+ direction = _this$props8.direction;
129900
130783
  var domProps = Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_13__["default"])(this.props, {
129901
130784
  aria: true,
129902
130785
  data: true
@@ -129958,8 +130841,7 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129958
130841
  }
129959
130842
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
129960
130843
  role: "tree",
129961
- className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, className, rootClassName, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-show-line"), showLine), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-focused"), focused), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-active-focused"), activeKey !== null), _classNames)),
129962
- style: rootStyle
130844
+ className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-show-line"), showLine), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-focused"), focused), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-active-focused"), activeKey !== null), _classNames))
129963
130845
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_NodeList__WEBPACK_IMPORTED_MODULE_18__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
129964
130846
  ref: this.listRef,
129965
130847
  prefixCls: prefixCls,
@@ -131887,7 +132769,8 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
131887
132769
  popupStyle = _props$mobile.popupStyle,
131888
132770
  _props$mobile$popupMo = _props$mobile.popupMotion,
131889
132771
  popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
131890
- popupRender = _props$mobile.popupRender;
132772
+ popupRender = _props$mobile.popupRender,
132773
+ onClick = props.onClick;
131891
132774
  var elementRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](); // ========================= Refs =========================
131892
132775
 
131893
132776
  react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
@@ -131927,6 +132810,7 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
131927
132810
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
131928
132811
  ref: motionRef,
131929
132812
  className: mergedClassName,
132813
+ onClick: onClick,
131930
132814
  style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
131931
132815
  }, childNode);
131932
132816
  });
@@ -131988,7 +132872,8 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
131988
132872
  onMouseEnter = props.onMouseEnter,
131989
132873
  onMouseLeave = props.onMouseLeave,
131990
132874
  onMouseDown = props.onMouseDown,
131991
- onTouchStart = props.onTouchStart;
132875
+ onTouchStart = props.onTouchStart,
132876
+ onClick = props.onClick;
131992
132877
  var alignRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
131993
132878
  var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
131994
132879
 
@@ -132015,13 +132900,27 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132015
132900
  status = _useVisibleStatus2[0],
132016
132901
  goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
132017
132902
 
132903
+ /**
132904
+ * `alignedClassName` may modify `source` size,
132905
+ * which means one time align may not move to the correct position at once.
132906
+ *
132907
+ * We will reset `alignTimes` for each status switch to `alignPre`
132908
+ * and let `rc-align` to align for multiple times to ensure get final stable place.
132909
+ * Currently we mark `alignTimes < 2` repeat align, it will increase if user report for align issue.
132910
+ */
132018
132911
 
132019
- var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(null),
132912
+
132913
+ var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(0),
132020
132914
  _useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2),
132021
- alignInfo = _useState4[0],
132022
- setAlignInfo = _useState4[1];
132915
+ alignTimes = _useState4[0],
132916
+ setAlignTimes = _useState4[1];
132023
132917
 
132024
- var prepareResolveRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(); // `target` on `rc-align` can accept as a function to get the bind element or a point.
132918
+ var prepareResolveRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
132919
+ Object(rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_5__["default"])(function () {
132920
+ if (status === 'alignPre') {
132921
+ setAlignTimes(0);
132922
+ }
132923
+ }, [status]); // `target` on `rc-align` can accept as a function to get the bind element or a point.
132025
132924
  // ref: https://www.npmjs.com/package/rc-align
132026
132925
 
132027
132926
  function getAlignTarget() {
@@ -132043,9 +132942,12 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132043
132942
 
132044
132943
  if (alignedClassName !== nextAlignedClassName) {
132045
132944
  setAlignedClassName(nextAlignedClassName);
132046
- }
132945
+ } // We will retry multi times to make sure that the element has been align in the right position.
132946
+
132047
132947
 
132048
- setAlignInfo(matchAlign);
132948
+ setAlignTimes(function (val) {
132949
+ return val + 1;
132950
+ });
132049
132951
 
132050
132952
  if (status === 'align') {
132051
132953
  onAlign === null || onAlign === void 0 ? void 0 : onAlign(popupDomNode, matchAlign);
@@ -132054,10 +132956,9 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132054
132956
 
132055
132957
 
132056
132958
  Object(rc_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_5__["default"])(function () {
132057
- if (alignInfo && status === 'align') {
132058
- var nextAlignedClassName = getClassNameFromAlign(alignInfo); // Repeat until not more align needed
132059
-
132060
- if (alignedClassName !== nextAlignedClassName) {
132959
+ if (status === 'align') {
132960
+ // Repeat until not more align needed
132961
+ if (alignTimes < 2) {
132061
132962
  forceAlign();
132062
132963
  } else {
132063
132964
  goNextStatus(function () {
@@ -132067,7 +132968,7 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132067
132968
  });
132068
132969
  }
132069
132970
  }
132070
- }, [alignInfo]); // ======================== Motion ========================
132971
+ }, [alignTimes]); // ======================== Motion ========================
132071
132972
 
132072
132973
  var motion = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_9__["getMotion"])(props));
132073
132974
 
@@ -132105,7 +133006,9 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132105
133006
  var mergedStyle = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, stretchStyle), {}, {
132106
133007
  zIndex: zIndex,
132107
133008
  opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
132108
- pointerEvents: status === 'stable' ? undefined : 'none'
133009
+ // Cannot interact with disappearing elements
133010
+ // https://github.com/ant-design/ant-design/issues/35051#issuecomment-1101340714
133011
+ pointerEvents: !visible && status !== 'stable' ? 'none' : undefined
132109
133012
  }, style); // Align status
132110
133013
 
132111
133014
 
@@ -132151,6 +133054,7 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132151
133054
  onMouseLeave: onMouseLeave,
132152
133055
  onMouseDownCapture: onMouseDown,
132153
133056
  onTouchStartCapture: onTouchStart,
133057
+ onClick: onClick,
132154
133058
  style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
132155
133059
  }, childNode));
132156
133060
  });
@@ -132299,8 +133203,7 @@ __webpack_require__.r(__webpack_exports__);
132299
133203
 
132300
133204
  "use strict";
132301
133205
  __webpack_require__.r(__webpack_exports__);
132302
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
132303
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
133206
+ /* harmony import */ var _babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");
132304
133207
  /* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
132305
133208
  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
132306
133209
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
@@ -132313,7 +133216,7 @@ __webpack_require__.r(__webpack_exports__);
132313
133216
 
132314
133217
 
132315
133218
 
132316
- var StatusQueue = ['measure', 'align', null, 'motion'];
133219
+ var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
132317
133220
  /* harmony default export */ __webpack_exports__["default"] = (function (visible, doMeasure) {
132318
133221
  var _useState = Object(rc_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_5__["default"])(null),
132319
133222
  _useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
@@ -132366,9 +133269,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
132366
133269
  }
132367
133270
 
132368
133271
  if (status) {
132369
- rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
133272
+ rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {
132370
133273
  var index, nextStatus;
132371
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
133274
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {
132372
133275
  while (1) {
132373
133276
  switch (_context.prev = _context.next) {
132374
133277
  case 0:
@@ -132727,7 +133630,8 @@ function generateTrigger(PortalComponent) {
132727
133630
  stretch = _this$props2.stretch,
132728
133631
  alignPoint = _this$props2.alignPoint,
132729
133632
  mobile = _this$props2.mobile,
132730
- forceRender = _this$props2.forceRender;
133633
+ forceRender = _this$props2.forceRender,
133634
+ onPopupClick = _this$props2.onPopupClick;
132731
133635
  var _this$state = _this.state,
132732
133636
  popupVisible = _this$state.popupVisible,
132733
133637
  point = _this$state.point;
@@ -132769,7 +133673,8 @@ function generateTrigger(PortalComponent) {
132769
133673
  ref: _this.popupRef,
132770
133674
  motion: popupMotion,
132771
133675
  mobile: mobile,
132772
- forceRender: forceRender
133676
+ forceRender: forceRender,
133677
+ onClick: onPopupClick
132773
133678
  }), typeof popup === 'function' ? popup() : popup);
132774
133679
  };
132775
133680
 
@@ -133357,7 +134262,7 @@ __webpack_require__.r(__webpack_exports__);
133357
134262
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toArray; });
133358
134263
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
133359
134264
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
133360
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
134265
+ /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
133361
134266
  /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
133362
134267
 
133363
134268
 
@@ -135373,7 +136278,7 @@ __webpack_require__.r(__webpack_exports__);
135373
136278
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useComposeRef", function() { return useComposeRef; });
135374
136279
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportRef", function() { return supportRef; });
135375
136280
  /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
135376
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
136281
+ /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
135377
136282
  /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
135378
136283
  /* harmony import */ var _hooks_useMemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/useMemo */ "./node_modules/rc-util/es/hooks/useMemo.js");
135379
136284
 
@@ -135670,6 +136575,216 @@ function noteOnce(valid, message) {
135670
136575
  /* harmony default export */ __webpack_exports__["default"] = (warningOnce);
135671
136576
  /* eslint-enable */
135672
136577
 
136578
+ /***/ }),
136579
+
136580
+ /***/ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js":
136581
+ /*!********************************************************************************!*\
136582
+ !*** ./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js ***!
136583
+ \********************************************************************************/
136584
+ /*! no static exports found */
136585
+ /***/ (function(module, exports, __webpack_require__) {
136586
+
136587
+ "use strict";
136588
+ /** @license React v16.13.1
136589
+ * react-is.development.js
136590
+ *
136591
+ * Copyright (c) Facebook, Inc. and its affiliates.
136592
+ *
136593
+ * This source code is licensed under the MIT license found in the
136594
+ * LICENSE file in the root directory of this source tree.
136595
+ */
136596
+
136597
+
136598
+
136599
+
136600
+
136601
+ if (true) {
136602
+ (function() {
136603
+ 'use strict';
136604
+
136605
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
136606
+ // nor polyfill, then a plain number is used for performance.
136607
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
136608
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
136609
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
136610
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
136611
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
136612
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
136613
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
136614
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
136615
+ // (unstable) APIs that have been removed. Can we remove the symbols?
136616
+
136617
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
136618
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
136619
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
136620
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
136621
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
136622
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
136623
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
136624
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
136625
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
136626
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
136627
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
136628
+
136629
+ function isValidElementType(type) {
136630
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
136631
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
136632
+ }
136633
+
136634
+ function typeOf(object) {
136635
+ if (typeof object === 'object' && object !== null) {
136636
+ var $$typeof = object.$$typeof;
136637
+
136638
+ switch ($$typeof) {
136639
+ case REACT_ELEMENT_TYPE:
136640
+ var type = object.type;
136641
+
136642
+ switch (type) {
136643
+ case REACT_ASYNC_MODE_TYPE:
136644
+ case REACT_CONCURRENT_MODE_TYPE:
136645
+ case REACT_FRAGMENT_TYPE:
136646
+ case REACT_PROFILER_TYPE:
136647
+ case REACT_STRICT_MODE_TYPE:
136648
+ case REACT_SUSPENSE_TYPE:
136649
+ return type;
136650
+
136651
+ default:
136652
+ var $$typeofType = type && type.$$typeof;
136653
+
136654
+ switch ($$typeofType) {
136655
+ case REACT_CONTEXT_TYPE:
136656
+ case REACT_FORWARD_REF_TYPE:
136657
+ case REACT_LAZY_TYPE:
136658
+ case REACT_MEMO_TYPE:
136659
+ case REACT_PROVIDER_TYPE:
136660
+ return $$typeofType;
136661
+
136662
+ default:
136663
+ return $$typeof;
136664
+ }
136665
+
136666
+ }
136667
+
136668
+ case REACT_PORTAL_TYPE:
136669
+ return $$typeof;
136670
+ }
136671
+ }
136672
+
136673
+ return undefined;
136674
+ } // AsyncMode is deprecated along with isAsyncMode
136675
+
136676
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
136677
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
136678
+ var ContextConsumer = REACT_CONTEXT_TYPE;
136679
+ var ContextProvider = REACT_PROVIDER_TYPE;
136680
+ var Element = REACT_ELEMENT_TYPE;
136681
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
136682
+ var Fragment = REACT_FRAGMENT_TYPE;
136683
+ var Lazy = REACT_LAZY_TYPE;
136684
+ var Memo = REACT_MEMO_TYPE;
136685
+ var Portal = REACT_PORTAL_TYPE;
136686
+ var Profiler = REACT_PROFILER_TYPE;
136687
+ var StrictMode = REACT_STRICT_MODE_TYPE;
136688
+ var Suspense = REACT_SUSPENSE_TYPE;
136689
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
136690
+
136691
+ function isAsyncMode(object) {
136692
+ {
136693
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
136694
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
136695
+
136696
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
136697
+ }
136698
+ }
136699
+
136700
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
136701
+ }
136702
+ function isConcurrentMode(object) {
136703
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
136704
+ }
136705
+ function isContextConsumer(object) {
136706
+ return typeOf(object) === REACT_CONTEXT_TYPE;
136707
+ }
136708
+ function isContextProvider(object) {
136709
+ return typeOf(object) === REACT_PROVIDER_TYPE;
136710
+ }
136711
+ function isElement(object) {
136712
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
136713
+ }
136714
+ function isForwardRef(object) {
136715
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
136716
+ }
136717
+ function isFragment(object) {
136718
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
136719
+ }
136720
+ function isLazy(object) {
136721
+ return typeOf(object) === REACT_LAZY_TYPE;
136722
+ }
136723
+ function isMemo(object) {
136724
+ return typeOf(object) === REACT_MEMO_TYPE;
136725
+ }
136726
+ function isPortal(object) {
136727
+ return typeOf(object) === REACT_PORTAL_TYPE;
136728
+ }
136729
+ function isProfiler(object) {
136730
+ return typeOf(object) === REACT_PROFILER_TYPE;
136731
+ }
136732
+ function isStrictMode(object) {
136733
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
136734
+ }
136735
+ function isSuspense(object) {
136736
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
136737
+ }
136738
+
136739
+ exports.AsyncMode = AsyncMode;
136740
+ exports.ConcurrentMode = ConcurrentMode;
136741
+ exports.ContextConsumer = ContextConsumer;
136742
+ exports.ContextProvider = ContextProvider;
136743
+ exports.Element = Element;
136744
+ exports.ForwardRef = ForwardRef;
136745
+ exports.Fragment = Fragment;
136746
+ exports.Lazy = Lazy;
136747
+ exports.Memo = Memo;
136748
+ exports.Portal = Portal;
136749
+ exports.Profiler = Profiler;
136750
+ exports.StrictMode = StrictMode;
136751
+ exports.Suspense = Suspense;
136752
+ exports.isAsyncMode = isAsyncMode;
136753
+ exports.isConcurrentMode = isConcurrentMode;
136754
+ exports.isContextConsumer = isContextConsumer;
136755
+ exports.isContextProvider = isContextProvider;
136756
+ exports.isElement = isElement;
136757
+ exports.isForwardRef = isForwardRef;
136758
+ exports.isFragment = isFragment;
136759
+ exports.isLazy = isLazy;
136760
+ exports.isMemo = isMemo;
136761
+ exports.isPortal = isPortal;
136762
+ exports.isProfiler = isProfiler;
136763
+ exports.isStrictMode = isStrictMode;
136764
+ exports.isSuspense = isSuspense;
136765
+ exports.isValidElementType = isValidElementType;
136766
+ exports.typeOf = typeOf;
136767
+ })();
136768
+ }
136769
+
136770
+
136771
+ /***/ }),
136772
+
136773
+ /***/ "./node_modules/rc-util/node_modules/react-is/index.js":
136774
+ /*!*************************************************************!*\
136775
+ !*** ./node_modules/rc-util/node_modules/react-is/index.js ***!
136776
+ \*************************************************************/
136777
+ /*! no static exports found */
136778
+ /***/ (function(module, exports, __webpack_require__) {
136779
+
136780
+ "use strict";
136781
+
136782
+
136783
+ if (false) {} else {
136784
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js");
136785
+ }
136786
+
136787
+
135673
136788
  /***/ }),
135674
136789
 
135675
136790
  /***/ "./node_modules/rc-virtual-list/es/Filler.js":
@@ -136272,16 +137387,19 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
136272
137387
  };
136273
137388
 
136274
137389
  _this.removeEvents = function () {
137390
+ var _this$scrollbarRef$cu;
137391
+
136275
137392
  window.removeEventListener('mousemove', _this.onMouseMove);
136276
137393
  window.removeEventListener('mouseup', _this.onMouseUp);
137394
+ (_this$scrollbarRef$cu = _this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', _this.onScrollbarTouchStart);
136277
137395
 
136278
- _this.scrollbarRef.current.removeEventListener('touchstart', _this.onScrollbarTouchStart);
137396
+ if (_this.thumbRef.current) {
137397
+ _this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown);
136279
137398
 
136280
- _this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown);
137399
+ _this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove);
136281
137400
 
136282
- _this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove);
136283
-
136284
- _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp);
137401
+ _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp);
137402
+ }
136285
137403
 
136286
137404
  rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"].cancel(_this.moveRaf);
136287
137405
  };
@@ -137138,981 +138256,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
137138
138256
  var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
137139
138257
  /* harmony default export */ __webpack_exports__["default"] = (isFF);
137140
138258
 
137141
- /***/ }),
137142
-
137143
- /***/ "./node_modules/react-is/cjs/react-is.development.js":
137144
- /*!***********************************************************!*\
137145
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
137146
- \***********************************************************/
137147
- /*! no static exports found */
137148
- /***/ (function(module, exports, __webpack_require__) {
137149
-
137150
- "use strict";
137151
- /** @license React v16.13.1
137152
- * react-is.development.js
137153
- *
137154
- * Copyright (c) Facebook, Inc. and its affiliates.
137155
- *
137156
- * This source code is licensed under the MIT license found in the
137157
- * LICENSE file in the root directory of this source tree.
137158
- */
137159
-
137160
-
137161
-
137162
-
137163
-
137164
- if (true) {
137165
- (function() {
137166
- 'use strict';
137167
-
137168
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
137169
- // nor polyfill, then a plain number is used for performance.
137170
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
137171
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
137172
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
137173
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
137174
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
137175
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
137176
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
137177
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
137178
- // (unstable) APIs that have been removed. Can we remove the symbols?
137179
-
137180
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
137181
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
137182
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
137183
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
137184
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
137185
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
137186
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
137187
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
137188
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
137189
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
137190
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
137191
-
137192
- function isValidElementType(type) {
137193
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137194
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
137195
- }
137196
-
137197
- function typeOf(object) {
137198
- if (typeof object === 'object' && object !== null) {
137199
- var $$typeof = object.$$typeof;
137200
-
137201
- switch ($$typeof) {
137202
- case REACT_ELEMENT_TYPE:
137203
- var type = object.type;
137204
-
137205
- switch (type) {
137206
- case REACT_ASYNC_MODE_TYPE:
137207
- case REACT_CONCURRENT_MODE_TYPE:
137208
- case REACT_FRAGMENT_TYPE:
137209
- case REACT_PROFILER_TYPE:
137210
- case REACT_STRICT_MODE_TYPE:
137211
- case REACT_SUSPENSE_TYPE:
137212
- return type;
137213
-
137214
- default:
137215
- var $$typeofType = type && type.$$typeof;
137216
-
137217
- switch ($$typeofType) {
137218
- case REACT_CONTEXT_TYPE:
137219
- case REACT_FORWARD_REF_TYPE:
137220
- case REACT_LAZY_TYPE:
137221
- case REACT_MEMO_TYPE:
137222
- case REACT_PROVIDER_TYPE:
137223
- return $$typeofType;
137224
-
137225
- default:
137226
- return $$typeof;
137227
- }
137228
-
137229
- }
137230
-
137231
- case REACT_PORTAL_TYPE:
137232
- return $$typeof;
137233
- }
137234
- }
137235
-
137236
- return undefined;
137237
- } // AsyncMode is deprecated along with isAsyncMode
137238
-
137239
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
137240
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
137241
- var ContextConsumer = REACT_CONTEXT_TYPE;
137242
- var ContextProvider = REACT_PROVIDER_TYPE;
137243
- var Element = REACT_ELEMENT_TYPE;
137244
- var ForwardRef = REACT_FORWARD_REF_TYPE;
137245
- var Fragment = REACT_FRAGMENT_TYPE;
137246
- var Lazy = REACT_LAZY_TYPE;
137247
- var Memo = REACT_MEMO_TYPE;
137248
- var Portal = REACT_PORTAL_TYPE;
137249
- var Profiler = REACT_PROFILER_TYPE;
137250
- var StrictMode = REACT_STRICT_MODE_TYPE;
137251
- var Suspense = REACT_SUSPENSE_TYPE;
137252
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
137253
-
137254
- function isAsyncMode(object) {
137255
- {
137256
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
137257
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
137258
-
137259
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
137260
- }
137261
- }
137262
-
137263
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
137264
- }
137265
- function isConcurrentMode(object) {
137266
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
137267
- }
137268
- function isContextConsumer(object) {
137269
- return typeOf(object) === REACT_CONTEXT_TYPE;
137270
- }
137271
- function isContextProvider(object) {
137272
- return typeOf(object) === REACT_PROVIDER_TYPE;
137273
- }
137274
- function isElement(object) {
137275
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
137276
- }
137277
- function isForwardRef(object) {
137278
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
137279
- }
137280
- function isFragment(object) {
137281
- return typeOf(object) === REACT_FRAGMENT_TYPE;
137282
- }
137283
- function isLazy(object) {
137284
- return typeOf(object) === REACT_LAZY_TYPE;
137285
- }
137286
- function isMemo(object) {
137287
- return typeOf(object) === REACT_MEMO_TYPE;
137288
- }
137289
- function isPortal(object) {
137290
- return typeOf(object) === REACT_PORTAL_TYPE;
137291
- }
137292
- function isProfiler(object) {
137293
- return typeOf(object) === REACT_PROFILER_TYPE;
137294
- }
137295
- function isStrictMode(object) {
137296
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
137297
- }
137298
- function isSuspense(object) {
137299
- return typeOf(object) === REACT_SUSPENSE_TYPE;
137300
- }
137301
-
137302
- exports.AsyncMode = AsyncMode;
137303
- exports.ConcurrentMode = ConcurrentMode;
137304
- exports.ContextConsumer = ContextConsumer;
137305
- exports.ContextProvider = ContextProvider;
137306
- exports.Element = Element;
137307
- exports.ForwardRef = ForwardRef;
137308
- exports.Fragment = Fragment;
137309
- exports.Lazy = Lazy;
137310
- exports.Memo = Memo;
137311
- exports.Portal = Portal;
137312
- exports.Profiler = Profiler;
137313
- exports.StrictMode = StrictMode;
137314
- exports.Suspense = Suspense;
137315
- exports.isAsyncMode = isAsyncMode;
137316
- exports.isConcurrentMode = isConcurrentMode;
137317
- exports.isContextConsumer = isContextConsumer;
137318
- exports.isContextProvider = isContextProvider;
137319
- exports.isElement = isElement;
137320
- exports.isForwardRef = isForwardRef;
137321
- exports.isFragment = isFragment;
137322
- exports.isLazy = isLazy;
137323
- exports.isMemo = isMemo;
137324
- exports.isPortal = isPortal;
137325
- exports.isProfiler = isProfiler;
137326
- exports.isStrictMode = isStrictMode;
137327
- exports.isSuspense = isSuspense;
137328
- exports.isValidElementType = isValidElementType;
137329
- exports.typeOf = typeOf;
137330
- })();
137331
- }
137332
-
137333
-
137334
- /***/ }),
137335
-
137336
- /***/ "./node_modules/react-is/index.js":
137337
- /*!****************************************!*\
137338
- !*** ./node_modules/react-is/index.js ***!
137339
- \****************************************/
137340
- /*! no static exports found */
137341
- /***/ (function(module, exports, __webpack_require__) {
137342
-
137343
- "use strict";
137344
-
137345
-
137346
- if (false) {} else {
137347
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
137348
- }
137349
-
137350
-
137351
- /***/ }),
137352
-
137353
- /***/ "./node_modules/regenerator-runtime/runtime.js":
137354
- /*!*****************************************************!*\
137355
- !*** ./node_modules/regenerator-runtime/runtime.js ***!
137356
- \*****************************************************/
137357
- /*! no static exports found */
137358
- /***/ (function(module, exports, __webpack_require__) {
137359
-
137360
- /**
137361
- * Copyright (c) 2014-present, Facebook, Inc.
137362
- *
137363
- * This source code is licensed under the MIT license found in the
137364
- * LICENSE file in the root directory of this source tree.
137365
- */
137366
-
137367
- var runtime = (function (exports) {
137368
- "use strict";
137369
-
137370
- var Op = Object.prototype;
137371
- var hasOwn = Op.hasOwnProperty;
137372
- var undefined; // More compressible than void 0.
137373
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
137374
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
137375
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
137376
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
137377
-
137378
- function define(obj, key, value) {
137379
- Object.defineProperty(obj, key, {
137380
- value: value,
137381
- enumerable: true,
137382
- configurable: true,
137383
- writable: true
137384
- });
137385
- return obj[key];
137386
- }
137387
- try {
137388
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
137389
- define({}, "");
137390
- } catch (err) {
137391
- define = function(obj, key, value) {
137392
- return obj[key] = value;
137393
- };
137394
- }
137395
-
137396
- function wrap(innerFn, outerFn, self, tryLocsList) {
137397
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
137398
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
137399
- var generator = Object.create(protoGenerator.prototype);
137400
- var context = new Context(tryLocsList || []);
137401
-
137402
- // The ._invoke method unifies the implementations of the .next,
137403
- // .throw, and .return methods.
137404
- generator._invoke = makeInvokeMethod(innerFn, self, context);
137405
-
137406
- return generator;
137407
- }
137408
- exports.wrap = wrap;
137409
-
137410
- // Try/catch helper to minimize deoptimizations. Returns a completion
137411
- // record like context.tryEntries[i].completion. This interface could
137412
- // have been (and was previously) designed to take a closure to be
137413
- // invoked without arguments, but in all the cases we care about we
137414
- // already have an existing method we want to call, so there's no need
137415
- // to create a new function object. We can even get away with assuming
137416
- // the method takes exactly one argument, since that happens to be true
137417
- // in every case, so we don't have to touch the arguments object. The
137418
- // only additional allocation required is the completion record, which
137419
- // has a stable shape and so hopefully should be cheap to allocate.
137420
- function tryCatch(fn, obj, arg) {
137421
- try {
137422
- return { type: "normal", arg: fn.call(obj, arg) };
137423
- } catch (err) {
137424
- return { type: "throw", arg: err };
137425
- }
137426
- }
137427
-
137428
- var GenStateSuspendedStart = "suspendedStart";
137429
- var GenStateSuspendedYield = "suspendedYield";
137430
- var GenStateExecuting = "executing";
137431
- var GenStateCompleted = "completed";
137432
-
137433
- // Returning this object from the innerFn has the same effect as
137434
- // breaking out of the dispatch switch statement.
137435
- var ContinueSentinel = {};
137436
-
137437
- // Dummy constructor functions that we use as the .constructor and
137438
- // .constructor.prototype properties for functions that return Generator
137439
- // objects. For full spec compliance, you may wish to configure your
137440
- // minifier not to mangle the names of these two functions.
137441
- function Generator() {}
137442
- function GeneratorFunction() {}
137443
- function GeneratorFunctionPrototype() {}
137444
-
137445
- // This is a polyfill for %IteratorPrototype% for environments that
137446
- // don't natively support it.
137447
- var IteratorPrototype = {};
137448
- define(IteratorPrototype, iteratorSymbol, function () {
137449
- return this;
137450
- });
137451
-
137452
- var getProto = Object.getPrototypeOf;
137453
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
137454
- if (NativeIteratorPrototype &&
137455
- NativeIteratorPrototype !== Op &&
137456
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
137457
- // This environment has a native %IteratorPrototype%; use it instead
137458
- // of the polyfill.
137459
- IteratorPrototype = NativeIteratorPrototype;
137460
- }
137461
-
137462
- var Gp = GeneratorFunctionPrototype.prototype =
137463
- Generator.prototype = Object.create(IteratorPrototype);
137464
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
137465
- define(Gp, "constructor", GeneratorFunctionPrototype);
137466
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
137467
- GeneratorFunction.displayName = define(
137468
- GeneratorFunctionPrototype,
137469
- toStringTagSymbol,
137470
- "GeneratorFunction"
137471
- );
137472
-
137473
- // Helper for defining the .next, .throw, and .return methods of the
137474
- // Iterator interface in terms of a single ._invoke method.
137475
- function defineIteratorMethods(prototype) {
137476
- ["next", "throw", "return"].forEach(function(method) {
137477
- define(prototype, method, function(arg) {
137478
- return this._invoke(method, arg);
137479
- });
137480
- });
137481
- }
137482
-
137483
- exports.isGeneratorFunction = function(genFun) {
137484
- var ctor = typeof genFun === "function" && genFun.constructor;
137485
- return ctor
137486
- ? ctor === GeneratorFunction ||
137487
- // For the native GeneratorFunction constructor, the best we can
137488
- // do is to check its .name property.
137489
- (ctor.displayName || ctor.name) === "GeneratorFunction"
137490
- : false;
137491
- };
137492
-
137493
- exports.mark = function(genFun) {
137494
- if (Object.setPrototypeOf) {
137495
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
137496
- } else {
137497
- genFun.__proto__ = GeneratorFunctionPrototype;
137498
- define(genFun, toStringTagSymbol, "GeneratorFunction");
137499
- }
137500
- genFun.prototype = Object.create(Gp);
137501
- return genFun;
137502
- };
137503
-
137504
- // Within the body of any async function, `await x` is transformed to
137505
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
137506
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
137507
- // meant to be awaited.
137508
- exports.awrap = function(arg) {
137509
- return { __await: arg };
137510
- };
137511
-
137512
- function AsyncIterator(generator, PromiseImpl) {
137513
- function invoke(method, arg, resolve, reject) {
137514
- var record = tryCatch(generator[method], generator, arg);
137515
- if (record.type === "throw") {
137516
- reject(record.arg);
137517
- } else {
137518
- var result = record.arg;
137519
- var value = result.value;
137520
- if (value &&
137521
- typeof value === "object" &&
137522
- hasOwn.call(value, "__await")) {
137523
- return PromiseImpl.resolve(value.__await).then(function(value) {
137524
- invoke("next", value, resolve, reject);
137525
- }, function(err) {
137526
- invoke("throw", err, resolve, reject);
137527
- });
137528
- }
137529
-
137530
- return PromiseImpl.resolve(value).then(function(unwrapped) {
137531
- // When a yielded Promise is resolved, its final value becomes
137532
- // the .value of the Promise<{value,done}> result for the
137533
- // current iteration.
137534
- result.value = unwrapped;
137535
- resolve(result);
137536
- }, function(error) {
137537
- // If a rejected Promise was yielded, throw the rejection back
137538
- // into the async generator function so it can be handled there.
137539
- return invoke("throw", error, resolve, reject);
137540
- });
137541
- }
137542
- }
137543
-
137544
- var previousPromise;
137545
-
137546
- function enqueue(method, arg) {
137547
- function callInvokeWithMethodAndArg() {
137548
- return new PromiseImpl(function(resolve, reject) {
137549
- invoke(method, arg, resolve, reject);
137550
- });
137551
- }
137552
-
137553
- return previousPromise =
137554
- // If enqueue has been called before, then we want to wait until
137555
- // all previous Promises have been resolved before calling invoke,
137556
- // so that results are always delivered in the correct order. If
137557
- // enqueue has not been called before, then it is important to
137558
- // call invoke immediately, without waiting on a callback to fire,
137559
- // so that the async generator function has the opportunity to do
137560
- // any necessary setup in a predictable way. This predictability
137561
- // is why the Promise constructor synchronously invokes its
137562
- // executor callback, and why async functions synchronously
137563
- // execute code before the first await. Since we implement simple
137564
- // async functions in terms of async generators, it is especially
137565
- // important to get this right, even though it requires care.
137566
- previousPromise ? previousPromise.then(
137567
- callInvokeWithMethodAndArg,
137568
- // Avoid propagating failures to Promises returned by later
137569
- // invocations of the iterator.
137570
- callInvokeWithMethodAndArg
137571
- ) : callInvokeWithMethodAndArg();
137572
- }
137573
-
137574
- // Define the unified helper method that is used to implement .next,
137575
- // .throw, and .return (see defineIteratorMethods).
137576
- this._invoke = enqueue;
137577
- }
137578
-
137579
- defineIteratorMethods(AsyncIterator.prototype);
137580
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
137581
- return this;
137582
- });
137583
- exports.AsyncIterator = AsyncIterator;
137584
-
137585
- // Note that simple async functions are implemented on top of
137586
- // AsyncIterator objects; they just return a Promise for the value of
137587
- // the final result produced by the iterator.
137588
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
137589
- if (PromiseImpl === void 0) PromiseImpl = Promise;
137590
-
137591
- var iter = new AsyncIterator(
137592
- wrap(innerFn, outerFn, self, tryLocsList),
137593
- PromiseImpl
137594
- );
137595
-
137596
- return exports.isGeneratorFunction(outerFn)
137597
- ? iter // If outerFn is a generator, return the full iterator.
137598
- : iter.next().then(function(result) {
137599
- return result.done ? result.value : iter.next();
137600
- });
137601
- };
137602
-
137603
- function makeInvokeMethod(innerFn, self, context) {
137604
- var state = GenStateSuspendedStart;
137605
-
137606
- return function invoke(method, arg) {
137607
- if (state === GenStateExecuting) {
137608
- throw new Error("Generator is already running");
137609
- }
137610
-
137611
- if (state === GenStateCompleted) {
137612
- if (method === "throw") {
137613
- throw arg;
137614
- }
137615
-
137616
- // Be forgiving, per 25.3.3.3.3 of the spec:
137617
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
137618
- return doneResult();
137619
- }
137620
-
137621
- context.method = method;
137622
- context.arg = arg;
137623
-
137624
- while (true) {
137625
- var delegate = context.delegate;
137626
- if (delegate) {
137627
- var delegateResult = maybeInvokeDelegate(delegate, context);
137628
- if (delegateResult) {
137629
- if (delegateResult === ContinueSentinel) continue;
137630
- return delegateResult;
137631
- }
137632
- }
137633
-
137634
- if (context.method === "next") {
137635
- // Setting context._sent for legacy support of Babel's
137636
- // function.sent implementation.
137637
- context.sent = context._sent = context.arg;
137638
-
137639
- } else if (context.method === "throw") {
137640
- if (state === GenStateSuspendedStart) {
137641
- state = GenStateCompleted;
137642
- throw context.arg;
137643
- }
137644
-
137645
- context.dispatchException(context.arg);
137646
-
137647
- } else if (context.method === "return") {
137648
- context.abrupt("return", context.arg);
137649
- }
137650
-
137651
- state = GenStateExecuting;
137652
-
137653
- var record = tryCatch(innerFn, self, context);
137654
- if (record.type === "normal") {
137655
- // If an exception is thrown from innerFn, we leave state ===
137656
- // GenStateExecuting and loop back for another invocation.
137657
- state = context.done
137658
- ? GenStateCompleted
137659
- : GenStateSuspendedYield;
137660
-
137661
- if (record.arg === ContinueSentinel) {
137662
- continue;
137663
- }
137664
-
137665
- return {
137666
- value: record.arg,
137667
- done: context.done
137668
- };
137669
-
137670
- } else if (record.type === "throw") {
137671
- state = GenStateCompleted;
137672
- // Dispatch the exception by looping back around to the
137673
- // context.dispatchException(context.arg) call above.
137674
- context.method = "throw";
137675
- context.arg = record.arg;
137676
- }
137677
- }
137678
- };
137679
- }
137680
-
137681
- // Call delegate.iterator[context.method](context.arg) and handle the
137682
- // result, either by returning a { value, done } result from the
137683
- // delegate iterator, or by modifying context.method and context.arg,
137684
- // setting context.delegate to null, and returning the ContinueSentinel.
137685
- function maybeInvokeDelegate(delegate, context) {
137686
- var method = delegate.iterator[context.method];
137687
- if (method === undefined) {
137688
- // A .throw or .return when the delegate iterator has no .throw
137689
- // method always terminates the yield* loop.
137690
- context.delegate = null;
137691
-
137692
- if (context.method === "throw") {
137693
- // Note: ["return"] must be used for ES3 parsing compatibility.
137694
- if (delegate.iterator["return"]) {
137695
- // If the delegate iterator has a return method, give it a
137696
- // chance to clean up.
137697
- context.method = "return";
137698
- context.arg = undefined;
137699
- maybeInvokeDelegate(delegate, context);
137700
-
137701
- if (context.method === "throw") {
137702
- // If maybeInvokeDelegate(context) changed context.method from
137703
- // "return" to "throw", let that override the TypeError below.
137704
- return ContinueSentinel;
137705
- }
137706
- }
137707
-
137708
- context.method = "throw";
137709
- context.arg = new TypeError(
137710
- "The iterator does not provide a 'throw' method");
137711
- }
137712
-
137713
- return ContinueSentinel;
137714
- }
137715
-
137716
- var record = tryCatch(method, delegate.iterator, context.arg);
137717
-
137718
- if (record.type === "throw") {
137719
- context.method = "throw";
137720
- context.arg = record.arg;
137721
- context.delegate = null;
137722
- return ContinueSentinel;
137723
- }
137724
-
137725
- var info = record.arg;
137726
-
137727
- if (! info) {
137728
- context.method = "throw";
137729
- context.arg = new TypeError("iterator result is not an object");
137730
- context.delegate = null;
137731
- return ContinueSentinel;
137732
- }
137733
-
137734
- if (info.done) {
137735
- // Assign the result of the finished delegate to the temporary
137736
- // variable specified by delegate.resultName (see delegateYield).
137737
- context[delegate.resultName] = info.value;
137738
-
137739
- // Resume execution at the desired location (see delegateYield).
137740
- context.next = delegate.nextLoc;
137741
-
137742
- // If context.method was "throw" but the delegate handled the
137743
- // exception, let the outer generator proceed normally. If
137744
- // context.method was "next", forget context.arg since it has been
137745
- // "consumed" by the delegate iterator. If context.method was
137746
- // "return", allow the original .return call to continue in the
137747
- // outer generator.
137748
- if (context.method !== "return") {
137749
- context.method = "next";
137750
- context.arg = undefined;
137751
- }
137752
-
137753
- } else {
137754
- // Re-yield the result returned by the delegate method.
137755
- return info;
137756
- }
137757
-
137758
- // The delegate iterator is finished, so forget it and continue with
137759
- // the outer generator.
137760
- context.delegate = null;
137761
- return ContinueSentinel;
137762
- }
137763
-
137764
- // Define Generator.prototype.{next,throw,return} in terms of the
137765
- // unified ._invoke helper method.
137766
- defineIteratorMethods(Gp);
137767
-
137768
- define(Gp, toStringTagSymbol, "Generator");
137769
-
137770
- // A Generator should always return itself as the iterator object when the
137771
- // @@iterator function is called on it. Some browsers' implementations of the
137772
- // iterator prototype chain incorrectly implement this, causing the Generator
137773
- // object to not be returned from this call. This ensures that doesn't happen.
137774
- // See https://github.com/facebook/regenerator/issues/274 for more details.
137775
- define(Gp, iteratorSymbol, function() {
137776
- return this;
137777
- });
137778
-
137779
- define(Gp, "toString", function() {
137780
- return "[object Generator]";
137781
- });
137782
-
137783
- function pushTryEntry(locs) {
137784
- var entry = { tryLoc: locs[0] };
137785
-
137786
- if (1 in locs) {
137787
- entry.catchLoc = locs[1];
137788
- }
137789
-
137790
- if (2 in locs) {
137791
- entry.finallyLoc = locs[2];
137792
- entry.afterLoc = locs[3];
137793
- }
137794
-
137795
- this.tryEntries.push(entry);
137796
- }
137797
-
137798
- function resetTryEntry(entry) {
137799
- var record = entry.completion || {};
137800
- record.type = "normal";
137801
- delete record.arg;
137802
- entry.completion = record;
137803
- }
137804
-
137805
- function Context(tryLocsList) {
137806
- // The root entry object (effectively a try statement without a catch
137807
- // or a finally block) gives us a place to store values thrown from
137808
- // locations where there is no enclosing try statement.
137809
- this.tryEntries = [{ tryLoc: "root" }];
137810
- tryLocsList.forEach(pushTryEntry, this);
137811
- this.reset(true);
137812
- }
137813
-
137814
- exports.keys = function(object) {
137815
- var keys = [];
137816
- for (var key in object) {
137817
- keys.push(key);
137818
- }
137819
- keys.reverse();
137820
-
137821
- // Rather than returning an object with a next method, we keep
137822
- // things simple and return the next function itself.
137823
- return function next() {
137824
- while (keys.length) {
137825
- var key = keys.pop();
137826
- if (key in object) {
137827
- next.value = key;
137828
- next.done = false;
137829
- return next;
137830
- }
137831
- }
137832
-
137833
- // To avoid creating an additional object, we just hang the .value
137834
- // and .done properties off the next function object itself. This
137835
- // also ensures that the minifier will not anonymize the function.
137836
- next.done = true;
137837
- return next;
137838
- };
137839
- };
137840
-
137841
- function values(iterable) {
137842
- if (iterable) {
137843
- var iteratorMethod = iterable[iteratorSymbol];
137844
- if (iteratorMethod) {
137845
- return iteratorMethod.call(iterable);
137846
- }
137847
-
137848
- if (typeof iterable.next === "function") {
137849
- return iterable;
137850
- }
137851
-
137852
- if (!isNaN(iterable.length)) {
137853
- var i = -1, next = function next() {
137854
- while (++i < iterable.length) {
137855
- if (hasOwn.call(iterable, i)) {
137856
- next.value = iterable[i];
137857
- next.done = false;
137858
- return next;
137859
- }
137860
- }
137861
-
137862
- next.value = undefined;
137863
- next.done = true;
137864
-
137865
- return next;
137866
- };
137867
-
137868
- return next.next = next;
137869
- }
137870
- }
137871
-
137872
- // Return an iterator with no values.
137873
- return { next: doneResult };
137874
- }
137875
- exports.values = values;
137876
-
137877
- function doneResult() {
137878
- return { value: undefined, done: true };
137879
- }
137880
-
137881
- Context.prototype = {
137882
- constructor: Context,
137883
-
137884
- reset: function(skipTempReset) {
137885
- this.prev = 0;
137886
- this.next = 0;
137887
- // Resetting context._sent for legacy support of Babel's
137888
- // function.sent implementation.
137889
- this.sent = this._sent = undefined;
137890
- this.done = false;
137891
- this.delegate = null;
137892
-
137893
- this.method = "next";
137894
- this.arg = undefined;
137895
-
137896
- this.tryEntries.forEach(resetTryEntry);
137897
-
137898
- if (!skipTempReset) {
137899
- for (var name in this) {
137900
- // Not sure about the optimal order of these conditions:
137901
- if (name.charAt(0) === "t" &&
137902
- hasOwn.call(this, name) &&
137903
- !isNaN(+name.slice(1))) {
137904
- this[name] = undefined;
137905
- }
137906
- }
137907
- }
137908
- },
137909
-
137910
- stop: function() {
137911
- this.done = true;
137912
-
137913
- var rootEntry = this.tryEntries[0];
137914
- var rootRecord = rootEntry.completion;
137915
- if (rootRecord.type === "throw") {
137916
- throw rootRecord.arg;
137917
- }
137918
-
137919
- return this.rval;
137920
- },
137921
-
137922
- dispatchException: function(exception) {
137923
- if (this.done) {
137924
- throw exception;
137925
- }
137926
-
137927
- var context = this;
137928
- function handle(loc, caught) {
137929
- record.type = "throw";
137930
- record.arg = exception;
137931
- context.next = loc;
137932
-
137933
- if (caught) {
137934
- // If the dispatched exception was caught by a catch block,
137935
- // then let that catch block handle the exception normally.
137936
- context.method = "next";
137937
- context.arg = undefined;
137938
- }
137939
-
137940
- return !! caught;
137941
- }
137942
-
137943
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
137944
- var entry = this.tryEntries[i];
137945
- var record = entry.completion;
137946
-
137947
- if (entry.tryLoc === "root") {
137948
- // Exception thrown outside of any try block that could handle
137949
- // it, so set the completion value of the entire function to
137950
- // throw the exception.
137951
- return handle("end");
137952
- }
137953
-
137954
- if (entry.tryLoc <= this.prev) {
137955
- var hasCatch = hasOwn.call(entry, "catchLoc");
137956
- var hasFinally = hasOwn.call(entry, "finallyLoc");
137957
-
137958
- if (hasCatch && hasFinally) {
137959
- if (this.prev < entry.catchLoc) {
137960
- return handle(entry.catchLoc, true);
137961
- } else if (this.prev < entry.finallyLoc) {
137962
- return handle(entry.finallyLoc);
137963
- }
137964
-
137965
- } else if (hasCatch) {
137966
- if (this.prev < entry.catchLoc) {
137967
- return handle(entry.catchLoc, true);
137968
- }
137969
-
137970
- } else if (hasFinally) {
137971
- if (this.prev < entry.finallyLoc) {
137972
- return handle(entry.finallyLoc);
137973
- }
137974
-
137975
- } else {
137976
- throw new Error("try statement without catch or finally");
137977
- }
137978
- }
137979
- }
137980
- },
137981
-
137982
- abrupt: function(type, arg) {
137983
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
137984
- var entry = this.tryEntries[i];
137985
- if (entry.tryLoc <= this.prev &&
137986
- hasOwn.call(entry, "finallyLoc") &&
137987
- this.prev < entry.finallyLoc) {
137988
- var finallyEntry = entry;
137989
- break;
137990
- }
137991
- }
137992
-
137993
- if (finallyEntry &&
137994
- (type === "break" ||
137995
- type === "continue") &&
137996
- finallyEntry.tryLoc <= arg &&
137997
- arg <= finallyEntry.finallyLoc) {
137998
- // Ignore the finally entry if control is not jumping to a
137999
- // location outside the try/catch block.
138000
- finallyEntry = null;
138001
- }
138002
-
138003
- var record = finallyEntry ? finallyEntry.completion : {};
138004
- record.type = type;
138005
- record.arg = arg;
138006
-
138007
- if (finallyEntry) {
138008
- this.method = "next";
138009
- this.next = finallyEntry.finallyLoc;
138010
- return ContinueSentinel;
138011
- }
138012
-
138013
- return this.complete(record);
138014
- },
138015
-
138016
- complete: function(record, afterLoc) {
138017
- if (record.type === "throw") {
138018
- throw record.arg;
138019
- }
138020
-
138021
- if (record.type === "break" ||
138022
- record.type === "continue") {
138023
- this.next = record.arg;
138024
- } else if (record.type === "return") {
138025
- this.rval = this.arg = record.arg;
138026
- this.method = "return";
138027
- this.next = "end";
138028
- } else if (record.type === "normal" && afterLoc) {
138029
- this.next = afterLoc;
138030
- }
138031
-
138032
- return ContinueSentinel;
138033
- },
138034
-
138035
- finish: function(finallyLoc) {
138036
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138037
- var entry = this.tryEntries[i];
138038
- if (entry.finallyLoc === finallyLoc) {
138039
- this.complete(entry.completion, entry.afterLoc);
138040
- resetTryEntry(entry);
138041
- return ContinueSentinel;
138042
- }
138043
- }
138044
- },
138045
-
138046
- "catch": function(tryLoc) {
138047
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138048
- var entry = this.tryEntries[i];
138049
- if (entry.tryLoc === tryLoc) {
138050
- var record = entry.completion;
138051
- if (record.type === "throw") {
138052
- var thrown = record.arg;
138053
- resetTryEntry(entry);
138054
- }
138055
- return thrown;
138056
- }
138057
- }
138058
-
138059
- // The context.catch method must only be called with a location
138060
- // argument that corresponds to a known catch block.
138061
- throw new Error("illegal catch attempt");
138062
- },
138063
-
138064
- delegateYield: function(iterable, resultName, nextLoc) {
138065
- this.delegate = {
138066
- iterator: values(iterable),
138067
- resultName: resultName,
138068
- nextLoc: nextLoc
138069
- };
138070
-
138071
- if (this.method === "next") {
138072
- // Deliberately forget the last sent value so that we don't
138073
- // accidentally pass it on to the delegate.
138074
- this.arg = undefined;
138075
- }
138076
-
138077
- return ContinueSentinel;
138078
- }
138079
- };
138080
-
138081
- // Regardless of whether this script is executing as a CommonJS module
138082
- // or not, return the runtime object so that we can declare the variable
138083
- // regeneratorRuntime in the outer scope, which allows this module to be
138084
- // injected easily by `bin/regenerator --include-runtime script.js`.
138085
- return exports;
138086
-
138087
- }(
138088
- // If this script is executing as a CommonJS module, use module.exports
138089
- // as the regeneratorRuntime namespace. Otherwise create a new empty
138090
- // object. Either way, the resulting object will be used to initialize
138091
- // the regeneratorRuntime variable at the top of this file.
138092
- true ? module.exports : undefined
138093
- ));
138094
-
138095
- try {
138096
- regeneratorRuntime = runtime;
138097
- } catch (accidentalStrictMode) {
138098
- // This module should not be running in strict mode, so the above
138099
- // assignment should always work unless something is misconfigured. Just
138100
- // in case runtime.js accidentally runs in strict mode, in modern engines
138101
- // we can explicitly access globalThis. In older engines we can escape
138102
- // strict mode using a global Function call. This could conceivably fail
138103
- // if a Content Security Policy forbids using Function, but in that case
138104
- // the proper solution is to fix the accidental strict mode problem. If
138105
- // you've misconfigured your bundler to force strict mode and applied a
138106
- // CSP to forbid Function, and you're not willing to fix either of those
138107
- // problems, please detail your unique predicament in a GitHub issue.
138108
- if (typeof globalThis === "object") {
138109
- globalThis.regeneratorRuntime = runtime;
138110
- } else {
138111
- Function("r", "regeneratorRuntime = r")(runtime);
138112
- }
138113
- }
138114
-
138115
-
138116
138259
  /***/ }),
138117
138260
 
138118
138261
  /***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":