@leapdev/auth-agent 2.0.7-beta.4 → 2.0.8-beta.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/package.json +1 -1
- package/src/index.umd.js +238 -259
- package/src/lib/authentication.js +4 -5
- package/src/lib/authentication.js.map +1 -1
- package/src/lib/utils.d.ts +1 -1
- package/src/lib/utils.js +5 -5
- package/src/lib/utils.js.map +1 -1
package/src/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
var objectGetOwnPropertyDescriptor = {};
|
|
29
29
|
|
|
30
|
-
var fails$
|
|
30
|
+
var fails$q = function (exec) {
|
|
31
31
|
try {
|
|
32
32
|
return !!exec();
|
|
33
33
|
} catch (error) {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
var fails$
|
|
38
|
+
var fails$p = fails$q;
|
|
39
39
|
|
|
40
40
|
// Detect IE8's incomplete defineProperty implementation
|
|
41
|
-
var descriptors = !fails$
|
|
41
|
+
var descriptors = !fails$p(function () {
|
|
42
42
|
// eslint-disable-next-line es-x/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$o = fails$q;
|
|
47
47
|
|
|
48
|
-
var functionBindNative = !fails$
|
|
48
|
+
var functionBindNative = !fails$o(function () {
|
|
49
49
|
// eslint-disable-next-line es-x/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 @@
|
|
|
54
54
|
|
|
55
55
|
var NATIVE_BIND$3 = functionBindNative;
|
|
56
56
|
|
|
57
|
-
var call$
|
|
57
|
+
var call$n = Function.prototype.call;
|
|
58
58
|
|
|
59
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
60
|
-
return call$
|
|
59
|
+
var functionCall = NATIVE_BIND$3 ? call$n.bind(call$n) : function () {
|
|
60
|
+
return call$n.apply(call$n, arguments);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var objectPropertyIsEnumerable = {};
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
|
|
90
90
|
var FunctionPrototype$2 = Function.prototype;
|
|
91
91
|
var bind$8 = FunctionPrototype$2.bind;
|
|
92
|
-
var call$
|
|
93
|
-
var uncurryThis$r = NATIVE_BIND$2 && bind$8.bind(call$
|
|
92
|
+
var call$m = FunctionPrototype$2.call;
|
|
93
|
+
var uncurryThis$r = NATIVE_BIND$2 && bind$8.bind(call$m, call$m);
|
|
94
94
|
|
|
95
95
|
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
96
96
|
return fn && uncurryThis$r(fn);
|
|
97
97
|
} : function (fn) {
|
|
98
98
|
return fn && function () {
|
|
99
|
-
return call$
|
|
99
|
+
return call$m.apply(fn, arguments);
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
|
|
112
112
|
var global$U = global$V;
|
|
113
113
|
var uncurryThis$p = functionUncurryThis;
|
|
114
|
-
var fails$
|
|
114
|
+
var fails$n = fails$q;
|
|
115
115
|
var classof$b = classofRaw$1;
|
|
116
116
|
|
|
117
117
|
var Object$5 = global$U.Object;
|
|
118
118
|
var split$1 = uncurryThis$p(''.split);
|
|
119
119
|
|
|
120
120
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
121
|
-
var indexedObject = fails$
|
|
121
|
+
var indexedObject = fails$n(function () {
|
|
122
122
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
123
123
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
124
124
|
return !Object$5('z').propertyIsEnumerable(0);
|
|
@@ -207,10 +207,10 @@
|
|
|
207
207
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
208
208
|
|
|
209
209
|
var V8_VERSION$1 = engineV8Version;
|
|
210
|
-
var fails$
|
|
210
|
+
var fails$m = fails$q;
|
|
211
211
|
|
|
212
212
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
213
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
213
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$m(function () {
|
|
214
214
|
var symbol = Symbol();
|
|
215
215
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
216
216
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
var global$Q = global$V;
|
|
231
231
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
232
232
|
var isCallable$m = isCallable$p;
|
|
233
|
-
var isPrototypeOf$
|
|
233
|
+
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
234
234
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
235
235
|
|
|
236
236
|
var Object$4 = global$Q.Object;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
return typeof it == 'symbol';
|
|
240
240
|
} : function (it) {
|
|
241
241
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
242
|
-
return isCallable$m($Symbol) && isPrototypeOf$
|
|
242
|
+
return isCallable$m($Symbol) && isPrototypeOf$4($Symbol.prototype, Object$4(it));
|
|
243
243
|
};
|
|
244
244
|
|
|
245
245
|
var global$P = global$V;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
var global$N = global$V;
|
|
279
|
-
var call$
|
|
279
|
+
var call$l = functionCall;
|
|
280
280
|
var isCallable$k = isCallable$p;
|
|
281
281
|
var isObject$d = isObject$e;
|
|
282
282
|
|
|
@@ -286,9 +286,9 @@
|
|
|
286
286
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
287
287
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
288
288
|
var fn, val;
|
|
289
|
-
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$d(val = call$
|
|
290
|
-
if (isCallable$k(fn = input.valueOf) && !isObject$d(val = call$
|
|
291
|
-
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$d(val = call$
|
|
289
|
+
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$d(val = call$l(fn, input))) return val;
|
|
290
|
+
if (isCallable$k(fn = input.valueOf) && !isObject$d(val = call$l(fn, input))) return val;
|
|
291
|
+
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$d(val = call$l(fn, input))) return val;
|
|
292
292
|
throw TypeError$g("Can't convert object to primitive value");
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
|
|
365
365
|
var global$J = global$V;
|
|
366
366
|
var shared$3 = shared$4.exports;
|
|
367
|
-
var hasOwn$
|
|
367
|
+
var hasOwn$c = hasOwnProperty_1;
|
|
368
368
|
var uid$2 = uid$3;
|
|
369
369
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
370
370
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
@@ -375,9 +375,9 @@
|
|
|
375
375
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2;
|
|
376
376
|
|
|
377
377
|
var wellKnownSymbol$m = function (name) {
|
|
378
|
-
if (!hasOwn$
|
|
378
|
+
if (!hasOwn$c(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
379
379
|
var description = 'Symbol.' + name;
|
|
380
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
380
|
+
if (NATIVE_SYMBOL && hasOwn$c(Symbol$1, name)) {
|
|
381
381
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
382
382
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
383
383
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
};
|
|
389
389
|
|
|
390
390
|
var global$I = global$V;
|
|
391
|
-
var call$
|
|
391
|
+
var call$k = functionCall;
|
|
392
392
|
var isObject$c = isObject$e;
|
|
393
393
|
var isSymbol$2 = isSymbol$3;
|
|
394
394
|
var getMethod$5 = getMethod$6;
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
var result;
|
|
407
407
|
if (exoticToPrim) {
|
|
408
408
|
if (pref === undefined) pref = 'default';
|
|
409
|
-
result = call$
|
|
409
|
+
result = call$k(exoticToPrim, input, pref);
|
|
410
410
|
if (!isObject$c(result) || isSymbol$2(result)) return result;
|
|
411
411
|
throw TypeError$f("Can't convert object to primitive value");
|
|
412
412
|
}
|
|
@@ -436,11 +436,11 @@
|
|
|
436
436
|
};
|
|
437
437
|
|
|
438
438
|
var DESCRIPTORS$e = descriptors;
|
|
439
|
-
var fails$
|
|
439
|
+
var fails$l = fails$q;
|
|
440
440
|
var createElement$1 = documentCreateElement$2;
|
|
441
441
|
|
|
442
442
|
// Thanks to IE8 for its funny defineProperty
|
|
443
|
-
var ie8DomDefine = !DESCRIPTORS$e && !fails$
|
|
443
|
+
var ie8DomDefine = !DESCRIPTORS$e && !fails$l(function () {
|
|
444
444
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
445
445
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
446
446
|
get: function () { return 7; }
|
|
@@ -448,12 +448,12 @@
|
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
var DESCRIPTORS$d = descriptors;
|
|
451
|
-
var call$
|
|
451
|
+
var call$j = functionCall;
|
|
452
452
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
453
453
|
var createPropertyDescriptor$5 = createPropertyDescriptor$6;
|
|
454
454
|
var toIndexedObject$5 = toIndexedObject$6;
|
|
455
455
|
var toPropertyKey$3 = toPropertyKey$4;
|
|
456
|
-
var hasOwn$
|
|
456
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
457
457
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
458
458
|
|
|
459
459
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -467,17 +467,17 @@
|
|
|
467
467
|
if (IE8_DOM_DEFINE$1) try {
|
|
468
468
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
469
469
|
} catch (error) { /* empty */ }
|
|
470
|
-
if (hasOwn$
|
|
470
|
+
if (hasOwn$b(O, P)) return createPropertyDescriptor$5(!call$j(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
471
471
|
};
|
|
472
472
|
|
|
473
473
|
var objectDefineProperty = {};
|
|
474
474
|
|
|
475
475
|
var DESCRIPTORS$c = descriptors;
|
|
476
|
-
var fails$
|
|
476
|
+
var fails$k = fails$q;
|
|
477
477
|
|
|
478
478
|
// V8 ~ Chrome 36-
|
|
479
479
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
480
|
-
var v8PrototypeDefineBug = DESCRIPTORS$c && fails$
|
|
480
|
+
var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () {
|
|
481
481
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
482
482
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
483
483
|
value: 42,
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
var TypeError$e = global$G.TypeError;
|
|
493
493
|
|
|
494
494
|
// `Assert: Type(argument) is Object`
|
|
495
|
-
var anObject$
|
|
495
|
+
var anObject$h = function (argument) {
|
|
496
496
|
if (isObject$a(argument)) return argument;
|
|
497
497
|
throw TypeError$e(String$4(argument) + ' is not an object');
|
|
498
498
|
};
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
var DESCRIPTORS$b = descriptors;
|
|
502
502
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
503
503
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
504
|
-
var anObject$
|
|
504
|
+
var anObject$g = anObject$h;
|
|
505
505
|
var toPropertyKey$2 = toPropertyKey$4;
|
|
506
506
|
|
|
507
507
|
var TypeError$d = global$F.TypeError;
|
|
@@ -516,9 +516,9 @@
|
|
|
516
516
|
// `Object.defineProperty` method
|
|
517
517
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
518
518
|
objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
519
|
-
anObject$
|
|
519
|
+
anObject$g(O);
|
|
520
520
|
P = toPropertyKey$2(P);
|
|
521
|
-
anObject$
|
|
521
|
+
anObject$g(Attributes);
|
|
522
522
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
523
523
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
524
524
|
if (current && current[WRITABLE]) {
|
|
@@ -531,9 +531,9 @@
|
|
|
531
531
|
}
|
|
532
532
|
} return $defineProperty(O, P, Attributes);
|
|
533
533
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
534
|
-
anObject$
|
|
534
|
+
anObject$g(O);
|
|
535
535
|
P = toPropertyKey$2(P);
|
|
536
|
-
anObject$
|
|
536
|
+
anObject$g(Attributes);
|
|
537
537
|
if (IE8_DOM_DEFINE) try {
|
|
538
538
|
return $defineProperty(O, P, Attributes);
|
|
539
539
|
} catch (error) { /* empty */ }
|
|
@@ -556,13 +556,13 @@
|
|
|
556
556
|
var makeBuiltIn$2 = {exports: {}};
|
|
557
557
|
|
|
558
558
|
var DESCRIPTORS$9 = descriptors;
|
|
559
|
-
var hasOwn$
|
|
559
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
560
560
|
|
|
561
561
|
var FunctionPrototype$1 = Function.prototype;
|
|
562
562
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
563
563
|
var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
|
|
564
564
|
|
|
565
|
-
var EXISTS = hasOwn$
|
|
565
|
+
var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
|
|
566
566
|
// additional protection from minified / mangled / dropped function names
|
|
567
567
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
568
568
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
var uncurryThis$k = functionUncurryThis;
|
|
613
613
|
var isObject$9 = isObject$e;
|
|
614
614
|
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
615
|
-
var hasOwn$
|
|
615
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
616
616
|
var shared$1 = sharedStore;
|
|
617
617
|
var sharedKey$2 = sharedKey$3;
|
|
618
618
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -656,16 +656,16 @@
|
|
|
656
656
|
var STATE = sharedKey$2('state');
|
|
657
657
|
hiddenKeys$3[STATE] = true;
|
|
658
658
|
set$2 = function (it, metadata) {
|
|
659
|
-
if (hasOwn$
|
|
659
|
+
if (hasOwn$9(it, STATE)) throw new TypeError$c(OBJECT_ALREADY_INITIALIZED);
|
|
660
660
|
metadata.facade = it;
|
|
661
661
|
createNonEnumerableProperty$8(it, STATE, metadata);
|
|
662
662
|
return metadata;
|
|
663
663
|
};
|
|
664
664
|
get$1 = function (it) {
|
|
665
|
-
return hasOwn$
|
|
665
|
+
return hasOwn$9(it, STATE) ? it[STATE] : {};
|
|
666
666
|
};
|
|
667
667
|
has = function (it) {
|
|
668
|
-
return hasOwn$
|
|
668
|
+
return hasOwn$9(it, STATE);
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
|
|
@@ -677,9 +677,9 @@
|
|
|
677
677
|
getterFor: getterFor
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
var fails$
|
|
680
|
+
var fails$j = fails$q;
|
|
681
681
|
var isCallable$h = isCallable$p;
|
|
682
|
-
var hasOwn$
|
|
682
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
683
683
|
var DESCRIPTORS$8 = descriptors;
|
|
684
684
|
var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE;
|
|
685
685
|
var inspectSource$2 = inspectSource$4;
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
691
691
|
var defineProperty$6 = Object.defineProperty;
|
|
692
692
|
|
|
693
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$
|
|
693
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$j(function () {
|
|
694
694
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
695
695
|
});
|
|
696
696
|
|
|
@@ -702,19 +702,19 @@
|
|
|
702
702
|
}
|
|
703
703
|
if (options && options.getter) name = 'get ' + name;
|
|
704
704
|
if (options && options.setter) name = 'set ' + name;
|
|
705
|
-
if (!hasOwn$
|
|
705
|
+
if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) {
|
|
706
706
|
defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
707
707
|
}
|
|
708
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
708
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
|
|
709
709
|
defineProperty$6(value, 'length', { value: options.arity });
|
|
710
710
|
}
|
|
711
|
-
if (options && hasOwn$
|
|
711
|
+
if (options && hasOwn$8(options, 'constructor') && options.constructor) {
|
|
712
712
|
if (DESCRIPTORS$8) try {
|
|
713
713
|
defineProperty$6(value, 'prototype', { writable: false });
|
|
714
714
|
} catch (error) { /* empty */ }
|
|
715
715
|
} else value.prototype = undefined;
|
|
716
716
|
var state = enforceInternalState(value);
|
|
717
|
-
if (!hasOwn$
|
|
717
|
+
if (!hasOwn$8(state, 'source')) {
|
|
718
718
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
719
719
|
} return value;
|
|
720
720
|
};
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
731
731
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
732
732
|
|
|
733
|
-
var defineBuiltIn$
|
|
733
|
+
var defineBuiltIn$9 = function (O, key, value, options) {
|
|
734
734
|
if (!options) options = {};
|
|
735
735
|
var simple = options.enumerable;
|
|
736
736
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
};
|
|
835
835
|
|
|
836
836
|
var uncurryThis$j = functionUncurryThis;
|
|
837
|
-
var hasOwn$
|
|
837
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
838
838
|
var toIndexedObject$3 = toIndexedObject$6;
|
|
839
839
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
840
840
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -846,9 +846,9 @@
|
|
|
846
846
|
var i = 0;
|
|
847
847
|
var result = [];
|
|
848
848
|
var key;
|
|
849
|
-
for (key in O) !hasOwn$
|
|
849
|
+
for (key in O) !hasOwn$7(hiddenKeys$2, key) && hasOwn$7(O, key) && push$4(result, key);
|
|
850
850
|
// Don't enum bug & hidden keys
|
|
851
|
-
while (names.length > i) if (hasOwn$
|
|
851
|
+
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
852
852
|
~indexOf$1(result, key) || push$4(result, key);
|
|
853
853
|
}
|
|
854
854
|
return result;
|
|
@@ -886,18 +886,18 @@
|
|
|
886
886
|
var uncurryThis$i = functionUncurryThis;
|
|
887
887
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
888
888
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
889
|
-
var anObject$
|
|
889
|
+
var anObject$f = anObject$h;
|
|
890
890
|
|
|
891
891
|
var concat$2 = uncurryThis$i([].concat);
|
|
892
892
|
|
|
893
893
|
// all object keys, includes non-enumerable and symbols
|
|
894
894
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
895
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
895
|
+
var keys = getOwnPropertyNamesModule.f(anObject$f(it));
|
|
896
896
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
897
897
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
898
898
|
};
|
|
899
899
|
|
|
900
|
-
var hasOwn$
|
|
900
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
901
901
|
var ownKeys = ownKeys$1;
|
|
902
902
|
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
|
903
903
|
var definePropertyModule$4 = objectDefineProperty;
|
|
@@ -908,13 +908,13 @@
|
|
|
908
908
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
|
909
909
|
for (var i = 0; i < keys.length; i++) {
|
|
910
910
|
var key = keys[i];
|
|
911
|
-
if (!hasOwn$
|
|
911
|
+
if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
|
|
912
912
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
916
|
|
|
917
|
-
var fails$
|
|
917
|
+
var fails$i = fails$q;
|
|
918
918
|
var isCallable$f = isCallable$p;
|
|
919
919
|
|
|
920
920
|
var replacement = /#|\.prototype\./;
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
var value = data[normalize(feature)];
|
|
924
924
|
return value == POLYFILL ? true
|
|
925
925
|
: value == NATIVE ? false
|
|
926
|
-
: isCallable$f(detection) ? fails$
|
|
926
|
+
: isCallable$f(detection) ? fails$i(detection)
|
|
927
927
|
: !!detection;
|
|
928
928
|
};
|
|
929
929
|
|
|
@@ -940,7 +940,7 @@
|
|
|
940
940
|
var global$C = global$V;
|
|
941
941
|
var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
|
|
942
942
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$9;
|
|
943
|
-
var defineBuiltIn$
|
|
943
|
+
var defineBuiltIn$8 = defineBuiltIn$9;
|
|
944
944
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
945
945
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
946
946
|
var isForced$1 = isForced_1;
|
|
@@ -988,7 +988,7 @@
|
|
|
988
988
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
989
989
|
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
990
990
|
}
|
|
991
|
-
defineBuiltIn$
|
|
991
|
+
defineBuiltIn$8(target, key, sourceProperty, options);
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
994
|
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
/* eslint-disable no-proto -- safe */
|
|
1012
1012
|
|
|
1013
1013
|
var uncurryThis$h = functionUncurryThis;
|
|
1014
|
-
var anObject$
|
|
1014
|
+
var anObject$e = anObject$h;
|
|
1015
1015
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1016
1016
|
|
|
1017
1017
|
// `Object.setPrototypeOf` method
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
CORRECT_SETTER = test instanceof Array;
|
|
1030
1030
|
} catch (error) { /* empty */ }
|
|
1031
1031
|
return function setPrototypeOf(O, proto) {
|
|
1032
|
-
anObject$
|
|
1032
|
+
anObject$e(O);
|
|
1033
1033
|
aPossiblePrototype(proto);
|
|
1034
1034
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1035
1035
|
else O.__proto__ = proto;
|
|
@@ -1038,14 +1038,14 @@
|
|
|
1038
1038
|
}() : undefined);
|
|
1039
1039
|
|
|
1040
1040
|
var defineProperty$5 = objectDefineProperty.f;
|
|
1041
|
-
var hasOwn$
|
|
1041
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1042
1042
|
var wellKnownSymbol$k = wellKnownSymbol$m;
|
|
1043
1043
|
|
|
1044
1044
|
var TO_STRING_TAG$4 = wellKnownSymbol$k('toStringTag');
|
|
1045
1045
|
|
|
1046
1046
|
var setToStringTag$5 = function (target, TAG, STATIC) {
|
|
1047
1047
|
if (target && !STATIC) target = target.prototype;
|
|
1048
|
-
if (target && !hasOwn$
|
|
1048
|
+
if (target && !hasOwn$5(target, TO_STRING_TAG$4)) {
|
|
1049
1049
|
defineProperty$5(target, TO_STRING_TAG$4, { configurable: true, value: TAG });
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
@@ -1070,12 +1070,12 @@
|
|
|
1070
1070
|
};
|
|
1071
1071
|
|
|
1072
1072
|
var global$z = global$V;
|
|
1073
|
-
var isPrototypeOf$
|
|
1073
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
1074
1074
|
|
|
1075
1075
|
var TypeError$a = global$z.TypeError;
|
|
1076
1076
|
|
|
1077
1077
|
var anInstance$4 = function (it, Prototype) {
|
|
1078
|
-
if (isPrototypeOf$
|
|
1078
|
+
if (isPrototypeOf$3(Prototype, it)) return it;
|
|
1079
1079
|
throw TypeError$a('Incorrect invocation');
|
|
1080
1080
|
};
|
|
1081
1081
|
|
|
@@ -1120,7 +1120,7 @@
|
|
|
1120
1120
|
};
|
|
1121
1121
|
|
|
1122
1122
|
var uncurryThis$g = functionUncurryThis;
|
|
1123
|
-
var fails$
|
|
1123
|
+
var fails$h = fails$q;
|
|
1124
1124
|
var isCallable$c = isCallable$p;
|
|
1125
1125
|
var classof$8 = classof$9;
|
|
1126
1126
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
|
|
1165
1165
|
// `IsConstructor` abstract operation
|
|
1166
1166
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1167
|
-
var isConstructor$2 = !construct || fails$
|
|
1167
|
+
var isConstructor$2 = !construct || fails$h(function () {
|
|
1168
1168
|
var called;
|
|
1169
1169
|
return isConstructorModern(isConstructorModern.call)
|
|
1170
1170
|
|| !isConstructorModern(Object)
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
throw TypeError$9(tryToString$3(argument) + ' is not a constructor');
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
|
-
var anObject$
|
|
1187
|
+
var anObject$d = anObject$h;
|
|
1188
1188
|
var aConstructor$1 = aConstructor$2;
|
|
1189
1189
|
var wellKnownSymbol$g = wellKnownSymbol$m;
|
|
1190
1190
|
|
|
@@ -1193,20 +1193,20 @@
|
|
|
1193
1193
|
// `SpeciesConstructor` abstract operation
|
|
1194
1194
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1195
1195
|
var speciesConstructor$3 = function (O, defaultConstructor) {
|
|
1196
|
-
var C = anObject$
|
|
1196
|
+
var C = anObject$d(O).constructor;
|
|
1197
1197
|
var S;
|
|
1198
|
-
return C === undefined || (S = anObject$
|
|
1198
|
+
return C === undefined || (S = anObject$d(C)[SPECIES$3]) == undefined ? defaultConstructor : aConstructor$1(S);
|
|
1199
1199
|
};
|
|
1200
1200
|
|
|
1201
1201
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1202
1202
|
|
|
1203
1203
|
var FunctionPrototype = Function.prototype;
|
|
1204
1204
|
var apply$4 = FunctionPrototype.apply;
|
|
1205
|
-
var call$
|
|
1205
|
+
var call$i = FunctionPrototype.call;
|
|
1206
1206
|
|
|
1207
1207
|
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
1208
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1209
|
-
return call$
|
|
1208
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$i.bind(apply$4) : function () {
|
|
1209
|
+
return call$i.apply(apply$4, arguments);
|
|
1210
1210
|
});
|
|
1211
1211
|
|
|
1212
1212
|
var uncurryThis$f = functionUncurryThis;
|
|
@@ -1248,8 +1248,8 @@
|
|
|
1248
1248
|
var apply$3 = functionApply;
|
|
1249
1249
|
var bind$6 = functionBindContext;
|
|
1250
1250
|
var isCallable$b = isCallable$p;
|
|
1251
|
-
var hasOwn$
|
|
1252
|
-
var fails$
|
|
1251
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1252
|
+
var fails$g = fails$q;
|
|
1253
1253
|
var html$1 = html$2;
|
|
1254
1254
|
var arraySlice$4 = arraySlice$5;
|
|
1255
1255
|
var createElement = documentCreateElement$2;
|
|
@@ -1275,7 +1275,7 @@
|
|
|
1275
1275
|
} catch (error) { /* empty */ }
|
|
1276
1276
|
|
|
1277
1277
|
var run = function (id) {
|
|
1278
|
-
if (hasOwn$
|
|
1278
|
+
if (hasOwn$4(queue$1, id)) {
|
|
1279
1279
|
var fn = queue$1[id];
|
|
1280
1280
|
delete queue$1[id];
|
|
1281
1281
|
fn();
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
isCallable$b(global$v.postMessage) &&
|
|
1337
1337
|
!global$v.importScripts &&
|
|
1338
1338
|
location && location.protocol !== 'file:' &&
|
|
1339
|
-
!fails$
|
|
1339
|
+
!fails$g(post)
|
|
1340
1340
|
) {
|
|
1341
1341
|
defer = post;
|
|
1342
1342
|
global$v.addEventListener('message', listener, false);
|
|
@@ -1571,8 +1571,8 @@
|
|
|
1571
1571
|
var $$d = _export;
|
|
1572
1572
|
var IS_NODE = engineIsNode;
|
|
1573
1573
|
var global$p = global$V;
|
|
1574
|
-
var call$
|
|
1575
|
-
var defineBuiltIn$
|
|
1574
|
+
var call$h = functionCall;
|
|
1575
|
+
var defineBuiltIn$7 = defineBuiltIn$9;
|
|
1576
1576
|
var setPrototypeOf$5 = objectSetPrototypeOf;
|
|
1577
1577
|
var setToStringTag$4 = setToStringTag$5;
|
|
1578
1578
|
var setSpecies$1 = setSpecies$2;
|
|
@@ -1649,7 +1649,7 @@
|
|
|
1649
1649
|
if (result === reaction.promise) {
|
|
1650
1650
|
reject(TypeError$7('Promise-chain cycle'));
|
|
1651
1651
|
} else if (then = isThenable(result)) {
|
|
1652
|
-
call$
|
|
1652
|
+
call$h(then, result, resolve, reject);
|
|
1653
1653
|
} else resolve(result);
|
|
1654
1654
|
} else reject(value);
|
|
1655
1655
|
} catch (error) {
|
|
@@ -1686,7 +1686,7 @@
|
|
|
1686
1686
|
};
|
|
1687
1687
|
|
|
1688
1688
|
var onUnhandled = function (state) {
|
|
1689
|
-
call$
|
|
1689
|
+
call$h(task, global$p, function () {
|
|
1690
1690
|
var promise = state.facade;
|
|
1691
1691
|
var value = state.value;
|
|
1692
1692
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -1709,7 +1709,7 @@
|
|
|
1709
1709
|
};
|
|
1710
1710
|
|
|
1711
1711
|
var onHandleUnhandled = function (state) {
|
|
1712
|
-
call$
|
|
1712
|
+
call$h(task, global$p, function () {
|
|
1713
1713
|
var promise = state.facade;
|
|
1714
1714
|
if (IS_NODE) {
|
|
1715
1715
|
process.emit('rejectionHandled', promise);
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
microtask(function () {
|
|
1744
1744
|
var wrapper = { done: false };
|
|
1745
1745
|
try {
|
|
1746
|
-
call$
|
|
1746
|
+
call$h(then, value,
|
|
1747
1747
|
bind$4(internalResolve, wrapper, state),
|
|
1748
1748
|
bind$4(internalReject, wrapper, state)
|
|
1749
1749
|
);
|
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
PromiseConstructor = function Promise(executor) {
|
|
1768
1768
|
anInstance$3(this, PromisePrototype);
|
|
1769
1769
|
aCallable$4(executor);
|
|
1770
|
-
call$
|
|
1770
|
+
call$h(Internal, this);
|
|
1771
1771
|
var state = getInternalPromiseState(this);
|
|
1772
1772
|
try {
|
|
1773
1773
|
executor(bind$4(internalResolve, state), bind$4(internalReject, state));
|
|
@@ -1794,7 +1794,7 @@
|
|
|
1794
1794
|
|
|
1795
1795
|
// `Promise.prototype.then` method
|
|
1796
1796
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
1797
|
-
Internal.prototype = defineBuiltIn$
|
|
1797
|
+
Internal.prototype = defineBuiltIn$7(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
1798
1798
|
var state = getInternalPromiseState(this);
|
|
1799
1799
|
var reaction = newPromiseCapability$1(speciesConstructor$2(this, PromiseConstructor));
|
|
1800
1800
|
state.parent = true;
|
|
@@ -1827,10 +1827,10 @@
|
|
|
1827
1827
|
|
|
1828
1828
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
1829
1829
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
1830
|
-
defineBuiltIn$
|
|
1830
|
+
defineBuiltIn$7(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1831
1831
|
var that = this;
|
|
1832
1832
|
return new PromiseConstructor(function (resolve, reject) {
|
|
1833
|
-
call$
|
|
1833
|
+
call$h(nativeThen, that, resolve, reject);
|
|
1834
1834
|
}).then(onFulfilled, onRejected);
|
|
1835
1835
|
// https://github.com/zloirock/core-js/issues/640
|
|
1836
1836
|
}, { unsafe: true });
|
|
@@ -1882,9 +1882,9 @@
|
|
|
1882
1882
|
};
|
|
1883
1883
|
|
|
1884
1884
|
var global$o = global$V;
|
|
1885
|
-
var call$
|
|
1885
|
+
var call$g = functionCall;
|
|
1886
1886
|
var aCallable$3 = aCallable$8;
|
|
1887
|
-
var anObject$
|
|
1887
|
+
var anObject$c = anObject$h;
|
|
1888
1888
|
var tryToString$2 = tryToString$5;
|
|
1889
1889
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
1890
1890
|
|
|
@@ -1892,42 +1892,42 @@
|
|
|
1892
1892
|
|
|
1893
1893
|
var getIterator$3 = function (argument, usingIterator) {
|
|
1894
1894
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
1895
|
-
if (aCallable$3(iteratorMethod)) return anObject$
|
|
1895
|
+
if (aCallable$3(iteratorMethod)) return anObject$c(call$g(iteratorMethod, argument));
|
|
1896
1896
|
throw TypeError$6(tryToString$2(argument) + ' is not iterable');
|
|
1897
1897
|
};
|
|
1898
1898
|
|
|
1899
|
-
var call$
|
|
1900
|
-
var anObject$
|
|
1899
|
+
var call$f = functionCall;
|
|
1900
|
+
var anObject$b = anObject$h;
|
|
1901
1901
|
var getMethod$3 = getMethod$6;
|
|
1902
1902
|
|
|
1903
1903
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1904
1904
|
var innerResult, innerError;
|
|
1905
|
-
anObject$
|
|
1905
|
+
anObject$b(iterator);
|
|
1906
1906
|
try {
|
|
1907
1907
|
innerResult = getMethod$3(iterator, 'return');
|
|
1908
1908
|
if (!innerResult) {
|
|
1909
1909
|
if (kind === 'throw') throw value;
|
|
1910
1910
|
return value;
|
|
1911
1911
|
}
|
|
1912
|
-
innerResult = call$
|
|
1912
|
+
innerResult = call$f(innerResult, iterator);
|
|
1913
1913
|
} catch (error) {
|
|
1914
1914
|
innerError = true;
|
|
1915
1915
|
innerResult = error;
|
|
1916
1916
|
}
|
|
1917
1917
|
if (kind === 'throw') throw value;
|
|
1918
1918
|
if (innerError) throw innerResult;
|
|
1919
|
-
anObject$
|
|
1919
|
+
anObject$b(innerResult);
|
|
1920
1920
|
return value;
|
|
1921
1921
|
};
|
|
1922
1922
|
|
|
1923
1923
|
var global$n = global$V;
|
|
1924
1924
|
var bind$3 = functionBindContext;
|
|
1925
|
-
var call$
|
|
1926
|
-
var anObject$
|
|
1925
|
+
var call$e = functionCall;
|
|
1926
|
+
var anObject$a = anObject$h;
|
|
1927
1927
|
var tryToString$1 = tryToString$5;
|
|
1928
1928
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
1929
1929
|
var lengthOfArrayLike$5 = lengthOfArrayLike$7;
|
|
1930
|
-
var isPrototypeOf$
|
|
1930
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1931
1931
|
var getIterator$2 = getIterator$3;
|
|
1932
1932
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
1933
1933
|
var iteratorClose = iteratorClose$1;
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
|
|
1957
1957
|
var callFn = function (value) {
|
|
1958
1958
|
if (AS_ENTRIES) {
|
|
1959
|
-
anObject$
|
|
1959
|
+
anObject$a(value);
|
|
1960
1960
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1961
1961
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1962
1962
|
};
|
|
@@ -1970,20 +1970,20 @@
|
|
|
1970
1970
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
1971
1971
|
for (index = 0, length = lengthOfArrayLike$5(iterable); length > index; index++) {
|
|
1972
1972
|
result = callFn(iterable[index]);
|
|
1973
|
-
if (result && isPrototypeOf$
|
|
1973
|
+
if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
1974
1974
|
} return new Result(false);
|
|
1975
1975
|
}
|
|
1976
1976
|
iterator = getIterator$2(iterable, iterFn);
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
1979
|
next = iterator.next;
|
|
1980
|
-
while (!(step = call$
|
|
1980
|
+
while (!(step = call$e(next, iterator)).done) {
|
|
1981
1981
|
try {
|
|
1982
1982
|
result = callFn(step.value);
|
|
1983
1983
|
} catch (error) {
|
|
1984
1984
|
iteratorClose(iterator, 'throw', error);
|
|
1985
1985
|
}
|
|
1986
|
-
if (typeof result == 'object' && result && isPrototypeOf$
|
|
1986
|
+
if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
1987
1987
|
} return new Result(false);
|
|
1988
1988
|
};
|
|
1989
1989
|
|
|
@@ -2035,7 +2035,7 @@
|
|
|
2035
2035
|
});
|
|
2036
2036
|
|
|
2037
2037
|
var $$c = _export;
|
|
2038
|
-
var call$
|
|
2038
|
+
var call$d = functionCall;
|
|
2039
2039
|
var aCallable$2 = aCallable$8;
|
|
2040
2040
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2041
2041
|
var perform$1 = perform$3;
|
|
@@ -2059,7 +2059,7 @@
|
|
|
2059
2059
|
var index = counter++;
|
|
2060
2060
|
var alreadyCalled = false;
|
|
2061
2061
|
remaining++;
|
|
2062
|
-
call$
|
|
2062
|
+
call$d($promiseResolve, C, promise).then(function (value) {
|
|
2063
2063
|
if (alreadyCalled) return;
|
|
2064
2064
|
alreadyCalled = true;
|
|
2065
2065
|
values[index] = value;
|
|
@@ -2078,7 +2078,7 @@
|
|
|
2078
2078
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2079
2079
|
var getBuiltIn$1 = getBuiltIn$8;
|
|
2080
2080
|
var isCallable$8 = isCallable$p;
|
|
2081
|
-
var defineBuiltIn$
|
|
2081
|
+
var defineBuiltIn$6 = defineBuiltIn$9;
|
|
2082
2082
|
|
|
2083
2083
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2084
2084
|
|
|
@@ -2094,12 +2094,12 @@
|
|
|
2094
2094
|
if (isCallable$8(NativePromiseConstructor)) {
|
|
2095
2095
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2096
2096
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2097
|
-
defineBuiltIn$
|
|
2097
|
+
defineBuiltIn$6(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
2101
|
var $$a = _export;
|
|
2102
|
-
var call$
|
|
2102
|
+
var call$c = functionCall;
|
|
2103
2103
|
var aCallable$1 = aCallable$8;
|
|
2104
2104
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2105
2105
|
var perform = perform$3;
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
var result = perform(function () {
|
|
2117
2117
|
var $promiseResolve = aCallable$1(C.resolve);
|
|
2118
2118
|
iterate(iterable, function (promise) {
|
|
2119
|
-
call$
|
|
2119
|
+
call$c($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2120
2120
|
});
|
|
2121
2121
|
});
|
|
2122
2122
|
if (result.error) reject(result.value);
|
|
@@ -2125,7 +2125,7 @@
|
|
|
2125
2125
|
});
|
|
2126
2126
|
|
|
2127
2127
|
var $$9 = _export;
|
|
2128
|
-
var call$
|
|
2128
|
+
var call$b = functionCall;
|
|
2129
2129
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2130
2130
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2131
2131
|
|
|
@@ -2134,17 +2134,17 @@
|
|
|
2134
2134
|
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2135
2135
|
reject: function reject(r) {
|
|
2136
2136
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2137
|
-
call$
|
|
2137
|
+
call$b(capability.reject, undefined, r);
|
|
2138
2138
|
return capability.promise;
|
|
2139
2139
|
}
|
|
2140
2140
|
});
|
|
2141
2141
|
|
|
2142
|
-
var anObject$
|
|
2142
|
+
var anObject$9 = anObject$h;
|
|
2143
2143
|
var isObject$7 = isObject$e;
|
|
2144
2144
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2145
2145
|
|
|
2146
2146
|
var promiseResolve$1 = function (C, x) {
|
|
2147
|
-
anObject$
|
|
2147
|
+
anObject$9(C);
|
|
2148
2148
|
if (isObject$7(x) && x.constructor === C) return x;
|
|
2149
2149
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2150
2150
|
var resolve = promiseCapability.resolve;
|
|
@@ -2217,8 +2217,8 @@
|
|
|
2217
2217
|
|
|
2218
2218
|
var DESCRIPTORS$6 = descriptors;
|
|
2219
2219
|
var uncurryThis$d = functionUncurryThis;
|
|
2220
|
-
var call$
|
|
2221
|
-
var fails$
|
|
2220
|
+
var call$a = functionCall;
|
|
2221
|
+
var fails$f = fails$q;
|
|
2222
2222
|
var objectKeys$1 = objectKeys$2;
|
|
2223
2223
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2224
2224
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
|
|
2234
2234
|
// `Object.assign` method
|
|
2235
2235
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2236
|
-
var objectAssign = !$assign || fails$
|
|
2236
|
+
var objectAssign = !$assign || fails$f(function () {
|
|
2237
2237
|
// should have correct order of operations (Edge bug)
|
|
2238
2238
|
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
2239
2239
|
enumerable: true,
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
var key;
|
|
2268
2268
|
while (length > j) {
|
|
2269
2269
|
key = keys[j++];
|
|
2270
|
-
if (!DESCRIPTORS$6 || call$
|
|
2270
|
+
if (!DESCRIPTORS$6 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2271
2271
|
}
|
|
2272
2272
|
} return T;
|
|
2273
2273
|
} : $assign;
|
|
@@ -2292,12 +2292,12 @@
|
|
|
2292
2292
|
return String$1(argument);
|
|
2293
2293
|
};
|
|
2294
2294
|
|
|
2295
|
-
var anObject$
|
|
2295
|
+
var anObject$8 = anObject$h;
|
|
2296
2296
|
|
|
2297
2297
|
// `RegExp.prototype.flags` getter implementation
|
|
2298
2298
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2299
2299
|
var regexpFlags$1 = function () {
|
|
2300
|
-
var that = anObject$
|
|
2300
|
+
var that = anObject$8(this);
|
|
2301
2301
|
var result = '';
|
|
2302
2302
|
if (that.hasIndices) result += 'd';
|
|
2303
2303
|
if (that.global) result += 'g';
|
|
@@ -2309,13 +2309,13 @@
|
|
|
2309
2309
|
return result;
|
|
2310
2310
|
};
|
|
2311
2311
|
|
|
2312
|
-
var fails$
|
|
2312
|
+
var fails$e = fails$q;
|
|
2313
2313
|
var global$l = global$V;
|
|
2314
2314
|
|
|
2315
2315
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2316
2316
|
var $RegExp$2 = global$l.RegExp;
|
|
2317
2317
|
|
|
2318
|
-
var UNSUPPORTED_Y$2 = fails$
|
|
2318
|
+
var UNSUPPORTED_Y$2 = fails$e(function () {
|
|
2319
2319
|
var re = $RegExp$2('a', 'y');
|
|
2320
2320
|
re.lastIndex = 2;
|
|
2321
2321
|
return re.exec('abcd') != null;
|
|
@@ -2323,11 +2323,11 @@
|
|
|
2323
2323
|
|
|
2324
2324
|
// UC Browser bug
|
|
2325
2325
|
// https://github.com/zloirock/core-js/issues/1008
|
|
2326
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$
|
|
2326
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$e(function () {
|
|
2327
2327
|
return !$RegExp$2('a', 'y').sticky;
|
|
2328
2328
|
});
|
|
2329
2329
|
|
|
2330
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$
|
|
2330
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$e(function () {
|
|
2331
2331
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2332
2332
|
var re = $RegExp$2('^r', 'gy');
|
|
2333
2333
|
re.lastIndex = 2;
|
|
@@ -2345,7 +2345,7 @@
|
|
|
2345
2345
|
var DESCRIPTORS$5 = descriptors;
|
|
2346
2346
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
2347
2347
|
var definePropertyModule$2 = objectDefineProperty;
|
|
2348
|
-
var anObject$
|
|
2348
|
+
var anObject$7 = anObject$h;
|
|
2349
2349
|
var toIndexedObject$2 = toIndexedObject$6;
|
|
2350
2350
|
var objectKeys = objectKeys$2;
|
|
2351
2351
|
|
|
@@ -2353,7 +2353,7 @@
|
|
|
2353
2353
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2354
2354
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
2355
2355
|
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2356
|
-
anObject$
|
|
2356
|
+
anObject$7(O);
|
|
2357
2357
|
var props = toIndexedObject$2(Properties);
|
|
2358
2358
|
var keys = objectKeys(Properties);
|
|
2359
2359
|
var length = keys.length;
|
|
@@ -2365,7 +2365,7 @@
|
|
|
2365
2365
|
|
|
2366
2366
|
/* global ActiveXObject -- old IE, WSH */
|
|
2367
2367
|
|
|
2368
|
-
var anObject$
|
|
2368
|
+
var anObject$6 = anObject$h;
|
|
2369
2369
|
var definePropertiesModule = objectDefineProperties;
|
|
2370
2370
|
var enumBugKeys = enumBugKeys$3;
|
|
2371
2371
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -2439,7 +2439,7 @@
|
|
|
2439
2439
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
2440
2440
|
var result;
|
|
2441
2441
|
if (O !== null) {
|
|
2442
|
-
EmptyConstructor[PROTOTYPE$1] = anObject$
|
|
2442
|
+
EmptyConstructor[PROTOTYPE$1] = anObject$6(O);
|
|
2443
2443
|
result = new EmptyConstructor();
|
|
2444
2444
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2445
2445
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -2448,24 +2448,24 @@
|
|
|
2448
2448
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
2449
2449
|
};
|
|
2450
2450
|
|
|
2451
|
-
var fails$
|
|
2451
|
+
var fails$d = fails$q;
|
|
2452
2452
|
var global$k = global$V;
|
|
2453
2453
|
|
|
2454
2454
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2455
2455
|
var $RegExp$1 = global$k.RegExp;
|
|
2456
2456
|
|
|
2457
|
-
var regexpUnsupportedDotAll = fails$
|
|
2457
|
+
var regexpUnsupportedDotAll = fails$d(function () {
|
|
2458
2458
|
var re = $RegExp$1('.', 's');
|
|
2459
2459
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
2460
2460
|
});
|
|
2461
2461
|
|
|
2462
|
-
var fails$
|
|
2462
|
+
var fails$c = fails$q;
|
|
2463
2463
|
var global$j = global$V;
|
|
2464
2464
|
|
|
2465
2465
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2466
2466
|
var $RegExp = global$j.RegExp;
|
|
2467
2467
|
|
|
2468
|
-
var regexpUnsupportedNcg = fails$
|
|
2468
|
+
var regexpUnsupportedNcg = fails$c(function () {
|
|
2469
2469
|
var re = $RegExp('(?<a>b)', 'g');
|
|
2470
2470
|
return re.exec('b').groups.a !== 'b' ||
|
|
2471
2471
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -2473,7 +2473,7 @@
|
|
|
2473
2473
|
|
|
2474
2474
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2475
2475
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2476
|
-
var call$
|
|
2476
|
+
var call$9 = functionCall;
|
|
2477
2477
|
var uncurryThis$c = functionUncurryThis;
|
|
2478
2478
|
var toString$6 = toString$7;
|
|
2479
2479
|
var regexpFlags = regexpFlags$1;
|
|
@@ -2495,8 +2495,8 @@
|
|
|
2495
2495
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2496
2496
|
var re1 = /a/;
|
|
2497
2497
|
var re2 = /b*/g;
|
|
2498
|
-
call$
|
|
2499
|
-
call$
|
|
2498
|
+
call$9(nativeExec, re1, 'a');
|
|
2499
|
+
call$9(nativeExec, re2, 'a');
|
|
2500
2500
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2501
2501
|
})();
|
|
2502
2502
|
|
|
@@ -2517,14 +2517,14 @@
|
|
|
2517
2517
|
|
|
2518
2518
|
if (raw) {
|
|
2519
2519
|
raw.lastIndex = re.lastIndex;
|
|
2520
|
-
result = call$
|
|
2520
|
+
result = call$9(patchedExec, raw, str);
|
|
2521
2521
|
re.lastIndex = raw.lastIndex;
|
|
2522
2522
|
return result;
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
2525
|
var groups = state.groups;
|
|
2526
2526
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
2527
|
-
var flags = call$
|
|
2527
|
+
var flags = call$9(regexpFlags, re);
|
|
2528
2528
|
var source = re.source;
|
|
2529
2529
|
var charsAdded = 0;
|
|
2530
2530
|
var strCopy = str;
|
|
@@ -2552,7 +2552,7 @@
|
|
|
2552
2552
|
}
|
|
2553
2553
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2554
2554
|
|
|
2555
|
-
match = call$
|
|
2555
|
+
match = call$9(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2556
2556
|
|
|
2557
2557
|
if (sticky) {
|
|
2558
2558
|
if (match) {
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2568
2568
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2569
2569
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
2570
|
-
call$
|
|
2570
|
+
call$9(nativeReplace, match[0], reCopy, function () {
|
|
2571
2571
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
2572
2572
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
2573
2573
|
}
|
|
@@ -2600,26 +2600,26 @@
|
|
|
2600
2600
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2601
2601
|
|
|
2602
2602
|
var uncurryThis$b = functionUncurryThis;
|
|
2603
|
-
var defineBuiltIn$
|
|
2603
|
+
var defineBuiltIn$5 = defineBuiltIn$9;
|
|
2604
2604
|
var regexpExec$2 = regexpExec$3;
|
|
2605
|
-
var fails$
|
|
2605
|
+
var fails$b = fails$q;
|
|
2606
2606
|
var wellKnownSymbol$b = wellKnownSymbol$m;
|
|
2607
2607
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$9;
|
|
2608
2608
|
|
|
2609
2609
|
var SPECIES$1 = wellKnownSymbol$b('species');
|
|
2610
|
-
var RegExpPrototype
|
|
2610
|
+
var RegExpPrototype = RegExp.prototype;
|
|
2611
2611
|
|
|
2612
2612
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
2613
2613
|
var SYMBOL = wellKnownSymbol$b(KEY);
|
|
2614
2614
|
|
|
2615
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
2615
|
+
var DELEGATES_TO_SYMBOL = !fails$b(function () {
|
|
2616
2616
|
// String methods call symbol-named RegEp methods
|
|
2617
2617
|
var O = {};
|
|
2618
2618
|
O[SYMBOL] = function () { return 7; };
|
|
2619
2619
|
return ''[KEY](O) != 7;
|
|
2620
2620
|
});
|
|
2621
2621
|
|
|
2622
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
2622
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$b(function () {
|
|
2623
2623
|
// Symbol-named RegExp methods call .exec
|
|
2624
2624
|
var execCalled = false;
|
|
2625
2625
|
var re = /a/;
|
|
@@ -2652,7 +2652,7 @@
|
|
|
2652
2652
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
2653
2653
|
var uncurriedNativeMethod = uncurryThis$b(nativeMethod);
|
|
2654
2654
|
var $exec = regexp.exec;
|
|
2655
|
-
if ($exec === regexpExec$2 || $exec === RegExpPrototype
|
|
2655
|
+
if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
|
|
2656
2656
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
2657
2657
|
// The native String method already delegates to @@method (this
|
|
2658
2658
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -2664,11 +2664,11 @@
|
|
|
2664
2664
|
return { done: false };
|
|
2665
2665
|
});
|
|
2666
2666
|
|
|
2667
|
-
defineBuiltIn$
|
|
2668
|
-
defineBuiltIn$
|
|
2667
|
+
defineBuiltIn$5(String.prototype, KEY, methods[0]);
|
|
2668
|
+
defineBuiltIn$5(RegExpPrototype, SYMBOL, methods[1]);
|
|
2669
2669
|
}
|
|
2670
2670
|
|
|
2671
|
-
if (SHAM) createNonEnumerableProperty$5(RegExpPrototype
|
|
2671
|
+
if (SHAM) createNonEnumerableProperty$5(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
2674
2674
|
// `SameValue` abstract operation
|
|
@@ -2680,8 +2680,8 @@
|
|
|
2680
2680
|
};
|
|
2681
2681
|
|
|
2682
2682
|
var global$i = global$V;
|
|
2683
|
-
var call$
|
|
2684
|
-
var anObject$
|
|
2683
|
+
var call$8 = functionCall;
|
|
2684
|
+
var anObject$5 = anObject$h;
|
|
2685
2685
|
var isCallable$7 = isCallable$p;
|
|
2686
2686
|
var classof$5 = classofRaw$1;
|
|
2687
2687
|
var regexpExec$1 = regexpExec$3;
|
|
@@ -2693,17 +2693,17 @@
|
|
|
2693
2693
|
var regexpExecAbstract = function (R, S) {
|
|
2694
2694
|
var exec = R.exec;
|
|
2695
2695
|
if (isCallable$7(exec)) {
|
|
2696
|
-
var result = call$
|
|
2697
|
-
if (result !== null) anObject$
|
|
2696
|
+
var result = call$8(exec, R, S);
|
|
2697
|
+
if (result !== null) anObject$5(result);
|
|
2698
2698
|
return result;
|
|
2699
2699
|
}
|
|
2700
|
-
if (classof$5(R) === 'RegExp') return call$
|
|
2700
|
+
if (classof$5(R) === 'RegExp') return call$8(regexpExec$1, R, S);
|
|
2701
2701
|
throw TypeError$4('RegExp#exec called on incompatible receiver');
|
|
2702
2702
|
};
|
|
2703
2703
|
|
|
2704
|
-
var call$
|
|
2704
|
+
var call$7 = functionCall;
|
|
2705
2705
|
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
2706
|
-
var anObject$
|
|
2706
|
+
var anObject$4 = anObject$h;
|
|
2707
2707
|
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
|
2708
2708
|
var sameValue = sameValue$1;
|
|
2709
2709
|
var toString$5 = toString$7;
|
|
@@ -2718,12 +2718,12 @@
|
|
|
2718
2718
|
function search(regexp) {
|
|
2719
2719
|
var O = requireObjectCoercible$5(this);
|
|
2720
2720
|
var searcher = regexp == undefined ? undefined : getMethod$2(regexp, SEARCH);
|
|
2721
|
-
return searcher ? call$
|
|
2721
|
+
return searcher ? call$7(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$5(O));
|
|
2722
2722
|
},
|
|
2723
2723
|
// `RegExp.prototype[@@search]` method
|
|
2724
2724
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
2725
2725
|
function (string) {
|
|
2726
|
-
var rx = anObject$
|
|
2726
|
+
var rx = anObject$4(this);
|
|
2727
2727
|
var S = toString$5(string);
|
|
2728
2728
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
2729
2729
|
|
|
@@ -2759,9 +2759,9 @@
|
|
|
2759
2759
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2760
2760
|
};
|
|
2761
2761
|
|
|
2762
|
-
var fails$
|
|
2762
|
+
var fails$a = fails$q;
|
|
2763
2763
|
|
|
2764
|
-
var correctPrototypeGetter = !fails$
|
|
2764
|
+
var correctPrototypeGetter = !fails$a(function () {
|
|
2765
2765
|
function F() { /* empty */ }
|
|
2766
2766
|
F.prototype.constructor = null;
|
|
2767
2767
|
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
2771
|
var global$h = global$V;
|
|
2772
|
-
var hasOwn$
|
|
2772
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
2773
2773
|
var isCallable$6 = isCallable$p;
|
|
2774
2774
|
var toObject$4 = toObject$7;
|
|
2775
2775
|
var sharedKey = sharedKey$3;
|
|
@@ -2783,17 +2783,17 @@
|
|
|
2783
2783
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
2784
2784
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
2785
2785
|
var object = toObject$4(O);
|
|
2786
|
-
if (hasOwn$
|
|
2786
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
2787
2787
|
var constructor = object.constructor;
|
|
2788
2788
|
if (isCallable$6(constructor) && object instanceof constructor) {
|
|
2789
2789
|
return constructor.prototype;
|
|
2790
2790
|
} return object instanceof Object$1 ? ObjectPrototype$2 : null;
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
|
-
var fails$
|
|
2793
|
+
var fails$9 = fails$q;
|
|
2794
2794
|
var isCallable$5 = isCallable$p;
|
|
2795
2795
|
var getPrototypeOf$3 = objectGetPrototypeOf;
|
|
2796
|
-
var defineBuiltIn$
|
|
2796
|
+
var defineBuiltIn$4 = defineBuiltIn$9;
|
|
2797
2797
|
var wellKnownSymbol$9 = wellKnownSymbol$m;
|
|
2798
2798
|
|
|
2799
2799
|
var ITERATOR$4 = wellKnownSymbol$9('iterator');
|
|
@@ -2814,7 +2814,7 @@
|
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
2817
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$9(function () {
|
|
2818
2818
|
var test = {};
|
|
2819
2819
|
// FF44- legacy iterators case
|
|
2820
2820
|
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
@@ -2825,7 +2825,7 @@
|
|
|
2825
2825
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
2826
2826
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
2827
2827
|
if (!isCallable$5(IteratorPrototype$2[ITERATOR$4])) {
|
|
2828
|
-
defineBuiltIn$
|
|
2828
|
+
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$4, function () {
|
|
2829
2829
|
return this;
|
|
2830
2830
|
});
|
|
2831
2831
|
}
|
|
@@ -2852,7 +2852,7 @@
|
|
|
2852
2852
|
};
|
|
2853
2853
|
|
|
2854
2854
|
var $$5 = _export;
|
|
2855
|
-
var call$
|
|
2855
|
+
var call$6 = functionCall;
|
|
2856
2856
|
var FunctionName$1 = functionName;
|
|
2857
2857
|
var isCallable$4 = isCallable$p;
|
|
2858
2858
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
@@ -2860,12 +2860,12 @@
|
|
|
2860
2860
|
var setPrototypeOf$4 = objectSetPrototypeOf;
|
|
2861
2861
|
var setToStringTag$2 = setToStringTag$5;
|
|
2862
2862
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
|
|
2863
|
-
var defineBuiltIn$
|
|
2863
|
+
var defineBuiltIn$3 = defineBuiltIn$9;
|
|
2864
2864
|
var wellKnownSymbol$8 = wellKnownSymbol$m;
|
|
2865
2865
|
var Iterators$1 = iterators;
|
|
2866
2866
|
var IteratorsCore = iteratorsCore;
|
|
2867
2867
|
|
|
2868
|
-
var PROPER_FUNCTION_NAME$
|
|
2868
|
+
var PROPER_FUNCTION_NAME$1 = FunctionName$1.PROPER;
|
|
2869
2869
|
var CONFIGURABLE_FUNCTION_NAME$1 = FunctionName$1.CONFIGURABLE;
|
|
2870
2870
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
2871
2871
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
@@ -2907,7 +2907,7 @@
|
|
|
2907
2907
|
if (setPrototypeOf$4) {
|
|
2908
2908
|
setPrototypeOf$4(CurrentIteratorPrototype, IteratorPrototype);
|
|
2909
2909
|
} else if (!isCallable$4(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
2910
|
-
defineBuiltIn$
|
|
2910
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
2913
|
// Set @@toStringTag to native iterators
|
|
@@ -2916,12 +2916,12 @@
|
|
|
2916
2916
|
}
|
|
2917
2917
|
|
|
2918
2918
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
2919
|
-
if (PROPER_FUNCTION_NAME$
|
|
2919
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
2920
2920
|
if (CONFIGURABLE_FUNCTION_NAME$1) {
|
|
2921
2921
|
createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
|
|
2922
2922
|
} else {
|
|
2923
2923
|
INCORRECT_VALUES_NAME = true;
|
|
2924
|
-
defaultIterator = function values() { return call$
|
|
2924
|
+
defaultIterator = function values() { return call$6(nativeIterator, this); };
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
2927
|
|
|
@@ -2934,14 +2934,14 @@
|
|
|
2934
2934
|
};
|
|
2935
2935
|
if (FORCED) for (KEY in methods) {
|
|
2936
2936
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2937
|
-
defineBuiltIn$
|
|
2937
|
+
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
2938
2938
|
}
|
|
2939
2939
|
} else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2940
2940
|
}
|
|
2941
2941
|
|
|
2942
2942
|
// define iterator
|
|
2943
2943
|
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
2944
|
-
defineBuiltIn$
|
|
2944
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
2945
2945
|
}
|
|
2946
2946
|
Iterators$1[NAME] = defaultIterator;
|
|
2947
2947
|
|
|
@@ -3091,13 +3091,13 @@
|
|
|
3091
3091
|
|
|
3092
3092
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
3093
3093
|
|
|
3094
|
-
var fails$
|
|
3094
|
+
var fails$8 = fails$q;
|
|
3095
3095
|
var wellKnownSymbol$6 = wellKnownSymbol$m;
|
|
3096
3096
|
var IS_PURE = isPure;
|
|
3097
3097
|
|
|
3098
3098
|
var ITERATOR$1 = wellKnownSymbol$6('iterator');
|
|
3099
3099
|
|
|
3100
|
-
var nativeUrl = !fails$
|
|
3100
|
+
var nativeUrl = !fails$8(function () {
|
|
3101
3101
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
3102
3102
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
3103
3103
|
var searchParams = url.searchParams;
|
|
@@ -3126,10 +3126,10 @@
|
|
|
3126
3126
|
|| new URL('http://x', undefined).host !== 'x';
|
|
3127
3127
|
});
|
|
3128
3128
|
|
|
3129
|
-
var defineBuiltIn$
|
|
3129
|
+
var defineBuiltIn$2 = defineBuiltIn$9;
|
|
3130
3130
|
|
|
3131
3131
|
var defineBuiltIns$2 = function (target, src, options) {
|
|
3132
|
-
for (var key in src) defineBuiltIn$
|
|
3132
|
+
for (var key in src) defineBuiltIn$2(target, key, src[key], options);
|
|
3133
3133
|
return target;
|
|
3134
3134
|
};
|
|
3135
3135
|
|
|
@@ -3210,23 +3210,23 @@
|
|
|
3210
3210
|
|
|
3211
3211
|
var $$4 = _export;
|
|
3212
3212
|
var global$e = global$V;
|
|
3213
|
-
var call$
|
|
3213
|
+
var call$5 = functionCall;
|
|
3214
3214
|
var uncurryThis$a = functionUncurryThis;
|
|
3215
3215
|
var DESCRIPTORS$3 = descriptors;
|
|
3216
3216
|
var USE_NATIVE_URL = nativeUrl;
|
|
3217
|
-
var defineBuiltIn$
|
|
3217
|
+
var defineBuiltIn$1 = defineBuiltIn$9;
|
|
3218
3218
|
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
3219
3219
|
var setToStringTag$1 = setToStringTag$5;
|
|
3220
3220
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
3221
3221
|
var InternalStateModule$2 = internalState;
|
|
3222
3222
|
var anInstance$2 = anInstance$4;
|
|
3223
3223
|
var isCallable$3 = isCallable$p;
|
|
3224
|
-
var hasOwn$
|
|
3224
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
3225
3225
|
var bind$2 = functionBindContext;
|
|
3226
3226
|
var classof$4 = classof$9;
|
|
3227
|
-
var anObject$
|
|
3227
|
+
var anObject$3 = anObject$h;
|
|
3228
3228
|
var isObject$6 = isObject$e;
|
|
3229
|
-
var $toString
|
|
3229
|
+
var $toString = toString$7;
|
|
3230
3230
|
var create$1 = objectCreate;
|
|
3231
3231
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
3232
3232
|
var getIterator$1 = getIterator$3;
|
|
@@ -3338,7 +3338,7 @@
|
|
|
3338
3338
|
|
|
3339
3339
|
if (init !== undefined) {
|
|
3340
3340
|
if (isObject$6(init)) this.parseObject(init);
|
|
3341
|
-
else this.parseQuery(typeof init == 'string' ? charAt$3(init, 0) === '?' ? stringSlice$5(init, 1) : init : $toString
|
|
3341
|
+
else this.parseQuery(typeof init == 'string' ? charAt$3(init, 0) === '?' ? stringSlice$5(init, 1) : init : $toString(init));
|
|
3342
3342
|
}
|
|
3343
3343
|
};
|
|
3344
3344
|
|
|
@@ -3355,18 +3355,18 @@
|
|
|
3355
3355
|
if (iteratorMethod) {
|
|
3356
3356
|
iterator = getIterator$1(object, iteratorMethod);
|
|
3357
3357
|
next = iterator.next;
|
|
3358
|
-
while (!(step = call$
|
|
3359
|
-
entryIterator = getIterator$1(anObject$
|
|
3358
|
+
while (!(step = call$5(next, iterator)).done) {
|
|
3359
|
+
entryIterator = getIterator$1(anObject$3(step.value));
|
|
3360
3360
|
entryNext = entryIterator.next;
|
|
3361
3361
|
if (
|
|
3362
|
-
(first = call$
|
|
3363
|
-
(second = call$
|
|
3364
|
-
!call$
|
|
3362
|
+
(first = call$5(entryNext, entryIterator)).done ||
|
|
3363
|
+
(second = call$5(entryNext, entryIterator)).done ||
|
|
3364
|
+
!call$5(entryNext, entryIterator).done
|
|
3365
3365
|
) throw TypeError$3('Expected sequence with length 2');
|
|
3366
|
-
push$3(this.entries, { key: $toString
|
|
3366
|
+
push$3(this.entries, { key: $toString(first.value), value: $toString(second.value) });
|
|
3367
3367
|
}
|
|
3368
|
-
} else for (var key in object) if (hasOwn$
|
|
3369
|
-
push$3(this.entries, { key: key, value: $toString
|
|
3368
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
3369
|
+
push$3(this.entries, { key: key, value: $toString(object[key]) });
|
|
3370
3370
|
}
|
|
3371
3371
|
},
|
|
3372
3372
|
parseQuery: function (query) {
|
|
@@ -3421,7 +3421,7 @@
|
|
|
3421
3421
|
append: function append(name, value) {
|
|
3422
3422
|
validateArgumentsLength(arguments.length, 2);
|
|
3423
3423
|
var state = getInternalParamsState(this);
|
|
3424
|
-
push$3(state.entries, { key: $toString
|
|
3424
|
+
push$3(state.entries, { key: $toString(name), value: $toString(value) });
|
|
3425
3425
|
state.updateURL();
|
|
3426
3426
|
},
|
|
3427
3427
|
// `URLSearchParams.prototype.delete` method
|
|
@@ -3430,7 +3430,7 @@
|
|
|
3430
3430
|
validateArgumentsLength(arguments.length, 1);
|
|
3431
3431
|
var state = getInternalParamsState(this);
|
|
3432
3432
|
var entries = state.entries;
|
|
3433
|
-
var key = $toString
|
|
3433
|
+
var key = $toString(name);
|
|
3434
3434
|
var index = 0;
|
|
3435
3435
|
while (index < entries.length) {
|
|
3436
3436
|
if (entries[index].key === key) splice(entries, index, 1);
|
|
@@ -3443,7 +3443,7 @@
|
|
|
3443
3443
|
get: function get(name) {
|
|
3444
3444
|
validateArgumentsLength(arguments.length, 1);
|
|
3445
3445
|
var entries = getInternalParamsState(this).entries;
|
|
3446
|
-
var key = $toString
|
|
3446
|
+
var key = $toString(name);
|
|
3447
3447
|
var index = 0;
|
|
3448
3448
|
for (; index < entries.length; index++) {
|
|
3449
3449
|
if (entries[index].key === key) return entries[index].value;
|
|
@@ -3455,7 +3455,7 @@
|
|
|
3455
3455
|
getAll: function getAll(name) {
|
|
3456
3456
|
validateArgumentsLength(arguments.length, 1);
|
|
3457
3457
|
var entries = getInternalParamsState(this).entries;
|
|
3458
|
-
var key = $toString
|
|
3458
|
+
var key = $toString(name);
|
|
3459
3459
|
var result = [];
|
|
3460
3460
|
var index = 0;
|
|
3461
3461
|
for (; index < entries.length; index++) {
|
|
@@ -3468,7 +3468,7 @@
|
|
|
3468
3468
|
has: function has(name) {
|
|
3469
3469
|
validateArgumentsLength(arguments.length, 1);
|
|
3470
3470
|
var entries = getInternalParamsState(this).entries;
|
|
3471
|
-
var key = $toString
|
|
3471
|
+
var key = $toString(name);
|
|
3472
3472
|
var index = 0;
|
|
3473
3473
|
while (index < entries.length) {
|
|
3474
3474
|
if (entries[index++].key === key) return true;
|
|
@@ -3482,8 +3482,8 @@
|
|
|
3482
3482
|
var state = getInternalParamsState(this);
|
|
3483
3483
|
var entries = state.entries;
|
|
3484
3484
|
var found = false;
|
|
3485
|
-
var key = $toString
|
|
3486
|
-
var val = $toString
|
|
3485
|
+
var key = $toString(name);
|
|
3486
|
+
var val = $toString(value);
|
|
3487
3487
|
var index = 0;
|
|
3488
3488
|
var entry;
|
|
3489
3489
|
for (; index < entries.length; index++) {
|
|
@@ -3534,11 +3534,11 @@
|
|
|
3534
3534
|
}, { enumerable: true });
|
|
3535
3535
|
|
|
3536
3536
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
3537
|
-
defineBuiltIn$
|
|
3537
|
+
defineBuiltIn$1(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
3538
3538
|
|
|
3539
3539
|
// `URLSearchParams.prototype.toString` method
|
|
3540
3540
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
3541
|
-
defineBuiltIn$
|
|
3541
|
+
defineBuiltIn$1(URLSearchParamsPrototype, 'toString', function toString() {
|
|
3542
3542
|
return getInternalParamsState(this).serialize();
|
|
3543
3543
|
}, { enumerable: true });
|
|
3544
3544
|
|
|
@@ -3563,7 +3563,7 @@
|
|
|
3563
3563
|
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
3564
3564
|
}
|
|
3565
3565
|
return create$1(init, {
|
|
3566
|
-
body: createPropertyDescriptor$1(0, $toString
|
|
3566
|
+
body: createPropertyDescriptor$1(0, $toString(body)),
|
|
3567
3567
|
headers: createPropertyDescriptor$1(0, headers)
|
|
3568
3568
|
});
|
|
3569
3569
|
}
|
|
@@ -3593,45 +3593,6 @@
|
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
var call$5 = functionCall;
|
|
3597
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
3598
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
3599
|
-
var regExpFlags = regexpFlags$1;
|
|
3600
|
-
|
|
3601
|
-
var RegExpPrototype$1 = RegExp.prototype;
|
|
3602
|
-
|
|
3603
|
-
var regexpGetFlags = function (R) {
|
|
3604
|
-
var flags = R.flags;
|
|
3605
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
|
|
3606
|
-
? call$5(regExpFlags, R) : flags;
|
|
3607
|
-
};
|
|
3608
|
-
|
|
3609
|
-
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
3610
|
-
var defineBuiltIn$1 = defineBuiltIn$a;
|
|
3611
|
-
var anObject$3 = anObject$i;
|
|
3612
|
-
var $toString = toString$7;
|
|
3613
|
-
var fails$8 = fails$r;
|
|
3614
|
-
var getRegExpFlags = regexpGetFlags;
|
|
3615
|
-
|
|
3616
|
-
var TO_STRING = 'toString';
|
|
3617
|
-
var RegExpPrototype = RegExp.prototype;
|
|
3618
|
-
var n$ToString = RegExpPrototype[TO_STRING];
|
|
3619
|
-
|
|
3620
|
-
var NOT_GENERIC = fails$8(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3621
|
-
// FF44- RegExp#toString has a wrong name
|
|
3622
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
|
|
3623
|
-
|
|
3624
|
-
// `RegExp.prototype.toString` method
|
|
3625
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3626
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3627
|
-
defineBuiltIn$1(RegExp.prototype, TO_STRING, function toString() {
|
|
3628
|
-
var R = anObject$3(this);
|
|
3629
|
-
var pattern = $toString(R.source);
|
|
3630
|
-
var flags = $toString(getRegExpFlags(R));
|
|
3631
|
-
return '/' + pattern + '/' + flags;
|
|
3632
|
-
}, { unsafe: true });
|
|
3633
|
-
}
|
|
3634
|
-
|
|
3635
3596
|
var isObject$5 = isObject$e;
|
|
3636
3597
|
var classof$3 = classofRaw$1;
|
|
3637
3598
|
var wellKnownSymbol$4 = wellKnownSymbol$m;
|
|
@@ -3695,7 +3656,7 @@
|
|
|
3695
3656
|
var uncurryThis$8 = functionUncurryThis;
|
|
3696
3657
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3697
3658
|
var isRegExp$1 = isRegexp;
|
|
3698
|
-
var anObject$2 = anObject$
|
|
3659
|
+
var anObject$2 = anObject$h;
|
|
3699
3660
|
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
|
3700
3661
|
var speciesConstructor$1 = speciesConstructor$3;
|
|
3701
3662
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
@@ -3706,7 +3667,7 @@
|
|
|
3706
3667
|
var callRegExpExec = regexpExecAbstract;
|
|
3707
3668
|
var regexpExec = regexpExec$3;
|
|
3708
3669
|
var stickyHelpers = regexpStickyHelpers;
|
|
3709
|
-
var fails$7 = fails$
|
|
3670
|
+
var fails$7 = fails$q;
|
|
3710
3671
|
|
|
3711
3672
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
3712
3673
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
@@ -4491,8 +4452,8 @@
|
|
|
4491
4452
|
var call$3 = functionCall;
|
|
4492
4453
|
var uncurryThis$6 = functionUncurryThis;
|
|
4493
4454
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
4494
|
-
var fails$6 = fails$
|
|
4495
|
-
var anObject$1 = anObject$
|
|
4455
|
+
var fails$6 = fails$q;
|
|
4456
|
+
var anObject$1 = anObject$h;
|
|
4496
4457
|
var isCallable$2 = isCallable$p;
|
|
4497
4458
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$7;
|
|
4498
4459
|
var toLength$6 = toLength$9;
|
|
@@ -4771,7 +4732,7 @@
|
|
|
4771
4732
|
var FunctionName = functionName;
|
|
4772
4733
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
|
|
4773
4734
|
var defineBuiltIns = defineBuiltIns$2;
|
|
4774
|
-
var fails$5 = fails$
|
|
4735
|
+
var fails$5 = fails$q;
|
|
4775
4736
|
var anInstance$1 = anInstance$4;
|
|
4776
4737
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$7;
|
|
4777
4738
|
var toLength$4 = toLength$9;
|
|
@@ -5013,9 +4974,9 @@
|
|
|
5013
4974
|
|
|
5014
4975
|
var $$3 = _export;
|
|
5015
4976
|
var uncurryThis$4 = functionUncurryThis;
|
|
5016
|
-
var fails$4 = fails$
|
|
4977
|
+
var fails$4 = fails$q;
|
|
5017
4978
|
var ArrayBufferModule$1 = arrayBuffer;
|
|
5018
|
-
var anObject = anObject$
|
|
4979
|
+
var anObject = anObject$h;
|
|
5019
4980
|
var toAbsoluteIndex = toAbsoluteIndex$4;
|
|
5020
4981
|
var toLength$3 = toLength$9;
|
|
5021
4982
|
var speciesConstructor = speciesConstructor$3;
|
|
@@ -5062,7 +5023,7 @@
|
|
|
5062
5023
|
var classof$2 = classof$9;
|
|
5063
5024
|
var tryToString = tryToString$5;
|
|
5064
5025
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$9;
|
|
5065
|
-
var defineBuiltIn = defineBuiltIn$
|
|
5026
|
+
var defineBuiltIn = defineBuiltIn$9;
|
|
5066
5027
|
var defineProperty = objectDefineProperty.f;
|
|
5067
5028
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
5068
5029
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
@@ -5236,7 +5197,7 @@
|
|
|
5236
5197
|
/* eslint-disable no-new -- required for testing */
|
|
5237
5198
|
|
|
5238
5199
|
var global$9 = global$V;
|
|
5239
|
-
var fails$3 = fails$
|
|
5200
|
+
var fails$3 = fails$q;
|
|
5240
5201
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
5241
5202
|
var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
5242
5203
|
|
|
@@ -5719,7 +5680,7 @@
|
|
|
5719
5680
|
var lengthOfArrayLike = lengthOfArrayLike$7;
|
|
5720
5681
|
var toOffset = toOffset$2;
|
|
5721
5682
|
var toIndexedObject = toObject$7;
|
|
5722
|
-
var fails$2 = fails$
|
|
5683
|
+
var fails$2 = fails$q;
|
|
5723
5684
|
|
|
5724
5685
|
var RangeError = global$4.RangeError;
|
|
5725
5686
|
var Int8Array$1 = global$4.Int8Array;
|
|
@@ -5775,7 +5736,7 @@
|
|
|
5775
5736
|
|
|
5776
5737
|
var global$3 = global$V;
|
|
5777
5738
|
var uncurryThis$2 = functionUncurryThis;
|
|
5778
|
-
var fails$1 = fails$
|
|
5739
|
+
var fails$1 = fails$q;
|
|
5779
5740
|
var aCallable = aCallable$8;
|
|
5780
5741
|
var internalSort = arraySort$1;
|
|
5781
5742
|
var ArrayBufferViewCore$1 = arrayBufferViewCore;
|
|
@@ -5846,7 +5807,7 @@
|
|
|
5846
5807
|
var global$2 = global$V;
|
|
5847
5808
|
var apply = functionApply;
|
|
5848
5809
|
var ArrayBufferViewCore = arrayBufferViewCore;
|
|
5849
|
-
var fails = fails$
|
|
5810
|
+
var fails = fails$q;
|
|
5850
5811
|
var arraySlice = arraySlice$5;
|
|
5851
5812
|
|
|
5852
5813
|
var Int8Array = global$2.Int8Array;
|
|
@@ -5875,6 +5836,25 @@
|
|
|
5875
5836
|
);
|
|
5876
5837
|
}, FORCED);
|
|
5877
5838
|
|
|
5839
|
+
const deleteQueryParameter = (windowLocation, name, value) => {
|
|
5840
|
+
const nameValue = name + '=' + value;
|
|
5841
|
+
let toReplace = nameValue;
|
|
5842
|
+
|
|
5843
|
+
if (windowLocation.indexOf('?' + nameValue) >= 0) {
|
|
5844
|
+
if (windowLocation.indexOf('?' + nameValue + '&') >= 0) {
|
|
5845
|
+
// first param
|
|
5846
|
+
toReplace += '&';
|
|
5847
|
+
} else {
|
|
5848
|
+
// first and unique param
|
|
5849
|
+
toReplace = '?' + toReplace;
|
|
5850
|
+
}
|
|
5851
|
+
} else if (windowLocation.indexOf('&' + nameValue) >= 0) {
|
|
5852
|
+
// not first param (maybe last)
|
|
5853
|
+
toReplace = '&' + toReplace;
|
|
5854
|
+
}
|
|
5855
|
+
|
|
5856
|
+
return windowLocation.replace(toReplace, '');
|
|
5857
|
+
};
|
|
5878
5858
|
const createCodeChallenge = verifier => __awaiter(void 0, void 0, void 0, function* () {
|
|
5879
5859
|
const code_challengeBuffer = yield sha256(verifier);
|
|
5880
5860
|
const code_challenge = bufferToBase64UrlEncoded(code_challengeBuffer);
|
|
@@ -6249,10 +6229,9 @@
|
|
|
6249
6229
|
if (!!code && !!state) {
|
|
6250
6230
|
const verifier = window.sessionStorage.getItem(state);
|
|
6251
6231
|
window.sessionStorage.removeItem(state);
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
const newUrl = window.location.origin + window.location.pathname + (newQueryParams ? '?' + newQueryParams : '');
|
|
6232
|
+
let newUrl = window.location.href;
|
|
6233
|
+
newUrl = deleteQueryParameter(newUrl, 'code', code);
|
|
6234
|
+
newUrl = deleteQueryParameter(newUrl, 'state', state);
|
|
6256
6235
|
window.history.pushState(null, '', newUrl); //* use the Verifier and AuthCode to exchange for AccessToken
|
|
6257
6236
|
|
|
6258
6237
|
if (verifier) {
|