@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.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var check = function (it) {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
18
|
-
var global$
|
|
18
|
+
var global$m =
|
|
19
19
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
20
20
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21
21
|
check(typeof window == 'object' && window) ||
|
|
@@ -27,7 +27,7 @@ var global$j =
|
|
|
27
27
|
|
|
28
28
|
var objectGetOwnPropertyDescriptor = {};
|
|
29
29
|
|
|
30
|
-
var fails$
|
|
30
|
+
var fails$h = function (exec) {
|
|
31
31
|
try {
|
|
32
32
|
return !!exec();
|
|
33
33
|
} catch (error) {
|
|
@@ -35,17 +35,17 @@ var fails$d = function (exec) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
var fails$
|
|
38
|
+
var fails$g = fails$h;
|
|
39
39
|
|
|
40
40
|
// Detect IE8's incomplete defineProperty implementation
|
|
41
|
-
var descriptors = !fails$
|
|
41
|
+
var descriptors = !fails$g(function () {
|
|
42
42
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
43
43
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
var fails$
|
|
46
|
+
var fails$f = fails$h;
|
|
47
47
|
|
|
48
|
-
var functionBindNative = !fails$
|
|
48
|
+
var functionBindNative = !fails$f(function () {
|
|
49
49
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
50
50
|
var test = (function () { /* empty */ }).bind();
|
|
51
51
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -54,10 +54,10 @@ var functionBindNative = !fails$b(function () {
|
|
|
54
54
|
|
|
55
55
|
var NATIVE_BIND$3 = functionBindNative;
|
|
56
56
|
|
|
57
|
-
var call$
|
|
57
|
+
var call$f = Function.prototype.call;
|
|
58
58
|
|
|
59
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
60
|
-
return call$
|
|
59
|
+
var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
|
|
60
|
+
return call$f.apply(call$f, arguments);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var objectPropertyIsEnumerable = {};
|
|
@@ -88,38 +88,38 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
88
88
|
var NATIVE_BIND$2 = functionBindNative;
|
|
89
89
|
|
|
90
90
|
var FunctionPrototype$2 = Function.prototype;
|
|
91
|
-
var call$
|
|
92
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
91
|
+
var call$e = FunctionPrototype$2.call;
|
|
92
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
93
93
|
|
|
94
94
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
95
95
|
return function () {
|
|
96
|
-
return call$
|
|
96
|
+
return call$e.apply(fn, arguments);
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
var uncurryThis$
|
|
100
|
+
var uncurryThis$e = functionUncurryThis;
|
|
101
101
|
|
|
102
|
-
var toString$
|
|
103
|
-
var stringSlice = uncurryThis$
|
|
102
|
+
var toString$3 = uncurryThis$e({}.toString);
|
|
103
|
+
var stringSlice$1 = uncurryThis$e(''.slice);
|
|
104
104
|
|
|
105
105
|
var classofRaw$2 = function (it) {
|
|
106
|
-
return stringSlice(toString$
|
|
106
|
+
return stringSlice$1(toString$3(it), 8, -1);
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
var uncurryThis$
|
|
110
|
-
var fails$
|
|
111
|
-
var classof$
|
|
109
|
+
var uncurryThis$d = functionUncurryThis;
|
|
110
|
+
var fails$e = fails$h;
|
|
111
|
+
var classof$6 = classofRaw$2;
|
|
112
112
|
|
|
113
113
|
var $Object$4 = Object;
|
|
114
|
-
var split = uncurryThis$
|
|
114
|
+
var split = uncurryThis$d(''.split);
|
|
115
115
|
|
|
116
116
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
117
|
-
var indexedObject = fails$
|
|
117
|
+
var indexedObject = fails$e(function () {
|
|
118
118
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
119
119
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
120
120
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
121
121
|
}) ? function (it) {
|
|
122
|
-
return classof$
|
|
122
|
+
return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
123
123
|
} : $Object$4;
|
|
124
124
|
|
|
125
125
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -130,21 +130,21 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
130
130
|
|
|
131
131
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
132
132
|
|
|
133
|
-
var $TypeError$
|
|
133
|
+
var $TypeError$e = TypeError;
|
|
134
134
|
|
|
135
135
|
// `RequireObjectCoercible` abstract operation
|
|
136
136
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
137
137
|
var requireObjectCoercible$2 = function (it) {
|
|
138
|
-
if (isNullOrUndefined$3(it)) throw $TypeError$
|
|
138
|
+
if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
|
|
139
139
|
return it;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// toObject with fallback for non-array-like ES3 strings
|
|
143
|
-
var IndexedObject$
|
|
143
|
+
var IndexedObject$2 = indexedObject;
|
|
144
144
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
145
145
|
|
|
146
146
|
var toIndexedObject$5 = function (it) {
|
|
147
|
-
return IndexedObject$
|
|
147
|
+
return IndexedObject$2(requireObjectCoercible$1(it));
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -180,7 +180,7 @@ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
180
180
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
var global$
|
|
183
|
+
var global$l = global$m;
|
|
184
184
|
var isCallable$i = isCallable$k;
|
|
185
185
|
|
|
186
186
|
var aFunction = function (argument) {
|
|
@@ -188,22 +188,22 @@ var aFunction = function (argument) {
|
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
var getBuiltIn$8 = function (namespace, method) {
|
|
191
|
-
return arguments.length < 2 ? aFunction(global$
|
|
191
|
+
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
var uncurryThis$
|
|
194
|
+
var uncurryThis$c = functionUncurryThis;
|
|
195
195
|
|
|
196
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
196
|
+
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
197
197
|
|
|
198
198
|
var getBuiltIn$7 = getBuiltIn$8;
|
|
199
199
|
|
|
200
200
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
201
201
|
|
|
202
|
-
var global$
|
|
202
|
+
var global$k = global$m;
|
|
203
203
|
var userAgent$3 = engineUserAgent;
|
|
204
204
|
|
|
205
|
-
var process$3 = global$
|
|
206
|
-
var Deno$1 = global$
|
|
205
|
+
var process$3 = global$k.process;
|
|
206
|
+
var Deno$1 = global$k.Deno;
|
|
207
207
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
208
208
|
var v8 = versions && versions.v8;
|
|
209
209
|
var match, version;
|
|
@@ -230,10 +230,10 @@ var engineV8Version = version;
|
|
|
230
230
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
231
231
|
|
|
232
232
|
var V8_VERSION$1 = engineV8Version;
|
|
233
|
-
var fails$
|
|
233
|
+
var fails$d = fails$h;
|
|
234
234
|
|
|
235
235
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
236
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
236
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
|
|
237
237
|
var symbol = Symbol();
|
|
238
238
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
239
239
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -264,11 +264,11 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
264
264
|
return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
var $String$
|
|
267
|
+
var $String$3 = String;
|
|
268
268
|
|
|
269
269
|
var tryToString$4 = function (argument) {
|
|
270
270
|
try {
|
|
271
|
-
return $String$
|
|
271
|
+
return $String$3(argument);
|
|
272
272
|
} catch (error) {
|
|
273
273
|
return 'Object';
|
|
274
274
|
}
|
|
@@ -277,66 +277,66 @@ var tryToString$4 = function (argument) {
|
|
|
277
277
|
var isCallable$g = isCallable$k;
|
|
278
278
|
var tryToString$3 = tryToString$4;
|
|
279
279
|
|
|
280
|
-
var $TypeError$
|
|
280
|
+
var $TypeError$d = TypeError;
|
|
281
281
|
|
|
282
282
|
// `Assert: IsCallable(argument) is true`
|
|
283
|
-
var aCallable$
|
|
283
|
+
var aCallable$9 = function (argument) {
|
|
284
284
|
if (isCallable$g(argument)) return argument;
|
|
285
|
-
throw $TypeError$
|
|
285
|
+
throw $TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
286
286
|
};
|
|
287
287
|
|
|
288
|
-
var aCallable$
|
|
288
|
+
var aCallable$8 = aCallable$9;
|
|
289
289
|
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
290
290
|
|
|
291
291
|
// `GetMethod` abstract operation
|
|
292
292
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
293
293
|
var getMethod$3 = function (V, P) {
|
|
294
294
|
var func = V[P];
|
|
295
|
-
return isNullOrUndefined$2(func) ? undefined : aCallable$
|
|
295
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
var call$
|
|
298
|
+
var call$d = functionCall;
|
|
299
299
|
var isCallable$f = isCallable$k;
|
|
300
300
|
var isObject$8 = isObject$9;
|
|
301
301
|
|
|
302
|
-
var $TypeError$
|
|
302
|
+
var $TypeError$c = TypeError;
|
|
303
303
|
|
|
304
304
|
// `OrdinaryToPrimitive` abstract operation
|
|
305
305
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
306
306
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
307
307
|
var fn, val;
|
|
308
|
-
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$
|
|
309
|
-
if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$
|
|
310
|
-
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$
|
|
311
|
-
throw $TypeError$
|
|
308
|
+
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
309
|
+
if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
|
|
310
|
+
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
311
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
var shared$
|
|
314
|
+
var shared$4 = {exports: {}};
|
|
315
315
|
|
|
316
|
-
var global$
|
|
316
|
+
var global$j = global$m;
|
|
317
317
|
|
|
318
318
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
319
319
|
var defineProperty$5 = Object.defineProperty;
|
|
320
320
|
|
|
321
321
|
var defineGlobalProperty$3 = function (key, value) {
|
|
322
322
|
try {
|
|
323
|
-
defineProperty$5(global$
|
|
323
|
+
defineProperty$5(global$j, key, { value: value, configurable: true, writable: true });
|
|
324
324
|
} catch (error) {
|
|
325
|
-
global$
|
|
325
|
+
global$j[key] = value;
|
|
326
326
|
} return value;
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
var global$
|
|
329
|
+
var global$i = global$m;
|
|
330
330
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
331
331
|
|
|
332
332
|
var SHARED = '__core-js_shared__';
|
|
333
|
-
var store$3 = global$
|
|
333
|
+
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
334
334
|
|
|
335
335
|
var sharedStore = store$3;
|
|
336
336
|
|
|
337
337
|
var store$2 = sharedStore;
|
|
338
338
|
|
|
339
|
-
(shared$
|
|
339
|
+
(shared$4.exports = function (key, value) {
|
|
340
340
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
341
341
|
})('versions', []).push({
|
|
342
342
|
version: '3.26.1',
|
|
@@ -352,41 +352,41 @@ var $Object$2 = Object;
|
|
|
352
352
|
|
|
353
353
|
// `ToObject` abstract operation
|
|
354
354
|
// https://tc39.es/ecma262/#sec-toobject
|
|
355
|
-
var toObject$
|
|
355
|
+
var toObject$5 = function (argument) {
|
|
356
356
|
return $Object$2(requireObjectCoercible(argument));
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
var uncurryThis$
|
|
360
|
-
var toObject$
|
|
359
|
+
var uncurryThis$b = functionUncurryThis;
|
|
360
|
+
var toObject$4 = toObject$5;
|
|
361
361
|
|
|
362
|
-
var hasOwnProperty = uncurryThis$
|
|
362
|
+
var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
|
|
363
363
|
|
|
364
364
|
// `HasOwnProperty` abstract operation
|
|
365
365
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
366
366
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
367
367
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
368
|
-
return hasOwnProperty(toObject$
|
|
368
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
var uncurryThis$
|
|
371
|
+
var uncurryThis$a = functionUncurryThis;
|
|
372
372
|
|
|
373
373
|
var id = 0;
|
|
374
374
|
var postfix = Math.random();
|
|
375
|
-
var toString = uncurryThis$
|
|
375
|
+
var toString$2 = uncurryThis$a(1.0.toString);
|
|
376
376
|
|
|
377
377
|
var uid$2 = function (key) {
|
|
378
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
378
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
var global$
|
|
382
|
-
var shared$
|
|
381
|
+
var global$h = global$m;
|
|
382
|
+
var shared$3 = shared$4.exports;
|
|
383
383
|
var hasOwn$9 = hasOwnProperty_1;
|
|
384
384
|
var uid$1 = uid$2;
|
|
385
385
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
386
386
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
387
387
|
|
|
388
|
-
var WellKnownSymbolsStore = shared$
|
|
389
|
-
var Symbol$1 = global$
|
|
388
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
389
|
+
var Symbol$1 = global$h.Symbol;
|
|
390
390
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
391
391
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
392
392
|
|
|
@@ -403,14 +403,14 @@ var wellKnownSymbol$f = function (name) {
|
|
|
403
403
|
} return WellKnownSymbolsStore[name];
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
-
var call$
|
|
406
|
+
var call$c = functionCall;
|
|
407
407
|
var isObject$7 = isObject$9;
|
|
408
408
|
var isSymbol$1 = isSymbol$2;
|
|
409
409
|
var getMethod$2 = getMethod$3;
|
|
410
410
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
411
411
|
var wellKnownSymbol$e = wellKnownSymbol$f;
|
|
412
412
|
|
|
413
|
-
var $TypeError$
|
|
413
|
+
var $TypeError$b = TypeError;
|
|
414
414
|
var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
|
|
415
415
|
|
|
416
416
|
// `ToPrimitive` abstract operation
|
|
@@ -421,9 +421,9 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
421
421
|
var result;
|
|
422
422
|
if (exoticToPrim) {
|
|
423
423
|
if (pref === undefined) pref = 'default';
|
|
424
|
-
result = call$
|
|
424
|
+
result = call$c(exoticToPrim, input, pref);
|
|
425
425
|
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
426
|
-
throw $TypeError$
|
|
426
|
+
throw $TypeError$b("Can't convert object to primitive value");
|
|
427
427
|
}
|
|
428
428
|
if (pref === undefined) pref = 'number';
|
|
429
429
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -439,10 +439,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
439
439
|
return isSymbol(key) ? key : key + '';
|
|
440
440
|
};
|
|
441
441
|
|
|
442
|
-
var global$
|
|
442
|
+
var global$g = global$m;
|
|
443
443
|
var isObject$6 = isObject$9;
|
|
444
444
|
|
|
445
|
-
var document$3 = global$
|
|
445
|
+
var document$3 = global$g.document;
|
|
446
446
|
// typeof document.createElement is 'object' in old IE
|
|
447
447
|
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
448
448
|
|
|
@@ -451,11 +451,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
451
451
|
};
|
|
452
452
|
|
|
453
453
|
var DESCRIPTORS$a = descriptors;
|
|
454
|
-
var fails$
|
|
454
|
+
var fails$c = fails$h;
|
|
455
455
|
var createElement$1 = documentCreateElement$2;
|
|
456
456
|
|
|
457
457
|
// Thanks to IE8 for its funny defineProperty
|
|
458
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
458
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
459
459
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
460
460
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
461
461
|
get: function () { return 7; }
|
|
@@ -463,7 +463,7 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
|
|
|
463
463
|
});
|
|
464
464
|
|
|
465
465
|
var DESCRIPTORS$9 = descriptors;
|
|
466
|
-
var call$
|
|
466
|
+
var call$b = functionCall;
|
|
467
467
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
468
468
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
469
469
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -482,17 +482,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
482
482
|
if (IE8_DOM_DEFINE$1) try {
|
|
483
483
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
484
484
|
} catch (error) { /* empty */ }
|
|
485
|
-
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$
|
|
485
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
486
486
|
};
|
|
487
487
|
|
|
488
488
|
var objectDefineProperty = {};
|
|
489
489
|
|
|
490
490
|
var DESCRIPTORS$8 = descriptors;
|
|
491
|
-
var fails$
|
|
491
|
+
var fails$b = fails$h;
|
|
492
492
|
|
|
493
493
|
// V8 ~ Chrome 36-
|
|
494
494
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
495
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
495
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
|
|
496
496
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
497
497
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
498
498
|
value: 42,
|
|
@@ -502,22 +502,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
|
502
502
|
|
|
503
503
|
var isObject$5 = isObject$9;
|
|
504
504
|
|
|
505
|
-
var $String$
|
|
506
|
-
var $TypeError$
|
|
505
|
+
var $String$2 = String;
|
|
506
|
+
var $TypeError$a = TypeError;
|
|
507
507
|
|
|
508
508
|
// `Assert: Type(argument) is Object`
|
|
509
|
-
var anObject$
|
|
509
|
+
var anObject$b = function (argument) {
|
|
510
510
|
if (isObject$5(argument)) return argument;
|
|
511
|
-
throw $TypeError$
|
|
511
|
+
throw $TypeError$a($String$2(argument) + ' is not an object');
|
|
512
512
|
};
|
|
513
513
|
|
|
514
514
|
var DESCRIPTORS$7 = descriptors;
|
|
515
515
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
516
516
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
517
|
-
var anObject$
|
|
517
|
+
var anObject$a = anObject$b;
|
|
518
518
|
var toPropertyKey = toPropertyKey$2;
|
|
519
519
|
|
|
520
|
-
var $TypeError$
|
|
520
|
+
var $TypeError$9 = TypeError;
|
|
521
521
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
522
522
|
var $defineProperty = Object.defineProperty;
|
|
523
523
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -529,9 +529,9 @@ var WRITABLE = 'writable';
|
|
|
529
529
|
// `Object.defineProperty` method
|
|
530
530
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
531
531
|
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
532
|
-
anObject$
|
|
532
|
+
anObject$a(O);
|
|
533
533
|
P = toPropertyKey(P);
|
|
534
|
-
anObject$
|
|
534
|
+
anObject$a(Attributes);
|
|
535
535
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
536
536
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
537
537
|
if (current && current[WRITABLE]) {
|
|
@@ -544,13 +544,13 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
544
544
|
}
|
|
545
545
|
} return $defineProperty(O, P, Attributes);
|
|
546
546
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
547
|
-
anObject$
|
|
547
|
+
anObject$a(O);
|
|
548
548
|
P = toPropertyKey(P);
|
|
549
|
-
anObject$
|
|
549
|
+
anObject$a(Attributes);
|
|
550
550
|
if (IE8_DOM_DEFINE) try {
|
|
551
551
|
return $defineProperty(O, P, Attributes);
|
|
552
552
|
} catch (error) { /* empty */ }
|
|
553
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
553
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
|
|
554
554
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
555
555
|
return O;
|
|
556
556
|
};
|
|
@@ -586,11 +586,11 @@ var functionName = {
|
|
|
586
586
|
CONFIGURABLE: CONFIGURABLE
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
-
var uncurryThis$
|
|
589
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
590
590
|
var isCallable$e = isCallable$k;
|
|
591
591
|
var store$1 = sharedStore;
|
|
592
592
|
|
|
593
|
-
var functionToString = uncurryThis$
|
|
593
|
+
var functionToString = uncurryThis$9(Function.toString);
|
|
594
594
|
|
|
595
595
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
596
596
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -601,17 +601,17 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
601
601
|
|
|
602
602
|
var inspectSource$3 = store$1.inspectSource;
|
|
603
603
|
|
|
604
|
-
var global$
|
|
604
|
+
var global$f = global$m;
|
|
605
605
|
var isCallable$d = isCallable$k;
|
|
606
606
|
|
|
607
|
-
var WeakMap$1 = global$
|
|
607
|
+
var WeakMap$1 = global$f.WeakMap;
|
|
608
608
|
|
|
609
609
|
var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
610
610
|
|
|
611
|
-
var shared$
|
|
611
|
+
var shared$2 = shared$4.exports;
|
|
612
612
|
var uid = uid$2;
|
|
613
613
|
|
|
614
|
-
var keys = shared$
|
|
614
|
+
var keys = shared$2('keys');
|
|
615
615
|
|
|
616
616
|
var sharedKey$3 = function (key) {
|
|
617
617
|
return keys[key] || (keys[key] = uid(key));
|
|
@@ -620,17 +620,17 @@ var sharedKey$3 = function (key) {
|
|
|
620
620
|
var hiddenKeys$4 = {};
|
|
621
621
|
|
|
622
622
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
623
|
-
var global$
|
|
623
|
+
var global$e = global$m;
|
|
624
624
|
var isObject$4 = isObject$9;
|
|
625
625
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
626
626
|
var hasOwn$6 = hasOwnProperty_1;
|
|
627
|
-
var shared = sharedStore;
|
|
627
|
+
var shared$1 = sharedStore;
|
|
628
628
|
var sharedKey$2 = sharedKey$3;
|
|
629
629
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
630
630
|
|
|
631
631
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
632
|
-
var TypeError$2 = global$
|
|
633
|
-
var WeakMap = global$
|
|
632
|
+
var TypeError$2 = global$e.TypeError;
|
|
633
|
+
var WeakMap = global$e.WeakMap;
|
|
634
634
|
var set$1, get, has;
|
|
635
635
|
|
|
636
636
|
var enforce = function (it) {
|
|
@@ -646,8 +646,8 @@ var getterFor = function (TYPE) {
|
|
|
646
646
|
};
|
|
647
647
|
};
|
|
648
648
|
|
|
649
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
650
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
649
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
650
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
651
651
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
652
652
|
store.get = store.get;
|
|
653
653
|
store.has = store.has;
|
|
@@ -690,7 +690,7 @@ var internalState = {
|
|
|
690
690
|
getterFor: getterFor
|
|
691
691
|
};
|
|
692
692
|
|
|
693
|
-
var fails$
|
|
693
|
+
var fails$a = fails$h;
|
|
694
694
|
var isCallable$c = isCallable$k;
|
|
695
695
|
var hasOwn$5 = hasOwnProperty_1;
|
|
696
696
|
var DESCRIPTORS$4 = descriptors;
|
|
@@ -699,11 +699,11 @@ var inspectSource$2 = inspectSource$3;
|
|
|
699
699
|
var InternalStateModule$2 = internalState;
|
|
700
700
|
|
|
701
701
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
702
|
-
var getInternalState$
|
|
702
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
703
703
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
704
704
|
var defineProperty$4 = Object.defineProperty;
|
|
705
705
|
|
|
706
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
706
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$a(function () {
|
|
707
707
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
708
708
|
});
|
|
709
709
|
|
|
@@ -737,7 +737,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
737
737
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
738
738
|
// eslint-disable-next-line no-extend-native -- required
|
|
739
739
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
740
|
-
return isCallable$c(this) && getInternalState$
|
|
740
|
+
return isCallable$c(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
741
741
|
}, 'toString');
|
|
742
742
|
|
|
743
743
|
var isCallable$b = isCallable$k;
|
|
@@ -818,19 +818,19 @@ var toLength = toLength$1;
|
|
|
818
818
|
|
|
819
819
|
// `LengthOfArrayLike` abstract operation
|
|
820
820
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
821
|
-
var lengthOfArrayLike$
|
|
821
|
+
var lengthOfArrayLike$5 = function (obj) {
|
|
822
822
|
return toLength(obj.length);
|
|
823
823
|
};
|
|
824
824
|
|
|
825
825
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
826
826
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
827
|
-
var lengthOfArrayLike$
|
|
827
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
828
828
|
|
|
829
829
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
830
|
-
var createMethod = function (IS_INCLUDES) {
|
|
830
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
831
831
|
return function ($this, el, fromIndex) {
|
|
832
832
|
var O = toIndexedObject$3($this);
|
|
833
|
-
var length = lengthOfArrayLike$
|
|
833
|
+
var length = lengthOfArrayLike$4(O);
|
|
834
834
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
835
835
|
var value;
|
|
836
836
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -849,19 +849,19 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
849
849
|
var arrayIncludes = {
|
|
850
850
|
// `Array.prototype.includes` method
|
|
851
851
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
852
|
-
includes: createMethod(true),
|
|
852
|
+
includes: createMethod$1(true),
|
|
853
853
|
// `Array.prototype.indexOf` method
|
|
854
854
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
855
|
-
indexOf: createMethod(false)
|
|
855
|
+
indexOf: createMethod$1(false)
|
|
856
856
|
};
|
|
857
857
|
|
|
858
|
-
var uncurryThis$
|
|
858
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
859
859
|
var hasOwn$4 = hasOwnProperty_1;
|
|
860
860
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
861
|
-
var indexOf = arrayIncludes.indexOf;
|
|
861
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
862
862
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
863
863
|
|
|
864
|
-
var push = uncurryThis$
|
|
864
|
+
var push = uncurryThis$8([].push);
|
|
865
865
|
|
|
866
866
|
var objectKeysInternal = function (object, names) {
|
|
867
867
|
var O = toIndexedObject$2(object);
|
|
@@ -871,7 +871,7 @@ var objectKeysInternal = function (object, names) {
|
|
|
871
871
|
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
872
872
|
// Don't enum bug & hidden keys
|
|
873
873
|
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
874
|
-
~indexOf(result, key) || push(result, key);
|
|
874
|
+
~indexOf$1(result, key) || push(result, key);
|
|
875
875
|
}
|
|
876
876
|
return result;
|
|
877
877
|
};
|
|
@@ -905,16 +905,16 @@ var objectGetOwnPropertySymbols = {};
|
|
|
905
905
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
906
906
|
|
|
907
907
|
var getBuiltIn$5 = getBuiltIn$8;
|
|
908
|
-
var uncurryThis$
|
|
908
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
909
909
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
910
910
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
911
|
-
var anObject$
|
|
911
|
+
var anObject$9 = anObject$b;
|
|
912
912
|
|
|
913
|
-
var concat$1 = uncurryThis$
|
|
913
|
+
var concat$1 = uncurryThis$7([].concat);
|
|
914
914
|
|
|
915
915
|
// all object keys, includes non-enumerable and symbols
|
|
916
916
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
917
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
917
|
+
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
918
918
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
919
919
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
920
920
|
};
|
|
@@ -936,7 +936,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
938
|
|
|
939
|
-
var fails$
|
|
939
|
+
var fails$9 = fails$h;
|
|
940
940
|
var isCallable$a = isCallable$k;
|
|
941
941
|
|
|
942
942
|
var replacement = /#|\.prototype\./;
|
|
@@ -945,7 +945,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
945
945
|
var value = data[normalize(feature)];
|
|
946
946
|
return value == POLYFILL ? true
|
|
947
947
|
: value == NATIVE ? false
|
|
948
|
-
: isCallable$a(detection) ? fails$
|
|
948
|
+
: isCallable$a(detection) ? fails$9(detection)
|
|
949
949
|
: !!detection;
|
|
950
950
|
};
|
|
951
951
|
|
|
@@ -959,7 +959,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
959
959
|
|
|
960
960
|
var isForced_1 = isForced$2;
|
|
961
961
|
|
|
962
|
-
var global$
|
|
962
|
+
var global$d = global$m;
|
|
963
963
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
964
964
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
965
965
|
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
@@ -988,11 +988,11 @@ var _export = function (options, source) {
|
|
|
988
988
|
var STATIC = options.stat;
|
|
989
989
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
990
990
|
if (GLOBAL) {
|
|
991
|
-
target = global$
|
|
991
|
+
target = global$d;
|
|
992
992
|
} else if (STATIC) {
|
|
993
|
-
target = global$
|
|
993
|
+
target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
|
|
994
994
|
} else {
|
|
995
|
-
target = (global$
|
|
995
|
+
target = (global$d[TARGET] || {}).prototype;
|
|
996
996
|
}
|
|
997
997
|
if (target) for (key in source) {
|
|
998
998
|
sourceProperty = source[key];
|
|
@@ -1025,24 +1025,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
1027
|
var DESCRIPTORS$3 = descriptors;
|
|
1028
|
-
var uncurryThis$
|
|
1029
|
-
var call$
|
|
1030
|
-
var fails$
|
|
1028
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1029
|
+
var call$a = functionCall;
|
|
1030
|
+
var fails$8 = fails$h;
|
|
1031
1031
|
var objectKeys$1 = objectKeys$2;
|
|
1032
1032
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1033
1033
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1034
|
-
var toObject$
|
|
1035
|
-
var IndexedObject = indexedObject;
|
|
1034
|
+
var toObject$3 = toObject$5;
|
|
1035
|
+
var IndexedObject$1 = indexedObject;
|
|
1036
1036
|
|
|
1037
1037
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1038
1038
|
var $assign = Object.assign;
|
|
1039
1039
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1040
1040
|
var defineProperty$3 = Object.defineProperty;
|
|
1041
|
-
var concat = uncurryThis$
|
|
1041
|
+
var concat = uncurryThis$6([].concat);
|
|
1042
1042
|
|
|
1043
1043
|
// `Object.assign` method
|
|
1044
1044
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1045
|
-
var objectAssign = !$assign || fails$
|
|
1045
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
1046
1046
|
// should have correct order of operations (Edge bug)
|
|
1047
1047
|
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1048
1048
|
enumerable: true,
|
|
@@ -1063,31 +1063,31 @@ var objectAssign = !$assign || fails$4(function () {
|
|
|
1063
1063
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1064
1064
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1065
1065
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1066
|
-
var T = toObject$
|
|
1066
|
+
var T = toObject$3(target);
|
|
1067
1067
|
var argumentsLength = arguments.length;
|
|
1068
1068
|
var index = 1;
|
|
1069
1069
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1070
1070
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1071
1071
|
while (argumentsLength > index) {
|
|
1072
|
-
var S = IndexedObject(arguments[index++]);
|
|
1072
|
+
var S = IndexedObject$1(arguments[index++]);
|
|
1073
1073
|
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1074
1074
|
var length = keys.length;
|
|
1075
1075
|
var j = 0;
|
|
1076
1076
|
var key;
|
|
1077
1077
|
while (length > j) {
|
|
1078
1078
|
key = keys[j++];
|
|
1079
|
-
if (!DESCRIPTORS$3 || call$
|
|
1079
|
+
if (!DESCRIPTORS$3 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1080
1080
|
}
|
|
1081
1081
|
} return T;
|
|
1082
1082
|
} : $assign;
|
|
1083
1083
|
|
|
1084
|
-
var $$
|
|
1084
|
+
var $$a = _export;
|
|
1085
1085
|
var assign = objectAssign;
|
|
1086
1086
|
|
|
1087
1087
|
// `Object.assign` method
|
|
1088
1088
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1089
1089
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1090
|
-
$$
|
|
1090
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1091
1091
|
assign: assign
|
|
1092
1092
|
});
|
|
1093
1093
|
|
|
@@ -1133,7 +1133,7 @@ var objectDefineProperties = {};
|
|
|
1133
1133
|
var DESCRIPTORS$2 = descriptors;
|
|
1134
1134
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1135
1135
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1136
|
-
var anObject$
|
|
1136
|
+
var anObject$8 = anObject$b;
|
|
1137
1137
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1138
1138
|
var objectKeys = objectKeys$2;
|
|
1139
1139
|
|
|
@@ -1141,7 +1141,7 @@ var objectKeys = objectKeys$2;
|
|
|
1141
1141
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1142
1142
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1143
1143
|
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1144
|
-
anObject$
|
|
1144
|
+
anObject$8(O);
|
|
1145
1145
|
var props = toIndexedObject$1(Properties);
|
|
1146
1146
|
var keys = objectKeys(Properties);
|
|
1147
1147
|
var length = keys.length;
|
|
@@ -1157,7 +1157,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
|
1157
1157
|
|
|
1158
1158
|
/* global ActiveXObject -- old IE, WSH */
|
|
1159
1159
|
|
|
1160
|
-
var anObject$
|
|
1160
|
+
var anObject$7 = anObject$b;
|
|
1161
1161
|
var definePropertiesModule = objectDefineProperties;
|
|
1162
1162
|
var enumBugKeys = enumBugKeys$3;
|
|
1163
1163
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1231,7 +1231,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1231
1231
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1232
1232
|
var result;
|
|
1233
1233
|
if (O !== null) {
|
|
1234
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1234
|
+
EmptyConstructor[PROTOTYPE] = anObject$7(O);
|
|
1235
1235
|
result = new EmptyConstructor();
|
|
1236
1236
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1237
1237
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1241,7 +1241,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1241
1241
|
};
|
|
1242
1242
|
|
|
1243
1243
|
var wellKnownSymbol$d = wellKnownSymbol$f;
|
|
1244
|
-
var create$
|
|
1244
|
+
var create$2 = objectCreate;
|
|
1245
1245
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1246
1246
|
|
|
1247
1247
|
var UNSCOPABLES = wellKnownSymbol$d('unscopables');
|
|
@@ -1252,7 +1252,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1252
1252
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1253
1253
|
defineProperty$2(ArrayPrototype$1, UNSCOPABLES, {
|
|
1254
1254
|
configurable: true,
|
|
1255
|
-
value: create$
|
|
1255
|
+
value: create$2(null)
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
@@ -1263,9 +1263,9 @@ var addToUnscopables$2 = function (key) {
|
|
|
1263
1263
|
|
|
1264
1264
|
var iterators = {};
|
|
1265
1265
|
|
|
1266
|
-
var fails$
|
|
1266
|
+
var fails$7 = fails$h;
|
|
1267
1267
|
|
|
1268
|
-
var correctPrototypeGetter = !fails$
|
|
1268
|
+
var correctPrototypeGetter = !fails$7(function () {
|
|
1269
1269
|
function F() { /* empty */ }
|
|
1270
1270
|
F.prototype.constructor = null;
|
|
1271
1271
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1274,7 +1274,7 @@ var correctPrototypeGetter = !fails$3(function () {
|
|
|
1274
1274
|
|
|
1275
1275
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1276
1276
|
var isCallable$9 = isCallable$k;
|
|
1277
|
-
var toObject$
|
|
1277
|
+
var toObject$2 = toObject$5;
|
|
1278
1278
|
var sharedKey = sharedKey$3;
|
|
1279
1279
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1280
1280
|
|
|
@@ -1286,7 +1286,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1286
1286
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1287
1287
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1288
1288
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1289
|
-
var object = toObject$
|
|
1289
|
+
var object = toObject$2(O);
|
|
1290
1290
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1291
1291
|
var constructor = object.constructor;
|
|
1292
1292
|
if (isCallable$9(constructor) && object instanceof constructor) {
|
|
@@ -1294,7 +1294,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1294
1294
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1295
1295
|
};
|
|
1296
1296
|
|
|
1297
|
-
var fails$
|
|
1297
|
+
var fails$6 = fails$h;
|
|
1298
1298
|
var isCallable$8 = isCallable$k;
|
|
1299
1299
|
var isObject$3 = isObject$9;
|
|
1300
1300
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1319,7 +1319,7 @@ if ([].keys) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1322
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
|
|
1323
1323
|
var test = {};
|
|
1324
1324
|
// FF44- legacy iterators case
|
|
1325
1325
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
|
@@ -1354,7 +1354,7 @@ var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
1356
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1357
|
-
var create = objectCreate;
|
|
1357
|
+
var create$1 = objectCreate;
|
|
1358
1358
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1359
1359
|
var setToStringTag$2 = setToStringTag$3;
|
|
1360
1360
|
var Iterators$4 = iterators;
|
|
@@ -1363,7 +1363,7 @@ var returnThis$1 = function () { return this; };
|
|
|
1363
1363
|
|
|
1364
1364
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1365
1365
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1366
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1366
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1367
1367
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1368
1368
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1369
1369
|
return IteratorConstructor;
|
|
@@ -1371,18 +1371,18 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1371
1371
|
|
|
1372
1372
|
var isCallable$7 = isCallable$k;
|
|
1373
1373
|
|
|
1374
|
-
var $String = String;
|
|
1375
|
-
var $TypeError$
|
|
1374
|
+
var $String$1 = String;
|
|
1375
|
+
var $TypeError$8 = TypeError;
|
|
1376
1376
|
|
|
1377
1377
|
var aPossiblePrototype$1 = function (argument) {
|
|
1378
1378
|
if (typeof argument == 'object' || isCallable$7(argument)) return argument;
|
|
1379
|
-
throw $TypeError$
|
|
1379
|
+
throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1380
1380
|
};
|
|
1381
1381
|
|
|
1382
1382
|
/* eslint-disable no-proto -- safe */
|
|
1383
1383
|
|
|
1384
|
-
var uncurryThis$
|
|
1385
|
-
var anObject$
|
|
1384
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1385
|
+
var anObject$6 = anObject$b;
|
|
1386
1386
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1387
1387
|
|
|
1388
1388
|
// `Object.setPrototypeOf` method
|
|
@@ -1395,12 +1395,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1395
1395
|
var setter;
|
|
1396
1396
|
try {
|
|
1397
1397
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1398
|
-
setter = uncurryThis$
|
|
1398
|
+
setter = uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1399
1399
|
setter(test, []);
|
|
1400
1400
|
CORRECT_SETTER = test instanceof Array;
|
|
1401
1401
|
} catch (error) { /* empty */ }
|
|
1402
1402
|
return function setPrototypeOf(O, proto) {
|
|
1403
|
-
anObject$
|
|
1403
|
+
anObject$6(O);
|
|
1404
1404
|
aPossiblePrototype(proto);
|
|
1405
1405
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1406
1406
|
else O.__proto__ = proto;
|
|
@@ -1408,8 +1408,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1408
1408
|
};
|
|
1409
1409
|
}() : undefined);
|
|
1410
1410
|
|
|
1411
|
-
var $$
|
|
1412
|
-
var call$
|
|
1411
|
+
var $$9 = _export;
|
|
1412
|
+
var call$9 = functionCall;
|
|
1413
1413
|
var FunctionName = functionName;
|
|
1414
1414
|
var isCallable$6 = isCallable$k;
|
|
1415
1415
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1478,7 +1478,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1478
1478
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1479
1479
|
} else {
|
|
1480
1480
|
INCORRECT_VALUES_NAME = true;
|
|
1481
|
-
defaultIterator = function values() { return call$
|
|
1481
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
@@ -1493,7 +1493,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1493
1493
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1494
1494
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1495
1495
|
}
|
|
1496
|
-
} else $$
|
|
1496
|
+
} else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
1499
|
// define iterator
|
|
@@ -1522,7 +1522,7 @@ var DESCRIPTORS$1 = descriptors;
|
|
|
1522
1522
|
|
|
1523
1523
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1524
1524
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1525
|
-
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1525
|
+
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1526
1526
|
|
|
1527
1527
|
// `Array.prototype.entries` method
|
|
1528
1528
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1544,7 +1544,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1544
1544
|
// `%ArrayIteratorPrototype%.next` method
|
|
1545
1545
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1546
1546
|
}, function () {
|
|
1547
|
-
var state = getInternalState(this);
|
|
1547
|
+
var state = getInternalState$1(this);
|
|
1548
1548
|
var target = state.target;
|
|
1549
1549
|
var kind = state.kind;
|
|
1550
1550
|
var index = state.index++;
|
|
@@ -1616,7 +1616,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1616
1616
|
|
|
1617
1617
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1618
1618
|
|
|
1619
|
-
var global$
|
|
1619
|
+
var global$c = global$m;
|
|
1620
1620
|
var DOMIterables = domIterables;
|
|
1621
1621
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1622
1622
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1650,11 +1650,335 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1650
1650
|
};
|
|
1651
1651
|
|
|
1652
1652
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1653
|
-
handlePrototype(global$
|
|
1653
|
+
handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
1656
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1657
1657
|
|
|
1658
|
+
var aCallable$7 = aCallable$9;
|
|
1659
|
+
var toObject$1 = toObject$5;
|
|
1660
|
+
var IndexedObject = indexedObject;
|
|
1661
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1662
|
+
|
|
1663
|
+
var $TypeError$7 = TypeError;
|
|
1664
|
+
|
|
1665
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1666
|
+
var createMethod = function (IS_RIGHT) {
|
|
1667
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
1668
|
+
aCallable$7(callbackfn);
|
|
1669
|
+
var O = toObject$1(that);
|
|
1670
|
+
var self = IndexedObject(O);
|
|
1671
|
+
var length = lengthOfArrayLike$3(O);
|
|
1672
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
1673
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
1674
|
+
if (argumentsLength < 2) while (true) {
|
|
1675
|
+
if (index in self) {
|
|
1676
|
+
memo = self[index];
|
|
1677
|
+
index += i;
|
|
1678
|
+
break;
|
|
1679
|
+
}
|
|
1680
|
+
index += i;
|
|
1681
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1682
|
+
throw $TypeError$7('Reduce of empty array with no initial value');
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
1686
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
1687
|
+
}
|
|
1688
|
+
return memo;
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
var arrayReduce = {
|
|
1693
|
+
// `Array.prototype.reduce` method
|
|
1694
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1695
|
+
left: createMethod(false),
|
|
1696
|
+
// `Array.prototype.reduceRight` method
|
|
1697
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1698
|
+
right: createMethod(true)
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
var fails$5 = fails$h;
|
|
1702
|
+
|
|
1703
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1704
|
+
var method = [][METHOD_NAME];
|
|
1705
|
+
return !!method && fails$5(function () {
|
|
1706
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1707
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
1708
|
+
});
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
var classof$5 = classofRaw$2;
|
|
1712
|
+
var global$b = global$m;
|
|
1713
|
+
|
|
1714
|
+
var engineIsNode = classof$5(global$b.process) == 'process';
|
|
1715
|
+
|
|
1716
|
+
var $$8 = _export;
|
|
1717
|
+
var $reduce = arrayReduce.left;
|
|
1718
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1719
|
+
var CHROME_VERSION = engineV8Version;
|
|
1720
|
+
var IS_NODE$4 = engineIsNode;
|
|
1721
|
+
|
|
1722
|
+
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
1723
|
+
// Chrome 80-82 has a critical bug
|
|
1724
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
1725
|
+
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
1726
|
+
|
|
1727
|
+
// `Array.prototype.reduce` method
|
|
1728
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1729
|
+
$$8({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
1730
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1731
|
+
var length = arguments.length;
|
|
1732
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
var wellKnownSymbol$8 = wellKnownSymbol$f;
|
|
1737
|
+
|
|
1738
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1739
|
+
var test = {};
|
|
1740
|
+
|
|
1741
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1742
|
+
|
|
1743
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1744
|
+
|
|
1745
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1746
|
+
var isCallable$5 = isCallable$k;
|
|
1747
|
+
var classofRaw$1 = classofRaw$2;
|
|
1748
|
+
var wellKnownSymbol$7 = wellKnownSymbol$f;
|
|
1749
|
+
|
|
1750
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1751
|
+
var $Object = Object;
|
|
1752
|
+
|
|
1753
|
+
// ES3 wrong here
|
|
1754
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
1755
|
+
|
|
1756
|
+
// fallback for IE11 Script Access Denied error
|
|
1757
|
+
var tryGet = function (it, key) {
|
|
1758
|
+
try {
|
|
1759
|
+
return it[key];
|
|
1760
|
+
} catch (error) { /* empty */ }
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1764
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1765
|
+
var O, tag, result;
|
|
1766
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1767
|
+
// @@toStringTag case
|
|
1768
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1769
|
+
// builtinTag case
|
|
1770
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1771
|
+
// ES3 arguments fallback
|
|
1772
|
+
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
var classof$3 = classof$4;
|
|
1776
|
+
|
|
1777
|
+
var $String = String;
|
|
1778
|
+
|
|
1779
|
+
var toString$1 = function (argument) {
|
|
1780
|
+
if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1781
|
+
return $String(argument);
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
var anObject$5 = anObject$b;
|
|
1785
|
+
|
|
1786
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1787
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1788
|
+
var regexpFlags$1 = function () {
|
|
1789
|
+
var that = anObject$5(this);
|
|
1790
|
+
var result = '';
|
|
1791
|
+
if (that.hasIndices) result += 'd';
|
|
1792
|
+
if (that.global) result += 'g';
|
|
1793
|
+
if (that.ignoreCase) result += 'i';
|
|
1794
|
+
if (that.multiline) result += 'm';
|
|
1795
|
+
if (that.dotAll) result += 's';
|
|
1796
|
+
if (that.unicode) result += 'u';
|
|
1797
|
+
if (that.unicodeSets) result += 'v';
|
|
1798
|
+
if (that.sticky) result += 'y';
|
|
1799
|
+
return result;
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
var fails$4 = fails$h;
|
|
1803
|
+
var global$a = global$m;
|
|
1804
|
+
|
|
1805
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1806
|
+
var $RegExp$2 = global$a.RegExp;
|
|
1807
|
+
|
|
1808
|
+
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
1809
|
+
var re = $RegExp$2('a', 'y');
|
|
1810
|
+
re.lastIndex = 2;
|
|
1811
|
+
return re.exec('abcd') != null;
|
|
1812
|
+
});
|
|
1813
|
+
|
|
1814
|
+
// UC Browser bug
|
|
1815
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1816
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1817
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1818
|
+
});
|
|
1819
|
+
|
|
1820
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1821
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1822
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1823
|
+
re.lastIndex = 2;
|
|
1824
|
+
return re.exec('str') != null;
|
|
1825
|
+
});
|
|
1826
|
+
|
|
1827
|
+
var regexpStickyHelpers = {
|
|
1828
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1829
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1830
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
var fails$3 = fails$h;
|
|
1834
|
+
var global$9 = global$m;
|
|
1835
|
+
|
|
1836
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1837
|
+
var $RegExp$1 = global$9.RegExp;
|
|
1838
|
+
|
|
1839
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
1840
|
+
var re = $RegExp$1('.', 's');
|
|
1841
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1842
|
+
});
|
|
1843
|
+
|
|
1844
|
+
var fails$2 = fails$h;
|
|
1845
|
+
var global$8 = global$m;
|
|
1846
|
+
|
|
1847
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1848
|
+
var $RegExp = global$8.RegExp;
|
|
1849
|
+
|
|
1850
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
1851
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
1852
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
1853
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
1854
|
+
});
|
|
1855
|
+
|
|
1856
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1857
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1858
|
+
var call$8 = functionCall;
|
|
1859
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1860
|
+
var toString = toString$1;
|
|
1861
|
+
var regexpFlags = regexpFlags$1;
|
|
1862
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1863
|
+
var shared = shared$4.exports;
|
|
1864
|
+
var create = objectCreate;
|
|
1865
|
+
var getInternalState = internalState.get;
|
|
1866
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1867
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1868
|
+
|
|
1869
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1870
|
+
var nativeExec = RegExp.prototype.exec;
|
|
1871
|
+
var patchedExec = nativeExec;
|
|
1872
|
+
var charAt = uncurryThis$4(''.charAt);
|
|
1873
|
+
var indexOf = uncurryThis$4(''.indexOf);
|
|
1874
|
+
var replace = uncurryThis$4(''.replace);
|
|
1875
|
+
var stringSlice = uncurryThis$4(''.slice);
|
|
1876
|
+
|
|
1877
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1878
|
+
var re1 = /a/;
|
|
1879
|
+
var re2 = /b*/g;
|
|
1880
|
+
call$8(nativeExec, re1, 'a');
|
|
1881
|
+
call$8(nativeExec, re2, 'a');
|
|
1882
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1883
|
+
})();
|
|
1884
|
+
|
|
1885
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
1886
|
+
|
|
1887
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1888
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1889
|
+
|
|
1890
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1891
|
+
|
|
1892
|
+
if (PATCH) {
|
|
1893
|
+
patchedExec = function exec(string) {
|
|
1894
|
+
var re = this;
|
|
1895
|
+
var state = getInternalState(re);
|
|
1896
|
+
var str = toString(string);
|
|
1897
|
+
var raw = state.raw;
|
|
1898
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
1899
|
+
|
|
1900
|
+
if (raw) {
|
|
1901
|
+
raw.lastIndex = re.lastIndex;
|
|
1902
|
+
result = call$8(patchedExec, raw, str);
|
|
1903
|
+
re.lastIndex = raw.lastIndex;
|
|
1904
|
+
return result;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
var groups = state.groups;
|
|
1908
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1909
|
+
var flags = call$8(regexpFlags, re);
|
|
1910
|
+
var source = re.source;
|
|
1911
|
+
var charsAdded = 0;
|
|
1912
|
+
var strCopy = str;
|
|
1913
|
+
|
|
1914
|
+
if (sticky) {
|
|
1915
|
+
flags = replace(flags, 'y', '');
|
|
1916
|
+
if (indexOf(flags, 'g') === -1) {
|
|
1917
|
+
flags += 'g';
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
1921
|
+
// Support anchored sticky behavior.
|
|
1922
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
1923
|
+
source = '(?: ' + source + ')';
|
|
1924
|
+
strCopy = ' ' + strCopy;
|
|
1925
|
+
charsAdded++;
|
|
1926
|
+
}
|
|
1927
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
1928
|
+
// simulate the 'y' flag.
|
|
1929
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
if (NPCG_INCLUDED) {
|
|
1933
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
1934
|
+
}
|
|
1935
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1936
|
+
|
|
1937
|
+
match = call$8(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1938
|
+
|
|
1939
|
+
if (sticky) {
|
|
1940
|
+
if (match) {
|
|
1941
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
1942
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
1943
|
+
match.index = re.lastIndex;
|
|
1944
|
+
re.lastIndex += match[0].length;
|
|
1945
|
+
} else re.lastIndex = 0;
|
|
1946
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
1947
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
1948
|
+
}
|
|
1949
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1950
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1951
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1952
|
+
call$8(nativeReplace, match[0], reCopy, function () {
|
|
1953
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
1954
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
1955
|
+
}
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
if (match && groups) {
|
|
1960
|
+
match.groups = object = create(null);
|
|
1961
|
+
for (i = 0; i < groups.length; i++) {
|
|
1962
|
+
group = groups[i];
|
|
1963
|
+
object[group[0]] = match[group[1]];
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
return match;
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
var regexpExec = patchedExec;
|
|
1972
|
+
|
|
1973
|
+
var $$7 = _export;
|
|
1974
|
+
var exec$1 = regexpExec;
|
|
1975
|
+
|
|
1976
|
+
// `RegExp.prototype.exec` method
|
|
1977
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1978
|
+
$$7({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1979
|
+
exec: exec$1
|
|
1980
|
+
});
|
|
1981
|
+
|
|
1658
1982
|
var lodash = {exports: {}};
|
|
1659
1983
|
|
|
1660
1984
|
/**
|
|
@@ -18864,6 +19188,9 @@ const useAddress = ({
|
|
|
18864
19188
|
salesOrder,
|
|
18865
19189
|
shipment
|
|
18866
19190
|
}) => {
|
|
19191
|
+
const {
|
|
19192
|
+
t
|
|
19193
|
+
} = reactI18next.useTranslation();
|
|
18867
19194
|
const {
|
|
18868
19195
|
errors: validateAddressErrors,
|
|
18869
19196
|
trigger: validateAddresses
|
|
@@ -18978,10 +19305,28 @@ const useAddress = ({
|
|
|
18978
19305
|
handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
18979
19306
|
}
|
|
18980
19307
|
}, [addressPreference, handleValidateAddress, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo, shipment === null || shipment === void 0 ? void 0 : shipment.shipTo]);
|
|
19308
|
+
const charsetWarning = react.useMemo(() => Object.keys((addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection) || {}).reduce((warning, key) => {
|
|
19309
|
+
if (warning && warning.error) return warning;
|
|
19310
|
+
const value = addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection[key];
|
|
19311
|
+
if (!value) return warning;
|
|
19312
|
+
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;
|
|
19313
|
+
if (key === "name" || key === "companyName") {
|
|
19314
|
+
return {
|
|
19315
|
+
message: t("charsetWarnings.name.message"),
|
|
19316
|
+
error: false
|
|
19317
|
+
};
|
|
19318
|
+
}
|
|
19319
|
+
return {
|
|
19320
|
+
message: t("charsetWarnings.address.message"),
|
|
19321
|
+
title: t("charsetWarnings.address.title"),
|
|
19322
|
+
error: true
|
|
19323
|
+
};
|
|
19324
|
+
}, undefined), [addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection, t]);
|
|
18981
19325
|
const errors = [...(validateAddressErrors !== null && validateAddressErrors !== void 0 ? validateAddressErrors : []), ...(updateShipmentErrors !== null && updateShipmentErrors !== void 0 ? updateShipmentErrors : []), ...(parseAddressErrors !== null && parseAddressErrors !== void 0 ? parseAddressErrors : [])];
|
|
18982
19326
|
return {
|
|
18983
19327
|
addressErrors: errors.length > 0 ? errors : undefined,
|
|
18984
19328
|
addressPreference,
|
|
19329
|
+
charsetWarning,
|
|
18985
19330
|
handleChangeAddress,
|
|
18986
19331
|
handleParseShipTo
|
|
18987
19332
|
};
|
|
@@ -19055,13 +19400,13 @@ const usePresets = ({
|
|
|
19055
19400
|
};
|
|
19056
19401
|
};
|
|
19057
19402
|
|
|
19058
|
-
var classof$
|
|
19403
|
+
var classof$2 = classofRaw$2;
|
|
19059
19404
|
|
|
19060
19405
|
// `IsArray` abstract operation
|
|
19061
19406
|
// https://tc39.es/ecma262/#sec-isarray
|
|
19062
19407
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
19063
19408
|
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
19064
|
-
return classof$
|
|
19409
|
+
return classof$2(argument) == 'Array';
|
|
19065
19410
|
};
|
|
19066
19411
|
|
|
19067
19412
|
var $TypeError$6 = TypeError;
|
|
@@ -19072,18 +19417,18 @@ var doesNotExceedSafeInteger$1 = function (it) {
|
|
|
19072
19417
|
return it;
|
|
19073
19418
|
};
|
|
19074
19419
|
|
|
19075
|
-
var classofRaw
|
|
19420
|
+
var classofRaw = classofRaw$2;
|
|
19076
19421
|
var uncurryThis$3 = functionUncurryThis;
|
|
19077
19422
|
|
|
19078
19423
|
var functionUncurryThisClause = function (fn) {
|
|
19079
19424
|
// Nashorn bug:
|
|
19080
19425
|
// https://github.com/zloirock/core-js/issues/1128
|
|
19081
19426
|
// https://github.com/zloirock/core-js/issues/1130
|
|
19082
|
-
if (classofRaw
|
|
19427
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
|
|
19083
19428
|
};
|
|
19084
19429
|
|
|
19085
19430
|
var uncurryThis$2 = functionUncurryThisClause;
|
|
19086
|
-
var aCallable$6 = aCallable$
|
|
19431
|
+
var aCallable$6 = aCallable$9;
|
|
19087
19432
|
var NATIVE_BIND$1 = functionBindNative;
|
|
19088
19433
|
|
|
19089
19434
|
var bind$5 = uncurryThis$2(uncurryThis$2.bind);
|
|
@@ -19097,7 +19442,7 @@ var functionBindContext = function (fn, that) {
|
|
|
19097
19442
|
};
|
|
19098
19443
|
|
|
19099
19444
|
var isArray$1 = isArray$2;
|
|
19100
|
-
var lengthOfArrayLike$2 = lengthOfArrayLike$
|
|
19445
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
19101
19446
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
19102
19447
|
var bind$4 = functionBindContext;
|
|
19103
19448
|
|
|
@@ -19130,49 +19475,10 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
19130
19475
|
|
|
19131
19476
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
19132
19477
|
|
|
19133
|
-
var wellKnownSymbol$8 = wellKnownSymbol$f;
|
|
19134
|
-
|
|
19135
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
19136
|
-
var test = {};
|
|
19137
|
-
|
|
19138
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
19139
|
-
|
|
19140
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
19141
|
-
|
|
19142
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
19143
|
-
var isCallable$5 = isCallable$k;
|
|
19144
|
-
var classofRaw = classofRaw$2;
|
|
19145
|
-
var wellKnownSymbol$7 = wellKnownSymbol$f;
|
|
19146
|
-
|
|
19147
|
-
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
19148
|
-
var $Object = Object;
|
|
19149
|
-
|
|
19150
|
-
// ES3 wrong here
|
|
19151
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
19152
|
-
|
|
19153
|
-
// fallback for IE11 Script Access Denied error
|
|
19154
|
-
var tryGet = function (it, key) {
|
|
19155
|
-
try {
|
|
19156
|
-
return it[key];
|
|
19157
|
-
} catch (error) { /* empty */ }
|
|
19158
|
-
};
|
|
19159
|
-
|
|
19160
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
19161
|
-
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
19162
|
-
var O, tag, result;
|
|
19163
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
19164
|
-
// @@toStringTag case
|
|
19165
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
19166
|
-
// builtinTag case
|
|
19167
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
19168
|
-
// ES3 arguments fallback
|
|
19169
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
19170
|
-
};
|
|
19171
|
-
|
|
19172
19478
|
var uncurryThis$1 = functionUncurryThis;
|
|
19173
|
-
var fails$1 = fails$
|
|
19479
|
+
var fails$1 = fails$h;
|
|
19174
19480
|
var isCallable$4 = isCallable$k;
|
|
19175
|
-
var classof$
|
|
19481
|
+
var classof$1 = classof$4;
|
|
19176
19482
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
19177
19483
|
var inspectSource$1 = inspectSource$3;
|
|
19178
19484
|
|
|
@@ -19195,7 +19501,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
19195
19501
|
|
|
19196
19502
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
19197
19503
|
if (!isCallable$4(argument)) return false;
|
|
19198
|
-
switch (classof$
|
|
19504
|
+
switch (classof$1(argument)) {
|
|
19199
19505
|
case 'AsyncFunction':
|
|
19200
19506
|
case 'GeneratorFunction':
|
|
19201
19507
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -19255,9 +19561,9 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
19255
19561
|
|
|
19256
19562
|
var $$6 = _export;
|
|
19257
19563
|
var flattenIntoArray = flattenIntoArray_1;
|
|
19258
|
-
var aCallable$5 = aCallable$
|
|
19259
|
-
var toObject = toObject$
|
|
19260
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$
|
|
19564
|
+
var aCallable$5 = aCallable$9;
|
|
19565
|
+
var toObject = toObject$5;
|
|
19566
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
19261
19567
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
19262
19568
|
|
|
19263
19569
|
// `Array.prototype.flatMap` method
|
|
@@ -19452,6 +19758,7 @@ const useShipmentForm = ({
|
|
|
19452
19758
|
const {
|
|
19453
19759
|
addressErrors,
|
|
19454
19760
|
addressPreference,
|
|
19761
|
+
charsetWarning,
|
|
19455
19762
|
handleChangeAddress,
|
|
19456
19763
|
handleParseShipTo
|
|
19457
19764
|
} = useAddress({
|
|
@@ -19491,6 +19798,7 @@ const useShipmentForm = ({
|
|
|
19491
19798
|
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 : [])];
|
|
19492
19799
|
return {
|
|
19493
19800
|
addressPreference,
|
|
19801
|
+
charsetWarning,
|
|
19494
19802
|
carriers,
|
|
19495
19803
|
customPackageTypes,
|
|
19496
19804
|
errors: errors.length > 0 ? errors : undefined,
|
|
@@ -19543,41 +19851,37 @@ const ConfigureShipment = _a => {
|
|
|
19543
19851
|
resetLabel
|
|
19544
19852
|
} = _b,
|
|
19545
19853
|
rateFormProps = __rest(_b, ["requestRates", "resetRates", "resetLabel"]);
|
|
19546
|
-
const
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19854
|
+
const _c = useShipmentForm({
|
|
19855
|
+
onAddressValidation,
|
|
19856
|
+
onApplyPreset: react.useCallback((_preset, shipment) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19857
|
+
if (shipment.packages[0].weight.value) {
|
|
19858
|
+
yield requestRates(shipment);
|
|
19859
|
+
}
|
|
19860
|
+
}), [requestRates]),
|
|
19861
|
+
onChangeAddress,
|
|
19862
|
+
onShipmentUpdated,
|
|
19863
|
+
onSubmit: react.useCallback(shipment => __awaiter(void 0, void 0, void 0, function* () {
|
|
19550
19864
|
yield requestRates(shipment);
|
|
19551
|
-
}
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
}
|
|
19558
|
-
|
|
19559
|
-
shipment
|
|
19560
|
-
});
|
|
19561
|
-
const [rateFormDisabled, setRateFormDisabled] = react.useState(false);
|
|
19562
|
-
const handleCharsetWarning = react.useCallback(charsetWarning => {
|
|
19563
|
-
if (charsetWarning === null || charsetWarning === void 0 ? void 0 : charsetWarning.error) {
|
|
19564
|
-
setRateFormDisabled(true);
|
|
19565
|
-
} else {
|
|
19566
|
-
setRateFormDisabled(false);
|
|
19567
|
-
}
|
|
19568
|
-
}, []);
|
|
19865
|
+
}), [requestRates]),
|
|
19866
|
+
salesOrder,
|
|
19867
|
+
shipment
|
|
19868
|
+
}),
|
|
19869
|
+
{
|
|
19870
|
+
charsetWarning
|
|
19871
|
+
} = _c,
|
|
19872
|
+
shipmentFormProps = __rest(_c, ["charsetWarning"]);
|
|
19569
19873
|
const handleOnDirty = react.useCallback(() => {
|
|
19570
19874
|
resetRates();
|
|
19571
19875
|
resetLabel();
|
|
19572
19876
|
}, [resetRates, resetLabel]);
|
|
19573
19877
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
19574
19878
|
children: [jsxRuntime.jsx(elementsUi.Templates.ShipmentForm, Object.assign({}, shipmentFormProps, props, {
|
|
19879
|
+
charsetWarning: charsetWarning,
|
|
19575
19880
|
hydrateRef: hydrateRef,
|
|
19576
19881
|
onDirty: handleOnDirty,
|
|
19577
|
-
onCharsetWarning: handleCharsetWarning,
|
|
19578
19882
|
features: features === null || features === void 0 ? void 0 : features.shipmentForm
|
|
19579
19883
|
})), jsxRuntime.jsx(elementsUi.Templates.RateForm, Object.assign({}, rateFormProps, {
|
|
19580
|
-
disabled:
|
|
19884
|
+
disabled: charsetWarning === null || charsetWarning === void 0 ? void 0 : charsetWarning.error,
|
|
19581
19885
|
features: features === null || features === void 0 ? void 0 : features.rateForm,
|
|
19582
19886
|
onSelectRate: resetLabel
|
|
19583
19887
|
}))]
|
|
@@ -19671,11 +19975,6 @@ const useConfigureShipment = ({
|
|
|
19671
19975
|
};
|
|
19672
19976
|
};
|
|
19673
19977
|
|
|
19674
|
-
var classof$1 = classofRaw$2;
|
|
19675
|
-
var global$8 = global$j;
|
|
19676
|
-
|
|
19677
|
-
var engineIsNode = classof$1(global$8.process) == 'process';
|
|
19678
|
-
|
|
19679
19978
|
var getBuiltIn$2 = getBuiltIn$8;
|
|
19680
19979
|
var definePropertyModule = objectDefineProperty;
|
|
19681
19980
|
var wellKnownSymbol$5 = wellKnownSymbol$f;
|
|
@@ -19715,7 +20014,7 @@ var aConstructor$1 = function (argument) {
|
|
|
19715
20014
|
throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
|
|
19716
20015
|
};
|
|
19717
20016
|
|
|
19718
|
-
var anObject$4 = anObject$
|
|
20017
|
+
var anObject$4 = anObject$b;
|
|
19719
20018
|
var aConstructor = aConstructor$1;
|
|
19720
20019
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
19721
20020
|
var wellKnownSymbol$4 = wellKnownSymbol$f;
|
|
@@ -19756,12 +20055,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
19756
20055
|
|
|
19757
20056
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
19758
20057
|
|
|
19759
|
-
var global$7 = global$
|
|
20058
|
+
var global$7 = global$m;
|
|
19760
20059
|
var apply = functionApply;
|
|
19761
20060
|
var bind$3 = functionBindContext;
|
|
19762
20061
|
var isCallable$3 = isCallable$k;
|
|
19763
20062
|
var hasOwn = hasOwnProperty_1;
|
|
19764
|
-
var fails = fails$
|
|
20063
|
+
var fails = fails$h;
|
|
19765
20064
|
var html = html$2;
|
|
19766
20065
|
var arraySlice = arraySlice$1;
|
|
19767
20066
|
var createElement = documentCreateElement$2;
|
|
@@ -19874,7 +20173,7 @@ var task$1 = {
|
|
|
19874
20173
|
};
|
|
19875
20174
|
|
|
19876
20175
|
var userAgent$1 = engineUserAgent;
|
|
19877
|
-
var global$6 = global$
|
|
20176
|
+
var global$6 = global$m;
|
|
19878
20177
|
|
|
19879
20178
|
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
|
|
19880
20179
|
|
|
@@ -19882,7 +20181,7 @@ var userAgent = engineUserAgent;
|
|
|
19882
20181
|
|
|
19883
20182
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
19884
20183
|
|
|
19885
|
-
var global$5 = global$
|
|
20184
|
+
var global$5 = global$m;
|
|
19886
20185
|
var bind$2 = functionBindContext;
|
|
19887
20186
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
19888
20187
|
var macrotask = task$1.set;
|
|
@@ -19968,7 +20267,7 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
19968
20267
|
} last = task;
|
|
19969
20268
|
};
|
|
19970
20269
|
|
|
19971
|
-
var global$4 = global$
|
|
20270
|
+
var global$4 = global$m;
|
|
19972
20271
|
|
|
19973
20272
|
var hostReportErrors$1 = function (a, b) {
|
|
19974
20273
|
var console = global$4.console;
|
|
@@ -20009,7 +20308,7 @@ Queue$1.prototype = {
|
|
|
20009
20308
|
|
|
20010
20309
|
var queue = Queue$1;
|
|
20011
20310
|
|
|
20012
|
-
var global$3 = global$
|
|
20311
|
+
var global$3 = global$m;
|
|
20013
20312
|
|
|
20014
20313
|
var promiseNativeConstructor = global$3.Promise;
|
|
20015
20314
|
|
|
@@ -20024,7 +20323,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
20024
20323
|
&& typeof window == 'object'
|
|
20025
20324
|
&& typeof document == 'object';
|
|
20026
20325
|
|
|
20027
|
-
var global$2 = global$
|
|
20326
|
+
var global$2 = global$m;
|
|
20028
20327
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
20029
20328
|
var isCallable$2 = isCallable$k;
|
|
20030
20329
|
var isForced = isForced_1;
|
|
@@ -20071,7 +20370,7 @@ var promiseConstructorDetection = {
|
|
|
20071
20370
|
|
|
20072
20371
|
var newPromiseCapability$2 = {};
|
|
20073
20372
|
|
|
20074
|
-
var aCallable$4 = aCallable$
|
|
20373
|
+
var aCallable$4 = aCallable$9;
|
|
20075
20374
|
|
|
20076
20375
|
var $TypeError$2 = TypeError;
|
|
20077
20376
|
|
|
@@ -20094,13 +20393,13 @@ newPromiseCapability$2.f = function (C) {
|
|
|
20094
20393
|
|
|
20095
20394
|
var $$5 = _export;
|
|
20096
20395
|
var IS_NODE = engineIsNode;
|
|
20097
|
-
var global$1 = global$
|
|
20396
|
+
var global$1 = global$m;
|
|
20098
20397
|
var call$6 = functionCall;
|
|
20099
20398
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
20100
20399
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
20101
20400
|
var setToStringTag = setToStringTag$3;
|
|
20102
20401
|
var setSpecies = setSpecies$1;
|
|
20103
|
-
var aCallable$3 = aCallable$
|
|
20402
|
+
var aCallable$3 = aCallable$9;
|
|
20104
20403
|
var isCallable$1 = isCallable$k;
|
|
20105
20404
|
var isObject$1 = isObject$9;
|
|
20106
20405
|
var anInstance = anInstance$1;
|
|
@@ -20390,7 +20689,7 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
20390
20689
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
20391
20690
|
};
|
|
20392
20691
|
|
|
20393
|
-
var classof = classof$
|
|
20692
|
+
var classof = classof$4;
|
|
20394
20693
|
var getMethod$1 = getMethod$3;
|
|
20395
20694
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
20396
20695
|
var Iterators = iterators;
|
|
@@ -20405,8 +20704,8 @@ var getIteratorMethod$2 = function (it) {
|
|
|
20405
20704
|
};
|
|
20406
20705
|
|
|
20407
20706
|
var call$5 = functionCall;
|
|
20408
|
-
var aCallable$2 = aCallable$
|
|
20409
|
-
var anObject$3 = anObject$
|
|
20707
|
+
var aCallable$2 = aCallable$9;
|
|
20708
|
+
var anObject$3 = anObject$b;
|
|
20410
20709
|
var tryToString$1 = tryToString$4;
|
|
20411
20710
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
20412
20711
|
|
|
@@ -20419,7 +20718,7 @@ var getIterator$1 = function (argument, usingIterator) {
|
|
|
20419
20718
|
};
|
|
20420
20719
|
|
|
20421
20720
|
var call$4 = functionCall;
|
|
20422
|
-
var anObject$2 = anObject$
|
|
20721
|
+
var anObject$2 = anObject$b;
|
|
20423
20722
|
var getMethod = getMethod$3;
|
|
20424
20723
|
|
|
20425
20724
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
@@ -20444,10 +20743,10 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
20444
20743
|
|
|
20445
20744
|
var bind = functionBindContext;
|
|
20446
20745
|
var call$3 = functionCall;
|
|
20447
|
-
var anObject$1 = anObject$
|
|
20746
|
+
var anObject$1 = anObject$b;
|
|
20448
20747
|
var tryToString = tryToString$4;
|
|
20449
20748
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
20450
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
20749
|
+
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
20451
20750
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
20452
20751
|
var getIterator = getIterator$1;
|
|
20453
20752
|
var getIteratorMethod = getIteratorMethod$2;
|
|
@@ -20560,7 +20859,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
20560
20859
|
|
|
20561
20860
|
var $$4 = _export;
|
|
20562
20861
|
var call$2 = functionCall;
|
|
20563
|
-
var aCallable$1 = aCallable$
|
|
20862
|
+
var aCallable$1 = aCallable$9;
|
|
20564
20863
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
20565
20864
|
var perform$1 = perform$3;
|
|
20566
20865
|
var iterate$1 = iterate$2;
|
|
@@ -20624,7 +20923,7 @@ if (isCallable(NativePromiseConstructor)) {
|
|
|
20624
20923
|
|
|
20625
20924
|
var $$2 = _export;
|
|
20626
20925
|
var call$1 = functionCall;
|
|
20627
|
-
var aCallable = aCallable$
|
|
20926
|
+
var aCallable = aCallable$9;
|
|
20628
20927
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
20629
20928
|
var perform = perform$3;
|
|
20630
20929
|
var iterate = iterate$2;
|
|
@@ -20663,7 +20962,7 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
20663
20962
|
}
|
|
20664
20963
|
});
|
|
20665
20964
|
|
|
20666
|
-
var anObject = anObject$
|
|
20965
|
+
var anObject = anObject$b;
|
|
20667
20966
|
var isObject = isObject$9;
|
|
20668
20967
|
var newPromiseCapability = newPromiseCapability$2;
|
|
20669
20968
|
|
|
@@ -20779,6 +21078,7 @@ const SalesOrder = _a => {
|
|
|
20779
21078
|
const Element$2 = elementsCore.registerElement("purchase-label", SalesOrder, ["externalOrderId", "externalOrderNumber", "salesOrderId"]);
|
|
20780
21079
|
|
|
20781
21080
|
const Shipment = ({
|
|
21081
|
+
features,
|
|
20782
21082
|
onClickPrintLabel,
|
|
20783
21083
|
onClickPurchaseLabel,
|
|
20784
21084
|
onClickVoidLabel,
|
|
@@ -20811,6 +21111,7 @@ const Shipment = ({
|
|
|
20811
21111
|
const salesOrder = (_c = salesOrders.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
20812
21112
|
return jsxRuntime.jsx(elementsUi.Templates.Shipment, {
|
|
20813
21113
|
carriers: carriers.data,
|
|
21114
|
+
features: features === null || features === void 0 ? void 0 : features.shipment,
|
|
20814
21115
|
labels: labels.data,
|
|
20815
21116
|
onClickPurchaseLabel: onClickPurchaseLabel,
|
|
20816
21117
|
onClickPrintLabel: onClickPrintLabel,
|