@majoo-ui/react 1.59.6-rc.13 → 1.59.6-rc.15

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.
Files changed (3) hide show
  1. package/index.esm.js +390 -355
  2. package/index.umd.js +389 -354
  3. package/package.json +3 -2
package/index.umd.js CHANGED
@@ -80,11 +80,11 @@
80
80
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
81
81
 
82
82
  var check = function (it) {
83
- return it && it.Math == Math && it;
83
+ return it && it.Math === Math && it;
84
84
  };
85
85
 
86
86
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
87
- var global$p =
87
+ var global$r =
88
88
  // eslint-disable-next-line es/no-global-this -- safe
89
89
  check(typeof globalThis == 'object' && globalThis) ||
90
90
  check(typeof window == 'object' && window) ||
@@ -92,7 +92,7 @@
92
92
  check(typeof self == 'object' && self) ||
93
93
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
94
94
  // eslint-disable-next-line no-new-func -- fallback
95
- (function () { return this; })() || Function('return this')();
95
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
96
96
 
97
97
  var objectGetOwnPropertyDescriptor = {};
98
98
 
@@ -109,7 +109,7 @@
109
109
  // Detect IE8's incomplete defineProperty implementation
110
110
  var descriptors = !fails$s(function () {
111
111
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
112
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
112
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
113
113
  });
114
114
 
115
115
  var fails$r = fails$t;
@@ -188,7 +188,7 @@
188
188
  // eslint-disable-next-line no-prototype-builtins -- safe
189
189
  return !$Object$4('z').propertyIsEnumerable(0);
190
190
  }) ? function (it) {
191
- return classof$9(it) == 'String' ? split$3(it, '') : $Object$4(it);
191
+ return classof$9(it) === 'String' ? split$3(it, '') : $Object$4(it);
192
192
  } : $Object$4;
193
193
 
194
194
  // we can't use just `it == null` since of `document.all` special case
@@ -250,7 +250,7 @@
250
250
  return typeof it == 'object' ? it !== null : isCallable$o(it);
251
251
  };
252
252
 
253
- var global$o = global$p;
253
+ var global$q = global$r;
254
254
  var isCallable$n = isCallable$p;
255
255
 
256
256
  var aFunction = function (argument) {
@@ -258,7 +258,7 @@
258
258
  };
259
259
 
260
260
  var getBuiltIn$7 = function (namespace, method) {
261
- return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
261
+ return arguments.length < 2 ? aFunction(global$q[namespace]) : global$q[namespace] && global$q[namespace][method];
262
262
  };
263
263
 
264
264
  var uncurryThis$x = functionUncurryThis;
@@ -267,12 +267,12 @@
267
267
 
268
268
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
269
269
 
270
- var global$n = global$p;
270
+ var global$p = global$r;
271
271
  var userAgent$5 = engineUserAgent;
272
272
 
273
- var process$4 = global$n.process;
274
- var Deno$1 = global$n.Deno;
275
- var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
273
+ var process$3 = global$p.process;
274
+ var Deno$1 = global$p.Deno;
275
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
276
276
  var v8 = versions && versions.v8;
277
277
  var match, version;
278
278
 
@@ -296,22 +296,25 @@
296
296
  var engineV8Version = version;
297
297
 
298
298
  /* eslint-disable es/no-symbol -- required for testing */
299
-
300
299
  var V8_VERSION$1 = engineV8Version;
301
300
  var fails$p = fails$t;
301
+ var global$o = global$r;
302
+
303
+ var $String$6 = global$o.String;
302
304
 
303
305
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
304
306
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$p(function () {
305
- var symbol = Symbol();
307
+ var symbol = Symbol('symbol detection');
306
308
  // Chrome 38 Symbol has incorrect toString conversion
307
309
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
308
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
310
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
311
+ // of course, fail.
312
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
309
313
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
310
314
  !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
311
315
  });
312
316
 
313
317
  /* eslint-disable es/no-symbol -- required for testing */
314
-
315
318
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
316
319
 
317
320
  var useSymbolAsUid = NATIVE_SYMBOL$2
@@ -383,24 +386,24 @@
383
386
 
384
387
  var isPure = false;
385
388
 
386
- var global$m = global$p;
389
+ var global$n = global$r;
387
390
 
388
391
  // eslint-disable-next-line es/no-object-defineproperty -- safe
389
392
  var defineProperty$7 = Object.defineProperty;
390
393
 
391
394
  var defineGlobalProperty$3 = function (key, value) {
392
395
  try {
393
- defineProperty$7(global$m, key, { value: value, configurable: true, writable: true });
396
+ defineProperty$7(global$n, key, { value: value, configurable: true, writable: true });
394
397
  } catch (error) {
395
- global$m[key] = value;
398
+ global$n[key] = value;
396
399
  } return value;
397
400
  };
398
401
 
399
- var global$l = global$p;
402
+ var global$m = global$r;
400
403
  var defineGlobalProperty$2 = defineGlobalProperty$3;
401
404
 
402
405
  var SHARED = '__core-js_shared__';
403
- var store$3 = global$l[SHARED] || defineGlobalProperty$2(SHARED, {});
406
+ var store$3 = global$m[SHARED] || defineGlobalProperty$2(SHARED, {});
404
407
 
405
408
  var sharedStore = store$3;
406
409
 
@@ -409,10 +412,10 @@
409
412
  (shared$4.exports = function (key, value) {
410
413
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
411
414
  })('versions', []).push({
412
- version: '3.29.1',
415
+ version: '3.32.2',
413
416
  mode: 'global',
414
417
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
415
- license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
418
+ license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
416
419
  source: 'https://github.com/zloirock/core-js'
417
420
  });
418
421
 
@@ -448,14 +451,14 @@
448
451
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$k(++id + postfix, 36);
449
452
  };
450
453
 
451
- var global$k = global$p;
454
+ var global$l = global$r;
452
455
  var shared$3 = shared$4.exports;
453
456
  var hasOwn$e = hasOwnProperty_1;
454
457
  var uid$1 = uid$2;
455
458
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
456
459
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
457
460
 
458
- var Symbol$7 = global$k.Symbol;
461
+ var Symbol$7 = global$l.Symbol;
459
462
  var WellKnownSymbolsStore = shared$3('wks');
460
463
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7['for'] || Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
461
464
 
@@ -503,10 +506,10 @@
503
506
  return isSymbol$4(key) ? key : key + '';
504
507
  };
505
508
 
506
- var global$j = global$p;
509
+ var global$k = global$r;
507
510
  var isObject$b = isObject$e;
508
511
 
509
- var document$3 = global$j.document;
512
+ var document$3 = global$k.document;
510
513
  // typeof document.createElement is 'object' in old IE
511
514
  var EXISTS$1 = isObject$b(document$3) && isObject$b(document$3.createElement);
512
515
 
@@ -523,7 +526,7 @@
523
526
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
524
527
  return Object.defineProperty(createElement$1('div'), 'a', {
525
528
  get: function () { return 7; }
526
- }).a != 7;
529
+ }).a !== 7;
527
530
  });
528
531
 
529
532
  var DESCRIPTORS$e = descriptors;
@@ -561,7 +564,7 @@
561
564
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
562
565
  value: 42,
563
566
  writable: false
564
- }).prototype != 42;
567
+ }).prototype !== 42;
565
568
  });
566
569
 
567
570
  var isObject$a = isObject$e;
@@ -665,10 +668,10 @@
665
668
 
666
669
  var inspectSource$3 = store$1.inspectSource;
667
670
 
668
- var global$i = global$p;
671
+ var global$j = global$r;
669
672
  var isCallable$i = isCallable$p;
670
673
 
671
- var WeakMap$1 = global$i.WeakMap;
674
+ var WeakMap$1 = global$j.WeakMap;
672
675
 
673
676
  var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
674
677
 
@@ -684,7 +687,7 @@
684
687
  var hiddenKeys$4 = {};
685
688
 
686
689
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
687
- var global$h = global$p;
690
+ var global$i = global$r;
688
691
  var isObject$9 = isObject$e;
689
692
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
690
693
  var hasOwn$b = hasOwnProperty_1;
@@ -693,8 +696,8 @@
693
696
  var hiddenKeys$3 = hiddenKeys$4;
694
697
 
695
698
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
696
- var TypeError$4 = global$h.TypeError;
697
- var WeakMap = global$h.WeakMap;
699
+ var TypeError$4 = global$i.TypeError;
700
+ var WeakMap = global$i.WeakMap;
698
701
  var set$1, get$1, has;
699
702
 
700
703
  var enforce = function (it) {
@@ -904,10 +907,10 @@
904
907
  var value;
905
908
  // Array#includes uses SameValueZero equality algorithm
906
909
  // eslint-disable-next-line no-self-compare -- NaN check
907
- if (IS_INCLUDES && el != el) while (length > index) {
910
+ if (IS_INCLUDES && el !== el) while (length > index) {
908
911
  value = O[index++];
909
912
  // eslint-disable-next-line no-self-compare -- NaN check
910
- if (value != value) return true;
913
+ if (value !== value) return true;
911
914
  // Array#indexOf ignores holes, Array#includes - not
912
915
  } else for (;length > index; index++) {
913
916
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -1012,8 +1015,8 @@
1012
1015
 
1013
1016
  var isForced$3 = function (feature, detection) {
1014
1017
  var value = data[normalize$1(feature)];
1015
- return value == POLYFILL ? true
1016
- : value == NATIVE ? false
1018
+ return value === POLYFILL ? true
1019
+ : value === NATIVE ? false
1017
1020
  : isCallable$f(detection) ? fails$l(detection)
1018
1021
  : !!detection;
1019
1022
  };
@@ -1028,7 +1031,7 @@
1028
1031
 
1029
1032
  var isForced_1 = isForced$3;
1030
1033
 
1031
- var global$g = global$p;
1034
+ var global$h = global$r;
1032
1035
  var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
1033
1036
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
1034
1037
  var defineBuiltIn$a = defineBuiltIn$b;
@@ -1057,11 +1060,11 @@
1057
1060
  var STATIC = options.stat;
1058
1061
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1059
1062
  if (GLOBAL) {
1060
- target = global$g;
1063
+ target = global$h;
1061
1064
  } else if (STATIC) {
1062
- target = global$g[TARGET] || defineGlobalProperty(TARGET, {});
1065
+ target = global$h[TARGET] || defineGlobalProperty(TARGET, {});
1063
1066
  } else {
1064
- target = (global$g[TARGET] || {}).prototype;
1067
+ target = (global$h[TARGET] || {}).prototype;
1065
1068
  }
1066
1069
  if (target) for (key in source) {
1067
1070
  sourceProperty = source[key];
@@ -1126,11 +1129,11 @@
1126
1129
  var A = {};
1127
1130
  var B = {};
1128
1131
  // eslint-disable-next-line es/no-symbol -- safe
1129
- var symbol = Symbol();
1132
+ var symbol = Symbol('assign detection');
1130
1133
  var alphabet = 'abcdefghijklmnopqrst';
1131
1134
  A[symbol] = 7;
1132
1135
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1133
- return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1136
+ return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1134
1137
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1135
1138
  var T = toObject$5(target);
1136
1139
  var argumentsLength = arguments.length;
@@ -1244,7 +1247,12 @@
1244
1247
  }
1245
1248
  }
1246
1249
  return to.concat(ar || Array.prototype.slice.call(from));
1247
- }
1250
+ }
1251
+
1252
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1253
+ var e = new Error(message);
1254
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1255
+ };
1248
1256
 
1249
1257
  var _a;
1250
1258
  var styled = (_a = react.createStitches({
@@ -1561,7 +1569,6 @@
1561
1569
  var html$2 = getBuiltIn$4('document', 'documentElement');
1562
1570
 
1563
1571
  /* global ActiveXObject -- old IE, WSH */
1564
-
1565
1572
  var anObject$f = anObject$j;
1566
1573
  var definePropertiesModule = objectDefineProperties;
1567
1574
  var enumBugKeys = enumBugKeys$3;
@@ -1654,7 +1661,7 @@
1654
1661
 
1655
1662
  // Array.prototype[@@unscopables]
1656
1663
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1657
- if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1664
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1658
1665
  defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1659
1666
  configurable: true,
1660
1667
  value: create$3(null)
@@ -1795,7 +1802,6 @@
1795
1802
  };
1796
1803
 
1797
1804
  /* eslint-disable no-proto -- safe */
1798
-
1799
1805
  var uncurryThisAccessor = functionUncurryThisAccessor;
1800
1806
  var anObject$e = anObject$j;
1801
1807
  var aPossiblePrototype = aPossiblePrototype$1;
@@ -1852,12 +1858,15 @@
1852
1858
 
1853
1859
  var getIterationMethod = function (KIND) {
1854
1860
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1855
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1861
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1862
+
1856
1863
  switch (KIND) {
1857
1864
  case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1858
1865
  case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1859
1866
  case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1860
- } return function () { return new IteratorConstructor(this); };
1867
+ }
1868
+
1869
+ return function () { return new IteratorConstructor(this); };
1861
1870
  };
1862
1871
 
1863
1872
  var TO_STRING_TAG = NAME + ' Iterator';
@@ -1867,7 +1876,7 @@
1867
1876
  || IterablePrototype['@@iterator']
1868
1877
  || DEFAULT && IterablePrototype[DEFAULT];
1869
1878
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1870
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1879
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1871
1880
  var CurrentIteratorPrototype, methods, KEY;
1872
1881
 
1873
1882
  // fix native
@@ -1887,7 +1896,7 @@
1887
1896
  }
1888
1897
 
1889
1898
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1890
- if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1899
+ if (PROPER_FUNCTION_NAME$2 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1891
1900
  if (CONFIGURABLE_FUNCTION_NAME) {
1892
1901
  createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
1893
1902
  } else {
@@ -1966,9 +1975,10 @@
1966
1975
  state.target = undefined;
1967
1976
  return createIterResultObject$1(undefined, true);
1968
1977
  }
1969
- if (kind == 'keys') return createIterResultObject$1(index, false);
1970
- if (kind == 'values') return createIterResultObject$1(target[index], false);
1971
- return createIterResultObject$1([index, target[index]], false);
1978
+ switch (kind) {
1979
+ case 'keys': return createIterResultObject$1(index, false);
1980
+ case 'values': return createIterResultObject$1(target[index], false);
1981
+ } return createIterResultObject$1([index, target[index]], false);
1972
1982
  }, 'values');
1973
1983
 
1974
1984
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -2030,7 +2040,7 @@
2030
2040
 
2031
2041
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2032
2042
 
2033
- var global$f = global$p;
2043
+ var global$g = global$r;
2034
2044
  var DOMIterables = domIterables;
2035
2045
  var DOMTokenListPrototype = domTokenListPrototype;
