@ant-design/pro-components 2.3.18 → 2.3.20

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.
@@ -10285,1460 +10285,6 @@ module.exports = merge;
10285
10285
 
10286
10286
  /***/ }),
10287
10287
 
10288
- /***/ 8493:
10289
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
10290
-
10291
- /**
10292
- * lodash (Custom Build) <https://lodash.com/>
10293
- * Build: `lodash modularize exports="npm" -o ./`
10294
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
10295
- * Released under MIT license <https://lodash.com/license>
10296
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
10297
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10298
- */
10299
-
10300
- /** Used as the size to enable large array optimizations. */
10301
- var LARGE_ARRAY_SIZE = 200;
10302
-
10303
- /** Used to stand-in for `undefined` hash values. */
10304
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
10305
-
10306
- /** Used as references for various `Number` constants. */
10307
- var INFINITY = 1 / 0,
10308
- MAX_SAFE_INTEGER = 9007199254740991;
10309
-
10310
- /** `Object#toString` result references. */
10311
- var argsTag = '[object Arguments]',
10312
- funcTag = '[object Function]',
10313
- genTag = '[object GeneratorFunction]',
10314
- symbolTag = '[object Symbol]';
10315
-
10316
- /**
10317
- * Used to match `RegExp`
10318
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
10319
- */
10320
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
10321
-
10322
- /** Used to detect host constructors (Safari). */
10323
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
10324
-
10325
- /** Used to detect unsigned integer values. */
10326
- var reIsUint = /^(?:0|[1-9]\d*)$/;
10327
-
10328
- /** Detect free variable `global` from Node.js. */
10329
- var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
10330
-
10331
- /** Detect free variable `self`. */
10332
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
10333
-
10334
- /** Used as a reference to the global object. */
10335
- var root = freeGlobal || freeSelf || Function('return this')();
10336
-
10337
- /**
10338
- * A faster alternative to `Function#apply`, this function invokes `func`
10339
- * with the `this` binding of `thisArg` and the arguments of `args`.
10340
- *
10341
- * @private
10342
- * @param {Function} func The function to invoke.
10343
- * @param {*} thisArg The `this` binding of `func`.
10344
- * @param {Array} args The arguments to invoke `func` with.
10345
- * @returns {*} Returns the result of `func`.
10346
- */
10347
- function apply(func, thisArg, args) {
10348
- switch (args.length) {
10349
- case 0:
10350
- return func.call(thisArg);
10351
- case 1:
10352
- return func.call(thisArg, args[0]);
10353
- case 2:
10354
- return func.call(thisArg, args[0], args[1]);
10355
- case 3:
10356
- return func.call(thisArg, args[0], args[1], args[2]);
10357
- }
10358
- return func.apply(thisArg, args);
10359
- }
10360
-
10361
- /**
10362
- * A specialized version of `_.includes` for arrays without support for
10363
- * specifying an index to search from.
10364
- *
10365
- * @private
10366
- * @param {Array} [array] The array to inspect.
10367
- * @param {*} target The value to search for.
10368
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
10369
- */
10370
- function arrayIncludes(array, value) {
10371
- var length = array ? array.length : 0;
10372
- return !!length && baseIndexOf(array, value, 0) > -1;
10373
- }
10374
-
10375
- /**
10376
- * This function is like `arrayIncludes` except that it accepts a comparator.
10377
- *
10378
- * @private
10379
- * @param {Array} [array] The array to inspect.
10380
- * @param {*} target The value to search for.
10381
- * @param {Function} comparator The comparator invoked per element.
10382
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
10383
- */
10384
- function arrayIncludesWith(array, value, comparator) {
10385
- var index = -1,
10386
- length = array ? array.length : 0;
10387
- while (++index < length) {
10388
- if (comparator(value, array[index])) {
10389
- return true;
10390
- }
10391
- }
10392
- return false;
10393
- }
10394
-
10395
- /**
10396
- * A specialized version of `_.map` for arrays without support for iteratee
10397
- * shorthands.
10398
- *
10399
- * @private
10400
- * @param {Array} [array] The array to iterate over.
10401
- * @param {Function} iteratee The function invoked per iteration.
10402
- * @returns {Array} Returns the new mapped array.
10403
- */
10404
- function arrayMap(array, iteratee) {
10405
- var index = -1,
10406
- length = array ? array.length : 0,
10407
- result = Array(length);
10408
- while (++index < length) {
10409
- result[index] = iteratee(array[index], index, array);
10410
- }
10411
- return result;
10412
- }
10413
-
10414
- /**
10415
- * Appends the elements of `values` to `array`.
10416
- *
10417
- * @private
10418
- * @param {Array} array The array to modify.
10419
- * @param {Array} values The values to append.
10420
- * @returns {Array} Returns `array`.
10421
- */
10422
- function arrayPush(array, values) {
10423
- var index = -1,
10424
- length = values.length,
10425
- offset = array.length;
10426
- while (++index < length) {
10427
- array[offset + index] = values[index];
10428
- }
10429
- return array;
10430
- }
10431
-
10432
- /**
10433
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
10434
- * support for iteratee shorthands.
10435
- *
10436
- * @private
10437
- * @param {Array} array The array to inspect.
10438
- * @param {Function} predicate The function invoked per iteration.
10439
- * @param {number} fromIndex The index to search from.
10440
- * @param {boolean} [fromRight] Specify iterating from right to left.
10441
- * @returns {number} Returns the index of the matched value, else `-1`.
10442
- */
10443
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
10444
- var length = array.length,
10445
- index = fromIndex + (fromRight ? 1 : -1);
10446
- while (fromRight ? index-- : ++index < length) {
10447
- if (predicate(array[index], index, array)) {
10448
- return index;
10449
- }
10450
- }
10451
- return -1;
10452
- }
10453
-
10454
- /**
10455
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
10456
- *
10457
- * @private
10458
- * @param {Array} array The array to inspect.
10459
- * @param {*} value The value to search for.
10460
- * @param {number} fromIndex The index to search from.
10461
- * @returns {number} Returns the index of the matched value, else `-1`.
10462
- */
10463
- function baseIndexOf(array, value, fromIndex) {
10464
- if (value !== value) {
10465
- return baseFindIndex(array, baseIsNaN, fromIndex);
10466
- }
10467
- var index = fromIndex - 1,
10468
- length = array.length;
10469
- while (++index < length) {
10470
- if (array[index] === value) {
10471
- return index;
10472
- }
10473
- }
10474
- return -1;
10475
- }
10476
-
10477
- /**
10478
- * The base implementation of `_.isNaN` without support for number objects.
10479
- *
10480
- * @private
10481
- * @param {*} value The value to check.
10482
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
10483
- */
10484
- function baseIsNaN(value) {
10485
- return value !== value;
10486
- }
10487
-
10488
- /**
10489
- * The base implementation of `_.times` without support for iteratee shorthands
10490
- * or max array length checks.
10491
- *
10492
- * @private
10493
- * @param {number} n The number of times to invoke `iteratee`.
10494
- * @param {Function} iteratee The function invoked per iteration.
10495
- * @returns {Array} Returns the array of results.
10496
- */
10497
- function baseTimes(n, iteratee) {
10498
- var index = -1,
10499
- result = Array(n);
10500
- while (++index < n) {
10501
- result[index] = iteratee(index);
10502
- }
10503
- return result;
10504
- }
10505
-
10506
- /**
10507
- * The base implementation of `_.unary` without support for storing metadata.
10508
- *
10509
- * @private
10510
- * @param {Function} func The function to cap arguments for.
10511
- * @returns {Function} Returns the new capped function.
10512
- */
10513
- function baseUnary(func) {
10514
- return function (value) {
10515
- return func(value);
10516
- };
10517
- }
10518
-
10519
- /**
10520
- * Checks if a cache value for `key` exists.
10521
- *
10522
- * @private
10523
- * @param {Object} cache The cache to query.
10524
- * @param {string} key The key of the entry to check.
10525
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10526
- */
10527
- function cacheHas(cache, key) {
10528
- return cache.has(key);
10529
- }
10530
-
10531
- /**
10532
- * Gets the value at `key` of `object`.
10533
- *
10534
- * @private
10535
- * @param {Object} [object] The object to query.
10536
- * @param {string} key The key of the property to get.
10537
- * @returns {*} Returns the property value.
10538
- */
10539
- function getValue(object, key) {
10540
- return object == null ? undefined : object[key];
10541
- }
10542
-
10543
- /**
10544
- * Checks if `value` is a host object in IE < 9.
10545
- *
10546
- * @private
10547
- * @param {*} value The value to check.
10548
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
10549
- */
10550
- function isHostObject(value) {
10551
- // Many host objects are `Object` objects that can coerce to strings
10552
- // despite having improperly defined `toString` methods.
10553
- var result = false;
10554
- if (value != null && typeof value.toString != 'function') {
10555
- try {
10556
- result = !!(value + '');
10557
- } catch (e) {}
10558
- }
10559
- return result;
10560
- }
10561
-
10562
- /**
10563
- * Creates a unary function that invokes `func` with its argument transformed.
10564
- *
10565
- * @private
10566
- * @param {Function} func The function to wrap.
10567
- * @param {Function} transform The argument transform.
10568
- * @returns {Function} Returns the new function.
10569
- */
10570
- function overArg(func, transform) {
10571
- return function (arg) {
10572
- return func(transform(arg));
10573
- };
10574
- }
10575
-
10576
- /** Used for built-in method references. */
10577
- var arrayProto = Array.prototype,
10578
- funcProto = Function.prototype,
10579
- objectProto = Object.prototype;
10580
-
10581
- /** Used to detect overreaching core-js shims. */
10582
- var coreJsData = root['__core-js_shared__'];
10583
-
10584
- /** Used to detect methods masquerading as native. */
10585
- var maskSrcKey = function () {
10586
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
10587
- return uid ? 'Symbol(src)_1.' + uid : '';
10588
- }();
10589
-
10590
- /** Used to resolve the decompiled source of functions. */
10591
- var funcToString = funcProto.toString;
10592
-
10593
- /** Used to check objects for own properties. */
10594
- var hasOwnProperty = objectProto.hasOwnProperty;
10595
-
10596
- /**
10597
- * Used to resolve the
10598
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
10599
- * of values.
10600
- */
10601
- var objectToString = objectProto.toString;
10602
-
10603
- /** Used to detect if a method is native. */
10604
- var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
10605
-
10606
- /** Built-in value references. */
10607
- var Symbol = root.Symbol,
10608
- getPrototype = overArg(Object.getPrototypeOf, Object),
10609
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
10610
- splice = arrayProto.splice,
10611
- spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
10612
-
10613
- /* Built-in method references for those with the same name as other `lodash` methods. */
10614
- var nativeGetSymbols = Object.getOwnPropertySymbols,
10615
- nativeMax = Math.max;
10616
-
10617
- /* Built-in method references that are verified to be native. */
10618
- var Map = getNative(root, 'Map'),
10619
- nativeCreate = getNative(Object, 'create');
10620
-
10621
- /**
10622
- * Creates a hash object.
10623
- *
10624
- * @private
10625
- * @constructor
10626
- * @param {Array} [entries] The key-value pairs to cache.
10627
- */
10628
- function Hash(entries) {
10629
- var index = -1,
10630
- length = entries ? entries.length : 0;
10631
- this.clear();
10632
- while (++index < length) {
10633
- var entry = entries[index];
10634
- this.set(entry[0], entry[1]);
10635
- }
10636
- }
10637
-
10638
- /**
10639
- * Removes all key-value entries from the hash.
10640
- *
10641
- * @private
10642
- * @name clear
10643
- * @memberOf Hash
10644
- */
10645
- function hashClear() {
10646
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
10647
- }
10648
-
10649
- /**
10650
- * Removes `key` and its value from the hash.
10651
- *
10652
- * @private
10653
- * @name delete
10654
- * @memberOf Hash
10655
- * @param {Object} hash The hash to modify.
10656
- * @param {string} key The key of the value to remove.
10657
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10658
- */
10659
- function hashDelete(key) {
10660
- return this.has(key) && delete this.__data__[key];
10661
- }
10662
-
10663
- /**
10664
- * Gets the hash value for `key`.
10665
- *
10666
- * @private
10667
- * @name get
10668
- * @memberOf Hash
10669
- * @param {string} key The key of the value to get.
10670
- * @returns {*} Returns the entry value.
10671
- */
10672
- function hashGet(key) {
10673
- var data = this.__data__;
10674
- if (nativeCreate) {
10675
- var result = data[key];
10676
- return result === HASH_UNDEFINED ? undefined : result;
10677
- }
10678
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
10679
- }
10680
-
10681
- /**
10682
- * Checks if a hash value for `key` exists.
10683
- *
10684
- * @private
10685
- * @name has
10686
- * @memberOf Hash
10687
- * @param {string} key The key of the entry to check.
10688
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10689
- */
10690
- function hashHas(key) {
10691
- var data = this.__data__;
10692
- return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
10693
- }
10694
-
10695
- /**
10696
- * Sets the hash `key` to `value`.
10697
- *
10698
- * @private
10699
- * @name set
10700
- * @memberOf Hash
10701
- * @param {string} key The key of the value to set.
10702
- * @param {*} value The value to set.
10703
- * @returns {Object} Returns the hash instance.
10704
- */
10705
- function hashSet(key, value) {
10706
- var data = this.__data__;
10707
- data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
10708
- return this;
10709
- }
10710
-
10711
- // Add methods to `Hash`.
10712
- Hash.prototype.clear = hashClear;
10713
- Hash.prototype['delete'] = hashDelete;
10714
- Hash.prototype.get = hashGet;
10715
- Hash.prototype.has = hashHas;
10716
- Hash.prototype.set = hashSet;
10717
-
10718
- /**
10719
- * Creates an list cache object.
10720
- *
10721
- * @private
10722
- * @constructor
10723
- * @param {Array} [entries] The key-value pairs to cache.
10724
- */
10725
- function ListCache(entries) {
10726
- var index = -1,
10727
- length = entries ? entries.length : 0;
10728
- this.clear();
10729
- while (++index < length) {
10730
- var entry = entries[index];
10731
- this.set(entry[0], entry[1]);
10732
- }
10733
- }
10734
-
10735
- /**
10736
- * Removes all key-value entries from the list cache.
10737
- *
10738
- * @private
10739
- * @name clear
10740
- * @memberOf ListCache
10741
- */
10742
- function listCacheClear() {
10743
- this.__data__ = [];
10744
- }
10745
-
10746
- /**
10747
- * Removes `key` and its value from the list cache.
10748
- *
10749
- * @private
10750
- * @name delete
10751
- * @memberOf ListCache
10752
- * @param {string} key The key of the value to remove.
10753
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10754
- */
10755
- function listCacheDelete(key) {
10756
- var data = this.__data__,
10757
- index = assocIndexOf(data, key);
10758
- if (index < 0) {
10759
- return false;
10760
- }
10761
- var lastIndex = data.length - 1;
10762
- if (index == lastIndex) {
10763
- data.pop();
10764
- } else {
10765
- splice.call(data, index, 1);
10766
- }
10767
- return true;
10768
- }
10769
-
10770
- /**
10771
- * Gets the list cache value for `key`.
10772
- *
10773
- * @private
10774
- * @name get
10775
- * @memberOf ListCache
10776
- * @param {string} key The key of the value to get.
10777
- * @returns {*} Returns the entry value.
10778
- */
10779
- function listCacheGet(key) {
10780
- var data = this.__data__,
10781
- index = assocIndexOf(data, key);
10782
- return index < 0 ? undefined : data[index][1];
10783
- }
10784
-
10785
- /**
10786
- * Checks if a list cache value for `key` exists.
10787
- *
10788
- * @private
10789
- * @name has
10790
- * @memberOf ListCache
10791
- * @param {string} key The key of the entry to check.
10792
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10793
- */
10794
- function listCacheHas(key) {
10795
- return assocIndexOf(this.__data__, key) > -1;
10796
- }
10797
-
10798
- /**
10799
- * Sets the list cache `key` to `value`.
10800
- *
10801
- * @private
10802
- * @name set
10803
- * @memberOf ListCache
10804
- * @param {string} key The key of the value to set.
10805
- * @param {*} value The value to set.
10806
- * @returns {Object} Returns the list cache instance.
10807
- */
10808
- function listCacheSet(key, value) {
10809
- var data = this.__data__,
10810
- index = assocIndexOf(data, key);
10811
- if (index < 0) {
10812
- data.push([key, value]);
10813
- } else {
10814
- data[index][1] = value;
10815
- }
10816
- return this;
10817
- }
10818
-
10819
- // Add methods to `ListCache`.
10820
- ListCache.prototype.clear = listCacheClear;
10821
- ListCache.prototype['delete'] = listCacheDelete;
10822
- ListCache.prototype.get = listCacheGet;
10823
- ListCache.prototype.has = listCacheHas;
10824
- ListCache.prototype.set = listCacheSet;
10825
-
10826
- /**
10827
- * Creates a map cache object to store key-value pairs.
10828
- *
10829
- * @private
10830
- * @constructor
10831
- * @param {Array} [entries] The key-value pairs to cache.
10832
- */
10833
- function MapCache(entries) {
10834
- var index = -1,
10835
- length = entries ? entries.length : 0;
10836
- this.clear();
10837
- while (++index < length) {
10838
- var entry = entries[index];
10839
- this.set(entry[0], entry[1]);
10840
- }
10841
- }
10842
-
10843
- /**
10844
- * Removes all key-value entries from the map.
10845
- *
10846
- * @private
10847
- * @name clear
10848
- * @memberOf MapCache
10849
- */
10850
- function mapCacheClear() {
10851
- this.__data__ = {
10852
- 'hash': new Hash(),
10853
- 'map': new (Map || ListCache)(),
10854
- 'string': new Hash()
10855
- };
10856
- }
10857
-
10858
- /**
10859
- * Removes `key` and its value from the map.
10860
- *
10861
- * @private
10862
- * @name delete
10863
- * @memberOf MapCache
10864
- * @param {string} key The key of the value to remove.
10865
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10866
- */
10867
- function mapCacheDelete(key) {
10868
- return getMapData(this, key)['delete'](key);
10869
- }
10870
-
10871
- /**
10872
- * Gets the map value for `key`.
10873
- *
10874
- * @private
10875
- * @name get
10876
- * @memberOf MapCache
10877
- * @param {string} key The key of the value to get.
10878
- * @returns {*} Returns the entry value.
10879
- */
10880
- function mapCacheGet(key) {
10881
- return getMapData(this, key).get(key);
10882
- }
10883
-
10884
- /**
10885
- * Checks if a map value for `key` exists.
10886
- *
10887
- * @private
10888
- * @name has
10889
- * @memberOf MapCache
10890
- * @param {string} key The key of the entry to check.
10891
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10892
- */
10893
- function mapCacheHas(key) {
10894
- return getMapData(this, key).has(key);
10895
- }
10896
-
10897
- /**
10898
- * Sets the map `key` to `value`.
10899
- *
10900
- * @private
10901
- * @name set
10902
- * @memberOf MapCache
10903
- * @param {string} key The key of the value to set.
10904
- * @param {*} value The value to set.
10905
- * @returns {Object} Returns the map cache instance.
10906
- */
10907
- function mapCacheSet(key, value) {
10908
- getMapData(this, key).set(key, value);
10909
- return this;
10910
- }
10911
-
10912
- // Add methods to `MapCache`.
10913
- MapCache.prototype.clear = mapCacheClear;
10914
- MapCache.prototype['delete'] = mapCacheDelete;
10915
- MapCache.prototype.get = mapCacheGet;
10916
- MapCache.prototype.has = mapCacheHas;
10917
- MapCache.prototype.set = mapCacheSet;
10918
-
10919
- /**
10920
- *
10921
- * Creates an array cache object to store unique values.
10922
- *
10923
- * @private
10924
- * @constructor
10925
- * @param {Array} [values] The values to cache.
10926
- */
10927
- function SetCache(values) {
10928
- var index = -1,
10929
- length = values ? values.length : 0;
10930
- this.__data__ = new MapCache();
10931
- while (++index < length) {
10932
- this.add(values[index]);
10933
- }
10934
- }
10935
-
10936
- /**
10937
- * Adds `value` to the array cache.
10938
- *
10939
- * @private
10940
- * @name add
10941
- * @memberOf SetCache
10942
- * @alias push
10943
- * @param {*} value The value to cache.
10944
- * @returns {Object} Returns the cache instance.
10945
- */
10946
- function setCacheAdd(value) {
10947
- this.__data__.set(value, HASH_UNDEFINED);
10948
- return this;
10949
- }
10950
-
10951
- /**
10952
- * Checks if `value` is in the array cache.
10953
- *
10954
- * @private
10955
- * @name has
10956
- * @memberOf SetCache
10957
- * @param {*} value The value to search for.
10958
- * @returns {number} Returns `true` if `value` is found, else `false`.
10959
- */
10960
- function setCacheHas(value) {
10961
- return this.__data__.has(value);
10962
- }
10963
-
10964
- // Add methods to `SetCache`.
10965
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
10966
- SetCache.prototype.has = setCacheHas;
10967
-
10968
- /**
10969
- * Creates an array of the enumerable property names of the array-like `value`.
10970
- *
10971
- * @private
10972
- * @param {*} value The value to query.
10973
- * @param {boolean} inherited Specify returning inherited property names.
10974
- * @returns {Array} Returns the array of property names.
10975
- */
10976
- function arrayLikeKeys(value, inherited) {
10977
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
10978
- // Safari 9 makes `arguments.length` enumerable in strict mode.
10979
- var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
10980
- var length = result.length,
10981
- skipIndexes = !!length;
10982
- for (var key in value) {
10983
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
10984
- result.push(key);
10985
- }
10986
- }
10987
- return result;
10988
- }
10989
-
10990
- /**
10991
- * Gets the index at which the `key` is found in `array` of key-value pairs.
10992
- *
10993
- * @private
10994
- * @param {Array} array The array to inspect.
10995
- * @param {*} key The key to search for.
10996
- * @returns {number} Returns the index of the matched value, else `-1`.
10997
- */
10998
- function assocIndexOf(array, key) {
10999
- var length = array.length;
11000
- while (length--) {
11001
- if (eq(array[length][0], key)) {
11002
- return length;
11003
- }
11004
- }
11005
- return -1;
11006
- }
11007
-
11008
- /**
11009
- * The base implementation of methods like `_.difference` without support
11010
- * for excluding multiple arrays or iteratee shorthands.
11011
- *
11012
- * @private
11013
- * @param {Array} array The array to inspect.
11014
- * @param {Array} values The values to exclude.
11015
- * @param {Function} [iteratee] The iteratee invoked per element.
11016
- * @param {Function} [comparator] The comparator invoked per element.
11017
- * @returns {Array} Returns the new array of filtered values.
11018
- */
11019
- function baseDifference(array, values, iteratee, comparator) {
11020
- var index = -1,
11021
- includes = arrayIncludes,
11022
- isCommon = true,
11023
- length = array.length,
11024
- result = [],
11025
- valuesLength = values.length;
11026
- if (!length) {
11027
- return result;
11028
- }
11029
- if (iteratee) {
11030
- values = arrayMap(values, baseUnary(iteratee));
11031
- }
11032
- if (comparator) {
11033
- includes = arrayIncludesWith;
11034
- isCommon = false;
11035
- } else if (values.length >= LARGE_ARRAY_SIZE) {
11036
- includes = cacheHas;
11037
- isCommon = false;
11038
- values = new SetCache(values);
11039
- }
11040
- outer: while (++index < length) {
11041
- var value = array[index],
11042
- computed = iteratee ? iteratee(value) : value;
11043
- value = comparator || value !== 0 ? value : 0;
11044
- if (isCommon && computed === computed) {
11045
- var valuesIndex = valuesLength;
11046
- while (valuesIndex--) {
11047
- if (values[valuesIndex] === computed) {
11048
- continue outer;
11049
- }
11050
- }
11051
- result.push(value);
11052
- } else if (!includes(values, computed, comparator)) {
11053
- result.push(value);
11054
- }
11055
- }
11056
- return result;
11057
- }
11058
-
11059
- /**
11060
- * The base implementation of `_.flatten` with support for restricting flattening.
11061
- *
11062
- * @private
11063
- * @param {Array} array The array to flatten.
11064
- * @param {number} depth The maximum recursion depth.
11065
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
11066
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
11067
- * @param {Array} [result=[]] The initial result value.
11068
- * @returns {Array} Returns the new flattened array.
11069
- */
11070
- function baseFlatten(array, depth, predicate, isStrict, result) {
11071
- var index = -1,
11072
- length = array.length;
11073
- predicate || (predicate = isFlattenable);
11074
- result || (result = []);
11075
- while (++index < length) {
11076
- var value = array[index];
11077
- if (depth > 0 && predicate(value)) {
11078
- if (depth > 1) {
11079
- // Recursively flatten arrays (susceptible to call stack limits).
11080
- baseFlatten(value, depth - 1, predicate, isStrict, result);
11081
- } else {
11082
- arrayPush(result, value);
11083
- }
11084
- } else if (!isStrict) {
11085
- result[result.length] = value;
11086
- }
11087
- }
11088
- return result;
11089
- }
11090
-
11091
- /**
11092
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
11093
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
11094
- * symbols of `object`.
11095
- *
11096
- * @private
11097
- * @param {Object} object The object to query.
11098
- * @param {Function} keysFunc The function to get the keys of `object`.
11099
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
11100
- * @returns {Array} Returns the array of property names and symbols.
11101
- */
11102
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
11103
- var result = keysFunc(object);
11104
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
11105
- }
11106
-
11107
- /**
11108
- * The base implementation of `_.isNative` without bad shim checks.
11109
- *
11110
- * @private
11111
- * @param {*} value The value to check.
11112
- * @returns {boolean} Returns `true` if `value` is a native function,
11113
- * else `false`.
11114
- */
11115
- function baseIsNative(value) {
11116
- if (!isObject(value) || isMasked(value)) {
11117
- return false;
11118
- }
11119
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
11120
- return pattern.test(toSource(value));
11121
- }
11122
-
11123
- /**
11124
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
11125
- *
11126
- * @private
11127
- * @param {Object} object The object to query.
11128
- * @returns {Array} Returns the array of property names.
11129
- */
11130
- function baseKeysIn(object) {
11131
- if (!isObject(object)) {
11132
- return nativeKeysIn(object);
11133
- }
11134
- var isProto = isPrototype(object),
11135
- result = [];
11136
- for (var key in object) {
11137
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
11138
- result.push(key);
11139
- }
11140
- }
11141
- return result;
11142
- }
11143
-
11144
- /**
11145
- * The base implementation of `_.pick` without support for individual
11146
- * property identifiers.
11147
- *
11148
- * @private
11149
- * @param {Object} object The source object.
11150
- * @param {string[]} props The property identifiers to pick.
11151
- * @returns {Object} Returns the new object.
11152
- */
11153
- function basePick(object, props) {
11154
- object = Object(object);
11155
- return basePickBy(object, props, function (value, key) {
11156
- return key in object;
11157
- });
11158
- }
11159
-
11160
- /**
11161
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
11162
- *
11163
- * @private
11164
- * @param {Object} object The source object.
11165
- * @param {string[]} props The property identifiers to pick from.
11166
- * @param {Function} predicate The function invoked per property.
11167
- * @returns {Object} Returns the new object.
11168
- */
11169
- function basePickBy(object, props, predicate) {
11170
- var index = -1,
11171
- length = props.length,
11172
- result = {};
11173
- while (++index < length) {
11174
- var key = props[index],
11175
- value = object[key];
11176
- if (predicate(value, key)) {
11177
- result[key] = value;
11178
- }
11179
- }
11180
- return result;
11181
- }
11182
-
11183
- /**
11184
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
11185
- *
11186
- * @private
11187
- * @param {Function} func The function to apply a rest parameter to.
11188
- * @param {number} [start=func.length-1] The start position of the rest parameter.
11189
- * @returns {Function} Returns the new function.
11190
- */
11191
- function baseRest(func, start) {
11192
- start = nativeMax(start === undefined ? func.length - 1 : start, 0);
11193
- return function () {
11194
- var args = arguments,
11195
- index = -1,
11196
- length = nativeMax(args.length - start, 0),
11197
- array = Array(length);
11198
- while (++index < length) {
11199
- array[index] = args[start + index];
11200
- }
11201
- index = -1;
11202
- var otherArgs = Array(start + 1);
11203
- while (++index < start) {
11204
- otherArgs[index] = args[index];
11205
- }
11206
- otherArgs[start] = array;
11207
- return apply(func, this, otherArgs);
11208
- };
11209
- }
11210
-
11211
- /**
11212
- * Creates an array of own and inherited enumerable property names and
11213
- * symbols of `object`.
11214
- *
11215
- * @private
11216
- * @param {Object} object The object to query.
11217
- * @returns {Array} Returns the array of property names and symbols.
11218
- */
11219
- function getAllKeysIn(object) {
11220
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
11221
- }
11222
-
11223
- /**
11224
- * Gets the data for `map`.
11225
- *
11226
- * @private
11227
- * @param {Object} map The map to query.
11228
- * @param {string} key The reference key.
11229
- * @returns {*} Returns the map data.
11230
- */
11231
- function getMapData(map, key) {
11232
- var data = map.__data__;
11233
- return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
11234
- }
11235
-
11236
- /**
11237
- * Gets the native function at `key` of `object`.
11238
- *
11239
- * @private
11240
- * @param {Object} object The object to query.
11241
- * @param {string} key The key of the method to get.
11242
- * @returns {*} Returns the function if it's native, else `undefined`.
11243
- */
11244
- function getNative(object, key) {
11245
- var value = getValue(object, key);
11246
- return baseIsNative(value) ? value : undefined;
11247
- }
11248
-
11249
- /**
11250
- * Creates an array of the own enumerable symbol properties of `object`.
11251
- *
11252
- * @private
11253
- * @param {Object} object The object to query.
11254
- * @returns {Array} Returns the array of symbols.
11255
- */
11256
- var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
11257
-
11258
- /**
11259
- * Creates an array of the own and inherited enumerable symbol properties
11260
- * of `object`.
11261
- *
11262
- * @private
11263
- * @param {Object} object The object to query.
11264
- * @returns {Array} Returns the array of symbols.
11265
- */
11266
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {
11267
- var result = [];
11268
- while (object) {
11269
- arrayPush(result, getSymbols(object));
11270
- object = getPrototype(object);
11271
- }
11272
- return result;
11273
- };
11274
-
11275
- /**
11276
- * Checks if `value` is a flattenable `arguments` object or array.
11277
- *
11278
- * @private
11279
- * @param {*} value The value to check.
11280
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
11281
- */
11282
- function isFlattenable(value) {
11283
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
11284
- }
11285
-
11286
- /**
11287
- * Checks if `value` is a valid array-like index.
11288
- *
11289
- * @private
11290
- * @param {*} value The value to check.
11291
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
11292
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
11293
- */
11294
- function isIndex(value, length) {
11295
- length = length == null ? MAX_SAFE_INTEGER : length;
11296
- return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
11297
- }
11298
-
11299
- /**
11300
- * Checks if `value` is suitable for use as unique object key.
11301
- *
11302
- * @private
11303
- * @param {*} value The value to check.
11304
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
11305
- */
11306
- function isKeyable(value) {
11307
- var type = typeof value;
11308
- return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
11309
- }
11310
-
11311
- /**
11312
- * Checks if `func` has its source masked.
11313
- *
11314
- * @private
11315
- * @param {Function} func The function to check.
11316
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
11317
- */
11318
- function isMasked(func) {
11319
- return !!maskSrcKey && maskSrcKey in func;
11320
- }
11321
-
11322
- /**
11323
- * Checks if `value` is likely a prototype object.
11324
- *
11325
- * @private
11326
- * @param {*} value The value to check.
11327
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
11328
- */
11329
- function isPrototype(value) {
11330
- var Ctor = value && value.constructor,
11331
- proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
11332
- return value === proto;
11333
- }
11334
-
11335
- /**
11336
- * This function is like
11337
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
11338
- * except that it includes inherited enumerable properties.
11339
- *
11340
- * @private
11341
- * @param {Object} object The object to query.
11342
- * @returns {Array} Returns the array of property names.
11343
- */
11344
- function nativeKeysIn(object) {
11345
- var result = [];
11346
- if (object != null) {
11347
- for (var key in Object(object)) {
11348
- result.push(key);
11349
- }
11350
- }
11351
- return result;
11352
- }
11353
-
11354
- /**
11355
- * Converts `value` to a string key if it's not a string or symbol.
11356
- *
11357
- * @private
11358
- * @param {*} value The value to inspect.
11359
- * @returns {string|symbol} Returns the key.
11360
- */
11361
- function toKey(value) {
11362
- if (typeof value == 'string' || isSymbol(value)) {
11363
- return value;
11364
- }
11365
- var result = value + '';
11366
- return result == '0' && 1 / value == -INFINITY ? '-0' : result;
11367
- }
11368
-
11369
- /**
11370
- * Converts `func` to its source code.
11371
- *
11372
- * @private
11373
- * @param {Function} func The function to process.
11374
- * @returns {string} Returns the source code.
11375
- */
11376
- function toSource(func) {
11377
- if (func != null) {
11378
- try {
11379
- return funcToString.call(func);
11380
- } catch (e) {}
11381
- try {
11382
- return func + '';
11383
- } catch (e) {}
11384
- }
11385
- return '';
11386
- }
11387
-
11388
- /**
11389
- * Performs a
11390
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
11391
- * comparison between two values to determine if they are equivalent.
11392
- *
11393
- * @static
11394
- * @memberOf _
11395
- * @since 4.0.0
11396
- * @category Lang
11397
- * @param {*} value The value to compare.
11398
- * @param {*} other The other value to compare.
11399
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
11400
- * @example
11401
- *
11402
- * var object = { 'a': 1 };
11403
- * var other = { 'a': 1 };
11404
- *
11405
- * _.eq(object, object);
11406
- * // => true
11407
- *
11408
- * _.eq(object, other);
11409
- * // => false
11410
- *
11411
- * _.eq('a', 'a');
11412
- * // => true
11413
- *
11414
- * _.eq('a', Object('a'));
11415
- * // => false
11416
- *
11417
- * _.eq(NaN, NaN);
11418
- * // => true
11419
- */
11420
- function eq(value, other) {
11421
- return value === other || value !== value && other !== other;
11422
- }
11423
-
11424
- /**
11425
- * Checks if `value` is likely an `arguments` object.
11426
- *
11427
- * @static
11428
- * @memberOf _
11429
- * @since 0.1.0
11430
- * @category Lang
11431
- * @param {*} value The value to check.
11432
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
11433
- * else `false`.
11434
- * @example
11435
- *
11436
- * _.isArguments(function() { return arguments; }());
11437
- * // => true
11438
- *
11439
- * _.isArguments([1, 2, 3]);
11440
- * // => false
11441
- */
11442
- function isArguments(value) {
11443
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
11444
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
11445
- }
11446
-
11447
- /**
11448
- * Checks if `value` is classified as an `Array` object.
11449
- *
11450
- * @static
11451
- * @memberOf _
11452
- * @since 0.1.0
11453
- * @category Lang
11454
- * @param {*} value The value to check.
11455
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
11456
- * @example
11457
- *
11458
- * _.isArray([1, 2, 3]);
11459
- * // => true
11460
- *
11461
- * _.isArray(document.body.children);
11462
- * // => false
11463
- *
11464
- * _.isArray('abc');
11465
- * // => false
11466
- *
11467
- * _.isArray(_.noop);
11468
- * // => false
11469
- */
11470
- var isArray = Array.isArray;
11471
-
11472
- /**
11473
- * Checks if `value` is array-like. A value is considered array-like if it's
11474
- * not a function and has a `value.length` that's an integer greater than or
11475
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
11476
- *
11477
- * @static
11478
- * @memberOf _
11479
- * @since 4.0.0
11480
- * @category Lang
11481
- * @param {*} value The value to check.
11482
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
11483
- * @example
11484
- *
11485
- * _.isArrayLike([1, 2, 3]);
11486
- * // => true
11487
- *
11488
- * _.isArrayLike(document.body.children);
11489
- * // => true
11490
- *
11491
- * _.isArrayLike('abc');
11492
- * // => true
11493
- *
11494
- * _.isArrayLike(_.noop);
11495
- * // => false
11496
- */
11497
- function isArrayLike(value) {
11498
- return value != null && isLength(value.length) && !isFunction(value);
11499
- }
11500
-
11501
- /**
11502
- * This method is like `_.isArrayLike` except that it also checks if `value`
11503
- * is an object.
11504
- *
11505
- * @static
11506
- * @memberOf _
11507
- * @since 4.0.0
11508
- * @category Lang
11509
- * @param {*} value The value to check.
11510
- * @returns {boolean} Returns `true` if `value` is an array-like object,
11511
- * else `false`.
11512
- * @example
11513
- *
11514
- * _.isArrayLikeObject([1, 2, 3]);
11515
- * // => true
11516
- *
11517
- * _.isArrayLikeObject(document.body.children);
11518
- * // => true
11519
- *
11520
- * _.isArrayLikeObject('abc');
11521
- * // => false
11522
- *
11523
- * _.isArrayLikeObject(_.noop);
11524
- * // => false
11525
- */
11526
- function isArrayLikeObject(value) {
11527
- return isObjectLike(value) && isArrayLike(value);
11528
- }
11529
-
11530
- /**
11531
- * Checks if `value` is classified as a `Function` object.
11532
- *
11533
- * @static
11534
- * @memberOf _
11535
- * @since 0.1.0
11536
- * @category Lang
11537
- * @param {*} value The value to check.
11538
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
11539
- * @example
11540
- *
11541
- * _.isFunction(_);
11542
- * // => true
11543
- *
11544
- * _.isFunction(/abc/);
11545
- * // => false
11546
- */
11547
- function isFunction(value) {
11548
- // The use of `Object#toString` avoids issues with the `typeof` operator
11549
- // in Safari 8-9 which returns 'object' for typed array and other constructors.
11550
- var tag = isObject(value) ? objectToString.call(value) : '';
11551
- return tag == funcTag || tag == genTag;
11552
- }
11553
-
11554
- /**
11555
- * Checks if `value` is a valid array-like length.
11556
- *
11557
- * **Note:** This method is loosely based on
11558
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
11559
- *
11560
- * @static
11561
- * @memberOf _
11562
- * @since 4.0.0
11563
- * @category Lang
11564
- * @param {*} value The value to check.
11565
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
11566
- * @example
11567
- *
11568
- * _.isLength(3);
11569
- * // => true
11570
- *
11571
- * _.isLength(Number.MIN_VALUE);
11572
- * // => false
11573
- *
11574
- * _.isLength(Infinity);
11575
- * // => false
11576
- *
11577
- * _.isLength('3');
11578
- * // => false
11579
- */
11580
- function isLength(value) {
11581
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
11582
- }
11583
-
11584
- /**
11585
- * Checks if `value` is the
11586
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
11587
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
11588
- *
11589
- * @static
11590
- * @memberOf _
11591
- * @since 0.1.0
11592
- * @category Lang
11593
- * @param {*} value The value to check.
11594
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
11595
- * @example
11596
- *
11597
- * _.isObject({});
11598
- * // => true
11599
- *
11600
- * _.isObject([1, 2, 3]);
11601
- * // => true
11602
- *
11603
- * _.isObject(_.noop);
11604
- * // => true
11605
- *
11606
- * _.isObject(null);
11607
- * // => false
11608
- */
11609
- function isObject(value) {
11610
- var type = typeof value;
11611
- return !!value && (type == 'object' || type == 'function');
11612
- }
11613
-
11614
- /**
11615
- * Checks if `value` is object-like. A value is object-like if it's not `null`
11616
- * and has a `typeof` result of "object".
11617
- *
11618
- * @static
11619
- * @memberOf _
11620
- * @since 4.0.0
11621
- * @category Lang
11622
- * @param {*} value The value to check.
11623
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
11624
- * @example
11625
- *
11626
- * _.isObjectLike({});
11627
- * // => true
11628
- *
11629
- * _.isObjectLike([1, 2, 3]);
11630
- * // => true
11631
- *
11632
- * _.isObjectLike(_.noop);
11633
- * // => false
11634
- *
11635
- * _.isObjectLike(null);
11636
- * // => false
11637
- */
11638
- function isObjectLike(value) {
11639
- return !!value && typeof value == 'object';
11640
- }
11641
-
11642
- /**
11643
- * Checks if `value` is classified as a `Symbol` primitive or object.
11644
- *
11645
- * @static
11646
- * @memberOf _
11647
- * @since 4.0.0
11648
- * @category Lang
11649
- * @param {*} value The value to check.
11650
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
11651
- * @example
11652
- *
11653
- * _.isSymbol(Symbol.iterator);
11654
- * // => true
11655
- *
11656
- * _.isSymbol('abc');
11657
- * // => false
11658
- */
11659
- function isSymbol(value) {
11660
- return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
11661
- }
11662
-
11663
- /**
11664
- * Creates an array of the own and inherited enumerable property names of `object`.
11665
- *
11666
- * **Note:** Non-object values are coerced to objects.
11667
- *
11668
- * @static
11669
- * @memberOf _
11670
- * @since 3.0.0
11671
- * @category Object
11672
- * @param {Object} object The object to query.
11673
- * @returns {Array} Returns the array of property names.
11674
- * @example
11675
- *
11676
- * function Foo() {
11677
- * this.a = 1;
11678
- * this.b = 2;
11679
- * }
11680
- *
11681
- * Foo.prototype.c = 3;
11682
- *
11683
- * _.keysIn(new Foo);
11684
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
11685
- */
11686
- function keysIn(object) {
11687
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
11688
- }
11689
-
11690
- /**
11691
- * The opposite of `_.pick`; this method creates an object composed of the
11692
- * own and inherited enumerable string keyed properties of `object` that are
11693
- * not omitted.
11694
- *
11695
- * @static
11696
- * @since 0.1.0
11697
- * @memberOf _
11698
- * @category Object
11699
- * @param {Object} object The source object.
11700
- * @param {...(string|string[])} [props] The property identifiers to omit.
11701
- * @returns {Object} Returns the new object.
11702
- * @example
11703
- *
11704
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
11705
- *
11706
- * _.omit(object, ['a', 'c']);
11707
- * // => { 'b': '2' }
11708
- */
11709
- var omit = baseRest(function (object, props) {
11710
- if (object == null) {
11711
- return {};
11712
- }
11713
- props = arrayMap(baseFlatten(props, 1), toKey);
11714
- return basePick(object, baseDifference(getAllKeysIn(object), props));
11715
- });
11716
-
11717
- /**
11718
- * This method returns a new empty array.
11719
- *
11720
- * @static
11721
- * @memberOf _
11722
- * @since 4.13.0
11723
- * @category Util
11724
- * @returns {Array} Returns the new empty array.
11725
- * @example
11726
- *
11727
- * var arrays = _.times(2, _.stubArray);
11728
- *
11729
- * console.log(arrays);
11730
- * // => [[], []]
11731
- *
11732
- * console.log(arrays[0] === arrays[1]);
11733
- * // => false
11734
- */
11735
- function stubArray() {
11736
- return [];
11737
- }
11738
- module.exports = omit;
11739
-
11740
- /***/ }),
11741
-
11742
10288
  /***/ 285:
