@douyinfe/semi-ui 2.53.3-alpha.1 → 2.53.3

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.
@@ -3062,367 +3062,6 @@ function toDate(argument) {
3062
3062
  }
3063
3063
  module.exports = exports.default;
3064
3064
 
3065
- /***/ }),
3066
-
3067
- /***/ "Q0m1":
3068
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3069
-
3070
- (function (global, factory) {
3071
- true ? module.exports = factory() :
3072
- 0;
3073
- })(this, (function () { 'use strict';
3074
-
3075
- var toStringFunction = Function.prototype.toString;
3076
- var create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf;
3077
- var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
3078
- var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function';
3079
- var WEAK_MAP = typeof WeakMap === 'function';
3080
- /**
3081
- * @function createCache
3082
- *
3083
- * @description
3084
- * get a new cache object to prevent circular references
3085
- *
3086
- * @returns the new cache object
3087
- */
3088
- var createCache = (function () {
3089
- if (WEAK_MAP) {
3090
- return function () { return new WeakMap(); };
3091
- }
3092
- var Cache = /** @class */ (function () {
3093
- function Cache() {
3094
- this._keys = [];
3095
- this._values = [];
3096
- }
3097
- Cache.prototype.has = function (key) {
3098
- return !!~this._keys.indexOf(key);
3099
- };
3100
- Cache.prototype.get = function (key) {
3101
- return this._values[this._keys.indexOf(key)];
3102
- };
3103
- Cache.prototype.set = function (key, value) {
3104
- this._keys.push(key);
3105
- this._values.push(value);
3106
- };
3107
- return Cache;
3108
- }());
3109
- return function () { return new Cache(); };
3110
- })();
3111
- /**
3112
- * @function getCleanClone
3113
- *
3114
- * @description
3115
- * get an empty version of the object with the same prototype it has
3116
- *
3117
- * @param object the object to build a clean clone from
3118
- * @param realm the realm the object resides in
3119
- * @returns the empty cloned object
3120
- */
3121
- var getCleanClone = function (object, realm) {
3122
- var prototype = object.__proto__ || getPrototypeOf$1(object);
3123
- if (!prototype) {
3124
- return create(null);
3125
- }
3126
- var Constructor = prototype.constructor;
3127
- if (Constructor === realm.Object) {
3128
- return prototype === realm.Object.prototype ? {} : create(prototype);
3129
- }
3130
- if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
3131
- try {
3132
- return new Constructor();
3133
- }
3134
- catch (_a) { }
3135
- }
3136
- return create(prototype);
3137
- };
3138
- /**
3139
- * @function getObjectCloneLoose
3140
- *
3141
- * @description
3142
- * get a copy of the object based on loose rules, meaning all enumerable keys
3143
- * and symbols are copied, but property descriptors are not considered
3144
- *
3145
- * @param object the object to clone
3146
- * @param realm the realm the object resides in
3147
- * @param handleCopy the function that handles copying the object
3148
- * @returns the copied object
3149
- */
3150
- var getObjectCloneLoose = function (object, realm, handleCopy, cache) {
3151
- var clone = getCleanClone(object, realm);
3152
- // set in the cache immediately to be able to reuse the object recursively
3153
- cache.set(object, clone);
3154
- for (var key in object) {
3155
- if (hasOwnProperty.call(object, key)) {
3156
- clone[key] = handleCopy(object[key], cache);
3157
- }
3158
- }
3159
- if (SYMBOL_PROPERTIES) {
3160
- var symbols = getOwnPropertySymbols(object);
3161
- for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {
3162
- symbol = symbols[index];
3163
- if (propertyIsEnumerable.call(object, symbol)) {
3164
- clone[symbol] = handleCopy(object[symbol], cache);
3165
- }
3166
- }
3167
- }
3168
- return clone;
3169
- };
3170
- /**
3171
- * @function getObjectCloneStrict
3172
- *
3173
- * @description
3174
- * get a copy of the object based on strict rules, meaning all keys and symbols
3175
- * are copied based on the original property descriptors
3176
- *
3177
- * @param object the object to clone
3178
- * @param realm the realm the object resides in
3179
- * @param handleCopy the function that handles copying the object
3180
- * @returns the copied object
3181
- */
3182
- var getObjectCloneStrict = function (object, realm, handleCopy, cache) {
3183
- var clone = getCleanClone(object, realm);
3184
- // set in the cache immediately to be able to reuse the object recursively
3185
- cache.set(object, clone);
3186
- var properties = SYMBOL_PROPERTIES
3187
- ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object))
3188
- : getOwnPropertyNames(object);
3189
- for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {
3190
- property = properties[index];
3191
- if (property !== 'callee' && property !== 'caller') {
3192
- descriptor = getOwnPropertyDescriptor(object, property);
3193
- if (descriptor) {
3194
- // Only clone the value if actually a value, not a getter / setter.
3195
- if (!descriptor.get && !descriptor.set) {
3196
- descriptor.value = handleCopy(object[property], cache);
3197
- }
3198
- try {
3199
- defineProperty(clone, property, descriptor);
3200
- }
3201
- catch (error) {
3202
- // Tee above can fail on node in edge cases, so fall back to the loose assignment.
3203
- clone[property] = descriptor.value;
3204
- }
3205
- }
3206
- else {
3207
- // In extra edge cases where the property descriptor cannot be retrived, fall back to
3208
- // the loose assignment.
3209
- clone[property] = handleCopy(object[property], cache);
3210
- }
3211
- }
3212
- }
3213
- return clone;
3214
- };
3215
- /**
3216
- * @function getRegExpFlags
3217
- *
3218
- * @description
3219
- * get the flags to apply to the copied regexp
3220
- *
3221
- * @param regExp the regexp to get the flags of
3222
- * @returns the flags for the regexp
3223
- */
3224
- var getRegExpFlags = function (regExp) {
3225
- var flags = '';
3226
- if (regExp.global) {
3227
- flags += 'g';
3228
- }
3229
- if (regExp.ignoreCase) {
3230
- flags += 'i';
3231
- }
3232
- if (regExp.multiline) {
3233
- flags += 'm';
3234
- }
3235
- if (regExp.unicode) {
3236
- flags += 'u';
3237
- }
3238
- if (regExp.sticky) {
3239
- flags += 'y';
3240
- }
3241
- return flags;
3242
- };
3243
-
3244
- // utils
3245
- var isArray = Array.isArray;
3246
- var getPrototypeOf = Object.getPrototypeOf;
3247
- var GLOBAL_THIS = (function () {
3248
- if (typeof globalThis !== 'undefined') {
3249
- return globalThis;
3250
- }
3251
- if (typeof self !== 'undefined') {
3252
- return self;
3253
- }
3254
- if (typeof window !== 'undefined') {
3255
- return window;
3256
- }
3257
- if (typeof __webpack_require__.g !== 'undefined') {
3258
- return __webpack_require__.g;
3259
- }
3260
- if (console && console.error) {
3261
- console.error('Unable to locate global object, returning "this".');
3262
- }
3263
- return this;
3264
- })();
3265
- /**
3266
- * @function copy
3267
- *
3268
- * @description
3269
- * copy an value deeply as much as possible
3270
- *
3271
- * If `strict` is applied, then all properties (including non-enumerable ones)
3272
- * are copied with their original property descriptors on both objects and arrays.
3273
- *
3274
- * The value is compared to the global constructors in the `realm` provided,
3275
- * and the native constructor is always used to ensure that extensions of native
3276
- * objects (allows in ES2015+) are maintained.
3277
- *
3278
- * @param value the value to copy
3279
- * @param [options] the options for copying with
3280
- * @param [options.isStrict] should the copy be strict
3281
- * @param [options.realm] the realm (this) value the value is copied from
3282
- * @returns the copied value
3283
- */
3284
- function copy(value, options) {
3285
- // manually coalesced instead of default parameters for performance
3286
- var isStrict = !!(options && options.isStrict);
3287
- var realm = (options && options.realm) || GLOBAL_THIS;
3288
- var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose;
3289
- /**
3290
- * @function handleCopy
3291
- *
3292
- * @description
3293
- * copy the value recursively based on its type
3294
- *
3295
- * @param value the value to copy
3296
- * @returns the copied value
3297
- */
3298
- var handleCopy = function (value, cache) {
3299
- if (!value || typeof value !== 'object') {
3300
- return value;
3301
- }
3302
- if (cache.has(value)) {
3303
- return cache.get(value);
3304
- }
3305
- var prototype = value.__proto__ || getPrototypeOf(value);
3306
- var Constructor = prototype && prototype.constructor;
3307
- // plain objects
3308
- if (!Constructor || Constructor === realm.Object) {
3309
- return getObjectClone(value, realm, handleCopy, cache);
3310
- }
3311
- var clone;
3312
- // arrays
3313
- if (isArray(value)) {
3314
- // if strict, include non-standard properties
3315
- if (isStrict) {
3316
- return getObjectCloneStrict(value, realm, handleCopy, cache);
3317
- }
3318
- clone = new Constructor();
3319
- cache.set(value, clone);
3320
- for (var index = 0, length_1 = value.length; index < length_1; ++index) {
3321
- clone[index] = handleCopy(value[index], cache);
3322
- }
3323
- return clone;
3324
- }
3325
- // dates
3326
- if (value instanceof realm.Date) {
3327
- return new Constructor(value.getTime());
3328
- }
3329
- // regexps
3330
- if (value instanceof realm.RegExp) {
3331
- clone = new Constructor(value.source, value.flags || getRegExpFlags(value));
3332
- clone.lastIndex = value.lastIndex;
3333
- return clone;
3334
- }
3335
- // maps
3336
- if (realm.Map && value instanceof realm.Map) {
3337
- clone = new Constructor();
3338
- cache.set(value, clone);
3339
- value.forEach(function (value, key) {
3340
- clone.set(key, handleCopy(value, cache));
3341
- });
3342
- return clone;
3343
- }
3344
- // sets
3345
- if (realm.Set && value instanceof realm.Set) {
3346
- clone = new Constructor();
3347
- cache.set(value, clone);
3348
- value.forEach(function (value) {
3349
- clone.add(handleCopy(value, cache));
3350
- });
3351
- return clone;
3352
- }
3353
- // blobs
3354
- if (realm.Blob && value instanceof realm.Blob) {
3355
- return value.slice(0, value.size, value.type);
3356
- }
3357
- // buffers (node-only)
3358
- if (realm.Buffer && realm.Buffer.isBuffer(value)) {
3359
- clone = realm.Buffer.allocUnsafe
3360
- ? realm.Buffer.allocUnsafe(value.length)
3361
- : new Constructor(value.length);
3362
- cache.set(value, clone);
3363
- value.copy(clone);
3364
- return clone;
3365
- }
3366
- // arraybuffers / dataviews
3367
- if (realm.ArrayBuffer) {
3368
- // dataviews
3369
- if (realm.ArrayBuffer.isView(value)) {
3370
- clone = new Constructor(value.buffer.slice(0));
3371
- cache.set(value, clone);
3372
- return clone;
3373
- }
3374
- // arraybuffers
3375
- if (value instanceof realm.ArrayBuffer) {
3376
- clone = value.slice(0);
3377
- cache.set(value, clone);
3378
- return clone;
3379
- }
3380
- }
3381
- // if the value cannot / should not be cloned, don't
3382
- if (
3383
- // promise-like
3384
- typeof value.then === 'function' ||
3385
- // errors
3386
- value instanceof Error ||
3387
- // weakmaps
3388
- (realm.WeakMap && value instanceof realm.WeakMap) ||
3389
- // weaksets
3390
- (realm.WeakSet && value instanceof realm.WeakSet)) {
3391
- return value;
3392
- }
3393
- // assume anything left is a custom constructor
3394
- return getObjectClone(value, realm, handleCopy, cache);
3395
- };
3396
- return handleCopy(value, createCache());
3397
- }
3398
- // Adding reference to allow usage in CommonJS libraries compiled using TSC, which
3399
- // expects there to be a default property on the exported value. See
3400
- // [#37](https://github.com/planttheidea/fast-copy/issues/37) for details.
3401
- copy.default = copy;
3402
- /**
3403
- * @function strictCopy
3404
- *
3405
- * @description
3406
- * copy the value with `strict` option pre-applied
3407
- *
3408
- * @param value the value to copy
3409
- * @param [options] the options for copying with
3410
- * @param [options.realm] the realm (this) value the value is copied from
3411
- * @returns the copied value
3412
- */
3413
- copy.strict = function strictCopy(value, options) {
3414
- return copy(value, {
3415
- isStrict: true,
3416
- realm: options ? options.realm : void 0,
3417
- });
3418
- };
3419
-
3420
- return copy;
3421
-
3422
- }));
3423
- //# sourceMappingURL=fast-copy.js.map
3424
-
3425
-
3426
3065
  /***/ }),