2036
2046
  var ArrayIteratorMethods = es_array_iterator;
@@ -2064,7 +2074,7 @@
2064
2074
  };
2065
2075
 
2066
2076
  for (var COLLECTION_NAME in DOMIterables) {
2067
- handlePrototype(global$f[COLLECTION_NAME] && global$f[COLLECTION_NAME].prototype, COLLECTION_NAME);
2077
+ handlePrototype(global$g[COLLECTION_NAME] && global$g[COLLECTION_NAME].prototype, COLLECTION_NAME);
2068
2078
  }
2069
2079
 
2070
2080
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2087,7 +2097,7 @@
2087
2097
  var $Object = Object;
2088
2098
 
2089
2099
  // ES3 wrong here
2090
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
2100
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
2091
2101
 
2092
2102
  // fallback for IE11 Script Access Denied error
2093
2103
  var tryGet = function (it, key) {
@@ -2105,7 +2115,7 @@
2105
2115
  // builtinTag case
2106
2116
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
2107
2117
  // ES3 arguments fallback
2108
- : (result = classofRaw$1(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
2118
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
2109
2119
  };
2110
2120
 
2111
2121
  var classof$7 = classof$8;
@@ -2128,7 +2138,7 @@
2128
2138
 
2129
2139
  var $$l = _export;
2130
2140
  var DESCRIPTORS$5 = descriptors;
2131
- var global$e = global$p;
2141
+ var global$f = global$r;
2132
2142
  var uncurryThis$o = functionUncurryThis;
2133
2143
  var hasOwn$5 = hasOwnProperty_1;
2134
2144
  var isCallable$9 = isCallable$p;
@@ -2137,7 +2147,7 @@
2137
2147
  var defineBuiltInAccessor$3 = defineBuiltInAccessor$4;
2138
2148
  var copyConstructorProperties = copyConstructorProperties$2;
2139
2149
 
2140
- var NativeSymbol = global$e.Symbol;
2150
+ var NativeSymbol = global$f.Symbol;
2141
2151
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
2142
2152
 
2143
2153
  if (DESCRIPTORS$5 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
@@ -2160,7 +2170,7 @@
2160
2170
  SymbolWrapper.prototype = SymbolPrototype;
2161
2171
  SymbolPrototype.constructor = SymbolWrapper;
2162
2172
 
2163
- var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
2173
+ var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
2164
2174
  var thisSymbolValue = uncurryThis$o(SymbolPrototype.valueOf);
2165
2175
  var symbolDescriptiveString = uncurryThis$o(SymbolPrototype.toString);
2166
2176
  var regexp = /^Symbol\((.*)\)[^)]+$/;
@@ -2215,7 +2225,7 @@
2215
2225
  // https://tc39.es/ecma262/#sec-isregexp
2216
2226
  var isRegexp = function (it) {
2217
2227
  var isRegExp;
2218
- return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$6(it) == 'RegExp');
2228
+ return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$6(it) === 'RegExp');
2219
2229
  };
2220
2230
 
2221
2231
  var isRegExp$2 = isRegexp;
@@ -3861,7 +3871,7 @@
3861
3871
  onClick: e => {
3862
3872
  e.preventDefault();
3863
3873
  e.stopPropagation();
3864
- value === null || value === void 0 ? void 0 : value.onRemove();
3874
+ value === null || value === void 0 || value.onRemove();
3865
3875
  },
3866
3876
  __self: undefined,
3867
3877
  __source: {
@@ -3916,7 +3926,7 @@
3916
3926
  lineNumber: 213,
3917
3927
  columnNumber: 27
3918
3928
  }
3919
- }, props === null || props === void 0 ? void 0 : (_props$icon = props.icon) === null || _props$icon === void 0 ? void 0 : _props$icon.call(props)), /*#__PURE__*/React__namespace.createElement(Flex$1, {
3929
+ }, props === null || props === void 0 || (_props$icon = props.icon) === null || _props$icon === void 0 ? void 0 : _props$icon.call(props)), /*#__PURE__*/React__namespace.createElement(Flex$1, {
3920
3930
  gap: 2,
3921
3931
  direction: "column",
3922
3932
  css: {
@@ -3947,7 +3957,7 @@
3947
3957
  onClick: e => {
3948
3958
  e.preventDefault();
3949
3959
  e.stopPropagation();
3950
- props === null || props === void 0 ? void 0 : props.onRemove();
3960
+ props === null || props === void 0 || props.onRemove();
3951
3961
  },
3952
3962
  closeCenter: !props.title && !props.link,
3953
3963
  __self: undefined,
@@ -7071,7 +7081,7 @@
7071
7081
  onFocus: () => {
7072
7082
  var _inputProps$onFocus;
7073
7083
  onValueChange(props.value);
7074
- inputProps === null || inputProps === void 0 ? void 0 : (_inputProps$onFocus = inputProps.onFocus) === null || _inputProps$onFocus === void 0 ? void 0 : _inputProps$onFocus.call(inputProps);
7084
+ inputProps === null || inputProps === void 0 || (_inputProps$onFocus = inputProps.onFocus) === null || _inputProps$onFocus === void 0 || _inputProps$onFocus.call(inputProps);
7075
7085
  },
7076
7086
  asChild: true,
7077
7087
  __self: this,
@@ -7088,7 +7098,7 @@
7088
7098
  onFocus: () => {
7089
7099
  var _inputProps$onFocus2;
7090
7100
  onValueChange(props.value);
7091
- inputProps === null || inputProps === void 0 ? void 0 : (_inputProps$onFocus2 = inputProps.onFocus) === null || _inputProps$onFocus2 === void 0 ? void 0 : _inputProps$onFocus2.call(inputProps);
7101
+ inputProps === null || inputProps === void 0 || (_inputProps$onFocus2 = inputProps.onFocus) === null || _inputProps$onFocus2 === void 0 || _inputProps$onFocus2.call(inputProps);
7092
7102
  },
7093
7103
  asChild: true,
7094
7104
  __self: this,
@@ -7261,15 +7271,15 @@
7261
7271
  };
7262
7272
 
7263
7273
  var fails$g = fails$t;
7264
- var global$d = global$p;
7274
+ var global$e = global$r;
7265
7275
 
7266
7276
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
7267
- var $RegExp$2 = global$d.RegExp;
7277
+ var $RegExp$2 = global$e.RegExp;
7268
7278
 
7269
7279
  var UNSUPPORTED_Y$3 = fails$g(function () {
7270
7280
  var re = $RegExp$2('a', 'y');
7271
7281
  re.lastIndex = 2;
7272
- return re.exec('abcd') != null;
7282
+ return re.exec('abcd') !== null;
7273
7283
  });
7274
7284
 
7275
7285
  // UC Browser bug
@@ -7282,7 +7292,7 @@
7282
7292
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
7283
7293
  var re = $RegExp$2('^r', 'gy');
7284
7294
  re.lastIndex = 2;
7285
- return re.exec('str') != null;
7295
+ return re.exec('str') !== null;
7286
7296
  });
7287
7297
 
7288
7298
  var regexpStickyHelpers = {
@@ -7292,10 +7302,10 @@
7292
7302
  };
7293
7303
 
7294
7304
  var fails$f = fails$t;
7295
- var global$c = global$p;
7305
+ var global$d = global$r;
7296
7306
 
7297
7307
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
7298
- var $RegExp$1 = global$c.RegExp;
7308
+ var $RegExp$1 = global$d.RegExp;
7299
7309
 
7300
7310
  var regexpUnsupportedDotAll = fails$f(function () {
7301
7311
  var re = $RegExp$1('.', 's');
@@ -7303,10 +7313,10 @@
7303
7313
  });
7304
7314
 
7305
7315
  var fails$e = fails$t;
7306
- var global$b = global$p;
7316
+ var global$c = global$r;
7307
7317
 
7308
7318
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
7309
- var $RegExp = global$b.RegExp;
7319
+ var $RegExp = global$c.RegExp;
7310
7320
 
7311
7321
  var regexpUnsupportedNcg = fails$e(function () {
7312
7322
  var re = $RegExp('(?<a>b)', 'g');
@@ -7469,7 +7479,7 @@
7469
7479
  // String methods call symbol-named RegEp methods
7470
7480
  var O = {};
7471
7481
  O[SYMBOL] = function () { return 7; };
7472
- return ''[KEY](O) != 7;
7482
+ return ''[KEY](O) !== 7;
7473
7483
  });
7474
7484
 
7475
7485
  var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$d(function () {
@@ -7490,7 +7500,10 @@
7490
7500
  re[SYMBOL] = /./[SYMBOL];
7491
7501
  }
7492
7502
 
7493
- re.exec = function () { execCalled = true; return null; };
7503
+ re.exec = function () {
7504
+ execCalled = true;
7505
+ return null;
7506
+ };
7494
7507
 
7495
7508
  re[SYMBOL]('');
7496
7509
  return !execCalled;
@@ -7784,13 +7797,16 @@
7784
7797
  if (!functionalReplace) replaceValue = toString$d(replaceValue);
7785
7798
 
7786
7799
  var global = rx.global;
7800
+ var fullUnicode;
7787
7801
  if (global) {
7788
- var fullUnicode = rx.unicode;
7802
+ fullUnicode = rx.unicode;
7789
7803
  rx.lastIndex = 0;
7790
7804
  }
7805
+
7791
7806
  var results = [];
7807
+ var result;
7792
7808
  while (true) {
7793
- var result = regExpExec$1(rx, S);
7809
+ result = regExpExec$1(rx, S);
7794
7810
  if (result === null) break;
7795
7811
 
7796
7812
  push$5(results, result);
@@ -7808,6 +7824,7 @@
7808
7824
  var matched = toString$d(result[0]);
7809
7825
  var position = max$1(min$3(toIntegerOrInfinity$2(result.index), S.length), 0);
7810
7826
  var captures = [];
7827
+ var replacement;
7811
7828
  // NOTE: This is equivalent to
7812
7829
  // captures = result.slice(1).map(maybeToString)
7813
7830
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
@@ -7818,7 +7835,7 @@
7818
7835
  if (functionalReplace) {
7819
7836
  var replacerArgs = concat([matched], captures, position, S);
7820
7837
  if (namedCaptures !== undefined) push$5(replacerArgs, namedCaptures);
7821
- var replacement = toString$d(apply$2(replaceValue, undefined, replacerArgs));
7838
+ replacement = toString$d(apply$2(replaceValue, undefined, replacerArgs));
7822
7839
  } else {
7823
7840
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
7824
7841
  }
@@ -7827,6 +7844,7 @@
7827
7844
  nextSourcePosition = position + matched.length;
7828
7845
  }
7829
7846
  }
7847
+
7830
7848
  return accumulatedResult + stringSlice$6(S, nextSourcePosition);
7831
7849
  }
7832
7850
  ];
@@ -7837,7 +7855,7 @@
7837
7855
  // eslint-disable-next-line es/no-object-is -- safe
7838
7856
  var sameValue$1 = Object.is || function is(x, y) {
7839
7857
  // eslint-disable-next-line no-self-compare -- NaN check
7840
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
7858
+ return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
7841
7859
  };
7842
7860
 
7843
7861
  var call$b = functionCall;
@@ -7979,7 +7997,8 @@
7979
7997
  var k = toAbsoluteIndex(start, length);
7980
7998
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
7981
7999
  var result = $Array$1(max(fin - k, 0));
7982
- for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
8000
+ var n = 0;
8001
+ for (; k < fin; k++, n++) createProperty$1(result, n, O[k]);
7983
8002
  result.length = n;
7984
8003
  return result;
7985
8004
  };
@@ -8026,11 +8045,11 @@
8026
8045
  fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
8027
8046
  var internalSplit;
8028
8047
  if (
8029
- 'abbc'.split(/(b)*/)[1] == 'c' ||
8048
+ 'abbc'.split(/(b)*/)[1] === 'c' ||
8030
8049
  // eslint-disable-next-line regexp/no-empty-group -- required for testing
8031
- 'test'.split(/(?:)/, -1).length != 4 ||
8032
- 'ab'.split(/(?:ab)*/).length != 2 ||
8033
- '.'.split(/(.?)(.?)/).length != 4 ||
8050
+ 'test'.split(/(?:)/, -1).length !== 4 ||
8051
+ 'ab'.split(/(?:ab)*/).length !== 2 ||
8052
+ '.'.split(/(.?)(.?)/).length !== 4 ||
8034
8053
  // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
8035
8054
  '.'.split(/()()/).length > 1 ||
8036
8055
  ''.split(/.?/).length
@@ -8176,7 +8195,7 @@
8176
8195
  trim: createMethod$1(3)
8177
8196
  };
8178
8197
 
8179
- var global$a = global$p;
8198
+ var global$b = global$r;
8180
8199
  var fails$9 = fails$t;
8181
8200
  var uncurryThis$d = functionUncurryThis;
8182
8201
  var toString$9 = toString$j;
@@ -8184,8 +8203,8 @@
8184
8203
  var whitespaces$2 = whitespaces$4;
8185
8204
 
8186
8205
  var charAt$4 = uncurryThis$d(''.charAt);
8187
- var $parseFloat$1 = global$a.parseFloat;
8188
- var Symbol$6 = global$a.Symbol;
8206
+ var $parseFloat$1 = global$b.parseFloat;
8207
+ var Symbol$6 = global$b.Symbol;
8189
8208
  var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
8190
8209
  var FORCED$4 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
8191
8210
  // MS Edge 18- broken with boxed symbols
@@ -8196,7 +8215,7 @@
8196
8215
  var numberParseFloat = FORCED$4 ? function parseFloat(string) {
8197
8216
  var trimmedString = trim$1(toString$9(string));
8198
8217
  var result = $parseFloat$1(trimmedString);
8199
- return result === 0 && charAt$4(trimmedString, 0) == '-' ? -0 : result;
8218
+ return result === 0 && charAt$4(trimmedString, 0) === '-' ? -0 : result;
8200
8219
  } : $parseFloat$1;
8201
8220
 
8202
8221
  var $$h = _export;
@@ -8204,7 +8223,7 @@
8204
8223
 
8205
8224
  // `parseFloat` method
8206
8225
  // https://tc39.es/ecma262/#sec-parsefloat-string