11743
10289
  /***/ (function(module) {
11744
10290
 
@@ -21752,6 +20298,11 @@ function toConsumableArray_toConsumableArray(arr) {
21752
20298
  ;// CONCATENATED MODULE: ./packages/utils/es/array-move/index.js
21753
20299
 
21754
20300
 
20301
+ /**
20302
+ * @param {ValueType[]} array
20303
+ * @param {number} fromIndex
20304
+ * @param {number} toIndex
20305
+ */
21755
20306
  function arrayMoveMutable(array, fromIndex, toIndex) {
21756
20307
  var startIndex = fromIndex < 0 ? array.length + fromIndex : fromIndex;
21757
20308
  if (startIndex >= 0 && startIndex < array.length) {
@@ -21762,6 +20313,12 @@ function arrayMoveMutable(array, fromIndex, toIndex) {
21762
20313
  array.splice(endIndex, 0, item);
21763
20314
  }
21764
20315
  }
20316
+ /**
20317
+ * @param {T[]} array
20318
+ * @param {number} fromIndex
20319
+ * @param {number} toIndex
20320
+ * @returns T
20321
+ */
21765
20322
  function arrayMoveImmutable(array, fromIndex, toIndex) {
21766
20323
  var newArray = toConsumableArray_toConsumableArray(array);
21767
20324
  arrayMoveMutable(newArray, fromIndex, toIndex);
@@ -24805,6 +23362,13 @@ var _ref = external_antd_.theme || {
24805
23362
  }
24806
23363
  },
24807
23364
  useToken = _ref.useToken;
23365
+ /**
23366
+ * 安全的从一个对象中读取相应的值
23367
+ * @param source
23368
+ * @param path
23369
+ * @param defaultValue
23370
+ * @returns
23371
+ */
24808
23372
  function get(source, path, defaultValue) {
24809
23373
  // a[3].b -> a.3.b
24810
23374
  var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
@@ -24830,7 +23394,7 @@ function get(source, path, defaultValue) {
24830
23394
  return message;
24831
23395
  }
24832
23396
  /**
24833
- * 创建一个操作函数
23397
+ * 创建一个国际化的操作函数
24834
23398
  *
24835
23399
  * @param locale
24836
23400
  * @param localeMap
@@ -24893,6 +23457,7 @@ var intlMap = {
24893
23457
  };
24894
23458
  var intlMapKeys = Object.keys(intlMap);
24895
23459
 
23460
+ /* Creating a context object with the default values. */
24896
23461
  var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
24897
23462
  intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
24898
23463
  locale: 'default'
@@ -24996,16 +23561,21 @@ var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
24996
23561
  children: configProviderDom
24997
23562
  });
24998
23563
  };
23564
+ /**
23565
+ * It returns the intl object from the context if it exists, otherwise it returns the intl object for
23566
+ * the current locale
23567
+ * @returns The return value of the function is the intl object.
23568
+ */
24999
23569
  function useIntl() {
25000
23570
  var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
25001
23571
  locale = _useContext2.locale;
25002
23572
  var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
25003
23573
  intl = _useContext3.intl;
25004
23574
  if (intl && intl.locale !== 'default') {
25005
- return intl;
23575
+ return intl || zhCNIntl;
25006
23576
  }
25007
23577
  if (locale === null || locale === void 0 ? void 0 : locale.locale) {
25008
- return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)];
23578
+ return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
25009
23579
  }
25010
23580
  return zhCNIntl;
25011
23581
  }
