@intrig/react 1.0.2 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { createContext, useReducer, useMemo, useContext, useState, useCallback } from 'react';
2
+ import { createContext, useContext, useReducer, useMemo, useState, useCallback, useEffect, useRef, useId } from 'react';
3
3
  import axios, { isAxiosError } from 'axios';
4
+ import { XMLParser } from 'fast-xml-parser';
4
5
 
5
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
7
 
@@ -22,7 +23,7 @@ var globalThis_1 =
22
23
 
23
24
  var objectGetOwnPropertyDescriptor = {};
24
25
 
25
- var fails$f = function (exec) {
26
+ var fails$g = function (exec) {
26
27
  try {
27
28
  return !!exec();
28
29
  } catch (error) {
@@ -30,17 +31,17 @@ var fails$f = function (exec) {
30
31
  }
31
32
  };
32
33
 
33
- var fails$e = fails$f;
34
+ var fails$f = fails$g;
34
35
 
35
36
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$e(function () {
37
+ var descriptors = !fails$f(function () {
37
38
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
39
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
40
  });
40
41
 
41
- var fails$d = fails$f;
42
+ var fails$e = fails$g;
42
43
 
43
- var functionBindNative = !fails$d(function () {
44
+ var functionBindNative = !fails$e(function () {
44
45
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
46
  var test = (function () { /* empty */ }).bind();
46
47
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -71,7 +72,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
71
72
  return !!descriptor && descriptor.enumerable;
72
73
  } : $propertyIsEnumerable;
73
74
 
74
- var createPropertyDescriptor$4 = function (bitmap, value) {
75
+ var createPropertyDescriptor$5 = function (bitmap, value) {
75
76
  return {
76
77
  enumerable: !(bitmap & 1),
77
78
  configurable: !(bitmap & 2),
@@ -92,24 +93,24 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
92
93
  };
93
94
  };
94
95
 
95
- var uncurryThis$f = functionUncurryThis;
96
+ var uncurryThis$g = functionUncurryThis;
96
97
 
97
- var toString$3 = uncurryThis$f({}.toString);
98
- var stringSlice$1 = uncurryThis$f(''.slice);
98
+ var toString$4 = uncurryThis$g({}.toString);
99
+ var stringSlice$1 = uncurryThis$g(''.slice);
99
100
 
100
101
  var classofRaw$2 = function (it) {
101
- return stringSlice$1(toString$3(it), 8, -1);
102
+ return stringSlice$1(toString$4(it), 8, -1);
102
103
  };
103
104
 
104
- var uncurryThis$e = functionUncurryThis;
105
- var fails$c = fails$f;
105
+ var uncurryThis$f = functionUncurryThis;
106
+ var fails$d = fails$g;
106
107
  var classof$6 = classofRaw$2;
107
108
 
108
109
  var $Object$4 = Object;
109
- var split = uncurryThis$e(''.split);
110
+ var split = uncurryThis$f(''.split);
110
111
 
111
112
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$c(function () {
113
+ var indexedObject = fails$d(function () {
113
114
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
115
  // eslint-disable-next-line no-prototype-builtins -- safe
115
116
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -148,45 +149,45 @@ var documentAll = typeof document == 'object' && document.all;
148
149
  // `IsCallable` abstract operation
149
150
  // https://tc39.es/ecma262/#sec-iscallable
150
151
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
153
  return typeof argument == 'function' || argument === documentAll;
153
154
  } : function (argument) {
154
155
  return typeof argument == 'function';
155
156
  };
156
157
 
157
- var isCallable$i = isCallable$j;
158
+ var isCallable$j = isCallable$k;
158
159
 
159
- var isObject$b = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$i(it);
160
+ var isObject$d = function (it) {
161
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
161
162
  };
162
163
 
163
- var globalThis$j = globalThis_1;
164
- var isCallable$h = isCallable$j;
164
+ var globalThis$k = globalThis_1;
165
+ var isCallable$i = isCallable$k;
165
166
 
166
167
  var aFunction = function (argument) {
167
- return isCallable$h(argument) ? argument : undefined;
168
+ return isCallable$i(argument) ? argument : undefined;
168
169
  };
169
170
 
170
- var getBuiltIn$7 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(globalThis$j[namespace]) : globalThis$j[namespace] && globalThis$j[namespace][method];
171
+ var getBuiltIn$8 = function (namespace, method) {
172
+ return arguments.length < 2 ? aFunction(globalThis$k[namespace]) : globalThis$k[namespace] && globalThis$k[namespace][method];
172
173
  };
173
174
 
174
- var uncurryThis$d = functionUncurryThis;
175
+ var uncurryThis$e = functionUncurryThis;
175
176
 
176
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
177
+ var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
177
178
 
178
- var globalThis$i = globalThis_1;
179
+ var globalThis$j = globalThis_1;
179
180
 
180
- var navigator = globalThis$i.navigator;
181
+ var navigator = globalThis$j.navigator;
181
182
  var userAgent$5 = navigator && navigator.userAgent;
182
183
 
183
184
  var environmentUserAgent = userAgent$5 ? String(userAgent$5) : '';
184
185
 
185
- var globalThis$h = globalThis_1;
186
+ var globalThis$i = globalThis_1;
186
187
  var userAgent$4 = environmentUserAgent;
187
188
 
188
- var process$3 = globalThis$h.process;
189
- var Deno$1 = globalThis$h.Deno;
189
+ var process$3 = globalThis$i.process;
190
+ var Deno$1 = globalThis$i.Deno;
190
191
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
191
192
  var v8 = versions && versions.v8;
192
193
  var match, version;
@@ -212,13 +213,13 @@ var environmentV8Version = version;
212
213
 
213
214
  /* eslint-disable es/no-symbol -- required for testing */
214
215
  var V8_VERSION$1 = environmentV8Version;
215
- var fails$b = fails$f;
216
- var globalThis$g = globalThis_1;
216
+ var fails$c = fails$g;
217
+ var globalThis$h = globalThis_1;
217
218
 
218
- var $String$5 = globalThis$g.String;
219
+ var $String$5 = globalThis$h.String;
219
220
 
220
221
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
221
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
222
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
222
223
  var symbol = Symbol('symbol detection');
223
224
  // Chrome 38 Symbol has incorrect toString conversion
224
225
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -236,9 +237,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
236
237
  && !Symbol.sham
237
238
  && typeof Symbol.iterator == 'symbol';
238
239
 
239
- var getBuiltIn$6 = getBuiltIn$7;
240
- var isCallable$g = isCallable$j;
241
- var isPrototypeOf$2 = objectIsPrototypeOf;
240
+ var getBuiltIn$7 = getBuiltIn$8;
241
+ var isCallable$h = isCallable$k;
242
+ var isPrototypeOf$3 = objectIsPrototypeOf;
242
243
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
243
244
 
244
245
  var $Object$3 = Object;
@@ -246,8 +247,8 @@ var $Object$3 = Object;
246
247
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
247
248
  return typeof it == 'symbol';
248
249
  } : function (it) {
249
- var $Symbol = getBuiltIn$6('Symbol');
250
- return isCallable$g($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
250
+ var $Symbol = getBuiltIn$7('Symbol');
251
+ return isCallable$h($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
251
252
  };
252
253
 
253
254
  var $String$4 = String;
@@ -260,14 +261,14 @@ var tryToString$4 = function (argument) {
260
261
  }
261
262
  };
262
263
 
263
- var isCallable$f = isCallable$j;
264
+ var isCallable$g = isCallable$k;
264
265
  var tryToString$3 = tryToString$4;
265
266
 
266
267
  var $TypeError$d = TypeError;
267
268
 
268
269
  // `Assert: IsCallable(argument) is true`
269
270
  var aCallable$9 = function (argument) {
270
- if (isCallable$f(argument)) return argument;
271
+ if (isCallable$g(argument)) return argument;
271
272
  throw new $TypeError$d(tryToString$3(argument) + ' is not a function');
272
273
  };
273
274
 
@@ -282,8 +283,8 @@ var getMethod$3 = function (V, P) {
282
283
  };
283
284
 
284
285
  var call$b = functionCall;
285
- var isCallable$e = isCallable$j;
286
- var isObject$a = isObject$b;
286
+ var isCallable$f = isCallable$k;
287
+ var isObject$c = isObject$d;
287
288
 
288
289
  var $TypeError$c = TypeError;
289
290
 
@@ -291,32 +292,32 @@ var $TypeError$c = TypeError;
291
292
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
292
293
  var ordinaryToPrimitive$1 = function (input, pref) {
293
294
  var fn, val;
294
- if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
295
- if (isCallable$e(fn = input.valueOf) && !isObject$a(val = call$b(fn, input))) return val;
296
- if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
295
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$b(fn, input))) return val;
296
+ if (isCallable$f(fn = input.valueOf) && !isObject$c(val = call$b(fn, input))) return val;
297
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$b(fn, input))) return val;
297
298
  throw new $TypeError$c("Can't convert object to primitive value");
298
299
  };
299
300
 
300
301
  var sharedStore = {exports: {}};
301
302
 
302
- var globalThis$f = globalThis_1;
303
+ var globalThis$g = globalThis_1;
303
304
 
304
305
  // eslint-disable-next-line es/no-object-defineproperty -- safe
305
- var defineProperty$6 = Object.defineProperty;
306
+ var defineProperty$7 = Object.defineProperty;
306
307
 
307
308
  var defineGlobalProperty$3 = function (key, value) {
308
309
  try {
309
- defineProperty$6(globalThis$f, key, { value: value, configurable: true, writable: true });
310
+ defineProperty$7(globalThis$g, key, { value: value, configurable: true, writable: true });
310
311
  } catch (error) {
311
- globalThis$f[key] = value;
312
+ globalThis$g[key] = value;
312
313
  } return value;
313
314
  };
314
315
 
315
- var globalThis$e = globalThis_1;
316
+ var globalThis$f = globalThis_1;
316
317
  var defineGlobalProperty$2 = defineGlobalProperty$3;
317
318
 
318
319
  var SHARED = '__core-js_shared__';
319
- var store$3 = sharedStore.exports = globalThis$e[SHARED] || defineGlobalProperty$2(SHARED, {});
320
+ var store$3 = sharedStore.exports = globalThis$f[SHARED] || defineGlobalProperty$2(SHARED, {});
320
321
 
321
322
  (store$3.versions || (store$3.versions = [])).push({
322
323
  version: '3.38.1',
@@ -344,10 +345,10 @@ var toObject$4 = function (argument) {
344
345
  return $Object$2(requireObjectCoercible$2(argument));
345
346
  };
346
347
 
347
- var uncurryThis$c = functionUncurryThis;
348
+ var uncurryThis$d = functionUncurryThis;
348
349
  var toObject$3 = toObject$4;
349
350
 
350
- var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
351
+ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
351
352
 
352
353
  // `HasOwnProperty` abstract operation
353
354
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -356,37 +357,37 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
356
357
  return hasOwnProperty(toObject$3(it), key);
357
358
  };
358
359
 
359
- var uncurryThis$b = functionUncurryThis;
360
+ var uncurryThis$c = functionUncurryThis;
360
361
 
361
362
  var id = 0;
362
363
  var postfix = Math.random();
363
- var toString$2 = uncurryThis$b(1.0.toString);
364
+ var toString$3 = uncurryThis$c(1.0.toString);
364
365
 
365
366
  var uid$2 = function (key) {
366
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
367
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
367
368
  };
368
369
 
369
- var globalThis$d = globalThis_1;
370
+ var globalThis$e = globalThis_1;
370
371
  var shared$2 = shared$3;
371
- var hasOwn$9 = hasOwnProperty_1;
372
+ var hasOwn$a = hasOwnProperty_1;
372
373
  var uid$1 = uid$2;
373
374
  var NATIVE_SYMBOL = symbolConstructorDetection;
374
375
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
375
376
 
376
- var Symbol$1 = globalThis$d.Symbol;
377
+ var Symbol$1 = globalThis$e.Symbol;
377
378
  var WellKnownSymbolsStore = shared$2('wks');
378
379
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
379
380
 
380
381
  var wellKnownSymbol$g = function (name) {
381
- if (!hasOwn$9(WellKnownSymbolsStore, name)) {
382
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
382
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
383
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
383
384
  ? Symbol$1[name]
384
385
  : createWellKnownSymbol('Symbol.' + name);
385
386
  } return WellKnownSymbolsStore[name];
386
387
  };
387
388
 
388
389
  var call$a = functionCall;
389
- var isObject$9 = isObject$b;
390
+ var isObject$b = isObject$d;
390
391
  var isSymbol$1 = isSymbol$2;
391
392
  var getMethod$2 = getMethod$3;
392
393
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -398,13 +399,13 @@ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
398
399
  // `ToPrimitive` abstract operation
399
400
  // https://tc39.es/ecma262/#sec-toprimitive
400
401
  var toPrimitive$1 = function (input, pref) {
401
- if (!isObject$9(input) || isSymbol$1(input)) return input;
402
+ if (!isObject$b(input) || isSymbol$1(input)) return input;
402
403
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
403
404
  var result;
404
405
  if (exoticToPrim) {
405
406
  if (pref === undefined) pref = 'default';
406
407
  result = call$a(exoticToPrim, input, pref);
407
- if (!isObject$9(result) || isSymbol$1(result)) return result;
408
+ if (!isObject$b(result) || isSymbol$1(result)) return result;
408
409
  throw new $TypeError$b("Can't convert object to primitive value");
409
410
  }
410
411
  if (pref === undefined) pref = 'number';
@@ -421,36 +422,36 @@ var toPropertyKey$2 = function (argument) {
421
422
  return isSymbol(key) ? key : key + '';
422
423
  };
423
424
 
424
- var globalThis$c = globalThis_1;
425
- var isObject$8 = isObject$b;
425
+ var globalThis$d = globalThis_1;
426
+ var isObject$a = isObject$d;
426
427
 
427
- var document$3 = globalThis$c.document;
428
+ var document$3 = globalThis$d.document;
428
429
  // typeof document.createElement is 'object' in old IE
429
- var EXISTS$1 = isObject$8(document$3) && isObject$8(document$3.createElement);
430
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
430
431
 
431
432
  var documentCreateElement$2 = function (it) {
432
433
  return EXISTS$1 ? document$3.createElement(it) : {};
433
434
  };
434
435
 
435
- var DESCRIPTORS$c = descriptors;
436
- var fails$a = fails$f;
436
+ var DESCRIPTORS$d = descriptors;
437
+ var fails$b = fails$g;
437
438
  var createElement$1 = documentCreateElement$2;
438
439
 
439
440
  // Thanks to IE8 for its funny defineProperty
440
- var ie8DomDefine = !DESCRIPTORS$c && !fails$a(function () {
441
+ var ie8DomDefine = !DESCRIPTORS$d && !fails$b(function () {
441
442
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
442
443
  return Object.defineProperty(createElement$1('div'), 'a', {
443
444
  get: function () { return 7; }
444
445
  }).a !== 7;
445
446
  });
446
447
 
447
- var DESCRIPTORS$b = descriptors;
448
+ var DESCRIPTORS$c = descriptors;
448
449
  var call$9 = functionCall;
449
450
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
450
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
451
+ var createPropertyDescriptor$4 = createPropertyDescriptor$5;
451
452
  var toIndexedObject$4 = toIndexedObject$5;
452
453
  var toPropertyKey$1 = toPropertyKey$2;
453
- var hasOwn$8 = hasOwnProperty_1;
454
+ var hasOwn$9 = hasOwnProperty_1;
454
455
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
455
456
 
456
457
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -458,23 +459,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
458
459
 
459
460
  // `Object.getOwnPropertyDescriptor` method
460
461
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
461
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
462
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
462
463
  O = toIndexedObject$4(O);
463
464
  P = toPropertyKey$1(P);
464
465
  if (IE8_DOM_DEFINE$1) try {
465
466
  return $getOwnPropertyDescriptor$1(O, P);
466
467
  } catch (error) { /* empty */ }
467
- if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
468
+ if (hasOwn$9(O, P)) return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
468
469
  };
469
470
 
470
471
  var objectDefineProperty = {};
471
472
 
472
- var DESCRIPTORS$a = descriptors;
473
- var fails$9 = fails$f;
473
+ var DESCRIPTORS$b = descriptors;
474
+ var fails$a = fails$g;
474
475
 
475
476
  // V8 ~ Chrome 36-
476
477
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
477
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$9(function () {
478
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$a(function () {
478
479
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
479
480
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
480
481
  value: 42,
@@ -482,18 +483,18 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$9(function () {
482
483
  }).prototype !== 42;
483
484
  });
484
485
 
485
- var isObject$7 = isObject$b;
486
+ var isObject$9 = isObject$d;
486
487
 
487
488
  var $String$3 = String;
488
489
  var $TypeError$a = TypeError;
489
490
 
490
491
  // `Assert: Type(argument) is Object`
491
492
  var anObject$9 = function (argument) {
492
- if (isObject$7(argument)) return argument;
493
+ if (isObject$9(argument)) return argument;
493
494
  throw new $TypeError$a($String$3(argument) + ' is not an object');
494
495
  };
495
496
 
496
- var DESCRIPTORS$9 = descriptors;
497
+ var DESCRIPTORS$a = descriptors;
497
498
  var IE8_DOM_DEFINE = ie8DomDefine;
498
499
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
499
500
  var anObject$8 = anObject$9;
@@ -510,7 +511,7 @@ var WRITABLE = 'writable';
510
511
 
511
512
  // `Object.defineProperty` method
512
513
  // https://tc39.es/ecma262/#sec-object.defineproperty
513
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
514
+ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
514
515
  anObject$8(O);
515
516
  P = toPropertyKey(P);
516
517
  anObject$8(Attributes);
@@ -537,12 +538,12 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
537
538
  return O;
538
539
  };
539
540
 
540
- var DESCRIPTORS$8 = descriptors;
541
+ var DESCRIPTORS$9 = descriptors;
541
542
  var definePropertyModule$4 = objectDefineProperty;
542
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
543
+ var createPropertyDescriptor$3 = createPropertyDescriptor$5;
543
544
 
544
- var createNonEnumerableProperty$4 = DESCRIPTORS$8 ? function (object, key, value) {
545
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
545
+ var createNonEnumerableProperty$7 = DESCRIPTORS$9 ? function (object, key, value) {
546
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
546
547
  } : function (object, key, value) {
547
548
  object[key] = value;
548
549
  return object;
@@ -550,17 +551,17 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$8 ? function (object, key, value
550
551
 
551
552
  var makeBuiltIn$3 = {exports: {}};
552
553
 
553
- var DESCRIPTORS$7 = descriptors;
554
- var hasOwn$7 = hasOwnProperty_1;
554
+ var DESCRIPTORS$8 = descriptors;
555
+ var hasOwn$8 = hasOwnProperty_1;
555
556
 
556
557
  var FunctionPrototype$1 = Function.prototype;
557
558
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
558
- var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
559
+ var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
559
560
 
560
- var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
561
+ var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
561
562
  // additional protection from minified / mangled / dropped function names
562
563
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
563
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
564
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
564
565
 
565
566
  var functionName = {
566
567
  EXISTS: EXISTS,
@@ -568,14 +569,14 @@ var functionName = {
568
569
  CONFIGURABLE: CONFIGURABLE
569
570
  };
570
571
 
571
- var uncurryThis$a = functionUncurryThis;
572
- var isCallable$d = isCallable$j;
572
+ var uncurryThis$b = functionUncurryThis;
573
+ var isCallable$e = isCallable$k;
573
574
  var store$1 = sharedStoreExports;
574
575
 
575
- var functionToString = uncurryThis$a(Function.toString);
576
+ var functionToString = uncurryThis$b(Function.toString);
576
577
 
577
578
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
578
- if (!isCallable$d(store$1.inspectSource)) {
579
+ if (!isCallable$e(store$1.inspectSource)) {
579
580
  store$1.inspectSource = function (it) {
580
581
  return functionToString(it);
581
582
  };
@@ -583,12 +584,12 @@ if (!isCallable$d(store$1.inspectSource)) {
583
584
 
584
585
  var inspectSource$3 = store$1.inspectSource;
585
586
 
586
- var globalThis$b = globalThis_1;
587
- var isCallable$c = isCallable$j;
587
+ var globalThis$c = globalThis_1;
588
+ var isCallable$d = isCallable$k;
588
589
 
589
- var WeakMap$1 = globalThis$b.WeakMap;
590
+ var WeakMap$1 = globalThis$c.WeakMap;
590
591
 
591
- var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
592
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
592
593
 
593
594
  var shared$1 = shared$3;
594
595
  var uid = uid$2;
@@ -602,17 +603,17 @@ var sharedKey$3 = function (key) {
602
603
  var hiddenKeys$4 = {};
603
604
 
604
605
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
605
- var globalThis$a = globalThis_1;
606
- var isObject$6 = isObject$b;
607
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
608
- var hasOwn$6 = hasOwnProperty_1;
606
+ var globalThis$b = globalThis_1;
607
+ var isObject$8 = isObject$d;
608
+ var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
609
+ var hasOwn$7 = hasOwnProperty_1;
609
610
  var shared = sharedStoreExports;
610
611
  var sharedKey$2 = sharedKey$3;
611
612
  var hiddenKeys$3 = hiddenKeys$4;
612
613
 
613
614
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
614
- var TypeError$2 = globalThis$a.TypeError;
615
- var WeakMap = globalThis$a.WeakMap;
615
+ var TypeError$2 = globalThis$b.TypeError;
616
+ var WeakMap = globalThis$b.WeakMap;
616
617
  var set$1, get, has;
617
618
 
618
619
  var enforce = function (it) {
@@ -622,7 +623,7 @@ var enforce = function (it) {
622
623
  var getterFor = function (TYPE) {
623
624
  return function (it) {
624
625
  var state;
625
- if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
626
+ if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
626
627
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
627
628
  } return state;
628
629
  };
@@ -651,16 +652,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
651
652
  var STATE = sharedKey$2('state');
652
653
  hiddenKeys$3[STATE] = true;
653
654
  set$1 = function (it, metadata) {
654
- if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
655
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
655
656
  metadata.facade = it;
656
- createNonEnumerableProperty$3(it, STATE, metadata);
657
+ createNonEnumerableProperty$6(it, STATE, metadata);
657
658
  return metadata;
658
659
  };
659
660
  get = function (it) {
660
- return hasOwn$6(it, STATE) ? it[STATE] : {};
661
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
661
662
  };
662
663
  has = function (it) {
663
- return hasOwn$6(it, STATE);
664
+ return hasOwn$7(it, STATE);
664
665
  };
665
666
  }
666
667
 
@@ -672,11 +673,11 @@ var internalState = {
672
673
  getterFor: getterFor
673
674
  };
674
675
 
675
- var uncurryThis$9 = functionUncurryThis;
676
- var fails$8 = fails$f;
677
- var isCallable$b = isCallable$j;
678
- var hasOwn$5 = hasOwnProperty_1;
679
- var DESCRIPTORS$6 = descriptors;
676
+ var uncurryThis$a = functionUncurryThis;
677
+ var fails$9 = fails$g;
678
+ var isCallable$c = isCallable$k;
679
+ var hasOwn$6 = hasOwnProperty_1;
680
+ var DESCRIPTORS$7 = descriptors;
680
681
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
681
682
  var inspectSource$2 = inspectSource$3;
682
683
  var InternalStateModule$2 = internalState;
@@ -685,38 +686,38 @@ var enforceInternalState = InternalStateModule$2.enforce;
685
686
  var getInternalState$1 = InternalStateModule$2.get;
686
687
  var $String$2 = String;
687
688
  // eslint-disable-next-line es/no-object-defineproperty -- safe
688
- var defineProperty$5 = Object.defineProperty;
689
- var stringSlice = uncurryThis$9(''.slice);
690
- var replace = uncurryThis$9(''.replace);
691
- var join = uncurryThis$9([].join);
689
+ var defineProperty$6 = Object.defineProperty;
690
+ var stringSlice = uncurryThis$a(''.slice);
691
+ var replace$1 = uncurryThis$a(''.replace);
692
+ var join = uncurryThis$a([].join);
692
693
 
693
- var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$8(function () {
694
- return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
694
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$9(function () {
695
+ return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
695
696
  });
696
697
 
697
698
  var TEMPLATE = String(String).split('String');
698
699
 
699
700
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
700
701
  if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
701
- name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
702
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
702
703
  }
703
704
  if (options && options.getter) name = 'get ' + name;
704
705
  if (options && options.setter) name = 'set ' + name;
705
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
706
- if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
706
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
707
+ if (DESCRIPTORS$7) defineProperty$6(value, 'name', { value: name, configurable: true });
707
708
  else value.name = name;
708
709
  }
709
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
710
- defineProperty$5(value, 'length', { value: options.arity });
710
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
711
+ defineProperty$6(value, 'length', { value: options.arity });
711
712
  }
712
713
  try {
713
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
714
- if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
714
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
715
+ if (DESCRIPTORS$7) defineProperty$6(value, 'prototype', { writable: false });
715
716
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
716
717
  } else if (value.prototype) value.prototype = undefined;
717
718
  } catch (error) { /* empty */ }
718
719
  var state = enforceInternalState(value);
719
- if (!hasOwn$5(state, 'source')) {
720
+ if (!hasOwn$6(state, 'source')) {
720
721
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
721
722
  } return value;
722
723
  };
@@ -724,12 +725,12 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
724
725
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
725
726
  // eslint-disable-next-line no-extend-native -- required
726
727
  Function.prototype.toString = makeBuiltIn$2(function toString() {
727
- return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
728
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
728
729
  }, 'toString');
729
730
 
730
731
  var makeBuiltInExports = makeBuiltIn$3.exports;
731
732
 
732
- var isCallable$a = isCallable$j;
733
+ var isCallable$b = isCallable$k;
733
734
  var definePropertyModule$3 = objectDefineProperty;
734
735
  var makeBuiltIn$1 = makeBuiltInExports;
735
736
  var defineGlobalProperty$1 = defineGlobalProperty$3;
@@ -738,7 +739,7 @@ var defineBuiltIn$5 = function (O, key, value, options) {
738
739
  if (!options) options = {};
739
740
  var simple = options.enumerable;
740
741
  var name = options.name !== undefined ? options.name : key;
741
- if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
742
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
742
743
  if (options.global) {
743
744
  if (simple) O[key] = value;
744
745
  else defineGlobalProperty$1(key, value);
@@ -846,22 +847,22 @@ var arrayIncludes = {
846
847
  indexOf: createMethod$1(false)
847
848
  };
848
849
 
849
- var uncurryThis$8 = functionUncurryThis;
850
- var hasOwn$4 = hasOwnProperty_1;
850
+ var uncurryThis$9 = functionUncurryThis;
851
+ var hasOwn$5 = hasOwnProperty_1;
851
852
  var toIndexedObject$2 = toIndexedObject$5;
852
853
  var indexOf = arrayIncludes.indexOf;
853
854
  var hiddenKeys$2 = hiddenKeys$4;
854
855
 
855
- var push = uncurryThis$8([].push);
856
+ var push = uncurryThis$9([].push);
856
857
 
857
858
  var objectKeysInternal = function (object, names) {
858
859
  var O = toIndexedObject$2(object);
859
860
  var i = 0;
860
861
  var result = [];
861
862
  var key;
862
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
863
+ for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push(result, key);
863
864
  // Don't enum bug & hidden keys
864
- while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
865
+ while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
865
866
  ~indexOf(result, key) || push(result, key);
866
867
  }
867
868
  return result;
@@ -895,40 +896,40 @@ var objectGetOwnPropertySymbols = {};
895
896
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
896
897
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
897
898
 
898
- var getBuiltIn$5 = getBuiltIn$7;
899
- var uncurryThis$7 = functionUncurryThis;
899
+ var getBuiltIn$6 = getBuiltIn$8;
900
+ var uncurryThis$8 = functionUncurryThis;
900
901
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
901
902
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
902
903
  var anObject$7 = anObject$9;
903
904
 
904
- var concat$1 = uncurryThis$7([].concat);
905
+ var concat$1 = uncurryThis$8([].concat);
905
906
 
906
907
  // all object keys, includes non-enumerable and symbols
907
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
908
+ var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
908
909
  var keys = getOwnPropertyNamesModule.f(anObject$7(it));
909
910
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
910
911
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
911
912
  };
912
913
 
913
- var hasOwn$3 = hasOwnProperty_1;
914
+ var hasOwn$4 = hasOwnProperty_1;
914
915
  var ownKeys = ownKeys$1;
915
916
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
916
917
  var definePropertyModule$2 = objectDefineProperty;
917
918
 
918
- var copyConstructorProperties$1 = function (target, source, exceptions) {
919
+ var copyConstructorProperties$2 = function (target, source, exceptions) {
919
920
  var keys = ownKeys(source);
920
921
  var defineProperty = definePropertyModule$2.f;
921
922
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
922
923
  for (var i = 0; i < keys.length; i++) {
923
924
  var key = keys[i];
924
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
925
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
925
926
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
926
927
  }
927
928
  }
928
929
  };
929
930
 
930
- var fails$7 = fails$f;
931
- var isCallable$9 = isCallable$j;
931
+ var fails$8 = fails$g;
932
+ var isCallable$a = isCallable$k;
932
933
 
933
934
  var replacement = /#|\.prototype\./;
934
935
 
@@ -936,7 +937,7 @@ var isForced$2 = function (feature, detection) {
936
937
  var value = data[normalize(feature)];
937
938
  return value === POLYFILL ? true
938
939
  : value === NATIVE ? false
939
- : isCallable$9(detection) ? fails$7(detection)
940
+ : isCallable$a(detection) ? fails$8(detection)
940
941
  : !!detection;
941
942
  };
942
943
 
@@ -950,12 +951,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
950
951
 
951
952
  var isForced_1 = isForced$2;
952
953
 
953
- var globalThis$9 = globalThis_1;
954
+ var globalThis$a = globalThis_1;
954
955
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
955
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
956
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
956
957
  var defineBuiltIn$4 = defineBuiltIn$5;
957
958
  var defineGlobalProperty = defineGlobalProperty$3;
958
- var copyConstructorProperties = copyConstructorProperties$1;
959
+ var copyConstructorProperties$1 = copyConstructorProperties$2;
959
960
  var isForced$1 = isForced_1;
960
961
 
961
962
  /*
@@ -979,11 +980,11 @@ var _export = function (options, source) {
979
980
  var STATIC = options.stat;
980
981
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
981
982
  if (GLOBAL) {
982
- target = globalThis$9;
983
+ target = globalThis$a;
983
984
  } else if (STATIC) {
984
- target = globalThis$9[TARGET] || defineGlobalProperty(TARGET, {});
985
+ target = globalThis$a[TARGET] || defineGlobalProperty(TARGET, {});
985
986
  } else {
986
- target = globalThis$9[TARGET] && globalThis$9[TARGET].prototype;
987
+ target = globalThis$a[TARGET] && globalThis$a[TARGET].prototype;
987
988
  }
988
989
  if (target) for (key in source) {
989
990
  sourceProperty = source[key];
@@ -995,11 +996,11 @@ var _export = function (options, source) {
995
996
  // contained in target
996
997
  if (!FORCED && targetProperty !== undefined) {
997
998
  if (typeof sourceProperty == typeof targetProperty) continue;
998
- copyConstructorProperties(sourceProperty, targetProperty);
999
+ copyConstructorProperties$1(sourceProperty, targetProperty);
999
1000
  }
1000
1001
  // add a flag to not completely full polyfills
1001
1002
  if (options.sham || (targetProperty && targetProperty.sham)) {
1002
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1003
+ createNonEnumerableProperty$5(sourceProperty, 'sham', true);
1003
1004
  }
1004
1005
  defineBuiltIn$4(target, key, sourceProperty, options);
1005
1006
  }
@@ -1017,7 +1018,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
1017
1018
  return internalObjectKeys(O, enumBugKeys$1);
1018
1019
  };
1019
1020
 
1020
- var DESCRIPTORS$5 = descriptors;
1021
+ var DESCRIPTORS$6 = descriptors;
1021
1022
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1022
1023
  var definePropertyModule$1 = objectDefineProperty;
1023
1024
  var anObject$6 = anObject$9;
@@ -1027,7 +1028,7 @@ var objectKeys$1 = objectKeys$2;
1027
1028
  // `Object.defineProperties` method
1028
1029
  // https://tc39.es/ecma262/#sec-object.defineproperties
1029
1030
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1030
- objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1031
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1031
1032
  anObject$6(O);
1032
1033
  var props = toIndexedObject$1(Properties);
1033
1034
  var keys = objectKeys$1(Properties);
@@ -1038,9 +1039,9 @@ objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1038
1039
  return O;
1039
1040
  };
1040
1041
 
1041
- var getBuiltIn$4 = getBuiltIn$7;
1042
+ var getBuiltIn$5 = getBuiltIn$8;
1042
1043
 
1043
- var html$2 = getBuiltIn$4('document', 'documentElement');
1044
+ var html$2 = getBuiltIn$5('document', 'documentElement');
1044
1045
 
1045
1046
  /* global ActiveXObject -- old IE, WSH */
1046
1047
  var anObject$5 = anObject$9;
@@ -1129,7 +1130,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1129
1130
 
1130
1131
  var wellKnownSymbol$e = wellKnownSymbol$g;
1131
1132
  var create$1 = objectCreate;
1132
- var defineProperty$4 = objectDefineProperty.f;
1133
+ var defineProperty$5 = objectDefineProperty.f;
1133
1134
 
1134
1135
  var UNSCOPABLES = wellKnownSymbol$e('unscopables');
1135
1136
  var ArrayPrototype$1 = Array.prototype;
@@ -1137,7 +1138,7 @@ var ArrayPrototype$1 = Array.prototype;
1137
1138
  // Array.prototype[@@unscopables]
1138
1139
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1139
1140
  if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1140
- defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1141
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
1141
1142
  configurable: true,
1142
1143
  value: create$1(null)
1143
1144
  });
@@ -1148,20 +1149,20 @@ var addToUnscopables$2 = function (key) {
1148
1149
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1149
1150
  };
1150
1151
 
1151
- var $$b = _export;
1152
+ var $$c = _export;
1152
1153
  var $includes = arrayIncludes.includes;
1153
- var fails$6 = fails$f;
1154
+ var fails$7 = fails$g;
1154
1155
  var addToUnscopables$1 = addToUnscopables$2;
1155
1156
 
1156
1157
  // FF99+ bug
1157
- var BROKEN_ON_SPARSE = fails$6(function () {
1158
+ var BROKEN_ON_SPARSE = fails$7(function () {
1158
1159
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
1159
1160
  return !Array(1).includes();
1160
1161
  });
1161
1162
 
1162
1163
  // `Array.prototype.includes` method
1163
1164
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1164
- $$b({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1165
+ $$c({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1165
1166
  includes: function includes(el /* , fromIndex = 0 */) {
1166
1167
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1167
1168
  }
@@ -1172,17 +1173,17 @@ addToUnscopables$1('includes');
1172
1173
 
1173
1174
  var iterators = {};
1174
1175
 
1175
- var fails$5 = fails$f;
1176
+ var fails$6 = fails$g;
1176
1177
 
1177
- var correctPrototypeGetter = !fails$5(function () {
1178
+ var correctPrototypeGetter = !fails$6(function () {
1178
1179
  function F() { /* empty */ }
1179
1180
  F.prototype.constructor = null;
1180
1181
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1181
1182
  return Object.getPrototypeOf(new F()) !== F.prototype;
1182
1183
  });
1183
1184
 
1184
- var hasOwn$2 = hasOwnProperty_1;
1185
- var isCallable$8 = isCallable$j;
1185
+ var hasOwn$3 = hasOwnProperty_1;
1186
+ var isCallable$9 = isCallable$k;
1186
1187
  var toObject$2 = toObject$4;
1187
1188
  var sharedKey = sharedKey$3;
1188
1189
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1196,16 +1197,16 @@ var ObjectPrototype = $Object$1.prototype;
1196
1197
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1197
1198
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1198
1199
  var object = toObject$2(O);
1199
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1200
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1200
1201
  var constructor = object.constructor;
1201
- if (isCallable$8(constructor) && object instanceof constructor) {
1202
+ if (isCallable$9(constructor) && object instanceof constructor) {
1202
1203
  return constructor.prototype;
1203
1204
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1204
1205
  };
1205
1206
 
1206
- var fails$4 = fails$f;
1207
- var isCallable$7 = isCallable$j;
1208
- var isObject$5 = isObject$b;
1207
+ var fails$5 = fails$g;
1208
+ var isCallable$8 = isCallable$k;
1209
+ var isObject$7 = isObject$d;
1209
1210
  var getPrototypeOf$1 = objectGetPrototypeOf;
1210
1211
  var defineBuiltIn$3 = defineBuiltIn$5;
1211
1212
  var wellKnownSymbol$d = wellKnownSymbol$g;
@@ -1228,7 +1229,7 @@ if ([].keys) {
1228
1229
  }
1229
1230
  }
1230
1231
 
1231
- var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$4(function () {
1232
+ var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$5(function () {
1232
1233
  var test = {};
1233
1234
  // FF44- legacy iterators case
1234
1235
  return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
@@ -1238,7 +1239,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1238
1239
 
1239
1240
  // `%IteratorPrototype%[@@iterator]()` method
1240
1241
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1241
- if (!isCallable$7(IteratorPrototype$2[ITERATOR$5])) {
1242
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
1242
1243
  defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1243
1244
  return this;
1244
1245
  });
@@ -1249,22 +1250,22 @@ var iteratorsCore = {
1249
1250
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1250
1251
  };
1251
1252
 
1252
- var defineProperty$3 = objectDefineProperty.f;
1253
- var hasOwn$1 = hasOwnProperty_1;
1253
+ var defineProperty$4 = objectDefineProperty.f;
1254
+ var hasOwn$2 = hasOwnProperty_1;
1254
1255
  var wellKnownSymbol$c = wellKnownSymbol$g;
1255
1256
 
1256
1257
  var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1257
1258
 
1258
1259
  var setToStringTag$4 = function (target, TAG, STATIC) {
1259
1260
  if (target && !STATIC) target = target.prototype;
1260
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1261
- defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1261
+ if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
1262
+ defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1262
1263
  }
1263
1264
  };
1264
1265
 
1265
1266
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1266
1267
  var create = objectCreate;
1267
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1268
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1268
1269
  var setToStringTag$3 = setToStringTag$4;
1269
1270
  var Iterators$4 = iterators;
1270
1271
 
@@ -1272,26 +1273,26 @@ var returnThis$1 = function () { return this; };
1272
1273
 
1273
1274
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1274
1275
  var TO_STRING_TAG = NAME + ' Iterator';
1275
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1276
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
1276
1277
  setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1277
1278
  Iterators$4[TO_STRING_TAG] = returnThis$1;
1278
1279
  return IteratorConstructor;
1279
1280
  };
1280
1281
 
1281
- var uncurryThis$6 = functionUncurryThis;
1282
+ var uncurryThis$7 = functionUncurryThis;
1282
1283
  var aCallable$7 = aCallable$9;
1283
1284
 
1284
1285
  var functionUncurryThisAccessor = function (object, key, method) {
1285
1286
  try {
1286
1287
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1287
- return uncurryThis$6(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1288
+ return uncurryThis$7(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1288
1289
  } catch (error) { /* empty */ }
1289
1290
  };
1290
1291
 
1291
- var isObject$4 = isObject$b;
1292
+ var isObject$6 = isObject$d;
1292
1293
 
1293
1294
  var isPossiblePrototype$1 = function (argument) {
1294
- return isObject$4(argument) || argument === null;
1295
+ return isObject$6(argument) || argument === null;
1295
1296
  };
1296
1297
 
1297
1298
  var isPossiblePrototype = isPossiblePrototype$1;
@@ -1306,7 +1307,7 @@ var aPossiblePrototype$1 = function (argument) {
1306
1307
 
1307
1308
  /* eslint-disable no-proto -- safe */
1308
1309
  var uncurryThisAccessor = functionUncurryThisAccessor;
1309
- var isObject$3 = isObject$b;
1310
+ var isObject$5 = isObject$d;
1310
1311
  var requireObjectCoercible$1 = requireObjectCoercible$4;
1311
1312
  var aPossiblePrototype = aPossiblePrototype$1;
1312
1313
 
@@ -1326,22 +1327,22 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1326
1327
  return function setPrototypeOf(O, proto) {
1327
1328
  requireObjectCoercible$1(O);
1328
1329
  aPossiblePrototype(proto);
1329
- if (!isObject$3(O)) return O;
1330
+ if (!isObject$5(O)) return O;
1330
1331
  if (CORRECT_SETTER) setter(O, proto);
1331
1332
  else O.__proto__ = proto;
1332
1333
  return O;
1333
1334
  };
1334
1335
  }() : undefined);
1335
1336
 
1336
- var $$a = _export;
1337
+ var $$b = _export;
1337
1338
  var call$8 = functionCall;
1338
1339
  var FunctionName = functionName;
1339
- var isCallable$6 = isCallable$j;
1340
+ var isCallable$7 = isCallable$k;
1340
1341
  var createIteratorConstructor = iteratorCreateConstructor;
1341
1342
  var getPrototypeOf = objectGetPrototypeOf;
1342
- var setPrototypeOf$1 = objectSetPrototypeOf;
1343
+ var setPrototypeOf$3 = objectSetPrototypeOf;
1343
1344
  var setToStringTag$2 = setToStringTag$4;
1344
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1345
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
1345
1346
  var defineBuiltIn$2 = defineBuiltIn$5;
1346
1347
  var wellKnownSymbol$b = wellKnownSymbol$g;
1347
1348
  var Iterators$3 = iterators;
@@ -1389,9 +1390,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1389
1390
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1390
1391
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1391
1392
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1392
- if (setPrototypeOf$1) {
1393
- setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1394
- } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1393
+ if (setPrototypeOf$3) {
1394
+ setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
1395
+ } else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$4])) {
1395
1396
  defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1396
1397
  }
1397
1398
  }
@@ -1403,7 +1404,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1403
1404
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1404
1405
  if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1405
1406
  if (CONFIGURABLE_FUNCTION_NAME) {
1406
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1407
+ createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
1407
1408
  } else {
1408
1409
  INCORRECT_VALUES_NAME = true;
1409
1410
  defaultIterator = function values() { return call$8(nativeIterator, this); };
@@ -1421,7 +1422,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1421
1422
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1422
1423
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1423
1424
  }
1424
- } else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1425
+ } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1425
1426
  }
1426
1427
 
1427
1428
  // define iterator
@@ -1443,10 +1444,10 @@ var toIndexedObject = toIndexedObject$5;
1443
1444
  var addToUnscopables = addToUnscopables$2;
1444
1445
  var Iterators$2 = iterators;
1445
1446
  var InternalStateModule$1 = internalState;
1446
- var defineProperty$2 = objectDefineProperty.f;
1447
+ var defineProperty$3 = objectDefineProperty.f;
1447
1448
  var defineIterator = iteratorDefine;
1448
1449
  var createIterResultObject = createIterResultObject$1;
1449
- var DESCRIPTORS$4 = descriptors;
1450
+ var DESCRIPTORS$5 = descriptors;
1450
1451
 
1451
1452
  var ARRAY_ITERATOR = 'Array Iterator';
1452
1453
  var setInternalState$1 = InternalStateModule$1.set;
@@ -1496,8 +1497,8 @@ addToUnscopables('values');
1496
1497
  addToUnscopables('entries');
1497
1498
 
1498
1499
  // V8 ~ Chrome 45- bug
1499
- if (DESCRIPTORS$4 && values.name !== 'values') try {
1500
- defineProperty$2(values, 'name', { value: 'values' });
1500
+ if (DESCRIPTORS$5 && values.name !== 'values') try {
1501
+ defineProperty$3(values, 'name', { value: 'values' });
1501
1502
  } catch (error) { /* empty */ }
1502
1503
 
1503
1504
  var aCallable$6 = aCallable$9;
@@ -1546,18 +1547,18 @@ var arrayReduce = {
1546
1547
  right: createMethod(true)
1547
1548
  };
1548
1549
 
1549
- var fails$3 = fails$f;
1550
+ var fails$4 = fails$g;
1550
1551
 
1551
1552
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1552
1553
  var method = [][METHOD_NAME];
1553
- return !!method && fails$3(function () {
1554
+ return !!method && fails$4(function () {
1554
1555
  // eslint-disable-next-line no-useless-call -- required for testing
1555
1556
  method.call(null, argument || function () { return 1; }, 1);
1556
1557
  });
1557
1558
  };
1558
1559
 
1559
1560
  /* global Bun, Deno -- detection */
1560
- var globalThis$8 = globalThis_1;
1561
+ var globalThis$9 = globalThis_1;
1561
1562
  var userAgent$3 = environmentUserAgent;
1562
1563
  var classof$5 = classofRaw$2;
1563
1564
 
@@ -1570,10 +1571,10 @@ var environment = (function () {
1570
1571
  if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1571
1572
  if (userAgentStartsWith('Deno/')) return 'DENO';
1572
1573
  if (userAgentStartsWith('Node.js/')) return 'NODE';
1573
- if (globalThis$8.Bun && typeof Bun.version == 'string') return 'BUN';
1574
- if (globalThis$8.Deno && typeof Deno.version == 'object') return 'DENO';
1575
- if (classof$5(globalThis$8.process) === 'process') return 'NODE';
1576
- if (globalThis$8.window && globalThis$8.document) return 'BROWSER';
1574
+ if (globalThis$9.Bun && typeof Bun.version == 'string') return 'BUN';
1575
+ if (globalThis$9.Deno && typeof Deno.version == 'object') return 'DENO';
1576
+ if (classof$5(globalThis$9.process) === 'process') return 'NODE';
1577
+ if (globalThis$9.window && globalThis$9.document) return 'BROWSER';
1577
1578
  return 'REST';
1578
1579
  })();
1579
1580
 
@@ -1581,7 +1582,7 @@ var ENVIRONMENT$1 = environment;
1581
1582
 
1582
1583
  var environmentIsNode = ENVIRONMENT$1 === 'NODE';
1583
1584
 
1584
- var $$9 = _export;
1585
+ var $$a = _export;
1585
1586
  var $reduce = arrayReduce.left;
1586
1587
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
1587
1588
  var CHROME_VERSION = environmentV8Version;
@@ -1590,21 +1591,21 @@ var IS_NODE$3 = environmentIsNode;
1590
1591
  // Chrome 80-82 has a critical bug
1591
1592
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1592
1593
  var CHROME_BUG = !IS_NODE$3 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1593
- var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
1594
+ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
1594
1595
 
1595
1596
  // `Array.prototype.reduce` method
1596
1597
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1597
- $$9({ target: 'Array', proto: true, forced: FORCED }, {
1598
+ $$a({ target: 'Array', proto: true, forced: FORCED$1 }, {
1598
1599
  reduce: function reduce(callbackfn /* , initialValue */) {
1599
1600
  var length = arguments.length;
1600
1601
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1601
1602
  }
1602
1603
  });
1603
1604
 
1604
- var DESCRIPTORS$3 = descriptors;
1605
- var uncurryThis$5 = functionUncurryThis;
1605
+ var DESCRIPTORS$4 = descriptors;
1606
+ var uncurryThis$6 = functionUncurryThis;
1606
1607
  var call$7 = functionCall;
1607
- var fails$2 = fails$f;
1608
+ var fails$3 = fails$g;
1608
1609
  var objectKeys = objectKeys$2;
1609
1610
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1610
1611
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1614,17 +1615,17 @@ var IndexedObject = indexedObject;
1614
1615
  // eslint-disable-next-line es/no-object-assign -- safe
1615
1616
  var $assign = Object.assign;
1616
1617
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1617
- var defineProperty$1 = Object.defineProperty;
1618
- var concat = uncurryThis$5([].concat);
1618
+ var defineProperty$2 = Object.defineProperty;
1619
+ var concat = uncurryThis$6([].concat);
1619
1620
 
1620
1621
  // `Object.assign` method
1621
1622
  // https://tc39.es/ecma262/#sec-object.assign
1622
- var objectAssign = !$assign || fails$2(function () {
1623
+ var objectAssign = !$assign || fails$3(function () {
1623
1624
  // should have correct order of operations (Edge bug)
1624
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1625
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
1625
1626
  enumerable: true,
1626
1627
  get: function () {
1627
- defineProperty$1(this, 'b', {
1628
+ defineProperty$2(this, 'b', {
1628
1629
  value: 3,
1629
1630
  enumerable: false
1630
1631
  });
@@ -1653,36 +1654,36 @@ var objectAssign = !$assign || fails$2(function () {
1653
1654
  var key;
1654
1655
  while (length > j) {
1655
1656
  key = keys[j++];
1656
- if (!DESCRIPTORS$3 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1657
+ if (!DESCRIPTORS$4 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1657
1658
  }
1658
1659
  } return T;
1659
1660
  } : $assign;
1660
1661
 
1661
- var $$8 = _export;
1662
+ var $$9 = _export;
1662
1663
  var assign = objectAssign;
1663
1664
 
1664
1665
  // `Object.assign` method
1665
1666
  // https://tc39.es/ecma262/#sec-object.assign
1666
1667
  // eslint-disable-next-line es/no-object-assign -- required for testing
1667
- $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1668
+ $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1668
1669
  assign: assign
1669
1670
  });
1670
1671
 
1671
1672
  var classofRaw$1 = classofRaw$2;
1672
- var uncurryThis$4 = functionUncurryThis;
1673
+ var uncurryThis$5 = functionUncurryThis;
1673
1674
 
1674
1675
  var functionUncurryThisClause = function (fn) {
1675
1676
  // Nashorn bug:
1676
1677
  // https://github.com/zloirock/core-js/issues/1128
1677
1678
  // https://github.com/zloirock/core-js/issues/1130
1678
- if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
1679
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$5(fn);
1679
1680
  };
1680
1681
 
1681
- var uncurryThis$3 = functionUncurryThisClause;
1682
+ var uncurryThis$4 = functionUncurryThisClause;
1682
1683
  var aCallable$5 = aCallable$9;
1683
1684
  var NATIVE_BIND$1 = functionBindNative;
1684
1685
 
1685
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1686
+ var bind$4 = uncurryThis$4(uncurryThis$4.bind);
1686
1687
 
1687
1688
  // optional / simple context binding
1688
1689
  var functionBindContext = function (fn, that) {
@@ -1713,7 +1714,7 @@ test[TO_STRING_TAG$1] = 'z';
1713
1714
  var toStringTagSupport = String(test) === '[object z]';
1714
1715
 
1715
1716
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1716
- var isCallable$5 = isCallable$j;
1717
+ var isCallable$6 = isCallable$k;
1717
1718
  var classofRaw = classofRaw$2;
1718
1719
  var wellKnownSymbol$8 = wellKnownSymbol$g;
1719
1720
 
@@ -1739,7 +1740,7 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1739
1740
  // builtinTag case
1740
1741
  : CORRECT_ARGUMENTS ? classofRaw(O)
1741
1742
  // ES3 arguments fallback
1742
- : (result = classofRaw(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1743
+ : (result = classofRaw(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
1743
1744
  };
1744
1745
 
1745
1746
  var classof$3 = classof$4;
@@ -1800,7 +1801,7 @@ var anObject$2 = anObject$9;
1800
1801
  var tryToString$1 = tryToString$4;
1801
1802
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
1802
1803
  var lengthOfArrayLike = lengthOfArrayLike$3;
1803
- var isPrototypeOf$1 = objectIsPrototypeOf;
1804
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1804
1805
  var getIterator = getIterator$1;
1805
1806
  var getIteratorMethod = getIteratorMethod$2;
1806
1807
  var iteratorClose = iteratorClose$1;
@@ -1846,7 +1847,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1846
1847
  if (isArrayIteratorMethod(iterFn)) {
1847
1848
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1848
1849
  result = callFn(iterable[index]);
1849
- if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
1850
+ if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
1850
1851
  } return new Result(false);
1851
1852
  }
1852
1853
  iterator = getIterator(iterable, iterFn);
@@ -1859,26 +1860,26 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1859
1860
  } catch (error) {
1860
1861
  iteratorClose(iterator, 'throw', error);
1861
1862
  }
1862
- if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
1863
+ if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
1863
1864
  } return new Result(false);
1864
1865
  };
1865
1866
 
1866
- var DESCRIPTORS$2 = descriptors;
1867
+ var DESCRIPTORS$3 = descriptors;
1867
1868
  var definePropertyModule = objectDefineProperty;
1868
- var createPropertyDescriptor = createPropertyDescriptor$4;
1869
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
1869
1870
 
1870
1871
  var createProperty$1 = function (object, key, value) {
1871
- if (DESCRIPTORS$2) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
1872
+ if (DESCRIPTORS$3) definePropertyModule.f(object, key, createPropertyDescriptor$1(0, value));
1872
1873
  else object[key] = value;
1873
1874
  };
1874
1875
 
1875
- var $$7 = _export;
1876
+ var $$8 = _export;
1876
1877
  var iterate$2 = iterate$3;
1877
1878
  var createProperty = createProperty$1;
1878
1879
 
1879
1880
  // `Object.fromEntries` method
1880
1881
  // https://github.com/tc39/proposal-object-from-entries
1881
- $$7({ target: 'Object', stat: true }, {
1882
+ $$8({ target: 'Object', stat: true }, {
1882
1883
  fromEntries: function fromEntries(iterable) {
1883
1884
  var obj = {};
1884
1885
  iterate$2(iterable, function (k, v) {
@@ -1889,25 +1890,25 @@ $$7({ target: 'Object', stat: true }, {
1889
1890
  });
1890
1891
 
1891
1892
  var makeBuiltIn = makeBuiltInExports;
1892
- var defineProperty = objectDefineProperty;
1893
+ var defineProperty$1 = objectDefineProperty;
1893
1894
 
1894
1895
  var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1895
1896
  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1896
1897
  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1897
- return defineProperty.f(target, name, descriptor);
1898
+ return defineProperty$1.f(target, name, descriptor);
1898
1899
  };
1899
1900
 
1900
- var getBuiltIn$3 = getBuiltIn$7;
1901
+ var getBuiltIn$4 = getBuiltIn$8;
1901
1902
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
1902
1903
  var wellKnownSymbol$6 = wellKnownSymbol$g;
1903
- var DESCRIPTORS$1 = descriptors;
1904
+ var DESCRIPTORS$2 = descriptors;
1904
1905
 
1905
1906
  var SPECIES$2 = wellKnownSymbol$6('species');
1906
1907
 
1907
1908
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1908
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1909
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1909
1910
 
1910
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1911
+ if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
1911
1912
  defineBuiltInAccessor(Constructor, SPECIES$2, {
1912
1913
  configurable: true,
1913
1914
  get: function () { return this; }
@@ -1915,30 +1916,30 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1915
1916
  }
1916
1917
  };
1917
1918
 
1918
- var isPrototypeOf = objectIsPrototypeOf;
1919
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1919
1920
 
1920
1921
  var $TypeError$4 = TypeError;
1921
1922
 
1922
1923
  var anInstance$1 = function (it, Prototype) {
1923
- if (isPrototypeOf(Prototype, it)) return it;
1924
+ if (isPrototypeOf$1(Prototype, it)) return it;
1924
1925
  throw new $TypeError$4('Incorrect invocation');
1925
1926
  };
1926
1927
 
1927
- var uncurryThis$2 = functionUncurryThis;
1928
- var fails$1 = fails$f;
1929
- var isCallable$4 = isCallable$j;
1928
+ var uncurryThis$3 = functionUncurryThis;
1929
+ var fails$2 = fails$g;
1930
+ var isCallable$5 = isCallable$k;
1930
1931
  var classof$2 = classof$4;
1931
- var getBuiltIn$2 = getBuiltIn$7;
1932
+ var getBuiltIn$3 = getBuiltIn$8;
1932
1933
  var inspectSource$1 = inspectSource$3;
1933
1934
 
1934
1935
  var noop = function () { /* empty */ };
1935
- var construct = getBuiltIn$2('Reflect', 'construct');
1936
+ var construct = getBuiltIn$3('Reflect', 'construct');
1936
1937
  var constructorRegExp = /^\s*(?:class|function)\b/;
1937
- var exec = uncurryThis$2(constructorRegExp.exec);
1938
+ var exec = uncurryThis$3(constructorRegExp.exec);
1938
1939
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1939
1940
 
1940
1941
  var isConstructorModern = function isConstructor(argument) {
1941
- if (!isCallable$4(argument)) return false;
1942
+ if (!isCallable$5(argument)) return false;
1942
1943
  try {
1943
1944
  construct(noop, [], argument);
1944
1945
  return true;
@@ -1948,7 +1949,7 @@ var isConstructorModern = function isConstructor(argument) {
1948
1949
  };
1949
1950
 
1950
1951
  var isConstructorLegacy = function isConstructor(argument) {
1951
- if (!isCallable$4(argument)) return false;
1952
+ if (!isCallable$5(argument)) return false;
1952
1953
  switch (classof$2(argument)) {
1953
1954
  case 'AsyncFunction':
1954
1955
  case 'GeneratorFunction':
@@ -1968,7 +1969,7 @@ isConstructorLegacy.sham = true;
1968
1969
 
1969
1970
  // `IsConstructor` abstract operation
1970
1971
  // https://tc39.es/ecma262/#sec-isconstructor
1971
- var isConstructor$1 = !construct || fails$1(function () {
1972
+ var isConstructor$1 = !construct || fails$2(function () {
1972
1973
  var called;
1973
1974
  return isConstructorModern(isConstructorModern.call)
1974
1975
  || !isConstructorModern(Object)
@@ -2005,17 +2006,17 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
2005
2006
  var NATIVE_BIND = functionBindNative;
2006
2007
 
2007
2008
  var FunctionPrototype = Function.prototype;
2008
- var apply$1 = FunctionPrototype.apply;
2009
+ var apply$2 = FunctionPrototype.apply;
2009
2010
  var call$3 = FunctionPrototype.call;
2010
2011
 
2011
2012
  // eslint-disable-next-line es/no-reflect -- safe
2012
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
2013
- return call$3.apply(apply$1, arguments);
2013
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$2) : function () {
2014
+ return call$3.apply(apply$2, arguments);
2014
2015
  });
2015
2016
 
2016
- var uncurryThis$1 = functionUncurryThis;
2017
+ var uncurryThis$2 = functionUncurryThis;
2017
2018
 
2018
- var arraySlice$1 = uncurryThis$1([].slice);
2019
+ var arraySlice$1 = uncurryThis$2([].slice);
2019
2020
 
2020
2021
  var $TypeError$2 = TypeError;
2021
2022
 
@@ -2029,12 +2030,12 @@ var userAgent$2 = environmentUserAgent;
2029
2030
  // eslint-disable-next-line redos/no-vulnerable -- safe
2030
2031
  var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2031
2032
 
2032
- var globalThis$7 = globalThis_1;
2033
- var apply = functionApply;
2033
+ var globalThis$8 = globalThis_1;
2034
+ var apply$1 = functionApply;
2034
2035
  var bind$2 = functionBindContext;
2035
- var isCallable$3 = isCallable$j;
2036
- var hasOwn = hasOwnProperty_1;
2037
- var fails = fails$f;
2036
+ var isCallable$4 = isCallable$k;
2037
+ var hasOwn$1 = hasOwnProperty_1;
2038
+ var fails$1 = fails$g;
2038
2039
  var html = html$2;
2039
2040
  var arraySlice = arraySlice$1;
2040
2041
  var createElement = documentCreateElement$2;
@@ -2042,25 +2043,25 @@ var validateArgumentsLength = validateArgumentsLength$1;
2042
2043
  var IS_IOS$1 = environmentIsIos;
2043
2044
  var IS_NODE$2 = environmentIsNode;
2044
2045
 
2045
- var set = globalThis$7.setImmediate;
2046
- var clear = globalThis$7.clearImmediate;
2047
- var process$2 = globalThis$7.process;
2048
- var Dispatch = globalThis$7.Dispatch;
2049
- var Function$1 = globalThis$7.Function;
2050
- var MessageChannel = globalThis$7.MessageChannel;
2051
- var String$1 = globalThis$7.String;
2046
+ var set = globalThis$8.setImmediate;
2047
+ var clear = globalThis$8.clearImmediate;
2048
+ var process$2 = globalThis$8.process;
2049
+ var Dispatch = globalThis$8.Dispatch;
2050
+ var Function$1 = globalThis$8.Function;
2051
+ var MessageChannel = globalThis$8.MessageChannel;
2052
+ var String$1 = globalThis$8.String;
2052
2053
  var counter = 0;
2053
2054
  var queue$2 = {};
2054
2055
  var ONREADYSTATECHANGE = 'onreadystatechange';
2055
2056
  var $location, defer, channel, port;
2056
2057
 
2057
- fails(function () {
2058
+ fails$1(function () {
2058
2059
  // Deno throws a ReferenceError on `location` access without `--location` flag
2059
- $location = globalThis$7.location;
2060
+ $location = globalThis$8.location;
2060
2061
  });
2061
2062
 
2062
2063
  var run = function (id) {
2063
- if (hasOwn(queue$2, id)) {
2064
+ if (hasOwn$1(queue$2, id)) {
2064
2065
  var fn = queue$2[id];
2065
2066
  delete queue$2[id];
2066
2067
  fn();
@@ -2079,17 +2080,17 @@ var eventListener = function (event) {
2079
2080
 
2080
2081
  var globalPostMessageDefer = function (id) {
2081
2082
  // old engines have not location.origin
2082
- globalThis$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2083
+ globalThis$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2083
2084
  };
2084
2085
 
2085
2086
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2086
2087
  if (!set || !clear) {
2087
2088
  set = function setImmediate(handler) {
2088
2089
  validateArgumentsLength(arguments.length, 1);
2089
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
2090
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
2090
2091
  var args = arraySlice(arguments, 1);
2091
2092
  queue$2[++counter] = function () {
2092
- apply(fn, undefined, args);
2093
+ apply$1(fn, undefined, args);
2093
2094
  };
2094
2095
  defer(counter);
2095
2096
  return counter;
@@ -2117,14 +2118,14 @@ if (!set || !clear) {
2117
2118
  // Browsers with postMessage, skip WebWorkers
2118
2119
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2119
2120
  } else if (
2120
- globalThis$7.addEventListener &&
2121
- isCallable$3(globalThis$7.postMessage) &&
2122
- !globalThis$7.importScripts &&
2121
+ globalThis$8.addEventListener &&
2122
+ isCallable$4(globalThis$8.postMessage) &&
2123
+ !globalThis$8.importScripts &&
2123
2124
  $location && $location.protocol !== 'file:' &&
2124
- !fails(globalPostMessageDefer)
2125
+ !fails$1(globalPostMessageDefer)
2125
2126
  ) {
2126
2127
  defer = globalPostMessageDefer;
2127
- globalThis$7.addEventListener('message', eventListener, false);
2128
+ globalThis$8.addEventListener('message', eventListener, false);
2128
2129
  // IE8-
2129
2130
  } else if (ONREADYSTATECHANGE in createElement('script')) {
2130
2131
  defer = function (id) {
@@ -2146,16 +2147,16 @@ var task$1 = {
2146
2147
  clear: clear
2147
2148
  };
2148
2149
 
2149
- var globalThis$6 = globalThis_1;
2150
- var DESCRIPTORS = descriptors;
2150
+ var globalThis$7 = globalThis_1;
2151
+ var DESCRIPTORS$1 = descriptors;
2151
2152
 
2152
2153
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2153
2154
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2154
2155
 
2155
2156
  // Avoid NodeJS experimental warning
2156
2157
  var safeGetBuiltIn$1 = function (name) {
2157
- if (!DESCRIPTORS) return globalThis$6[name];
2158
- var descriptor = getOwnPropertyDescriptor(globalThis$6, name);
2158
+ if (!DESCRIPTORS$1) return globalThis$7[name];
2159
+ var descriptor = getOwnPropertyDescriptor(globalThis$7, name);
2159
2160
  return descriptor && descriptor.value;
2160
2161
  };
2161
2162
 
@@ -2192,7 +2193,7 @@ var userAgent = environmentUserAgent;
2192
2193
 
2193
2194
  var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2194
2195
 
2195
- var globalThis$5 = globalThis_1;
2196
+ var globalThis$6 = globalThis_1;
2196
2197
  var safeGetBuiltIn = safeGetBuiltIn$1;
2197
2198
  var bind$1 = functionBindContext;
2198
2199
  var macrotask = task$1.set;
@@ -2202,10 +2203,10 @@ var IS_IOS_PEBBLE = environmentIsIosPebble;
2202
2203
  var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
2203
2204
  var IS_NODE$1 = environmentIsNode;
2204
2205
 
2205
- var MutationObserver = globalThis$5.MutationObserver || globalThis$5.WebKitMutationObserver;
2206
- var document$2 = globalThis$5.document;
2207
- var process$1 = globalThis$5.process;
2208
- var Promise$1 = globalThis$5.Promise;
2206
+ var MutationObserver = globalThis$6.MutationObserver || globalThis$6.WebKitMutationObserver;
2207
+ var document$2 = globalThis$6.document;
2208
+ var process$1 = globalThis$6.process;
2209
+ var Promise$1 = globalThis$6.Promise;
2209
2210
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
2210
2211
  var notify$1, toggle, node, promise, then;
2211
2212
 
@@ -2257,7 +2258,7 @@ if (!microtask$1) {
2257
2258
  // - setTimeout
2258
2259
  } else {
2259
2260
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
2260
- macrotask = bind$1(macrotask, globalThis$5);
2261
+ macrotask = bind$1(macrotask, globalThis$6);
2261
2262
  notify$1 = function () {
2262
2263
  macrotask(flush);
2263
2264
  };
@@ -2286,13 +2287,13 @@ var perform$3 = function (exec) {
2286
2287
  }
2287
2288
  };
2288
2289
 
2289
- var globalThis$4 = globalThis_1;
2290
+ var globalThis$5 = globalThis_1;
2290
2291
 
2291
- var promiseNativeConstructor = globalThis$4.Promise;
2292
+ var promiseNativeConstructor = globalThis$5.Promise;
2292
2293
 
2293
- var globalThis$3 = globalThis_1;
2294
+ var globalThis$4 = globalThis_1;
2294
2295
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2295
- var isCallable$2 = isCallable$j;
2296
+ var isCallable$3 = isCallable$k;
2296
2297
  var isForced = isForced_1;
2297
2298
  var inspectSource = inspectSource$3;
2298
2299
  var wellKnownSymbol$4 = wellKnownSymbol$g;
@@ -2302,7 +2303,7 @@ var V8_VERSION = environmentV8Version;
2302
2303
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2303
2304
  var SPECIES = wellKnownSymbol$4('species');
2304
2305
  var SUBCLASSING = false;
2305
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(globalThis$3.PromiseRejectionEvent);
2306
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(globalThis$4.PromiseRejectionEvent);
2306
2307
 
2307
2308
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2308
2309
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -2357,17 +2358,17 @@ newPromiseCapability$2.f = function (C) {
2357
2358
  return new PromiseCapability(C);
2358
2359
  };
2359
2360
 
2360
- var $$6 = _export;
2361
+ var $$7 = _export;
2361
2362
  var IS_NODE = environmentIsNode;
2362
- var globalThis$2 = globalThis_1;
2363
+ var globalThis$3 = globalThis_1;
2363
2364
  var call$2 = functionCall;
2364
2365
  var defineBuiltIn$1 = defineBuiltIn$5;
2365
- var setPrototypeOf = objectSetPrototypeOf;
2366
+ var setPrototypeOf$2 = objectSetPrototypeOf;
2366
2367
  var setToStringTag$1 = setToStringTag$4;
2367
2368
  var setSpecies = setSpecies$1;
2368
2369
  var aCallable$2 = aCallable$9;
2369
- var isCallable$1 = isCallable$j;
2370
- var isObject$2 = isObject$b;
2370
+ var isCallable$2 = isCallable$k;
2371
+ var isObject$4 = isObject$d;
2371
2372
  var anInstance = anInstance$1;
2372
2373
  var speciesConstructor = speciesConstructor$1;
2373
2374
  var task = task$1.set;
@@ -2389,13 +2390,13 @@ var setInternalState = InternalStateModule.set;
2389
2390
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2390
2391
  var PromiseConstructor = NativePromiseConstructor$2;
2391
2392
  var PromisePrototype = NativePromisePrototype$1;
2392
- var TypeError$1 = globalThis$2.TypeError;
2393
- var document$1 = globalThis$2.document;
2394
- var process = globalThis$2.process;
2393
+ var TypeError$1 = globalThis$3.TypeError;
2394
+ var document$1 = globalThis$3.document;
2395
+ var process = globalThis$3.process;
2395
2396
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2396
2397
  var newGenericPromiseCapability = newPromiseCapability$1;
2397
2398
 
2398
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$2.dispatchEvent);
2399
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$3.dispatchEvent);
2399
2400
  var UNHANDLED_REJECTION = 'unhandledrejection';
2400
2401
  var REJECTION_HANDLED = 'rejectionhandled';
2401
2402
  var PENDING = 0;
@@ -2409,7 +2410,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2409
2410
  // helpers
2410
2411
  var isThenable = function (it) {
2411
2412
  var then;
2412
- return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
2413
+ return isObject$4(it) && isCallable$2(then = it.then) ? then : false;
2413
2414
  };
2414
2415
 
2415
2416
  var callReaction = function (reaction, state) {
@@ -2468,14 +2469,14 @@ var dispatchEvent = function (name, promise, reason) {
2468
2469
  event.promise = promise;
2469
2470
  event.reason = reason;
2470
2471
  event.initEvent(name, false, true);
2471
- globalThis$2.dispatchEvent(event);
2472
+ globalThis$3.dispatchEvent(event);
2472
2473
  } else event = { promise: promise, reason: reason };
2473
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$2['on' + name])) handler(event);
2474
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$3['on' + name])) handler(event);
2474
2475
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2475
2476
  };
2476
2477
 
2477
2478
  var onUnhandled = function (state) {
2478
- call$2(task, globalThis$2, function () {
2479
+ call$2(task, globalThis$3, function () {
2479
2480
  var promise = state.facade;
2480
2481
  var value = state.value;
2481
2482
  var IS_UNHANDLED = isUnhandled(state);
@@ -2498,7 +2499,7 @@ var isUnhandled = function (state) {
2498
2499
  };
2499
2500
 
2500
2501
  var onHandleUnhandled = function (state) {
2501
- call$2(task, globalThis$2, function () {
2502
+ call$2(task, globalThis$3, function () {
2502
2503
  var promise = state.facade;
2503
2504
  if (IS_NODE) {
2504
2505
  process.emit('rejectionHandled', promise);
@@ -2587,8 +2588,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2587
2588
  var state = getInternalPromiseState(this);
2588
2589
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2589
2590
  state.parent = true;
2590
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
2591
- reaction.fail = isCallable$1(onRejected) && onRejected;
2591
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
2592
+ reaction.fail = isCallable$2(onRejected) && onRejected;
2592
2593
  reaction.domain = IS_NODE ? process.domain : undefined;
2593
2594
  if (state.state === PENDING) state.reactions.add(reaction);
2594
2595
  else microtask(function () {
@@ -2611,7 +2612,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2611
2612
  : newGenericPromiseCapability(C);
2612
2613
  };
2613
2614
 
2614
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2615
+ if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2615
2616
  nativeThen = NativePromisePrototype$1.then;
2616
2617
 
2617
2618
  if (!NATIVE_PROMISE_SUBCLASSING) {
@@ -2631,13 +2632,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2631
2632
  } catch (error) { /* empty */ }
2632
2633
 
2633
2634
  // make `instanceof Promise` work for native promise-based APIs
2634
- if (setPrototypeOf) {
2635
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2635
+ if (setPrototypeOf$2) {
2636
+ setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
2636
2637
  }
2637
2638
  }
2638
2639
  }
2639
2640
 
2640
- $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2641
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2641
2642
  Promise: PromiseConstructor
2642
2643
  });
2643
2644
 
@@ -2693,7 +2694,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2693
2694
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2694
2695
  });
2695
2696
 
2696
- var $$5 = _export;
2697
+ var $$6 = _export;
2697
2698
  var call$1 = functionCall;
2698
2699
  var aCallable$1 = aCallable$9;
2699
2700
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -2703,7 +2704,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2703
2704
 
2704
2705
  // `Promise.all` method
2705
2706
  // https://tc39.es/ecma262/#sec-promise.all
2706
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2707
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2707
2708
  all: function all(iterable) {
2708
2709
  var C = this;
2709
2710
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -2732,32 +2733,32 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2732
2733
  }
2733
2734
  });
2734
2735
 
2735
- var $$4 = _export;
2736
+ var $$5 = _export;
2736
2737
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2737
2738
  var NativePromiseConstructor = promiseNativeConstructor;
2738
- var getBuiltIn$1 = getBuiltIn$7;
2739
- var isCallable = isCallable$j;
2739
+ var getBuiltIn$2 = getBuiltIn$8;
2740
+ var isCallable$1 = isCallable$k;
2740
2741
  var defineBuiltIn = defineBuiltIn$5;
2741
2742
 
2742
2743
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2743
2744
 
2744
2745
  // `Promise.prototype.catch` method
2745
2746
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2746
- $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2747
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2747
2748
  'catch': function (onRejected) {
2748
2749
  return this.then(undefined, onRejected);
2749
2750
  }
2750
2751
  });
2751
2752
 
2752
2753
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2753
- if (isCallable(NativePromiseConstructor)) {
2754
- var method = getBuiltIn$1('Promise').prototype['catch'];
2754
+ if (isCallable$1(NativePromiseConstructor)) {
2755
+ var method = getBuiltIn$2('Promise').prototype['catch'];
2755
2756
  if (NativePromisePrototype['catch'] !== method) {
2756
2757
  defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2757
2758
  }
2758
2759
  }
2759
2760
 
2760
- var $$3 = _export;
2761
+ var $$4 = _export;
2761
2762
  var call = functionCall;
2762
2763
  var aCallable = aCallable$9;
2763
2764
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -2767,7 +2768,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2767
2768
 
2768
2769
  // `Promise.race` method
2769
2770
  // https://tc39.es/ecma262/#sec-promise.race
2770
- $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2771
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2771
2772
  race: function race(iterable) {
2772
2773
  var C = this;
2773
2774
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -2783,13 +2784,13 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2783
2784
  }
2784
2785
  });
2785
2786
 
2786
- var $$2 = _export;
2787
+ var $$3 = _export;
2787
2788
  var newPromiseCapabilityModule = newPromiseCapability$2;
2788
2789
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2789
2790
 
2790
2791
  // `Promise.reject` method
2791
2792
  // https://tc39.es/ecma262/#sec-promise.reject
2792
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2793
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2793
2794
  reject: function reject(r) {
2794
2795
  var capability = newPromiseCapabilityModule.f(this);
2795
2796
  var capabilityReject = capability.reject;
@@ -2799,34 +2800,34 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2799
2800
  });
2800
2801
 
2801
2802
  var anObject = anObject$9;
2802
- var isObject$1 = isObject$b;
2803
+ var isObject$3 = isObject$d;
2803
2804
  var newPromiseCapability = newPromiseCapability$2;
2804
2805
 
2805
2806
  var promiseResolve$1 = function (C, x) {
2806
2807
  anObject(C);
2807
- if (isObject$1(x) && x.constructor === C) return x;
2808
+ if (isObject$3(x) && x.constructor === C) return x;
2808
2809
  var promiseCapability = newPromiseCapability.f(C);
2809
2810
  var resolve = promiseCapability.resolve;
2810
2811
  resolve(x);
2811
2812
  return promiseCapability.promise;
2812
2813
  };
2813
2814
 
2814
- var $$1 = _export;
2815
- var getBuiltIn = getBuiltIn$7;
2815
+ var $$2 = _export;
2816
+ var getBuiltIn$1 = getBuiltIn$8;
2816
2817
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2817
2818
  var promiseResolve = promiseResolve$1;
2818
2819
 
2819
- getBuiltIn('Promise');
2820
+ getBuiltIn$1('Promise');
2820
2821
 
2821
2822
  // `Promise.resolve` method
2822
2823
  // https://tc39.es/ecma262/#sec-promise.resolve
2823
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2824
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2824
2825
  resolve: function resolve(x) {
2825
2826
  return promiseResolve(this, x);
2826
2827
  }
2827
2828
  });
2828
2829
 
2829
- var isObject = isObject$b;
2830
+ var isObject$2 = isObject$d;
2830
2831
  var classof$1 = classofRaw$2;
2831
2832
  var wellKnownSymbol$2 = wellKnownSymbol$g;
2832
2833
 
@@ -2836,7 +2837,7 @@ var MATCH$1 = wellKnownSymbol$2('match');
2836
2837
  // https://tc39.es/ecma262/#sec-isregexp
2837
2838
  var isRegexp = function (it) {
2838
2839
  var isRegExp;
2839
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
2840
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
2840
2841
  };
2841
2842
 
2842
2843
  var isRegExp = isRegexp;
@@ -2853,7 +2854,7 @@ var classof = classof$4;
2853
2854
 
2854
2855
  var $String = String;
2855
2856
 
2856
- var toString$1 = function (argument) {
2857
+ var toString$2 = function (argument) {
2857
2858
  if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2858
2859
  return $String(argument);
2859
2860
  };
@@ -2874,22 +2875,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
2874
2875
  } return false;
2875
2876
  };
2876
2877
 
2877
- var $ = _export;
2878
- var uncurryThis = functionUncurryThis;
2878
+ var $$1 = _export;
2879
+ var uncurryThis$1 = functionUncurryThis;
2879
2880
  var notARegExp = notARegexp;
2880
2881
  var requireObjectCoercible = requireObjectCoercible$4;
2881
- var toString = toString$1;
2882
+ var toString$1 = toString$2;
2882
2883
  var correctIsRegExpLogic = correctIsRegexpLogic;
2883
2884
 
2884
- var stringIndexOf = uncurryThis(''.indexOf);
2885
+ var stringIndexOf = uncurryThis$1(''.indexOf);
2885
2886
 
2886
2887
  // `String.prototype.includes` method
2887
2888
  // https://tc39.es/ecma262/#sec-string.prototype.includes
2888
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2889
+ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2889
2890
  includes: function includes(searchString /* , position = 0 */) {
2890
2891
  return !!~stringIndexOf(
2891
- toString(requireObjectCoercible(this)),
2892
- toString(notARegExp(searchString)),
2892
+ toString$1(requireObjectCoercible(this)),
2893
+ toString$1(notARegExp(searchString)),
2893
2894
  arguments.length > 1 ? arguments[1] : undefined
2894
2895
  );
2895
2896
  }
@@ -2939,11 +2940,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
2939
2940
 
2940
2941
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2941
2942
 
2942
- var globalThis$1 = globalThis_1;
2943
+ var globalThis$2 = globalThis_1;
2943
2944
  var DOMIterables = domIterables;
2944
2945
  var DOMTokenListPrototype = domTokenListPrototype;
2945
2946
  var ArrayIteratorMethods = es_array_iterator;
2946
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
2947
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
2947
2948
  var setToStringTag = setToStringTag$4;
2948
2949
  var wellKnownSymbol = wellKnownSymbol$g;
2949
2950
 
@@ -2954,7 +2955,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2954
2955
  if (CollectionPrototype) {
2955
2956
  // some Chrome versions have non-configurable methods on DOMTokenList
2956
2957
  if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2957
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2958
+ createNonEnumerableProperty$3(CollectionPrototype, ITERATOR, ArrayValues);
2958
2959
  } catch (error) {
2959
2960
  CollectionPrototype[ITERATOR] = ArrayValues;
2960
2961
  }
@@ -2962,7 +2963,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2962
2963
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2963
2964
  // some Chrome versions have non-configurable methods on DOMTokenList
2964
2965
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2965
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2966
+ createNonEnumerableProperty$3(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2966
2967
  } catch (error) {
2967
2968
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2968
2969
  }
@@ -2971,7 +2972,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2971
2972
  };
2972
2973
 
2973
2974
  for (var COLLECTION_NAME in DOMIterables) {
2974
- handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2975
+ handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
2975
2976
  }
2976
2977
 
2977
2978
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -3174,6 +3175,9 @@ let Context = /*#__PURE__*/createContext({
3174
3175
  configs: {},
3175
3176
  async execute() {}
3176
3177
  });
3178
+ function useIntrigContext() {
3179
+ return useContext(Context);
3180
+ }
3177
3181
 
3178
3182
  /**
3179
3183
  * Handles state updates for network requests based on the provided action.
@@ -3445,7 +3449,7 @@ function debounce(func, delay) {
3445
3449
  * It filters the state to retain error states and maps them to a structured error object with additional context information.
3446
3450
  * @return {Object[]} An array of objects representing the error states with context information such as source, operation, and key.
3447
3451
  */
3448
- function useCentralErrorHandling() {
3452
+ function useCentralError() {
3449
3453
  const ctx = useContext(Context);
3450
3454
  return useMemo(() => {
3451
3455
  return Object.entries(ctx.filteredState).filter(([, state]) => isError(state)).map(([k, state]) => {
@@ -3464,7 +3468,7 @@ function useCentralErrorHandling() {
3464
3468
  *
3465
3469
  * @return {NetworkState} The aggregated network state based on the pending states and their progress.
3466
3470
  */
3467
- function useCentralPendingStateHandling() {
3471
+ function useCentralPendingState() {
3468
3472
  const ctx = useContext(Context);
3469
3473
  const result = useMemo(() => {
3470
3474
  let pendingStates = Object.values(ctx.filteredState).filter(isPending);
@@ -3486,4 +3490,367 @@ function useCentralPendingStateHandling() {
3486
3490
  return result;
3487
3491
  }
3488
3492
 
3489
- export { IntrigProvider, IntrigProviderStub, StatusTrap, error, init, isError, isInit, isNetworkError, isPending, isRequestValidationError, isResponseValidationError, isSuccess, isSuccessfulDispatch, isValidationError, networkError, pending, requestValidationError, responseValidationError, success, successfulDispatch, useCentralErrorHandling, useCentralPendingStateHandling, useNetworkState, validationError };
3493
+ // **Implementation**
3494
+ function useResolvedValue(hook, options) {
3495
+ const [value, setValue] = useState();
3496
+ let [state] = hook(options); // Ensure compatibility with different hook types
3497
+ useEffect(() => {
3498
+ if (isSuccess(state)) {
3499
+ setValue(state.data);
3500
+ } else {
3501
+ setValue(undefined);
3502
+ }
3503
+ }, [state]); // Add `state` to the dependency array to ensure updates
3504
+ return value;
3505
+ }
3506
+
3507
+ // **Implementation**
3508
+ function useResolvedCachedValue(hook, options) {
3509
+ const [cachedValue, setCachedValue] = useState();
3510
+ let [state] = hook(options); // Ensure compatibility with different hook types
3511
+ useEffect(() => {
3512
+ if (isSuccess(state)) {
3513
+ setCachedValue(state.data);
3514
+ }
3515
+ // Do not clear cached value if state is unsuccessful
3516
+ }, [state]);
3517
+ return cachedValue;
3518
+ }
3519
+
3520
+ // **Implementation**
3521
+ function useAsPromise(hook, options) {
3522
+ const resolveRef = useRef();
3523
+ const rejectRef = useRef();
3524
+ let [state, dispatch, clear] = hook(options); // Casting to `any` to match all overloads
3525
+ useEffect(() => {
3526
+ if (isSuccess(state)) {
3527
+ resolveRef.current == null || resolveRef.current(state.data);
3528
+ clear();
3529
+ } else if (isError(state)) {
3530
+ rejectRef.current == null || rejectRef.current(state.error);
3531
+ clear();
3532
+ }
3533
+ }, [state]);
3534
+ const promiseFn = useCallback((...args) => {
3535
+ return new Promise((resolve, reject) => {
3536
+ resolveRef.current = resolve;
3537
+ rejectRef.current = reject;
3538
+ let dispatchState = dispatch(...args);
3539
+ if (isValidationError(dispatchState)) {
3540
+ reject(dispatchState.error);
3541
+ }
3542
+ });
3543
+ }, [dispatch]);
3544
+ return [promiseFn, clear];
3545
+ }
3546
+
3547
+ /**
3548
+ * A custom hook that integrates a promise-based operation with a network state management system.
3549
+ * Tracks the network state (e.g., pending, success, error) for a given asynchronous function.
3550
+ *
3551
+ * @param fn A promise-based function that performs an asynchronous operation.
3552
+ * @param key An optional string key to identify the network state uniquely. Defaults to 'default'.
3553
+ * @return A tuple containing:
3554
+ * 1. The current network state of the operation.
3555
+ * 2. A function to execute the provided asynchronous operation.
3556
+ * 3. A function to reset the network state back to the initial state.
3557
+ */
3558
+ function useAsNetworkState(fn, key = 'default') {
3559
+ var _context$state3;
3560
+ let id = useId();
3561
+ let context = useIntrigContext();
3562
+ const networkState = useMemo(() => {
3563
+ var _context$state, _context$state2;
3564
+ return (_context$state = (_context$state2 = context.state) == null ? void 0 : _context$state2[`promiseState:${id}:${key}}`]) != null ? _context$state : init();
3565
+ }, [(_context$state3 = context.state) == null ? void 0 : _context$state3[`promiseState:${id}:${key}}`]]);
3566
+ const dispatch = useCallback(state => {
3567
+ context.dispatch({
3568
+ key,
3569
+ operation: id,
3570
+ source: 'promiseState',
3571
+ state
3572
+ });
3573
+ }, [key, context.dispatch]);
3574
+ const execute = useCallback((...args) => {
3575
+ dispatch(pending());
3576
+ return fn(...args).then(data => {
3577
+ dispatch(success(data));
3578
+ }, e => {
3579
+ dispatch(error(e));
3580
+ });
3581
+ }, []);
3582
+ const clear = useCallback(() => {
3583
+ dispatch(init());
3584
+ }, []);
3585
+ return [networkState, execute, clear];
3586
+ }
3587
+
3588
+ var defineProperty = objectDefineProperty.f;
3589
+
3590
+ var proxyAccessor$1 = function (Target, Source, key) {
3591
+ key in Target || defineProperty(Target, key, {
3592
+ configurable: true,
3593
+ get: function () { return Source[key]; },
3594
+ set: function (it) { Source[key] = it; }
3595
+ });
3596
+ };
3597
+
3598
+ var isCallable = isCallable$k;
3599
+ var isObject$1 = isObject$d;
3600
+ var setPrototypeOf$1 = objectSetPrototypeOf;
3601
+
3602
+ // makes subclassing work correct for wrapped built-ins
3603
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3604
+ var NewTarget, NewTargetPrototype;
3605
+ if (
3606
+ // it can work only with native `setPrototypeOf`
3607
+ setPrototypeOf$1 &&
3608
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3609
+ isCallable(NewTarget = dummy.constructor) &&
3610
+ NewTarget !== Wrapper &&
3611
+ isObject$1(NewTargetPrototype = NewTarget.prototype) &&
3612
+ NewTargetPrototype !== Wrapper.prototype
3613
+ ) setPrototypeOf$1($this, NewTargetPrototype);
3614
+ return $this;
3615
+ };
3616
+
3617
+ var toString = toString$2;
3618
+
3619
+ var normalizeStringArgument$1 = function (argument, $default) {
3620
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
3621
+ };
3622
+
3623
+ var isObject = isObject$d;
3624
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
3625
+
3626
+ // `InstallErrorCause` abstract operation
3627
+ // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
3628
+ var installErrorCause$1 = function (O, options) {
3629
+ if (isObject(options) && 'cause' in options) {
3630
+ createNonEnumerableProperty$2(O, 'cause', options.cause);
3631
+ }
3632
+ };
3633
+
3634
+ var uncurryThis = functionUncurryThis;
3635
+
3636
+ var $Error = Error;
3637
+ var replace = uncurryThis(''.replace);
3638
+
3639
+ var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
3640
+ // eslint-disable-next-line redos/no-vulnerable -- safe
3641
+ var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
3642
+ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
3643
+
3644
+ var errorStackClear = function (stack, dropEntries) {
3645
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
3646
+ while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
3647
+ } return stack;
3648
+ };
3649
+
3650
+ var fails = fails$g;
3651
+ var createPropertyDescriptor = createPropertyDescriptor$5;
3652
+
3653
+ var errorStackInstallable = !fails(function () {
3654
+ var error = new Error('a');
3655
+ if (!('stack' in error)) return true;
3656
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
3657
+ Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
3658
+ return error.stack !== 7;
3659
+ });
3660
+
3661
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
3662
+ var clearErrorStack = errorStackClear;
3663
+ var ERROR_STACK_INSTALLABLE = errorStackInstallable;
3664
+
3665
+ // non-standard V8
3666
+ var captureStackTrace = Error.captureStackTrace;
3667
+
3668
+ var errorStackInstall = function (error, C, stack, dropEntries) {
3669
+ if (ERROR_STACK_INSTALLABLE) {
3670
+ if (captureStackTrace) captureStackTrace(error, C);
3671
+ else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
3672
+ }
3673
+ };
3674
+
3675
+ var getBuiltIn = getBuiltIn$8;
3676
+ var hasOwn = hasOwnProperty_1;
3677
+ var createNonEnumerableProperty = createNonEnumerableProperty$7;
3678
+ var isPrototypeOf = objectIsPrototypeOf;
3679
+ var setPrototypeOf = objectSetPrototypeOf;
3680
+ var copyConstructorProperties = copyConstructorProperties$2;
3681
+ var proxyAccessor = proxyAccessor$1;
3682
+ var inheritIfRequired = inheritIfRequired$1;
3683
+ var normalizeStringArgument = normalizeStringArgument$1;
3684
+ var installErrorCause = installErrorCause$1;
3685
+ var installErrorStack = errorStackInstall;
3686
+ var DESCRIPTORS = descriptors;
3687
+
3688
+ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
3689
+ var STACK_TRACE_LIMIT = 'stackTraceLimit';
3690
+ var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
3691
+ var path = FULL_NAME.split('.');
3692
+ var ERROR_NAME = path[path.length - 1];
3693
+ var OriginalError = getBuiltIn.apply(null, path);
3694
+
3695
+ if (!OriginalError) return;
3696
+
3697
+ var OriginalErrorPrototype = OriginalError.prototype;
3698
+
3699
+ // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
3700
+ if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
3701
+
3702
+ if (!FORCED) return OriginalError;
3703
+
3704
+ var BaseError = getBuiltIn('Error');
3705
+
3706
+ var WrappedError = wrapper(function (a, b) {
3707
+ var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
3708
+ var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
3709
+ if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
3710
+ installErrorStack(result, WrappedError, result.stack, 2);
3711
+ if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
3712
+ if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
3713
+ return result;
3714
+ });
3715
+
3716
+ WrappedError.prototype = OriginalErrorPrototype;
3717
+
3718
+ if (ERROR_NAME !== 'Error') {
3719
+ if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
3720
+ else copyConstructorProperties(WrappedError, BaseError, { name: true });
3721
+ } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
3722
+ proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
3723
+ proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
3724
+ }
3725
+
3726
+ copyConstructorProperties(WrappedError, OriginalError);
3727
+
3728
+ try {
3729
+ // Safari 13- bug: WebAssembly errors does not have a proper `.name`
3730
+ if (OriginalErrorPrototype.name !== ERROR_NAME) {
3731
+ createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
3732
+ }
3733
+ OriginalErrorPrototype.constructor = WrappedError;
3734
+ } catch (error) { /* empty */ }
3735
+
3736
+ return WrappedError;
3737
+ };
3738
+
3739
+ /* eslint-disable no-unused-vars -- required for functions `.length` */
3740
+ var $ = _export;
3741
+ var globalThis$1 = globalThis_1;
3742
+ var apply = functionApply;
3743
+ var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
3744
+
3745
+ var WEB_ASSEMBLY = 'WebAssembly';
3746
+ var WebAssembly = globalThis$1[WEB_ASSEMBLY];
3747
+
3748
+ // eslint-disable-next-line es/no-error-cause -- feature detection
3749
+ var FORCED = new Error('e', { cause: 7 }).cause !== 7;
3750
+
3751
+ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3752
+ var O = {};
3753
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
3754
+ $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
3755
+ };
3756
+
3757
+ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3758
+ if (WebAssembly && WebAssembly[ERROR_NAME]) {
3759
+ var O = {};
3760
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
3761
+ $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
3762
+ }
3763
+ };
3764
+
3765
+ // https://tc39.es/ecma262/#sec-nativeerror
3766
+ exportGlobalErrorCauseWrapper('Error', function (init) {
3767
+ return function Error(message) { return apply(init, this, arguments); };
3768
+ });
3769
+ exportGlobalErrorCauseWrapper('EvalError', function (init) {
3770
+ return function EvalError(message) { return apply(init, this, arguments); };
3771
+ });
3772
+ exportGlobalErrorCauseWrapper('RangeError', function (init) {
3773
+ return function RangeError(message) { return apply(init, this, arguments); };
3774
+ });
3775
+ exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
3776
+ return function ReferenceError(message) { return apply(init, this, arguments); };
3777
+ });
3778
+ exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
3779
+ return function SyntaxError(message) { return apply(init, this, arguments); };
3780
+ });
3781
+ exportGlobalErrorCauseWrapper('TypeError', function (init) {
3782
+ return function TypeError(message) { return apply(init, this, arguments); };
3783
+ });
3784
+ exportGlobalErrorCauseWrapper('URIError', function (init) {
3785
+ return function URIError(message) { return apply(init, this, arguments); };
3786
+ });
3787
+ exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
3788
+ return function CompileError(message) { return apply(init, this, arguments); };
3789
+ });
3790
+ exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
3791
+ return function LinkError(message) { return apply(init, this, arguments); };
3792
+ });
3793
+ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
3794
+ return function RuntimeError(message) { return apply(init, this, arguments); };
3795
+ });
3796
+
3797
+ const transformers = {};
3798
+ function transform(request, mediaType, schema) {
3799
+ if (transformers[mediaType]) {
3800
+ return transformers[mediaType](request, mediaType, schema);
3801
+ }
3802
+ throw new Error(`Unsupported media type: ` + mediaType);
3803
+ }
3804
+ transformers['application/json'] = async (request, mediaType, schema) => {
3805
+ return schema.parse(await request.json());
3806
+ };
3807
+ transformers['multipart/form-data'] = async (request, mediaType, schema) => {
3808
+ let formData = await request.formData();
3809
+ let content = {};
3810
+ formData.forEach((value, key) => content[key] = value);
3811
+ return schema.parse(content);
3812
+ };
3813
+ transformers['application/octet-stream'] = async (request, mediaType, schema) => {
3814
+ return schema.parse(new Blob([await request.arrayBuffer()], {
3815
+ type: 'application/octet-stream'
3816
+ }));
3817
+ };
3818
+ transformers['application/x-www-form-urlencoded'] = async (request, mediaType, schema) => {
3819
+ let formData = await request.formData();
3820
+ let content = {};
3821
+ formData.forEach((value, key) => content[key] = value);
3822
+ return schema.parse(content);
3823
+ };
3824
+ transformers['application/xml'] = async (request, mediaType, schema) => {
3825
+ let xmlParser = new XMLParser();
3826
+ let content = await xmlParser.parse(await request.text());
3827
+ return schema.parse(await content);
3828
+ };
3829
+ transformers['text/plain'] = async (request, mediaType, schema) => {
3830
+ return schema.parse(await request.text());
3831
+ };
3832
+ transformers['text/html'] = async (request, mediaType, schema) => {
3833
+ return schema.parse(await request.text());
3834
+ };
3835
+ transformers['text/css'] = async (request, mediaType, schema) => {
3836
+ return schema.parse(await request.text());
3837
+ };
3838
+ transformers['text/javascript'] = async (request, mediaType, schema) => {
3839
+ return schema.parse(await request.text());
3840
+ };
3841
+ const responseTransformers = {};
3842
+ responseTransformers['application/json'] = async (data, mediaType, schema) => {
3843
+ return schema.parse(data);
3844
+ };
3845
+ responseTransformers['application/xml'] = async (data, mediaType, schema) => {
3846
+ let parsed = new XMLParser().parse(data);
3847
+ return schema.parse(parsed);
3848
+ };
3849
+ async function transformResponse(data, mediaType, schema) {
3850
+ if (responseTransformers[mediaType]) {
3851
+ return await responseTransformers[mediaType](data, mediaType, schema);
3852
+ }
3853
+ return data;
3854
+ }
3855
+
3856
+ export { IntrigProvider, IntrigProviderStub, StatusTrap, error, init, isError, isInit, isNetworkError, isPending, isRequestValidationError, isResponseValidationError, isSuccess, isSuccessfulDispatch, isValidationError, networkError, pending, requestValidationError, responseValidationError, success, successfulDispatch, transform, transformResponse, useAsNetworkState, useAsPromise, useCentralError, useCentralPendingState, useNetworkState, useResolvedCachedValue, useResolvedValue, validationError };