8207
- $$h({ global: true, forced: parseFloat != $parseFloat }, {
8226
+ $$h({ global: true, forced: parseFloat !== $parseFloat }, {
8208
8227
  parseFloat: $parseFloat
8209
8228
  });
8210
8229
 
@@ -8226,7 +8245,7 @@
8226
8245
  var str = toString$8(requireObjectCoercible$2(this));
8227
8246
  var result = '';
8228
8247
  var n = toIntegerOrInfinity$1(count);
8229
- if (n < 0 || n == Infinity) throw $RangeError$2('Wrong number of repetitions');
8248
+ if (n < 0 || n === Infinity) throw $RangeError$2('Wrong number of repetitions');
8230
8249
  for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
8231
8250
  return result;
8232
8251
  };
@@ -8317,7 +8336,7 @@
8317
8336
  // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
8318
8337
  if (fractDigits < 0 || fractDigits > 20) throw $RangeError$1('Incorrect fraction digits');
8319
8338
  // eslint-disable-next-line no-self-compare -- NaN check
8320
- if (number != number) return 'NaN';
8339
+ if (number !== number) return 'NaN';
8321
8340
  if (number <= -1e21 || number >= 1e21) return $String(number);
8322
8341
  if (number < 0) {
8323
8342
  sign = '-';
@@ -8415,9 +8434,10 @@
8415
8434
  });
8416
8435
  };
8417
8436
 
8437
+ var global$a = global$r;
8418
8438
  var classof$3 = classofRaw$2;
8419
8439
 
8420
- var engineIsNode = typeof process != 'undefined' && classof$3(process) == 'process';
8440
+ var engineIsNode = classof$3(global$a.process) === 'process';
8421
8441
 
8422
8442
  var $$f = _export;
8423
8443
  var $reduce = arrayReduce.left;
@@ -8445,7 +8465,7 @@
8445
8465
  // https://tc39.es/ecma262/#sec-isarray
8446
8466
  // eslint-disable-next-line es/no-array-isarray -- safe
8447
8467
  var isArray$5 = Array.isArray || function isArray(argument) {
8448
- return classof$2(argument) == 'Array';
8468
+ return classof$2(argument) === 'Array';
8449
8469
  };
8450
8470
 
8451
8471
  var $$e = _export;
@@ -8491,9 +8511,9 @@
8491
8511
  var RegExpPrototype$1 = RegExp.prototype;
8492
8512
  var nativeToString = RegExpPrototype$1[TO_STRING];
8493
8513
 
8494
- var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
8514
+ var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
8495
8515
  // FF44- RegExp#toString has a wrong name
8496
- var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name != TO_STRING;
8516
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
8497
8517
 
8498
8518
  // `RegExp.prototype.toString` method
8499
8519
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -8554,7 +8574,7 @@
8554
8574
  };
8555
8575
 
8556
8576
  var DESCRIPTORS$3 = descriptors;
8557
- var global$9 = global$p;
8577
+ var global$9 = global$r;
8558
8578
  var uncurryThis$9 = functionUncurryThis;
8559
8579
  var isForced$1 = isForced_1;
8560
8580
  var inheritIfRequired = inheritIfRequired$1;
@@ -8599,7 +8619,7 @@
8599
8619
  (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$5(function () {
8600
8620
  re2[MATCH] = false;
8601
8621
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
8602
- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
8622
+ return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
8603
8623
  }));
8604
8624
 
