@leapdev/auth-agent 2.0.0-beta.0 → 2.0.0-beta.2

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/src/index.umd.js CHANGED
@@ -2205,6 +2205,83 @@
2205
2205
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
2206
2206
  }
2207
2207
 
2208
+ var internalObjectKeys = objectKeysInternal;
2209
+ var enumBugKeys$1 = enumBugKeys$3;
2210
+
2211
+ // `Object.keys` method
2212
+ // https://tc39.es/ecma262/#sec-object.keys
2213
+ // eslint-disable-next-line es-x/no-object-keys -- safe
2214
+ var objectKeys$2 = Object.keys || function keys(O) {
2215
+ return internalObjectKeys(O, enumBugKeys$1);
2216
+ };
2217
+
2218
+ var DESCRIPTORS$6 = descriptors;
2219
+ var uncurryThis$d = functionUncurryThis;
2220
+ var call$b = functionCall;
2221
+ var fails$g = fails$r;
2222
+ var objectKeys$1 = objectKeys$2;
2223
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2224
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2225
+ var toObject$5 = toObject$7;
2226
+ var IndexedObject$1 = indexedObject;
2227
+
2228
+ // eslint-disable-next-line es-x/no-object-assign -- safe
2229
+ var $assign = Object.assign;
2230
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
2231
+ var defineProperty$4 = Object.defineProperty;
2232
+ var concat$1 = uncurryThis$d([].concat);
2233
+
2234
+ // `Object.assign` method
2235
+ // https://tc39.es/ecma262/#sec-object.assign
2236
+ var objectAssign = !$assign || fails$g(function () {
2237
+ // should have correct order of operations (Edge bug)
2238
+ if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
2239
+ enumerable: true,
2240
+ get: function () {
2241
+ defineProperty$4(this, 'b', {
2242
+ value: 3,
2243
+ enumerable: false
2244
+ });
2245
+ }
2246
+ }), { b: 2 })).b !== 1) return true;
2247
+ // should work with symbols and should have deterministic property order (V8 bug)
2248
+ var A = {};
2249
+ var B = {};
2250
+ // eslint-disable-next-line es-x/no-symbol -- safe
2251
+ var symbol = Symbol();
2252
+ var alphabet = 'abcdefghijklmnopqrst';
2253
+ A[symbol] = 7;
2254
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2255
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2256
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2257
+ var T = toObject$5(target);
2258
+ var argumentsLength = arguments.length;
2259
+ var index = 1;
2260
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2261
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
2262
+ while (argumentsLength > index) {
2263
+ var S = IndexedObject$1(arguments[index++]);
2264
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
2265
+ var length = keys.length;
2266
+ var j = 0;
2267
+ var key;
2268
+ while (length > j) {
2269
+ key = keys[j++];
2270
+ if (!DESCRIPTORS$6 || call$b(propertyIsEnumerable, S, key)) T[key] = S[key];
2271
+ }
2272
+ } return T;
2273
+ } : $assign;
2274
+
2275
+ var $$7 = _export;
2276
+ var assign = objectAssign;
2277
+
2278
+ // `Object.assign` method
2279
+ // https://tc39.es/ecma262/#sec-object.assign
2280
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
2281
+ $$7({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2282
+ assign: assign
2283
+ });
2284
+
2208
2285
  var global$m = global$V;
2209
2286
  var classof$6 = classof$9;
2210
2287
 
@@ -2232,13 +2309,13 @@
2232
2309
  return result;
2233
2310
  };
2234
2311
 
2235
- var fails$g = fails$r;
2312
+ var fails$f = fails$r;
2236
2313
  var global$l = global$V;
2237
2314
 
2238
2315
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2239
2316
  var $RegExp$2 = global$l.RegExp;
2240
2317
 