3427
3066
 
3428
3067
  /***/ "QF3D":
@@ -17522,7 +17161,7 @@ module.exports = exports.default;
17522
17161
  /******/ };
17523
17162
  /******/
17524
17163
  /******/ // Execute the module function
17525
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
17164
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
17526
17165
  /******/
17527
17166
  /******/ // Flag the module as loaded
17528
17167
  /******/ module.loaded = true;
@@ -23618,7 +23257,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23618
23257
  copied: false,
23619
23258
  // ellipsis
23620
23259
  // if text is overflow in container
23621
- isOverflowed: false,
23260
+ isOverflowed: true,
23622
23261
  ellipsisContent: props.children,
23623
23262
  expanded: false,
23624
23263
  // if text is truncated with js
@@ -27277,8 +26916,8 @@ class Avatar extends BaseComponent {
27277
26916
  }
27278
26917
  }
27279
26918
  render() {
27280
- var _a, _b;
27281
- const _c = this.props,
26919
+ var _a;
26920
+ const _b = this.props,
27282
26921
  {
27283
26922
  shape,
27284
26923
  children,
@@ -27297,8 +26936,8 @@ class Avatar extends BaseComponent {
27297
26936
  topSlot,
27298
26937
  border,
27299
26938
  contentMotion
27300
- } = _c,
27301
- others = avatar_rest(_c, ["shape", "children", "size", "color", "className", "hoverMask", "onClick", "imgAttr", "src", "srcSet", "style", "alt", "gap", "bottomSlot", "topSlot", "border", "contentMotion"]);
26939
+ } = _b,
26940
+ others = avatar_rest(_b, ["shape", "children", "size", "color", "className", "hoverMask", "onClick", "imgAttr", "src", "srcSet", "style", "alt", "gap", "bottomSlot", "topSlot", "border", "contentMotion"]);
27302
26941
  const {
27303
26942
  isImgExist,
27304
26943
  hoverContent,
@@ -27328,8 +26967,8 @@ class Avatar extends BaseComponent {
27328
26967
  }), this.getContent(), hoverRender);
