@itcase/ui 1.9.60 → 1.9.61

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.
@@ -33,30 +33,30 @@ function bind(fn, thisArg) {
33
33
 
34
34
  // utils is a library of generic helper functions non-specific to axios
35
35
 
36
- const {toString} = Object.prototype;
37
- const {getPrototypeOf} = Object;
38
- const {iterator, toStringTag} = Symbol;
36
+ const { toString } = Object.prototype;
37
+ const { getPrototypeOf } = Object;
38
+ const { iterator, toStringTag } = Symbol;
39
39
 
40
- const kindOf = (cache => thing => {
41
- const str = toString.call(thing);
42
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
40
+ const kindOf = ((cache) => (thing) => {
41
+ const str = toString.call(thing);
42
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
43
43
  })(Object.create(null));
44
44
 
45
45
  const kindOfTest = (type) => {
46
46
  type = type.toLowerCase();
47
- return (thing) => kindOf(thing) === type
47
+ return (thing) => kindOf(thing) === type;
48
48
  };
49
49
 
50
- const typeOfTest = type => thing => typeof thing === type;
50
+ const typeOfTest = (type) => (thing) => typeof thing === type;
51
51
 
52
52
  /**
53
- * Determine if a value is an Array
53
+ * Determine if a value is a non-null object
54
54
  *
55
55
  * @param {Object} val The value to test
56
56
  *
57
57
  * @returns {boolean} True if value is an Array, otherwise false
58
58
  */
59
- const {isArray} = Array;
59
+ const { isArray } = Array;
60
60
 
61
61
  /**
62
62
  * Determine if a value is undefined
@@ -65,7 +65,7 @@ const {isArray} = Array;
65
65
  *
66
66
  * @returns {boolean} True if the value is undefined, otherwise false
67
67
  */
68
- const isUndefined = typeOfTest('undefined');
68
+ const isUndefined = typeOfTest("undefined");
69
69
 
70
70
  /**
71
71
  * Determine if a value is a Buffer
@@ -75,8 +75,14 @@ const isUndefined = typeOfTest('undefined');
75
75
  * @returns {boolean} True if value is a Buffer, otherwise false
76
76
  */
77
77
  function isBuffer(val) {
78
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
79
- && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
78
+ return (
79
+ val !== null &&
80
+ !isUndefined(val) &&
81
+ val.constructor !== null &&
82
+ !isUndefined(val.constructor) &&
83
+ isFunction$1(val.constructor.isBuffer) &&
84
+ val.constructor.isBuffer(val)
85
+ );
80
86
  }
81
87
 
82
88
  /**
@@ -86,8 +92,7 @@ function isBuffer(val) {
86
92
  *
87
93
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
88
94
  */
89
- const isArrayBuffer = kindOfTest('ArrayBuffer');
90
-
95
+ const isArrayBuffer = kindOfTest("ArrayBuffer");
91
96
 
92
97
  /**
93
98
  * Determine if a value is a view on an ArrayBuffer
@@ -98,10 +103,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
98
103
  */
99
104
  function isArrayBufferView(val) {
100
105
  let result;
101
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
106
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
102
107
  result = ArrayBuffer.isView(val);
103
108
  } else {
104
- result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
109
+ result = val && val.buffer && isArrayBuffer(val.buffer);
105
110
  }
106
111
  return result;
107
112
  }
@@ -113,7 +118,7 @@ function isArrayBufferView(val) {
113
118
  *
114
119
  * @returns {boolean} True if value is a String, otherwise false
115
120
  */
116
- const isString = typeOfTest('string');
121
+ const isString = typeOfTest("string");
117
122
 
118
123
  /**
119
124
  * Determine if a value is a Function
@@ -121,7 +126,7 @@ const isString = typeOfTest('string');
121
126
  * @param {*} val The value to test
122
127
  * @returns {boolean} True if value is a Function, otherwise false
123
128
  */
124
- const isFunction$1 = typeOfTest('function');
129
+ const isFunction$1 = typeOfTest("function");
125
130
 
126
131
  /**
127
132
  * Determine if a value is a Number
@@ -130,7 +135,7 @@ const isFunction$1 = typeOfTest('function');
130
135
  *
131
136
  * @returns {boolean} True if value is a Number, otherwise false
132
137
  */
133
- const isNumber = typeOfTest('number');
138
+ const isNumber = typeOfTest("number");
134
139
 
135
140
  /**
136
141
  * Determine if a value is an Object
@@ -139,7 +144,7 @@ const isNumber = typeOfTest('number');
139
144
  *
140
145
  * @returns {boolean} True if value is an Object, otherwise false
141
146
  */
142
- const isObject = (thing) => thing !== null && typeof thing === 'object';
147
+ const isObject = (thing) => thing !== null && typeof thing === "object";
143
148
 
144
149
  /**
145
150
  * Determine if a value is a Boolean
@@ -147,7 +152,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
147
152
  * @param {*} thing The value to test
148
153
  * @returns {boolean} True if value is a Boolean, otherwise false
149
154
  */
150
- const isBoolean = thing => thing === true || thing === false;
155
+ const isBoolean = (thing) => thing === true || thing === false;
151
156
 
152
157
  /**
153
158
  * Determine if a value is a plain Object
@@ -157,12 +162,18 @@ const isBoolean = thing => thing === true || thing === false;
157
162
  * @returns {boolean} True if value is a plain Object, otherwise false
158
163
  */
159
164
  const isPlainObject = (val) => {
160
- if (kindOf(val) !== 'object') {
165
+ if (kindOf(val) !== "object") {
161
166
  return false;
162
167
  }
163
168
 
164
169
  const prototype = getPrototypeOf(val);
165
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
170
+ return (
171
+ (prototype === null ||
172
+ prototype === Object.prototype ||
173
+ Object.getPrototypeOf(prototype) === null) &&
174
+ !(toStringTag in val) &&
175
+ !(iterator in val)
176
+ );
166
177
  };
167
178
 
168
179
  /**
@@ -179,7 +190,10 @@ const isEmptyObject = (val) => {
179
190
  }
180
191
 
181
192
  try {
182
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
193
+ return (
194
+ Object.keys(val).length === 0 &&
195
+ Object.getPrototypeOf(val) === Object.prototype
196
+ );
183
197
  } catch (e) {
184
198
  // Fallback for any other objects that might cause RangeError with Object.keys()
185
199
  return false;
@@ -193,7 +207,7 @@ const isEmptyObject = (val) => {
193
207
  *
194
208
  * @returns {boolean} True if value is a Date, otherwise false
195
209
  */
196
- const isDate = kindOfTest('Date');
210
+ const isDate = kindOfTest("Date");
197
211
 
198
212
  /**
199
213
  * Determine if a value is a File
@@ -202,7 +216,7 @@ const isDate = kindOfTest('Date');
202
216
  *
203
217
  * @returns {boolean} True if value is a File, otherwise false
204
218
  */
205
- const isFile = kindOfTest('File');
219
+ const isFile = kindOfTest("File");
206
220
 
207
221
  /**
208
222
  * Determine if a value is a Blob
@@ -211,7 +225,7 @@ const isFile = kindOfTest('File');
211
225
  *
212
226
  * @returns {boolean} True if value is a Blob, otherwise false
213
227
  */
214
- const isBlob = kindOfTest('Blob');
228
+ const isBlob = kindOfTest("Blob");
215
229
 
216
230
  /**
217
231
  * Determine if a value is a FileList
@@ -220,7 +234,7 @@ const isBlob = kindOfTest('Blob');
220
234
  *
221
235
  * @returns {boolean} True if value is a File, otherwise false
222
236
  */
223
- const isFileList = kindOfTest('FileList');
237
+ const isFileList = kindOfTest("FileList");
224
238
 
225
239
  /**
226
240
  * Determine if a value is a Stream
@@ -240,15 +254,16 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
240
254
  */
241
255
  const isFormData = (thing) => {
242
256
  let kind;
243
- return thing && (
244
- (typeof FormData === 'function' && thing instanceof FormData) || (
245
- isFunction$1(thing.append) && (
246
- (kind = kindOf(thing)) === 'formdata' ||
247
- // detect form-data instance
248
- (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
249
- )
250
- )
251
- )
257
+ return (
258
+ thing &&
259
+ ((typeof FormData === "function" && thing instanceof FormData) ||
260
+ (isFunction$1(thing.append) &&
261
+ ((kind = kindOf(thing)) === "formdata" ||
262
+ // detect form-data instance
263
+ (kind === "object" &&
264
+ isFunction$1(thing.toString) &&
265
+ thing.toString() === "[object FormData]"))))
266
+ );
252
267
  };
253
268
 
254
269
  /**
@@ -258,9 +273,14 @@ const isFormData = (thing) => {
258
273
  *
259
274
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
260
275
  */
261
- const isURLSearchParams = kindOfTest('URLSearchParams');
276
+ const isURLSearchParams = kindOfTest("URLSearchParams");
262
277
 
263
- const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
278
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
279
+ "ReadableStream",
280
+ "Request",
281
+ "Response",
282
+ "Headers",
283
+ ].map(kindOfTest);
264
284
 
265
285
  /**
266
286
  * Trim excess whitespace off the beginning and end of a string
@@ -269,8 +289,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
269
289
  *
270
290
  * @returns {String} The String freed of excess whitespace
271
291
  */
272
- const trim = (str) => str.trim ?
273
- str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
292
+ const trim = (str) =>
293
+ str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
274
294
 
275
295
  /**
276
296
  * Iterate over an Array or an Object invoking a function for each item.
@@ -288,9 +308,9 @@ const trim = (str) => str.trim ?
288
308
  * @param {Boolean} [options.allOwnKeys = false]
289
309
  * @returns {any}
290
310
  */
291
- function forEach(obj, fn, {allOwnKeys = false} = {}) {
311
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
292
312
  // Don't bother if no value provided
293
- if (obj === null || typeof obj === 'undefined') {
313
+ if (obj === null || typeof obj === "undefined") {
294
314
  return;
295
315
  }
296
316
 
@@ -298,7 +318,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
298
318
  let l;
299
319
 
300
320
  // Force an array if not already something iterable
301
- if (typeof obj !== 'object') {
321
+ if (typeof obj !== "object") {
302
322
  /*eslint no-param-reassign:0*/
303
323
  obj = [obj];
304
324
  }
@@ -315,7 +335,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
315
335
  }
316
336
 
317
337
  // Iterate over object keys
318
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
338
+ const keys = allOwnKeys
339
+ ? Object.getOwnPropertyNames(obj)
340
+ : Object.keys(obj);
319
341
  const len = keys.length;
320
342
  let key;
321
343
 
@@ -327,7 +349,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
327
349
  }
328
350
 
329
351
  function findKey(obj, key) {
330
- if (isBuffer(obj)){
352
+ if (isBuffer(obj)) {
331
353
  return null;
332
354
  }
333
355
 
@@ -347,10 +369,15 @@ function findKey(obj, key) {
347
369
  const _global = (() => {
348
370
  /*eslint no-undef:0*/
349
371
  if (typeof globalThis !== "undefined") return globalThis;
350
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
372
+ return typeof self !== "undefined"
373
+ ? self
374
+ : typeof window !== "undefined"
375
+ ? window
376
+ : global;
351
377
  })();
352
378
 
353
- const isContextDefined = (context) => !isUndefined(context) && context !== _global;
379
+ const isContextDefined = (context) =>
380
+ !isUndefined(context) && context !== _global;
354
381
 
355
382
  /**
356
383
  * Accepts varargs expecting each argument to be an object, then
@@ -371,10 +398,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
371
398
  * @returns {Object} Result of all merge properties
372
399
  */
373
400
  function merge(/* obj1, obj2, obj3, ... */) {
374
- const {caseless, skipUndefined} = isContextDefined(this) && this || {};
401
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
375
402
  const result = {};
376
403
  const assignValue = (val, key) => {
377
- const targetKey = caseless && findKey(result, key) || key;
404
+ // Skip dangerous property names to prevent prototype pollution
405
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
406
+ return;
407
+ }
408
+
409
+ const targetKey = (caseless && findKey(result, key)) || key;
378
410
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
379
411
  result[targetKey] = merge(result[targetKey], val);
380
412
  } else if (isPlainObject(val)) {
@@ -403,24 +435,28 @@ function merge(/* obj1, obj2, obj3, ... */) {
403
435
  * @param {Boolean} [options.allOwnKeys]
404
436
  * @returns {Object} The resulting value of object a
405
437
  */
406
- const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
407
- forEach(b, (val, key) => {
408
- if (thisArg && isFunction$1(val)) {
409
- Object.defineProperty(a, key, {
410
- value: bind(val, thisArg),
411
- writable: true,
412
- enumerable: true,
413
- configurable: true
414
- });
415
- } else {
416
- Object.defineProperty(a, key, {
417
- value: val,
418
- writable: true,
419
- enumerable: true,
420
- configurable: true
421
- });
422
- }
423
- }, {allOwnKeys});
438
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
439
+ forEach(
440
+ b,
441
+ (val, key) => {
442
+ if (thisArg && isFunction$1(val)) {
443
+ Object.defineProperty(a, key, {
444
+ value: bind(val, thisArg),
445
+ writable: true,
446
+ enumerable: true,
447
+ configurable: true,
448
+ });
449
+ } else {
450
+ Object.defineProperty(a, key, {
451
+ value: val,
452
+ writable: true,
453
+ enumerable: true,
454
+ configurable: true,
455
+ });
456
+ }
457
+ },
458
+ { allOwnKeys },
459
+ );
424
460
  return a;
425
461
  };
426
462
 
@@ -432,7 +468,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
432
468
  * @returns {string} content value without BOM
433
469
  */
434
470
  const stripBOM = (content) => {
435
- if (content.charCodeAt(0) === 0xFEFF) {
471
+ if (content.charCodeAt(0) === 0xfeff) {
436
472
  content = content.slice(1);
437
473
  }
438
474
  return content;
@@ -448,15 +484,18 @@ const stripBOM = (content) => {
448
484
  * @returns {void}
449
485
  */
450
486
  const inherits = (constructor, superConstructor, props, descriptors) => {
451
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
452
- Object.defineProperty(constructor.prototype, 'constructor', {
487
+ constructor.prototype = Object.create(
488
+ superConstructor.prototype,
489
+ descriptors,
490
+ );
491
+ Object.defineProperty(constructor.prototype, "constructor", {
453
492
  value: constructor,
454
493
  writable: true,
455
494
  enumerable: false,
456
- configurable: true
495
+ configurable: true,
457
496
  });
458
- Object.defineProperty(constructor, 'super', {
459
- value: superConstructor.prototype
497
+ Object.defineProperty(constructor, "super", {
498
+ value: superConstructor.prototype,
460
499
  });
461
500
  props && Object.assign(constructor.prototype, props);
462
501
  };
@@ -485,13 +524,20 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
485
524
  i = props.length;
486
525
  while (i-- > 0) {
487
526
  prop = props[i];
488
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
527
+ if (
528
+ (!propFilter || propFilter(prop, sourceObj, destObj)) &&
529
+ !merged[prop]
530
+ ) {
489
531
  destObj[prop] = sourceObj[prop];
490
532
  merged[prop] = true;
491
533
  }
492
534
  }
493
535
  sourceObj = filter !== false && getPrototypeOf(sourceObj);
494
- } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
536
+ } while (
537
+ sourceObj &&
538
+ (!filter || filter(sourceObj, destObj)) &&
539
+ sourceObj !== Object.prototype
540
+ );
495
541
 
496
542
  return destObj;
497
543
  };
@@ -515,7 +561,6 @@ const endsWith = (str, searchString, position) => {
515
561
  return lastIndex !== -1 && lastIndex === position;
516
562
  };
517
563
 
518
-
519
564
  /**
520
565
  * Returns new array from array like object or null if failed
521
566
  *
@@ -544,12 +589,12 @@ const toArray = (thing) => {
544
589
  * @returns {Array}
545
590
  */
546
591
  // eslint-disable-next-line func-names
547
- const isTypedArray = (TypedArray => {
592
+ const isTypedArray = ((TypedArray) => {
548
593
  // eslint-disable-next-line func-names
549
- return thing => {
594
+ return (thing) => {
550
595
  return TypedArray && thing instanceof TypedArray;
551
596
  };
552
- })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
597
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
553
598
 
554
599
  /**
555
600
  * For each entry in the object, call the function with the key and value.
@@ -592,18 +637,22 @@ const matchAll = (regExp, str) => {
592
637
  };
593
638
 
594
639
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
595
- const isHTMLForm = kindOfTest('HTMLFormElement');
640
+ const isHTMLForm = kindOfTest("HTMLFormElement");
596
641
 
597
- const toCamelCase = str => {
598
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
599
- function replacer(m, p1, p2) {
642
+ const toCamelCase = (str) => {
643
+ return str
644
+ .toLowerCase()
645
+ .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
600
646
  return p1.toUpperCase() + p2;
601
- }
602
- );
647
+ });
603
648
  };
604
649
 
605
650
  /* Creating a function that will check if an object has a property. */
606
- const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
651
+ const hasOwnProperty = (
652
+ ({ hasOwnProperty }) =>
653
+ (obj, prop) =>
654
+ hasOwnProperty.call(obj, prop)
655
+ )(Object.prototype);
607
656
 
608
657
  /**
609
658
  * Determine if a value is a RegExp object
@@ -612,7 +661,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
612
661
  *
613
662
  * @returns {boolean} True if value is a RegExp object, otherwise false
614
663
  */
615
- const isRegExp = kindOfTest('RegExp');
664
+ const isRegExp = kindOfTest("RegExp");
616
665
 
617
666
  const reduceDescriptors = (obj, reducer) => {
618
667
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -636,7 +685,10 @@ const reduceDescriptors = (obj, reducer) => {
636
685
  const freezeMethods = (obj) => {
637
686
  reduceDescriptors(obj, (descriptor, name) => {
638
687
  // skip restricted props in strict mode
639
- if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
688
+ if (
689
+ isFunction$1(obj) &&
690
+ ["arguments", "caller", "callee"].indexOf(name) !== -1
691
+ ) {
640
692
  return false;
641
693
  }
642
694
 
@@ -646,14 +698,14 @@ const freezeMethods = (obj) => {
646
698
 
647
699
  descriptor.enumerable = false;
648
700
 
649
- if ('writable' in descriptor) {
701
+ if ("writable" in descriptor) {
650
702
  descriptor.writable = false;
651
703
  return;
652
704
  }
653
705
 
654
706
  if (!descriptor.set) {
655
707
  descriptor.set = () => {
656
- throw Error('Can not rewrite read-only method \'' + name + '\'');
708
+ throw Error("Can not rewrite read-only method '" + name + "'");
657
709
  };
658
710
  }
659
711
  });
@@ -663,12 +715,14 @@ const toObjectSet = (arrayOrString, delimiter) => {
663
715
  const obj = {};
664
716
 
665
717
  const define = (arr) => {
666
- arr.forEach(value => {
718
+ arr.forEach((value) => {
667
719
  obj[value] = true;
668
720
  });
669
721
  };
670
722
 
671
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
723
+ isArray(arrayOrString)
724
+ ? define(arrayOrString)
725
+ : define(String(arrayOrString).split(delimiter));
672
726
 
673
727
  return obj;
674
728
  };
@@ -676,11 +730,11 @@ const toObjectSet = (arrayOrString, delimiter) => {
676
730
  const noop = () => {};
677
731
 
678
732
  const toFiniteNumber = (value, defaultValue) => {
679
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
733
+ return value != null && Number.isFinite((value = +value))
734
+ ? value
735
+ : defaultValue;
680
736
  };
681
737
 
682
-
683
-
684
738
  /**
685
739
  * If the thing is a FormData object, return true, otherwise return false.
686
740
  *
@@ -689,14 +743,18 @@ const toFiniteNumber = (value, defaultValue) => {
689
743
  * @returns {boolean}
690
744
  */
691
745
  function isSpecCompliantForm(thing) {
692
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
746
+ return !!(
747
+ thing &&
748
+ isFunction$1(thing.append) &&
749
+ thing[toStringTag] === "FormData" &&
750
+ thing[iterator]
751
+ );
693
752
  }
694
753
 
695
754
  const toJSONObject = (obj) => {
696
755
  const stack = new Array(10);
697
756
 
698
757
  const visit = (source, i) => {
699
-
700
758
  if (isObject(source)) {
701
759
  if (stack.indexOf(source) >= 0) {
702
760
  return;
@@ -707,7 +765,7 @@ const toJSONObject = (obj) => {
707
765
  return source;
708
766
  }
709
767
 
710
- if(!('toJSON' in source)) {
768
+ if (!("toJSON" in source)) {
711
769
  stack[i] = source;
712
770
  const target = isArray(source) ? [] : {};
713
771
 
@@ -728,10 +786,13 @@ const toJSONObject = (obj) => {
728
786
  return visit(obj, 0);
729
787
  };
730
788
 
731
- const isAsyncFn = kindOfTest('AsyncFunction');
789
+ const isAsyncFn = kindOfTest("AsyncFunction");
732
790
 
733
791
  const isThenable = (thing) =>
734
- thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
792
+ thing &&
793
+ (isObject(thing) || isFunction$1(thing)) &&
794
+ isFunction$1(thing.then) &&
795
+ isFunction$1(thing.catch);
735
796
 
736
797
  // original code
737
798
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -741,32 +802,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
741
802
  return setImmediate;
742
803
  }
743
804
 
744
- return postMessageSupported ? ((token, callbacks) => {
745
- _global.addEventListener("message", ({source, data}) => {
746
- if (source === _global && data === token) {
747
- callbacks.length && callbacks.shift()();
748
- }
749
- }, false);
805
+ return postMessageSupported
806
+ ? ((token, callbacks) => {
807
+ _global.addEventListener(
808
+ "message",
809
+ ({ source, data }) => {
810
+ if (source === _global && data === token) {
811
+ callbacks.length && callbacks.shift()();
812
+ }
813
+ },
814
+ false,
815
+ );
750
816
 
751
- return (cb) => {
752
- callbacks.push(cb);
753
- _global.postMessage(token, "*");
754
- }
755
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
756
- })(
757
- typeof setImmediate === 'function',
758
- isFunction$1(_global.postMessage)
759
- );
817
+ return (cb) => {
818
+ callbacks.push(cb);
819
+ _global.postMessage(token, "*");
820
+ };
821
+ })(`axios@${Math.random()}`, [])
822
+ : (cb) => setTimeout(cb);
823
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
760
824
 
761
- const asap = typeof queueMicrotask !== 'undefined' ?
762
- queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
825
+ const asap =
826
+ typeof queueMicrotask !== "undefined"
827
+ ? queueMicrotask.bind(_global)
828
+ : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
763
829
 
764
830
  // *********************
765
831
 
766
-
767
832
  const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
768
833
 
769
-
770
834
  var utils$1 = {
771
835
  isArray,
772
836
  isArrayBuffer,
@@ -824,7 +888,7 @@ var utils$1 = {
824
888
  isThenable,
825
889
  setImmediate: _setImmediate,
826
890
  asap,
827
- isIterable
891
+ isIterable,
828
892
  };
829
893
 
830
894
  let AxiosError$1 = class AxiosError extends Error {
@@ -14613,7 +14677,8 @@ class InterceptorManager {
14613
14677
  var transitionalDefaults = {
14614
14678
  silentJSONParsing: true,
14615
14679
  forcedJSONParsing: true,
14616
- clarifyTimeoutError: false
14680
+ clarifyTimeoutError: false,
14681
+ legacyInterceptorReqResOrdering: true
14617
14682
  };
14618
14683
 
14619
14684
  var URLSearchParams = require$$0$1.URLSearchParams;
@@ -15404,6 +15469,10 @@ function isAbsoluteURL(url) {
15404
15469
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
15405
15470
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
15406
15471
  // by any combination of letters, digits, plus, period, or hyphen.
15472
+ if (typeof url !== 'string') {
15473
+ return false;
15474
+ }
15475
+
15407
15476
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
15408
15477
  }
15409
15478
 
@@ -17491,7 +17560,7 @@ function requireFollowRedirects () {
17491
17560
  var followRedirectsExports = requireFollowRedirects();
17492
17561
  var followRedirects = /*@__PURE__*/getDefaultExportFromCjs(followRedirectsExports);
17493
17562
 
17494
- const VERSION$1 = "1.13.4";
17563
+ const VERSION$1 = "1.13.5";
17495
17564
 
17496
17565
  function parseProtocol(url) {
17497
17566
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -18978,7 +19047,8 @@ var cookies = platform.hasStandardBrowserEnv ?
18978
19047
  remove() {}
18979
19048
  };
18980
19049
 
18981
- const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
19050
+ const headersToObject = (thing) =>
19051
+ thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
18982
19052
 
18983
19053
  /**
18984
19054
  * Config-specific merge-function which creates a new config-object
@@ -19067,14 +19137,27 @@ function mergeConfig$1(config1, config2) {
19067
19137
  socketPath: defaultToConfig2,
19068
19138
  responseEncoding: defaultToConfig2,
19069
19139
  validateStatus: mergeDirectKeys,
19070
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
19140
+ headers: (a, b, prop) =>
19141
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
19071
19142
  };
19072
19143
 
19073
- utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
19074
- const merge = mergeMap[prop] || mergeDeepProperties;
19075
- const configValue = merge(config1[prop], config2[prop], prop);
19076
- (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
19077
- });
19144
+ utils$1.forEach(
19145
+ Object.keys({ ...config1, ...config2 }),
19146
+ function computeConfigValue(prop) {
19147
+ if (
19148
+ prop === "__proto__" ||
19149
+ prop === "constructor" ||
19150
+ prop === "prototype"
19151
+ )
19152
+ return;
19153
+ const merge = utils$1.hasOwnProp(mergeMap, prop)
19154
+ ? mergeMap[prop]
19155
+ : mergeDeepProperties;
19156
+ const configValue = merge(config1[prop], config2[prop], prop);
19157
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
19158
+ (config[prop] = configValue);
19159
+ },
19160
+ );
19078
19161
 
19079
19162
  return config;
19080
19163
  }
@@ -19690,14 +19773,14 @@ const factory = (env) => {
19690
19773
 
19691
19774
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
19692
19775
  throw Object.assign(
19693
- new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
19776
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
19694
19777
  {
19695
19778
  cause: err.cause || err
19696
19779
  }
19697
19780
  )
19698
19781
  }
19699
19782
 
19700
- throw AxiosError$1.from(err, err && err.code, config, request);
19783
+ throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
19701
19784
  }
19702
19785
  }
19703
19786
  };
@@ -20088,7 +20171,8 @@ let Axios$1 = class Axios {
20088
20171
  validator.assertOptions(transitional, {
20089
20172
  silentJSONParsing: validators.transitional(validators.boolean),
20090
20173
  forcedJSONParsing: validators.transitional(validators.boolean),
20091
- clarifyTimeoutError: validators.transitional(validators.boolean)
20174
+ clarifyTimeoutError: validators.transitional(validators.boolean),
20175
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
20092
20176
  }, false);
20093
20177
  }
20094
20178
 
@@ -20145,7 +20229,14 @@ let Axios$1 = class Axios {
20145
20229
 
20146
20230
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
20147
20231
 
20148
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
20232
+ const transitional = config.transitional || transitionalDefaults;
20233
+ const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
20234
+
20235
+ if (legacyInterceptorReqResOrdering) {
20236
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
20237
+ } else {
20238
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
20239
+ }
20149
20240
  });
20150
20241
 
20151
20242
  const responseInterceptorChain = [];
@@ -99608,7 +99608,7 @@ div.label {
99608
99608
  }
99609
99609
  }
99610
99610
  /**
99611
- * Swiper 12.1.0
99611
+ * Swiper 12.1.2
99612
99612
  * Most modern mobile touch slider and framework with hardware accelerated transitions
99613
99613
  * https://swiperjs.com
99614
99614
  *
@@ -99616,7 +99616,7 @@ div.label {
99616
99616
  *
99617
99617
  * Released under the MIT License
99618
99618
  *
99619
- * Released on: January 28, 2026
99619
+ * Released on: February 18, 2026
99620
99620
  */
99621
99621
  :root {
99622
99622
  --swiper-theme-color: #007aff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.60",
3
+ "version": "1.9.61",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -118,7 +118,7 @@
118
118
  "react-dadata": "^2.27.4",
119
119
  "react-datepicker": "^9.1.0",
120
120
  "react-dom": "^18.3.1",
121
- "react-dropzone": "^14.4.0",
121
+ "react-dropzone": "^15.0.0",
122
122
  "react-indiana-drag-scroll": "^3.0.3-alpha",
123
123
  "react-inlinesvg": "^4.2.0",
124
124
  "react-modal-sheet": "5.2.1",
@@ -164,7 +164,7 @@
164
164
  "babel-loader": "^10.0.0",
165
165
  "babel-plugin-inline-react-svg": "^2.0.2",
166
166
  "conventional-changelog-conventionalcommits": "^9.1.0",
167
- "eslint": "9.39.2",
167
+ "eslint": "10.0.0",
168
168
  "husky": "^9.1.7",
169
169
  "lint-staged": "^16.2.7",
170
170
  "prettier": "^3.8.1",