@shipengine/elements 0.10.2 → 0.11.0
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/components/configure-shipment/configure-shipment.d.ts +3 -3
- package/components/configure-shipment/hooks/use-address.d.ts +1 -0
- package/components/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
- package/components/shipment/shipment.d.ts +8 -3
- package/index.cjs +568 -267
- package/index.js +569 -268
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useValidateAddresses, useUpdateShipment, useParseAddress, isDomesticAddress, useListCarriers, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListWarehouses, useListShipments, useCreateShipment, getPendingShipment, getIsCustomsRequiredForSalesOrder, getCustomsFromSalesOrder, useListSalesOrders, useListOrderSources, useRefreshOrderSource, registerElement, useGetShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/elements-core';
|
|
2
2
|
import { jsxs, Fragment, jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { Templates, Loader } from '@shipengine/elements-ui';
|
|
4
|
-
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
4
|
+
import { useState, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -11,7 +11,7 @@ var check = function (it) {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
-
var global$
|
|
14
|
+
var global$m =
|
|
15
15
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
16
16
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
17
|
check(typeof window == 'object' && window) ||
|
|
@@ -23,7 +23,7 @@ var global$j =
|
|
|
23
23
|
|
|
24
24
|
var objectGetOwnPropertyDescriptor = {};
|
|
25
25
|
|
|
26
|
-
var fails$
|
|
26
|
+
var fails$h = function (exec) {
|
|
27
27
|
try {
|
|
28
28
|
return !!exec();
|
|
29
29
|
} catch (error) {
|
|
@@ -31,17 +31,17 @@ var fails$d = function (exec) {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
var fails$
|
|
34
|
+
var fails$g = fails$h;
|
|
35
35
|
|
|
36
36
|
// Detect IE8's incomplete defineProperty implementation
|
|
37
|
-
var descriptors = !fails$
|
|
37
|
+
var descriptors = !fails$g(function () {
|
|
38
38
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
39
39
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
var fails$
|
|
42
|
+
var fails$f = fails$h;
|
|
43
43
|
|
|
44
|
-
var functionBindNative = !fails$
|
|
44
|
+
var functionBindNative = !fails$f(function () {
|
|
45
45
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
46
46
|
var test = (function () { /* empty */ }).bind();
|
|
47
47
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -50,10 +50,10 @@ var functionBindNative = !fails$b(function () {
|
|
|
50
50
|
|
|
51
51
|
var NATIVE_BIND$3 = functionBindNative;
|
|
52
52
|
|
|
53
|
-
var call$
|
|
53
|
+
var call$f = Function.prototype.call;
|
|
54
54
|
|
|
55
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
56
|
-
return call$
|
|
55
|
+
var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
|
|
56
|
+
return call$f.apply(call$f, arguments);
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
var objectPropertyIsEnumerable = {};
|
|
@@ -84,38 +84,38 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
84
84
|
var NATIVE_BIND$2 = functionBindNative;
|
|
85
85
|
|
|
86
86
|
var FunctionPrototype$2 = Function.prototype;
|
|
87
|
-
var call$
|
|
88
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
87
|
+
var call$e = FunctionPrototype$2.call;
|
|
88
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
89
89
|
|
|
90
90
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
91
91
|
return function () {
|
|
92
|
-
return call$
|
|
92
|
+
return call$e.apply(fn, arguments);
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
var uncurryThis$
|
|
96
|
+
var uncurryThis$e = functionUncurryThis;
|
|
97
97
|
|
|
98
|
-
var toString$
|
|
99
|
-
var stringSlice = uncurryThis$
|
|
98
|
+
var toString$3 = uncurryThis$e({}.toString);
|
|
99
|
+
var stringSlice$1 = uncurryThis$e(''.slice);
|
|
100
100
|
|
|
101
101
|
var classofRaw$2 = function (it) {
|
|
102
|
-
return stringSlice(toString$
|
|
102
|
+
return stringSlice$1(toString$3(it), 8, -1);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
var uncurryThis$
|
|
106
|
-
var fails$
|
|
107
|
-
var classof$
|
|
105
|
+
var uncurryThis$d = functionUncurryThis;
|
|
106
|
+
var fails$e = fails$h;
|
|
107
|
+
var classof$6 = classofRaw$2;
|
|
108
108
|
|
|
109
109
|
var $Object$4 = Object;
|
|
110
|
-
var split = uncurryThis$
|
|
110
|
+
var split = uncurryThis$d(''.split);
|
|
111
111
|
|
|
112
112
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
113
|
-
var indexedObject = fails$
|
|
113
|
+
var indexedObject = fails$e(function () {
|
|
114
114
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
115
115
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
116
116
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
117
117
|
}) ? function (it) {
|
|
118
|
-
return classof$
|
|
118
|
+
return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
119
119
|
} : $Object$4;
|
|
120
120
|
|
|
121
121
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -126,21 +126,21 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
126
126
|
|
|
127
127
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
128
128
|
|
|
129
|
-
var $TypeError$
|
|
129
|
+
var $TypeError$e = TypeError;
|
|
130
130
|
|
|
131
131
|
// `RequireObjectCoercible` abstract operation
|
|
132
132
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
133
133
|
var requireObjectCoercible$2 = function (it) {
|
|
134
|
-
if (isNullOrUndefined$3(it)) throw $TypeError$
|
|
134
|
+
if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
|
|
135
135
|
return it;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
// toObject with fallback for non-array-like ES3 strings
|
|
139
|
-
var IndexedObject$
|
|
139
|
+
var IndexedObject$2 = indexedObject;
|
|
140
140
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
141
141
|
|
|
142
142
|
var toIndexedObject$5 = function (it) {
|
|
143
|
-
return IndexedObject$
|
|
143
|
+
return IndexedObject$2(requireObjectCoercible$1(it));
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -176,7 +176,7 @@ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
176
176
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
var global$
|
|
179
|
+
var global$l = global$m;
|
|
180
180
|
var isCallable$i = isCallable$k;
|
|
181
181
|
|
|
182
182
|
var aFunction = function (argument) {
|
|
@@ -184,22 +184,22 @@ var aFunction = function (argument) {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
var getBuiltIn$8 = function (namespace, method) {
|
|
187
|
-
return arguments.length < 2 ? aFunction(global$
|
|
187
|
+
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
var uncurryThis$
|
|
190
|
+
var uncurryThis$c = functionUncurryThis;
|
|
191
191
|
|
|
192
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
192
|
+
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
193
193
|
|
|
194
194
|
var getBuiltIn$7 = getBuiltIn$8;
|
|
195
195
|
|
|
196
196
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
197
197
|
|
|
198
|
-
var global$
|
|
198
|
+
var global$k = global$m;
|
|
199
199
|
var userAgent$3 = engineUserAgent;
|
|
200
200
|
|
|
201
|
-
var process$3 = global$
|
|
202
|
-
var Deno$1 = global$
|
|
201
|
+
var process$3 = global$k.process;
|
|
202
|
+
var Deno$1 = global$k.Deno;
|
|
203
203
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
204
204
|
var v8 = versions && versions.v8;
|
|
205
205
|
var match, version;
|
|
@@ -226,10 +226,10 @@ var engineV8Version = version;
|
|
|
226
226
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
227
227
|
|
|
228
228
|
var V8_VERSION$1 = engineV8Version;
|
|
229
|
-
var fails$
|
|
229
|
+
var fails$d = fails$h;
|
|
230
230
|
|
|
231
231
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
232
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
232
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
|
|
233
233
|
var symbol = Symbol();
|
|
234
234
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
235
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -260,11 +260,11 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
260
260
|
return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
var $String$
|
|
263
|
+
var $String$3 = String;
|
|
264
264
|
|
|
265
265
|
var tryToString$4 = function (argument) {
|
|
266
266
|
try {
|
|
267
|
-
return $String$
|
|
267
|
+
return $String$3(argument);
|
|
268
268
|
} catch (error) {
|
|
269
269
|
return 'Object';
|
|
270
270
|
}
|
|
@@ -273,66 +273,66 @@ var tryToString$4 = function (argument) {
|
|
|
273
273
|
var isCallable$g = isCallable$k;
|
|
274
274
|
var tryToString$3 = tryToString$4;
|
|
275
275
|
|
|
276
|
-
var $TypeError$
|
|
276
|
+
var $TypeError$d = TypeError;
|
|
277
277
|
|
|
278
278
|
// `Assert: IsCallable(argument) is true`
|
|
279
|
-
var aCallable$
|
|
279
|
+
var aCallable$9 = function (argument) {
|
|
280
280
|
if (isCallable$g(argument)) return argument;
|
|
281
|
-
throw $TypeError$
|
|
281
|
+
throw $TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
var aCallable$
|
|
284
|
+
var aCallable$8 = aCallable$9;
|
|
285
285
|
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
286
286
|
|
|
287
287
|
// `GetMethod` abstract operation
|
|
288
288
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
289
289
|
var getMethod$3 = function (V, P) {
|
|
290
290
|
var func = V[P];
|
|
291
|
-
return isNullOrUndefined$2(func) ? undefined : aCallable$
|
|
291
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
var call$
|
|
294
|
+
var call$d = functionCall;
|
|
295
295
|
var isCallable$f = isCallable$k;
|
|
296
296
|
var isObject$8 = isObject$9;
|
|
297
297
|
|
|
298
|
-
var $TypeError$
|
|
298
|
+
var $TypeError$c = TypeError;
|
|
299
299
|
|
|
300
300
|
// `OrdinaryToPrimitive` abstract operation
|
|
301
301
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
302
302
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
303
303
|
var fn, val;
|
|
304
|
-
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$
|
|
305
|
-
if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$
|
|
306
|
-
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$
|
|
307
|
-
throw $TypeError$
|
|
304
|
+
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
305
|
+
if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
|
|
306
|
+
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
307
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
var shared$
|
|
310
|
+
var shared$4 = {exports: {}};
|
|
311
311
|
|
|
312
|
-
var global$
|
|
312
|
+
var global$j = global$m;
|
|
313
313
|
|
|
314
314
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
315
315
|
var defineProperty$5 = Object.defineProperty;
|
|
316
316
|
|
|
317
317
|
var defineGlobalProperty$3 = function (key, value) {
|
|
318
318
|
try {
|
|
319
|
-
defineProperty$5(global$
|
|
319
|
+
defineProperty$5(global$j, key, { value: value, configurable: true, writable: true });
|
|
320
320
|
} catch (error) {
|
|
321
|
-
global$
|
|
321
|
+
global$j[key] = value;
|
|
322
322
|
} return value;
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
-
var global$
|
|
325
|
+
var global$i = global$m;
|
|
326
326
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
327
327
|
|
|
328
328
|
var SHARED = '__core-js_shared__';
|
|
329
|
-
var store$3 = global$
|
|
329
|
+
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
330
330
|
|
|
331
331
|
var sharedStore = store$3;
|
|
332
332
|
|
|
333
333
|
var store$2 = sharedStore;
|
|
334
334
|
|
|
335
|
-
(shared$
|
|
335
|
+
(shared$4.exports = function (key, value) {
|
|
336
336
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
337
337
|
})('versions', []).push({
|
|
338
338
|
version: '3.26.1',
|
|
@@ -348,41 +348,41 @@ var $Object$2 = Object;
|
|
|
348
348
|
|
|
349
349
|
// `ToObject` abstract operation
|
|
350
350
|
// https://tc39.es/ecma262/#sec-toobject
|
|
351
|
-
var toObject$
|
|
351
|
+
var toObject$5 = function (argument) {
|
|
352
352
|
return $Object$2(requireObjectCoercible(argument));
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
-
var uncurryThis$
|
|
356
|
-
var toObject$
|
|
355
|
+
var uncurryThis$b = functionUncurryThis;
|
|
356
|
+
var toObject$4 = toObject$5;
|
|
357
357
|
|
|
358
|
-
var hasOwnProperty = uncurryThis$
|
|
358
|
+
var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
|
|
359
359
|
|
|
360
360
|
// `HasOwnProperty` abstract operation
|
|
361
361
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
362
362
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
363
363
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
364
|
-
return hasOwnProperty(toObject$
|
|
364
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
-
var uncurryThis$
|
|
367
|
+
var uncurryThis$a = functionUncurryThis;
|
|
368
368
|
|
|
369
369
|
var id = 0;
|
|
370
370
|
var postfix = Math.random();
|
|
371
|
-
var toString = uncurryThis$
|
|
371
|
+
var toString$2 = uncurryThis$a(1.0.toString);
|
|
372
372
|
|
|
373
373
|
var uid$2 = function (key) {
|
|
374
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
374
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
375
375
|
};
|
|
376
376
|
|
|
377
|
-
var global$
|
|
378
|
-
var shared$
|
|
377
|
+
var global$h = global$m;
|
|
378
|
+
var shared$3 = shared$4.exports;
|
|
379
379
|
var hasOwn$9 = hasOwnProperty_1;
|
|
380
380
|
var uid$1 = uid$2;
|
|
381
381
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
382
382
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
383
383
|
|
|
384
|
-
var WellKnownSymbolsStore = shared$
|
|
385
|
-
var Symbol$1 = global$
|
|
384
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
385
|
+
var Symbol$1 = global$h.Symbol;
|
|
386
386
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
387
387
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
388
388
|
|
|
@@ -399,14 +399,14 @@ var wellKnownSymbol$f = function (name) {
|
|
|
399
399
|
} return WellKnownSymbolsStore[name];
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
var call$
|
|
402
|
+
var call$c = functionCall;
|
|
403
403
|
var isObject$7 = isObject$9;
|
|
404
404
|
var isSymbol$1 = isSymbol$2;
|
|
405
405
|
var getMethod$2 = getMethod$3;
|
|
406
406
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
407
407
|
var wellKnownSymbol$e = wellKnownSymbol$f;
|
|
408
408
|
|
|
409
|
-
var $TypeError$
|
|
409
|
+
var $TypeError$b = TypeError;
|
|
410
410
|
var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
|
|
411
411
|
|
|
412
412
|
// `ToPrimitive` abstract operation
|
|
@@ -417,9 +417,9 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
417
417
|
var result;
|
|
418
418
|
if (exoticToPrim) {
|
|
419
419
|
if (pref === undefined) pref = 'default';
|
|
420
|
-
result = call$
|
|
420
|
+
result = call$c(exoticToPrim, input, pref);
|
|
421
421
|
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
422
|
-
throw $TypeError$
|
|
422
|
+
throw $TypeError$b("Can't convert object to primitive value");
|
|
423
423
|
}
|
|
424
424
|
if (pref === undefined) pref = 'number';
|
|
425
425
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -435,10 +435,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
435
435
|
return isSymbol(key) ? key : key + '';
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
-
var global$
|
|
438
|
+
var global$g = global$m;
|
|
439
439
|
var isObject$6 = isObject$9;
|
|
440
440
|
|
|
441
|
-
var document$3 = global$
|
|
441
|
+
var document$3 = global$g.document;
|
|
442
442
|
// typeof document.createElement is 'object' in old IE
|
|
443
443
|
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
444
444
|
|
|
@@ -447,11 +447,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
447
447
|
};
|
|
448
448
|
|
|
449
449
|
var DESCRIPTORS$a = descriptors;
|
|
450
|
-
var fails$
|
|
450
|
+
var fails$c = fails$h;
|
|
451
451
|
var createElement$1 = documentCreateElement$2;
|
|
452
452
|
|
|
453
453
|
// Thanks to IE8 for its funny defineProperty
|
|
454
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
454
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
455
455
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
456
456
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
457
457
|
get: function () { return 7; }
|
|
@@ -459,7 +459,7 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
|
|
|
459
459
|
});
|
|
460
460
|
|
|
461
461
|
var DESCRIPTORS$9 = descriptors;
|
|
462
|
-
var call$
|
|
462
|
+
var call$b = functionCall;
|
|
463
463
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
464
464
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
465
465
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -478,17 +478,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
478
478
|
if (IE8_DOM_DEFINE$1) try {
|
|
479
479
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
480
480
|
} catch (error) { /* empty */ }
|
|
481
|
-
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$
|
|
481
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
482
482
|
};
|
|
483
483
|
|
|
484
484
|
var objectDefineProperty = {};
|
|
485
485
|
|
|
486
486
|
var DESCRIPTORS$8 = descriptors;
|
|
487
|
-
var fails$
|
|
487
|
+
var fails$b = fails$h;
|
|
488
488
|
|
|
489
489
|
// V8 ~ Chrome 36-
|
|
490
490
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
491
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
491
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
|
|
492
492
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
493
493
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
494
494
|
value: 42,
|
|
@@ -498,22 +498,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
|
498
498
|
|
|
499
499
|
var isObject$5 = isObject$9;
|
|
500
500
|
|
|
501
|
-
var $String$
|
|
502
|
-
var $TypeError$
|
|
501
|
+
var $String$2 = String;
|
|
502
|
+
var $TypeError$a = TypeError;
|
|
503
503
|
|
|
504
504
|
// `Assert: Type(argument) is Object`
|
|
505
|
-
var anObject$
|
|
505
|
+
var anObject$b = function (argument) {
|
|
506
506
|
if (isObject$5(argument)) return argument;
|
|
507
|
-
throw $TypeError$
|
|
507
|
+
throw $TypeError$a($String$2(argument) + ' is not an object');
|
|
508
508
|
};
|
|
509
509
|
|
|
510
510
|
var DESCRIPTORS$7 = descriptors;
|
|
511
511
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
512
512
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
513
|
-
var anObject$
|
|
513
|
+
var anObject$a = anObject$b;
|
|
514
514
|
var toPropertyKey = toPropertyKey$2;
|
|
515
515
|
|
|
516
|
-
var $TypeError$
|
|
516
|
+
var $TypeError$9 = TypeError;
|
|
517
517
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
518
518
|
var $defineProperty = Object.defineProperty;
|
|
519
519
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -525,9 +525,9 @@ var WRITABLE = 'writable';
|
|
|
525
525
|
// `Object.defineProperty` method
|
|
526
526
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
527
527
|
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
528
|
-
anObject$
|
|
528
|
+
anObject$a(O);
|
|
529
529
|
P = toPropertyKey(P);
|
|
530
|
-
anObject$
|
|
530
|
+
anObject$a(Attributes);
|
|
531
531
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
532
532
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
533
533
|
if (current && current[WRITABLE]) {
|
|
@@ -540,13 +540,13 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
540
540
|
}
|
|
541
541
|
} return $defineProperty(O, P, Attributes);
|
|
542
542
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
543
|
-
anObject$
|
|
543
|
+
anObject$a(O);
|
|
544
544
|
P = toPropertyKey(P);
|
|
545
|
-
anObject$
|
|
545
|
+
anObject$a(Attributes);
|
|
546
546
|
if (IE8_DOM_DEFINE) try {
|
|
547
547
|
return $defineProperty(O, P, Attributes);
|
|
548
548
|
} catch (error) { /* empty */ }
|
|
549
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
549
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
|
|
550
550
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
551
551
|
return O;
|
|
552
552
|
};
|
|
@@ -582,11 +582,11 @@ var functionName = {
|
|
|
582
582
|
CONFIGURABLE: CONFIGURABLE
|
|
583
583
|
};
|
|
584
584
|
|
|
585
|
-
var uncurryThis$
|
|
585
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
586
586
|
var isCallable$e = isCallable$k;
|
|
587
587
|
var store$1 = sharedStore;
|
|
588
588
|
|
|
589
|
-
var functionToString = uncurryThis$
|
|
589
|
+
var functionToString = uncurryThis$9(Function.toString);
|
|
590
590
|
|
|
591
591
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
592
592
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -597,17 +597,17 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
597
597
|
|
|
598
598
|
var inspectSource$3 = store$1.inspectSource;
|
|
599
599
|
|
|
600
|
-
var global$
|
|
600
|
+
var global$f = global$m;
|
|
601
601
|
var isCallable$d = isCallable$k;
|
|
602
602
|
|
|
603
|
-
var WeakMap$1 = global$
|
|
603
|
+
var WeakMap$1 = global$f.WeakMap;
|
|
604
604
|
|
|
605
605
|
var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
606
606
|
|
|
607
|
-
var shared$
|
|
607
|
+
var shared$2 = shared$4.exports;
|
|
608
608
|
var uid = uid$2;
|
|
609
609
|
|
|
610
|
-
var keys = shared$
|
|
610
|
+
var keys = shared$2('keys');
|
|
611
611
|
|
|
612
612
|
var sharedKey$3 = function (key) {
|
|
613
613
|
return keys[key] || (keys[key] = uid(key));
|
|
@@ -616,17 +616,17 @@ var sharedKey$3 = function (key) {
|
|
|
616
616
|
var hiddenKeys$4 = {};
|
|
617
617
|
|
|
618
618
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
619
|
-
var global$
|
|
619
|
+
var global$e = global$m;
|
|
620
620
|
var isObject$4 = isObject$9;
|
|
621
621
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
622
622
|
var hasOwn$6 = hasOwnProperty_1;
|
|
623
|
-
var shared = sharedStore;
|
|
623
|
+
var shared$1 = sharedStore;
|
|
624
624
|
var sharedKey$2 = sharedKey$3;
|
|
625
625
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
626
626
|
|
|
627
627
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
628
|
-
var TypeError$2 = global$
|
|
629
|
-
var WeakMap = global$
|
|
628
|
+
var TypeError$2 = global$e.TypeError;
|
|
629
|
+
var WeakMap = global$e.WeakMap;
|
|
630
630
|
var set$1, get, has;
|
|
631
631
|
|
|
632
632
|
var enforce = function (it) {
|
|
@@ -642,8 +642,8 @@ var getterFor = function (TYPE) {
|
|
|
642
642
|
};
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
646
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
645
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
646
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
647
647
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
648
648
|
store.get = store.get;
|
|
649
649
|
store.has = store.has;
|
|
@@ -686,7 +686,7 @@ var internalState = {
|
|
|
686
686
|
getterFor: getterFor
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
var fails$
|
|
689
|
+
var fails$a = fails$h;
|
|
690
690
|
var isCallable$c = isCallable$k;
|
|
691
691
|
var hasOwn$5 = hasOwnProperty_1;
|
|
692
692
|
var DESCRIPTORS$4 = descriptors;
|
|
@@ -695,11 +695,11 @@ var inspectSource$2 = inspectSource$3;
|
|
|
695
695
|
var InternalStateModule$2 = internalState;
|
|
696
696
|
|
|
697
697
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
698
|
-
var getInternalState$
|
|
698
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
699
699
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
700
700
|
var defineProperty$4 = Object.defineProperty;
|
|
701
701
|
|
|
702
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
702
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$a(function () {
|
|
703
703
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
704
704
|
});
|
|
705
705
|
|
|
@@ -733,7 +733,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
733
733
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
734
734
|
// eslint-disable-next-line no-extend-native -- required
|
|
735
735
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
736
|
-
return isCallable$c(this) && getInternalState$
|
|
736
|
+
return isCallable$c(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
737
737
|
}, 'toString');
|
|
738
738
|
|
|
739
739
|
var isCallable$b = isCallable$k;
|
|
@@ -814,19 +814,19 @@ var toLength = toLength$1;
|
|
|
814
814
|
|
|
815
815
|
// `LengthOfArrayLike` abstract operation
|
|
816
816
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
817
|
-
var lengthOfArrayLike$
|
|
817
|
+
var lengthOfArrayLike$5 = function (obj) {
|
|
818
818
|
return toLength(obj.length);
|
|
819
819
|
};
|
|
820
820
|
|
|
821
821
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
822
822
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
823
|
-
var lengthOfArrayLike$
|
|
823
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
824
824
|
|
|
825
825
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
826
|
-
var createMethod = function (IS_INCLUDES) {
|
|
826
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
827
827
|
return function ($this, el, fromIndex) {
|
|
828
828
|
var O = toIndexedObject$3($this);
|
|
829
|
-
var length = lengthOfArrayLike$
|
|
829
|
+
var length = lengthOfArrayLike$4(O);
|
|
830
830
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
831
831
|
var value;
|
|
832
832
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -845,19 +845,19 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
845
845
|
var arrayIncludes = {
|
|
846
846
|
// `Array.prototype.includes` method
|
|
847
847
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
848
|
-
includes: createMethod(true),
|
|
848
|
+
includes: createMethod$1(true),
|
|
849
849
|
// `Array.prototype.indexOf` method
|
|
850
850
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
851
|
-
indexOf: createMethod(false)
|
|
851
|
+
indexOf: createMethod$1(false)
|
|
852
852
|
};
|
|
853
853
|
|
|
854
|
-
var uncurryThis$
|
|
854
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
855
855
|
var hasOwn$4 = hasOwnProperty_1;
|
|
856
856
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
857
|
-
var indexOf = arrayIncludes.indexOf;
|
|
857
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
858
858
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
859
859
|
|
|
860
|
-
var push = uncurryThis$
|
|
860
|
+
var push = uncurryThis$8([].push);
|
|
861
861
|
|
|
862
862
|
var objectKeysInternal = function (object, names) {
|
|
863
863
|
var O = toIndexedObject$2(object);
|
|
@@ -867,7 +867,7 @@ var objectKeysInternal = function (object, names) {
|
|
|
867
867
|
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
868
868
|
// Don't enum bug & hidden keys
|
|
869
869
|
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
870
|
-
~indexOf(result, key) || push(result, key);
|
|
870
|
+
~indexOf$1(result, key) || push(result, key);
|
|
871
871
|
}
|
|
872
872
|
return result;
|
|
873
873
|
};
|
|
@@ -901,16 +901,16 @@ var objectGetOwnPropertySymbols = {};
|
|
|
901
901
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
902
902
|
|
|
903
903
|
var getBuiltIn$5 = getBuiltIn$8;
|
|
904
|
-
var uncurryThis$
|
|
904
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
905
905
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
906
906
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
907
|
-
var anObject$
|
|
907
|
+
var anObject$9 = anObject$b;
|
|
908
908
|
|
|
909
|
-
var concat$1 = uncurryThis$
|
|
909
|
+
var concat$1 = uncurryThis$7([].concat);
|
|
910
910
|
|
|
911
911
|
// all object keys, includes non-enumerable and symbols
|
|
912
912
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
913
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
913
|
+
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
914
914
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
915
915
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
916
916
|
};
|
|
@@ -932,7 +932,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
934
|
|
|
935
|
-
var fails$
|
|
935
|
+
var fails$9 = fails$h;
|
|
936
936
|
var isCallable$a = isCallable$k;
|
|
937
937
|
|
|
938
938
|
var replacement = /#|\.prototype\./;
|
|
@@ -941,7 +941,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
941
941
|
var value = data[normalize(feature)];
|
|
942
942
|
return value == POLYFILL ? true
|
|
943
943
|
: value == NATIVE ? false
|
|
944
|
-
: isCallable$a(detection) ? fails$
|
|
944
|
+
: isCallable$a(detection) ? fails$9(detection)
|
|
945
945
|
: !!detection;
|
|
946
946
|
};
|
|
947
947
|
|
|
@@ -955,7 +955,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
955
955
|
|
|
956
956
|
var isForced_1 = isForced$2;
|
|
957
957
|
|
|
958
|
-
var global$
|
|
958
|
+
var global$d = global$m;
|
|
959
959
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
960
960
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
961
961
|
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
@@ -984,11 +984,11 @@ var _export = function (options, source) {
|
|
|
984
984
|
var STATIC = options.stat;
|
|
985
985
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
986
986
|
if (GLOBAL) {
|
|
987
|
-
target = global$
|
|
987
|
+
target = global$d;
|
|
988
988
|
} else if (STATIC) {
|
|
989
|
-
target = global$
|
|
989
|
+
target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
|
|
990
990
|
} else {
|
|
991
|
-
target = (global$
|
|
991
|
+
target = (global$d[TARGET] || {}).prototype;
|
|
992
992
|
}
|
|
993
993
|
if (target) for (key in source) {
|
|
994
994
|
sourceProperty = source[key];
|
|
@@ -1021,24 +1021,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1021
1021
|
};
|
|
1022
1022
|
|
|
1023
1023
|
var DESCRIPTORS$3 = descriptors;
|
|
1024
|
-
var uncurryThis$
|
|
1025
|
-
var call$
|
|
1026
|
-
var fails$
|
|
1024
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1025
|
+
var call$a = functionCall;
|
|
1026
|
+
var fails$8 = fails$h;
|
|
1027
1027
|
var objectKeys$1 = objectKeys$2;
|
|
1028
1028
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1029
1029
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1030
|
-
var toObject$
|
|
1031
|
-
var IndexedObject = indexedObject;
|
|
1030
|
+
var toObject$3 = toObject$5;
|
|
1031
|
+
var IndexedObject$1 = indexedObject;
|
|
1032
1032
|
|
|
1033
1033
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1034
1034
|
var $assign = Object.assign;
|
|
1035
1035
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1036
1036
|
var defineProperty$3 = Object.defineProperty;
|
|
1037
|
-
var concat = uncurryThis$
|
|
1037
|
+
var concat = uncurryThis$6([].concat);
|
|
1038
1038
|
|
|
1039
1039
|
// `Object.assign` method
|
|
1040
1040
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1041
|
-
var objectAssign = !$assign || fails$
|
|
1041
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
1042
1042
|
// should have correct order of operations (Edge bug)
|
|
1043
1043
|
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1044
1044
|
enumerable: true,
|
|
@@ -1059,31 +1059,31 @@ var objectAssign = !$assign || fails$4(function () {
|
|
|
1059
1059
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1060
1060
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1061
1061
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1062
|
-
var T = toObject$
|
|
1062
|
+
var T = toObject$3(target);
|
|
1063
1063
|
var argumentsLength = arguments.length;
|
|
1064
1064
|
var index = 1;
|
|
1065
1065
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1066
1066
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1067
1067
|
while (argumentsLength > index) {
|
|
1068
|
-
var S = IndexedObject(arguments[index++]);
|
|
1068
|
+
var S = IndexedObject$1(arguments[index++]);
|
|
1069
1069
|
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1070
1070
|
var length = keys.length;
|
|
1071
1071
|
var j = 0;
|
|
1072
1072
|
var key;
|
|
1073
1073
|
while (length > j) {
|
|
1074
1074
|
key = keys[j++];
|
|
1075
|
-
if (!DESCRIPTORS$3 || call$
|
|
1075
|
+
if (!DESCRIPTORS$3 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1076
1076
|
}
|
|
1077
1077
|
} return T;
|
|
1078
1078
|
} : $assign;
|
|
1079
1079
|
|
|
1080
|
-
var $$
|
|
1080
|
+
var $$a = _export;
|
|
1081
1081
|
var assign = objectAssign;
|
|
1082
1082
|
|
|
1083
1083
|
// `Object.assign` method
|
|
1084
1084
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1085
1085
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1086
|
-
$$
|
|
1086
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1087
1087
|
assign: assign
|
|
1088
1088
|
});
|
|
1089
1089
|
|
|
@@ -1129,7 +1129,7 @@ var objectDefineProperties = {};
|
|
|
1129
1129
|
var DESCRIPTORS$2 = descriptors;
|
|
1130
1130
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1131
1131
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1132
|
-
var anObject$
|
|
1132
|
+
var anObject$8 = anObject$b;
|
|
1133
1133
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1134
1134
|
var objectKeys = objectKeys$2;
|
|
1135
1135
|
|
|
@@ -1137,7 +1137,7 @@ var objectKeys = objectKeys$2;
|
|
|
1137
1137
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1138
1138
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1139
1139
|
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1140
|
-
anObject$
|
|
1140
|
+
anObject$8(O);
|
|
1141
1141
|
var props = toIndexedObject$1(Properties);
|
|
1142
1142
|
var keys = objectKeys(Properties);
|
|
1143
1143
|
var length = keys.length;
|
|
@@ -1153,7 +1153,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
|
1153
1153
|
|
|
1154
1154
|
/* global ActiveXObject -- old IE, WSH */
|
|
1155
1155
|
|
|
1156
|
-
var anObject$
|
|
1156
|
+
var anObject$7 = anObject$b;
|
|
1157
1157
|
var definePropertiesModule = objectDefineProperties;
|
|
1158
1158
|
var enumBugKeys = enumBugKeys$3;
|
|
1159
1159
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1227,7 +1227,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1227
1227
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1228
1228
|
var result;
|
|
1229
1229
|
if (O !== null) {
|
|
1230
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1230
|
+
EmptyConstructor[PROTOTYPE] = anObject$7(O);
|
|
1231
1231
|
result = new EmptyConstructor();
|
|
1232
1232
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1233
1233
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1237,7 +1237,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
1239
|
var wellKnownSymbol$d = wellKnownSymbol$f;
|
|
1240
|
-
var create$
|
|
1240
|
+
var create$2 = objectCreate;
|
|
1241
1241
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1242
1242
|
|
|
1243
1243
|
var UNSCOPABLES = wellKnownSymbol$d('unscopables');
|
|
@@ -1248,7 +1248,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1248
1248
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1249
1249
|
defineProperty$2(ArrayPrototype$1, UNSCOPABLES, {
|
|
1250
1250
|
configurable: true,
|
|
1251
|
-
value: create$
|
|
1251
|
+
value: create$2(null)
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
@@ -1259,9 +1259,9 @@ var addToUnscopables$2 = function (key) {
|
|
|
1259
1259
|
|
|
1260
1260
|
var iterators = {};
|
|
1261
1261
|
|
|
1262
|
-
var fails$
|
|
1262
|
+
var fails$7 = fails$h;
|
|
1263
1263
|
|
|
1264
|
-
var correctPrototypeGetter = !fails$
|
|
1264
|
+
var correctPrototypeGetter = !fails$7(function () {
|
|
1265
1265
|
function F() { /* empty */ }
|
|
1266
1266
|
F.prototype.constructor = null;
|
|
1267
1267
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1270,7 +1270,7 @@ var correctPrototypeGetter = !fails$3(function () {
|
|
|
1270
1270
|
|
|
1271
1271
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1272
1272
|
var isCallable$9 = isCallable$k;
|
|
1273
|
-
var toObject$
|
|
1273
|
+
var toObject$2 = toObject$5;
|
|
1274
1274
|
var sharedKey = sharedKey$3;
|
|
1275
1275
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1276
1276
|
|
|
@@ -1282,7 +1282,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1282
1282
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1283
1283
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1284
1284
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1285
|
-
var object = toObject$
|
|
1285
|
+
var object = toObject$2(O);
|
|
1286
1286
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1287
1287
|
var constructor = object.constructor;
|
|
1288
1288
|
if (isCallable$9(constructor) && object instanceof constructor) {
|
|
@@ -1290,7 +1290,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1290
1290
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
|
-
var fails$
|
|
1293
|
+
var fails$6 = fails$h;
|
|
1294
1294
|
var isCallable$8 = isCallable$k;
|
|
1295
1295
|
var isObject$3 = isObject$9;
|
|
1296
1296
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1315,7 +1315,7 @@ if ([].keys) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1318
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
|
|
1319
1319
|
var test = {};
|
|
1320
1320
|
// FF44- legacy iterators case
|
|
1321
1321
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
|
@@ -1350,7 +1350,7 @@ var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
|
1350
1350
|
};
|
|
1351
1351
|
|
|
1352
1352
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1353
|
-
var create = objectCreate;
|
|
1353
|
+
var create$1 = objectCreate;
|
|
1354
1354
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1355
1355
|
var setToStringTag$2 = setToStringTag$3;
|
|
1356
1356
|
var Iterators$4 = iterators;
|
|
@@ -1359,7 +1359,7 @@ var returnThis$1 = function () { return this; };
|
|
|
1359
1359
|
|
|
1360
1360
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1361
1361
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1362
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1362
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1363
1363
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1364
1364
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1365
1365
|
return IteratorConstructor;
|
|
@@ -1367,18 +1367,18 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1367
1367
|
|
|
1368
1368
|
var isCallable$7 = isCallable$k;
|
|
1369
1369
|
|
|
1370
|
-
var $String = String;
|
|
1371
|
-
var $TypeError$
|
|
1370
|
+
var $String$1 = String;
|
|
1371
|
+
var $TypeError$8 = TypeError;
|
|
1372
1372
|
|
|
1373
1373
|
var aPossiblePrototype$1 = function (argument) {
|
|
1374
1374
|
if (typeof argument == 'object' || isCallable$7(argument)) return argument;
|
|
1375
|
-
throw $TypeError$
|
|
1375
|
+
throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1376
1376
|
};
|
|
1377
1377
|
|
|
1378
1378
|
/* eslint-disable no-proto -- safe */
|
|
1379
1379
|
|
|
1380
|
-
var uncurryThis$
|
|
1381
|
-
var anObject$
|
|
1380
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1381
|
+
var anObject$6 = anObject$b;
|
|
1382
1382
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1383
1383
|
|
|
1384
1384
|
// `Object.setPrototypeOf` method
|
|
@@ -1391,12 +1391,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1391
1391
|
var setter;
|
|
1392
1392
|
try {
|
|
1393
1393
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1394
|
-
setter = uncurryThis$
|
|
1394
|
+
setter = uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1395
1395
|
setter(test, []);
|
|
1396
1396
|
CORRECT_SETTER = test instanceof Array;
|
|
1397
1397
|
} catch (error) { /* empty */ }
|
|
1398
1398
|
return function setPrototypeOf(O, proto) {
|
|
1399
|
-
anObject$
|
|
1399
|
+
anObject$6(O);
|
|
1400
1400
|
aPossiblePrototype(proto);
|
|
1401
1401
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1402
1402
|
else O.__proto__ = proto;
|
|
@@ -1404,8 +1404,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1404
1404
|
};
|
|
1405
1405
|
}() : undefined);
|
|
1406
1406
|
|
|
1407
|
-
var $$
|
|
1408
|
-
var call$
|
|
1407
|
+
var $$9 = _export;
|
|
1408
|
+
var call$9 = functionCall;
|
|
1409
1409
|
var FunctionName = functionName;
|
|
1410
1410
|
var isCallable$6 = isCallable$k;
|
|
1411
1411
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1474,7 +1474,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1474
1474
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1475
1475
|
} else {
|
|
1476
1476
|
INCORRECT_VALUES_NAME = true;
|
|
1477
|
-
defaultIterator = function values() { return call$
|
|
1477
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
@@ -1489,7 +1489,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1489
1489
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1490
1490
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1491
1491
|
}
|
|
1492
|
-
} else $$
|
|
1492
|
+
} else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1493
1493
|
}
|
|
1494
1494
|
|
|
1495
1495
|
// define iterator
|
|
@@ -1518,7 +1518,7 @@ var DESCRIPTORS$1 = descriptors;
|
|
|
1518
1518
|
|
|
1519
1519
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1520
1520
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1521
|
-
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1521
|
+
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1522
1522
|
|
|
1523
1523
|
// `Array.prototype.entries` method
|
|
1524
1524
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1540,7 +1540,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1540
1540
|
// `%ArrayIteratorPrototype%.next` method
|
|
1541
1541
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1542
1542
|
}, function () {
|
|
1543
|
-
var state = getInternalState(this);
|
|
1543
|
+
var state = getInternalState$1(this);
|
|
1544
1544
|
var target = state.target;
|
|
1545
1545
|
var kind = state.kind;
|
|
1546
1546
|
var index = state.index++;
|
|
@@ -1612,7 +1612,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1612
1612
|
|
|
1613
1613
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1614
1614
|
|
|
1615
|
-
var global$
|
|
1615
|
+
var global$c = global$m;
|
|
1616
1616
|
var DOMIterables = domIterables;
|
|
1617
1617
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1618
1618
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1646,11 +1646,335 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1646
1646
|
};
|
|
1647
1647
|
|
|
1648
1648
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1649
|
-
handlePrototype(global$
|
|
1649
|
+
handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1650
1650
|
}
|
|
1651
1651
|
|
|
1652
1652
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1653
1653
|
|
|
1654
|
+
var aCallable$7 = aCallable$9;
|
|
1655
|
+
var toObject$1 = toObject$5;
|
|
1656
|
+
var IndexedObject = indexedObject;
|
|
1657
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1658
|
+
|
|
1659
|
+
var $TypeError$7 = TypeError;
|
|
1660
|
+
|
|
1661
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1662
|
+
var createMethod = function (IS_RIGHT) {
|
|
1663
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
1664
|
+
aCallable$7(callbackfn);
|
|
1665
|
+
var O = toObject$1(that);
|
|
1666
|
+
var self = IndexedObject(O);
|
|
1667
|
+
var length = lengthOfArrayLike$3(O);
|
|
1668
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
1669
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
1670
|
+
if (argumentsLength < 2) while (true) {
|
|
1671
|
+
if (index in self) {
|
|
1672
|
+
memo = self[index];
|
|
1673
|
+
index += i;
|
|
1674
|
+
break;
|
|
1675
|
+
}
|
|
1676
|
+
index += i;
|
|
1677
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1678
|
+
throw $TypeError$7('Reduce of empty array with no initial value');
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
1682
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
1683
|
+
}
|
|
1684
|
+
return memo;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1688
|
+
var arrayReduce = {
|
|
1689
|
+
// `Array.prototype.reduce` method
|
|
1690
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1691
|
+
left: createMethod(false),
|
|
1692
|
+
// `Array.prototype.reduceRight` method
|
|
1693
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1694
|
+
right: createMethod(true)
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
var fails$5 = fails$h;
|
|
1698
|
+
|
|
1699
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1700
|
+
var method = [][METHOD_NAME];
|
|
1701
|
+
return !!method && fails$5(function () {
|
|
1702
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1703
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
1704
|
+
});
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
var classof$5 = classofRaw$2;
|
|
1708
|
+
var global$b = global$m;
|
|
1709
|
+
|
|
1710
|
+
var engineIsNode = classof$5(global$b.process) == 'process';
|
|
1711
|
+
|
|
1712
|
+
var $$8 = _export;
|
|
1713
|
+
var $reduce = arrayReduce.left;
|
|
1714
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1715
|
+
var CHROME_VERSION = engineV8Version;
|
|
1716
|
+
var IS_NODE$4 = engineIsNode;
|
|
1717
|
+
|
|
1718
|
+
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
1719
|
+
// Chrome 80-82 has a critical bug
|
|
1720
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
1721
|
+
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
1722
|
+
|
|
1723
|
+
// `Array.prototype.reduce` method
|
|
1724
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1725
|
+
$$8({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
1726
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1727
|
+
var length = arguments.length;
|
|
1728
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
|
|
1732
|
+
var wellKnownSymbol$8 = wellKnownSymbol$f;
|
|
1733
|
+
|
|
1734
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1735
|
+
var test = {};
|
|
1736
|
+
|
|
1737
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1738
|
+
|
|
1739
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1740
|
+
|
|
1741
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1742
|
+
var isCallable$5 = isCallable$k;
|
|
1743
|
+
var classofRaw$1 = classofRaw$2;
|
|
1744
|
+
var wellKnownSymbol$7 = wellKnownSymbol$f;
|
|
1745
|
+
|
|
1746
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1747
|
+
var $Object = Object;
|
|
1748
|
+
|
|
1749
|
+
// ES3 wrong here
|
|
1750
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
1751
|
+
|
|
1752
|
+
// fallback for IE11 Script Access Denied error
|
|
1753
|
+
var tryGet = function (it, key) {
|
|
1754
|
+
try {
|
|
1755
|
+
return it[key];
|
|
1756
|
+
} catch (error) { /* empty */ }
|
|
1757
|
+
};
|
|
1758
|
+
|
|
1759
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1760
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1761
|
+
var O, tag, result;
|
|
1762
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1763
|
+
// @@toStringTag case
|
|
1764
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1765
|
+
// builtinTag case
|
|
1766
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1767
|
+
// ES3 arguments fallback
|
|
1768
|
+
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
var classof$3 = classof$4;
|
|
1772
|
+
|
|
1773
|
+
var $String = String;
|
|
1774
|
+
|
|
1775
|
+
var toString$1 = function (argument) {
|
|
1776
|
+
if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1777
|
+
return $String(argument);
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
var anObject$5 = anObject$b;
|
|
1781
|
+
|
|
1782
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1783
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1784
|
+
var regexpFlags$1 = function () {
|
|
1785
|
+
var that = anObject$5(this);
|
|
1786
|
+
var result = '';
|
|
1787
|
+
if (that.hasIndices) result += 'd';
|
|
1788
|
+
if (that.global) result += 'g';
|
|
1789
|
+
if (that.ignoreCase) result += 'i';
|
|
1790
|
+
if (that.multiline) result += 'm';
|
|
1791
|
+
if (that.dotAll) result += 's';
|
|
1792
|
+
if (that.unicode) result += 'u';
|
|
1793
|
+
if (that.unicodeSets) result += 'v';
|
|
1794
|
+
if (that.sticky) result += 'y';
|
|
1795
|
+
return result;
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
var fails$4 = fails$h;
|
|
1799
|
+
var global$a = global$m;
|
|
1800
|
+
|
|
1801
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1802
|
+
var $RegExp$2 = global$a.RegExp;
|
|
1803
|
+
|
|
1804
|
+
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
1805
|
+
var re = $RegExp$2('a', 'y');
|
|
1806
|
+
re.lastIndex = 2;
|
|
1807
|
+
return re.exec('abcd') != null;
|
|
1808
|
+
});
|
|
1809
|
+
|
|
1810
|
+
// UC Browser bug
|
|
1811
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1812
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1813
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1814
|
+
});
|
|
1815
|
+
|
|
1816
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1817
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1818
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1819
|
+
re.lastIndex = 2;
|
|
1820
|
+
return re.exec('str') != null;
|
|
1821
|
+
});
|
|
1822
|
+
|
|
1823
|
+
var regexpStickyHelpers = {
|
|
1824
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1825
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1826
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
var fails$3 = fails$h;
|
|
1830
|
+
var global$9 = global$m;
|
|
1831
|
+
|
|
1832
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1833
|
+
var $RegExp$1 = global$9.RegExp;
|
|
1834
|
+
|
|
1835
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
1836
|
+
var re = $RegExp$1('.', 's');
|
|
1837
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1838
|
+
});
|
|
1839
|
+
|
|
1840
|
+
var fails$2 = fails$h;
|
|
1841
|
+
var global$8 = global$m;
|
|
1842
|
+
|
|
1843
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1844
|
+
var $RegExp = global$8.RegExp;
|
|
1845
|
+
|
|
1846
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
1847
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
1848
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
1849
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
1850
|
+
});
|
|
1851
|
+
|
|
1852
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1853
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1854
|
+
var call$8 = functionCall;
|
|
1855
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1856
|
+
var toString = toString$1;
|
|
1857
|
+
var regexpFlags = regexpFlags$1;
|
|
1858
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1859
|
+
var shared = shared$4.exports;
|
|
1860
|
+
var create = objectCreate;
|
|
1861
|
+
var getInternalState = internalState.get;
|
|
1862
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1863
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1864
|
+
|
|
1865
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1866
|
+
var nativeExec = RegExp.prototype.exec;
|
|
1867
|
+
var patchedExec = nativeExec;
|
|
1868
|
+
var charAt = uncurryThis$4(''.charAt);
|
|
1869
|
+
var indexOf = uncurryThis$4(''.indexOf);
|
|
1870
|
+
var replace = uncurryThis$4(''.replace);
|
|
1871
|
+
var stringSlice = uncurryThis$4(''.slice);
|
|
1872
|
+
|
|
1873
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1874
|
+
var re1 = /a/;
|
|
1875
|
+
var re2 = /b*/g;
|
|
1876
|
+
call$8(nativeExec, re1, 'a');
|
|
1877
|
+
call$8(nativeExec, re2, 'a');
|
|
1878
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1879
|
+
})();
|
|
1880
|
+
|
|
1881
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
1882
|
+
|
|
1883
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1884
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1885
|
+
|
|
1886
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1887
|
+
|
|
1888
|
+
if (PATCH) {
|
|
1889
|
+
patchedExec = function exec(string) {
|
|
1890
|
+
var re = this;
|
|
1891
|
+
var state = getInternalState(re);
|
|
1892
|
+
var str = toString(string);
|
|
1893
|
+
var raw = state.raw;
|
|
1894
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
1895
|
+
|
|
1896
|
+
if (raw) {
|
|
1897
|
+
raw.lastIndex = re.lastIndex;
|
|
1898
|
+
result = call$8(patchedExec, raw, str);
|
|
1899
|
+
re.lastIndex = raw.lastIndex;
|
|
1900
|
+
return result;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
var groups = state.groups;
|
|
1904
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1905
|
+
var flags = call$8(regexpFlags, re);
|
|
1906
|
+
var source = re.source;
|
|
1907
|
+
var charsAdded = 0;
|
|
1908
|
+
var strCopy = str;
|
|
1909
|
+
|
|
1910
|
+
if (sticky) {
|
|
1911
|
+
flags = replace(flags, 'y', '');
|
|
1912
|
+
if (indexOf(flags, 'g') === -1) {
|
|
1913
|
+
flags += 'g';
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
1917
|
+
// Support anchored sticky behavior.
|
|
1918
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
1919
|
+
source = '(?: ' + source + ')';
|
|
1920
|
+
strCopy = ' ' + strCopy;
|
|
1921
|
+
charsAdded++;
|
|
1922
|
+
}
|
|
1923
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
1924
|
+
// simulate the 'y' flag.
|
|
1925
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
if (NPCG_INCLUDED) {
|
|
1929
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
1930
|
+
}
|
|
1931
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1932
|
+
|
|
1933
|
+
match = call$8(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1934
|
+
|
|
1935
|
+
if (sticky) {
|
|
1936
|
+
if (match) {
|
|
1937
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
1938
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
1939
|
+
match.index = re.lastIndex;
|
|
1940
|
+
re.lastIndex += match[0].length;
|
|
1941
|
+
} else re.lastIndex = 0;
|
|
1942
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
1943
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
1944
|
+
}
|
|
1945
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1946
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1947
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1948
|
+
call$8(nativeReplace, match[0], reCopy, function () {
|
|
1949
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
1950
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
if (match && groups) {
|
|
1956
|
+
match.groups = object = create(null);
|
|
1957
|
+
for (i = 0; i < groups.length; i++) {
|
|
1958
|
+
group = groups[i];
|
|
1959
|
+
object[group[0]] = match[group[1]];
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
return match;
|
|
1964
|
+
};
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
var regexpExec = patchedExec;
|
|
1968
|
+
|
|
1969
|
+
var $$7 = _export;
|
|
1970
|
+
var exec$1 = regexpExec;
|
|
1971
|
+
|
|
1972
|
+
// `RegExp.prototype.exec` method
|
|
1973
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1974
|
+
$$7({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1975
|
+
exec: exec$1
|
|
1976
|
+
});
|
|
1977
|
+
|
|
1654
1978
|
var lodash = {exports: {}};
|
|
1655
1979
|
|
|
1656
1980
|
/**
|
|
@@ -18860,6 +19184,9 @@ const useAddress = ({
|
|
|
18860
19184
|
salesOrder,
|
|
18861
19185
|
shipment
|
|
18862
19186
|
}) => {
|
|
19187
|
+
const {
|
|
19188
|
+
t
|
|
19189
|
+
} = useTranslation();
|
|
18863
19190
|
const {
|
|
18864
19191
|
errors: validateAddressErrors,
|
|
18865
19192
|
trigger: validateAddresses
|
|
@@ -18974,10 +19301,28 @@ const useAddress = ({
|
|
|
18974
19301
|
handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
18975
19302
|
}
|
|
18976
19303
|
}, [addressPreference, handleValidateAddress, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo, shipment === null || shipment === void 0 ? void 0 : shipment.shipTo]);
|
|
19304
|
+
const charsetWarning = useMemo(() => Object.keys((addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection) || {}).reduce((warning, key) => {
|
|
19305
|
+
if (warning && warning.error) return warning;
|
|
19306
|
+
const value = addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection[key];
|
|
19307
|
+
if (!value) return warning;
|
|
19308
|
+
if (/^(?:[\t-\r -~\xA0-\xAC\xAE-\xB1\xB4\xB6-\xB8\xBA\xBB\xBF-\u02B8\u02C2-\u02C5\u02D2-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B6A\u1B74-\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u2071\u207A-\u207F\u208A-\u208E\u2090-\u209C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129-\u212B\u212E\u2132\u213A\u213B\u2140-\u2144\u214A-\u214F\u2160-\u2188\u218A\u218B\u2190-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2C60-\u2C7F\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB30-\uAB64\uAB66-\uAB6B\uABEB\uFB00-\uFB06\uFB29\uFBB2-\uFBC2\uFD3E-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801[\uDD6F\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDD4F\uDEFF]|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA])+$/.test(value)) return warning;
|
|
19309
|
+
if (key === "name" || key === "companyName") {
|
|
19310
|
+
return {
|
|
19311
|
+
message: t("charsetWarnings.name.message"),
|
|
19312
|
+
error: false
|
|
19313
|
+
};
|
|
19314
|
+
}
|
|
19315
|
+
return {
|
|
19316
|
+
message: t("charsetWarnings.address.message"),
|
|
19317
|
+
title: t("charsetWarnings.address.title"),
|
|
19318
|
+
error: true
|
|
19319
|
+
};
|
|
19320
|
+
}, undefined), [addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection, t]);
|
|
18977
19321
|
const errors = [...(validateAddressErrors !== null && validateAddressErrors !== void 0 ? validateAddressErrors : []), ...(updateShipmentErrors !== null && updateShipmentErrors !== void 0 ? updateShipmentErrors : []), ...(parseAddressErrors !== null && parseAddressErrors !== void 0 ? parseAddressErrors : [])];
|
|
18978
19322
|
return {
|
|
18979
19323
|
addressErrors: errors.length > 0 ? errors : undefined,
|
|
18980
19324
|
addressPreference,
|
|
19325
|
+
charsetWarning,
|
|
18981
19326
|
handleChangeAddress,
|
|
18982
19327
|
handleParseShipTo
|
|
18983
19328
|
};
|
|
@@ -19051,13 +19396,13 @@ const usePresets = ({
|
|
|
19051
19396
|
};
|
|
19052
19397
|
};
|
|
19053
19398
|
|
|
19054
|
-
var classof$
|
|
19399
|
+
var classof$2 = classofRaw$2;
|
|
19055
19400
|
|
|
19056
19401
|
// `IsArray` abstract operation
|
|
19057
19402
|
// https://tc39.es/ecma262/#sec-isarray
|
|
19058
19403
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
19059
19404
|
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
19060
|
-
return classof$
|
|
19405
|
+
return classof$2(argument) == 'Array';
|
|
19061
19406
|
};
|
|
19062
19407
|
|
|
19063
19408
|
var $TypeError$6 = TypeError;
|
|
@@ -19068,18 +19413,18 @@ var doesNotExceedSafeInteger$1 = function (it) {
|
|
|
19068
19413
|
return it;
|
|
19069
19414
|
};
|
|
19070
19415
|
|
|
19071
|
-
var classofRaw
|
|
19416
|
+
var classofRaw = classofRaw$2;
|
|
19072
19417
|
var uncurryThis$3 = functionUncurryThis;
|
|
19073
19418
|
|
|
19074
19419
|
var functionUncurryThisClause = function (fn) {
|
|
19075
19420
|
// Nashorn bug:
|
|
19076
19421
|
// https://github.com/zloirock/core-js/issues/1128
|
|
19077
19422
|
// https://github.com/zloirock/core-js/issues/1130
|
|
19078
|
-
if (classofRaw
|
|
19423
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
|
|
19079
19424
|
};
|
|
19080
19425
|
|
|
19081
19426
|
var uncurryThis$2 = functionUncurryThisClause;
|
|
19082
|
-
var aCallable$6 = aCallable$
|
|
19427
|
+
var aCallable$6 = aCallable$9;
|
|
19083
19428
|
var NATIVE_BIND$1 = functionBindNative;
|
|
19084
19429
|
|
|
19085
19430
|
var bind$5 = uncurryThis$2(uncurryThis$2.bind);
|
|
@@ -19093,7 +19438,7 @@ var functionBindContext = function (fn, that) {
|
|
|
19093
19438
|
};
|
|
19094
19439
|
|
|
19095
19440
|
var isArray$1 = isArray$2;
|
|
19096
|
-
var lengthOfArrayLike$2 = lengthOfArrayLike$
|
|
19441
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
19097
19442
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
19098
19443
|
var bind$4 = functionBindContext;
|
|
19099
19444
|
|
|
@@ -19126,49 +19471,10 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
19126
19471
|
|
|
19127
19472
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
19128
19473
|
|
|
19129
|
-
var wellKnownSymbol$8 = wellKnownSymbol$f;
|
|
19130
|
-
|
|
19131
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
19132
|
-
var test = {};
|
|
19133
|
-
|
|
19134
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
19135
|
-
|
|
19136
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
19137
|
-
|
|
19138
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
19139
|
-
var isCallable$5 = isCallable$k;
|
|
19140
|
-
var classofRaw = classofRaw$2;
|
|
19141
|
-
var wellKnownSymbol$7 = wellKnownSymbol$f;
|
|
19142
|
-
|
|
19143
|
-
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
19144
|
-
var $Object = Object;
|
|
19145
|
-
|
|
19146
|
-
// ES3 wrong here
|
|
19147
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
19148
|
-
|
|
19149
|
-
// fallback for IE11 Script Access Denied error
|
|
19150
|
-
var tryGet = function (it, key) {
|
|
19151
|
-
try {
|
|
19152
|
-
return it[key];
|
|
19153
|
-
} catch (error) { /* empty */ }
|
|
19154
|
-
};
|
|
19155
|
-
|
|
19156
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
19157
|
-
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
19158
|
-
var O, tag, result;
|
|
19159
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
19160
|
-
// @@toStringTag case
|
|
19161
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
19162
|
-
// builtinTag case
|
|
19163
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
19164
|
-
// ES3 arguments fallback
|
|
19165
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
19166
|
-
};
|
|
19167
|
-
|
|
19168
19474
|
var uncurryThis$1 = functionUncurryThis;
|
|
19169
|
-
var fails$1 = fails$
|
|
19475
|
+
var fails$1 = fails$h;
|
|
19170
19476
|
var isCallable$4 = isCallable$k;
|
|
19171
|
-
var classof$
|
|
19477
|
+
var classof$1 = classof$4;
|
|
19172
19478
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
19173
19479
|
var inspectSource$1 = inspectSource$3;
|
|
19174
19480
|
|
|
@@ -19191,7 +19497,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
19191
19497
|
|
|
19192
19498
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
19193
19499
|
if (!isCallable$4(argument)) return false;
|
|
19194
|
-
switch (classof$
|
|
19500
|
+
switch (classof$1(argument)) {
|
|
19195
19501
|
case 'AsyncFunction':
|
|
19196
19502
|
case 'GeneratorFunction':
|
|
19197
19503
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -19251,9 +19557,9 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
19251
19557
|
|
|
19252
19558
|
var $$6 = _export;
|
|
19253
19559
|
var flattenIntoArray = flattenIntoArray_1;
|
|
19254
|
-
var aCallable$5 = aCallable$
|
|
19255
|
-
var toObject = toObject$
|
|
19256
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$
|
|
19560
|
+
var aCallable$5 = aCallable$9;
|
|
19561
|
+
var toObject = toObject$5;
|
|
19562
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
19257
19563
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
19258
19564
|
|
|
19259
19565
|
// `Array.prototype.flatMap` method
|
|
@@ -19448,6 +19754,7 @@ const useShipmentForm = ({
|
|
|
19448
19754
|
const {
|
|
19449
19755
|
addressErrors,
|
|
19450
19756
|
addressPreference,
|
|
19757
|
+
charsetWarning,
|
|
19451
19758
|
handleChangeAddress,
|
|
19452
19759
|
handleParseShipTo
|
|
19453
19760
|
} = useAddress({
|
|
@@ -19487,6 +19794,7 @@ const useShipmentForm = ({
|
|
|
19487
19794
|
const errors = [...(addressErrors !== null && addressErrors !== void 0 ? addressErrors : []), ...(customsErrors !== null && customsErrors !== void 0 ? customsErrors : []), ...(presetErrors !== null && presetErrors !== void 0 ? presetErrors : []), ...(updateShipmentErrors !== null && updateShipmentErrors !== void 0 ? updateShipmentErrors : [])];
|
|
19488
19795
|
return {
|
|
19489
19796
|
addressPreference,
|
|
19797
|
+
charsetWarning,
|
|
19490
19798
|
carriers,
|
|
19491
19799
|
customPackageTypes,
|
|
19492
19800
|
errors: errors.length > 0 ? errors : undefined,
|
|
@@ -19539,41 +19847,37 @@ const ConfigureShipment = _a => {
|
|
|
19539
19847
|
resetLabel
|
|
19540
19848
|
} = _b,
|
|
19541
19849
|
rateFormProps = __rest(_b, ["requestRates", "resetRates", "resetLabel"]);
|
|
19542
|
-
const
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19850
|
+
const _c = useShipmentForm({
|
|
19851
|
+
onAddressValidation,
|
|
19852
|
+
onApplyPreset: useCallback((_preset, shipment) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19853
|
+
if (shipment.packages[0].weight.value) {
|
|
19854
|
+
yield requestRates(shipment);
|
|
19855
|
+
}
|
|
19856
|
+
}), [requestRates]),
|
|
19857
|
+
onChangeAddress,
|
|
19858
|
+
onShipmentUpdated,
|
|
19859
|
+
onSubmit: useCallback(shipment => __awaiter(void 0, void 0, void 0, function* () {
|
|
19546
19860
|
yield requestRates(shipment);
|
|
19547
|
-
}
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
}
|
|
19554
|
-
|
|
19555
|
-
shipment
|
|
19556
|
-
});
|
|
19557
|
-
const [rateFormDisabled, setRateFormDisabled] = useState(false);
|
|
19558
|
-
const handleCharsetWarning = useCallback(charsetWarning => {
|
|
19559
|
-
if (charsetWarning === null || charsetWarning === void 0 ? void 0 : charsetWarning.error) {
|
|
19560
|
-
setRateFormDisabled(true);
|
|
19561
|
-
} else {
|
|
19562
|
-
setRateFormDisabled(false);
|
|
19563
|
-
}
|
|
19564
|
-
}, []);
|
|
19861
|
+
}), [requestRates]),
|
|
19862
|
+
salesOrder,
|
|
19863
|
+
shipment
|
|
19864
|
+
}),
|
|
19865
|
+
{
|
|
19866
|
+
charsetWarning
|
|
19867
|
+
} = _c,
|
|
19868
|
+
shipmentFormProps = __rest(_c, ["charsetWarning"]);
|
|
19565
19869
|
const handleOnDirty = useCallback(() => {
|
|
19566
19870
|
resetRates();
|
|
19567
19871
|
resetLabel();
|
|
19568
19872
|
}, [resetRates, resetLabel]);
|
|
19569
19873
|
return jsxs(Fragment, {
|
|
19570
19874
|
children: [jsx(Templates.ShipmentForm, Object.assign({}, shipmentFormProps, props, {
|
|
19875
|
+
charsetWarning: charsetWarning,
|
|
19571
19876
|
hydrateRef: hydrateRef,
|
|
19572
19877
|
onDirty: handleOnDirty,
|
|
19573
|
-
onCharsetWarning: handleCharsetWarning,
|
|
19574
19878
|
features: features === null || features === void 0 ? void 0 : features.shipmentForm
|
|
19575
19879
|
})), jsx(Templates.RateForm, Object.assign({}, rateFormProps, {
|
|
19576
|
-
disabled:
|
|
19880
|
+
disabled: charsetWarning === null || charsetWarning === void 0 ? void 0 : charsetWarning.error,
|
|
19577
19881
|
features: features === null || features === void 0 ? void 0 : features.rateForm,
|
|
19578
19882
|
onSelectRate: resetLabel
|
|
19579
19883
|
}))]
|
|
@@ -19667,11 +19971,6 @@ const useConfigureShipment = ({
|
|
|
19667
19971
|
};
|
|
19668
19972
|
};
|
|
19669
19973
|
|
|
19670
|
-
var classof$1 = classofRaw$2;
|
|
19671
|
-
var global$8 = global$j;
|
|
19672
|
-
|
|
19673
|
-
var engineIsNode = classof$1(global$8.process) == 'process';
|
|
19674
|
-
|
|
19675
19974
|
var getBuiltIn$2 = getBuiltIn$8;
|
|
19676
19975
|
var definePropertyModule = objectDefineProperty;
|
|
19677
19976
|
var wellKnownSymbol$5 = wellKnownSymbol$f;
|
|
@@ -19711,7 +20010,7 @@ var aConstructor$1 = function (argument) {
|
|
|
19711
20010
|
throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
|
|
19712
20011
|
};
|
|
19713
20012
|
|
|
19714
|
-
var anObject$4 = anObject$
|
|
20013
|
+
var anObject$4 = anObject$b;
|
|
19715
20014
|
var aConstructor = aConstructor$1;
|
|
19716
20015
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
19717
20016
|
var wellKnownSymbol$4 = wellKnownSymbol$f;
|
|
@@ -19752,12 +20051,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
19752
20051
|
|
|
19753
20052
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
19754
20053
|
|
|
19755
|
-
var global$7 = global$
|
|
20054
|
+
var global$7 = global$m;
|
|
19756
20055
|
var apply = functionApply;
|
|
19757
20056
|
var bind$3 = functionBindContext;
|
|
19758
20057
|
var isCallable$3 = isCallable$k;
|
|
19759
20058
|
var hasOwn = hasOwnProperty_1;
|
|
19760
|
-
var fails = fails$
|
|
20059
|
+
var fails = fails$h;
|
|
19761
20060
|
var html = html$2;
|
|
19762
20061
|
var arraySlice = arraySlice$1;
|
|
19763
20062
|
var createElement = documentCreateElement$2;
|
|
@@ -19870,7 +20169,7 @@ var task$1 = {
|
|
|
19870
20169
|
};
|
|
19871
20170
|
|
|
19872
20171
|
var userAgent$1 = engineUserAgent;
|
|
19873
|
-
var global$6 = global$
|
|
20172
|
+
var global$6 = global$m;
|
|
19874
20173
|
|
|
19875
20174
|
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
|
|
19876
20175
|
|
|
@@ -19878,7 +20177,7 @@ var userAgent = engineUserAgent;
|
|
|
19878
20177
|
|
|
19879
20178
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
19880
20179
|
|
|
19881
|
-
var global$5 = global$
|
|
20180
|
+
var global$5 = global$m;
|
|
19882
20181
|
var bind$2 = functionBindContext;
|
|
19883
20182
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
19884
20183
|
var macrotask = task$1.set;
|
|
@@ -19964,7 +20263,7 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
19964
20263
|
} last = task;
|
|
19965
20264
|
};
|
|
19966
20265
|
|
|
19967
|
-
var global$4 = global$
|
|
20266
|
+
var global$4 = global$m;
|
|
19968
20267
|
|
|
19969
20268
|
var hostReportErrors$1 = function (a, b) {
|
|
19970
20269
|
var console = global$4.console;
|
|
@@ -20005,7 +20304,7 @@ Queue$1.prototype = {
|
|
|
20005
20304
|
|
|
20006
20305
|
var queue = Queue$1;
|
|
20007
20306
|
|
|
20008
|
-
var global$3 = global$
|
|
20307
|
+
var global$3 = global$m;
|
|
20009
20308
|
|
|
20010
20309
|
var promiseNativeConstructor = global$3.Promise;
|
|
20011
20310
|
|
|
@@ -20020,7 +20319,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
20020
20319
|
&& typeof window == 'object'
|
|
20021
20320
|
&& typeof document == 'object';
|
|
20022
20321
|
|
|
20023
|
-
var global$2 = global$
|
|
20322
|
+
var global$2 = global$m;
|
|
20024
20323
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
20025
20324
|
var isCallable$2 = isCallable$k;
|
|
20026
20325
|
var isForced = isForced_1;
|
|
@@ -20067,7 +20366,7 @@ var promiseConstructorDetection = {
|
|
|
20067
20366
|
|
|
20068
20367
|
var newPromiseCapability$2 = {};
|
|
20069
20368
|
|
|
20070
|
-
var aCallable$4 = aCallable$
|
|
20369
|
+
var aCallable$4 = aCallable$9;
|
|
20071
20370
|
|
|
20072
20371
|
var $TypeError$2 = TypeError;
|
|
20073
20372
|
|
|
@@ -20090,13 +20389,13 @@ newPromiseCapability$2.f = function (C) {
|
|
|
20090
20389
|
|
|
20091
20390
|
var $$5 = _export;
|
|
20092
20391
|
var IS_NODE = engineIsNode;
|
|
20093
|
-
var global$1 = global$
|
|
20392
|
+
var global$1 = global$m;
|
|
20094
20393
|
var call$6 = functionCall;
|
|
20095
20394
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
20096
20395
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
20097
20396
|
var setToStringTag = setToStringTag$3;
|
|
20098
20397
|
var setSpecies = setSpecies$1;
|
|
20099
|
-
var aCallable$3 = aCallable$
|
|
20398
|
+
var aCallable$3 = aCallable$9;
|
|
20100
20399
|
var isCallable$1 = isCallable$k;
|
|
20101
20400
|
var isObject$1 = isObject$9;
|
|
20102
20401
|
var anInstance = anInstance$1;
|
|
@@ -20386,7 +20685,7 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
20386
20685
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
20387
20686
|
};
|
|
20388
20687
|
|
|
20389
|
-
var classof = classof$
|
|
20688
|
+
var classof = classof$4;
|
|
20390
20689
|
var getMethod$1 = getMethod$3;
|
|
20391
20690
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
20392
20691
|
var Iterators = iterators;
|
|
@@ -20401,8 +20700,8 @@ var getIteratorMethod$2 = function (it) {
|
|
|
20401
20700
|
};
|
|
20402
20701
|
|
|
20403
20702
|
var call$5 = functionCall;
|
|
20404
|
-
var aCallable$2 = aCallable$
|
|
20405
|
-
var anObject$3 = anObject$
|
|
20703
|
+
var aCallable$2 = aCallable$9;
|
|
20704
|
+
var anObject$3 = anObject$b;
|
|
20406
20705
|
var tryToString$1 = tryToString$4;
|
|
20407
20706
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
20408
20707
|
|
|
@@ -20415,7 +20714,7 @@ var getIterator$1 = function (argument, usingIterator) {
|
|
|
20415
20714
|
};
|
|
20416
20715
|
|
|
20417
20716
|
var call$4 = functionCall;
|
|
20418
|
-
var anObject$2 = anObject$
|
|
20717
|
+
var anObject$2 = anObject$b;
|
|
20419
20718
|
var getMethod = getMethod$3;
|
|
20420
20719
|
|
|
20421
20720
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
@@ -20440,10 +20739,10 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
20440
20739
|
|
|
20441
20740
|
var bind = functionBindContext;
|
|
20442
20741
|
var call$3 = functionCall;
|
|
20443
|
-
var anObject$1 = anObject$
|
|
20742
|
+
var anObject$1 = anObject$b;
|
|
20444
20743
|
var tryToString = tryToString$4;
|
|
20445
20744
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
20446
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
20745
|
+
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
20447
20746
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
20448
20747
|
var getIterator = getIterator$1;
|
|
20449
20748
|
var getIteratorMethod = getIteratorMethod$2;
|
|
@@ -20556,7 +20855,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
20556
20855
|
|
|
20557
20856
|
var $$4 = _export;
|
|
20558
20857
|
var call$2 = functionCall;
|
|
20559
|
-
var aCallable$1 = aCallable$
|
|
20858
|
+
var aCallable$1 = aCallable$9;
|
|
20560
20859
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
20561
20860
|
var perform$1 = perform$3;
|
|
20562
20861
|
var iterate$1 = iterate$2;
|
|
@@ -20620,7 +20919,7 @@ if (isCallable(NativePromiseConstructor)) {
|
|
|
20620
20919
|
|
|
20621
20920
|
var $$2 = _export;
|
|
20622
20921
|
var call$1 = functionCall;
|
|
20623
|
-
var aCallable = aCallable$
|
|
20922
|
+
var aCallable = aCallable$9;
|
|
20624
20923
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
20625
20924
|
var perform = perform$3;
|
|
20626
20925
|
var iterate = iterate$2;
|
|
@@ -20659,7 +20958,7 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
20659
20958
|
}
|
|
20660
20959
|
});
|
|
20661
20960
|
|
|
20662
|
-
var anObject = anObject$
|
|
20961
|
+
var anObject = anObject$b;
|
|
20663
20962
|
var isObject = isObject$9;
|
|
20664
20963
|
var newPromiseCapability = newPromiseCapability$2;
|
|
20665
20964
|
|
|
@@ -20775,6 +21074,7 @@ const SalesOrder = _a => {
|
|
|
20775
21074
|
const Element$2 = registerElement("purchase-label", SalesOrder, ["externalOrderId", "externalOrderNumber", "salesOrderId"]);
|
|
20776
21075
|
|
|
20777
21076
|
const Shipment = ({
|
|
21077
|
+
features,
|
|
20778
21078
|
onClickPrintLabel,
|
|
20779
21079
|
onClickPurchaseLabel,
|
|
20780
21080
|
onClickVoidLabel,
|
|
@@ -20807,6 +21107,7 @@ const Shipment = ({
|
|
|
20807
21107
|
const salesOrder = (_c = salesOrders.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
20808
21108
|
return jsx(Templates.Shipment, {
|
|
20809
21109
|
carriers: carriers.data,
|
|
21110
|
+
features: features === null || features === void 0 ? void 0 : features.shipment,
|
|
20810
21111
|
labels: labels.data,
|
|
20811
21112
|
onClickPurchaseLabel: onClickPurchaseLabel,
|
|
20812
21113
|
onClickPrintLabel: onClickPrintLabel,
|