27329
26968
  if (border) {
27330
26969
  const borderStyle = {};
27331
- if (border === null || border === void 0 ? void 0 : border.color) {
27332
- borderStyle['borderColor'] = border.color;
26970
+ if (typeof border === 'object' && (border === null || border === void 0 ? void 0 : border.color)) {
26971
+ borderStyle['borderColor'] = border === null || border === void 0 ? void 0 : border.color;
27333
26972
  }
27334
26973
  avatar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
27335
26974
  style: Object.assign({
@@ -27340,11 +26979,11 @@ class Avatar extends BaseComponent {
27340
26979
  className: classnames_default()([`${avatar_prefixCls}-additionalBorder`, `${avatar_prefixCls}-additionalBorder-${size}`, {
27341
26980
  [`${avatar_prefixCls}-${shape}`]: shape
27342
26981
  }])
27343
- }), ((_a = this.props.border) === null || _a === void 0 ? void 0 : _a.motion) && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
26982
+ }), typeof this.props.border === 'object' && this.props.border.motion && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
27344
26983
  style: borderStyle,
27345
26984
  className: classnames_default()([`${avatar_prefixCls}-additionalBorder`, `${avatar_prefixCls}-additionalBorder-${size}`, {
27346
26985
  [`${avatar_prefixCls}-${shape}`]: shape,
27347
- [`${avatar_prefixCls}-additionalBorder-animated`]: (_b = this.props.border) === null || _b === void 0 ? void 0 : _b.motion
26986
+ [`${avatar_prefixCls}-additionalBorder-animated`]: typeof this.props.border === 'object' && ((_a = this.props.border) === null || _a === void 0 ? void 0 : _a.motion)
27348
26987
  }])
27349
26988
  }));