2241
- var UNSUPPORTED_Y$2 = fails$g(function () {
2318
+ var UNSUPPORTED_Y$2 = fails$f(function () {
2242
2319
  var re = $RegExp$2('a', 'y');
2243
2320
  re.lastIndex = 2;
2244
2321
  return re.exec('abcd') != null;
@@ -2246,11 +2323,11 @@
2246
2323
 
2247
2324
  // UC Browser bug
2248
2325
  // https://github.com/zloirock/core-js/issues/1008
2249
- var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$g(function () {
2326
+ var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$f(function () {
2250
2327
  return !$RegExp$2('a', 'y').sticky;
2251
2328
  });
2252
2329
 
2253
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$g(function () {
2330
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$f(function () {
2254
2331
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2255
2332
  var re = $RegExp$2('^r', 'gy');
2256
2333
  re.lastIndex = 2;
@@ -2265,30 +2342,20 @@
2265
2342
 
2266
2343
  var objectDefineProperties = {};
2267
2344
 
2268
- var internalObjectKeys = objectKeysInternal;
2269
- var enumBugKeys$1 = enumBugKeys$3;
2270
-
2271
- // `Object.keys` method
2272
- // https://tc39.es/ecma262/#sec-object.keys
2273
- // eslint-disable-next-line es-x/no-object-keys -- safe
2274
- var objectKeys$2 = Object.keys || function keys(O) {
2275
- return internalObjectKeys(O, enumBugKeys$1);
2276
- };
2277
-
2278
- var DESCRIPTORS$6 = descriptors;
2345
+ var DESCRIPTORS$5 = descriptors;
2279
2346
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2280
2347
  var definePropertyModule$2 = objectDefineProperty;
2281
2348
  var anObject$8 = anObject$i;
2282
2349
  var toIndexedObject$2 = toIndexedObject$6;
2283
- var objectKeys$1 = objectKeys$2;
2350
+ var objectKeys = objectKeys$2;
2284
2351
 
2285
2352
  // `Object.defineProperties` method
2286
2353
  // https://tc39.es/ecma262/#sec-object.defineproperties
2287
2354
  // eslint-disable-next-line es-x/no-object-defineproperties -- safe
2288
- objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2355
+ objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2289
2356
  anObject$8(O);
2290
2357
  var props = toIndexedObject$2(Properties);
2291
- var keys = objectKeys$1(Properties);
2358
+ var keys = objectKeys(Properties);
2292
2359
  var length = keys.length;
2293
2360
  var index = 0;
2294
2361
  var key;
@@ -2381,24 +2448,24 @@
2381
2448
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2382
2449
  };
2383
2450
 
2384
- var fails$f = fails$r;
2451
+ var fails$e = fails$r;
2385
2452
  var global$k = global$V;
2386
2453
 
2387
2454
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2388
2455
  var $RegExp$1 = global$k.RegExp;
2389
2456
 
2390
- var regexpUnsupportedDotAll = fails$f(function () {
2457
+ var regexpUnsupportedDotAll = fails$e(function () {
2391
2458
  var re = $RegExp$1('.', 's');
2392
2459
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
2393
2460
  });
2394
2461
 
2395
- var fails$e = fails$r;
2462
+ var fails$d = fails$r;
2396
2463
  var global$j = global$V;
2397
2464
 
2398
2465
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2399
2466
  var $RegExp = global$j.RegExp;
2400
2467
 
2401
- var regexpUnsupportedNcg = fails$e(function () {
2468
+ var regexpUnsupportedNcg = fails$d(function () {
2402
2469
  var re = $RegExp('(?<a>b)', 'g');
2403
2470
  return re.exec('b').groups.a !== 'b' ||
2404
2471
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -2406,8 +2473,8 @@
2406
2473
 
2407
2474
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2408
2475
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2409
- var call$b = functionCall;
2410
- var uncurryThis$d = functionUncurryThis;
2476
+ var call$a = functionCall;
2477
+ var uncurryThis$c = functionUncurryThis;
2411
2478
  var toString$6 = toString$7;
2412
2479
  var regexpFlags = regexpFlags$1;
2413
2480
  var stickyHelpers$1 = regexpStickyHelpers;
@@ -2420,16 +2487,16 @@
2420
2487
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2421
2488
  var nativeExec = RegExp.prototype.exec;
2422
2489
  var patchedExec = nativeExec;
2423
- var charAt$4 = uncurryThis$d(''.charAt);
2424
- var indexOf = uncurryThis$d(''.indexOf);
2425
- var replace$2 = uncurryThis$d(''.replace);
2426
- var stringSlice$6 = uncurryThis$d(''.slice);
2490
+ var charAt$4 = uncurryThis$c(''.charAt);
2491
+ var indexOf = uncurryThis$c(''.indexOf);
2492
+ var replace$2 = uncurryThis$c(''.replace);
2493
+ var stringSlice$6 = uncurryThis$c(''.slice);
2427
2494
 
2428
2495
  var UPDATES_LAST_INDEX_WRONG = (function () {
2429
2496
  var re1 = /a/;
2430
2497
  var re2 = /b*/g;
2431
- call$b(nativeExec, re1, 'a');
2432
- call$b(nativeExec, re2, 'a');
2498
+ call$a(nativeExec, re1, 'a');
2499
+ call$a(nativeExec, re2, 'a');
2433
2500
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2434
2501
  })();
2435
2502
 
@@ -2450,14 +2517,14 @@
2450
2517
 
2451
2518
  if (raw) {
2452
2519
  raw.lastIndex = re.lastIndex;
2453
- result = call$b(patchedExec, raw, str);
2520
+ result = call$a(patchedExec, raw, str);
2454
2521
  re.lastIndex = raw.lastIndex;
2455
2522
  return result;
2456
2523
  }
2457
2524
 
2458
2525
  var groups = state.groups;
2459
2526
  var sticky = UNSUPPORTED_Y$1 && re.sticky;
2460
- var flags = call$b(regexpFlags, re);
2527
+ var flags = call$a(regexpFlags, re);
2461
2528
  var source = re.source;
2462
2529
  var charsAdded = 0;
2463
2530
  var strCopy = str;
@@ -2485,7 +2552,7 @@
2485
2552
  }
2486
2553
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2487
2554
 
2488
- match = call$b(nativeExec, sticky ? reCopy : re, strCopy);
2555
+ match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
2489
2556
 
2490
2557
  if (sticky) {
2491
2558
  if (match) {
@@ -2500,7 +2567,7 @@
2500
2567
  if (NPCG_INCLUDED && match && match.length > 1) {
2501
2568
  // Fix browsers whose `exec` methods don't consistently return `undefined`
2502
2569
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
2503
- call$b(nativeReplace, match[0], reCopy, function () {
2570
+ call$a(nativeReplace, match[0], reCopy, function () {
2504
2571
  for (i = 1; i < arguments.length - 2; i++) {
2505
2572
  if (arguments[i] === undefined) match[i] = undefined;
2506
2573
  }
@@ -2521,21 +2588,21 @@
2521
2588
 
2522
2589
  var regexpExec$3 = patchedExec;
2523
2590
 
2524
- var $$7 = _export;
2591
+ var $$6 = _export;
2525
2592
  var exec$1 = regexpExec$3;
2526
2593
 
2527
2594
  // `RegExp.prototype.exec` method
2528
2595
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2529
- $$7({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
2596
+ $$6({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
2530
2597
  exec: exec$1
2531
2598
  });
2532
2599
 
2533
2600
  // TODO: Remove from `core-js@4` since it's moved to entry points
2534
2601
 
2535
- var uncurryThis$c = functionUncurryThis;
2602
+ var uncurryThis$b = functionUncurryThis;
2536
2603
  var defineBuiltIn$6 = defineBuiltIn$a;
2537
2604
  var regexpExec$2 = regexpExec$3;
2538
- var fails$d = fails$r;
2605
+ var fails$c = fails$r;
2539
2606
  var wellKnownSymbol$b = wellKnownSymbol$m;
2540
2607
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$9;
2541
2608
 
@@ -2545,14 +2612,14 @@
2545
2612
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2546
2613
  var SYMBOL = wellKnownSymbol$b(KEY);
2547
2614
 
2548
- var DELEGATES_TO_SYMBOL = !fails$d(function () {
2615
+ var DELEGATES_TO_SYMBOL = !fails$c(function () {
2549
2616
  // String methods call symbol-named RegEp methods
2550
2617
  var O = {};
2551
2618
  O[SYMBOL] = function () { return 7; };
2552
2619
  return ''[KEY](O) != 7;
2553
2620
  });
2554
2621
 
2555
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$d(function () {
2622
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$c(function () {
2556
2623
  // Symbol-named RegExp methods call .exec
2557
2624
  var execCalled = false;
2558
2625
  var re = /a/;
@@ -2581,9 +2648,9 @@
2581
2648
  !DELEGATES_TO_EXEC ||
2582
2649
  FORCED
2583
2650
  ) {
2584
- var uncurriedNativeRegExpMethod = uncurryThis$c(/./[SYMBOL]);
2651
+ var uncurriedNativeRegExpMethod = uncurryThis$b(/./[SYMBOL]);
2585
2652
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2586
- var uncurriedNativeMethod = uncurryThis$c(nativeMethod);
2653
+ var uncurriedNativeMethod = uncurryThis$b(nativeMethod);
2587
2654
  var $exec = regexp.exec;
2588
2655
  if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) {
2589
2656
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
@@ -2604,337 +2671,6 @@
2604
2671
  if (SHAM) createNonEnumerableProperty$5(RegExpPrototype$2[SYMBOL], 'sham', true);
2605
2672
  };
2606
2673
 
2607
- var isObject$6 = isObject$e;
2608
- var classof$5 = classofRaw$1;
2609
- var wellKnownSymbol$a = wellKnownSymbol$m;
2610
-
2611
- var MATCH$1 = wellKnownSymbol$a('match');
2612
-
2613
- // `IsRegExp` abstract operation
2614
- // https://tc39.es/ecma262/#sec-isregexp
2615
- var isRegexp = function (it) {
2616
- var isRegExp;
2617
- return isObject$6(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
2618
- };
2619
-
2620
- var uncurryThis$b = functionUncurryThis;
2621
- var toIntegerOrInfinity$4 = toIntegerOrInfinity$7;
2622
- var toString$5 = toString$7;
2623
- var requireObjectCoercible$5 = requireObjectCoercible$8;
2624
-
2625
- var charAt$3 = uncurryThis$b(''.charAt);
2626
- var charCodeAt = uncurryThis$b(''.charCodeAt);
2627
- var stringSlice$5 = uncurryThis$b(''.slice);
2628
-
2629
- var createMethod$1 = function (CONVERT_TO_STRING) {
2630
- return function ($this, pos) {
2631
- var S = toString$5(requireObjectCoercible$5($this));
2632
- var position = toIntegerOrInfinity$4(pos);
2633
- var size = S.length;
2634
- var first, second;
2635
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2636
- first = charCodeAt(S, position);
2637
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2638
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2639
- ? CONVERT_TO_STRING
2640
- ? charAt$3(S, position)
2641
- : first
2642
- : CONVERT_TO_STRING
2643
- ? stringSlice$5(S, position, position + 2)
2644
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2645
- };
2646
- };
2647
-
2648
- var stringMultibyte = {
2649
- // `String.prototype.codePointAt` method
2650
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2651
- codeAt: createMethod$1(false),
2652
- // `String.prototype.at` method
2653
- // https://github.com/mathiasbynens/String.prototype.at
2654
- charAt: createMethod$1(true)
2655
- };
2656
-
2657
- var charAt$2 = stringMultibyte.charAt;
2658
-
2659
- // `AdvanceStringIndex` abstract operation
2660
- // https://tc39.es/ecma262/#sec-advancestringindex
2661
- var advanceStringIndex$2 = function (S, index, unicode) {
2662
- return index + (unicode ? charAt$2(S, index).length : 1);
2663
- };
2664
-
2665
- var toPropertyKey$1 = toPropertyKey$4;
2666
- var definePropertyModule$1 = objectDefineProperty;
2667
- var createPropertyDescriptor$3 = createPropertyDescriptor$6;
2668
-
2669
- var createProperty$1 = function (object, key, value) {
2670
- var propertyKey = toPropertyKey$1(key);
2671
- if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$3(0, value));
2672
- else object[propertyKey] = value;
2673
- };
2674
-
2675
- var global$i = global$V;
2676
- var toAbsoluteIndex$2 = toAbsoluteIndex$4;
2677
- var lengthOfArrayLike$4 = lengthOfArrayLike$7;
2678
- var createProperty = createProperty$1;
2679
-
2680
- var Array$4 = global$i.Array;
2681
- var max$1 = Math.max;
2682
-
2683
- var arraySliceSimple = function (O, start, end) {
2684
- var length = lengthOfArrayLike$4(O);
2685
- var k = toAbsoluteIndex$2(start, length);
2686
- var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
2687
- var result = Array$4(max$1(fin - k, 0));
2688
- for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
2689
- result.length = n;
2690
- return result;
2691
- };
2692
-
2693
- var global$h = global$V;
2694
- var call$a = functionCall;
2695
- var anObject$6 = anObject$i;
2696
- var isCallable$7 = isCallable$p;
2697
- var classof$4 = classofRaw$1;
2698
- var regexpExec$1 = regexpExec$3;
2699
-
2700
- var TypeError$4 = global$h.TypeError;
2701
-
2702
- // `RegExpExec` abstract operation
2703
- // https://tc39.es/ecma262/#sec-regexpexec
2704
- var regexpExecAbstract = function (R, S) {
2705
- var exec = R.exec;
2706
- if (isCallable$7(exec)) {
2707
- var result = call$a(exec, R, S);
2708
- if (result !== null) anObject$6(result);
2709
- return result;
2710
- }
2711
- if (classof$4(R) === 'RegExp') return call$a(regexpExec$1, R, S);
2712
- throw TypeError$4('RegExp#exec called on incompatible receiver');
2713
- };
2714
-
2715
- var apply$2 = functionApply;
2716
- var call$9 = functionCall;
2717
- var uncurryThis$a = functionUncurryThis;
2718
- var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2719
- var isRegExp$1 = isRegexp;
2720
- var anObject$5 = anObject$i;
2721
- var requireObjectCoercible$4 = requireObjectCoercible$8;
2722
- var speciesConstructor$1 = speciesConstructor$3;
2723
- var advanceStringIndex$1 = advanceStringIndex$2;
2724
- var toLength$7 = toLength$9;
2725
- var toString$4 = toString$7;
2726
- var getMethod$2 = getMethod$6;
2727
- var arraySlice$3 = arraySliceSimple;
2728
- var callRegExpExec = regexpExecAbstract;
2729
- var regexpExec = regexpExec$3;
2730
- var stickyHelpers = regexpStickyHelpers;
2731
- var fails$c = fails$r;
2732
-
2733
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
2734
- var MAX_UINT32 = 0xFFFFFFFF;
2735
- var min$3 = Math.min;
2736
- var $push = [].push;
2737
- var exec = uncurryThis$a(/./.exec);
2738
- var push$3 = uncurryThis$a($push);
2739
- var stringSlice$4 = uncurryThis$a(''.slice);
2740
-
2741
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
2742
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
2743
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$c(function () {
2744
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
2745
- var re = /(?:)/;
2746
- var originalExec = re.exec;
2747
- re.exec = function () { return originalExec.apply(this, arguments); };
2748
- var result = 'ab'.split(re);
2749
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
2750
- });
2751
-
2752
- // @@split logic
2753
- fixRegExpWellKnownSymbolLogic$2('split', function (SPLIT, nativeSplit, maybeCallNative) {
2754
- var internalSplit;
2755
- if (
2756
- 'abbc'.split(/(b)*/)[1] == 'c' ||
2757
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
2758
- 'test'.split(/(?:)/, -1).length != 4 ||
2759
- 'ab'.split(/(?:ab)*/).length != 2 ||
2760
- '.'.split(/(.?)(.?)/).length != 4 ||
2761
- // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
2762
- '.'.split(/()()/).length > 1 ||
2763
- ''.split(/.?/).length
2764
- ) {
2765
- // based on es5-shim implementation, need to rework it
2766
- internalSplit = function (separator, limit) {
2767
- var string = toString$4(requireObjectCoercible$4(this));
2768
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2769
- if (lim === 0) return [];
2770
- if (separator === undefined) return [string];
2771
- // If `separator` is not a regex, use native split
2772
- if (!isRegExp$1(separator)) {
2773
- return call$9(nativeSplit, string, separator, lim);
2774
- }
2775
- var output = [];
2776
- var flags = (separator.ignoreCase ? 'i' : '') +
2777
- (separator.multiline ? 'm' : '') +
2778
- (separator.unicode ? 'u' : '') +
2779
- (separator.sticky ? 'y' : '');
2780
- var lastLastIndex = 0;
2781
- // Make `global` and avoid `lastIndex` issues by working with a copy
2782
- var separatorCopy = new RegExp(separator.source, flags + 'g');
2783
- var match, lastIndex, lastLength;
2784
- while (match = call$9(regexpExec, separatorCopy, string)) {
2785
- lastIndex = separatorCopy.lastIndex;
2786
- if (lastIndex > lastLastIndex) {
2787
- push$3(output, stringSlice$4(string, lastLastIndex, match.index));
2788
- if (match.length > 1 && match.index < string.length) apply$2($push, output, arraySlice$3(match, 1));
2789
- lastLength = match[0].length;
2790
- lastLastIndex = lastIndex;
2791
- if (output.length >= lim) break;
2792
- }
2793
- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
2794
- }
2795
- if (lastLastIndex === string.length) {
2796
- if (lastLength || !exec(separatorCopy, '')) push$3(output, '');
2797
- } else push$3(output, stringSlice$4(string, lastLastIndex));
2798
- return output.length > lim ? arraySlice$3(output, 0, lim) : output;
2799
- };
2800
- // Chakra, V8
2801
- } else if ('0'.split(undefined, 0).length) {
2802
- internalSplit = function (separator, limit) {
2803
- return separator === undefined && limit === 0 ? [] : call$9(nativeSplit, this, separator, limit);
2804
- };
2805
- } else internalSplit = nativeSplit;
2806
-
2807
- return [
2808
- // `String.prototype.split` method
2809
- // https://tc39.es/ecma262/#sec-string.prototype.split
2810
- function split(separator, limit) {
2811
- var O = requireObjectCoercible$4(this);
2812
- var splitter = separator == undefined ? undefined : getMethod$2(separator, SPLIT);
2813
- return splitter
2814
- ? call$9(splitter, separator, O, limit)
2815
- : call$9(internalSplit, toString$4(O), separator, limit);
2816
- },
2817
- // `RegExp.prototype[@@split]` method
2818
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
2819
- //
2820
- // NOTE: This cannot be properly polyfilled in engines that don't support
2821
- // the 'y' flag.
2822
- function (string, limit) {
2823
- var rx = anObject$5(this);
2824
- var S = toString$4(string);
2825
- var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
2826
-
2827
- if (res.done) return res.value;
2828
-
2829
- var C = speciesConstructor$1(rx, RegExp);
2830
-
2831
- var unicodeMatching = rx.unicode;
2832
- var flags = (rx.ignoreCase ? 'i' : '') +
2833
- (rx.multiline ? 'm' : '') +
2834
- (rx.unicode ? 'u' : '') +
2835
- (UNSUPPORTED_Y ? 'g' : 'y');
2836
-
2837
- // ^(? + rx + ) is needed, in combination with some S slicing, to
2838
- // simulate the 'y' flag.
2839
- var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
2840
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2841
- if (lim === 0) return [];
2842
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
2843
- var p = 0;
2844
- var q = 0;
2845
- var A = [];
2846
- while (q < S.length) {
2847
- splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
2848
- var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$4(S, q) : S);
2849
- var e;
2850
- if (
2851
- z === null ||
2852
- (e = min$3(toLength$7(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
2853
- ) {
2854
- q = advanceStringIndex$1(S, q, unicodeMatching);
2855
- } else {
2856
- push$3(A, stringSlice$4(S, p, q));
2857
- if (A.length === lim) return A;
2858
- for (var i = 1; i <= z.length - 1; i++) {
2859
- push$3(A, z[i]);
2860
- if (A.length === lim) return A;
2861
- }
2862
- q = p = e;
2863
- }
2864
- }
2865
- push$3(A, stringSlice$4(S, p));
2866
- return A;
2867
- }
2868
- ];
2869
- }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
2870
-
2871
- var DESCRIPTORS$5 = descriptors;
2872
- var uncurryThis$9 = functionUncurryThis;
2873
- var call$8 = functionCall;
2874
- var fails$b = fails$r;
2875
- var objectKeys = objectKeys$2;
2876
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2877
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2878
- var toObject$5 = toObject$7;
2879
- var IndexedObject$1 = indexedObject;
2880
-
2881
- // eslint-disable-next-line es-x/no-object-assign -- safe
2882
- var $assign = Object.assign;
2883
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
2884
- var defineProperty$4 = Object.defineProperty;
2885
- var concat$1 = uncurryThis$9([].concat);
2886
-
2887
- // `Object.assign` method
2888
- // https://tc39.es/ecma262/#sec-object.assign
2889
- var objectAssign = !$assign || fails$b(function () {
2890
- // should have correct order of operations (Edge bug)
2891
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
2892
- enumerable: true,
2893
- get: function () {
2894
- defineProperty$4(this, 'b', {
2895
- value: 3,
2896
- enumerable: false
2897
- });
2898
- }
2899
- }), { b: 2 })).b !== 1) return true;
2900
- // should work with symbols and should have deterministic property order (V8 bug)
2901
- var A = {};
2902
- var B = {};
2903
- // eslint-disable-next-line es-x/no-symbol -- safe
2904
- var symbol = Symbol();
2905
- var alphabet = 'abcdefghijklmnopqrst';
2906
- A[symbol] = 7;
2907
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2908
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2909
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2910
- var T = toObject$5(target);
2911
- var argumentsLength = arguments.length;
2912
- var index = 1;
2913
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2914
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
2915
- while (argumentsLength > index) {
2916
- var S = IndexedObject$1(arguments[index++]);
2917
- var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2918
- var length = keys.length;
2919
- var j = 0;
2920
- var key;
2921
- while (length > j) {
2922
- key = keys[j++];
2923
- if (!DESCRIPTORS$5 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
2924
- }
2925
- } return T;
2926
- } : $assign;
2927
-
2928
- var $$6 = _export;
2929
- var assign = objectAssign;
2930
-
2931
- // `Object.assign` method
2932
- // https://tc39.es/ecma262/#sec-object.assign
2933
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
2934
- $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2935
- assign: assign
2936
- });
2937
-
2938
2674
  // `SameValue` abstract operation
2939
2675
  // https://tc39.es/ecma262/#sec-samevalue
2940
2676
  // eslint-disable-next-line es-x/no-object-is -- safe
@@ -2943,30 +2679,52 @@
2943
2679
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2944
2680
  };
2945
2681
 
2946
- var call$7 = functionCall;
2947
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2948
- var anObject$4 = anObject$i;
2949
- var requireObjectCoercible$3 = requireObjectCoercible$8;
2682
+ var global$i = global$V;
2683
+ var call$9 = functionCall;
2684
+ var anObject$6 = anObject$i;
2685
+ var isCallable$7 = isCallable$p;
2686
+ var classof$5 = classofRaw$1;
2687
+ var regexpExec$1 = regexpExec$3;
2688
+
2689
+ var TypeError$4 = global$i.TypeError;
2690
+
2691
+ // `RegExpExec` abstract operation
2692
+ // https://tc39.es/ecma262/#sec-regexpexec
2693
+ var regexpExecAbstract = function (R, S) {
2694
+ var exec = R.exec;
2695
+ if (isCallable$7(exec)) {
2696
+ var result = call$9(exec, R, S);
2697
+ if (result !== null) anObject$6(result);
2698
+ return result;
2699
+ }
2700
+ if (classof$5(R) === 'RegExp') return call$9(regexpExec$1, R, S);
2701
+ throw TypeError$4('RegExp#exec called on incompatible receiver');
2702
+ };
2703
+
2704
+ var call$8 = functionCall;
2705
+ var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2706
+ var anObject$5 = anObject$i;
2707
+ var requireObjectCoercible$5 = requireObjectCoercible$8;
2950
2708
  var sameValue = sameValue$1;
2951
- var toString$3 = toString$7;
2952
- var getMethod$1 = getMethod$6;
2709
+ var toString$5 = toString$7;
2710
+ var getMethod$2 = getMethod$6;
2953
2711
  var regExpExec$1 = regexpExecAbstract;
2954
2712
 
2955
2713
  // @@search logic
2956
- fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeCallNative) {
2714
+ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeCallNative) {
2957
2715
  return [
2958
2716
  // `String.prototype.search` method
2959
2717
  // https://tc39.es/ecma262/#sec-string.prototype.search
2960
2718
  function search(regexp) {
2961
- var O = requireObjectCoercible$3(this);
2962
- var searcher = regexp == undefined ? undefined : getMethod$1(regexp, SEARCH);
2963
- return searcher ? call$7(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$3(O));
2719
+ var O = requireObjectCoercible$5(this);
2720
+ var searcher = regexp == undefined ? undefined : getMethod$2(regexp, SEARCH);
2721
+ return searcher ? call$8(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$5(O));
2964
2722
  },
2965
2723
  // `RegExp.prototype[@@search]` method
2966
2724
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
2967
2725
  function (string) {
2968
- var rx = anObject$4(this);
2969
- var S = toString$3(string);
2726
+ var rx = anObject$5(this);
2727
+ var S = toString$5(string);
2970
2728
  var res = maybeCallNative(nativeSearch, rx, S);
2971
2729
 
2972
2730
  if (res.done) return res.value;
@@ -2980,11 +2738,11 @@
2980
2738
  ];
2981
2739
  });
2982
2740
 
2983
- var wellKnownSymbol$9 = wellKnownSymbol$m;
2741
+ var wellKnownSymbol$a = wellKnownSymbol$m;
2984
2742
  var create$3 = objectCreate;
2985
2743
  var defineProperty$3 = objectDefineProperty.f;
2986
2744
 
2987
- var UNSCOPABLES = wellKnownSymbol$9('unscopables');
2745
+ var UNSCOPABLES = wellKnownSymbol$a('unscopables');
2988
2746
  var ArrayPrototype = Array.prototype;
2989
2747
 
2990
2748
  // Array.prototype[@@unscopables]
@@ -3001,16 +2759,16 @@
3001
2759
  ArrayPrototype[UNSCOPABLES][key] = true;
3002
2760
  };
3003
2761
 
3004
- var fails$a = fails$r;
2762
+ var fails$b = fails$r;
3005
2763
 
3006
- var correctPrototypeGetter = !fails$a(function () {
2764
+ var correctPrototypeGetter = !fails$b(function () {
3007
2765
  function F() { /* empty */ }
3008
2766
  F.prototype.constructor = null;
3009
2767
  // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
3010
2768
  return Object.getPrototypeOf(new F()) !== F.prototype;
3011
2769
  });
3012
2770
 
3013
- var global$g = global$V;
2771
+ var global$h = global$V;
3014
2772
  var hasOwn$4 = hasOwnProperty_1;
3015
2773
  var isCallable$6 = isCallable$p;
3016
2774
  var toObject$4 = toObject$7;
@@ -3018,7 +2776,7 @@
3018
2776
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
3019
2777
 
3020
2778
  var IE_PROTO = sharedKey('IE_PROTO');
3021
- var Object$1 = global$g.Object;
2779
+ var Object$1 = global$h.Object;
3022
2780
  var ObjectPrototype$2 = Object$1.prototype;
3023
2781
 
3024
2782
  // `Object.getPrototypeOf` method
@@ -3032,13 +2790,13 @@
3032
2790
  } return object instanceof Object$1 ? ObjectPrototype$2 : null;
3033
2791
  };
3034
2792
 
3035
- var fails$9 = fails$r;
2793
+ var fails$a = fails$r;
3036
2794
  var isCallable$5 = isCallable$p;
3037
2795
  var getPrototypeOf$3 = objectGetPrototypeOf;
3038
2796
  var defineBuiltIn$5 = defineBuiltIn$a;
3039
- var wellKnownSymbol$8 = wellKnownSymbol$m;
2797
+ var wellKnownSymbol$9 = wellKnownSymbol$m;
3040
2798
 
3041
- var ITERATOR$4 = wellKnownSymbol$8('iterator');
2799
+ var ITERATOR$4 = wellKnownSymbol$9('iterator');
3042
2800
  var BUGGY_SAFARI_ITERATORS$1 = false;
3043
2801
 
3044
2802
  // `%IteratorPrototype%` object
@@ -3056,7 +2814,7 @@
3056
2814
  }
3057
2815
  }
3058
2816
 
3059
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$9(function () {
2817
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$a(function () {
3060
2818
  var test = {};
3061
2819
  // FF44- legacy iterators case
3062
2820
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
@@ -3079,7 +2837,7 @@
3079
2837
 
3080
2838
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
3081
2839
  var create$2 = objectCreate;
3082
- var createPropertyDescriptor$2 = createPropertyDescriptor$6;
2840
+ var createPropertyDescriptor$3 = createPropertyDescriptor$6;
3083
2841
  var setToStringTag$3 = setToStringTag$5;
3084
2842
  var Iterators$2 = iterators;
3085
2843
 
@@ -3087,14 +2845,14 @@
3087
2845
 
3088
2846
  var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
3089
2847
  var TO_STRING_TAG = NAME + ' Iterator';
3090
- IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
2848
+ IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$3(+!ENUMERABLE_NEXT, next) });
3091
2849
  setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
3092
2850
  Iterators$2[TO_STRING_TAG] = returnThis$1;
3093
2851
  return IteratorConstructor;
3094
2852
  };
3095
2853
 
3096
2854
  var $$5 = _export;
3097
- var call$6 = functionCall;
2855
+ var call$7 = functionCall;
3098
2856
  var FunctionName$1 = functionName;
3099
2857
  var isCallable$4 = isCallable$p;
3100
2858
  var createIteratorConstructor$1 = createIteratorConstructor$2;
@@ -3103,7 +2861,7 @@
3103
2861
  var setToStringTag$2 = setToStringTag$5;
3104
2862
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
3105
2863
  var defineBuiltIn$4 = defineBuiltIn$a;
3106
- var wellKnownSymbol$7 = wellKnownSymbol$m;
2864
+ var wellKnownSymbol$8 = wellKnownSymbol$m;
3107
2865
  var Iterators$1 = iterators;
3108
2866
  var IteratorsCore = iteratorsCore;
3109
2867
 
@@ -3111,7 +2869,7 @@
3111
2869
  var CONFIGURABLE_FUNCTION_NAME$1 = FunctionName$1.CONFIGURABLE;
3112
2870
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
3113
2871
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
3114
- var ITERATOR$3 = wellKnownSymbol$7('iterator');
2872
+ var ITERATOR$3 = wellKnownSymbol$8('iterator');
3115
2873
  var KEYS = 'keys';
3116
2874
  var VALUES = 'values';
3117
2875
  var ENTRIES = 'entries';
@@ -3163,7 +2921,7 @@
3163
2921
  createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
3164
2922
  } else {
3165
2923
  INCORRECT_VALUES_NAME = true;
3166
- defaultIterator = function values() { return call$6(nativeIterator, this); };
2924
+ defaultIterator = function values() { return call$7(nativeIterator, this); };
3167
2925
  }
3168
2926
  }
3169
2927
 
@@ -3294,15 +3052,15 @@
3294
3052
 
3295
3053
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3296
3054
 
3297
- var global$f = global$V;
3055
+ var global$g = global$V;
3298
3056
  var DOMIterables = domIterables;
3299
3057
  var DOMTokenListPrototype = domTokenListPrototype;
3300
3058
  var ArrayIteratorMethods = es_array_iterator;
3301
3059
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$9;
3302
- var wellKnownSymbol$6 = wellKnownSymbol$m;
3060
+ var wellKnownSymbol$7 = wellKnownSymbol$m;
3303
3061
 
3304
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
3305
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
3062
+ var ITERATOR$2 = wellKnownSymbol$7('iterator');
3063
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
3306
3064
  var ArrayValues = ArrayIteratorMethods.values;
3307
3065
 
3308
3066
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -3328,18 +3086,18 @@
3328
3086
  };
3329
3087
 
3330
3088
  for (var COLLECTION_NAME in DOMIterables) {
3331
- handlePrototype(global$f[COLLECTION_NAME] && global$f[COLLECTION_NAME].prototype, COLLECTION_NAME);
3089
+ handlePrototype(global$g[COLLECTION_NAME] && global$g[COLLECTION_NAME].prototype, COLLECTION_NAME);
3332
3090
  }
3333
3091
 
3334
3092
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3335
3093
 
3336
- var fails$8 = fails$r;
3337
- var wellKnownSymbol$5 = wellKnownSymbol$m;
3094
+ var fails$9 = fails$r;
3095
+ var wellKnownSymbol$6 = wellKnownSymbol$m;
3338
3096
  var IS_PURE = isPure;
3339
3097
 
3340
- var ITERATOR$1 = wellKnownSymbol$5('iterator');
3098
+ var ITERATOR$1 = wellKnownSymbol$6('iterator');
3341
3099
 
3342
- var nativeUrl = !fails$8(function () {
3100
+ var nativeUrl = !fails$9(function () {
3343
3101
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
3344
3102
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
3345
3103
  var searchParams = url.searchParams;
@@ -3375,7 +3133,35 @@
3375
3133
  return target;
3376
3134
  };
3377
3135
 
3378
- var arraySlice$2 = arraySliceSimple;
3136
+ var toPropertyKey$1 = toPropertyKey$4;
3137
+ var definePropertyModule$1 = objectDefineProperty;
3138
+ var createPropertyDescriptor$2 = createPropertyDescriptor$6;
3139
+
3140
+ var createProperty$1 = function (object, key, value) {
3141
+ var propertyKey = toPropertyKey$1(key);
3142
+ if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$2(0, value));
3143
+ else object[propertyKey] = value;
3144
+ };
3145
+
3146
+ var global$f = global$V;
3147
+ var toAbsoluteIndex$2 = toAbsoluteIndex$4;
3148
+ var lengthOfArrayLike$4 = lengthOfArrayLike$7;
3149
+ var createProperty = createProperty$1;
3150
+
3151
+ var Array$4 = global$f.Array;
3152
+ var max$1 = Math.max;
3153
+
3154
+ var arraySliceSimple = function (O, start, end) {
3155
+ var length = lengthOfArrayLike$4(O);
3156
+ var k = toAbsoluteIndex$2(start, length);
3157
+ var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
3158
+ var result = Array$4(max$1(fin - k, 0));
3159
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
3160
+ result.length = n;
3161
+ return result;
3162
+ };
3163
+
3164
+ var arraySlice$3 = arraySliceSimple;
3379
3165
 
3380
3166
  var floor$3 = Math.floor;
3381
3167
 
@@ -3384,8 +3170,8 @@
3384
3170
  var middle = floor$3(length / 2);
3385
3171
  return length < 8 ? insertionSort(array, comparefn) : merge(
3386
3172
  array,
3387
- mergeSort(arraySlice$2(array, 0, middle), comparefn),
3388
- mergeSort(arraySlice$2(array, middle), comparefn),
3173
+ mergeSort(arraySlice$3(array, 0, middle), comparefn),
3174
+ mergeSort(arraySlice$3(array, middle), comparefn),
3389
3175
  comparefn
3390
3176
  );
3391
3177
  };
@@ -3424,8 +3210,8 @@
3424
3210
 
3425
3211
  var $$4 = _export;
3426
3212
  var global$e = global$V;
3427
- var call$5 = functionCall;
3428
- var uncurryThis$8 = functionUncurryThis;
3213
+ var call$6 = functionCall;
3214
+ var uncurryThis$a = functionUncurryThis;
3429
3215
  var DESCRIPTORS$3 = descriptors;
3430
3216
  var USE_NATIVE_URL = nativeUrl;
3431
3217
  var defineBuiltIn$2 = defineBuiltIn$a;
@@ -3437,19 +3223,19 @@
3437
3223
  var isCallable$3 = isCallable$p;
3438
3224
  var hasOwn$3 = hasOwnProperty_1;
3439
3225
  var bind$2 = functionBindContext;
3440
- var classof$3 = classof$9;
3441
- var anObject$3 = anObject$i;
3442
- var isObject$5 = isObject$e;
3226
+ var classof$4 = classof$9;
3227
+ var anObject$4 = anObject$i;
3228
+ var isObject$6 = isObject$e;
3443
3229
  var $toString$1 = toString$7;
3444
3230
  var create$1 = objectCreate;
3445
3231
  var createPropertyDescriptor$1 = createPropertyDescriptor$6;
3446
3232
  var getIterator$1 = getIterator$3;
3447
3233
  var getIteratorMethod$1 = getIteratorMethod$4;
3448
3234
  var validateArgumentsLength = validateArgumentsLength$2;
3449
- var wellKnownSymbol$4 = wellKnownSymbol$m;
3235
+ var wellKnownSymbol$5 = wellKnownSymbol$m;
3450
3236
  var arraySort = arraySort$1;
3451
3237
 
3452
- var ITERATOR = wellKnownSymbol$4('iterator');
3238
+ var ITERATOR = wellKnownSymbol$5('iterator');
3453
3239
  var URL_SEARCH_PARAMS = 'URLSearchParams';
3454
3240
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
3455
3241
  var setInternalState$2 = InternalStateModule$2.set;
@@ -3474,14 +3260,14 @@
3474
3260
  var TypeError$3 = global$e.TypeError;
3475
3261
  var decodeURIComponent = global$e.decodeURIComponent;
3476
3262
  var encodeURIComponent$1 = global$e.encodeURIComponent;
3477
- var charAt$1 = uncurryThis$8(''.charAt);
3478
- var join = uncurryThis$8([].join);
3479
- var push$2 = uncurryThis$8([].push);
3480
- var replace$1 = uncurryThis$8(''.replace);
3481
- var shift = uncurryThis$8([].shift);
3482
- var splice = uncurryThis$8([].splice);
3483
- var split = uncurryThis$8(''.split);
3484
- var stringSlice$3 = uncurryThis$8(''.slice);
3263
+ var charAt$3 = uncurryThis$a(''.charAt);
3264
+ var join = uncurryThis$a([].join);
3265
+ var push$3 = uncurryThis$a([].push);
3266
+ var replace$1 = uncurryThis$a(''.replace);
3267
+ var shift = uncurryThis$a([].shift);
3268
+ var splice = uncurryThis$a([].splice);
3269
+ var split = uncurryThis$a(''.split);
3270
+ var stringSlice$5 = uncurryThis$a(''.slice);
3485
3271
 
3486
3272
  var plus = /\+/g;
3487
3273
  var sequences = Array(4);
@@ -3551,8 +3337,8 @@
3551
3337
  this.url = null;
3552
3338
 
3553
3339
  if (init !== undefined) {
3554
- if (isObject$5(init)) this.parseObject(init);
3555
- else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$3(init, 1) : init : $toString$1(init));
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$1(init));
3556
3342
  }
3557
3343
  };
3558
3344
 
@@ -3569,18 +3355,18 @@
3569
3355
  if (iteratorMethod) {
3570
3356
  iterator = getIterator$1(object, iteratorMethod);
3571
3357
  next = iterator.next;
3572
- while (!(step = call$5(next, iterator)).done) {
3573
- entryIterator = getIterator$1(anObject$3(step.value));
3358
+ while (!(step = call$6(next, iterator)).done) {
3359
+ entryIterator = getIterator$1(anObject$4(step.value));
3574
3360
  entryNext = entryIterator.next;
3575
3361
  if (
3576
- (first = call$5(entryNext, entryIterator)).done ||
3577
- (second = call$5(entryNext, entryIterator)).done ||
3578
- !call$5(entryNext, entryIterator).done
3362
+ (first = call$6(entryNext, entryIterator)).done ||
3363
+ (second = call$6(entryNext, entryIterator)).done ||
3364
+ !call$6(entryNext, entryIterator).done
3579
3365
  ) throw TypeError$3('Expected sequence with length 2');
3580
- push$2(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
3366
+ push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
3581
3367
  }
3582
3368
  } else for (var key in object) if (hasOwn$3(object, key)) {
3583
- push$2(this.entries, { key: key, value: $toString$1(object[key]) });
3369
+ push$3(this.entries, { key: key, value: $toString$1(object[key]) });
3584
3370
  }
3585
3371
  },
3586
3372
  parseQuery: function (query) {
@@ -3592,7 +3378,7 @@
3592
3378
  attribute = attributes[index++];
3593
3379
  if (attribute.length) {
3594
3380
  entry = split(attribute, '=');
3595
- push$2(this.entries, {
3381
+ push$3(this.entries, {
3596
3382
  key: deserialize(shift(entry)),
3597
3383
  value: deserialize(join(entry, '='))
3598
3384
  });
@@ -3607,7 +3393,7 @@
3607
3393
  var entry;
3608
3394
  while (index < entries.length) {
3609
3395
  entry = entries[index++];
3610
- push$2(result, serialize(entry.key) + '=' + serialize(entry.value));
3396
+ push$3(result, serialize(entry.key) + '=' + serialize(entry.value));
3611
3397
  } return join(result, '&');
3612
3398
  },
3613
3399
  update: function () {
@@ -3635,7 +3421,7 @@
3635
3421
  append: function append(name, value) {
3636
3422
  validateArgumentsLength(arguments.length, 2);
3637
3423
  var state = getInternalParamsState(this);
3638
- push$2(state.entries, { key: $toString$1(name), value: $toString$1(value) });
3424
+ push$3(state.entries, { key: $toString$1(name), value: $toString$1(value) });
3639
3425
  state.updateURL();
3640
3426
  },
3641
3427
  // `URLSearchParams.prototype.delete` method
@@ -3673,7 +3459,7 @@
3673
3459
  var result = [];
3674
3460
  var index = 0;
3675
3461
  for (; index < entries.length; index++) {
3676
- if (entries[index].key === key) push$2(result, entries[index].value);
3462
+ if (entries[index].key === key) push$3(result, entries[index].value);
3677
3463
  }
3678
3464
  return result;
3679
3465
  },
@@ -3710,7 +3496,7 @@
3710
3496
  }
3711
3497
  }
3712
3498
  }
3713
- if (!found) push$2(entries, { key: key, value: val });
3499
+ if (!found) push$3(entries, { key: key, value: val });
3714
3500
  state.updateURL();
3715
3501
  },
3716
3502
  // `URLSearchParams.prototype.sort` method
@@ -3764,14 +3550,14 @@
3764
3550
 
3765
3551
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
3766
3552
  if (!USE_NATIVE_URL && isCallable$3(Headers)) {
3767
- var headersHas = uncurryThis$8(HeadersPrototype.has);
3768
- var headersSet = uncurryThis$8(HeadersPrototype.set);
3553
+ var headersHas = uncurryThis$a(HeadersPrototype.has);
3554
+ var headersSet = uncurryThis$a(HeadersPrototype.set);
3769
3555
 
3770
3556
  var wrapRequestOptions = function (init) {
3771
- if (isObject$5(init)) {
3557
+ if (isObject$6(init)) {
3772
3558
  var body = init.body;
3773
3559
  var headers;
3774
- if (classof$3(body) === URL_SEARCH_PARAMS) {
3560
+ if (classof$4(body) === URL_SEARCH_PARAMS) {
3775
3561
  headers = init.headers ? new Headers(init.headers) : new Headers();
3776
3562
  if (!headersHas(headers, 'content-type')) {
3777
3563
  headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
@@ -3798,53 +3584,267 @@
3798
3584
  return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
3799
3585
  };
3800
3586
 
3801
- RequestPrototype.constructor = RequestConstructor;
3802
- RequestConstructor.prototype = RequestPrototype;
3803
-
3804
- $$4({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
3805
- Request: RequestConstructor
3806
- });
3807
- }
3808
- }
3809
-
3810
- var call$4 = functionCall;
3811
- var hasOwn$2 = hasOwnProperty_1;
3812
- var isPrototypeOf$2 = objectIsPrototypeOf;
3813
- var regExpFlags = regexpFlags$1;
3814
-
3815
- var RegExpPrototype$1 = RegExp.prototype;
3816
-
3817
- var regexpGetFlags = function (R) {
3818
- var flags = R.flags;
3819
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
3820
- ? call$4(regExpFlags, R) : flags;
3821
- };
3587
+ RequestPrototype.constructor = RequestConstructor;
3588
+ RequestConstructor.prototype = RequestPrototype;
3589
+
3590
+ $$4({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
3591
+ Request: RequestConstructor
3592
+ });
3593
+ }
3594
+ }
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
+ var isObject$5 = isObject$e;
3636
+ var classof$3 = classofRaw$1;
3637
+ var wellKnownSymbol$4 = wellKnownSymbol$m;
3638
+
3639
+ var MATCH$1 = wellKnownSymbol$4('match');
3640
+
3641
+ // `IsRegExp` abstract operation
3642
+ // https://tc39.es/ecma262/#sec-isregexp
3643
+ var isRegexp = function (it) {
3644
+ var isRegExp;
3645
+ return isObject$5(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp');
3646
+ };
3647
+
3648
+ var uncurryThis$9 = functionUncurryThis;
3649
+ var toIntegerOrInfinity$4 = toIntegerOrInfinity$7;
3650
+ var toString$4 = toString$7;
3651
+ var requireObjectCoercible$4 = requireObjectCoercible$8;
3652
+
3653
+ var charAt$2 = uncurryThis$9(''.charAt);
3654
+ var charCodeAt = uncurryThis$9(''.charCodeAt);
3655
+ var stringSlice$4 = uncurryThis$9(''.slice);
3656
+
3657
+ var createMethod$1 = function (CONVERT_TO_STRING) {
3658
+ return function ($this, pos) {
3659
+ var S = toString$4(requireObjectCoercible$4($this));
3660
+ var position = toIntegerOrInfinity$4(pos);
3661
+ var size = S.length;
3662
+ var first, second;
3663
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
3664
+ first = charCodeAt(S, position);
3665
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
3666
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
3667
+ ? CONVERT_TO_STRING
3668
+ ? charAt$2(S, position)
3669
+ : first
3670
+ : CONVERT_TO_STRING
3671
+ ? stringSlice$4(S, position, position + 2)
3672
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
3673
+ };
3674
+ };
3675
+
3676
+ var stringMultibyte = {
3677
+ // `String.prototype.codePointAt` method
3678
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
3679
+ codeAt: createMethod$1(false),
3680
+ // `String.prototype.at` method
3681
+ // https://github.com/mathiasbynens/String.prototype.at
3682
+ charAt: createMethod$1(true)
3683
+ };
3684
+
3685
+ var charAt$1 = stringMultibyte.charAt;
3686
+
3687
+ // `AdvanceStringIndex` abstract operation
3688
+ // https://tc39.es/ecma262/#sec-advancestringindex
3689
+ var advanceStringIndex$2 = function (S, index, unicode) {
3690
+ return index + (unicode ? charAt$1(S, index).length : 1);
3691
+ };
3692
+
3693
+ var apply$2 = functionApply;
3694
+ var call$4 = functionCall;
3695
+ var uncurryThis$8 = functionUncurryThis;
3696
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
3697
+ var isRegExp$1 = isRegexp;
3698
+ var anObject$2 = anObject$i;
3699
+ var requireObjectCoercible$3 = requireObjectCoercible$8;
3700
+ var speciesConstructor$1 = speciesConstructor$3;
3701
+ var advanceStringIndex$1 = advanceStringIndex$2;
3702
+ var toLength$7 = toLength$9;
3703
+ var toString$3 = toString$7;
3704
+ var getMethod$1 = getMethod$6;
3705
+ var arraySlice$2 = arraySliceSimple;
3706
+ var callRegExpExec = regexpExecAbstract;
3707
+ var regexpExec = regexpExec$3;
3708
+ var stickyHelpers = regexpStickyHelpers;
3709
+ var fails$7 = fails$r;
3710
+
3711
+ var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
3712
+ var MAX_UINT32 = 0xFFFFFFFF;
3713
+ var min$3 = Math.min;
3714
+ var $push = [].push;
3715
+ var exec = uncurryThis$8(/./.exec);
3716
+ var push$2 = uncurryThis$8($push);
3717
+ var stringSlice$3 = uncurryThis$8(''.slice);
3718
+
3719
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3720
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
3721
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$7(function () {
3722
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
3723
+ var re = /(?:)/;
3724
+ var originalExec = re.exec;
3725
+ re.exec = function () { return originalExec.apply(this, arguments); };
3726
+ var result = 'ab'.split(re);
3727
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
3728
+ });
3729
+
3730
+ // @@split logic
3731
+ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
3732
+ var internalSplit;
3733
+ if (
3734
+ 'abbc'.split(/(b)*/)[1] == 'c' ||
3735
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
3736
+ 'test'.split(/(?:)/, -1).length != 4 ||
3737
+ 'ab'.split(/(?:ab)*/).length != 2 ||
3738
+ '.'.split(/(.?)(.?)/).length != 4 ||
3739
+ // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
3740
+ '.'.split(/()()/).length > 1 ||
3741
+ ''.split(/.?/).length
3742
+ ) {
3743
+ // based on es5-shim implementation, need to rework it
3744
+ internalSplit = function (separator, limit) {
3745
+ var string = toString$3(requireObjectCoercible$3(this));
3746
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
3747
+ if (lim === 0) return [];
3748
+ if (separator === undefined) return [string];
3749
+ // If `separator` is not a regex, use native split
3750
+ if (!isRegExp$1(separator)) {
3751
+ return call$4(nativeSplit, string, separator, lim);
3752
+ }
3753
+ var output = [];
3754
+ var flags = (separator.ignoreCase ? 'i' : '') +
3755
+ (separator.multiline ? 'm' : '') +
3756
+ (separator.unicode ? 'u' : '') +
3757
+ (separator.sticky ? 'y' : '');
3758
+ var lastLastIndex = 0;
3759
+ // Make `global` and avoid `lastIndex` issues by working with a copy
3760
+ var separatorCopy = new RegExp(separator.source, flags + 'g');
3761
+ var match, lastIndex, lastLength;
3762
+ while (match = call$4(regexpExec, separatorCopy, string)) {
3763
+ lastIndex = separatorCopy.lastIndex;
3764
+ if (lastIndex > lastLastIndex) {
3765
+ push$2(output, stringSlice$3(string, lastLastIndex, match.index));
3766
+ if (match.length > 1 && match.index < string.length) apply$2($push, output, arraySlice$2(match, 1));
3767
+ lastLength = match[0].length;
3768
+ lastLastIndex = lastIndex;
3769
+ if (output.length >= lim) break;
3770
+ }
3771
+ if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
3772
+ }
3773
+ if (lastLastIndex === string.length) {
3774
+ if (lastLength || !exec(separatorCopy, '')) push$2(output, '');
3775
+ } else push$2(output, stringSlice$3(string, lastLastIndex));
3776
+ return output.length > lim ? arraySlice$2(output, 0, lim) : output;
3777
+ };
3778
+ // Chakra, V8
3779
+ } else if ('0'.split(undefined, 0).length) {
3780
+ internalSplit = function (separator, limit) {
3781
+ return separator === undefined && limit === 0 ? [] : call$4(nativeSplit, this, separator, limit);
3782
+ };
3783
+ } else internalSplit = nativeSplit;
3784
+
3785
+ return [
3786
+ // `String.prototype.split` method
3787
+ // https://tc39.es/ecma262/#sec-string.prototype.split
3788
+ function split(separator, limit) {
3789
+ var O = requireObjectCoercible$3(this);
3790
+ var splitter = separator == undefined ? undefined : getMethod$1(separator, SPLIT);
3791
+ return splitter
3792
+ ? call$4(splitter, separator, O, limit)
3793
+ : call$4(internalSplit, toString$3(O), separator, limit);
3794
+ },
3795
+ // `RegExp.prototype[@@split]` method
3796
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
3797
+ //
3798
+ // NOTE: This cannot be properly polyfilled in engines that don't support
3799
+ // the 'y' flag.
3800
+ function (string, limit) {
3801
+ var rx = anObject$2(this);
3802
+ var S = toString$3(string);
3803
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
3822
3804
 
3823
- var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
3824
- var defineBuiltIn$1 = defineBuiltIn$a;
3825
- var anObject$2 = anObject$i;
3826
- var $toString = toString$7;
3827
- var fails$7 = fails$r;
3828
- var getRegExpFlags = regexpGetFlags;
3805
+ if (res.done) return res.value;
3829
3806
 
3830
- var TO_STRING = 'toString';
3831
- var RegExpPrototype = RegExp.prototype;
3832
- var n$ToString = RegExpPrototype[TO_STRING];
3807
+ var C = speciesConstructor$1(rx, RegExp);
3833
3808
 
3834
- var NOT_GENERIC = fails$7(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3835
- // FF44- RegExp#toString has a wrong name
3836
- var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
3809
+ var unicodeMatching = rx.unicode;
3810
+ var flags = (rx.ignoreCase ? 'i' : '') +
3811
+ (rx.multiline ? 'm' : '') +
3812
+ (rx.unicode ? 'u' : '') +
3813
+ (UNSUPPORTED_Y ? 'g' : 'y');
3837
3814
 
3838
- // `RegExp.prototype.toString` method
3839
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
3840
- if (NOT_GENERIC || INCORRECT_NAME) {
3841
- defineBuiltIn$1(RegExp.prototype, TO_STRING, function toString() {
3842
- var R = anObject$2(this);
3843
- var pattern = $toString(R.source);
3844
- var flags = $toString(getRegExpFlags(R));
3845
- return '/' + pattern + '/' + flags;
3846
- }, { unsafe: true });
3847
- }
3815
+ // ^(? + rx + ) is needed, in combination with some S slicing, to
3816
+ // simulate the 'y' flag.
3817
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
3818
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
3819
+ if (lim === 0) return [];
3820
+ if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
3821
+ var p = 0;
3822
+ var q = 0;
3823
+ var A = [];
3824
+ while (q < S.length) {
3825
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
3826
+ var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$3(S, q) : S);
3827
+ var e;
3828
+ if (
3829
+ z === null ||
3830
+ (e = min$3(toLength$7(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
3831
+ ) {
3832
+ q = advanceStringIndex$1(S, q, unicodeMatching);
3833
+ } else {
3834
+ push$2(A, stringSlice$3(S, p, q));
3835
+ if (A.length === lim) return A;
3836
+ for (var i = 1; i <= z.length - 1; i++) {
3837
+ push$2(A, z[i]);
3838
+ if (A.length === lim) return A;
3839
+ }
3840
+ q = p = e;
3841
+ }
3842
+ }
3843
+ push$2(A, stringSlice$3(S, p));
3844
+ return A;
3845
+ }
3846
+ ];
3847
+ }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
3848
3848
 
3849
3849
  const DEFAULT_CONFIG = {
3850
3850
  autoLogin: true,
@@ -4442,12 +4442,193 @@
4442
4442
  }
4443
4443
  _Notification_pubnubKeys = new WeakMap(), _Notification_pubnub = new WeakMap(), _Notification_eventListeners = new WeakMap(), _Notification_initFirmChannel = new WeakMap(), _Notification_initUserChannel = new WeakMap(), _Notification_initUniqueSessionChannel = new WeakMap();
4444
4444
 
4445
+ var uncurryThis$7 = functionUncurryThis;
4446
+ var toObject$3 = toObject$7;
4447
+
4448
+ var floor$2 = Math.floor;
4449
+ var charAt = uncurryThis$7(''.charAt);
4450
+ var replace = uncurryThis$7(''.replace);
4451
+ var stringSlice$2 = uncurryThis$7(''.slice);
4452
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
4453
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
4454
+
4455
+ // `GetSubstitution` abstract operation
4456
+ // https://tc39.es/ecma262/#sec-getsubstitution
4457
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
4458
+ var tailPos = position + matched.length;
4459
+ var m = captures.length;
4460
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
4461
+ if (namedCaptures !== undefined) {
4462
+ namedCaptures = toObject$3(namedCaptures);
4463
+ symbols = SUBSTITUTION_SYMBOLS;
4464
+ }
4465
+ return replace(replacement, symbols, function (match, ch) {
4466
+ var capture;
4467
+ switch (charAt(ch, 0)) {
4468
+ case '$': return '$';
4469
+ case '&': return matched;
4470
+ case '`': return stringSlice$2(str, 0, position);
4471
+ case "'": return stringSlice$2(str, tailPos);
4472
+ case '<':
4473
+ capture = namedCaptures[stringSlice$2(ch, 1, -1)];
4474
+ break;
4475
+ default: // \d\d?
4476
+ var n = +ch;
4477
+ if (n === 0) return match;
4478
+ if (n > m) {
4479
+ var f = floor$2(n / 10);
4480
+ if (f === 0) return match;
4481
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
4482
+ return match;
4483
+ }
4484
+ capture = captures[n - 1];
4485
+ }
4486
+ return capture === undefined ? '' : capture;
4487
+ });
4488
+ };
4489
+
4490
+ var apply$1 = functionApply;
4491
+ var call$3 = functionCall;
4492
+ var uncurryThis$6 = functionUncurryThis;
4493
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
4494
+ var fails$6 = fails$r;
4495
+ var anObject$1 = anObject$i;
4496
+ var isCallable$2 = isCallable$p;
4497
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$7;
4498
+ var toLength$6 = toLength$9;
4499
+ var toString$2 = toString$7;
4500
+ var requireObjectCoercible$2 = requireObjectCoercible$8;
4501
+ var advanceStringIndex = advanceStringIndex$2;
4502
+ var getMethod = getMethod$6;
4503
+ var getSubstitution = getSubstitution$1;
4504
+ var regExpExec = regexpExecAbstract;
4505
+ var wellKnownSymbol$3 = wellKnownSymbol$m;
4506
+
4507
+ var REPLACE = wellKnownSymbol$3('replace');
4508
+ var max = Math.max;
4509
+ var min$2 = Math.min;
4510
+ var concat = uncurryThis$6([].concat);
4511
+ var push$1 = uncurryThis$6([].push);
4512
+ var stringIndexOf = uncurryThis$6(''.indexOf);
4513
+ var stringSlice$1 = uncurryThis$6(''.slice);
4514
+
4515
+ var maybeToString = function (it) {
4516
+ return it === undefined ? it : String(it);
4517
+ };
4518
+
4519
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
4520
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
4521
+ var REPLACE_KEEPS_$0 = (function () {
4522
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
4523
+ return 'a'.replace(/./, '$0') === '$0';
4524
+ })();
4525
+
4526
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
4527
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
4528
+ if (/./[REPLACE]) {
4529
+ return /./[REPLACE]('a', '$0') === '';
4530
+ }
4531
+ return false;
4532
+ })();
4533
+
4534
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$6(function () {
4535
+ var re = /./;
4536
+ re.exec = function () {
4537
+ var result = [];
4538
+ result.groups = { a: '7' };
4539
+ return result;
4540
+ };
4541
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
4542
+ return ''.replace(re, '$<a>') !== '7';
4543
+ });
4544
+
4545
+ // @@replace logic
4546
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
4547
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
4548
+
4549
+ return [
4550
+ // `String.prototype.replace` method
4551
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
4552
+ function replace(searchValue, replaceValue) {
4553
+ var O = requireObjectCoercible$2(this);
4554
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
4555
+ return replacer
4556
+ ? call$3(replacer, searchValue, O, replaceValue)
4557
+ : call$3(nativeReplace, toString$2(O), searchValue, replaceValue);
4558
+ },
4559
+ // `RegExp.prototype[@@replace]` method
4560
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4561
+ function (string, replaceValue) {
4562
+ var rx = anObject$1(this);
4563
+ var S = toString$2(string);
4564
+
4565
+ if (
4566
+ typeof replaceValue == 'string' &&
4567
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
4568
+ stringIndexOf(replaceValue, '$<') === -1
4569
+ ) {
4570
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
4571
+ if (res.done) return res.value;
4572
+ }
4573
+
4574
+ var functionalReplace = isCallable$2(replaceValue);
4575
+ if (!functionalReplace) replaceValue = toString$2(replaceValue);
4576
+
4577
+ var global = rx.global;
4578
+ if (global) {
4579
+ var fullUnicode = rx.unicode;
4580
+ rx.lastIndex = 0;
4581
+ }
4582
+ var results = [];
4583
+ while (true) {
4584
+ var result = regExpExec(rx, S);
4585
+ if (result === null) break;
4586
+
4587
+ push$1(results, result);
4588
+ if (!global) break;
4589
+
4590
+ var matchStr = toString$2(result[0]);
4591
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$6(rx.lastIndex), fullUnicode);
4592
+ }
4593
+
4594
+ var accumulatedResult = '';
4595
+ var nextSourcePosition = 0;
4596
+ for (var i = 0; i < results.length; i++) {
4597
+ result = results[i];
4598
+
4599
+ var matched = toString$2(result[0]);
4600
+ var position = max(min$2(toIntegerOrInfinity$3(result.index), S.length), 0);
4601
+ var captures = [];
4602
+ // NOTE: This is equivalent to
4603
+ // captures = result.slice(1).map(maybeToString)
4604
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
4605
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
4606
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
4607
+ for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
4608
+ var namedCaptures = result.groups;
4609
+ if (functionalReplace) {
4610
+ var replacerArgs = concat([matched], captures, position, S);
4611
+ if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
4612
+ var replacement = toString$2(apply$1(replaceValue, undefined, replacerArgs));
4613
+ } else {
4614
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
4615
+ }
4616
+ if (position >= nextSourcePosition) {
4617
+ accumulatedResult += stringSlice$1(S, nextSourcePosition, position) + replacement;
4618
+ nextSourcePosition = position + matched.length;
4619
+ }
4620
+ }
4621
+ return accumulatedResult + stringSlice$1(S, nextSourcePosition);
4622
+ }
4623
+ ];
4624
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
4625
+
4445
4626
  // eslint-disable-next-line es-x/no-typed-arrays -- safe
4446
4627
  var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
4447
4628
 
4448
4629
  var global$d = global$V;
4449
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$7;
4450
- var toLength$6 = toLength$9;
4630
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$7;
4631
+ var toLength$5 = toLength$9;
4451
4632
 
4452
4633
  var RangeError$5 = global$d.RangeError;
4453
4634
 
@@ -4455,8 +4636,8 @@
4455
4636
  // https://tc39.es/ecma262/#sec-toindex
4456
4637
  var toIndex$2 = function (it) {
4457
4638
  if (it === undefined) return 0;
4458
- var number = toIntegerOrInfinity$3(it);
4459
- var length = toLength$6(number);
4639
+ var number = toIntegerOrInfinity$2(it);
4640
+ var length = toLength$5(number);
4460
4641
  if (number !== length) throw RangeError$5('Wrong length or index');
4461
4642
  return length;
4462
4643
  };
@@ -4467,7 +4648,7 @@
4467
4648
  var Array$3 = global$c.Array;
4468
4649
  var abs = Math.abs;
4469
4650
  var pow = Math.pow;
4470
- var floor$2 = Math.floor;
4651
+ var floor$1 = Math.floor;
4471
4652
  var log = Math.log;
4472
4653
  var LN2 = Math.LN2;
4473
4654
 
@@ -4487,7 +4668,7 @@
4487
4668
  mantissa = number != number ? 1 : 0;
4488
4669
  exponent = eMax;
4489
4670
  } else {
4490
- exponent = floor$2(log(number) / LN2);
4671
+ exponent = floor$1(log(number) / LN2);
4491
4672
  c = pow(2, -exponent);
4492
4673
  if (number * c < 1) {
4493
4674
  exponent--;
@@ -4566,14 +4747,14 @@
4566
4747
  unpack: unpack
4567
4748
  };
4568
4749
 
4569
- var toObject$3 = toObject$7;
4750
+ var toObject$2 = toObject$7;
4570
4751
  var toAbsoluteIndex$1 = toAbsoluteIndex$4;
4571
4752
  var lengthOfArrayLike$3 = lengthOfArrayLike$7;
4572
4753
 
4573
4754
  // `Array.prototype.fill` method implementation
4574
4755
  // https://tc39.es/ecma262/#sec-array.prototype.fill
4575
4756
  var arrayFill$1 = function fill(value /* , start = 0, end = @length */) {
4576
- var O = toObject$3(this);
4757
+ var O = toObject$2(this);
4577
4758
  var length = lengthOfArrayLike$3(O);
4578
4759
  var argumentsLength = arguments.length;
4579
4760
  var index = toAbsoluteIndex$1(argumentsLength > 1 ? arguments[1] : undefined, length);
@@ -4584,16 +4765,16 @@
4584
4765
  };
4585
4766
 
4586
4767
  var global$b = global$V;
4587
- var uncurryThis$7 = functionUncurryThis;
4768
+ var uncurryThis$5 = functionUncurryThis;
4588
4769
  var DESCRIPTORS$2 = descriptors;
4589
4770
  var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative;
4590
4771
  var FunctionName = functionName;
4591
4772
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
4592
4773
  var defineBuiltIns = defineBuiltIns$2;
4593
- var fails$6 = fails$r;
4774
+ var fails$5 = fails$r;
4594
4775
  var anInstance$1 = anInstance$4;
4595
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$7;
4596
- var toLength$5 = toLength$9;
4776
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$7;
4777
+ var toLength$4 = toLength$9;
4597
4778
  var toIndex$1 = toIndex$2;
4598
4779
  var IEEE754 = ieee754;
4599
4780
  var getPrototypeOf$1 = objectGetPrototypeOf;
@@ -4622,8 +4803,8 @@
4622
4803
  var ObjectPrototype$1 = Object.prototype;
4623
4804
  var Array$2 = global$b.Array;
4624
4805
  var RangeError$4 = global$b.RangeError;
4625
- var fill = uncurryThis$7(arrayFill);
4626
- var reverse = uncurryThis$7([].reverse);
4806
+ var fill = uncurryThis$5(arrayFill);
4807
+ var reverse = uncurryThis$5([].reverse);
4627
4808
 
4628
4809
  var packIEEE754 = IEEE754.pack;
4629
4810
  var unpackIEEE754 = IEEE754.unpack;
@@ -4693,9 +4874,9 @@
4693
4874
  anInstance$1(this, DataViewPrototype$1);
4694
4875
  anInstance$1(buffer, ArrayBufferPrototype$1);
4695
4876
  var bufferLength = getInternalState$1(buffer).byteLength;
4696
- var offset = toIntegerOrInfinity$2(byteOffset);
4877
+ var offset = toIntegerOrInfinity$1(byteOffset);
4697
4878
  if (offset < 0 || offset > bufferLength) throw RangeError$4('Wrong offset');
4698
- byteLength = byteLength === undefined ? bufferLength - offset : toLength$5(byteLength);
4879
+ byteLength = byteLength === undefined ? bufferLength - offset : toLength$4(byteLength);
4699
4880
  if (offset + byteLength > bufferLength) throw RangeError$4(WRONG_LENGTH$1);
4700
4881
  setInternalState$1(this, {
4701
4882
  buffer: buffer,
@@ -4773,11 +4954,11 @@
4773
4954
  } else {
4774
4955
  var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
4775
4956
  /* eslint-disable no-new -- required for testing */
4776
- if (!fails$6(function () {
4957
+ if (!fails$5(function () {
4777
4958
  NativeArrayBuffer(1);
4778
- }) || !fails$6(function () {
4959
+ }) || !fails$5(function () {
4779
4960
  new NativeArrayBuffer(-1);
4780
- }) || fails$6(function () {
4961
+ }) || fails$5(function () {
4781
4962
  new NativeArrayBuffer();
4782
4963
  new NativeArrayBuffer(1.5);
4783
4964
  new NativeArrayBuffer(NaN);
@@ -4809,7 +4990,7 @@
4809
4990
 
4810
4991
  // iOS Safari 7.x bug
4811
4992
  var testView = new $DataView(new $ArrayBuffer(2));
4812
- var $setInt8 = uncurryThis$7(DataViewPrototype$1.setInt8);
4993
+ var $setInt8 = uncurryThis$5(DataViewPrototype$1.setInt8);
4813
4994
  testView.setInt8(0, 2147483648);
4814
4995
  testView.setInt8(1, 2147483649);
4815
4996
  if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns(DataViewPrototype$1, {
@@ -4831,22 +5012,22 @@
4831
5012
  };
4832
5013
 
4833
5014
  var $$3 = _export;
4834
- var uncurryThis$6 = functionUncurryThis;
4835
- var fails$5 = fails$r;
5015
+ var uncurryThis$4 = functionUncurryThis;
5016
+ var fails$4 = fails$r;
4836
5017
  var ArrayBufferModule$1 = arrayBuffer;
4837
- var anObject$1 = anObject$i;
5018
+ var anObject = anObject$i;
4838
5019
  var toAbsoluteIndex = toAbsoluteIndex$4;
4839
- var toLength$4 = toLength$9;
5020
+ var toLength$3 = toLength$9;
4840
5021
  var speciesConstructor = speciesConstructor$3;
4841
5022
 
4842
5023
  var ArrayBuffer$3 = ArrayBufferModule$1.ArrayBuffer;
4843
5024
  var DataView$2 = ArrayBufferModule$1.DataView;
4844
5025
  var DataViewPrototype = DataView$2.prototype;
4845
- var un$ArrayBufferSlice = uncurryThis$6(ArrayBuffer$3.prototype.slice);
4846
- var getUint8 = uncurryThis$6(DataViewPrototype.getUint8);
4847
- var setUint8 = uncurryThis$6(DataViewPrototype.setUint8);
5026
+ var un$ArrayBufferSlice = uncurryThis$4(ArrayBuffer$3.prototype.slice);
5027
+ var getUint8 = uncurryThis$4(DataViewPrototype.getUint8);
5028
+ var setUint8 = uncurryThis$4(DataViewPrototype.setUint8);
4848
5029
 
4849
- var INCORRECT_SLICE = fails$5(function () {
5030
+ var INCORRECT_SLICE = fails$4(function () {
4850
5031
  return !new ArrayBuffer$3(2).slice(1, undefined).byteLength;
4851
5032
  });
4852
5033
 
@@ -4855,12 +5036,12 @@
4855
5036
  $$3({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
4856
5037
  slice: function slice(start, end) {
4857
5038
  if (un$ArrayBufferSlice && end === undefined) {
4858
- return un$ArrayBufferSlice(anObject$1(this), start); // FF fix
5039
+ return un$ArrayBufferSlice(anObject(this), start); // FF fix
4859
5040
  }
4860
- var length = anObject$1(this).byteLength;
5041
+ var length = anObject(this).byteLength;
4861
5042
  var first = toAbsoluteIndex(start, length);
4862
5043
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
4863
- var result = new (speciesConstructor(this, ArrayBuffer$3))(toLength$4(fin - first));
5044
+ var result = new (speciesConstructor(this, ArrayBuffer$3))(toLength$3(fin - first));
4864
5045
  var viewSource = new DataView$2(this);
4865
5046
  var viewTarget = new DataView$2(result);
4866
5047
  var index = 0;
@@ -4875,7 +5056,7 @@
4875
5056
  var NATIVE_ARRAY_BUFFER = arrayBufferNative;
4876
5057
  var DESCRIPTORS$1 = descriptors;
4877
5058
  var global$a = global$V;
4878
- var isCallable$2 = isCallable$p;
5059
+ var isCallable$1 = isCallable$p;
4879
5060
  var isObject$4 = isObject$e;
4880
5061
  var hasOwn$1 = hasOwnProperty_1;
4881
5062
  var classof$2 = classof$9;
@@ -4886,7 +5067,7 @@
4886
5067
  var isPrototypeOf$1 = objectIsPrototypeOf;
4887
5068
  var getPrototypeOf = objectGetPrototypeOf;
4888
5069
  var setPrototypeOf$2 = objectSetPrototypeOf;
4889
- var wellKnownSymbol$3 = wellKnownSymbol$m;
5070
+ var wellKnownSymbol$2 = wellKnownSymbol$m;
4890
5071
  var uid = uid$3;
4891
5072
 
4892
5073
  var Int8Array$3 = global$a.Int8Array;
@@ -4898,7 +5079,7 @@
4898
5079
  var ObjectPrototype = Object.prototype;
4899
5080
  var TypeError$2 = global$a.TypeError;
4900
5081
 
4901
- var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
5082
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
4902
5083
  var TYPED_ARRAY_TAG$1 = uid('TYPED_ARRAY_TAG');
4903
5084
  var TYPED_ARRAY_CONSTRUCTOR$1 = uid('TYPED_ARRAY_CONSTRUCTOR');
4904
5085
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
@@ -4944,7 +5125,7 @@
4944
5125
  };
4945
5126
 
4946
5127
  var aTypedArrayConstructor$2 = function (C) {
4947
- if (isCallable$2(C) && (!setPrototypeOf$2 || isPrototypeOf$1(TypedArray$1, C))) return C;
5128
+ if (isCallable$1(C) && (!setPrototypeOf$2 || isPrototypeOf$1(TypedArray$1, C))) return C;
4948
5129
  throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
4949
5130
  };
4950
5131
 
@@ -5006,7 +5187,7 @@
5006
5187
  }
5007
5188
 
5008
5189
  // WebKit bug - typed arrays constructors prototype is Object.prototype
5009
- if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable$2(TypedArray$1) || TypedArray$1 === Function.prototype) {
5190
+ if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable$1(TypedArray$1) || TypedArray$1 === Function.prototype) {
5010
5191
  // eslint-disable-next-line no-shadow -- safe
5011
5192
  TypedArray$1 = function TypedArray() {
5012
5193
  throw TypeError$2('Incorrect invocation');
@@ -5055,45 +5236,45 @@
5055
5236
  /* eslint-disable no-new -- required for testing */
5056
5237
 
5057
5238
  var global$9 = global$V;
5058
- var fails$4 = fails$r;
5239
+ var fails$3 = fails$r;
5059
5240
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
5060
5241
  var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
5061
5242
 
5062
5243
  var ArrayBuffer$2 = global$9.ArrayBuffer;
5063
5244
  var Int8Array$2 = global$9.Int8Array;
5064
5245
 
5065
- var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$4(function () {
5246
+ var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$3(function () {
5066
5247
  Int8Array$2(1);
5067
- }) || !fails$4(function () {
5248
+ }) || !fails$3(function () {
5068
5249
  new Int8Array$2(-1);
5069
5250
  }) || !checkCorrectnessOfIteration(function (iterable) {
5070
5251
  new Int8Array$2();
5071
5252
  new Int8Array$2(null);
5072
5253
  new Int8Array$2(1.5);
5073
5254
  new Int8Array$2(iterable);
5074
- }, true) || fails$4(function () {
5255
+ }, true) || fails$3(function () {
5075
5256
  // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
5076
5257
  return new Int8Array$2(new ArrayBuffer$2(2), 1, undefined).length !== 1;
5077
5258
  });
5078
5259
 
5079
5260
  var isObject$3 = isObject$e;
5080
5261
 
5081
- var floor$1 = Math.floor;
5262
+ var floor = Math.floor;
5082
5263
 
5083
5264
  // `IsIntegralNumber` abstract operation
5084
5265
  // https://tc39.es/ecma262/#sec-isintegralnumber
5085
5266
  // eslint-disable-next-line es-x/no-number-isinteger -- safe
5086
5267
  var isIntegralNumber$1 = Number.isInteger || function isInteger(it) {
5087
- return !isObject$3(it) && isFinite(it) && floor$1(it) === it;
5268
+ return !isObject$3(it) && isFinite(it) && floor(it) === it;
5088
5269
  };
5089
5270
 
5090
5271
  var global$8 = global$V;
5091
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$7;
5272
+ var toIntegerOrInfinity = toIntegerOrInfinity$7;
5092
5273
 
5093
5274
  var RangeError$3 = global$8.RangeError;
5094
5275
 
5095
5276
  var toPositiveInteger$1 = function (it) {
5096
- var result = toIntegerOrInfinity$1(it);
5277
+ var result = toIntegerOrInfinity(it);
5097
5278
  if (result < 0) throw RangeError$3("The argument can't be less than 0");
5098
5279
  return result;
5099
5280
  };
@@ -5110,9 +5291,9 @@
5110
5291
  };
5111
5292
 
5112
5293
  var bind$1 = functionBindContext;
5113
- var call$3 = functionCall;
5294
+ var call$2 = functionCall;
5114
5295
  var aConstructor = aConstructor$2;
5115
- var toObject$2 = toObject$7;
5296
+ var toObject$1 = toObject$7;
5116
5297
  var lengthOfArrayLike$2 = lengthOfArrayLike$7;
5117
5298
  var getIterator = getIterator$3;
5118
5299
  var getIteratorMethod = getIteratorMethod$4;
@@ -5121,7 +5302,7 @@
5121
5302
 
5122
5303
  var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
5123
5304
  var C = aConstructor(this);
5124
- var O = toObject$2(source);
5305
+ var O = toObject$1(source);
5125
5306
  var argumentsLength = arguments.length;
5126
5307
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
5127
5308
  var mapping = mapfn !== undefined;
@@ -5131,7 +5312,7 @@
5131
5312
  iterator = getIterator(O, iteratorMethod);
5132
5313
  next = iterator.next;
5133
5314
  O = [];
5134
- while (!(step = call$3(next, iterator)).done) {
5315
+ while (!(step = call$2(next, iterator)).done) {
5135
5316
  O.push(step.value);
5136
5317
  }
5137
5318
  }
@@ -5159,9 +5340,9 @@
5159
5340
  var isArray = isArray$1;
5160
5341
  var isConstructor = isConstructor$2;
5161
5342
  var isObject$2 = isObject$e;
5162
- var wellKnownSymbol$2 = wellKnownSymbol$m;
5343
+ var wellKnownSymbol$1 = wellKnownSymbol$m;
5163
5344
 
5164
- var SPECIES = wellKnownSymbol$2('species');
5345
+ var SPECIES = wellKnownSymbol$1('species');
5165
5346
  var Array$1 = global$6.Array;
5166
5347
 
5167
5348
  // a part of `ArraySpeciesCreate` abstract operation
@@ -5188,13 +5369,13 @@
5188
5369
  };
5189
5370
 
5190
5371
  var bind = functionBindContext;
5191
- var uncurryThis$5 = functionUncurryThis;
5372
+ var uncurryThis$3 = functionUncurryThis;
5192
5373
  var IndexedObject = indexedObject;
5193
- var toObject$1 = toObject$7;
5374
+ var toObject = toObject$7;
5194
5375
  var lengthOfArrayLike$1 = lengthOfArrayLike$7;
5195
5376
  var arraySpeciesCreate = arraySpeciesCreate$1;
5196
5377
 
5197
- var push$1 = uncurryThis$5([].push);
5378
+ var push = uncurryThis$3([].push);
5198
5379
 
5199
5380
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
5200
5381
  var createMethod = function (TYPE) {
@@ -5206,7 +5387,7 @@
5206
5387
  var IS_FILTER_REJECT = TYPE == 7;
5207
5388
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
5208
5389
  return function ($this, callbackfn, that, specificCreate) {
5209
- var O = toObject$1($this);
5390
+ var O = toObject($this);
5210
5391
  var self = IndexedObject(O);
5211
5392
  var boundFunction = bind(callbackfn, that);
5212
5393
  var length = lengthOfArrayLike$1(self);
@@ -5223,10 +5404,10 @@
5223
5404
  case 3: return true; // some
5224
5405
  case 5: return value; // find
5225
5406
  case 6: return index; // findIndex
5226
- case 2: push$1(target, value); // filter
5407
+ case 2: push(target, value); // filter
5227
5408
  } else switch (TYPE) {
5228
5409
  case 4: return false; // every
5229
- case 7: push$1(target, value); // filterReject
5410
+ case 7: push(target, value); // filterReject
5230
5411
  }
5231
5412
  }
5232
5413
  }
@@ -5261,7 +5442,7 @@
5261
5442
  filterReject: createMethod(7)
5262
5443
  };
5263
5444
 
5264
- var isCallable$1 = isCallable$p;
5445
+ var isCallable = isCallable$p;
5265
5446
  var isObject$1 = isObject$e;
5266
5447
  var setPrototypeOf$1 = objectSetPrototypeOf;
5267
5448
 
@@ -5272,7 +5453,7 @@
5272
5453
  // it can work only with native `setPrototypeOf`
5273
5454
  setPrototypeOf$1 &&
5274
5455
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
5275
- isCallable$1(NewTarget = dummy.constructor) &&
5456
+ isCallable(NewTarget = dummy.constructor) &&
5276
5457
  NewTarget !== Wrapper &&
5277
5458
  isObject$1(NewTargetPrototype = NewTarget.prototype) &&
5278
5459
  NewTargetPrototype !== Wrapper.prototype
@@ -5282,7 +5463,7 @@
5282
5463
 
5283
5464
  var $$2 = _export;
5284
5465
  var global$5 = global$V;
5285
- var call$2 = functionCall;
5466
+ var call$1 = functionCall;
5286
5467
  var DESCRIPTORS = descriptors;
5287
5468
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
5288
5469
  var ArrayBufferViewCore$3 = arrayBufferViewCore;
@@ -5291,7 +5472,7 @@
5291
5472
  var createPropertyDescriptor = createPropertyDescriptor$6;
5292
5473
  var createNonEnumerableProperty = createNonEnumerableProperty$9;
5293
5474
  var isIntegralNumber = isIntegralNumber$1;
5294
- var toLength$3 = toLength$9;
5475
+ var toLength$2 = toLength$9;
5295
5476
  var toIndex = toIndex$2;
5296
5477
  var toOffset$1 = toOffset$2;
5297
5478
  var toPropertyKey = toPropertyKey$4;
@@ -5449,14 +5630,14 @@
5449
5630
  byteLength = $len - byteOffset;
5450
5631
  if (byteLength < 0) throw RangeError$1(WRONG_LENGTH);
5451
5632
  } else {
5452
- byteLength = toLength$3($length) * BYTES;
5633
+ byteLength = toLength$2($length) * BYTES;
5453
5634
  if (byteLength + byteOffset > $len) throw RangeError$1(WRONG_LENGTH);
5454
5635
  }
5455
5636
  length = byteLength / BYTES;
5456
5637
  } else if (isTypedArray(data)) {
5457
5638
  return fromList(TypedArrayConstructor, data);
5458
5639
  } else {
5459
- return call$2(typedArrayFrom, TypedArrayConstructor, data);
5640
+ return call$1(typedArrayFrom, TypedArrayConstructor, data);
5460
5641
  }
5461
5642
  setInternalState(that, {
5462
5643
  buffer: buffer,
@@ -5481,7 +5662,7 @@
5481
5662
  ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES))
5482
5663
  : new NativeTypedArrayConstructor(data);
5483
5664
  if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
5484
- return call$2(typedArrayFrom, TypedArrayConstructor, data);
5665
+ return call$1(typedArrayFrom, TypedArrayConstructor, data);
5485
5666
  }(), dummy, TypedArrayConstructor);
5486
5667
  });
5487
5668
 
@@ -5533,12 +5714,12 @@
5533
5714
  });
5534
5715
 
5535
5716
  var global$4 = global$V;
5536
- var call$1 = functionCall;
5717
+ var call = functionCall;
5537
5718
  var ArrayBufferViewCore$2 = arrayBufferViewCore;
5538
5719
  var lengthOfArrayLike = lengthOfArrayLike$7;
5539
5720
  var toOffset = toOffset$2;
5540
5721
  var toIndexedObject = toObject$7;
5541
- var fails$3 = fails$r;
5722
+ var fails$2 = fails$r;
5542
5723
 
5543
5724
  var RangeError = global$4.RangeError;
5544
5725
  var Int8Array$1 = global$4.Int8Array;
@@ -5547,15 +5728,15 @@
5547
5728
  var aTypedArray$2 = ArrayBufferViewCore$2.aTypedArray;
5548
5729
  var exportTypedArrayMethod$2 = ArrayBufferViewCore$2.exportTypedArrayMethod;
5549
5730
 
5550
- var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails$3(function () {
5731
+ var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails$2(function () {
5551
5732
  // eslint-disable-next-line es-x/no-typed-arrays -- required for testing
5552
5733
  var array = new Uint8ClampedArray(2);
5553
- call$1($set, array, { length: 1, 0: 3 }, 1);
5734
+ call($set, array, { length: 1, 0: 3 }, 1);
5554
5735
  return array[1] !== 3;
5555
5736
  });
5556
5737
 
5557
5738
  // https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
5558
- var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$2.NATIVE_ARRAY_BUFFER_VIEWS && fails$3(function () {
5739
+ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$2.NATIVE_ARRAY_BUFFER_VIEWS && fails$2(function () {
5559
5740
  var array = new Int8Array$1(2);
5560
5741
  array.set(1);
5561
5742
  array.set('2', 1);
@@ -5568,7 +5749,7 @@
5568
5749
  aTypedArray$2(this);
5569
5750
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
5570
5751
  var src = toIndexedObject(arrayLike);
5571
- if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return call$1($set, this, src, offset);
5752
+ if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
5572
5753
  var length = this.length;
5573
5754
  var len = lengthOfArrayLike(src);
5574
5755
  var index = 0;
@@ -5593,8 +5774,8 @@
5593
5774
  var engineWebkitVersion = !!webkit && +webkit[1];
5594
5775
 
5595
5776
  var global$3 = global$V;
5596
- var uncurryThis$4 = functionUncurryThis;
5597
- var fails$2 = fails$r;
5777
+ var uncurryThis$2 = functionUncurryThis;
5778
+ var fails$1 = fails$r;
5598
5779
  var aCallable = aCallable$8;
5599
5780
  var internalSort = arraySort$1;
5600
5781
  var ArrayBufferViewCore$1 = arrayBufferViewCore;
@@ -5606,16 +5787,16 @@
5606
5787
  var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
5607
5788
  var exportTypedArrayMethod$1 = ArrayBufferViewCore$1.exportTypedArrayMethod;
5608
5789
  var Uint16Array = global$3.Uint16Array;
5609
- var un$Sort = Uint16Array && uncurryThis$4(Uint16Array.prototype.sort);
5790
+ var un$Sort = Uint16Array && uncurryThis$2(Uint16Array.prototype.sort);
5610
5791
 
5611
5792
  // WebKit
5612
- var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails$2(function () {
5793
+ var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails$1(function () {
5613
5794
  un$Sort(new Uint16Array(2), null);
5614
- }) && fails$2(function () {
5795
+ }) && fails$1(function () {
5615
5796
  un$Sort(new Uint16Array(2), {});
5616
5797
  }));
5617
5798
 
5618
- var STABLE_SORT = !!un$Sort && !fails$2(function () {
5799
+ var STABLE_SORT = !!un$Sort && !fails$1(function () {
5619
5800
  // feature detection can be too slow, so check engines versions
5620
5801
  if (V8) return V8 < 74;
5621
5802
  if (FF) return FF < 67;
@@ -5663,9 +5844,9 @@
5663
5844
  }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
5664
5845
 
5665
5846
  var global$2 = global$V;
5666
- var apply$1 = functionApply;
5847
+ var apply = functionApply;
5667
5848
  var ArrayBufferViewCore = arrayBufferViewCore;
5668
- var fails$1 = fails$r;
5849
+ var fails = fails$r;
5669
5850
  var arraySlice = arraySlice$5;
5670
5851
 
5671
5852
  var Int8Array = global$2.Int8Array;
@@ -5674,207 +5855,26 @@
5674
5855
  var $toLocaleString = [].toLocaleString;
5675
5856
 
5676
5857
  // iOS Safari 6.x fails here
5677
- var TO_LOCALE_STRING_BUG = !!Int8Array && fails$1(function () {
5858
+ var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
5678
5859
  $toLocaleString.call(new Int8Array(1));
5679
5860
  });
5680
5861
 
5681
- var FORCED = fails$1(function () {
5862
+ var FORCED = fails(function () {
5682
5863
  return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
5683
- }) || !fails$1(function () {
5864
+ }) || !fails(function () {
5684
5865
  Int8Array.prototype.toLocaleString.call([1, 2]);
5685
5866
  });
5686
5867
 
5687
5868
  // `%TypedArray%.prototype.toLocaleString` method
5688
5869
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
5689
5870
  exportTypedArrayMethod('toLocaleString', function toLocaleString() {
5690
- return apply$1(
5871
+ return apply(
5691
5872
  $toLocaleString,
5692
5873
  TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this),
5693
5874
  arraySlice(arguments)
5694
5875
  );
5695
5876
  }, FORCED);
5696
5877
 
5697
- var uncurryThis$3 = functionUncurryThis;
5698
- var toObject = toObject$7;
5699
-
5700
- var floor = Math.floor;
5701
- var charAt = uncurryThis$3(''.charAt);
5702
- var replace = uncurryThis$3(''.replace);
5703
- var stringSlice$2 = uncurryThis$3(''.slice);
5704
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
5705
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
5706
-
5707
- // `GetSubstitution` abstract operation
5708
- // https://tc39.es/ecma262/#sec-getsubstitution
5709
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
5710
- var tailPos = position + matched.length;
5711
- var m = captures.length;
5712
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
5713
- if (namedCaptures !== undefined) {
5714
- namedCaptures = toObject(namedCaptures);
5715
- symbols = SUBSTITUTION_SYMBOLS;
5716
- }
5717
- return replace(replacement, symbols, function (match, ch) {
5718
- var capture;
5719
- switch (charAt(ch, 0)) {
5720
- case '$': return '$';
5721
- case '&': return matched;
5722
- case '`': return stringSlice$2(str, 0, position);
5723
- case "'": return stringSlice$2(str, tailPos);
5724
- case '<':
5725
- capture = namedCaptures[stringSlice$2(ch, 1, -1)];
5726
- break;
5727
- default: // \d\d?
5728
- var n = +ch;
5729
- if (n === 0) return match;
5730
- if (n > m) {
5731
- var f = floor(n / 10);
5732
- if (f === 0) return match;
5733
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
5734
- return match;
5735
- }
5736
- capture = captures[n - 1];
5737
- }
5738
- return capture === undefined ? '' : capture;
5739
- });
5740
- };
5741
-
5742
- var apply = functionApply;
5743
- var call = functionCall;
5744
- var uncurryThis$2 = functionUncurryThis;
5745
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
5746
- var fails = fails$r;
5747
- var anObject = anObject$i;
5748
- var isCallable = isCallable$p;
5749
- var toIntegerOrInfinity = toIntegerOrInfinity$7;
5750
- var toLength$2 = toLength$9;
5751
- var toString$2 = toString$7;
5752
- var requireObjectCoercible$2 = requireObjectCoercible$8;
5753
- var advanceStringIndex = advanceStringIndex$2;
5754
- var getMethod = getMethod$6;
5755
- var getSubstitution = getSubstitution$1;
5756
- var regExpExec = regexpExecAbstract;
5757
- var wellKnownSymbol$1 = wellKnownSymbol$m;
5758
-
5759
- var REPLACE = wellKnownSymbol$1('replace');
5760
- var max = Math.max;
5761
- var min$2 = Math.min;
5762
- var concat = uncurryThis$2([].concat);
5763
- var push = uncurryThis$2([].push);
5764
- var stringIndexOf = uncurryThis$2(''.indexOf);
5765
- var stringSlice$1 = uncurryThis$2(''.slice);
5766
-
5767
- var maybeToString = function (it) {
5768
- return it === undefined ? it : String(it);
5769
- };
5770
-
5771
- // IE <= 11 replaces $0 with the whole match, as if it was $&
5772
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
5773
- var REPLACE_KEEPS_$0 = (function () {
5774
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
5775
- return 'a'.replace(/./, '$0') === '$0';
5776
- })();
5777
-
5778
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
5779
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
5780
- if (/./[REPLACE]) {
5781
- return /./[REPLACE]('a', '$0') === '';
5782
- }
5783
- return false;
5784
- })();
5785
-
5786
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
5787
- var re = /./;
5788
- re.exec = function () {
5789
- var result = [];
5790
- result.groups = { a: '7' };
5791
- return result;
5792
- };
5793
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
5794
- return ''.replace(re, '$<a>') !== '7';
5795
- });
5796
-
5797
- // @@replace logic
5798
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
5799
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
5800
-
5801
- return [
5802
- // `String.prototype.replace` method
5803
- // https://tc39.es/ecma262/#sec-string.prototype.replace
5804
- function replace(searchValue, replaceValue) {
5805
- var O = requireObjectCoercible$2(this);
5806
- var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
5807
- return replacer
5808
- ? call(replacer, searchValue, O, replaceValue)
5809
- : call(nativeReplace, toString$2(O), searchValue, replaceValue);
5810
- },
5811
- // `RegExp.prototype[@@replace]` method
5812
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
5813
- function (string, replaceValue) {
5814
- var rx = anObject(this);
5815
- var S = toString$2(string);
5816
-
5817
- if (
5818
- typeof replaceValue == 'string' &&
5819
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
5820
- stringIndexOf(replaceValue, '$<') === -1
5821
- ) {
5822
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
5823
- if (res.done) return res.value;
5824
- }
5825
-
5826
- var functionalReplace = isCallable(replaceValue);
5827
- if (!functionalReplace) replaceValue = toString$2(replaceValue);
5828
-
5829
- var global = rx.global;
5830
- if (global) {
5831
- var fullUnicode = rx.unicode;
5832
- rx.lastIndex = 0;
5833
- }
5834
- var results = [];
5835
- while (true) {
5836
- var result = regExpExec(rx, S);
5837
- if (result === null) break;
5838
-
5839
- push(results, result);
5840
- if (!global) break;
5841
-
5842
- var matchStr = toString$2(result[0]);
5843
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$2(rx.lastIndex), fullUnicode);
5844
- }
5845
-
5846
- var accumulatedResult = '';
5847
- var nextSourcePosition = 0;
5848
- for (var i = 0; i < results.length; i++) {
5849
- result = results[i];
5850
-
5851
- var matched = toString$2(result[0]);
5852
- var position = max(min$2(toIntegerOrInfinity(result.index), S.length), 0);
5853
- var captures = [];
5854
- // NOTE: This is equivalent to
5855
- // captures = result.slice(1).map(maybeToString)
5856
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
5857
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
5858
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
5859
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
5860
- var namedCaptures = result.groups;
5861
- if (functionalReplace) {
5862
- var replacerArgs = concat([matched], captures, position, S);
5863
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
5864
- var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
5865
- } else {
5866
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
5867
- }
5868
- if (position >= nextSourcePosition) {
5869
- accumulatedResult += stringSlice$1(S, nextSourcePosition, position) + replacement;
5870
- nextSourcePosition = position + matched.length;
5871
- }
5872
- }
5873
- return accumulatedResult + stringSlice$1(S, nextSourcePosition);
5874
- }
5875
- ];
5876
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
5877
-
5878
5878
  const createCodeChallenge = verifier => __awaiter(void 0, void 0, void 0, function* () {
5879
5879
  const code_challengeBuffer = yield sha256(verifier);
5880
5880
  const code_challenge = bufferToBase64UrlEncoded(code_challengeBuffer);
@@ -6082,7 +6082,7 @@
6082
6082
  return index >= 0;
6083
6083
  };
6084
6084
 
6085
- var _Authentication_accessToken, _Authentication_config, _Authentication_leapAuthService, _Authentication_notification, _Authentication_refreshInfo, _Authentication_exchangeAuthCodeForAccessToken, _Authentication_verifyAndPerformRedirections, _Authentication_startRefreshAccessTokenProcess, _Authentication_destroyRefreshAccessTokenProcess;
6085
+ var _Authentication_accessToken, _Authentication_config, _Authentication_leapAuthService, _Authentication_notification, _Authentication_refreshInfo, _Authentication_exchangeAuthCodeForAccessToken, _Authentication_verifyAndPerformRedirections, _Authentication_startRefreshAccessTokenProcess, _Authentication_destroyRefreshAccessTokenProcess, _Authentication_decodeAccessToken;
6086
6086
  const hookNames = ['afterLogin', 'beforeLogout'];
6087
6087
  const SECONDS_BEFORE_EXPIRE = 10;
6088
6088
  class Authentication {
@@ -6173,18 +6173,7 @@
6173
6173
  return undefined;
6174
6174
  }
6175
6175
 
6176
- const payload = __classPrivateFieldGet(this, _Authentication_accessToken, "f").split('.')[1];
6177
-
6178
- if (payload) {
6179
- try {
6180
- const result = window.atob(payload);
6181
- return JSON.parse(result);
6182
- } catch (e) {
6183
- throw Error('Fail to decode access token.');
6184
- }
6185
- }
6186
-
6187
- return undefined;
6176
+ return __classPrivateFieldGet(this, _Authentication_decodeAccessToken, "f").call(this, __classPrivateFieldGet(this, _Authentication_accessToken, "f"));
6188
6177
  };
6189
6178
 
6190
6179
  this.getHooks = () => {
@@ -6241,8 +6230,9 @@
6241
6230
  window.sessionStorage.removeItem(state);
6242
6231
  queryParams.delete('code');
6243
6232
  queryParams.delete('state');
6244
- const newUrl = window.location.origin + '/' + queryParams.toString();
6245
- window.history.replaceState(null, '', newUrl); //* use the Verifier and AuthCode to exchange for AccessToken
6233
+ const newUrl = window.location.origin + window.location.pathname + queryParams.toString();
6234
+ console.log('===========================Dan=============================', newUrl);
6235
+ window.history.pushState(null, '', newUrl); //* use the Verifier and AuthCode to exchange for AccessToken
6246
6236
 
6247
6237
  if (verifier) {
6248
6238
  const data = yield __classPrivateFieldGet(this, _Authentication_exchangeAuthCodeForAccessToken, "f").call(this, {
@@ -6250,7 +6240,7 @@
6250
6240
  verifier,
6251
6241
  redirectUri: newUrl
6252
6242
  });
6253
- const redirectTriggered = yield __classPrivateFieldGet(this, _Authentication_verifyAndPerformRedirections, "f").call(this);
6243
+ const redirectTriggered = yield __classPrivateFieldGet(this, _Authentication_verifyAndPerformRedirections, "f").call(this, data.access_token);
6254
6244
 
6255
6245
  if (redirectTriggered) {
6256
6246
  return true;
@@ -6465,10 +6455,12 @@
6465
6455
  });
6466
6456
  }));
6467
6457
 
6468
- _Authentication_verifyAndPerformRedirections.set(this, () => __awaiter(this, void 0, void 0, function* () {
6458
+ _Authentication_verifyAndPerformRedirections.set(this, accessToken => __awaiter(this, void 0, void 0, function* () {
6469
6459
  const redirectionConfig = yield __classPrivateFieldGet(this, _Authentication_leapAuthService, "f").getRedirections();
6470
6460
  const origin = window.location.origin;
6471
- const decodedToken = this.getDecodedAccessToken();
6461
+
6462
+ const decodedToken = __classPrivateFieldGet(this, _Authentication_decodeAccessToken, "f").call(this, accessToken);
6463
+
6472
6464
  const redirectUri = getRedirectUri(origin, decodedToken, redirectionConfig);
6473
6465
 
6474
6466
  if (redirectUri) {
@@ -6534,6 +6526,21 @@
6534
6526
  __classPrivateFieldSet(this, _Authentication_refreshInfo, undefined, "f");
6535
6527
  });
6536
6528
 
6529
+ _Authentication_decodeAccessToken.set(this, accessToken => {
6530
+ const payload = accessToken.split('.')[1];
6531
+
6532
+ if (payload) {
6533
+ try {
6534
+ const result = window.atob(payload);
6535
+ return JSON.parse(result);
6536
+ } catch (e) {
6537
+ throw Error('Fail to decode access token.');
6538
+ }
6539
+ }
6540
+
6541
+ return undefined;
6542
+ });
6543
+
6537
6544
  __classPrivateFieldSet(this, _Authentication_accessToken, undefined, "f");
6538
6545
 
6539
6546
  __classPrivateFieldSet(this, _Authentication_config, init$1(options), "f");
@@ -6544,7 +6551,7 @@
6544
6551
  }
6545
6552
 
6546
6553
  }
6547
- _Authentication_accessToken = new WeakMap(), _Authentication_config = new WeakMap(), _Authentication_leapAuthService = new WeakMap(), _Authentication_notification = new WeakMap(), _Authentication_refreshInfo = new WeakMap(), _Authentication_exchangeAuthCodeForAccessToken = new WeakMap(), _Authentication_verifyAndPerformRedirections = new WeakMap(), _Authentication_startRefreshAccessTokenProcess = new WeakMap(), _Authentication_destroyRefreshAccessTokenProcess = new WeakMap();
6554
+ _Authentication_accessToken = new WeakMap(), _Authentication_config = new WeakMap(), _Authentication_leapAuthService = new WeakMap(), _Authentication_notification = new WeakMap(), _Authentication_refreshInfo = new WeakMap(), _Authentication_exchangeAuthCodeForAccessToken = new WeakMap(), _Authentication_verifyAndPerformRedirections = new WeakMap(), _Authentication_startRefreshAccessTokenProcess = new WeakMap(), _Authentication_destroyRefreshAccessTokenProcess = new WeakMap(), _Authentication_decodeAccessToken = new WeakMap();
6548
6555
 
6549
6556
  var _IdleTimer_timeoutInMinutes, _IdleTimer_timer, _IdleTimer_onTimeout, _IdleTimer_cleanUpTracker, _IdleTimer_clearTimeout, _IdleTimer_resetTimer;
6550
6557
  class IdleTimer {