8605
8625
  var handleDotAll = function (string) {
@@ -8640,7 +8660,7 @@
8640
8660
  for (; index <= length; index++) {
8641
8661
  chr = charAt$3(string, index);
8642
8662
  if (chr === '\\') {
8643
- chr = chr + charAt$3(string, ++index);
8663
+ chr += charAt$3(string, ++index);
8644
8664
  } else if (chr === ']') {
8645
8665
  brackets = false;
8646
8666
  } else if (!brackets) switch (true) {
@@ -10635,7 +10655,7 @@
10635
10655
  const addTags = event => {
10636
10656
  if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
10637
10657
  if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
10638
- onEnter === null || onEnter === void 0 ? void 0 : onEnter({
10658
+ onEnter === null || onEnter === void 0 || onEnter({
10639
10659
  key: 'duplicate',
10640
10660
  value: event.target.value
10641
10661
  });
@@ -10644,7 +10664,7 @@
10644
10664
  if (pattern && pattern !== null && pattern !== void 0 && pattern.regex) {
10645
10665
  const regex = new RegExp(pattern.regex);
10646
10666
  if (!regex.test(event.target.value)) {
10647
- onEnter === null || onEnter === void 0 ? void 0 : onEnter({
10667
+ onEnter === null || onEnter === void 0 || onEnter({
10648
10668
  key: 'error',
10649
10669
  value: event.target.value
10650
10670
  });
@@ -10653,7 +10673,7 @@
10653
10673
  }
10654
10674
  }
10655
10675
  setRegexError(false);
10656
- onEnter === null || onEnter === void 0 ? void 0 : onEnter({
10676
+ onEnter === null || onEnter === void 0 || onEnter({
10657
10677
  key: 'success',
10658
10678
  value: event.target.value
10659
10679
  });
@@ -10665,7 +10685,7 @@
10665
10685
  if (disabled || readOnly) {
10666
10686
  return tags;
10667
10687
  } else if (key === 'removeTag' || key === 'Backspace') {
10668
- onRemoveItem === null || onRemoveItem === void 0 ? void 0 : onRemoveItem(tags[index]);
10688
+ onRemoveItem === null || onRemoveItem === void 0 || onRemoveItem(tags[index]);
10669
10689
  setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
10670
10690
  }
10671
10691
  };
@@ -11031,7 +11051,7 @@
11031
11051
  if (withDebounce) {
11032
11052
  debounceChange(e.target.value);
11033
11053
  } else {
11034
- onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value);
11054
+ onChange === null || onChange === void 0 || onChange(e.target.value);
11035
11055
  }
11036
11056
  }, [onChange, debounceChange, withDebounce]);
11037
11057
  const handleClearButtonClick = e => {
@@ -12220,7 +12240,7 @@
12220
12240
  // eslint-disable-next-line redos/no-vulnerable -- safe
12221
12241
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
12222
12242
 
12223
- var global$8 = global$p;
12243
+ var global$8 = global$r;
12224
12244
  var apply = functionApply;
12225
12245
  var bind$6 = functionBindContext;
12226
12246
  var isCallable$4 = isCallable$p;
@@ -12235,7 +12255,7 @@
12235
12255
 
12236
12256
  var set = global$8.setImmediate;
12237
12257
  var clear = global$8.clearImmediate;
12238
- var process$3 = global$8.process;
12258
+ var process$2 = global$8.process;
12239
12259
  var Dispatch = global$8.Dispatch;
12240
12260
  var Function$1 = global$8.Function;
12241
12261
  var MessageChannel = global$8.MessageChannel;
@@ -12291,7 +12311,7 @@
12291
12311
  // Node.js 0.8-
12292
12312
  if (IS_NODE$3) {
12293
12313
  defer = function (id) {
12294
- process$3.nextTick(runner(id));
12314
+ process$2.nextTick(runner(id));
12295
12315
  };
12296
12316
  // Sphere (JS game engine) Dispatch API
12297
12317
  } else if (Dispatch && Dispatch.now) {
@@ -12370,7 +12390,7 @@
12370
12390
 
12371
12391
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
12372
12392
 
12373
- var global$7 = global$p;
12393
+ var global$7 = global$r;
12374
12394
  var bind$5 = functionBindContext;
12375
12395
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
12376
12396
  var macrotask = task$1.set;
@@ -12382,7 +12402,7 @@
12382
12402
 
12383
12403
  var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
12384
12404
  var document$2 = global$7.document;
12385
- var process$2 = global$7.process;
12405
+ var process$1 = global$7.process;
12386
12406
  var Promise$1 = global$7.Promise;
12387
12407
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
12388
12408
  var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$7, 'queueMicrotask');
@@ -12395,7 +12415,7 @@
12395
12415
 
12396
12416
  var flush = function () {
12397
12417
  var parent, fn;
12398
- if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
12418
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
12399
12419
  while (fn = queue.get()) try {
12400
12420
  fn();
12401
12421
  } catch (error) {
@@ -12427,7 +12447,7 @@
12427
12447
  // Node.js without promises
12428
12448
  } else if (IS_NODE$2) {
12429
12449
  notify$1 = function () {
12430
- process$2.nextTick(flush);
12450
+ process$1.nextTick(flush);
12431
12451
  };
12432
12452
  // for other environments - macrotask based on:
12433
12453
  // - setImmediate
@@ -12454,7 +12474,7 @@
12454
12474
  var hostReportErrors$1 = function (a, b) {
12455
12475
  try {
12456
12476
  // eslint-disable-next-line no-console -- safe
12457
- arguments.length == 1 ? console.error(a) : console.error(a, b);
12477
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
12458
12478
  } catch (error) { /* empty */ }
12459
12479
  };
12460
12480
 
@@ -12466,12 +12486,11 @@
12466
12486
  }
12467
12487
  };
12468
12488
 
12469
- var global$6 = global$p;
12489
+ var global$6 = global$r;
12470
12490
 
12471
12491
  var promiseNativeConstructor = global$6.Promise;
12472
12492
 
12473
12493
  /* global Deno -- Deno case */
12474
-
12475
12494
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
12476
12495
 
12477
12496
  var IS_DENO$1 = engineIsDeno;
@@ -12481,7 +12500,7 @@
12481
12500
  && typeof window == 'object'
12482
12501
  && typeof document == 'object';
12483
12502
 
12484
- var global$5 = global$p;
12503
+ var global$5 = global$r;
12485
12504
  var NativePromiseConstructor$3 = promiseNativeConstructor;
12486
12505
  var isCallable$3 = isCallable$p;
12487
12506
  var isForced = isForced_1;
@@ -12551,7 +12570,7 @@
12551
12570
 
12552
12571
  var $$a = _export;
12553
12572
  var IS_NODE = engineIsNode;
12554
- var global$4 = global$p;
12573
+ var global$4 = global$r;
12555
12574
  var call$8 = functionCall;
12556
12575
  var defineBuiltIn$4 = defineBuiltIn$b;
12557
12576
  var setPrototypeOf = objectSetPrototypeOf;
@@ -12583,7 +12602,7 @@
12583
12602
  var PromisePrototype = NativePromisePrototype$1;
12584
12603
  var TypeError$3 = global$4.TypeError;
12585
12604
  var document$1 = global$4.document;
12586
- var process$1 = global$4.process;
12605
+ var process = global$4.process;
12587
12606
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
12588
12607
  var newGenericPromiseCapability = newPromiseCapability$1;
12589
12608
 
@@ -12606,7 +12625,7 @@
12606
12625
 
12607
12626
  var callReaction = function (reaction, state) {
12608
12627
  var value = state.value;
12609
- var ok = state.state == FULFILLED;
12628
+ var ok = state.state === FULFILLED;
12610
12629
  var handler = ok ? reaction.ok : reaction.fail;
12611
12630
  var resolve = reaction.resolve;
12612
12631
  var reject = reaction.reject;
@@ -12675,7 +12694,7 @@
12675
12694
  if (IS_UNHANDLED) {
12676
12695
  result = perform$2(function () {
12677
12696
  if (IS_NODE) {
12678
- process$1.emit('unhandledRejection', value, promise);
12697
+ process.emit('unhandledRejection', value, promise);
12679
12698
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
12680
12699
  });
12681
12700
  // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
@@ -12693,7 +12712,7 @@
12693
12712
  call$8(task, global$4, function () {
12694
12713
  var promise = state.facade;
12695
12714
  if (IS_NODE) {
12696
- process$1.emit('rejectionHandled', promise);
12715
+ process.emit('rejectionHandled', promise);
12697
12716
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
12698
12717
  });
12699
12718
  };
@@ -12781,8 +12800,8 @@
12781
12800
  state.parent = true;
12782
12801
  reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
12783
12802
  reaction.fail = isCallable$2(onRejected) && onRejected;
12784
- reaction.domain = IS_NODE ? process$1.domain : undefined;
12785
- if (state.state == PENDING) state.reactions.add(reaction);
12803
+ reaction.domain = IS_NODE ? process.domain : undefined;
12804
+ if (state.state === PENDING) state.reactions.add(reaction);
12786
12805
  else microtask(function () {
12787
12806
  callReaction(reaction, state);
12788
12807
  });
@@ -12991,7 +13010,9 @@
12991
13010
  } catch (error) { /* empty */ }
12992
13011
 
12993
13012
  var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
12994
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
13013
+ try {
13014
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
13015
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
12995
13016
  var ITERATION_SUPPORT = false;
12996
13017
  try {
12997
13018
  var object = {};
@@ -13506,7 +13527,7 @@
13506
13527
  alignItems: 'center'
13507
13528
  });
13508
13529
  const InputSelectCheck = /*#__PURE__*/React.forwardRef((_ref, ref) => {
13509
- var _initItem$reduce, _ref2, _selectedItems$filter, _selectedItems$filter2, _selectedItems$filter3, _selectedItems$filter4;
13530
+ var _initItem$reduce, _ref2, _selectedItems$filter, _selectedItems$filter2, _selectedItems$filter3;
13510
13531
  let {
13511
13532
  placeholder,
13512
13533
  option,
@@ -13557,7 +13578,7 @@
13557
13578
  const isShowSelectAll = showSelectAll && !maxSelectedItem;
13558
13579
  React.useEffect(() => {
13559
13580
  var _scrollerRef$current;
13560
- (_scrollerRef$current = scrollerRef.current) === null || _scrollerRef$current === void 0 ? void 0 : _scrollerRef$current.scrollTo({
13581
+ (_scrollerRef$current = scrollerRef.current) === null || _scrollerRef$current === void 0 || _scrollerRef$current.scrollTo({
13561
13582
  top: 0
13562
13583
  });
13563
13584
  }, [query]);
@@ -13628,7 +13649,7 @@
13628
13649
  removeSelectedItem,
13629
13650
  selectedItems
13630
13651
  } = Downshift.useMultipleSelection({
13631
- selectedItems: selectedValue.length > 0 ? initItem === null || initItem === void 0 ? void 0 : (_initItem$reduce = initItem.reduce((acc, item) => [...acc, item, ...(item.children ? item.children : [])], [])) === null || _initItem$reduce === void 0 ? void 0 : _initItem$reduce.filter(item => selectedValue.includes(item.id)) : []
13652
+ selectedItems: selectedValue.length > 0 ? initItem === null || initItem === void 0 || (_initItem$reduce = initItem.reduce((acc, item) => [...acc, item, ...(item.children ? item.children : [])], [])) === null || _initItem$reduce === void 0 ? void 0 : _initItem$reduce.filter(item => selectedValue.includes(item.id)) : []
13632
13653
  });
13633
13654
  const generateOptions = data => {
13634
13655
  return data.map(option => {
@@ -13650,7 +13671,7 @@
13650
13671
  };
13651
13672
  const debouncedSearch = React__default["default"].useRef(debounce__default["default"](_async(function (query) {
13652
13673
  setQuery(query);
13653
- onSearch === null || onSearch === void 0 ? void 0 : onSearch(query);
13674
+ onSearch === null || onSearch === void 0 || onSearch(query);
13654
13675
  return _await();
13655
13676
  }), 1000)).current;
13656
13677
  React__default["default"].useEffect(() => {
@@ -13659,7 +13680,7 @@
13659
13680
  };
13660
13681
  }, [debouncedSearch]);
13661
13682
  const handleInputValue = input => {
13662
- onSearch === null || onSearch === void 0 ? void 0 : onSearch(input);
13683
+ onSearch === null || onSearch === void 0 || onSearch(input);
13663
13684
  if (input === '') {
13664
13685
  if (disabledOptions.length > 0) {
13665
13686
  setItems(generateOptions(sortDisabled));
@@ -13668,8 +13689,8 @@
13668
13689
  }
13669
13690
  } else {
13670
13691
  let filterItems = option === null || option === void 0 ? void 0 : option.filter(item => {
13671
- var _item$name, _item$name$toLowerCas, _item$name$toLowerCas2, _input$toLocaleLowerC;
13672
- return item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : (_item$name$toLowerCas = _item$name.toLowerCase()) === null || _item$name$toLowerCas === void 0 ? void 0 : (_item$name$toLowerCas2 = _item$name$toLowerCas.includes) === null || _item$name$toLowerCas2 === void 0 ? void 0 : _item$name$toLowerCas2.call(_item$name$toLowerCas, input === null || input === void 0 ? void 0 : (_input$toLocaleLowerC = input.toLocaleLowerCase) === null || _input$toLocaleLowerC === void 0 ? void 0 : _input$toLocaleLowerC.call(input));
13692
+ var _item$name, _item$name$includes, _input$toLocaleLowerC;
13693
+ return item === null || item === void 0 || (_item$name = item.name) === null || _item$name === void 0 || (_item$name = _item$name.toLowerCase()) === null || _item$name === void 0 || (_item$name$includes = _item$name.includes) === null || _item$name$includes === void 0 ? void 0 : _item$name$includes.call(_item$name, input === null || input === void 0 || (_input$toLocaleLowerC = input.toLocaleLowerCase) === null || _input$toLocaleLowerC === void 0 ? void 0 : _input$toLocaleLowerC.call(input));
13673
13694
  });
13674
13695
  setItems(filterItems);
13675
13696
  }
@@ -13681,7 +13702,7 @@
13681
13702
  if ((selected === null || selected === void 0 ? void 0 : selected.id) === 'counter') {
13682
13703
  setSelectedValue([]);
13683
13704
  setInputSelectValue([]);
13684
- onChange === null || onChange === void 0 ? void 0 : onChange([]);
13705
+ onChange === null || onChange === void 0 || onChange([]);
13685
13706
  for (let i = 0; i < selectedValue.length; i++) {
13686
13707
  removeSelectedItem(selectedValue[i]);
13687
13708
  }
@@ -13691,7 +13712,7 @@
13691
13712
  setSelectedValue(filterItems);
13692
13713
  setInputSelectValue(filterItems);
13693
13714
  if (selected.id !== '!all') {
13694
- onChange === null || onChange === void 0 ? void 0 : onChange(filterItems);
13715
+ onChange === null || onChange === void 0 || onChange(filterItems);
13695
13716
  }
13696
13717
  }
13697
13718
  }
@@ -13731,7 +13752,7 @@
13731
13752
  var _item$children;
13732
13753
  if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
13733
13754
  var _item$children2;
13734
- item === null || item === void 0 ? void 0 : (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.forEach(item => {
13755
+ item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 || _item$children2.forEach(item => {
13735
13756
  removeSelectedItem(item);
13736
13757
  });
13737
13758
  } else {
@@ -13740,7 +13761,7 @@
13740
13761
  });
13741
13762
  setSelectedValue([]);
13742
13763
  setInputSelectValue([]);
13743
- onChange === null || onChange === void 0 ? void 0 : onChange([]);
13764
+ onChange === null || onChange === void 0 || onChange([]);
13744
13765
  } else {
13745
13766
  removeItem(selectedItem);
13746
13767
  }
@@ -13753,7 +13774,7 @@
13753
13774
  var _item$children3;
13754
13775
  if (item !== null && item !== void 0 && (_item$children3 = item.children) !== null && _item$children3 !== void 0 && _item$children3.length) {
13755
13776
  var _item$children4;
13756
- item === null || item === void 0 ? void 0 : (_item$children4 = item.children) === null || _item$children4 === void 0 ? void 0 : _item$children4.forEach(item => {
13777
+ item === null || item === void 0 || (_item$children4 = item.children) === null || _item$children4 === void 0 || _item$children4.forEach(item => {
13757
13778
  addSelectedItem(item);
13758
13779
  itemIds.push(item.id);
13759
13780
  });
@@ -13765,7 +13786,7 @@
13765
13786
  setSelectedValue(itemIds);
13766
13787
  setInputSelectValue(itemIds);
13767
13788
  // onChange?.(itemIds.slice(1).filter(id => !items.find(item => item.id === id)?.children?.length));
13768
- onChange === null || onChange === void 0 ? void 0 : onChange(itemIds.slice(1));
13789
+ onChange === null || onChange === void 0 || onChange(itemIds.slice(1));
13769
13790
  } else {
13770
13791
  var _selectedItem$childre;
13771
13792
  //start check if item have children (option group)
@@ -13773,7 +13794,7 @@
13773
13794
  var _selectedItem$childre2;
13774
13795
  const itemIdsSelect = [];
13775
13796
  const itemIdsUnSelect = [];
13776
- selectedItem === null || selectedItem === void 0 ? void 0 : (_selectedItem$childre2 = selectedItem.children) === null || _selectedItem$childre2 === void 0 ? void 0 : _selectedItem$childre2.forEach(item => {
13797
+ selectedItem === null || selectedItem === void 0 || (_selectedItem$childre2 = selectedItem.children) === null || _selectedItem$childre2 === void 0 || _selectedItem$childre2.forEach(item => {
13777
13798
  if (selectedValue !== null && selectedValue !== void 0 && selectedValue.includes(item.id)) {
13778
13799
  removeSelectedItem(item);
13779
13800
  itemIdsUnSelect.push(item.id);
@@ -13788,7 +13809,7 @@
13788
13809
  setSelectedValue([...selectedValue, ...itemIdsSelect]);
13789
13810
  setInputSelectValue([...selectedValue, ...itemIdsSelect]);
13790
13811
  const _filteredSelectedValues = selectedValue.filter(val => val !== '!all');
13791
- onChange === null || onChange === void 0 ? void 0 : onChange([..._filteredSelectedValues, ...itemIdsSelect]);
13812
+ onChange === null || onChange === void 0 || onChange([..._filteredSelectedValues, ...itemIdsSelect]);
13792
13813
  }
13793
13814
 
13794
13815
  //unselect all child in one of the option groups
@@ -13800,7 +13821,7 @@
13800
13821
  setSelectedValue(newSelectedValue);
13801
13822
  setInputSelectValue(newSelectedValue);
13802
13823
  const _filteredSelectedValues2 = newSelectedValue.filter(val => val !== '!all');
13803
- onChange === null || onChange === void 0 ? void 0 : onChange(_filteredSelectedValues2);
13824
+ onChange === null || onChange === void 0 || onChange(_filteredSelectedValues2);
13804
13825
  }
13805
13826
  return;
13806
13827
  }
@@ -13817,7 +13838,7 @@
13817
13838
  setSelectedValue([...selectedValue, selectedItem.id]);
13818
13839
  setInputSelectValue([...selectedValue, selectedItem.id]);
13819
13840
  const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
13820
- onChange === null || onChange === void 0 ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
13841
+ onChange === null || onChange === void 0 || onChange([...filteredSelectedValues, selectedItem.id]);
13821
13842
  }
13822
13843
  selectItem(null);
13823
13844
  }
@@ -13907,7 +13928,7 @@
13907
13928
  }, [label, isOpen]);
13908
13929
  const toggleCollapsible = () => setShowAllTags(!showAllTags);
13909
13930
  const handleRemoveAllItem = () => {
13910
- onChange === null || onChange === void 0 ? void 0 : onChange([]);
13931
+ onChange === null || onChange === void 0 || onChange([]);
13911
13932
  setSelectedValue([]);
13912
13933
  setInputSelectValue([]);
13913
13934
  for (let i = 0; i < selectedValue.length; i++) {
@@ -13994,11 +14015,11 @@
13994
14015
  };
13995
14016
  let lastGroupIndex = showSelectAll ? 1 : 0;
13996
14017
  const renderOptionGroupItem = (item, index) => {
13997
- var _item$children5, _item$children6, _item$children7, _item$children7$filte, _item$render2, _item$children8;
14018
+ var _item$children5, _item$children6, _item$children7, _item$render2, _item$children8;
13998
14019
  // const groupIndex = (index > (showSelectAll ? 1 : 0)) ? lastGroupIndex : 0;
13999
14020
  const groupIndex = lastGroupIndex;
14000
- lastGroupIndex += ((item === null || item === void 0 ? void 0 : (_item$children5 = item.children) === null || _item$children5 === void 0 ? void 0 : _item$children5.length) || 0) + 1;
14001
- const filterSelectedChild = item === null || item === void 0 ? void 0 : (_item$children6 = item.children) === null || _item$children6 === void 0 ? void 0 : _item$children6.filter(e => selectedValue.includes(e.id) && !e.isDisabled);
14021
+ lastGroupIndex += ((item === null || item === void 0 || (_item$children5 = item.children) === null || _item$children5 === void 0 ? void 0 : _item$children5.length) || 0) + 1;
14022
+ const filterSelectedChild = item === null || item === void 0 || (_item$children6 = item.children) === null || _item$children6 === void 0 ? void 0 : _item$children6.filter(e => selectedValue.includes(e.id) && !e.isDisabled);
14002
14023
  return /*#__PURE__*/React__default["default"].createElement(OptionGroupItem, {
14003
14024
  item: /*#__PURE__*/React__default["default"].createElement(ItemWrapper$1, _extends({
14004
14025
  key: item.id
@@ -14039,7 +14060,7 @@
14039
14060
  lineNumber: 802,
14040
14061
  columnNumber: 19
14041
14062
  }
14042
- }) : (filterSelectedChild === null || filterSelectedChild === void 0 ? void 0 : filterSelectedChild.length) === (item === null || item === void 0 ? void 0 : (_item$children7 = item.children) === null || _item$children7 === void 0 ? void 0 : (_item$children7$filte = _item$children7.filter(e => !e.isDisabled)) === null || _item$children7$filte === void 0 ? void 0 : _item$children7$filte.length) ? /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
14063
+ }) : (filterSelectedChild === null || filterSelectedChild === void 0 ? void 0 : filterSelectedChild.length) === (item === null || item === void 0 || (_item$children7 = item.children) === null || _item$children7 === void 0 || (_item$children7 = _item$children7.filter(e => !e.isDisabled)) === null || _item$children7 === void 0 ? void 0 : _item$children7.length) ? /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
14043
14064
  color: colors$8.iconGreen,
14044
14065
  __self: undefined,
14045
14066
  __source: {
@@ -14072,7 +14093,7 @@
14072
14093
  lineNumber: 778,
14073
14094
  columnNumber: 9
14074
14095
  }
14075
- }, item === null || item === void 0 ? void 0 : (_item$children8 = item.children) === null || _item$children8 === void 0 ? void 0 : _item$children8.map((optItem, optIndex) => renderOptionItem(optItem, groupIndex + optIndex + 1, true)));
14096
+ }, item === null || item === void 0 || (_item$children8 = item.children) === null || _item$children8 === void 0 ? void 0 : _item$children8.map((optItem, optIndex) => renderOptionItem(optItem, groupIndex + optIndex + 1, true)));
14076
14097
  };
14077
14098
  return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, _extends({
14078
14099
  css: css
@@ -14202,13 +14223,13 @@
14202
14223
  lineNumber: 868,
14203
14224
  columnNumber: 17
14204
14225
  }
14205
- }), selectAllLabel != null ? selectAllLabel : t('selectAllLabelText', 'Pilih Semua')) : selectedItems === null || selectedItems === void 0 ? void 0 : (_selectedItems$filter = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter === void 0 ? void 0 : (_selectedItems$filter2 = _selectedItems$filter.filter((_, idx) => {
14226
+ }), selectAllLabel != null ? selectAllLabel : t('selectAllLabelText', 'Pilih Semua')) : selectedItems === null || selectedItems === void 0 || (_selectedItems$filter = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter === void 0 || (_selectedItems$filter = _selectedItems$filter.filter((_, idx) => {
14206
14227
  if (showAllTags || !collapsible) {
14207
14228
  return true;
14208
14229
  } else {
14209
14230
  return idx < 5;
14210
14231
  }
14211
- })) === null || _selectedItems$filter2 === void 0 ? void 0 : _selectedItems$filter2.map((selectedItem, index) => /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
14232
+ })) === null || _selectedItems$filter === void 0 ? void 0 : _selectedItems$filter.map((selectedItem, index) => /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
14212
14233
  disabled: disabled,
14213
14234
  isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
14214
14235
  size: "lg",
@@ -14318,7 +14339,7 @@
14318
14339
  lineNumber: 937,
14319
14340
  columnNumber: 17
14320
14341
  }
14321
- }, `${selectedItems === null || selectedItems === void 0 ? void 0 : (_selectedItems$filter3 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter3 === void 0 ? void 0 : _selectedItems$filter3.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`))), showCounter && !isShowTagSelectAll && Boolean(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) && /*#__PURE__*/React__default["default"].createElement(Paragraph, {
14342
+ }, `${selectedItems === null || selectedItems === void 0 || (_selectedItems$filter2 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter2 === void 0 ? void 0 : _selectedItems$filter2.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`))), showCounter && !isShowTagSelectAll && Boolean(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) && /*#__PURE__*/React__default["default"].createElement(Paragraph, {
14322
14343
  css: {
14323
14344
  fontSize: '$label',
14324
14345
  marginTop: '$spacing-01'
@@ -14330,7 +14351,7 @@
14330
14351
  lineNumber: 946,
14331
14352
  columnNumber: 11
14332
14353
  }
14333
- }, `${selectedItems === null || selectedItems === void 0 ? void 0 : (_selectedItems$filter4 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter4 === void 0 ? void 0 : _selectedItems$filter4.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`), /*#__PURE__*/React__default["default"].createElement(OptionWrapper$1, {
14354
+ }, `${selectedItems === null || selectedItems === void 0 || (_selectedItems$filter3 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter3 === void 0 ? void 0 : _selectedItems$filter3.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`), /*#__PURE__*/React__default["default"].createElement(OptionWrapper$1, {
14334
14355
  placement: placement,
14335
14356
  css: {
14336
14357
  display: isOpen && disabled === false ? 'block' : 'none',
@@ -15523,7 +15544,7 @@
15523
15544
  timeInterval: 1000
15524
15545
  };
15525
15546
 
15526
- var global$3 = global$p;
15547
+ var global$3 = global$r;
15527
15548
  var fails$2 = fails$t;
15528
15549
  var uncurryThis$3 = functionUncurryThis;
15529
15550
  var toString$3 = toString$j;
@@ -15551,7 +15572,7 @@
15551
15572
 
15552
15573
  // `parseInt` method
15553
15574
  // https://tc39.es/ecma262/#sec-parseint-string-radix
15554
- $$4({ global: true, forced: parseInt != $parseInt }, {
15575
+ $$4({ global: true, forced: parseInt !== $parseInt }, {
15555
15576
  parseInt: $parseInt
15556
15577
  });
15557
15578
 
@@ -18059,7 +18080,7 @@
18059
18080
  }
18060
18081
  function handleInputChange(type, e) {
18061
18082
  var _e$target;
18062
- const value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
18083
+ const value = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
18063
18084
  const format = 'DD:MM:YYYY:HH:mm';
18064
18085
  const minLength = (value === null || value === void 0 ? void 0 : value.length) > 1;
18065
18086
  const hourValue = params => moment__default["default"](moment__default["default"](`${moment__default["default"](date).format('DD:MM:YYYY:mm')}:${params}`, 'DD:MM:YYYY:mm:HH').toDate());
@@ -21704,7 +21725,7 @@
21704
21725
  onSubmit: () => {
21705
21726
  var _dialogPageRef$curren2;
21706
21727
  debouncedGoToPage(Number(goToPage));
21707
- (_dialogPageRef$curren2 = dialogPageRef.current) === null || _dialogPageRef$curren2 === void 0 ? void 0 : _dialogPageRef$curren2.click();
21728
+ (_dialogPageRef$curren2 = dialogPageRef.current) === null || _dialogPageRef$curren2 === void 0 || _dialogPageRef$curren2.click();
21708
21729
  },
21709
21730
  __self: undefined,
21710
21731
  __source: {
@@ -21754,7 +21775,7 @@
21754
21775
  onClick: () => {
21755
21776
  var _dialogPageRef$curren3;
21756
21777
  setGoToPage(null);
21757
- (_dialogPageRef$curren3 = dialogPageRef.current) === null || _dialogPageRef$curren3 === void 0 ? void 0 : _dialogPageRef$curren3.click();
21778
+ (_dialogPageRef$curren3 = dialogPageRef.current) === null || _dialogPageRef$curren3 === void 0 || _dialogPageRef$curren3.click();
21758
21779
  },
21759
21780
  __self: undefined,
21760
21781
  __source: {
@@ -21769,7 +21790,7 @@
21769
21790
  onClick: () => {
21770
21791
  var _dialogPageRef$curren4;
21771
21792
  debouncedGoToPage(Number(goToPage));
21772
- (_dialogPageRef$curren4 = dialogPageRef.current) === null || _dialogPageRef$curren4 === void 0 ? void 0 : _dialogPageRef$curren4.click();
21793
+ (_dialogPageRef$curren4 = dialogPageRef.current) === null || _dialogPageRef$curren4 === void 0 || _dialogPageRef$curren4.click();
21773
21794
  },
21774
21795
  __self: undefined,
21775
21796
  __source: {
@@ -21858,7 +21879,7 @@
21858
21879
  onClick: () => {
21859
21880
  if (isMobilePagination) {
21860
21881
  var _dialogLimitRef$curre;
21861
- (_dialogLimitRef$curre = dialogLimitRef.current) === null || _dialogLimitRef$curre === void 0 ? void 0 : _dialogLimitRef$curre.click();
21882
+ (_dialogLimitRef$curre = dialogLimitRef.current) === null || _dialogLimitRef$curre === void 0 || _dialogLimitRef$curre.click();
21862
21883
  }
21863
21884
  },
21864
21885
  __self: this,
@@ -22002,7 +22023,7 @@
22002
22023
  onClick: () => {
22003
22024
  var _dialogLimitRef$curre2;
22004
22025
  onChange(limit);
22005
- (_dialogLimitRef$curre2 = dialogLimitRef.current) === null || _dialogLimitRef$curre2 === void 0 ? void 0 : _dialogLimitRef$curre2.click();
22026
+ (_dialogLimitRef$curre2 = dialogLimitRef.current) === null || _dialogLimitRef$curre2 === void 0 || _dialogLimitRef$curre2.click();
22006
22027
  },
22007
22028
  __self: this,
22008
22029
  __source: {
@@ -24868,7 +24889,7 @@
24868
24889
  if (!props.onOpenAutoFocus) {
24869
24890
  e.preventDefault();
24870
24891
  } else {
24871
- props === null || props === void 0 ? void 0 : props.onOpenAutoFocus();
24892
+ props === null || props === void 0 || props.onOpenAutoFocus();
24872
24893
  }
24873
24894
  },
24874
24895
  __self: undefined,
@@ -25656,20 +25677,25 @@
25656
25677
  var urlConstructorDetection = !fails$1(function () {
25657
25678
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
25658
25679
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
25659
- var searchParams = url.searchParams;
25680
+ var params = url.searchParams;
25681
+ var params2 = new URLSearchParams('a=1&a=2&b=3');
25660
25682
  var result = '';
25661
25683
  url.pathname = 'c%20d';
25662
- searchParams.forEach(function (value, key) {
25663
- searchParams['delete']('b');
25684
+ params.forEach(function (value, key) {
25685
+ params['delete']('b');
25664
25686
  result += key + value;
25665
25687
  });
25666
- return (IS_PURE && !url.toJSON)
25667
- || (!searchParams.size && (IS_PURE || !DESCRIPTORS$2))
25668
- || !searchParams.sort
25688
+ params2['delete']('a', 2);
25689
+ // `undefined` case is a Chromium 117 bug
25690
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
25691
+ params2['delete']('b', undefined);
25692
+ return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
25693
+ || (!params.size && (IS_PURE || !DESCRIPTORS$2))
25694
+ || !params.sort
25669
25695
  || url.href !== 'http://a/c%20d?a=1&c=3'
25670
- || searchParams.get('c') !== '3'
25696
+ || params.get('c') !== '3'
25671
25697
  || String(new URLSearchParams('?a=1')) !== 'a=1'
25672
- || !searchParams[ITERATOR$1]
25698
+ || !params[ITERATOR$1]
25673
25699
  // throws in Edge
25674
25700
  || new URL('https://a@b').username !== 'a'
25675
25701
  || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
@@ -25785,7 +25811,7 @@
25785
25811
  if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
25786
25812
  // It's a high surrogate, and there is a next character.
25787
25813
  var extra = charCodeAt(string, counter++);
25788
- if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
25814
+ if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
25789
25815
  push$2(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
25790
25816
  } else {
25791
25817
  // It's an unmatched surrogate; only append this code unit, in case the
@@ -25884,12 +25910,12 @@
25884
25910
  if (currentValue < n && ++delta > maxInt) {
25885
25911
  throw $RangeError(OVERFLOW_ERROR);
25886
25912
  }
25887
- if (currentValue == n) {
25913
+ if (currentValue === n) {
25888
25914
  // Represent delta as a generalized variable-length integer.
25889
25915
  var q = delta;
25890
25916
  var k = base;
25891
25917
  while (true) {
25892
- var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
25918
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
25893
25919
  if (q < t) break;
25894
25920
  var qMinusT = q - t;
25895
25921
  var baseMinusT = base - t;
@@ -25899,7 +25925,7 @@
25899
25925
  }
25900
25926
 
25901
25927
  push$2(output, fromCharCode(digitToBasic(q)));
25902
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
25928
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
25903
25929
  delta = 0;
25904
25930
  handledCPCount++;
25905
25931
  }
@@ -25932,7 +25958,7 @@
25932
25958
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
25933
25959
 
25934
25960
  var $$3 = _export;
25935
- var global$2 = global$p;
25961
+ var global$2 = global$r;
25936
25962
  var call = functionCall;
25937
25963
  var uncurryThis$1 = functionUncurryThis;
25938
25964
  var DESCRIPTORS$1 = descriptors;
@@ -26135,7 +26161,7 @@
26135
26161
  anInstance$1(this, URLSearchParamsPrototype);
26136
26162
  var init = arguments.length > 0 ? arguments[0] : undefined;
26137
26163
  var state = setInternalState$1(this, new URLSearchParamsState(init));
26138
- if (!DESCRIPTORS$1) this.length = state.entries.length;
26164
+ if (!DESCRIPTORS$1) this.size = state.entries.length;
26139
26165
  };
26140
26166
 
26141
26167
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
@@ -26144,32 +26170,37 @@
26144
26170
  // `URLSearchParams.prototype.append` method
26145
26171
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
26146
26172
  append: function append(name, value) {
26147
- validateArgumentsLength$1(arguments.length, 2);
26148
26173
  var state = getInternalParamsState(this);
26174
+ validateArgumentsLength$1(arguments.length, 2);
26149
26175
  push$1(state.entries, { key: $toString$1(name), value: $toString$1(value) });
26150
26176
  if (!DESCRIPTORS$1) this.length++;
26151
26177
  state.updateURL();
26152
26178
  },
26153
26179
  // `URLSearchParams.prototype.delete` method
26154
26180
  // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
26155
- 'delete': function (name) {
26156
- validateArgumentsLength$1(arguments.length, 1);
26181
+ 'delete': function (name /* , value */) {
26157
26182
  var state = getInternalParamsState(this);
26183
+ var length = validateArgumentsLength$1(arguments.length, 1);
26158
26184
  var entries = state.entries;
26159
26185
  var key = $toString$1(name);
26186
+ var $value = length < 2 ? undefined : arguments[1];
26187
+ var value = $value === undefined ? $value : $toString$1($value);
26160
26188
  var index = 0;
26161
26189
  while (index < entries.length) {
26162
- if (entries[index].key === key) splice$1(entries, index, 1);
26163
- else index++;
26190
+ var entry = entries[index];
26191
+ if (entry.key === key && (value === undefined || entry.value === value)) {
26192
+ splice$1(entries, index, 1);
26193
+ if (value !== undefined) break;
26194
+ } else index++;
26164
26195
  }
26165
- if (!DESCRIPTORS$1) this.length = entries.length;
26196
+ if (!DESCRIPTORS$1) this.size = entries.length;
26166
26197
  state.updateURL();
26167
26198
  },
26168
26199
  // `URLSearchParams.prototype.get` method
26169
26200
  // https://url.spec.whatwg.org/#dom-urlsearchparams-get
26170
26201
  get: function get(name) {
26171
- validateArgumentsLength$1(arguments.length, 1);
26172
26202
  var entries = getInternalParamsState(this).entries;
26203
+ validateArgumentsLength$1(arguments.length, 1);
26173
26204
  var key = $toString$1(name);
26174
26205
  var index = 0;
26175
26206
  for (; index < entries.length; index++) {
@@ -26180,8 +26211,8 @@
26180
26211
  // `URLSearchParams.prototype.getAll` method
26181
26212
  // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
26182
26213
  getAll: function getAll(name) {
26183
- validateArgumentsLength$1(arguments.length, 1);
26184
26214
  var entries = getInternalParamsState(this).entries;
26215
+ validateArgumentsLength$1(arguments.length, 1);
26185
26216
  var key = $toString$1(name);
26186
26217
  var result = [];
26187
26218
  var index = 0;
@@ -26192,21 +26223,24 @@
26192
26223
  },
26193
26224
  // `URLSearchParams.prototype.has` method
26194
26225
  // https://url.spec.whatwg.org/#dom-urlsearchparams-has
26195
- has: function has(name) {
26196
- validateArgumentsLength$1(arguments.length, 1);
26226
+ has: function has(name /* , value */) {
26197
26227
  var entries = getInternalParamsState(this).entries;
26228
+ var length = validateArgumentsLength$1(arguments.length, 1);
26198
26229
  var key = $toString$1(name);
26230
+ var $value = length < 2 ? undefined : arguments[1];
26231
+ var value = $value === undefined ? $value : $toString$1($value);
26199
26232
  var index = 0;
26200
26233
  while (index < entries.length) {
26201
- if (entries[index++].key === key) return true;
26234
+ var entry = entries[index++];
26235
+ if (entry.key === key && (value === undefined || entry.value === value)) return true;
26202
26236
  }
26203
26237
  return false;
26204
26238
  },
26205
26239
  // `URLSearchParams.prototype.set` method
26206
26240
  // https://url.spec.whatwg.org/#dom-urlsearchparams-set
26207
26241
  set: function set(name, value) {
26208
- validateArgumentsLength$1(arguments.length, 1);
26209
26242
  var state = getInternalParamsState(this);
26243
+ validateArgumentsLength$1(arguments.length, 1);
26210
26244
  var entries = state.entries;
26211
26245
  var found = false;
26212
26246
  var key = $toString$1(name);
@@ -26224,7 +26258,7 @@
26224
26258
  }
26225
26259
  }
26226
26260
  if (!found) push$1(entries, { key: key, value: val });
26227
- if (!DESCRIPTORS$1) this.length = entries.length;
26261
+ if (!DESCRIPTORS$1) this.size = entries.length;
26228
26262
  state.updateURL();
26229
26263
  },
26230
26264
  // `URLSearchParams.prototype.sort` method
@@ -26341,7 +26375,7 @@
26341
26375
  var $$2 = _export;
26342
26376
  var DESCRIPTORS = descriptors;
26343
26377
  var USE_NATIVE_URL = urlConstructorDetection;
26344
- var global$1 = global$p;
26378
+ var global$1 = global$r;
26345
26379
  var bind = functionBindContext;
26346
26380
  var uncurryThis = functionUncurryThis;
26347
26381
  var defineBuiltIn = defineBuiltIn$b;
@@ -26408,7 +26442,7 @@
26408
26442
  var parseIPv4 = function (input) {
26409
26443
  var parts = split(input, '.');
26410
26444
  var partsLength, numbers, index, part, radix, number, ipv4;
26411
- if (parts.length && parts[parts.length - 1] == '') {
26445
+ if (parts.length && parts[parts.length - 1] === '') {
26412
26446
  parts.length--;
26413
26447
  }
26414
26448
  partsLength = parts.length;
@@ -26416,23 +26450,23 @@
26416
26450
  numbers = [];
26417
26451
  for (index = 0; index < partsLength; index++) {
26418
26452
  part = parts[index];
26419
- if (part == '') return input;
26453
+ if (part === '') return input;
26420
26454
  radix = 10;
26421
- if (part.length > 1 && charAt(part, 0) == '0') {
26455
+ if (part.length > 1 && charAt(part, 0) === '0') {
26422
26456
  radix = exec(HEX_START, part) ? 16 : 8;
26423
- part = stringSlice(part, radix == 8 ? 1 : 2);
26457
+ part = stringSlice(part, radix === 8 ? 1 : 2);
26424
26458
  }
26425
26459
  if (part === '') {
26426
26460
  number = 0;
26427
26461
  } else {
26428
- if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
26462
+ if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
26429
26463
  number = parseInt$2(part, radix);
26430
26464
  }
26431
26465
  push(numbers, number);
26432
26466
  }
26433
26467
  for (index = 0; index < partsLength; index++) {
26434
26468
  number = numbers[index];
26435
- if (index == partsLength - 1) {
26469
+ if (index === partsLength - 1) {
26436
26470
  if (number >= pow(256, 5 - partsLength)) return null;
26437
26471
  } else if (number > 255) return null;
26438
26472
  }
@@ -26456,15 +26490,15 @@
26456
26490
  return charAt(input, pointer);
26457
26491
  };
26458
26492
 
26459
- if (chr() == ':') {
26460
- if (charAt(input, 1) != ':') return;
26493
+ if (chr() === ':') {
26494
+ if (charAt(input, 1) !== ':') return;
26461
26495
  pointer += 2;
26462
26496
  pieceIndex++;
26463
26497
  compress = pieceIndex;
26464
26498
  }
26465
26499
  while (chr()) {
26466
- if (pieceIndex == 8) return;
26467
- if (chr() == ':') {
26500
+ if (pieceIndex === 8) return;
26501
+ if (chr() === ':') {
26468
26502
  if (compress !== null) return;
26469
26503
  pointer++;
26470
26504
  pieceIndex++;
@@ -26477,33 +26511,33 @@
26477
26511
  pointer++;
26478
26512
  length++;
26479
26513
  }
26480
- if (chr() == '.') {
26481
- if (length == 0) return;
26514
+ if (chr() === '.') {
26515
+ if (length === 0) return;
26482
26516
  pointer -= length;
26483
26517
  if (pieceIndex > 6) return;
26484
26518
  numbersSeen = 0;
26485
26519
  while (chr()) {
26486
26520
  ipv4Piece = null;
26487
26521
  if (numbersSeen > 0) {
26488
- if (chr() == '.' && numbersSeen < 4) pointer++;
26522
+ if (chr() === '.' && numbersSeen < 4) pointer++;
26489
26523
  else return;
26490
26524
  }
26491
26525
  if (!exec(DIGIT, chr())) return;
26492
26526
  while (exec(DIGIT, chr())) {
26493
26527
  number = parseInt$2(chr(), 10);
26494
26528
  if (ipv4Piece === null) ipv4Piece = number;
26495
- else if (ipv4Piece == 0) return;
26529
+ else if (ipv4Piece === 0) return;
26496
26530
  else ipv4Piece = ipv4Piece * 10 + number;
26497
26531
  if (ipv4Piece > 255) return;
26498
26532
  pointer++;
26499
26533
  }
26500
26534
  address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
26501
26535
  numbersSeen++;
26502
- if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
26536
+ if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
26503
26537
  }
26504
- if (numbersSeen != 4) return;
26538
+ if (numbersSeen !== 4) return;
26505
26539
  break;
26506
- } else if (chr() == ':') {
26540
+ } else if (chr() === ':') {
26507
26541
  pointer++;
26508
26542
  if (!chr()) return;
26509
26543
  } else if (chr()) return;
@@ -26512,12 +26546,12 @@
26512
26546
  if (compress !== null) {
26513
26547
  swaps = pieceIndex - compress;
26514
26548
  pieceIndex = 7;
26515
- while (pieceIndex != 0 && swaps > 0) {
26549
+ while (pieceIndex !== 0 && swaps > 0) {
26516
26550
  swap = address[pieceIndex];
26517
26551
  address[pieceIndex--] = address[compress + swaps - 1];
26518
26552
  address[compress + --swaps] = swap;
26519
26553
  }
26520
- } else if (pieceIndex != 8) return;
26554
+ } else if (pieceIndex !== 8) return;
26521
26555
  return address;
26522
26556
  };
26523
26557
 
@@ -26605,15 +26639,15 @@
26605
26639
  // https://url.spec.whatwg.org/#windows-drive-letter
26606
26640
  var isWindowsDriveLetter = function (string, normalized) {
26607
26641
  var second;
26608
- return string.length == 2 && exec(ALPHA, charAt(string, 0))
26609
- && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
26642
+ return string.length === 2 && exec(ALPHA, charAt(string, 0))
26643
+ && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
26610
26644
  };
26611
26645
 
26612
26646
  // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
26613
26647
  var startsWithWindowsDriveLetter = function (string) {
26614
26648
  var third;
26615
26649
  return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
26616
- string.length == 2 ||
26650
+ string.length === 2 ||
26617
26651
  ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
26618
26652
  );
26619
26653
  };
@@ -26717,27 +26751,27 @@
26717
26751
  break;
26718
26752
 
26719
26753
  case SCHEME:
26720
- if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
26754
+ if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
26721
26755
  buffer += toLowerCase(chr);
26722
- } else if (chr == ':') {
26756
+ } else if (chr === ':') {
26723
26757
  if (stateOverride && (
26724
- (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
26725
- (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
26726
- (url.scheme == 'file' && !url.host)
26758
+ (url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
26759
+ (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
26760
+ (url.scheme === 'file' && !url.host)
26727
26761
  )) return;
26728
26762
  url.scheme = buffer;
26729
26763
  if (stateOverride) {
26730
- if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
26764
+ if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
26731
26765
  return;
26732
26766
  }
26733
26767
  buffer = '';
26734
- if (url.scheme == 'file') {
26768
+ if (url.scheme === 'file') {
26735
26769
  state = FILE;
26736
- } else if (url.isSpecial() && base && base.scheme == url.scheme) {
26770
+ } else if (url.isSpecial() && base && base.scheme === url.scheme) {
26737
26771
  state = SPECIAL_RELATIVE_OR_AUTHORITY;
26738
26772
  } else if (url.isSpecial()) {
26739
26773
  state = SPECIAL_AUTHORITY_SLASHES;
26740
- } else if (codePoints[pointer + 1] == '/') {
26774
+ } else if (codePoints[pointer + 1] === '/') {
26741
26775
  state = PATH_OR_AUTHORITY;
26742
26776
  pointer++;
26743
26777
  } else {
@@ -26754,8 +26788,8 @@
26754
26788
  break;
26755
26789
 
26756
26790
  case NO_SCHEME:
26757
- if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
26758
- if (base.cannotBeABaseURL && chr == '#') {
26791
+ if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
26792
+ if (base.cannotBeABaseURL && chr === '#') {
26759
26793
  url.scheme = base.scheme;
26760
26794
  url.path = arraySlice(base.path);
26761
26795
  url.query = base.query;
@@ -26764,11 +26798,11 @@
26764
26798
  state = FRAGMENT;
26765
26799
  break;
26766
26800
  }
26767
- state = base.scheme == 'file' ? FILE : RELATIVE;
26801
+ state = base.scheme === 'file' ? FILE : RELATIVE;
26768
26802
  continue;
26769
26803
 
26770
26804
  case SPECIAL_RELATIVE_OR_AUTHORITY:
26771
- if (chr == '/' && codePoints[pointer + 1] == '/') {
26805
+ if (chr === '/' && codePoints[pointer + 1] === '/') {
26772
26806
  state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
26773
26807
  pointer++;
26774
26808
  } else {
@@ -26777,7 +26811,7 @@
26777
26811
  } break;
26778
26812
 
26779
26813
  case PATH_OR_AUTHORITY:
26780
- if (chr == '/') {
26814
+ if (chr === '/') {
26781
26815
  state = AUTHORITY;
26782
26816
  break;
26783
26817
  } else {
@@ -26787,16 +26821,16 @@
26787
26821
 
26788
26822
  case RELATIVE:
26789
26823
  url.scheme = base.scheme;
26790
- if (chr == EOF) {
26824
+ if (chr === EOF) {
26791
26825
  url.username = base.username;
26792
26826
  url.password = base.password;
26793
26827
  url.host = base.host;
26794
26828
  url.port = base.port;
26795
26829
  url.path = arraySlice(base.path);
26796
26830
  url.query = base.query;
26797
- } else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
26831
+ } else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
26798
26832
  state = RELATIVE_SLASH;
26799
- } else if (chr == '?') {
26833
+ } else if (chr === '?') {
26800
26834
  url.username = base.username;
26801
26835
  url.password = base.password;
26802
26836
  url.host = base.host;
@@ -26804,7 +26838,7 @@
26804
26838
  url.path = arraySlice(base.path);
26805
26839
  url.query = '';
26806
26840
  state = QUERY;
26807
- } else if (chr == '#') {
26841
+ } else if (chr === '#') {
26808
26842
  url.username = base.username;
26809
26843
  url.password = base.password;
26810
26844
  url.host = base.host;
@@ -26825,9 +26859,9 @@
26825
26859
  } break;
26826
26860
 
26827
26861
  case RELATIVE_SLASH:
26828
- if (url.isSpecial() && (chr == '/' || chr == '\\')) {
26862
+ if (url.isSpecial() && (chr === '/' || chr === '\\')) {
26829
26863
  state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
26830
- } else if (chr == '/') {
26864
+ } else if (chr === '/') {
26831
26865
  state = AUTHORITY;
26832
26866
  } else {
26833
26867
  url.username = base.username;
@@ -26840,24 +26874,24 @@
26840
26874
 
26841
26875
  case SPECIAL_AUTHORITY_SLASHES:
26842
26876
  state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
26843
- if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
26877
+ if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
26844
26878
  pointer++;
26845
26879
  break;
26846
26880
 
26847
26881
  case SPECIAL_AUTHORITY_IGNORE_SLASHES:
26848
- if (chr != '/' && chr != '\\') {
26882
+ if (chr !== '/' && chr !== '\\') {
26849
26883
  state = AUTHORITY;
26850
26884
  continue;
26851
26885
  } break;
26852
26886
 
26853
26887
  case AUTHORITY:
26854
- if (chr == '@') {
26888
+ if (chr === '@') {
26855
26889
  if (seenAt) buffer = '%40' + buffer;
26856
26890
  seenAt = true;
26857
26891
  bufferCodePoints = arrayFrom(buffer);
26858
26892
  for (var i = 0; i < bufferCodePoints.length; i++) {
26859
26893
  var codePoint = bufferCodePoints[i];
26860
- if (codePoint == ':' && !seenPasswordToken) {
26894
+ if (codePoint === ':' && !seenPasswordToken) {
26861
26895
  seenPasswordToken = true;
26862
26896
  continue;
26863
26897
  }
@@ -26867,10 +26901,10 @@
26867
26901
  }
26868
26902
  buffer = '';
26869
26903
  } else if (
26870
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
26871
- (chr == '\\' && url.isSpecial())
26904
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
26905
+ (chr === '\\' && url.isSpecial())
26872
26906
  ) {
26873
- if (seenAt && buffer == '') return INVALID_AUTHORITY;
26907
+ if (seenAt && buffer === '') return INVALID_AUTHORITY;
26874
26908
  pointer -= arrayFrom(buffer).length + 1;
26875
26909
  buffer = '';
26876
26910
  state = HOST;
@@ -26879,22 +26913,22 @@
26879
26913
 
26880
26914
  case HOST:
26881
26915
  case HOSTNAME:
26882
- if (stateOverride && url.scheme == 'file') {
26916
+ if (stateOverride && url.scheme === 'file') {
26883
26917
  state = FILE_HOST;
26884
26918
  continue;
26885
- } else if (chr == ':' && !seenBracket) {
26886
- if (buffer == '') return INVALID_HOST;
26919
+ } else if (chr === ':' && !seenBracket) {
26920
+ if (buffer === '') return INVALID_HOST;
26887
26921
  failure = url.parseHost(buffer);
26888
26922
  if (failure) return failure;
26889
26923
  buffer = '';
26890
26924
  state = PORT;
26891
- if (stateOverride == HOSTNAME) return;
26925
+ if (stateOverride === HOSTNAME) return;
26892
26926
  } else if (
26893
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
26894
- (chr == '\\' && url.isSpecial())
26927
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
26928
+ (chr === '\\' && url.isSpecial())
26895
26929
  ) {
26896
- if (url.isSpecial() && buffer == '') return INVALID_HOST;
26897
- if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
26930
+ if (url.isSpecial() && buffer === '') return INVALID_HOST;
26931
+ if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
26898
26932
  failure = url.parseHost(buffer);
26899
26933
  if (failure) return failure;
26900
26934
  buffer = '';
@@ -26902,8 +26936,8 @@
26902
26936
  if (stateOverride) return;
26903
26937
  continue;
26904
26938
  } else {
26905
- if (chr == '[') seenBracket = true;
26906
- else if (chr == ']') seenBracket = false;
26939
+ if (chr === '[') seenBracket = true;
26940
+ else if (chr === ']') seenBracket = false;
26907
26941
  buffer += chr;
26908
26942
  } break;
26909
26943
 
@@ -26911,11 +26945,11 @@
26911
26945
  if (exec(DIGIT, chr)) {
26912
26946
  buffer += chr;
26913
26947
  } else if (
26914
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
26915
- (chr == '\\' && url.isSpecial()) ||
26948
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
26949
+ (chr === '\\' && url.isSpecial()) ||
26916
26950
  stateOverride
26917
26951
  ) {
26918
- if (buffer != '') {
26952
+ if (buffer !== '') {
26919
26953
  var port = parseInt$2(buffer, 10);
26920
26954
  if (port > 0xFFFF) return INVALID_PORT;
26921
26955
  url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
@@ -26929,31 +26963,35 @@
26929
26963
 
26930
26964
  case FILE:
26931
26965
  url.scheme = 'file';
26932
- if (chr == '/' || chr == '\\') state = FILE_SLASH;
26933
- else if (base && base.scheme == 'file') {
26934
- if (chr == EOF) {
26935
- url.host = base.host;
26936
- url.path = arraySlice(base.path);
26937
- url.query = base.query;
26938
- } else if (chr == '?') {
26939
- url.host = base.host;
26940
- url.path = arraySlice(base.path);
26941
- url.query = '';
26942
- state = QUERY;
26943
- } else if (chr == '#') {
26944
- url.host = base.host;
26945
- url.path = arraySlice(base.path);
26946
- url.query = base.query;
26947
- url.fragment = '';
26948
- state = FRAGMENT;
26949
- } else {
26950
- if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
26966
+ if (chr === '/' || chr === '\\') state = FILE_SLASH;
26967
+ else if (base && base.scheme === 'file') {
26968
+ switch (chr) {
26969
+ case EOF:
26951
26970
  url.host = base.host;
26952
26971
  url.path = arraySlice(base.path);
26953
- url.shortenPath();
26954
- }
26955
- state = PATH;
26956
- continue;
26972
+ url.query = base.query;
26973
+ break;
26974
+ case '?':
26975
+ url.host = base.host;
26976
+ url.path = arraySlice(base.path);
26977
+ url.query = '';
26978
+ state = QUERY;
26979
+ break;
26980
+ case '#':
26981
+ url.host = base.host;
26982
+ url.path = arraySlice(base.path);
26983
+ url.query = base.query;
26984
+ url.fragment = '';
26985
+ state = FRAGMENT;
26986
+ break;
26987
+ default:
26988
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
26989
+ url.host = base.host;
26990
+ url.path = arraySlice(base.path);
26991
+ url.shortenPath();
26992
+ }
26993
+ state = PATH;
26994
+ continue;
26957
26995
  }
26958
26996
  } else {
26959
26997
  state = PATH;
@@ -26961,11 +26999,11 @@
26961
26999
  } break;
26962
27000
 
26963
27001
  case FILE_SLASH:
26964
- if (chr == '/' || chr == '\\') {
27002
+ if (chr === '/' || chr === '\\') {
26965
27003
  state = FILE_HOST;
26966
27004
  break;
26967
27005
  }
26968
- if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
27006
+ if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
26969
27007
  if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
26970
27008
  else url.host = base.host;
26971
27009
  }
@@ -26973,17 +27011,17 @@
26973
27011
  continue;
26974
27012
 
26975
27013
  case FILE_HOST:
26976
- if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
27014
+ if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
26977
27015
  if (!stateOverride && isWindowsDriveLetter(buffer)) {
26978
27016
  state = PATH;
26979
- } else if (buffer == '') {
27017
+ } else if (buffer === '') {
26980
27018
  url.host = '';
26981
27019
  if (stateOverride) return;
26982
27020
  state = PATH_START;
26983
27021
  } else {
26984
27022
  failure = url.parseHost(buffer);
26985
27023
  if (failure) return failure;
26986
- if (url.host == 'localhost') url.host = '';
27024
+ if (url.host === 'localhost') url.host = '';
26987
27025
  if (stateOverride) return;
26988
27026
  buffer = '';
26989
27027
  state = PATH_START;
@@ -26994,50 +27032,50 @@
26994
27032
  case PATH_START:
26995
27033
  if (url.isSpecial()) {
26996
27034
  state = PATH;
26997
- if (chr != '/' && chr != '\\') continue;
26998
- } else if (!stateOverride && chr == '?') {
27035
+ if (chr !== '/' && chr !== '\\') continue;
27036
+ } else if (!stateOverride && chr === '?') {
26999
27037
  url.query = '';
27000
27038
  state = QUERY;
27001
- } else if (!stateOverride && chr == '#') {
27039
+ } else if (!stateOverride && chr === '#') {
27002
27040
  url.fragment = '';
27003
27041
  state = FRAGMENT;
27004
- } else if (chr != EOF) {
27042
+ } else if (chr !== EOF) {
27005
27043
  state = PATH;
27006
- if (chr != '/') continue;
27044
+ if (chr !== '/') continue;
27007
27045
  } break;
27008
27046
 
27009
27047
  case PATH:
27010
27048
  if (
27011
- chr == EOF || chr == '/' ||
27012
- (chr == '\\' && url.isSpecial()) ||
27013
- (!stateOverride && (chr == '?' || chr == '#'))
27049
+ chr === EOF || chr === '/' ||
27050
+ (chr === '\\' && url.isSpecial()) ||
27051
+ (!stateOverride && (chr === '?' || chr === '#'))
27014
27052
  ) {
27015
27053
  if (isDoubleDot(buffer)) {
27016
27054
  url.shortenPath();
27017
- if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
27055
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
27018
27056
  push(url.path, '');
27019
27057
  }
27020
27058
  } else if (isSingleDot(buffer)) {
27021
- if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
27059
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
27022
27060
  push(url.path, '');
27023
27061
  }
27024
27062
  } else {
27025
- if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
27063
+ if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
27026
27064
  if (url.host) url.host = '';
27027
27065
  buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
27028
27066
  }
27029
27067
  push(url.path, buffer);
27030
27068
  }
27031
27069
  buffer = '';
27032
- if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
27070
+ if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
27033
27071
  while (url.path.length > 1 && url.path[0] === '') {
27034
27072
  shift(url.path);
27035
27073
  }
27036
27074
  }
27037
- if (chr == '?') {
27075
+ if (chr === '?') {
27038
27076
  url.query = '';
27039
27077
  state = QUERY;
27040
- } else if (chr == '#') {
27078
+ } else if (chr === '#') {
27041
27079
  url.fragment = '';
27042
27080
  state = FRAGMENT;
27043
27081
  }
@@ -27046,28 +27084,28 @@
27046
27084
  } break;
27047
27085
 
27048
27086
  case CANNOT_BE_A_BASE_URL_PATH:
27049
- if (chr == '?') {
27087
+ if (chr === '?') {
27050
27088
  url.query = '';
27051
27089
  state = QUERY;
27052
- } else if (chr == '#') {
27090
+ } else if (chr === '#') {
27053
27091
  url.fragment = '';
27054
27092
  state = FRAGMENT;
27055
- } else if (chr != EOF) {
27093
+ } else if (chr !== EOF) {
27056
27094
  url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
27057
27095
  } break;
27058
27096
 
27059
27097
  case QUERY:
27060
- if (!stateOverride && chr == '#') {
27098
+ if (!stateOverride && chr === '#') {
27061
27099
  url.fragment = '';
27062
27100
  state = FRAGMENT;
27063
- } else if (chr != EOF) {
27064
- if (chr == "'" && url.isSpecial()) url.query += '%27';
27065
- else if (chr == '#') url.query += '%23';
27101
+ } else if (chr !== EOF) {
27102
+ if (chr === "'" && url.isSpecial()) url.query += '%27';
27103
+ else if (chr === '#') url.query += '%23';
27066
27104
  else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
27067
27105
  } break;
27068
27106
 
27069
27107
  case FRAGMENT:
27070
- if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
27108
+ if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
27071
27109
  break;
27072
27110
  }
27073
27111
 
@@ -27077,8 +27115,8 @@
27077
27115
  // https://url.spec.whatwg.org/#host-parsing
27078
27116
  parseHost: function (input) {
27079
27117
  var result, codePoints, index;
27080
- if (charAt(input, 0) == '[') {
27081
- if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
27118
+ if (charAt(input, 0) === '[') {
27119
+ if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
27082
27120
  result = parseIPv6(stringSlice(input, 1, -1));
27083
27121
  if (!result) return INVALID_HOST;
27084
27122
  this.host = result;
@@ -27101,11 +27139,11 @@
27101
27139
  },
27102
27140
  // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
27103
27141
  cannotHaveUsernamePasswordPort: function () {
27104
- return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
27142
+ return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
27105
27143
  },
27106
27144
  // https://url.spec.whatwg.org/#include-credentials
27107
27145
  includesCredentials: function () {
27108
- return this.username != '' || this.password != '';
27146
+ return this.username !== '' || this.password !== '';
27109
27147
  },
27110
27148
  // https://url.spec.whatwg.org/#is-special
27111
27149
  isSpecial: function () {
@@ -27115,7 +27153,7 @@
27115
27153
  shortenPath: function () {
27116
27154
  var path = this.path;
27117
27155
  var pathSize = path.length;
27118
- if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
27156
+ if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
27119
27157
  path.length--;
27120
27158
  }
27121
27159
  },
@@ -27138,7 +27176,7 @@
27138
27176
  }
27139
27177
  output += serializeHost(host);
27140
27178
  if (port !== null) output += ':' + port;
27141
- } else if (scheme == 'file') output += '//';
27179
+ } else if (scheme === 'file') output += '//';
27142
27180
  output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
27143
27181
  if (query !== null) output += '?' + query;
27144
27182
  if (fragment !== null) output += '#' + fragment;
@@ -27154,12 +27192,12 @@
27154
27192
  getOrigin: function () {
27155
27193
  var scheme = this.scheme;
27156
27194
  var port = this.port;
27157
- if (scheme == 'blob') try {
27195
+ if (scheme === 'blob') try {
27158
27196
  return new URLConstructor(scheme.path[0]).origin;
27159
27197
  } catch (error) {
27160
27198
  return 'null';
27161
27199
  }
27162
- if (scheme == 'file' || !this.isSpecial()) return 'null';
27200
+ if (scheme === 'file' || !this.isSpecial()) return 'null';
27163
27201
  return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
27164
27202
  },
27165
27203
  // https://url.spec.whatwg.org/#dom-url-protocol
@@ -27222,7 +27260,7 @@
27222
27260
  setPort: function (port) {
27223
27261
  if (this.cannotHaveUsernamePasswordPort()) return;
27224
27262
  port = $toString(port);
27225
- if (port == '') this.port = null;
27263
+ if (port === '') this.port = null;
27226
27264
  else this.parse(port, PORT);
27227
27265
  },
27228
27266
  // https://url.spec.whatwg.org/#dom-url-pathname
@@ -27242,10 +27280,10 @@
27242
27280
  },
27243
27281
  setSearch: function (search) {
27244
27282
  search = $toString(search);
27245
- if (search == '') {
27283
+ if (search === '') {
27246
27284
  this.query = null;
27247
27285
  } else {
27248
- if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
27286
+ if (charAt(search, 0) === '?') search = stringSlice(search, 1);
27249
27287
  this.query = '';
27250
27288
  this.parse(search, QUERY);
27251
27289
  }
@@ -27262,11 +27300,11 @@
27262
27300
  },
27263
27301
  setHash: function (hash) {
27264
27302
  hash = $toString(hash);
27265
- if (hash == '') {
27303
+ if (hash === '') {
27266
27304
  this.fragment = null;
27267
27305
  return;
27268
27306
  }
27269
- if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
27307
+ if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
27270
27308
  this.fragment = '';
27271
27309
  this.parse(hash, FRAGMENT);
27272
27310
  },
@@ -27811,7 +27849,7 @@
27811
27849
  onSuccess,
27812
27850
  onProgress,
27813
27851
  progress: percent => {
27814
- var _onChange, _onChange$then;
27852
+ var _onChange;
27815
27853
  let fileProgress = Object.assign({}, newFile);
27816
27854
  let uid = fileProgress.uid;
27817
27855
  fileProgress.status = 'uploading';
@@ -27822,15 +27860,15 @@
27822
27860
  arrProgress[i] = fileProgress;
27823
27861
  }
27824
27862
  }
27825
- onChange === null || onChange === void 0 ? void 0 : (_onChange = onChange({
27863
+ onChange === null || onChange === void 0 || (_onChange = onChange({
27826
27864
  fileList: arrProgress,
27827
27865
  file: fileProgress,
27828
27866
  indexReplace: indexReplace.current,
27829
27867
  isReplace: indexReplace.current !== null
27830
- })) === null || _onChange === void 0 ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) === null || _onChange$then === void 0 ? void 0 : _onChange$then.catch(error => setError(error.message));
27868
+ })) === null || _onChange === void 0 || (_onChange = _onChange.then(() => setError(null))) === null || _onChange === void 0 || _onChange.catch(error => setError(error.message));
27831
27869
  }
27832
27870
  }).then(result => {
27833
- var _onChange2, _onChange2$then;
27871
+ var _onChange2;
27834
27872
  let fileSuccess = Object.assign({}, newFile);
27835
27873
  let uid = fileSuccess.uid;
27836
27874
  fileSuccess.url = result;
@@ -27840,14 +27878,14 @@
27840
27878
  arrFile[i] = fileSuccess;
27841
27879
  }
27842
27880
  }
27843
- onChange === null || onChange === void 0 ? void 0 : (_onChange2 = onChange({
27881
+ onChange === null || onChange === void 0 || (_onChange2 = onChange({
27844
27882
  fileList: arrFile,
27845
27883
  file: fileSuccess,
27846
27884
  indexReplace: indexReplace.current,
27847
27885
  isReplace: indexReplace.current !== null
27848
- })) === null || _onChange2 === void 0 ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) === null || _onChange2$then === void 0 ? void 0 : _onChange2$then.catch(error => setError(error.message));
27886
+ })) === null || _onChange2 === void 0 || (_onChange2 = _onChange2.then(() => setError(null))) === null || _onChange2 === void 0 || _onChange2.catch(error => setError(error.message));
27849
27887
  }).catch(error => {
27850
- var _onChange3, _onChange3$then;
27888
+ var _onChange3;
27851
27889
  let fileError = Object.assign({}, newFile);
27852
27890
  let uid = fileError.uid;
27853
27891
  fileError.status = 'error';
@@ -27857,21 +27895,21 @@
27857
27895
  arrFile[i] = fileError;
27858
27896
  }
27859
27897
  }
27860
- onChange === null || onChange === void 0 ? void 0 : (_onChange3 = onChange({
27898
+ onChange === null || onChange === void 0 || (_onChange3 = onChange({
27861
27899
  fileList: arrFile,
27862
27900
  file: fileError,
27863
27901
  indexReplace: indexReplace.current,
27864
27902
  isReplace: indexReplace.current !== null
27865
- })) === null || _onChange3 === void 0 ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) === null || _onChange3$then === void 0 ? void 0 : _onChange3$then.catch(error => setError(error.message));
27903
+ })) === null || _onChange3 === void 0 || (_onChange3 = _onChange3.then(() => setError(null))) === null || _onChange3 === void 0 || _onChange3.catch(error => setError(error.message));
27866
27904
  });
27867
27905
  } else {
27868
- var _onChange4, _onChange4$then;
27869
- onChange === null || onChange === void 0 ? void 0 : (_onChange4 = onChange({
27906
+ var _onChange4;
27907
+ onChange === null || onChange === void 0 || (_onChange4 = onChange({
27870
27908
  fileList: arrFile,
27871
27909
  file: newFile,
27872
27910
  indexReplace: indexReplace.current,
27873
27911
  isReplace: indexReplace.current !== null
27874
- })) === null || _onChange4 === void 0 ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) === null || _onChange4$then === void 0 ? void 0 : _onChange4$then.catch(error => setError(error.message));
27912
+ })) === null || _onChange4 === void 0 || (_onChange4 = _onChange4.then(() => setError(null))) === null || _onChange4 === void 0 || _onChange4.catch(error => setError(error.message));
27875
27913
  }
27876
27914
  if (indexReplace.current !== null) {
27877
27915
  arrFile[indexReplace.current] = newFile;
@@ -27891,15 +27929,15 @@
27891
27929
  // program to get the dimensions of an image
27892
27930
  const img = document.createElement('img');
27893
27931
  img.src = URL.createObjectURL(files[0]);
27894
- img.size = files === null || files === void 0 ? void 0 : (_files$ = files[0]) === null || _files$ === void 0 ? void 0 : _files$.size;
27895
- img.type = files === null || files === void 0 ? void 0 : (_files$2 = files[0]) === null || _files$2 === void 0 ? void 0 : _files$2.type;
27932
+ img.size = files === null || files === void 0 || (_files$ = files[0]) === null || _files$ === void 0 ? void 0 : _files$.size;
27933
+ img.type = files === null || files === void 0 || (_files$2 = files[0]) === null || _files$2 === void 0 ? void 0 : _files$2.type;
27896
27934
  img.onload = () => {
27897
27935
  const imgRatio = img.width / img.height;
27898
27936
  setAspect(ratio || imgRatio);
27899
27937
  setCropperImgRatio(imgRatio);
27900
27938
  if (onBeforeCrop) {
27901
- var _onBeforeCrop, _onBeforeCrop$then;
27902
- onBeforeCrop === null || onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop = onBeforeCrop(img)) === null || _onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop$then = _onBeforeCrop.then(() => {
27939
+ var _onBeforeCrop;
27940
+ onBeforeCrop === null || onBeforeCrop === void 0 || (_onBeforeCrop = onBeforeCrop(img)) === null || _onBeforeCrop === void 0 || (_onBeforeCrop = _onBeforeCrop.then(() => {
27903
27941
  setError(null);
27904
27942
  toggleModal();
27905
27943
  setTimeout(() => {
@@ -27913,7 +27951,7 @@
27913
27951
  }, 300);
27914
27952
  setFileState(files[0]);
27915
27953
  setPreviewImage(URL.createObjectURL(files[0]));
27916
- })) === null || _onBeforeCrop$then === void 0 ? void 0 : _onBeforeCrop$then.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
27954
+ })) === null || _onBeforeCrop === void 0 || _onBeforeCrop.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
27917
27955
  } else {
27918
27956
  toggleModal();
27919
27957
  setTimeout(() => {
@@ -27930,8 +27968,8 @@
27930
27968
  }
27931
27969
  };
27932
27970
  img.onerror = error => {
27933
- var _onBeforeCrop2, _onBeforeCrop2$then;
27934
- onBeforeCrop === null || onBeforeCrop === void 0 ? void 0 : (_onBeforeCrop2 = onBeforeCrop(img, error)) === null || _onBeforeCrop2 === void 0 ? void 0 : (_onBeforeCrop2$then = _onBeforeCrop2.then(() => setError(null))) === null || _onBeforeCrop2$then === void 0 ? void 0 : _onBeforeCrop2$then.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
27971
+ var _onBeforeCrop2;
27972
+ onBeforeCrop === null || onBeforeCrop === void 0 || (_onBeforeCrop2 = onBeforeCrop(img, error)) === null || _onBeforeCrop2 === void 0 || (_onBeforeCrop2 = _onBeforeCrop2.then(() => setError(null))) === null || _onBeforeCrop2 === void 0 || _onBeforeCrop2.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
27935
27973
  };
27936
27974
  }
27937
27975
  }
@@ -27956,7 +27994,7 @@
27956
27994
  alwaysKeepResolution: true
27957
27995
  }).then(compressedFile => {
27958
27996
  var _fileState$name;
27959
- const file = new File([compressedFile], (fileState === null || fileState === void 0 ? void 0 : (_fileState$name = fileState.name) === null || _fileState$name === void 0 ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
27997
+ const file = new File([compressedFile], (fileState === null || fileState === void 0 || (_fileState$name = fileState.name) === null || _fileState$name === void 0 ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
27960
27998
  type: compressedFile === null || compressedFile === void 0 ? void 0 : compressedFile.type
27961
27999
  });
27962
28000
  handleUpload([file]);
@@ -27994,7 +28032,7 @@
27994
28032
  const index = fileList.indexOf(file);
27995
28033
  const newFileList = fileList.slice();
27996
28034
  newFileList.splice(index, 1);
27997
- onChange === null || onChange === void 0 ? void 0 : onChange({
28035
+ onChange === null || onChange === void 0 || onChange({
27998
28036
  fileList: newFileList,
27999
28037
  file
28000
28038
  });
@@ -28017,7 +28055,7 @@
28017
28055
  }
28018
28056
  function handleOpenFile(file) {
28019
28057
  var _String, _file$name;
28020
- let extension = (_String = String(file === null || file === void 0 ? void 0 : (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.split('.').pop())) === null || _String === void 0 ? void 0 : _String.toLowerCase();
28058
+ let extension = (_String = String(file === null || file === void 0 || (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.split('.').pop())) === null || _String === void 0 ? void 0 : _String.toLowerCase();
28021
28059
  if (extension === 'pdf') {
28022
28060
  window.open(file === null || file === void 0 ? void 0 : file.url);
28023
28061
  } else {
@@ -28236,7 +28274,7 @@
28236
28274
  lineNumber: 666,
28237
28275
  columnNumber: 17
28238
28276
  }
28239
- }, ".", item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
28277
+ }, ".", item === null || item === void 0 || (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
28240
28278
  label: item.name,
28241
28279
  __self: undefined,
28242
28280
  __source: {
@@ -32780,7 +32818,7 @@
32780
32818
  lineNumber: 292,
32781
32819
  columnNumber: 13
32782
32820
  }
32783
- }, typeof (props === null || props === void 0 ? void 0 : props.appendContent) === 'function' ? props === null || props === void 0 ? void 0 : (_props$appendContent = props.appendContent) === null || _props$appendContent === void 0 ? void 0 : _props$appendContent.call(props) : props === null || props === void 0 ? void 0 : props.appendContent)));
32821
+ }, typeof (props === null || props === void 0 ? void 0 : props.appendContent) === 'function' ? props === null || props === void 0 || (_props$appendContent = props.appendContent) === null || _props$appendContent === void 0 ? void 0 : _props$appendContent.call(props) : props === null || props === void 0 ? void 0 : props.appendContent)));
32784
32822
  },
32785
32823
  __self: undefined,
32786
32824
  __source: {
@@ -32847,7 +32885,7 @@
32847
32885
  }, [props.hide]);
32848
32886
  React.useEffect(() => {
32849
32887
  var _props$onChangeVisibi;
32850
- props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
32888
+ props === null || props === void 0 || (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 || _props$onChangeVisibi.call(props, state.hide);
32851
32889
  }, [state.hide]);
32852
32890
  const toogleVisibility = value => {
32853
32891
  updateState(prev => Object.assign({}, prev, {
@@ -32856,11 +32894,11 @@
32856
32894
  };
32857
32895
  const getIsComplete = currentStep => {
32858
32896
  var _state$isComplete;
32859
- return state === null || state === void 0 ? void 0 : (_state$isComplete = state.isComplete) === null || _state$isComplete === void 0 ? void 0 : _state$isComplete[currentStep - 1];
32897
+ return state === null || state === void 0 || (_state$isComplete = state.isComplete) === null || _state$isComplete === void 0 ? void 0 : _state$isComplete[currentStep - 1];
32860
32898
  };
32861
32899
  const getTitleStep = currentStep => {
32862
- var _props$navContents, _props$navContents2;
32863
- return props === null || props === void 0 ? void 0 : (_props$navContents = props.navContents) === null || _props$navContents === void 0 ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) === null || _props$navContents2 === void 0 ? void 0 : _props$navContents2.title;
32900
+ var _props$navContents;
32901
+ return props === null || props === void 0 || (_props$navContents = props.navContents) === null || _props$navContents === void 0 || (_props$navContents = _props$navContents[currentStep - 1]) === null || _props$navContents === void 0 ? void 0 : _props$navContents.title;
32864
32902
  };
32865
32903
  const setState = value => {
32866
32904
  updateState(Object.assign({}, state, value));
@@ -32887,20 +32925,20 @@
32887
32925
  }));
32888
32926
  };
32889
32927
  const handleStepChange = e => {
32890
- var _props$navContents3, _props$navContents4;
32928
+ var _props$navContents2;
32891
32929
  const target = window.document.getElementById('container');
32892
32930
  props.scrollTop && target.scrollIntoView({
32893
32931
  behavior: 'smooth',
32894
32932
  block: 'start'
32895
32933
  });
32896
32934
  props.onStepChange && props.onStepChange(e);
32897
- if (props !== null && props !== void 0 && (_props$navContents3 = props.navContents) !== null && _props$navContents3 !== void 0 && (_props$navContents4 = _props$navContents3[(e === null || e === void 0 ? void 0 : e.activeStep) - 1]) !== null && _props$navContents4 !== void 0 && _props$navContents4.disabled) {
32935
+ if (props !== null && props !== void 0 && (_props$navContents2 = props.navContents) !== null && _props$navContents2 !== void 0 && (_props$navContents2 = _props$navContents2[(e === null || e === void 0 ? void 0 : e.activeStep) - 1]) !== null && _props$navContents2 !== void 0 && _props$navContents2.disabled) {
32898
32936
  if ((e === null || e === void 0 ? void 0 : e.activeStep) > (e === null || e === void 0 ? void 0 : e.previousStep)) {
32899
32937
  var _state$SW;
32900
- state === null || state === void 0 ? void 0 : (_state$SW = state.SW) === null || _state$SW === void 0 ? void 0 : _state$SW.nextStep();
32938
+ state === null || state === void 0 || (_state$SW = state.SW) === null || _state$SW === void 0 || _state$SW.nextStep();
32901
32939
  } else {
32902
32940
  var _state$SW2;
32903
- state === null || state === void 0 ? void 0 : (_state$SW2 = state.SW) === null || _state$SW2 === void 0 ? void 0 : _state$SW2.previousStep();
32941
+ state === null || state === void 0 || (_state$SW2 = state.SW) === null || _state$SW2 === void 0 || _state$SW2.previousStep();
32904
32942
  }
32905
32943
  }
32906
32944
  };
@@ -33172,10 +33210,10 @@
33172
33210
  active: (item === null || item === void 0 ? void 0 : item.id) === activeId,
33173
33211
  href: `#${item === null || item === void 0 ? void 0 : item.id}`,
33174
33212
  onClick: e => {
33175
- var _e$currentTarget, _e$currentTarget$href, _e$currentTarget$href2, _e$currentTarget2, _e$currentTarget2$hre, _e$currentTarget2$hre2;
33213
+ var _e$currentTarget, _e$currentTarget2;
33176
33214
  e.preventDefault();
33177
- onNavClick === null || onNavClick === void 0 ? void 0 : onNavClick(e === null || e === void 0 ? void 0 : (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : (_e$currentTarget$href = _e$currentTarget.href) === null || _e$currentTarget$href === void 0 ? void 0 : (_e$currentTarget$href2 = _e$currentTarget$href.split('#')) === null || _e$currentTarget$href2 === void 0 ? void 0 : _e$currentTarget$href2[1]);
33178
- const target = window.document.getElementById(e === null || e === void 0 ? void 0 : (_e$currentTarget2 = e.currentTarget) === null || _e$currentTarget2 === void 0 ? void 0 : (_e$currentTarget2$hre = _e$currentTarget2.href) === null || _e$currentTarget2$hre === void 0 ? void 0 : (_e$currentTarget2$hre2 = _e$currentTarget2$hre.split('#')) === null || _e$currentTarget2$hre2 === void 0 ? void 0 : _e$currentTarget2$hre2[1]);
33215
+ onNavClick === null || onNavClick === void 0 || onNavClick(e === null || e === void 0 || (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.href) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.split('#')) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget[1]);
33216
+ const target = window.document.getElementById(e === null || e === void 0 || (_e$currentTarget2 = e.currentTarget) === null || _e$currentTarget2 === void 0 || (_e$currentTarget2 = _e$currentTarget2.href) === null || _e$currentTarget2 === void 0 || (_e$currentTarget2 = _e$currentTarget2.split('#')) === null || _e$currentTarget2 === void 0 ? void 0 : _e$currentTarget2[1]);
33179
33217
  if (target) {
33180
33218
  var headerOffset = 20;
33181
33219
  var elementPosition = target.getBoundingClientRect().top;
@@ -51982,7 +52020,7 @@
51982
52020
  cursor: 'pointer',
51983
52021
  zIndex: 1800
51984
52022
  });
51985
- var InputSearch = /*#__PURE__*/React__default["default"].forwardRef(function (_a, ref) {
52023
+ var InputSearch = function InputSearch(_a) {
51986
52024
  var placeholder = _a.placeholder,
51987
52025
  value = _a.value,
51988
52026
  list = _a.list,
@@ -52002,7 +52040,6 @@
52002
52040
  }
52003
52041
  }, {
52004
52042
  children: [jsxRuntime.jsx(Input, {
52005
- ref: ref,
52006
52043
  placeholder: placeholder,
52007
52044
  value: value,
52008
52045
  onChange: onChange
@@ -52052,11 +52089,10 @@
52052
52089
  }), void 0)
52053
52090
  }), void 0) : jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0)]
52054
52091
  }), void 0);
52055
- });
52092
+ };
52056
52093
  function MapPicker(props) {
52057
52094
  var _this = this;
52058
52095
  var t = reactI18next.useTranslation(['MajooUI/mapPicker', 'translation']).t;
52059
- var inputRef = React.useRef(null);
52060
52096
  var mapRef = React.useRef(null);
52061
52097
  var css = props.css,
52062
52098
  showBanner = props.showBanner,
@@ -52401,7 +52437,6 @@
52401
52437
  }, void 0), jsxRuntime.jsx(ButtonSelect, {}, void 0), jsxRuntime.jsx(MarkerIcon, {}, void 0), jsxRuntime.jsx(ChangeView, {
52402
52438
  center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng]
52403
52439
  }, void 0), jsxRuntime.jsx(InputSearch, {
52404
- ref: inputRef,
52405
52440
  list: searchResult,
52406
52441
  value: searchQuery,
52407
52442
  placeholder: t('searchPlaceholder', 'Cari ...'),
@@ -52657,7 +52692,7 @@
52657
52692
  // `Number.parseInt` method
52658
52693
  // https://tc39.es/ecma262/#sec-number.parseint
52659
52694
  // eslint-disable-next-line es/no-number-parseint -- required for testing
52660
- $({ target: 'Number', stat: true, forced: Number.parseInt != parseInt$1 }, {
52695
+ $({ target: 'Number', stat: true, forced: Number.parseInt !== parseInt$1 }, {
52661
52696
  parseInt: parseInt$1
52662
52697
  });
52663
52698