27350
26989
  }
@@ -54350,9 +53989,406 @@ function getDefaultPickerDate(options) {
54350
53989
  nextDate: nextDate
54351
53990
  };
54352
53991
  }
54353
- // EXTERNAL MODULE: ../../node_modules/fast-copy/dist/fast-copy.js
54354
- var fast_copy = __webpack_require__("Q0m1");
54355
- var fast_copy_default = /*#__PURE__*/__webpack_require__.n(fast_copy);
53992
+ ;// CONCATENATED MODULE: ../../node_modules/fast-copy/dist/esm/index.mjs
53993
+ var toStringFunction = Function.prototype.toString;
53994
+ var create = Object.create;
53995
+ var toStringObject = Object.prototype.toString;
53996
+ /**
53997
+ * @classdesc Fallback cache for when WeakMap is not natively supported
53998
+ */
53999
+ var LegacyCache = /** @class */ (function () {
54000
+ function LegacyCache() {
54001
+ this._keys = [];
54002
+ this._values = [];
54003
+ }
54004
+ LegacyCache.prototype.has = function (key) {
54005
+ return !!~this._keys.indexOf(key);
54006
+ };
54007
+ LegacyCache.prototype.get = function (key) {
54008
+ return this._values[this._keys.indexOf(key)];
54009
+ };
54010
+ LegacyCache.prototype.set = function (key, value) {
54011
+ this._keys.push(key);
54012
+ this._values.push(value);
54013
+ };
54014
+ return LegacyCache;
54015
+ }());
54016
+ function createCacheLegacy() {
54017
+ return new LegacyCache();
54018
+ }
54019
+ function createCacheModern() {
54020
+ return new WeakMap();
54021
+ }
54022
+ /**
54023
+ * Get a new cache object to prevent circular references.
54024
+ */
54025
+ var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
54026
+ /**
54027
+ * Get an empty version of the object with the same prototype it has.
54028
+ */
54029
+ function getCleanClone(prototype) {
54030
+ if (!prototype) {
54031
+ return create(null);
54032
+ }
54033
+ var Constructor = prototype.constructor;
54034
+ if (Constructor === Object) {
54035
+ return prototype === Object.prototype ? {} : create(prototype);
54036
+ }
54037
+ if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
54038
+ try {
54039
+ return new Constructor();
54040
+ }
54041
+ catch (_a) { }
54042
+ }
54043
+ return create(prototype);
54044
+ }
54045
+ function getRegExpFlagsLegacy(regExp) {
54046
+ var flags = '';
54047
+ if (regExp.global) {
54048
+ flags += 'g';
54049
+ }
54050
+ if (regExp.ignoreCase) {
54051
+ flags += 'i';
54052
+ }
54053
+ if (regExp.multiline) {
54054
+ flags += 'm';
54055
+ }
54056
+ if (regExp.unicode) {
54057
+ flags += 'u';
54058
+ }
54059
+ if (regExp.sticky) {
54060
+ flags += 'y';
54061
+ }
54062
+ return flags;
54063
+ }
54064
+ function getRegExpFlagsModern(regExp) {
54065
+ return regExp.flags;
54066
+ }
54067
+ /**
54068
+ * Get the flags to apply to the copied regexp.
54069
+ */
54070
+ var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
54071
+ function getTagLegacy(value) {
54072
+ var type = toStringObject.call(value);
54073
+ return type.substring(8, type.length - 1);
54074
+ }
54075
+ function getTagModern(value) {
54076
+ return value[Symbol.toStringTag] || getTagLegacy(value);
54077
+ }
54078
+ /**
54079
+ * Get the tag of the value passed, so that the correct copier can be used.
54080
+ */
54081
+ var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;
54082
+
54083
+ var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
54084
+ var _a = Object.prototype, esm_hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
54085
+ var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';
54086
+ function getStrictPropertiesModern(object) {
54087
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
54088
+ }
54089
+ /**
54090
+ * Get the properites used when copying objects strictly. This includes both keys and symbols.
54091
+ */
54092
+ var getStrictProperties = SUPPORTS_SYMBOL
54093
+ ? getStrictPropertiesModern
54094
+ : getOwnPropertyNames;
54095
+ /**
54096
+ * Striclty copy all properties contained on the object.
54097
+ */
54098
+ function copyOwnPropertiesStrict(value, clone, state) {
54099
+ var properties = getStrictProperties(value);
54100
+ for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
54101
+ property = properties[index];
54102
+ if (property === 'callee' || property === 'caller') {
54103
+ continue;
54104
+ }
54105
+ descriptor = getOwnPropertyDescriptor(value, property);
54106
+ if (!descriptor) {
54107
+ // In extra edge cases where the property descriptor cannot be retrived, fall back to
54108
+ // the loose assignment.
54109
+ clone[property] = state.copier(value[property], state);
54110
+ continue;
54111
+ }
54112
+ // Only clone the value if actually a value, not a getter / setter.
54113
+ if (!descriptor.get && !descriptor.set) {
54114
+ descriptor.value = state.copier(descriptor.value, state);
54115
+ }
54116
+ try {
54117
+ defineProperty(clone, property, descriptor);
54118
+ }
54119
+ catch (error) {
54120
+ // Tee above can fail on node in edge cases, so fall back to the loose assignment.
54121
+ clone[property] = descriptor.value;
54122
+ }
54123
+ }
54124
+ return clone;
54125
+ }
54126
+ /**
54127
+ * Deeply copy the indexed values in the array.
54128
+ */
54129
+ function copyArrayLoose(array, state) {
54130
+ var clone = new state.Constructor();
54131
+ // set in the cache immediately to be able to reuse the object recursively
54132
+ state.cache.set(array, clone);
54133
+ for (var index = 0, length_2 = array.length; index < length_2; ++index) {
54134
+ clone[index] = state.copier(array[index], state);
54135
+ }
54136
+ return clone;
54137
+ }
54138
+ /**
54139
+ * Deeply copy the indexed values in the array, as well as any custom properties.
54140
+ */
54141
+ function copyArrayStrict(array, state) {
54142
+ var clone = new state.Constructor();
54143
+ // set in the cache immediately to be able to reuse the object recursively
54144
+ state.cache.set(array, clone);
54145
+ return copyOwnPropertiesStrict(array, clone, state);
54146
+ }
54147
+ /**
54148
+ * Copy the contents of the ArrayBuffer.
54149
+ */
54150
+ function copyArrayBuffer(arrayBuffer, _state) {
54151
+ return arrayBuffer.slice(0);
54152
+ }
54153
+ /**
54154
+ * Create a new Blob with the contents of the original.
54155
+ */
54156
+ function copyBlob(blob, _state) {
54157
+ return blob.slice(0, blob.size, blob.type);
54158
+ }
54159
+ /**
54160
+ * Create a new DataView with the contents of the original.
54161
+ */
54162
+ function copyDataView(dataView, state) {
54163
+ return new state.Constructor(copyArrayBuffer(dataView.buffer));
54164
+ }
54165
+ /**
54166
+ * Create a new Date based on the time of the original.
54167
+ */
54168
+ function copyDate(date, state) {
54169
+ return new state.Constructor(date.getTime());
54170
+ }
54171
+ /**
54172
+ * Deeply copy the keys and values of the original.
54173
+ */
54174
+ function copyMapLoose(map, state) {
54175
+ var clone = new state.Constructor();
54176
+ // set in the cache immediately to be able to reuse the object recursively
54177
+ state.cache.set(map, clone);
54178
+ map.forEach(function (value, key) {
54179
+ clone.set(key, state.copier(value, state));
54180
+ });
54181
+ return clone;
54182
+ }
54183
+ /**
54184
+ * Deeply copy the keys and values of the original, as well as any custom properties.
54185
+ */
54186
+ function copyMapStrict(map, state) {
54187
+ return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
54188
+ }
54189
+ function copyObjectLooseLegacy(object, state) {
54190
+ var clone = getCleanClone(state.prototype);
54191
+ // set in the cache immediately to be able to reuse the object recursively
54192
+ state.cache.set(object, clone);
54193
+ for (var key in object) {
54194
+ if (esm_hasOwnProperty.call(object, key)) {
54195
+ clone[key] = state.copier(object[key], state);
54196
+ }
54197
+ }
54198
+ return clone;
54199
+ }
54200
+ function copyObjectLooseModern(object, state) {
54201
+ var clone = getCleanClone(state.prototype);
54202
+ // set in the cache immediately to be able to reuse the object recursively
54203
+ state.cache.set(object, clone);
54204
+ for (var key in object) {
54205
+ if (esm_hasOwnProperty.call(object, key)) {
54206
+ clone[key] = state.copier(object[key], state);
54207
+ }
54208
+ }
54209
+ var symbols = getOwnPropertySymbols(object);
54210
+ for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
54211
+ symbol = symbols[index];
54212
+ if (propertyIsEnumerable.call(object, symbol)) {
54213
+ clone[symbol] = state.copier(object[symbol], state);
54214
+ }
54215
+ }
54216
+ return clone;
54217
+ }
54218
+ /**
54219
+ * Deeply copy the properties (keys and symbols) and values of the original.
54220
+ */
54221
+ var copyObjectLoose = SUPPORTS_SYMBOL
54222
+ ? copyObjectLooseModern
54223
+ : copyObjectLooseLegacy;
54224
+ /**
54225
+ * Deeply copy the properties (keys and symbols) and values of the original, as well
54226
+ * as any hidden or non-enumerable properties.
54227
+ */
54228
+ function copyObjectStrict(object, state) {
54229
+ var clone = getCleanClone(state.prototype);
54230
+ // set in the cache immediately to be able to reuse the object recursively
54231
+ state.cache.set(object, clone);
54232
+ return copyOwnPropertiesStrict(object, clone, state);
54233
+ }
54234
+ /**
54235
+ * Create a new primitive wrapper from the value of the original.
54236
+ */
54237
+ function copyPrimitiveWrapper(primitiveObject, state) {
54238
+ return new state.Constructor(primitiveObject.valueOf());
54239
+ }
54240
+ /**
54241
+ * Create a new RegExp based on the value and flags of the original.
54242
+ */
54243
+ function copyRegExp(regExp, state) {
54244
+ var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
54245
+ clone.lastIndex = regExp.lastIndex;
54246
+ return clone;
54247
+ }
54248
+ /**
54249
+ * Return the original value (an identity function).
54250
+ *
54251
+ * @note
54252
+ * THis is used for objects that cannot be copied, such as WeakMap.
54253
+ */
54254
+ function copySelf(value, _state) {
54255
+ return value;
54256
+ }
54257
+ /**
54258
+ * Deeply copy the values of the original.
54259
+ */
54260
+ function copySetLoose(set, state) {
54261
+ var clone = new state.Constructor();
54262
+ // set in the cache immediately to be able to reuse the object recursively
54263
+ state.cache.set(set, clone);
54264
+ set.forEach(function (value) {
54265
+ clone.add(state.copier(value, state));
54266
+ });
54267
+ return clone;
54268
+ }
54269
+ /**
54270
+ * Deeply copy the values of the original, as well as any custom properties.
54271
+ */
54272
+ function copySetStrict(set, state) {
54273
+ return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
54274
+ }
54275
+
54276
+ var esm_isArray = Array.isArray;
54277
+ var esm_assign = Object.assign;
54278
+ var getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; });
54279
+ var DEFAULT_LOOSE_OPTIONS = {
54280
+ array: copyArrayLoose,
54281
+ arrayBuffer: copyArrayBuffer,
54282
+ blob: copyBlob,
54283
+ dataView: copyDataView,
54284
+ date: copyDate,
54285
+ error: copySelf,
54286
+ map: copyMapLoose,
54287
+ object: copyObjectLoose,
54288
+ regExp: copyRegExp,
54289
+ set: copySetLoose,
54290
+ };
54291
+ var DEFAULT_STRICT_OPTIONS = esm_assign({}, DEFAULT_LOOSE_OPTIONS, {
54292
+ array: copyArrayStrict,
54293
+ map: copyMapStrict,
54294
+ object: copyObjectStrict,
54295
+ set: copySetStrict,
54296
+ });
54297
+ /**
54298
+ * Get the copiers used for each specific object tag.
54299
+ */
54300
+ function getTagSpecificCopiers(options) {
54301
+ return {
54302
+ Arguments: options.object,
54303
+ Array: options.array,
54304
+ ArrayBuffer: options.arrayBuffer,
54305
+ Blob: options.blob,
54306
+ Boolean: copyPrimitiveWrapper,
54307
+ DataView: options.dataView,
54308
+ Date: options.date,
54309
+ Error: options.error,
54310
+ Float32Array: options.arrayBuffer,
54311
+ Float64Array: options.arrayBuffer,
54312
+ Int8Array: options.arrayBuffer,
54313
+ Int16Array: options.arrayBuffer,
54314
+ Int32Array: options.arrayBuffer,
54315
+ Map: options.map,
54316
+ Number: copyPrimitiveWrapper,
54317
+ Object: options.object,
54318
+ Promise: copySelf,
54319
+ RegExp: options.regExp,
54320
+ Set: options.set,
54321
+ String: copyPrimitiveWrapper,
54322
+ WeakMap: copySelf,
54323
+ WeakSet: copySelf,
54324
+ Uint8Array: options.arrayBuffer,
54325
+ Uint8ClampedArray: options.arrayBuffer,
54326
+ Uint16Array: options.arrayBuffer,
54327
+ Uint32Array: options.arrayBuffer,
54328
+ Uint64Array: options.arrayBuffer,
54329
+ };
54330
+ }
54331
+ /**
54332
+ * Create a custom copier based on the object-specific copy methods passed.
54333
+ */
54334
+ function createCopier(options) {
54335
+ var normalizedOptions = esm_assign({}, DEFAULT_LOOSE_OPTIONS, options);
54336
+ var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
54337
+ var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
54338
+ function copier(value, state) {
54339
+ state.prototype = state.Constructor = undefined;
54340
+ if (!value || typeof value !== 'object') {
54341
+ return value;
54342
+ }
54343
+ if (state.cache.has(value)) {
54344
+ return state.cache.get(value);
54345
+ }
54346
+ state.prototype = getPrototypeOf(value);
54347
+ state.Constructor = state.prototype && state.prototype.constructor;
54348
+ // plain objects
54349
+ if (!state.Constructor || state.Constructor === Object) {
54350
+ return object(value, state);
54351
+ }
54352
+ // arrays
54353
+ if (esm_isArray(value)) {
54354
+ return array(value, state);
54355
+ }
54356
+ var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
54357
+ if (tagSpecificCopier) {
54358
+ return tagSpecificCopier(value, state);
54359
+ }
54360
+ return typeof value.then === 'function' ? value : object(value, state);
54361
+ }
54362
+ return function copy(value) {
54363
+ return copier(value, {
54364
+ Constructor: undefined,
54365
+ cache: createCache(),
54366
+ copier: copier,
54367
+ prototype: undefined,
54368
+ });
54369
+ };
54370
+ }
54371
+ /**
54372
+ * Create a custom copier based on the object-specific copy methods passed, defaulting to the
54373
+ * same internals as `copyStrict`.
54374
+ */
54375
+ function createStrictCopier(options) {
54376
+ return createCopier(esm_assign({}, DEFAULT_STRICT_OPTIONS, options));
54377
+ }
54378
+ /**
54379
+ * Copy an value deeply as much as possible, where strict recreation of object properties
54380
+ * are maintained. All properties (including non-enumerable ones) are copied with their
54381
+ * original property descriptors on both objects and arrays.
54382
+ */
54383
+ var copyStrict = createStrictCopier({});
54384
+ /**
54385
+ * Copy an value deeply as much as possible.
54386
+ */
54387
+ var index = createCopier({});
54388
+
54389
+
54390
+ //# sourceMappingURL=index.mjs.map
54391
+
54356
54392
  ;// CONCATENATED MODULE: ../semi-foundation/datePicker/inputFoundation.ts