@@ -27379,7 +25949,7 @@ function module_tinycolor(color, opts) {
27379
25949
 
27380
25950
 
27381
25951
  var defaultTheme = {
27382
- blue: '#1890FF',
25952
+ blue: '#1677ff',
27383
25953
  purple: '#722ED1',
27384
25954
  cyan: '#13C2C2',
27385
25955
  green: '#52C41A',
@@ -27396,11 +25966,11 @@ var defaultTheme = {
27396
25966
  colorSuccess: '#52c41a',
27397
25967
  colorWarning: '#faad14',
27398
25968
  colorError: '#ff4d4f',
27399
- colorInfo: '#1677FF',
25969
+ colorInfo: '#1677ff',
27400
25970
  colorTextBase: '#000',
27401
25971
  colorTextLightSolid: '#fff',
27402
25972
  colorBgBase: '#fff',
27403
- fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\\n'Noto Color Emoji'",
25973
+ fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",
27404
25974
  fontSizeBase: 14,
27405
25975
  gridUnit: 4,
27406
25976
  gridBaseStep: 2,
@@ -27415,24 +25985,25 @@ var defaultTheme = {
27415
25985
  motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
27416
25986
  motionEaseInQuint: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
27417
25987
  motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
27418
- radiusBase: 4,
25988
+ radiusBase: 6,
27419
25989
  sizeUnit: 4,
27420
25990
  sizeBaseStep: 4,
27421
- sizePopupArrow: 11.313708498984761,
25991
+ sizePopupArrow: 16,
27422
25992
  controlHeight: 32,
27423
25993
  zIndexBase: 0,
27424
25994
  zIndexPopupBase: 1000,
27425
25995
  opacityImage: 1,
27426
- 'blue-1': '#e6f7ff',
27427
- 'blue-2': '#bae7ff',
27428
- 'blue-3': '#91d5ff',
27429
- 'blue-4': '#69c0ff',
27430
- 'blue-5': '#40a9ff',
27431
- 'blue-6': '#1890ff',
27432
- 'blue-7': '#096dd9',
27433
- 'blue-8': '#0050b3',
27434
- 'blue-9': '#003a8c',
27435
- 'blue-10': '#002766',
25996
+ wireframe: false,
25997
+ 'blue-1': '#e6f4ff',
25998
+ 'blue-2': '#bae0ff',
25999
+ 'blue-3': '#91caff',
26000
+ 'blue-4': '#69b1ff',
26001
+ 'blue-5': '#4096ff',
26002
+ 'blue-6': '#1677ff',
26003
+ 'blue-7': '#0958d9',
26004
+ 'blue-8': '#003eb3',
26005
+ 'blue-9': '#002c8c',
26006
+ 'blue-10': '#001d66',
27436
26007
  'purple-1': '#f9f0ff',
27437
26008
  'purple-2': '#efdbff',
27438
26009
  'purple-3': '#d3adf7',
@@ -27553,20 +26124,20 @@ var defaultTheme = {
27553
26124
  'lime-8': '#5b8c00',
27554
26125
  'lime-9': '#3f6600',
27555
26126
  'lime-10': '#254000',
27556
- colorFill: 'rgba(0, 0, 0, 0.06)',
27557
- colorFillSecondary: 'rgba(0, 0, 0, 0.04)',
27558
- colorFillTertiary: 'rgba(0, 0, 0, 0.03)',
26127
+ colorText: 'rgba(0, 0, 0, 0.88)',
26128
+ colorTextSecondary: 'rgba(0, 0, 0, 0.65)',
26129
+ colorTextTertiary: 'rgba(0, 0, 0, 0.45)',
26130
+ colorTextQuaternary: 'rgba(0, 0, 0, 0.25)',
26131
+ colorFill: 'rgba(0, 0, 0, 0.15)',
26132
+ colorFillSecondary: 'rgba(0, 0, 0, 0.06)',
26133
+ colorFillTertiary: 'rgba(0, 0, 0, 0.04)',
27559
26134
  colorFillQuaternary: 'rgba(0, 0, 0, 0.02)',
27560
- bgLayout: '#f5f5f5',
26135
+ colorBgLayout: '#f5f5f5',
27561
26136
  colorBgContainer: '#ffffff',
27562
26137
  colorBgElevated: '#ffffff',
26138
+ colorBgSpotlight: 'rgba(0, 0, 0, 0.85)',
27563
26139
  colorBorder: '#d9d9d9',
27564
26140
  colorBorderSecondary: '#f0f0f0',
27565
- colorSplit: 'rgba(0, 0, 0, 0.06)',
27566
- colorText: 'rgba(0, 0, 0, 0.85)',
27567
- colorTextSecondary: 'rgba(0, 0, 0, 0.45)',
27568
- colorTextTertiary: 'rgba(0, 0, 0, 0.45)',
27569
- colorTextQuaternary: 'rgba(0, 0, 0, 0.25)',
27570
26141
  colorPrimaryBg: '#e6f4ff',
27571
26142
  colorPrimaryBgHover: '#bae0ff',
27572
26143
  colorPrimaryBorder: '#91caff',
@@ -27580,40 +26151,39 @@ var defaultTheme = {
27580
26151
  colorSuccessBgHover: '#d9f7be',
27581
26152
  colorSuccessBorder: '#b7eb8f',
27582
26153
  colorSuccessBorderHover: '#95de64',
27583
- colorSuccessHover: '#73d13d',
26154
+ colorSuccessHover: '#95de64',
27584
26155
  colorSuccessActive: '#389e0d',
27585
26156
  colorSuccessTextHover: '#73d13d',
27586
26157
  colorSuccessText: '#52c41a',
27587
26158
  colorSuccessTextActive: '#389e0d',
27588
- colorErrorBg: '#fff2f0',
27589
- colorErrorBgHover: '#fff1f0',
27590
- colorErrorBorder: '#ffccc7',
27591
- colorErrorBorderHover: '#ffa39e',
26159
+ colorErrorBg: '#fff1f0',
26160
+ colorErrorBgHover: '#ffccc7',
26161
+ colorErrorBorder: '#ffa39e',
26162
+ colorErrorBorderHover: '#ff7875',
27592
26163
  colorErrorHover: '#ff7875',
27593
- colorErrorActive: '#d9363e',
27594
- colorErrorTextHover: '#ff7875',
27595
- colorErrorText: '#ff4d4f',
27596
- colorErrorTextActive: '#d9363e',
26164
+ colorErrorActive: '#cf1322',
26165
+ colorErrorTextHover: '#ff4d4f',
26166
+ colorErrorText: '#f5222d',
26167
+ colorErrorTextActive: '#cf1322',
27597
26168
  colorWarningBg: '#fffbe6',
27598
26169
  colorWarningBgHover: '#fff1b8',
27599
26170
  colorWarningBorder: '#ffe58f',
27600
26171
  colorWarningBorderHover: '#ffd666',
27601
- colorWarningHover: '#ffc53d',
26172
+ colorWarningHover: '#ffd666',
27602
26173
  colorWarningActive: '#d48806',
27603
26174
  colorWarningTextHover: '#ffc53d',
27604
26175
  colorWarningText: '#faad14',
27605
26176
  colorWarningTextActive: '#d48806',
27606
- colorInfoBg: '#e6f7ff',
27607
- colorInfoBgHover: '#bae7ff',
27608
- colorInfoBorder: '#91d5ff',
27609
- colorInfoBorderHover: '#69c0ff',
27610
- colorInfoHover: '#40a9ff',
27611
- colorInfoActive: '#096dd9',
27612
- colorInfoTextHover: '#40a9ff',
27613
- colorInfoText: '#1890ff',
27614
- colorInfoTextActive: '#096dd9',
26177
+ colorInfoBg: '#e6f4ff',
26178
+ colorInfoBgHover: '#bae0ff',
26179
+ colorInfoBorder: '#91caff',
26180
+ colorInfoBorderHover: '#69b1ff',
26181
+ colorInfoHover: '#69b1ff',
26182
+ colorInfoActive: '#0958d9',
26183
+ colorInfoTextHover: '#4096ff',
26184
+ colorInfoText: '#1677ff',
26185
+ colorInfoTextActive: '#0958d9',
27615
26186
  colorBgMask: 'rgba(0, 0, 0, 0.45)',
27616
- colorBgSpotlight: 'rgba(0, 0, 0, 0.85)',
27617
26187
  motionDurationFast: '0.1s',
27618
26188
  motionDurationMid: '0.2s',
27619
26189
  motionDurationSlow: '0.3s',
@@ -27629,34 +26199,34 @@ var defaultTheme = {
27629
26199
  gridSpaceXL: 16,
27630
26200
  gridSpaceXXL: 28,
27631
26201
  lineWidthBold: 2,
27632
- radiusSM: 2,
26202
+ radiusXS: 2,
26203
+ radiusSM: 4,
27633
26204
  radiusLG: 8,
27634
- radiusXL: 16,
26205
+ radiusOuter: 4,
27635
26206
  controlHeightSM: 24,
27636
26207
  controlHeightXS: 16,
27637
26208
  controlHeightLG: 40,
27638
- Layout: {
27639
- colorBgHeader: 'transparent',
27640
- colorBgBody: 'transparent'
27641
- },
27642
26209
  colorLink: '#1677ff',
27643
- colorLinkHover: '#4096ff',
26210
+ colorLinkHover: '#69b1ff',
27644
26211
  colorLinkActive: '#0958d9',
27645
- colorFillContent: 'rgba(0, 0, 0, 0.04)',
27646
- colorFillContentHover: 'rgba(0, 0, 0, 0.06)',
26212
+ colorFillContent: 'rgba(0, 0, 0, 0.06)',
26213
+ colorFillContentHover: 'rgba(0, 0, 0, 0.15)',
27647
26214
  colorFillAlter: 'rgba(0, 0, 0, 0.02)',
27648
- colorBgContainerDisabled: 'rgba(0, 0, 0, 0.03)',
26215
+ colorBgContainerDisabled: 'rgba(0, 0, 0, 0.04)',
27649
26216
  colorBorderBg: '#ffffff',
26217
+ colorSplit: 'rgba(5, 5, 5, 0.06)',
27650
26218
  colorTextPlaceholder: 'rgba(0, 0, 0, 0.25)',
27651
26219
  colorTextDisabled: 'rgba(0, 0, 0, 0.25)',
27652
- colorTextHeading: 'rgba(0, 0, 0, 0.85)',
26220
+ colorTextHeading: 'rgba(0, 0, 0, 0.88)',
27653
26221
  colorTextLabel: 'rgba(0, 0, 0, 0.65)',
27654
- colorTextDescription: 'rgba(0, 0, 0, 0.65)',
26222
+ colorTextDescription: 'rgba(0, 0, 0, 0.45)',
27655
26223
  colorHighlight: '#ff4d4f',
26224
+ colorBgTextHover: 'rgba(0, 0, 0, 0.06)',
26225
+ colorBgTextActive: 'rgba(0, 0, 0, 0.15)',
27656
26226
  colorIcon: 'rgba(0, 0, 0, 0.45)',
27657
- colorIconHover: 'rgba(0, 0, 0, 0.85)',
27658
- colorErrorOutline: '#fff2f0',
27659
- colorWarningOutline: '#fffbe6',
26227
+ colorIconHover: 'rgba(0, 0, 0, 0.88)',
26228
+ colorErrorOutline: 'rgba(255, 22, 5, 0.06)',
26229
+ colorWarningOutline: 'rgba(255, 215, 5, 0.1)',
27660
26230
  fontSizeSM: 12,
27661
26231
  fontSize: 14,
27662
26232
  fontSizeLG: 16,
@@ -27678,14 +26248,17 @@ var defaultTheme = {
27678
26248
  controlLineWidth: 1,
27679
26249
  controlOutlineWidth: 2,
27680
26250
  controlInteractiveSize: 16,
27681
- controlItemBgHover: 'rgba(0, 0, 0, 0.03)',
26251
+ controlItemBgHover: 'rgba(0, 0, 0, 0.04)',
27682
26252
  controlItemBgActive: '#e6f4ff',
27683
26253
  controlItemBgActiveHover: '#bae0ff',
27684
- controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.25)',
26254
+ controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.15)',
27685
26255
  controlTmpOutline: 'rgba(0, 0, 0, 0.02)',
27686
- controlOutline: '#e6f4ff',
26256
+ controlOutline: 'rgba(5, 145, 255, 0.1)',
27687
26257
  controlLineType: 'solid',
27688
- controlRadius: 4,
26258
+ controlRadius: 6,
26259
+ controlRadiusXS: 2,
26260
+ controlRadiusSM: 4,
26261
+ controlRadiusLG: 8,
27689
26262
  fontWeightStrong: 600,
27690
26263
  opacityLoading: 0.65,
27691
26264
  linkDecoration: 'none',
@@ -27700,13 +26273,16 @@ var defaultTheme = {
27700
26273
  paddingSM: 12,
27701
26274
  paddingLG: 24,
27702
26275
  paddingXL: 32,
26276
+ paddingTmp: 20,
27703
26277
  marginXXS: 4,
27704
26278
  marginXS: 8,
27705
26279
  marginSM: 12,
27706
26280
  marginLG: 24,
27707
26281
  marginXL: 32,
27708
26282
  marginXXL: 48,
27709
- boxShadow: '0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)',
26283
+ marginTmp: 20,
26284
+ boxShadow: '\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ',
26285
+ boxShadowSecondary: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
27710
26286
  screenXS: 480,
27711
26287
  screenXSMin: 480,
27712
26288
  screenXSMax: 479,
@@ -27726,18 +26302,16 @@ var defaultTheme = {
27726
26302
  screenXXLMin: 1600,
27727
26303
  screenXXLMax: 1599,
27728
26304
  boxShadowPopoverArrow: '3px 3px 7px rgba(0, 0, 0, 0.1)',
27729
- boxShadowPopoverArrowBottom: '2px 2px 5px rgba(0, 0, 0, 0.1)',
27730
- boxShadowSegmentedSelectedItem: '0 2px 8px -2px rgba(0, 0, 0, 0.05),0 1px 4px -1px rgba(0, 0, 0, 0.07),0 0 1px 0 rgba(0, 0, 0, 0.08)',
27731
- boxShadowCard: '0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)',
27732
- boxShadowDrawerRight: '6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),12px 0 48px 16px rgba(0, 0, 0, 0.03)',
27733
- boxShadowDrawerLeft: '-6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03)',
27734
- boxShadowDrawerUp: '0 -6px 16px -8px rgba(0, 0, 0, 0.32), 0 -9px 28px 0 rgba(0, 0, 0, 0.2),0 -12px 48px 16px rgba(0, 0, 0, 0.12)',
27735
- boxShadowDrawerDown: '0 6px 16px -8px rgba(0, 0, 0, 0.32), 0 9px 28px 0 rgba(0, 0, 0, 0.2), 0 12px 48px 16px rgba(0, 0, 0, 0.12)',
26305
+ boxShadowCard: '\n 0 1px 2px -2px rgba(0, 0, 0, 0.16),\n 0 3px 6px 0 rgba(0, 0, 0, 0.12),\n 0 5px 12px 4px rgba(0, 0, 0, 0.09)\n ',
26306
+ boxShadowDrawerRight: '\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
26307
+ boxShadowDrawerLeft: '\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
26308
+ boxShadowDrawerUp: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
26309
+ boxShadowDrawerDown: '\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
27736
26310
  boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
27737
26311
  boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
27738
26312
  boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
27739
26313
  boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
27740
- _tokenKey: '15a20jx',
26314
+ _tokenKey: 'x82dli',
27741
26315
  _hashId: ''
27742
26316
  };
27743
26317
  var token_token = {
@@ -28577,16 +27151,31 @@ var FieldLabel = /*#__PURE__*/external_React_default().forwardRef(FieldLabelFunc
28577
27151
 
28578
27152
 
28579
27153
  var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
27154
+ /**
27155
+ * @param {string} s
27156
+ */
28580
27157
  var isWildcard = function isWildcard(s) {
28581
27158
  return s === '*' || s === 'x' || s === 'X';
28582
27159
  };
27160
+ /**
27161
+ * @param {string} v
27162
+ */
28583
27163
  var tryParse = function tryParse(v) {
28584
27164
  var n = parseInt(v, 10);
28585
27165
  return isNaN(n) ? v : n;
28586
27166
  };
27167
+ /**
27168
+ * @param {string|number} a
27169
+ * @param {string|number} b
27170
+ */
28587
27171
  var forceType = function forceType(a, b) {
28588
27172
  return typeof_typeof(a) !== typeof_typeof(b) ? [String(a), String(b)] : [a, b];
28589
27173
  };
27174
+ /**
27175
+ * @param {string} a
27176
+ * @param {string} b
27177
+ * @returns number
27178
+ */
28590
27179
  var compareStrings = function compareStrings(a, b) {
28591
27180
  if (isWildcard(a) || isWildcard(b)) return 0;
28592
27181
  var _forceType = forceType(tryParse(a), tryParse(b)),
@@ -28597,6 +27186,11 @@ var compareStrings = function compareStrings(a, b) {
28597
27186
  if (ap < bp) return -1;
28598
27187
  return 0;
28599
27188
  };
27189
+ /**
27190
+ * @param {string|RegExpMatchArray} a
27191
+ * @param {string|RegExpMatchArray} b
27192
+ * @returns number
27193
+ */
28600
27194
  var compareSegments = function compareSegments(a, b) {
28601
27195
  for (var i = 0; i < Math.max(a.length, b.length); i++) {
28602
27196
  var r = compareStrings(a[i] || '0', b[i] || '0');
@@ -28604,6 +27198,10 @@ var compareSegments = function compareSegments(a, b) {
28604
27198
  }
28605
27199
  return 0;
28606
27200
  };
27201
+ /**
27202
+ * @param {string} version
27203
+ * @returns RegExpMatchArray
27204
+ */
28607
27205
  var validateAndParse = function validateAndParse(version) {
28608
27206
  if (typeof version !== 'string') {
28609
27207
  throw new TypeError('Invalid argument expected string');
@@ -29125,9 +27723,19 @@ var dateFormatterMap = {
29125
27723
  dateTime: 'YYYY-MM-DD HH:mm:ss',
29126
27724
  dateTimeRange: 'YYYY-MM-DD HH:mm:ss'
29127
27725
  };
27726
+ /**
27727
+ * 判断是不是一个 object
27728
+ * @param {any} o
27729
+ * @returns boolean
27730
+ */
29128
27731
  function isObject(o) {
29129
27732
  return Object.prototype.toString.call(o) === '[object Object]';
29130
27733
  }
27734
+ /**
27735
+ * 判断是否是一个的简单的 object
27736
+ * @param {{constructor:any}} o
27737
+ * @returns boolean
27738
+ */
29131
27739
  function isPlainObject(o) {
29132
27740
  if (isObject(o) === false) return false;
29133
27741
  // If has modified constructor
@@ -29144,19 +27752,18 @@ function isPlainObject(o) {
29144
27752
  return true;
29145
27753
  }
29146
27754
  /**
29147
- * 一个比较hack的moment判断工具
29148
- * @param value
29149
- * @returns
27755
+ * 一个比较hack的moment判断工具
27756
+ * @param {any} value
27757
+ * @returns boolean
29150
27758
  */
29151
27759
  var isMoment = function isMoment(value) {
29152
27760
  return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
29153
27761
  };
29154
27762
  /**
29155
27763
  * 根据不同的格式转化 dayjs
29156
- *
29157
- * @param value
29158
- * @param dateFormatter
29159
- * @param valueType
27764
+ * @param {dayjs.Dayjs} value
27765
+ * @param {string|((value:dayjs.Dayjs} dateFormatter
27766
+ * @param {string} valueType
29160
27767
  */
29161
27768
  var convertMoment = function convertMoment(value, dateFormatter, valueType) {
29162
27769
  if (!dateFormatter) {
@@ -29180,10 +27787,12 @@ var convertMoment = function convertMoment(value, dateFormatter, valueType) {
29180
27787
  };
29181
27788
  /**
29182
27789
  * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
29183
- *
29184
- * @param value
29185
- * @param dateFormatter
29186
- * @param proColumnsMap
27790
+ * @param {T} value
27791
+ * @param {DateFormatter} dateFormatter
27792
+ * @param {Record<string} valueTypeMap
27793
+ * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
27794
+ * @param {boolean} omitNil?
27795
+ * @param {NamePath} parentKey?
29187
27796
  */
29188
27797
  var conversionMomentValue = function conversionMomentValue(value, dateFormatter, valueTypeMap, omitNil, parentKey) {
29189
27798
  var tmpValue = {};
@@ -29236,6 +27845,12 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
29236
27845
  ;// CONCATENATED MODULE: ./packages/utils/es/dateArrayFormatter/index.js
29237
27846
 
29238
27847
 
27848
+ /**
27849
+ * 通过 format 来格式化日期,因为支持了function 所以需要单独的方法来处理
27850
+ * @param {any} endText
27851
+ * @param {FormatType} format
27852
+ * @return string
27853
+ */
29239
27854
  var formatString = function formatString(endText, format) {
29240
27855
  if (typeof format === 'function') {
29241
27856
  return format(dayjs_min_default()(endText));
@@ -29243,9 +27858,10 @@ var formatString = function formatString(endText, format) {
29243
27858
  return dayjs_min_default()(endText).format(format);
29244
27859
  };
29245
27860
  /**
29246
- * 格式化区域日期
29247
- *
29248
- * @param value
27861
+ * 格式化区域日期,如果是一个数组,会返回 start ~ end
27862
+ * @param {any} value
27863
+ * @param {FormatType | FormatType[]} format
27864
+ * returns string
29249
27865
  */
29250
27866
  var dateArrayFormatter = function dateArrayFormatter(value, format) {
29251
27867
  var _ref = Array.isArray(value) ? value : [],
@@ -29694,6 +28310,11 @@ var useRefFunction = function useRefFunction(reFunction) {
29694
28310
 
29695
28311
 
29696
28312
 
28313
+ /**
28314
+ * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
28315
+ * @param {(...args:T) => Promise<any>} fn
28316
+ * @param {number} wait?
28317
+ */
29697
28318
  function useDebounceFn(fn, wait) {
29698
28319
  var callback = useRefFunction(fn);
29699
28320
  var timer = (0,external_React_.useRef)();
@@ -29784,6 +28405,13 @@ var useLatest = function useLatest(value) {
29784
28405
 
29785
28406
 
29786
28407
 
28408
+ /**
28409
+ * 一个去抖的setState 减少更新的频率
28410
+ * @param {T} value
28411
+ * @param {number=100} delay
28412
+ * @param {DependencyList} deps?
28413
+ * @returns T
28414
+ */
29787
28415
  function useDebounceValue(value) {
29788
28416
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
29789
28417
  var deps = arguments.length > 2 ? arguments[2] : undefined;
@@ -30052,6 +28680,11 @@ function isImg(path) {
30052
28680
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(path);
30053
28681
  }
30054
28682
  ;// CONCATENATED MODULE: ./packages/utils/es/isUrl/index.js
28683
+ /**
28684
+ * 判断是不是一个 url
28685
+ * @param {string|undefined} path
28686
+ * @returns boolean
28687
+ */
30055
28688
  var isUrl = function isUrl(path) {
30056
28689
  if (!path) return false;
30057
28690
  if (!path.startsWith('http')) {
@@ -30068,6 +28701,11 @@ var isUrl = function isUrl(path) {
30068
28701
 
30069
28702
 
30070
28703
  /* eslint-disable prefer-rest-params */
28704
+ /**
28705
+ * 用于合并 n 个对象
28706
+ * @param {any[]} ...rest
28707
+ * @returns T
28708
+ */
30071
28709
  var merge = function merge() {
30072
28710
  var obj = {};
30073
28711
  for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -30110,7 +28748,7 @@ var genNanoid = function genNanoid() {
30110
28748
  /**
30111
28749
  * 生成uuid,如果不支持 randomUUID,就用 genNanoid
30112
28750
  *
30113
- * @returns
28751
+ * @returns string
30114
28752
  */
30115
28753
  var nanoid = function nanoid() {
30116
28754
  if (typeof window === 'undefined') return genNanoid();
@@ -30122,6 +28760,11 @@ var nanoid = function nanoid() {
30122
28760
  return genNanoid();
30123
28761
  };
30124
28762
  ;// CONCATENATED MODULE: ./packages/utils/es/omitBoolean/index.js
28763
+ /**
28764
+ * 剔除 boolean 值
28765
+ * @param {boolean|T} obj
28766
+ * @returns T
28767
+ */
30125
28768
  var omitBoolean = function omitBoolean(obj) {
30126
28769
  if (obj && obj !== true) {
30127
28770
  return obj;
@@ -32538,21 +31181,21 @@ var genProCardStyle = function genProCardStyle(token) {
32538
31181
  fontFamily: token.fontFamily
32539
31182
  },
32540
31183
  '&-box-shadow': {
32541
- boxShadow: token.boxShadowCard,
32542
- borderColor: token.cardHoverableHoverBorder
31184
+ boxShadow: '0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017',
31185
+ borderColor: 'transparent'
32543
31186
  },
32544
31187
  '&-col': {
32545
31188
  width: '100%'
32546
31189
  },
32547
31190
  '&-border': {
32548
- border: token.proCardDefaultBorder
31191
+ border: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
32549
31192
  },
32550
31193
  '&-hoverable': defineProperty_defineProperty({
32551
31194
  cursor: 'pointer',
32552
31195
  transition: 'box-shadow 0.3s, border-color 0.3s',
32553
31196
  '&:hover': {
32554
- borderColor: token.cardHoverableHoverBorder,
32555
- boxShadow: token.cardShadow
31197
+ borderColor: 'transparent',
31198
+ boxShadow: '0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017'
32556
31199
  }
32557
31200
  }, "&".concat(componentCls, "-checked:hover"), {
32558
31201
  borderColor: token.controlOutline
@@ -32713,10 +31356,7 @@ var genGridStyle = function genGridStyle(token) {
32713
31356
  function Card_style_useStyle(prefixCls) {
32714
31357
  return useStyle('ProCard', function (token) {
32715
31358
  var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
32716
- componentCls: ".".concat(prefixCls),
32717
- cardHoverableHoverBorder: 'transparent',
32718
- proCardDefaultBorder: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit),
32719
- cardShadow: '0 1px 2px -2px rgba(0, 0, 0, 0.64), 0 3px 6px 0 rgba(0, 0, 0, 0.48), 0 5px 12px 4px rgba(0, 0, 0, 0.36)'
31359
+ componentCls: ".".concat(prefixCls)
32720
31360
  });
32721
31361
  return [genProCardStyle(proCardToken), genGridStyle(proCardToken)];
32722
31362
  });
@@ -41355,9 +39995,6 @@ var FieldDatePicker = function FieldDatePicker(_ref, ref) {
41355
39995
  return null;
41356
39996
  };
41357
39997
  /* harmony default export */ var DatePicker = (/*#__PURE__*/external_React_default().forwardRef(FieldDatePicker));
41358
- // EXTERNAL MODULE: ./node_modules/lodash.omit/index.js
41359
- var lodash_omit = __webpack_require__(8493);
41360
- var lodash_omit_default = /*#__PURE__*/__webpack_require__.n(lodash_omit);
41361
39998
  ;// CONCATENATED MODULE: ./packages/field/es/components/Digit/index.js
41362
39999
 
41363
40000
 
@@ -41419,7 +40056,7 @@ var FieldDigit = function FieldDigit(_ref, ref) {
41419
40056
  ref: ref,
41420
40057
  min: 0,
41421
40058
  placeholder: placeholder
41422
- }, lodash_omit_default()(fieldProps, 'onChange')), {}, {
40059
+ }, omit_js_es(fieldProps, ['onChange'])), {}, {
41423
40060
  onChange: proxyChange
41424
40061
  }));
41425
40062
  if (renderFormItem) {
@@ -41777,6 +40414,16 @@ var Money_intlMap = {
41777
40414
  'sr-RS': rsMoneyIntl,
41778
40415
  'pt-BR': ptMoneyIntl
41779
40416
  };
40417
+ /**
40418
+ * A function that formats the number.
40419
+ * @param {string | false} moneySymbol - The currency symbol, which is the first parameter of the
40420
+ * formatMoney function.
40421
+ * @param {number | string | undefined} paramsText - The text to be formatted
40422
+ * @param {number} precision - number, // decimal places
40423
+ * @param {any} [config] - the configuration of the number format, which is the same as the
40424
+ * configuration of the number format in the Intl.NumberFormat method.
40425
+ * @returns A function that takes in 4 parameters and returns a string.
40426
+ */
41780
40427
  var getTextByLocale = function getTextByLocale(moneySymbol, paramsText, precision, config) {
41781
40428
  var moneyText = paramsText === null || paramsText === void 0 ? void 0 : paramsText.toString().replaceAll(',', '');
41782
40429
  if (typeof moneyText === 'string') {
@@ -41784,23 +40431,45 @@ var getTextByLocale = function getTextByLocale(moneySymbol, paramsText, precisio
41784
40431
  }
41785
40432
  if (!moneyText && moneyText !== 0) return '';
41786
40433
  try {
41787
- // readonly moneySymbol = false, unused currency
41788
- return new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, Money_intlMap[moneySymbol || 'zh-Hans-CN'] || Money_intlMap['zh-Hans-CN']), {}, {
40434
+ // Formatting the number, when readonly moneySymbol = false, unused currency.
40435
+ var finalMoneyText = new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, Money_intlMap[moneySymbol || 'zh-Hans-CN'] || Money_intlMap['zh-Hans-CN']), {}, {
41789
40436
  maximumFractionDigits: precision
41790
40437
  }, config))
41791
40438
  // fix: #6003 解决未指定货币符号时,金额文本格式化异常问题
41792
- .format(moneyText).substring(+(moneySymbol === false));
40439
+ .format(moneyText);
40440
+ // 是否有金额符号,例如 ¥ $
40441
+ var hasMoneySymbol = moneySymbol === false;
40442
+ /**
40443
+ * 首字母判断是否是正负符号
40444
+ */
40445
+ var _ref = finalMoneyText || '',
40446
+ _ref2 = slicedToArray_slicedToArray(_ref, 1),
40447
+ operatorSymbol = _ref2[0];
40448
+ // 兼容正负号
40449
+ if (['+', '-'].includes(operatorSymbol)) {
40450
+ // 裁剪字符串,有符号截取两位,没有符号截取一位
40451
+ return "".concat(operatorSymbol).concat(finalMoneyText.substring(hasMoneySymbol ? 2 : 1));
40452
+ }
40453
+ // 没有正负符号截取一位
40454
+ return finalMoneyText.substring(hasMoneySymbol ? 1 : 0);
41793
40455
  } catch (error) {
41794
40456
  return moneyText;
41795
40457
  }
41796
40458
  };
40459
+ // 默认的代码类型
41797
40460
  var DefaultPrecisionCont = 2;
41798
- var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(function (_ref, ref) {
41799
- var content = _ref.content,
41800
- numberFormatOptions = _ref.numberFormatOptions,
41801
- numberPopoverRender = _ref.numberPopoverRender,
41802
- open = _ref.open,
41803
- rest = objectWithoutProperties_objectWithoutProperties(_ref, Money_excluded);
40461
+ /**
40462
+ * input 的弹框,用于显示格式化之后的内容
40463
+ *
40464
+ * @result 10,000 -> 一万
40465
+ * @result 10, 00, 000, 000 -> 一亿
40466
+ */
40467
+ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(function (_ref3, ref) {
40468
+ var content = _ref3.content,
40469
+ numberFormatOptions = _ref3.numberFormatOptions,
40470
+ numberPopoverRender = _ref3.numberPopoverRender,
40471
+ open = _ref3.open,
40472
+ rest = objectWithoutProperties_objectWithoutProperties(_ref3, Money_excluded);
41804
40473
  var _useMergedState = (0,useMergedState/* default */.Z)(function () {
41805
40474
  return rest.defaultValue;
41806
40475
  }, {
@@ -41810,6 +40479,9 @@ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(functi
41810
40479
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
41811
40480
  value = _useMergedState2[0],
41812
40481
  onChange = _useMergedState2[1];
40482
+ /**
40483
+ * 如果content 存在要根据 content 渲染一下
40484
+ */
41813
40485
  var dom = content === null || content === void 0 ? void 0 : content(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rest), {}, {
41814
40486
  value: value
41815
40487
  }));
@@ -41841,53 +40513,70 @@ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(functi
41841
40513
  * text: number;
41842
40514
  * moneySymbol?: string; }
41843
40515
  */
41844
- var FieldMoney = function FieldMoney(_ref2, ref) {
40516
+ var FieldMoney = function FieldMoney(_ref4, ref) {
41845
40517
  var _fieldProps$customSym, _fieldProps$precision;
41846
- var text = _ref2.text,
41847
- type = _ref2.mode,
41848
- render = _ref2.render,
41849
- renderFormItem = _ref2.renderFormItem,
41850
- fieldProps = _ref2.fieldProps,
41851
- proFieldKey = _ref2.proFieldKey,
41852
- plain = _ref2.plain,
41853
- valueEnum = _ref2.valueEnum,
41854
- placeholder = _ref2.placeholder,
41855
- _ref2$locale = _ref2.locale,
41856
- locale = _ref2$locale === void 0 ? (_fieldProps$customSym = fieldProps.customSymbol) !== null && _fieldProps$customSym !== void 0 ? _fieldProps$customSym : 'zh-Hans-CN' : _ref2$locale,
41857
- _ref2$customSymbol = _ref2.customSymbol,
41858
- customSymbol = _ref2$customSymbol === void 0 ? fieldProps.customSymbol : _ref2$customSymbol,
41859
- _ref2$numberFormatOpt = _ref2.numberFormatOptions,
41860
- numberFormatOptions = _ref2$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref2$numberFormatOpt,
41861
- _ref2$numberPopoverRe = _ref2.numberPopoverRender,
41862
- numberPopoverRender = _ref2$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref2$numberPopoverRe,
41863
- rest = objectWithoutProperties_objectWithoutProperties(_ref2, Money_excluded2);
40518
+ var text = _ref4.text,
40519
+ type = _ref4.mode,
40520
+ render = _ref4.render,
40521
+ renderFormItem = _ref4.renderFormItem,
40522
+ fieldProps = _ref4.fieldProps,
40523
+ proFieldKey = _ref4.proFieldKey,
40524
+ plain = _ref4.plain,
40525
+ valueEnum = _ref4.valueEnum,
40526
+ placeholder = _ref4.placeholder,
40527
+ _ref4$locale = _ref4.locale,
40528
+ locale = _ref4$locale === void 0 ? (_fieldProps$customSym = fieldProps.customSymbol) !== null && _fieldProps$customSym !== void 0 ? _fieldProps$customSym : 'zh-Hans-CN' : _ref4$locale,
40529
+ _ref4$customSymbol = _ref4.customSymbol,
40530
+ customSymbol = _ref4$customSymbol === void 0 ? fieldProps.customSymbol : _ref4$customSymbol,
40531
+ _ref4$numberFormatOpt = _ref4.numberFormatOptions,
40532
+ numberFormatOptions = _ref4$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref4$numberFormatOpt,
40533
+ _ref4$numberPopoverRe = _ref4.numberPopoverRender,
40534
+ numberPopoverRender = _ref4$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref4$numberPopoverRe,
40535
+ rest = objectWithoutProperties_objectWithoutProperties(_ref4, Money_excluded2);
41864
40536
  var precision = (_fieldProps$precision = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : DefaultPrecisionCont;
41865
40537
  var intl = useIntl();
41866
40538
  // 当手动传入locale时,应该以传入的locale为准,未传入时则根据全局的locale进行国际化
41867
40539
  if (locale && intlMap[locale]) {
41868
40540
  intl = intlMap[locale];
41869
40541
  }
40542
+ /**
40543
+ * 获取货币的符号
40544
+ * 如果 customSymbol 存在直接使用 customSymbol
40545
+ * 如果 moneySymbol 为 false,返回空
40546
+ * 如果没有配置使用默认的
40547
+ */
41870
40548
  var moneySymbol = (0,external_React_.useMemo)(function () {
41871
40549
  if (customSymbol) {
41872
40550
  return customSymbol;
41873
40551
  }
41874
- var defaultText = intl.getMessage('moneySymbol', '¥');
41875
40552
  if (rest.moneySymbol === false || fieldProps.moneySymbol === false) {
41876
40553
  return undefined;
41877
40554
  }
41878
- return defaultText;
40555
+ return intl.getMessage('moneySymbol', '¥');
41879
40556
  }, [customSymbol, fieldProps.moneySymbol, intl, rest.moneySymbol]);
40557
+ /*
40558
+ * A function that formats the number.
40559
+ * 1000 -> 1,000
40560
+ */
41880
40561
  var getFormateValue = (0,external_React_.useCallback)(function (value) {
40562
+ // 新建数字正则,需要配置小数点
41881
40563
  var reg = new RegExp("\\B(?=(\\d{".concat(3 + Math.max(precision - DefaultPrecisionCont, 0), "})+(?!\\d))"), 'g');
40564
+ // 切分为 整数 和 小数 不同
41882
40565
  var _String$split = String(value).split('.'),
41883
40566
  _String$split2 = slicedToArray_slicedToArray(_String$split, 2),
41884
- intS = _String$split2[0],
41885
- floatS = _String$split2[1];
41886
- var resInt = intS.replace(reg, ',');
41887
- var resFloat = '';
41888
- if (floatS && precision > 0) resFloat = ".".concat(floatS.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
41889
- return "".concat(resInt).concat(resFloat);
40567
+ intStr = _String$split2[0],
40568
+ floatStr = _String$split2[1];
40569
+ // 最终的数据string,需要去掉 , 号。
40570
+ var resultInt = intStr.replace(reg, ',');
40571
+ // 计算最终的小数点
40572
+ var resultFloat = '';
40573
+ /* Taking the floatStr and slicing it to the precision. */
40574
+ if (floatStr && precision > 0) {
40575
+ resultFloat = ".".concat(floatStr.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
40576
+ }
40577
+ return "".concat(resultInt).concat(resultFloat);
41890
40578
  }, [precision]);
40579
+ // 如果是阅读模式,直接返回字符串
41891
40580
  if (type === 'read') {
41892
40581
  var dom = (0,jsx_runtime.jsx)("span", {
41893
40582
  ref: ref,
@@ -42649,6 +41338,7 @@ var Segmented_excluded = ["mode", "render", "renderFormItem", "fieldProps", "emp
42649
41338
 
42650
41339
 
42651
41340
 
41341
+
42652
41342
  /**
42653
41343
  * Segmented https://ant.design/components/segmented-cn/
42654
41344
  *
@@ -42701,7 +41391,7 @@ var FieldSegmented = function FieldSegmented(_ref, ref) {
42701
41391
  if (mode === 'edit' || mode === 'update') {
42702
41392
  var _dom = (0,jsx_runtime.jsx)(external_antd_.Segmented, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
42703
41393
  ref: inputRef
42704
- }, fieldProps), {}, {
41394
+ }, omit_js_es(fieldProps || {}, ['allowClear'])), {}, {
42705
41395
  options: options
42706
41396
  }));
42707
41397
  if (renderFormItem) {
@@ -53090,9 +51780,9 @@ var PageHeader = function PageHeader(props) {
53090
51780
  prefixCls: prefixCls
53091
51781
  }), defaultBreadcrumbDom)) !== null && _breadcrumbRender !== void 0 ? _breadcrumbRender : defaultBreadcrumbDom;
53092
51782
  var breadcrumbDom = isBreadcrumbComponent ? breadcrumb : breadcrumbRenderDomFromProps;
53093
- var className = classnames_default()(prefixCls, props.className, customizeClassName, (_classNames = {
51783
+ var className = classnames_default()(prefixCls, customizeClassName, (_classNames = {
53094
51784
  hashId: hashId
53095
- }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-compact"), compact), _classNames));
51785
+ }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-compact"), compact), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-ghost"), true), _classNames));
53096
51786
  var title = renderTitle(prefixCls, props, direction, hashId);
53097
51787
  var childDom = children && renderChildren(prefixCls, children, hashId);
53098
51788
  var footerDom = renderFooter(prefixCls, footer, hashId);
@@ -53286,6 +51976,7 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
53286
51976
  },
53287
51977
  '&-affix': defineProperty_defineProperty({}, "".concat(token.antCls, "-affix"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-warp"), {
53288
51978
  backgroundColor: token.colorBgPageContainerFixed,
51979
+ transition: 'background-color 0.3s',
53289
51980
  boxShadow: '0 2px 8px #f0f1f2'
53290
51981
  }))
53291
51982
  }, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
@@ -53606,7 +52297,10 @@ var PageContainer = function PageContainer(props) {
53606
52297
  offsetTop: value.hasHeader && value.fixedHeader ? token.header.heightLayoutHeader : 0
53607
52298
  }, affixProps), {}, {
53608
52299
  className: "".concat(basePageContainer, "-affix ").concat(hashId),
53609
- children: pageHeaderDom
52300
+ children: (0,jsx_runtime.jsx)("div", {
52301
+ className: "".concat(basePageContainer, "-warp ").concat(hashId),
52302
+ children: pageHeaderDom
52303
+ })
53610
52304
  })) : pageHeaderDom, renderContentDom && (0,jsx_runtime.jsx)(GridContent, {
53611
52305
  children: renderContentDom
53612
52306
  })]
@@ -54763,7 +53457,6 @@ function menu_useStyle(prefixCls) {
54763
53457
 
54764
53458
 
54765
53459
 
54766
-
54767
53460
  var IconFont = create({
54768
53461
  scriptUrl: defaultSettings.iconfontUrl
54769
53462
  });
@@ -54826,7 +53519,6 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
54826
53519
  var designToken = _this.props.token;
54827
53520
  var name = _this.getIntlName(item);
54828
53521
  var children = (item === null || item === void 0 ? void 0 : item.children) || (item === null || item === void 0 ? void 0 : item.routes);
54829
- (0,lib_warning["default"])(!(item === null || item === void 0 ? void 0 : item.routes), 'routes 将会废弃,为了保证兼容请使用 children 作为子节点定义方式');
54830
53522
  var menuType = isGroup && level === 0 ? 'group' : undefined;
54831
53523
  if (Array.isArray(children) && children.length > 0) {
54832
53524
  var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$sider;
@@ -59745,7 +58437,6 @@ var compatibleStyle = function compatibleStyle(token) {
59745
58437
  backgroundColor: 'transparent!important'
59746
58438
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-light"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
59747
58439
  color: token.sider.colorTextMenuActive,
59748
- backgroundColor: token.sider.colorBgMenuItemHover,
59749
58440
  borderRadius: token.radiusBase
59750
58441
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59751
58442
  color: token.sider.colorTextMenuActive
@@ -66590,7 +65281,7 @@ function RecordCreator(props) {
66590
65281
  }
66591
65282
  /**
66592
65283
  * 可以直接放到 Form 中的可编辑表格
66593
- *
65284
+ * A React component that is used to create a table.
66594
65285
  * @param props
66595
65286
  */
66596
65287
  function EditableTable(props) {
@@ -66707,7 +65398,8 @@ function EditableTable(props) {
66707
65398
  var rowKeyName = [props.name, (_finlayRowKey$toStrin2 = finlayRowKey === null || finlayRowKey === void 0 ? void 0 : finlayRowKey.toString()) !== null && _finlayRowKey$toStrin2 !== void 0 ? _finlayRowKey$toStrin2 : ''].flat(1).filter(Boolean);
66708
65399
  var oldTableDate = ((_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : (_formRef$current4$get = _formRef$current4.getFieldsValue) === null || _formRef$current4$get === void 0 ? void 0 : _formRef$current4$get.call(_formRef$current4)) || {};
66709
65400
  var updateValues = (0,set/* default */.Z)(oldTableDate, rowKeyName, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, getRowData(rowIndex)), data || {}));
66710
- return (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldsValue(updateValues);
65401
+ (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldsValue(updateValues);
65402
+ return true;
66711
65403
  }
66712
65404
  });
66713
65405
  });
@@ -66874,6 +65566,11 @@ function EditableTable(props) {
66874
65566
  }) : null]
66875
65567
  });
66876
65568
  }
65569
+ /**
65570
+ * `FieldEditableTable` is a wrapper around `EditableTable` that adds a `Form.Item` around it
65571
+ * @param props - EditableProTableProps<DataType, Params, ValueType>
65572
+ * @returns A function that takes in props and returns a Form.Item component.
65573
+ */
66877
65574
  function FieldEditableTable(props) {
66878
65575
  var form = form_es.useFormInstance();
66879
65576
  if (!props.name) return (0,jsx_runtime.jsx)(EditableTable, objectSpread2_objectSpread2({}, props));
@@ -86365,17 +85062,17 @@ function BaseProList(props) {
86365
85062
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
86366
85063
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
86367
85064
  var version_version = {
86368
- "@ant-design/pro-card": "2.0.13",
86369
- "@ant-design/pro-components": "2.3.17",
86370
- "@ant-design/pro-descriptions": "2.0.15",
86371
- "@ant-design/pro-field": "2.1.8",
86372
- "@ant-design/pro-form": "2.2.6",
86373
- "@ant-design/pro-layout": "7.1.6",
86374
- "@ant-design/pro-list": "2.0.15",
85065
+ "@ant-design/pro-card": "2.0.14",
85066
+ "@ant-design/pro-components": "2.3.19",
85067
+ "@ant-design/pro-descriptions": "2.0.16",
85068
+ "@ant-design/pro-field": "2.1.9",
85069
+ "@ant-design/pro-form": "2.2.7",
85070
+ "@ant-design/pro-layout": "7.1.8",
85071
+ "@ant-design/pro-list": "2.0.16",
86375
85072
  "@ant-design/pro-provider": "2.0.6",
86376
85073
  "@ant-design/pro-skeleton": "2.0.4",
86377
- "@ant-design/pro-table": "3.0.15",
86378
- "@ant-design/pro-utils": "2.2.5"
85074
+ "@ant-design/pro-table": "3.0.16",
85075
+ "@ant-design/pro-utils": "2.2.6"
86379
85076
  };
86380
85077
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
86381
85078