@shipengine/elements 0.6.37 → 0.6.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +293 -159
  2. package/index.js +293 -159
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -26,9 +26,9 @@ var functionBindNative = !fails$c(function () {
26
26
  var NATIVE_BIND$3 = functionBindNative;
27
27
 
28
28
  var FunctionPrototype$2 = Function.prototype;
29
- var bind$5 = FunctionPrototype$2.bind;
29
+ var bind$6 = FunctionPrototype$2.bind;
30
30
  var call$e = FunctionPrototype$2.call;
31
- var uncurryThis$e = NATIVE_BIND$3 && bind$5.bind(call$e, call$e);
31
+ var uncurryThis$e = NATIVE_BIND$3 && bind$6.bind(call$e, call$e);
32
32
 
33
33
  var functionUncurryThis = NATIVE_BIND$3 ? function (fn) {
34
34
  return fn && uncurryThis$e(fn);
@@ -49,7 +49,7 @@ var classofRaw$1 = function (it) {
49
49
 
50
50
  var uncurryThis$c = functionUncurryThis;
51
51
  var fails$b = fails$d;
52
- var classof$4 = classofRaw$1;
52
+ var classof$5 = classofRaw$1;
53
53
 
54
54
  var $Object$4 = Object;
55
55
  var split = uncurryThis$c(''.split);
@@ -60,15 +60,15 @@ var indexedObject = fails$b(function () {
60
60
  // eslint-disable-next-line no-prototype-builtins -- safe
61
61
  return !$Object$4('z').propertyIsEnumerable(0);
62
62
  }) ? function (it) {
63
- return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
63
+ return classof$5(it) == 'String' ? split(it, '') : $Object$4(it);
64
64
  } : $Object$4;
65
65
 
66
- var $TypeError$b = TypeError;
66
+ var $TypeError$c = TypeError;
67
67
 
68
68
  // `RequireObjectCoercible` abstract operation
69
69
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
70
70
  var requireObjectCoercible$2 = function (it) {
71
- if (it == undefined) throw $TypeError$b("Can't call method on " + it);
71
+ if (it == undefined) throw $TypeError$c("Can't call method on " + it);
72
72
  return it;
73
73
  };
74
74
 
@@ -136,12 +136,12 @@ var $Object$3 = Object;
136
136
 
137
137
  // `ToObject` abstract operation
138
138
  // https://tc39.es/ecma262/#sec-toobject
139
- var toObject$3 = function (argument) {
139
+ var toObject$4 = function (argument) {
140
140
  return $Object$3(requireObjectCoercible(argument));
141
141
  };
142
142
 
143
143
  var uncurryThis$b = functionUncurryThis;
144
- var toObject$2 = toObject$3;
144
+ var toObject$3 = toObject$4;
145
145
 
146
146
  var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
147
147
 
@@ -149,7 +149,7 @@ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
149
149
  // https://tc39.es/ecma262/#sec-hasownproperty
150
150
  // eslint-disable-next-line es-x/no-object-hasown -- safe
151
151
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
152
- return hasOwnProperty(toObject$2(it), key);
152
+ return hasOwnProperty(toObject$3(it), key);
153
153
  };
154
154
 
155
155
  var uncurryThis$a = functionUncurryThis;
@@ -246,7 +246,7 @@ var Symbol$1 = global$e.Symbol;
246
246
  var symbolFor = Symbol$1 && Symbol$1['for'];
247
247
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
248
248
 
249
- var wellKnownSymbol$e = function (name) {
249
+ var wellKnownSymbol$f = function (name) {
250
250
  if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
251
251
  var description = 'Symbol.' + name;
252
252
  if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
@@ -261,19 +261,19 @@ var wellKnownSymbol$e = function (name) {
261
261
 
262
262
  var isCallable$i = isCallable$k;
263
263
 
264
- var isObject$7 = function (it) {
264
+ var isObject$8 = function (it) {
265
265
  return typeof it == 'object' ? it !== null : isCallable$i(it);
266
266
  };
267
267
 
268
- var isObject$6 = isObject$7;
268
+ var isObject$7 = isObject$8;
269
269
 
270
270
  var $String$2 = String;
271
- var $TypeError$a = TypeError;
271
+ var $TypeError$b = TypeError;
272
272
 
273
273
  // `Assert: Type(argument) is Object`
274
274
  var anObject$a = function (argument) {
275
- if (isObject$6(argument)) return argument;
276
- throw $TypeError$a($String$2(argument) + ' is not an object');
275
+ if (isObject$7(argument)) return argument;
276
+ throw $TypeError$b($String$2(argument) + ' is not an object');
277
277
  };
278
278
 
279
279
  var objectDefineProperties = {};
@@ -302,11 +302,11 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$8(function () {
302
302
  var objectDefineProperty = {};
303
303
 
304
304
  var global$d = global$j;
305
- var isObject$5 = isObject$7;
305
+ var isObject$6 = isObject$8;
306
306
 
307
307
  var document$3 = global$d.document;
308
308
  // typeof document.createElement is 'object' in old IE
309
- var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
309
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
310
310
 
311
311
  var documentCreateElement$2 = function (it) {
312
312
  return EXISTS$1 ? document$3.createElement(it) : {};
@@ -363,60 +363,60 @@ var tryToString$4 = function (argument) {
363
363
  var isCallable$g = isCallable$k;
364
364
  var tryToString$3 = tryToString$4;
365
365
 
366
- var $TypeError$9 = TypeError;
366
+ var $TypeError$a = TypeError;
367
367
 
368
368
  // `Assert: IsCallable(argument) is true`
369
- var aCallable$7 = function (argument) {
369
+ var aCallable$8 = function (argument) {
370
370
  if (isCallable$g(argument)) return argument;
371
- throw $TypeError$9(tryToString$3(argument) + ' is not a function');
371
+ throw $TypeError$a(tryToString$3(argument) + ' is not a function');
372
372
  };
373
373
 
374
- var aCallable$6 = aCallable$7;
374
+ var aCallable$7 = aCallable$8;
375
375
 
376
376
  // `GetMethod` abstract operation
377
377
  // https://tc39.es/ecma262/#sec-getmethod
378
378
  var getMethod$3 = function (V, P) {
379
379
  var func = V[P];
380
- return func == null ? undefined : aCallable$6(func);
380
+ return func == null ? undefined : aCallable$7(func);
381
381
  };
382
382
 
383
383
  var call$c = functionCall;
384
384
  var isCallable$f = isCallable$k;
385
- var isObject$4 = isObject$7;
385
+ var isObject$5 = isObject$8;
386
386
 
387
- var $TypeError$8 = TypeError;
387
+ var $TypeError$9 = TypeError;
388
388
 
389
389
  // `OrdinaryToPrimitive` abstract operation
390
390
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
391
391
  var ordinaryToPrimitive$1 = function (input, pref) {
392
392
  var fn, val;
393
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$4(val = call$c(fn, input))) return val;
394
- if (isCallable$f(fn = input.valueOf) && !isObject$4(val = call$c(fn, input))) return val;
395
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$4(val = call$c(fn, input))) return val;
396
- throw $TypeError$8("Can't convert object to primitive value");
393
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$5(val = call$c(fn, input))) return val;
394
+ if (isCallable$f(fn = input.valueOf) && !isObject$5(val = call$c(fn, input))) return val;
395
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$5(val = call$c(fn, input))) return val;
396
+ throw $TypeError$9("Can't convert object to primitive value");
397
397
  };
398
398
 
399
399
  var call$b = functionCall;
400
- var isObject$3 = isObject$7;
400
+ var isObject$4 = isObject$8;
401
401
  var isSymbol$1 = isSymbol$2;
402
402
  var getMethod$2 = getMethod$3;
403
403
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
404
- var wellKnownSymbol$d = wellKnownSymbol$e;
404
+ var wellKnownSymbol$e = wellKnownSymbol$f;
405
405
 
406
- var $TypeError$7 = TypeError;
407
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
406
+ var $TypeError$8 = TypeError;
407
+ var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
408
408
 
409
409
  // `ToPrimitive` abstract operation
410
410
  // https://tc39.es/ecma262/#sec-toprimitive
411
411
  var toPrimitive$1 = function (input, pref) {
412
- if (!isObject$3(input) || isSymbol$1(input)) return input;
412
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
413
413
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
414
414
  var result;
415
415
  if (exoticToPrim) {
416
416
  if (pref === undefined) pref = 'default';
417
417
  result = call$b(exoticToPrim, input, pref);
418
- if (!isObject$3(result) || isSymbol$1(result)) return result;
419
- throw $TypeError$7("Can't convert object to primitive value");
418
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
419
+ throw $TypeError$8("Can't convert object to primitive value");
420
420
  }
421
421
  if (pref === undefined) pref = 'number';
422
422
  return ordinaryToPrimitive(input, pref);
@@ -438,7 +438,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
438
438
  var anObject$9 = anObject$a;
439
439
  var toPropertyKey$1 = toPropertyKey$2;
440
440
 
441
- var $TypeError$6 = TypeError;
441
+ var $TypeError$7 = TypeError;
442
442
  // eslint-disable-next-line es-x/no-object-defineproperty -- safe
443
443
  var $defineProperty = Object.defineProperty;
444
444
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
@@ -471,7 +471,7 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
471
471
  if (IE8_DOM_DEFINE$1) try {
472
472
  return $defineProperty(O, P, Attributes);
473
473
  } catch (error) { /* empty */ }
474
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$6('Accessors not supported');
474
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
475
475
  if ('value' in Attributes) O[P] = Attributes.value;
476
476
  return O;
477
477
  };
@@ -524,19 +524,19 @@ var toLength = toLength$1;
524
524
 
525
525
  // `LengthOfArrayLike` abstract operation
526
526
  // https://tc39.es/ecma262/#sec-lengthofarraylike
527
- var lengthOfArrayLike$2 = function (obj) {
527
+ var lengthOfArrayLike$4 = function (obj) {
528
528
  return toLength(obj.length);
529
529
  };
530
530
 
531
531
  var toIndexedObject$4 = toIndexedObject$5;
532
532
  var toAbsoluteIndex = toAbsoluteIndex$1;
533
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
533
+ var lengthOfArrayLike$3 = lengthOfArrayLike$4;
534
534
 
535
535
  // `Array.prototype.{ indexOf, includes }` methods implementation
536
536
  var createMethod = function (IS_INCLUDES) {
537
537
  return function ($this, el, fromIndex) {
538
538
  var O = toIndexedObject$4($this);
539
- var length = lengthOfArrayLike$1(O);
539
+ var length = lengthOfArrayLike$3(O);
540
540
  var index = toAbsoluteIndex(fromIndex, length);
541
541
  var value;
542
542
  // Array#includes uses SameValueZero equality algorithm
@@ -724,11 +724,11 @@ var objectCreate = Object.create || function create(O, Properties) {
724
724
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
725
725
  };
726
726
 
727
- var wellKnownSymbol$c = wellKnownSymbol$e;
727
+ var wellKnownSymbol$d = wellKnownSymbol$f;
728
728
  var create$1 = objectCreate;
729
729
  var defineProperty$4 = objectDefineProperty.f;
730
730
 
731
- var UNSCOPABLES = wellKnownSymbol$c('unscopables');
731
+ var UNSCOPABLES = wellKnownSymbol$d('unscopables');
732
732
  var ArrayPrototype$1 = Array.prototype;
733
733
 
734
734
  // Array.prototype[@@unscopables]
@@ -741,7 +741,7 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
741
741
  }
742
742
 
743
743
  // add a key to Array.prototype[@@unscopables]
744
- var addToUnscopables$1 = function (key) {
744
+ var addToUnscopables$2 = function (key) {
745
745
  ArrayPrototype$1[UNSCOPABLES][key] = true;
746
746
  };
747
747
 
@@ -793,7 +793,7 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value
793
793
  var NATIVE_WEAK_MAP = nativeWeakMap;
794
794
  var global$b = global$j;
795
795
  var uncurryThis$6 = functionUncurryThis;
796
- var isObject$2 = isObject$7;
796
+ var isObject$3 = isObject$8;
797
797
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
798
798
  var hasOwn$7 = hasOwnProperty_1;
799
799
  var shared = sharedStore;
@@ -812,7 +812,7 @@ var enforce = function (it) {
812
812
  var getterFor = function (TYPE) {
813
813
  return function (it) {
814
814
  var state;
815
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
815
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
816
816
  throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
817
817
  } return state;
818
818
  };
@@ -1139,7 +1139,7 @@ var correctPrototypeGetter = !fails$4(function () {
1139
1139
 
1140
1140
  var hasOwn$2 = hasOwnProperty_1;
1141
1141
  var isCallable$9 = isCallable$k;
1142
- var toObject$1 = toObject$3;
1142
+ var toObject$2 = toObject$4;
1143
1143
  var sharedKey = sharedKey$3;
1144
1144
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1145
1145
 
@@ -1151,7 +1151,7 @@ var ObjectPrototype = $Object$1.prototype;
1151
1151
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1152
1152
  // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
1153
1153
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1154
- var object = toObject$1(O);
1154
+ var object = toObject$2(O);
1155
1155
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1156
1156
  var constructor = object.constructor;
1157
1157
  if (isCallable$9(constructor) && object instanceof constructor) {
@@ -1163,9 +1163,9 @@ var fails$3 = fails$d;
1163
1163
  var isCallable$8 = isCallable$k;
1164
1164
  var getPrototypeOf$1 = objectGetPrototypeOf;
1165
1165
  var defineBuiltIn$3 = defineBuiltIn$5;
1166
- var wellKnownSymbol$b = wellKnownSymbol$e;
1166
+ var wellKnownSymbol$c = wellKnownSymbol$f;
1167
1167
 
1168
- var ITERATOR$5 = wellKnownSymbol$b('iterator');
1168
+ var ITERATOR$5 = wellKnownSymbol$c('iterator');
1169
1169
  var BUGGY_SAFARI_ITERATORS$1 = false;
1170
1170
 
1171
1171
  // `%IteratorPrototype%` object
@@ -1206,9 +1206,9 @@ var iteratorsCore = {
1206
1206
 
1207
1207
  var defineProperty$2 = objectDefineProperty.f;
1208
1208
  var hasOwn$1 = hasOwnProperty_1;
1209
- var wellKnownSymbol$a = wellKnownSymbol$e;
1209
+ var wellKnownSymbol$b = wellKnownSymbol$f;
1210
1210
 
1211
- var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1211
+ var TO_STRING_TAG$3 = wellKnownSymbol$b('toStringTag');
1212
1212
 
1213
1213
  var setToStringTag$3 = function (target, TAG, STATIC) {
1214
1214
  if (target && !STATIC) target = target.prototype;
@@ -1236,11 +1236,11 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
1236
1236
  var isCallable$7 = isCallable$k;
1237
1237
 
1238
1238
  var $String = String;
1239
- var $TypeError$5 = TypeError;
1239
+ var $TypeError$6 = TypeError;
1240
1240
 
1241
1241
  var aPossiblePrototype$1 = function (argument) {
1242
1242
  if (typeof argument == 'object' || isCallable$7(argument)) return argument;
1243
- throw $TypeError$5("Can't set " + $String(argument) + ' as a prototype');
1243
+ throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1244
1244
  };
1245
1245
 
1246
1246
  /* eslint-disable no-proto -- safe */
@@ -1272,7 +1272,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1272
1272
  };
1273
1273
  }() : undefined);
1274
1274
 
1275
- var $$7 = _export;
1275
+ var $$8 = _export;
1276
1276
  var call$9 = functionCall;
1277
1277
  var FunctionName = functionName;
1278
1278
  var isCallable$6 = isCallable$k;
@@ -1282,7 +1282,7 @@ var setPrototypeOf$1 = objectSetPrototypeOf;
1282
1282
  var setToStringTag$1 = setToStringTag$3;
1283
1283
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1284
1284
  var defineBuiltIn$2 = defineBuiltIn$5;
1285
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1285
+ var wellKnownSymbol$a = wellKnownSymbol$f;
1286
1286
  var Iterators$3 = iterators;
1287
1287
  var IteratorsCore = iteratorsCore;
1288
1288
 
@@ -1290,7 +1290,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1290
1290
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1291
1291
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1292
1292
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1293
- var ITERATOR$4 = wellKnownSymbol$9('iterator');
1293
+ var ITERATOR$4 = wellKnownSymbol$a('iterator');
1294
1294
  var KEYS = 'keys';
1295
1295
  var VALUES = 'values';
1296
1296
  var ENTRIES = 'entries';
@@ -1357,7 +1357,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1357
1357
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1358
1358
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1359
1359
  }
1360
- } else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1360
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1361
1361
  }
1362
1362
 
1363
1363
  // define iterator
@@ -1370,7 +1370,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1370
1370
  };
1371
1371
 
1372
1372
  var toIndexedObject = toIndexedObject$5;
1373
- var addToUnscopables = addToUnscopables$1;
1373
+ var addToUnscopables$1 = addToUnscopables$2;
1374
1374
  var Iterators$2 = iterators;
1375
1375
  var InternalStateModule$1 = internalState;
1376
1376
  var defineProperty$1 = objectDefineProperty.f;
@@ -1420,33 +1420,33 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1420
1420
  var values = Iterators$2.Arguments = Iterators$2.Array;
1421
1421
 
1422
1422
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1423
- addToUnscopables('keys');
1424
- addToUnscopables('values');
1425
- addToUnscopables('entries');
1423
+ addToUnscopables$1('keys');
1424
+ addToUnscopables$1('values');
1425
+ addToUnscopables$1('entries');
1426
1426
 
1427
1427
  // V8 ~ Chrome 45- bug
1428
1428
  if (DESCRIPTORS$2 && values.name !== 'values') try {
1429
1429
  defineProperty$1(values, 'name', { value: 'values' });
1430
1430
  } catch (error) { /* empty */ }
1431
1431
 
1432
- var classof$3 = classofRaw$1;
1432
+ var classof$4 = classofRaw$1;
1433
1433
  var global$9 = global$j;
1434
1434
 
1435
- var engineIsNode = classof$3(global$9.process) == 'process';
1435
+ var engineIsNode = classof$4(global$9.process) == 'process';
1436
1436
 
1437
1437
  var getBuiltIn$3 = getBuiltIn$8;
1438
1438
  var definePropertyModule = objectDefineProperty;
1439
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1439
+ var wellKnownSymbol$9 = wellKnownSymbol$f;
1440
1440
  var DESCRIPTORS$1 = descriptors;
1441
1441
 
1442
- var SPECIES$2 = wellKnownSymbol$8('species');
1442
+ var SPECIES$3 = wellKnownSymbol$9('species');
1443
1443
 
1444
1444
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1445
1445
  var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1446
1446
  var defineProperty = definePropertyModule.f;
1447
1447
 
1448
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1449
- defineProperty(Constructor, SPECIES$2, {
1448
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
1449
+ defineProperty(Constructor, SPECIES$3, {
1450
1450
  configurable: true,
1451
1451
  get: function () { return this; }
1452
1452
  });
@@ -1455,16 +1455,16 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1455
1455
 
1456
1456
  var isPrototypeOf$1 = objectIsPrototypeOf;
1457
1457
 
1458
- var $TypeError$4 = TypeError;
1458
+ var $TypeError$5 = TypeError;
1459
1459
 
1460
1460
  var anInstance$1 = function (it, Prototype) {
1461
1461
  if (isPrototypeOf$1(Prototype, it)) return it;
1462
- throw $TypeError$4('Incorrect invocation');
1462
+ throw $TypeError$5('Incorrect invocation');
1463
1463
  };
1464
1464
 
1465
- var wellKnownSymbol$7 = wellKnownSymbol$e;
1465
+ var wellKnownSymbol$8 = wellKnownSymbol$f;
1466
1466
 
1467
- var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
1467
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1468
1468
  var test = {};
1469
1469
 
1470
1470
  test[TO_STRING_TAG$2] = 'z';
@@ -1474,9 +1474,9 @@ var toStringTagSupport = String(test) === '[object z]';
1474
1474
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1475
1475
  var isCallable$5 = isCallable$k;
1476
1476
  var classofRaw = classofRaw$1;
1477
- var wellKnownSymbol$6 = wellKnownSymbol$e;
1477
+ var wellKnownSymbol$7 = wellKnownSymbol$f;
1478
1478
 
1479
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1479
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1480
1480
  var $Object = Object;
1481
1481
 
1482
1482
  // ES3 wrong here
@@ -1490,7 +1490,7 @@ var tryGet = function (it, key) {
1490
1490
  };
1491
1491
 
1492
1492
  // getting tag from ES6+ `Object.prototype.toString`
1493
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1493
+ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1494
1494
  var O, tag, result;
1495
1495
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1496
1496
  // @@toStringTag case
@@ -1504,7 +1504,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1504
1504
  var uncurryThis$3 = functionUncurryThis;
1505
1505
  var fails$2 = fails$d;
1506
1506
  var isCallable$4 = isCallable$k;
1507
- var classof$1 = classof$2;
1507
+ var classof$2 = classof$3;
1508
1508
  var getBuiltIn$2 = getBuiltIn$8;
1509
1509
  var inspectSource$1 = inspectSource$4;
1510
1510
 
@@ -1527,7 +1527,7 @@ var isConstructorModern = function isConstructor(argument) {
1527
1527
 
1528
1528
  var isConstructorLegacy = function isConstructor(argument) {
1529
1529
  if (!isCallable$4(argument)) return false;
1530
- switch (classof$1(argument)) {
1530
+ switch (classof$2(argument)) {
1531
1531
  case 'AsyncFunction':
1532
1532
  case 'GeneratorFunction':
1533
1533
  case 'AsyncGeneratorFunction': return false;
@@ -1546,7 +1546,7 @@ isConstructorLegacy.sham = true;
1546
1546
 
1547
1547
  // `IsConstructor` abstract operation
1548
1548
  // https://tc39.es/ecma262/#sec-isconstructor
1549
- var isConstructor$1 = !construct || fails$2(function () {
1549
+ var isConstructor$2 = !construct || fails$2(function () {
1550
1550
  var called;
1551
1551
  return isConstructorModern(isConstructorModern.call)
1552
1552
  || !isConstructorModern(Object)
@@ -1554,29 +1554,29 @@ var isConstructor$1 = !construct || fails$2(function () {
1554
1554
  || called;
1555
1555
  }) ? isConstructorLegacy : isConstructorModern;
1556
1556
 
1557
- var isConstructor = isConstructor$1;
1557
+ var isConstructor$1 = isConstructor$2;
1558
1558
  var tryToString$2 = tryToString$4;
1559
1559
 
1560
- var $TypeError$3 = TypeError;
1560
+ var $TypeError$4 = TypeError;
1561
1561
 
1562
1562
  // `Assert: IsConstructor(argument) is true`
1563
1563
  var aConstructor$1 = function (argument) {
1564
- if (isConstructor(argument)) return argument;
1565
- throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
1564
+ if (isConstructor$1(argument)) return argument;
1565
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1566
1566
  };
1567
1567
 
1568
1568
  var anObject$4 = anObject$a;
1569
1569
  var aConstructor = aConstructor$1;
1570
- var wellKnownSymbol$5 = wellKnownSymbol$e;
1570
+ var wellKnownSymbol$6 = wellKnownSymbol$f;
1571
1571
 
1572
- var SPECIES$1 = wellKnownSymbol$5('species');
1572
+ var SPECIES$2 = wellKnownSymbol$6('species');
1573
1573
 
1574
1574
  // `SpeciesConstructor` abstract operation
1575
1575
  // https://tc39.es/ecma262/#sec-speciesconstructor
1576
1576
  var speciesConstructor$1 = function (O, defaultConstructor) {
1577
1577
  var C = anObject$4(O).constructor;
1578
1578
  var S;
1579
- return C === undefined || (S = anObject$4(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
1579
+ return C === undefined || (S = anObject$4(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1580
1580
  };
1581
1581
 
1582
1582
  var NATIVE_BIND$1 = functionBindNative;
@@ -1591,15 +1591,15 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
1591
1591
  });
1592
1592
 
1593
1593
  var uncurryThis$2 = functionUncurryThis;
1594
- var aCallable$5 = aCallable$7;
1594
+ var aCallable$6 = aCallable$8;
1595
1595
  var NATIVE_BIND = functionBindNative;
1596
1596
 
1597
- var bind$4 = uncurryThis$2(uncurryThis$2.bind);
1597
+ var bind$5 = uncurryThis$2(uncurryThis$2.bind);
1598
1598
 
1599
1599
  // optional / simple context binding
1600
1600
  var functionBindContext = function (fn, that) {
1601
- aCallable$5(fn);
1602
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1601
+ aCallable$6(fn);
1602
+ return that === undefined ? fn : NATIVE_BIND ? bind$5(fn, that) : function (/* ...args */) {
1603
1603
  return fn.apply(that, arguments);
1604
1604
  };
1605
1605
  };
@@ -1608,10 +1608,10 @@ var uncurryThis$1 = functionUncurryThis;
1608
1608
 
1609
1609
  var arraySlice$1 = uncurryThis$1([].slice);
1610
1610
 
1611
- var $TypeError$2 = TypeError;
1611
+ var $TypeError$3 = TypeError;
1612
1612
 
1613
1613
  var validateArgumentsLength$1 = function (passed, required) {
1614
- if (passed < required) throw $TypeError$2('Not enough arguments');
1614
+ if (passed < required) throw $TypeError$3('Not enough arguments');
1615
1615
  return passed;
1616
1616
  };
1617
1617
 
@@ -1621,7 +1621,7 @@ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1621
1621
 
1622
1622
  var global$8 = global$j;
1623
1623
  var apply = functionApply;
1624
- var bind$3 = functionBindContext;
1624
+ var bind$4 = functionBindContext;
1625
1625
  var isCallable$3 = isCallable$k;
1626
1626
  var hasOwn = hasOwnProperty_1;
1627
1627
  var fails$1 = fails$d;
@@ -1703,7 +1703,7 @@ if (!set || !clear) {
1703
1703
  channel = new MessageChannel();
1704
1704
  port = channel.port2;
1705
1705
  channel.port1.onmessage = listener;
1706
- defer = bind$3(port.postMessage, port);
1706
+ defer = bind$4(port.postMessage, port);
1707
1707
  // Browsers with postMessage, skip WebWorkers
1708
1708
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1709
1709
  } else if (
@@ -1746,7 +1746,7 @@ var userAgent = engineUserAgent;
1746
1746
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1747
1747
 
1748
1748
  var global$6 = global$j;
1749
- var bind$2 = functionBindContext;
1749
+ var bind$3 = functionBindContext;
1750
1750
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1751
1751
  var macrotask = task$1.set;
1752
1752
  var IS_IOS = engineIsIos;
@@ -1798,7 +1798,7 @@ if (!queueMicrotask) {
1798
1798
  promise = Promise$1.resolve(undefined);
1799
1799
  // workaround of WebKit ~ iOS Safari 10.1 bug
1800
1800
  promise.constructor = Promise$1;
1801
- then = bind$2(promise.then, promise);
1801
+ then = bind$3(promise.then, promise);
1802
1802
  notify$1 = function () {
1803
1803
  then(flush);
1804
1804
  };
@@ -1815,7 +1815,7 @@ if (!queueMicrotask) {
1815
1815
  // - setTimeout
1816
1816
  } else {
1817
1817
  // strange IE + webpack dev server bug - use .bind(global)
1818
- macrotask = bind$2(macrotask, global$6);
1818
+ macrotask = bind$3(macrotask, global$6);
1819
1819
  notify$1 = function () {
1820
1820
  macrotask(flush);
1821
1821
  };
@@ -1892,13 +1892,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
1892
1892
  var isCallable$2 = isCallable$k;
1893
1893
  var isForced = isForced_1;
1894
1894
  var inspectSource = inspectSource$4;
1895
- var wellKnownSymbol$4 = wellKnownSymbol$e;
1895
+ var wellKnownSymbol$5 = wellKnownSymbol$f;
1896
1896
  var IS_BROWSER = engineIsBrowser;
1897
1897
  var IS_DENO = engineIsDeno;
1898
1898
  var V8_VERSION = engineV8Version;
1899
1899
 
1900
1900
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1901
- var SPECIES = wellKnownSymbol$4('species');
1901
+ var SPECIES$1 = wellKnownSymbol$5('species');
1902
1902
  var SUBCLASSING = false;
1903
1903
  var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
1904
1904
 
@@ -1919,7 +1919,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1919
1919
  exec(function () { /* empty */ }, function () { /* empty */ });
1920
1920
  };
1921
1921
  var constructor = promise.constructor = {};
1922
- constructor[SPECIES] = FakePromise;
1922
+ constructor[SPECIES$1] = FakePromise;
1923
1923
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1924
1924
  if (!SUBCLASSING) return true;
1925
1925
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
@@ -1934,7 +1934,7 @@ var promiseConstructorDetection = {
1934
1934
 
1935
1935
  var newPromiseCapability$2 = {};
1936
1936
 
1937
- var aCallable$4 = aCallable$7;
1937
+ var aCallable$5 = aCallable$8;
1938
1938
 
1939
1939
  var PromiseCapability = function (C) {
1940
1940
  var resolve, reject;
@@ -1943,8 +1943,8 @@ var PromiseCapability = function (C) {
1943
1943
  resolve = $$resolve;
1944
1944
  reject = $$reject;
1945
1945
  });
1946
- this.resolve = aCallable$4(resolve);
1947
- this.reject = aCallable$4(reject);
1946
+ this.resolve = aCallable$5(resolve);
1947
+ this.reject = aCallable$5(reject);
1948
1948
  };
1949
1949
 
1950
1950
  // `NewPromiseCapability` abstract operation
@@ -1953,7 +1953,7 @@ newPromiseCapability$2.f = function (C) {
1953
1953
  return new PromiseCapability(C);
1954
1954
  };
1955
1955
 
1956
- var $$6 = _export;
1956
+ var $$7 = _export;
1957
1957
  var IS_NODE = engineIsNode;
1958
1958
  var global$2 = global$j;
1959
1959
  var call$7 = functionCall;
@@ -1961,9 +1961,9 @@ var defineBuiltIn$1 = defineBuiltIn$5;
1961
1961
  var setPrototypeOf = objectSetPrototypeOf;
1962
1962
  var setToStringTag = setToStringTag$3;
1963
1963
  var setSpecies = setSpecies$1;
1964
- var aCallable$3 = aCallable$7;
1964
+ var aCallable$4 = aCallable$8;
1965
1965
  var isCallable$1 = isCallable$k;
1966
- var isObject$1 = isObject$7;
1966
+ var isObject$2 = isObject$8;
1967
1967
  var anInstance = anInstance$1;
1968
1968
  var speciesConstructor = speciesConstructor$1;
1969
1969
  var task = task$1.set;
@@ -2005,7 +2005,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2005
2005
  // helpers
2006
2006
  var isThenable = function (it) {
2007
2007
  var then;
2008
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2008
+ return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
2009
2009
  };
2010
2010
 
2011
2011
  var callReaction = function (reaction, state) {
@@ -2102,7 +2102,7 @@ var onHandleUnhandled = function (state) {
2102
2102
  });
2103
2103
  };
2104
2104
 
2105
- var bind$1 = function (fn, state, unwrap) {
2105
+ var bind$2 = function (fn, state, unwrap) {
2106
2106
  return function (value) {
2107
2107
  fn(state, value, unwrap);
2108
2108
  };
@@ -2129,8 +2129,8 @@ var internalResolve = function (state, value, unwrap) {
2129
2129
  var wrapper = { done: false };
2130
2130
  try {
2131
2131
  call$7(then, value,
2132
- bind$1(internalResolve, wrapper, state),
2133
- bind$1(internalReject, wrapper, state)
2132
+ bind$2(internalResolve, wrapper, state),
2133
+ bind$2(internalReject, wrapper, state)
2134
2134
  );
2135
2135
  } catch (error) {
2136
2136
  internalReject(wrapper, error, state);
@@ -2151,11 +2151,11 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2151
2151
  // 25.4.3.1 Promise(executor)
2152
2152
  PromiseConstructor = function Promise(executor) {
2153
2153
  anInstance(this, PromisePrototype);
2154
- aCallable$3(executor);
2154
+ aCallable$4(executor);
2155
2155
  call$7(Internal, this);
2156
2156
  var state = getInternalPromiseState(this);
2157
2157
  try {
2158
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2158
+ executor(bind$2(internalResolve, state), bind$2(internalReject, state));
2159
2159
  } catch (error) {
2160
2160
  internalReject(state, error);
2161
2161
  }
@@ -2197,8 +2197,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2197
2197
  var promise = new Internal();
2198
2198
  var state = getInternalPromiseState(promise);
2199
2199
  this.promise = promise;
2200
- this.resolve = bind$1(internalResolve, state);
2201
- this.reject = bind$1(internalReject, state);
2200
+ this.resolve = bind$2(internalResolve, state);
2201
+ this.reject = bind$2(internalReject, state);
2202
2202
  };
2203
2203
 
2204
2204
  newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
@@ -2233,17 +2233,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2233
2233
  }
2234
2234
  }
2235
2235
 
2236
- $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2236
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2237
2237
  Promise: PromiseConstructor
2238
2238
  });
2239
2239
 
2240
2240
  setToStringTag(PromiseConstructor, PROMISE, false);
2241
2241
  setSpecies(PROMISE);
2242
2242
 
2243
- var wellKnownSymbol$3 = wellKnownSymbol$e;
2243
+ var wellKnownSymbol$4 = wellKnownSymbol$f;
2244
2244
  var Iterators$1 = iterators;
2245
2245
 
2246
- var ITERATOR$3 = wellKnownSymbol$3('iterator');
2246
+ var ITERATOR$3 = wellKnownSymbol$4('iterator');
2247
2247
  var ArrayPrototype = Array.prototype;
2248
2248
 
2249
2249
  // check on default Array iterator
@@ -2251,31 +2251,31 @@ var isArrayIteratorMethod$1 = function (it) {
2251
2251
  return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
2252
2252
  };
2253
2253
 
2254
- var classof = classof$2;
2254
+ var classof$1 = classof$3;
2255
2255
  var getMethod$1 = getMethod$3;
2256
2256
  var Iterators = iterators;
2257
- var wellKnownSymbol$2 = wellKnownSymbol$e;
2257
+ var wellKnownSymbol$3 = wellKnownSymbol$f;
2258
2258
 
2259
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2259
+ var ITERATOR$2 = wellKnownSymbol$3('iterator');
2260
2260
 
2261
2261
  var getIteratorMethod$2 = function (it) {
2262
2262
  if (it != undefined) return getMethod$1(it, ITERATOR$2)
2263
2263
  || getMethod$1(it, '@@iterator')
2264
- || Iterators[classof(it)];
2264
+ || Iterators[classof$1(it)];
2265
2265
  };
2266
2266
 
2267
2267
  var call$6 = functionCall;
2268
- var aCallable$2 = aCallable$7;
2268
+ var aCallable$3 = aCallable$8;
2269
2269
  var anObject$3 = anObject$a;
2270
2270
  var tryToString$1 = tryToString$4;
2271
2271
  var getIteratorMethod$1 = getIteratorMethod$2;
2272
2272
 
2273
- var $TypeError$1 = TypeError;
2273
+ var $TypeError$2 = TypeError;
2274
2274
 
2275
2275
  var getIterator$1 = function (argument, usingIterator) {
2276
2276
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2277
- if (aCallable$2(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
2278
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
2277
+ if (aCallable$3(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
2278
+ throw $TypeError$2(tryToString$1(argument) + ' is not iterable');
2279
2279
  };
2280
2280
 
2281
2281
  var call$5 = functionCall;
@@ -2302,18 +2302,18 @@ var iteratorClose$1 = function (iterator, kind, value) {
2302
2302
  return value;
2303
2303
  };
2304
2304
 
2305
- var bind = functionBindContext;
2305
+ var bind$1 = functionBindContext;
2306
2306
  var call$4 = functionCall;
2307
2307
  var anObject$1 = anObject$a;
2308
2308
  var tryToString = tryToString$4;
2309
2309
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
2310
- var lengthOfArrayLike = lengthOfArrayLike$2;
2310
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2311
2311
  var isPrototypeOf = objectIsPrototypeOf;
2312
2312
  var getIterator = getIterator$1;
2313
2313
  var getIteratorMethod = getIteratorMethod$2;
2314
2314
  var iteratorClose = iteratorClose$1;
2315
2315
 
2316
- var $TypeError = TypeError;
2316
+ var $TypeError$1 = TypeError;
2317
2317
 
2318
2318
  var Result = function (stopped, result) {
2319
2319
  this.stopped = stopped;
@@ -2328,7 +2328,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2328
2328
  var IS_RECORD = !!(options && options.IS_RECORD);
2329
2329
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2330
2330
  var INTERRUPTED = !!(options && options.INTERRUPTED);
2331
- var fn = bind(unboundFunction, that);
2331
+ var fn = bind$1(unboundFunction, that);
2332
2332
  var iterator, iterFn, index, length, result, next, step;
2333
2333
 
2334
2334
  var stop = function (condition) {
@@ -2349,10 +2349,10 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2349
2349
  iterator = iterable;
2350
2350
  } else {
2351
2351
  iterFn = getIteratorMethod(iterable);
2352
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2352
+ if (!iterFn) throw $TypeError$1(tryToString(iterable) + ' is not iterable');
2353
2353
  // optimisation for array iterators
2354
2354
  if (isArrayIteratorMethod(iterFn)) {
2355
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2355
+ for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
2356
2356
  result = callFn(iterable[index]);
2357
2357
  if (result && isPrototypeOf(ResultPrototype, result)) return result;
2358
2358
  } return new Result(false);
@@ -2371,9 +2371,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2371
2371
  } return new Result(false);
2372
2372
  };
2373
2373
 
2374
- var wellKnownSymbol$1 = wellKnownSymbol$e;
2374
+ var wellKnownSymbol$2 = wellKnownSymbol$f;
2375
2375
 
2376
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2376
+ var ITERATOR$1 = wellKnownSymbol$2('iterator');
2377
2377
  var SAFE_CLOSING = false;
2378
2378
 
2379
2379
  try {
@@ -2418,9 +2418,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2418
2418
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2419
2419
  });
2420
2420
 
2421
- var $$5 = _export;
2421
+ var $$6 = _export;
2422
2422
  var call$3 = functionCall;
2423
- var aCallable$1 = aCallable$7;
2423
+ var aCallable$2 = aCallable$8;
2424
2424
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2425
2425
  var perform$1 = perform$3;
2426
2426
  var iterate$1 = iterate$2;
@@ -2428,14 +2428,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2428
2428
 
2429
2429
  // `Promise.all` method
2430
2430
  // https://tc39.es/ecma262/#sec-promise.all
2431
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2431
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2432
2432
  all: function all(iterable) {
2433
2433
  var C = this;
2434
2434
  var capability = newPromiseCapabilityModule$2.f(C);
2435
2435
  var resolve = capability.resolve;
2436
2436
  var reject = capability.reject;
2437
2437
  var result = perform$1(function () {
2438
- var $promiseResolve = aCallable$1(C.resolve);
2438
+ var $promiseResolve = aCallable$2(C.resolve);
2439
2439
  var values = [];
2440
2440
  var counter = 0;
2441
2441
  var remaining = 1;
@@ -2457,7 +2457,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2457
2457
  }
2458
2458
  });
2459
2459
 
2460
- var $$4 = _export;
2460
+ var $$5 = _export;
2461
2461
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2462
2462
  var NativePromiseConstructor = promiseNativeConstructor;
2463
2463
  var getBuiltIn$1 = getBuiltIn$8;
@@ -2468,7 +2468,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
2468
2468
 
2469
2469
  // `Promise.prototype.catch` method
2470
2470
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2471
- $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2471
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2472
2472
  'catch': function (onRejected) {
2473
2473
  return this.then(undefined, onRejected);
2474
2474
  }
@@ -2482,9 +2482,9 @@ if (isCallable(NativePromiseConstructor)) {
2482
2482
  }
2483
2483
  }
2484
2484
 
2485
- var $$3 = _export;
2485
+ var $$4 = _export;
2486
2486
  var call$2 = functionCall;
2487
- var aCallable = aCallable$7;
2487
+ var aCallable$1 = aCallable$8;
2488
2488
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2489
2489
  var perform = perform$3;
2490
2490
  var iterate = iterate$2;
@@ -2492,13 +2492,13 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2492
2492
 
2493
2493
  // `Promise.race` method
2494
2494
  // https://tc39.es/ecma262/#sec-promise.race
2495
- $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2495
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2496
2496
  race: function race(iterable) {
2497
2497
  var C = this;
2498
2498
  var capability = newPromiseCapabilityModule$1.f(C);
2499
2499
  var reject = capability.reject;
2500
2500
  var result = perform(function () {
2501
- var $promiseResolve = aCallable(C.resolve);
2501
+ var $promiseResolve = aCallable$1(C.resolve);
2502
2502
  iterate(iterable, function (promise) {
2503
2503
  call$2($promiseResolve, C, promise).then(capability.resolve, reject);
2504
2504
  });
@@ -2508,14 +2508,14 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2508
2508
  }
2509
2509
  });
2510
2510
 
2511
- var $$2 = _export;
2511
+ var $$3 = _export;
2512
2512
  var call$1 = functionCall;
2513
2513
  var newPromiseCapabilityModule = newPromiseCapability$2;
2514
2514
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2515
2515
 
2516
2516
  // `Promise.reject` method
2517
2517
  // https://tc39.es/ecma262/#sec-promise.reject
2518
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2518
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2519
2519
  reject: function reject(r) {
2520
2520
  var capability = newPromiseCapabilityModule.f(this);
2521
2521
  call$1(capability.reject, undefined, r);
@@ -2524,19 +2524,19 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2524
2524
  });
2525
2525
 
2526
2526
  var anObject = anObject$a;
2527
- var isObject = isObject$7;
2527
+ var isObject$1 = isObject$8;
2528
2528
  var newPromiseCapability = newPromiseCapability$2;
2529
2529
 
2530
2530
  var promiseResolve$1 = function (C, x) {
2531
2531
  anObject(C);
2532
- if (isObject(x) && x.constructor === C) return x;
2532
+ if (isObject$1(x) && x.constructor === C) return x;
2533
2533
  var promiseCapability = newPromiseCapability.f(C);
2534
2534
  var resolve = promiseCapability.resolve;
2535
2535
  resolve(x);
2536
2536
  return promiseCapability.promise;
2537
2537
  };
2538
2538
 
2539
- var $$1 = _export;
2539
+ var $$2 = _export;
2540
2540
  var getBuiltIn = getBuiltIn$8;
2541
2541
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2542
2542
  var promiseResolve = promiseResolve$1;
@@ -2545,7 +2545,7 @@ getBuiltIn('Promise');
2545
2545
 
2546
2546
  // `Promise.resolve` method
2547
2547
  // https://tc39.es/ecma262/#sec-promise.resolve
2548
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2548
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2549
2549
  resolve: function resolve(x) {
2550
2550
  return promiseResolve(this, x);
2551
2551
  }
@@ -2600,10 +2600,10 @@ var DOMIterables = domIterables;
2600
2600
  var DOMTokenListPrototype = domTokenListPrototype;
2601
2601
  var ArrayIteratorMethods = es_array_iterator;
2602
2602
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
2603
- var wellKnownSymbol = wellKnownSymbol$e;
2603
+ var wellKnownSymbol$1 = wellKnownSymbol$f;
2604
2604
 
2605
- var ITERATOR = wellKnownSymbol('iterator');
2606
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2605
+ var ITERATOR = wellKnownSymbol$1('iterator');
2606
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
2607
2607
  var ArrayValues = ArrayIteratorMethods.values;
2608
2608
 
2609
2609
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -2641,7 +2641,7 @@ var fails = fails$d;
2641
2641
  var objectKeys = objectKeys$2;
2642
2642
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2643
2643
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2644
- var toObject = toObject$3;
2644
+ var toObject$1 = toObject$4;
2645
2645
  var IndexedObject = indexedObject;
2646
2646
 
2647
2647
  // eslint-disable-next-line es-x/no-object-assign -- safe
@@ -2673,7 +2673,7 @@ var objectAssign = !$assign || fails(function () {
2673
2673
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2674
2674
  return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2675
2675
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2676
- var T = toObject(target);
2676
+ var T = toObject$1(target);
2677
2677
  var argumentsLength = arguments.length;
2678
2678
  var index = 1;
2679
2679
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -2691,16 +2691,126 @@ var objectAssign = !$assign || fails(function () {
2691
2691
  } return T;
2692
2692
  } : $assign;
2693
2693
 
2694
- var $ = _export;
2694
+ var $$1 = _export;
2695
2695
  var assign = objectAssign;
2696
2696
 
2697
2697
  // `Object.assign` method
2698
2698
  // https://tc39.es/ecma262/#sec-object.assign
2699
2699
  // eslint-disable-next-line es-x/no-object-assign -- required for testing
2700
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2700
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2701
2701
  assign: assign
2702
2702
  });
2703
2703
 
2704
+ var classof = classofRaw$1;
2705
+
2706
+ // `IsArray` abstract operation
2707
+ // https://tc39.es/ecma262/#sec-isarray
2708
+ // eslint-disable-next-line es-x/no-array-isarray -- safe
2709
+ var isArray$2 = Array.isArray || function isArray(argument) {
2710
+ return classof(argument) == 'Array';
2711
+ };
2712
+
2713
+ var $TypeError = TypeError;
2714
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2715
+
2716
+ var doesNotExceedSafeInteger$1 = function (it) {
2717
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2718
+ return it;
2719
+ };
2720
+
2721
+ var isArray$1 = isArray$2;
2722
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2723
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2724
+ var bind = functionBindContext;
2725
+
2726
+ // `FlattenIntoArray` abstract operation
2727
+ // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
2728
+ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
2729
+ var targetIndex = start;
2730
+ var sourceIndex = 0;
2731
+ var mapFn = mapper ? bind(mapper, thisArg) : false;
2732
+ var element, elementLen;
2733
+
2734
+ while (sourceIndex < sourceLen) {
2735
+ if (sourceIndex in source) {
2736
+ element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
2737
+
2738
+ if (depth > 0 && isArray$1(element)) {
2739
+ elementLen = lengthOfArrayLike$1(element);
2740
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
2741
+ } else {
2742
+ doesNotExceedSafeInteger(targetIndex + 1);
2743
+ target[targetIndex] = element;
2744
+ }
2745
+
2746
+ targetIndex++;
2747
+ }
2748
+ sourceIndex++;
2749
+ }
2750
+ return targetIndex;
2751
+ };
2752
+
2753
+ var flattenIntoArray_1 = flattenIntoArray$1;
2754
+
2755
+ var isArray = isArray$2;
2756
+ var isConstructor = isConstructor$2;
2757
+ var isObject = isObject$8;
2758
+ var wellKnownSymbol = wellKnownSymbol$f;
2759
+
2760
+ var SPECIES = wellKnownSymbol('species');
2761
+ var $Array = Array;
2762
+
2763
+ // a part of `ArraySpeciesCreate` abstract operation
2764
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2765
+ var arraySpeciesConstructor$1 = function (originalArray) {
2766
+ var C;
2767
+ if (isArray(originalArray)) {
2768
+ C = originalArray.constructor;
2769
+ // cross-realm fallback
2770
+ if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2771
+ else if (isObject(C)) {
2772
+ C = C[SPECIES];
2773
+ if (C === null) C = undefined;
2774
+ }
2775
+ } return C === undefined ? $Array : C;
2776
+ };
2777
+
2778
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
2779
+
2780
+ // `ArraySpeciesCreate` abstract operation
2781
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2782
+ var arraySpeciesCreate$1 = function (originalArray, length) {
2783
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2784
+ };
2785
+
2786
+ var $ = _export;
2787
+ var flattenIntoArray = flattenIntoArray_1;
2788
+ var aCallable = aCallable$8;
2789
+ var toObject = toObject$4;
2790
+ var lengthOfArrayLike = lengthOfArrayLike$4;
2791
+ var arraySpeciesCreate = arraySpeciesCreate$1;
2792
+
2793
+ // `Array.prototype.flatMap` method
2794
+ // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2795
+ $({ target: 'Array', proto: true }, {
2796
+ flatMap: function flatMap(callbackfn /* , thisArg */) {
2797
+ var O = toObject(this);
2798
+ var sourceLen = lengthOfArrayLike(O);
2799
+ var A;
2800
+ aCallable(callbackfn);
2801
+ A = arraySpeciesCreate(O, 0);
2802
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2803
+ return A;
2804
+ }
2805
+ });
2806
+
2807
+ // this method was added to unscopables after implementation
2808
+ // in popular engines, so it's moved to a separate module
2809
+ var addToUnscopables = addToUnscopables$2;
2810
+
2811
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2812
+ addToUnscopables('flatMap');
2813
+
2704
2814
  /******************************************************************************
2705
2815
  Copyright (c) Microsoft Corporation.
2706
2816
 
@@ -2834,6 +2944,16 @@ const ShipmentForm = ({
2834
2944
  }
2835
2945
  });
2836
2946
 
2947
+ const handleUpdateShipDate = shipDate => __awaiter(void 0, void 0, void 0, function* () {
2948
+ const updatedShipment = yield createOrUpdateShipment(Object.assign(Object.assign({}, shipment), {
2949
+ shipDate
2950
+ }));
2951
+
2952
+ if (updatedShipment) {
2953
+ yield onShipmentUpdated(updatedShipment);
2954
+ }
2955
+ });
2956
+
2837
2957
  const errors = [...(updateShipment.errors || []), ...(createShipment.errors || [])];
2838
2958
  return jsx(Templates.ShipmentForm, {
2839
2959
  addressPreference: addressPreference,
@@ -2848,6 +2968,7 @@ const ShipmentForm = ({
2848
2968
  onSubmit: handleSubmit,
2849
2969
  onUpdateCustoms: handleUpdateCustoms,
2850
2970
  onSubmitParseShipTo: handleSubmitParseShipTo,
2971
+ onUpdateShipDate: handleUpdateShipDate,
2851
2972
  salesOrder: salesOrder,
2852
2973
  shipment: shipment,
2853
2974
  shippingPresets: shippingPresets,
@@ -20199,7 +20320,7 @@ const SalesOrder = ({
20199
20320
  shippingPresets,
20200
20321
  warehouseId
20201
20322
  }) => {
20202
- var _a, _b, _c, _d, _e;
20323
+ var _a, _b, _c, _d, _e, _f, _g;
20203
20324
 
20204
20325
  const {
20205
20326
  t
@@ -20361,7 +20482,7 @@ const SalesOrder = ({
20361
20482
  return !!((_a = customPackageTypes.data) === null || _a === void 0 ? void 0 : _a.find(p => p.packageId === shipment.packages[0].packageId));
20362
20483
  }, [customPackageTypes]);
20363
20484
  const handleShipmentUpdated = useCallback((shipment, options = {}) => __awaiter(void 0, void 0, void 0, function* () {
20364
- var _f, _g;
20485
+ var _h, _j;
20365
20486
 
20366
20487
  yield shipments.mutate();
20367
20488
 
@@ -20377,7 +20498,7 @@ const SalesOrder = ({
20377
20498
  const result = yield calculateRates.trigger({
20378
20499
  shipmentId: shipment.shipmentId,
20379
20500
  rateOptions: {
20380
- carrierIds: shipment.carrierId ? [shipment.carrierId] : (_g = (_f = carriers.data) === null || _f === void 0 ? void 0 : _f.map(c => c.carrierId)) !== null && _g !== void 0 ? _g : [],
20501
+ carrierIds: shipment.carrierId ? [shipment.carrierId] : (_j = (_h = carriers.data) === null || _h === void 0 ? void 0 : _h.map(c => c.carrierId)) !== null && _j !== void 0 ? _j : [],
20381
20502
  serviceCodes: shipment.serviceCode ? [shipment.serviceCode] : undefined,
20382
20503
  packageTypes: hasCustomPackage(shipment) ? ["package"] // Only specify package types for non-custom packages
20383
20504
  : shipment.packages.map(pkg => pkg.packageCode)
@@ -20424,6 +20545,19 @@ const SalesOrder = ({
20424
20545
  });
20425
20546
  const salesOrder = salesOrders.data[0];
20426
20547
  const shipment = shipments.data.find(s => s.shipmentStatus === "pending");
20548
+ let rateErrors = [...((_b = calculateRates.errors) !== null && _b !== void 0 ? _b : []), ...((_d = (_c = calculateRates.data) === null || _c === void 0 ? void 0 : _c.errors) !== null && _d !== void 0 ? _d : [])]; // Sometimes no rates are returned and no top-level errors are returned
20549
+ // but there are invalid rates with errors. This will expose those to the user
20550
+ // so the rate list isn't empty after calculating rates.
20551
+
20552
+ if (!rateErrors.length) {
20553
+ rateErrors = (_f = (_e = calculateRates.data) === null || _e === void 0 ? void 0 : _e.invalidRates.flatMap(r => r.errorMessages.map(m => ({
20554
+ errorSource: "shipengine",
20555
+ errorType: "unknown",
20556
+ errorCode: "unknown",
20557
+ message: m
20558
+ })))) !== null && _f !== void 0 ? _f : [];
20559
+ }
20560
+
20427
20561
  return jsxs(Templates.SalesOrder, Object.assign({
20428
20562
  salesOrder: salesOrder
20429
20563
  }, {
@@ -20440,13 +20574,13 @@ const SalesOrder = ({
20440
20574
  shippingPresets: shippingPresets,
20441
20575
  warehouseId: warehouseId
20442
20576
  }), jsx(RateForm, {
20443
- errors: [...((_b = calculateRates.errors) !== null && _b !== void 0 ? _b : []), ...((_d = (_c = calculateRates.data) === null || _c === void 0 ? void 0 : _c.errors) !== null && _d !== void 0 ? _d : [])],
20577
+ errors: rateErrors,
20444
20578
  loading: calculateRates.isMutating,
20445
20579
  onBeforeLabelCreate: onBeforeLabelCreate,
20446
20580
  onLabelCreateFailure: onLabelCreateFailure,
20447
20581
  onLabelCreateSuccess: onLabelCreateSuccess,
20448
20582
  onRateSaved: handleRateSaved,
20449
- rates: (_e = calculateRates.data) === null || _e === void 0 ? void 0 : _e.rates,
20583
+ rates: (_g = calculateRates.data) === null || _g === void 0 ? void 0 : _g.rates,
20450
20584
  shipment: shipment
20451
20585
  })]
20452
20586
  }));