54357
54393
 
54358
54394
 
@@ -54469,7 +54505,7 @@ class inputFoundation_InputFoundation extends foundation {
54469
54505
  type,
54470
54506
  format
54471
54507
  });
54472
- const newInsetInputValue = set_default()(fast_copy_default()(insetInputValue), valuePath, value);
54508
+ const newInsetInputValue = set_default()(index(insetInputValue), valuePath, value);
54473
54509
  const insetInputStr = this.concatInsetInputValue({
54474
54510
  insetInputValue: newInsetInputValue
54475
54511
  });
@@ -54503,7 +54539,7 @@ class inputFoundation_InputFoundation extends foundation {
54503
54539
  defaultPickerValue,
54504
54540
  dateFnsLocale
54505
54541
  } = this._adapter.getProps();
54506
- const insetInputValueWithTime = fast_copy_default()(insetInputValue);
54542
+ const insetInputValueWithTime = index(insetInputValue);
54507
54543
  const {
54508
54544
  nowDate,
54509
54545
  nextDate
@@ -58624,7 +58660,7 @@ class YearAndMonthFoundation extends foundation {
58624
58660
  } = this.getProps();
58625
58661
  const left = datePicker_constants_strings.PANEL_TYPE_LEFT;
58626
58662
  const right = datePicker_constants_strings.PANEL_TYPE_RIGHT;
58627
- const year = fast_copy_default()(currentYear);
58663
+ const year = index(currentYear);
58628
58664
  year[panelType] = item.value;
58629
58665
  // make sure the right panel time is always less than the left panel time
58630
58666
  if (type === 'monthRange') {
@@ -58651,7 +58687,7 @@ class YearAndMonthFoundation extends foundation {
58651
58687
  } = this.getProps();
58652
58688
  const left = datePicker_constants_strings.PANEL_TYPE_LEFT;
58653
58689
  const right = datePicker_constants_strings.PANEL_TYPE_RIGHT;
58654
- const month = fast_copy_default()(currentMonth);
58690
+ const month = index(currentMonth);
58655
58691
  month[panelType] = item.month;
58656
58692
  // make sure the right panel time is always less than the left panel time
58657
58693
  if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.value > month[right]) {
@@ -58698,7 +58734,7 @@ class YearAndMonthFoundation extends foundation {
58698
58734
  });
58699
58735
  }
58700
58736
  if (validMonth) {
58701
- const month = fast_copy_default()(currentMonth);
58737
+ const month = index(currentMonth);
58702
58738
  month[panelType] = validMonth.month;
58703
58739
  // change year and month same time
58704
58740
  this._adapter.setCurrentYearAndMonth(year, month);
@@ -68195,7 +68231,7 @@ class OverflowListFoundation extends foundation {
68195
68231
  const {
68196
68232
  items
68197
68233
  } = this.getProps();
68198
- return fast_copy_default()(items).reverse();
68234
+ return index(items).reverse();
68199
68235
  };
68200
68236
  }
68201
68237
  getOverflowItem() {
@@ -68223,7 +68259,7 @@ class OverflowListFoundation extends foundation {
68223
68259
  return overflowList;
68224
68260
  }
68225
68261
  handleIntersect(entries) {
68226
- const visibleState = fast_copy_default()(this.getState('visibleState'));
68262
+ const visibleState = index(this.getState('visibleState'));
68227
68263
  const res = {};
68228
68264
  entries.forEach(entry => {
68229
68265
  const itemKey = get_default()(entry, 'target.dataset.scrollkey');
@@ -96759,7 +96795,7 @@ function mergeProps(props) {
96759
96795
  delete rest.defaultValue;
96760
96796
  delete rest.checked;
96761
96797
  if (typeof initValue !== 'undefined') {
96762
- initValue = fast_copy_default()(initValue);
96798
+ initValue = index(initValue);
96763
96799
  }
96764
96800
  const required = isRequired(rules);
96765
96801
  emptyValue = typeof emptyValue !== 'undefined' ? emptyValue : '';
@@ -98908,8 +98944,8 @@ class ArrayFieldComponent extends external_root_React_commonjs2_react_commonjs_r
98908
98944
  // whether the fields inside arrayField should use props.initValue in current render process
98909
98945
  this.shouldUseInitValue = !context.getArrayField(field);
98910
98946
  // Separate the arrays that reset and the usual add and remove modify, otherwise they will affect each other
98911
- const initValueCopyForFormState = fast_copy_default()(initValue);
98912
- const initValueCopyForReset = fast_copy_default()(initValue);
98947
+ const initValueCopyForFormState = index(initValue);
98948
+ const initValueCopyForReset = index(initValue);
98913
98949
  context.registerArrayField(field, initValueCopyForReset);
98914
98950
  // register ArrayField will update state.updateKey to render, So there is no need to execute forceUpdate here
98915
98951
  context.updateStateValue(field, initValueCopyForFormState, {