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

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,369 +2671,60 @@
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;
2674
+ // `SameValue` abstract operation
2675
+ // https://tc39.es/ecma262/#sec-samevalue
2676
+ // eslint-disable-next-line es-x/no-object-is -- safe
2677
+ var sameValue$1 = Object.is || function is(x, y) {
2678
+ // eslint-disable-next-line no-self-compare -- NaN check
2679
+ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2673
2680
  };
2674
2681
 
2675
2682
  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;
2683
+ var call$9 = functionCall;
2695
2684
  var anObject$6 = anObject$i;
2696
2685
  var isCallable$7 = isCallable$p;
2697
- var classof$4 = classofRaw$1;
2686
+ var classof$5 = classofRaw$1;
2698
2687
  var regexpExec$1 = regexpExec$3;
2699
2688
 
2700
- var TypeError$4 = global$h.TypeError;
2689
+ var TypeError$4 = global$i.TypeError;
2701
2690
 
2702
2691
  // `RegExpExec` abstract operation
2703
2692
  // https://tc39.es/ecma262/#sec-regexpexec
2704
2693
  var regexpExecAbstract = function (R, S) {
2705
2694
  var exec = R.exec;
2706
2695
  if (isCallable$7(exec)) {
2707
- var result = call$a(exec, R, S);
2696
+ var result = call$9(exec, R, S);
2708
2697
  if (result !== null) anObject$6(result);
2709
2698
  return result;
2710
2699
  }
2711
- if (classof$4(R) === 'RegExp') return call$a(regexpExec$1, R, S);
2700
+ if (classof$5(R) === 'RegExp') return call$9(regexpExec$1, R, S);
2712
2701
  throw TypeError$4('RegExp#exec called on incompatible receiver');
2713
2702
  };
2714
2703
 
2715
- var apply$2 = functionApply;
2716
- var call$9 = functionCall;
2717
- var uncurryThis$a = functionUncurryThis;
2704
+ var call$8 = functionCall;
2718
2705
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2719
- var isRegExp$1 = isRegexp;
2720
2706
  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
- // `SameValue` abstract operation
2939
- // https://tc39.es/ecma262/#sec-samevalue
2940
- // eslint-disable-next-line es-x/no-object-is -- safe
2941
- var sameValue$1 = Object.is || function is(x, y) {
2942
- // eslint-disable-next-line no-self-compare -- NaN check
2943
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2944
- };
2945
-
2946
- var call$7 = functionCall;
2947
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2948
- var anObject$4 = anObject$i;
2949
- var requireObjectCoercible$3 = requireObjectCoercible$8;
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');
@@ -3807,7 +3593,7 @@
3807
3593
  }
3808
3594
  }
3809
3595
 
3810
- var call$4 = functionCall;
3596
+ var call$5 = functionCall;
3811
3597
  var hasOwn$2 = hasOwnProperty_1;
3812
3598
  var isPrototypeOf$2 = objectIsPrototypeOf;
3813
3599
  var regExpFlags = regexpFlags$1;
@@ -3817,21 +3603,21 @@
3817
3603
  var regexpGetFlags = function (R) {
3818
3604
  var flags = R.flags;
3819
3605
  return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
3820
- ? call$4(regExpFlags, R) : flags;
3606
+ ? call$5(regExpFlags, R) : flags;
3821
3607
  };
3822
3608
 
3823
3609
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
3824
3610
  var defineBuiltIn$1 = defineBuiltIn$a;
3825
- var anObject$2 = anObject$i;
3611
+ var anObject$3 = anObject$i;
3826
3612
  var $toString = toString$7;
3827
- var fails$7 = fails$r;
3613
+ var fails$8 = fails$r;
3828
3614
  var getRegExpFlags = regexpGetFlags;
3829
3615
 
3830
3616
  var TO_STRING = 'toString';
3831
3617
  var RegExpPrototype = RegExp.prototype;
3832
3618
  var n$ToString = RegExpPrototype[TO_STRING];
3833
3619
 
3834
- var NOT_GENERIC = fails$7(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3620
+ var NOT_GENERIC = fails$8(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3835
3621
  // FF44- RegExp#toString has a wrong name
3836
3622
  var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
3837
3623
 
@@ -3839,13 +3625,227 @@
3839
3625
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
3840
3626
  if (NOT_GENERIC || INCORRECT_NAME) {
3841
3627
  defineBuiltIn$1(RegExp.prototype, TO_STRING, function toString() {
3842
- var R = anObject$2(this);
3628
+ var R = anObject$3(this);
3843
3629
  var pattern = $toString(R.source);
3844
3630
  var flags = $toString(getRegExpFlags(R));
3845
3631
  return '/' + pattern + '/' + flags;
3846
3632
  }, { unsafe: true });
3847
3633
  }
3848
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);
3804
+
3805
+ if (res.done) return res.value;
3806
+
3807
+ var C = speciesConstructor$1(rx, RegExp);
3808
+
3809
+ var unicodeMatching = rx.unicode;
3810
+ var flags = (rx.ignoreCase ? 'i' : '') +
3811
+ (rx.multiline ? 'm' : '') +
3812
+ (rx.unicode ? 'u' : '') +
3813
+ (UNSUPPORTED_Y ? 'g' : 'y');
3814
+
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
+
3849
3849
  const DEFAULT_CONFIG = {
3850
3850
  autoLogin: true,
3851
3851
  autoLogout: true,
@@ -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,7 +6230,7 @@
6241
6230
  window.sessionStorage.removeItem(state);
6242
6231
  queryParams.delete('code');
6243
6232
  queryParams.delete('state');
6244
- const newUrl = window.location.origin + '/' + queryParams.toString();
6233
+ const newUrl = window.location.origin + window.location.pathname + queryParams.toString();
6245
6234
  window.history.replaceState(null, '', newUrl); //* use the Verifier and AuthCode to exchange for AccessToken
6246
6235
 
6247
6236
  if (verifier) {
@@ -6250,7 +6239,7 @@
6250
6239
  verifier,
6251
6240
  redirectUri: newUrl
6252
6241
  });
6253
- const redirectTriggered = yield __classPrivateFieldGet(this, _Authentication_verifyAndPerformRedirections, "f").call(this);
6242
+ const redirectTriggered = yield __classPrivateFieldGet(this, _Authentication_verifyAndPerformRedirections, "f").call(this, data.access_token);
6254
6243
 
6255
6244
  if (redirectTriggered) {
6256
6245
  return true;
@@ -6465,10 +6454,12 @@
6465
6454
  });
6466
6455
  }));
6467
6456
 
6468
- _Authentication_verifyAndPerformRedirections.set(this, () => __awaiter(this, void 0, void 0, function* () {
6457
+ _Authentication_verifyAndPerformRedirections.set(this, accessToken => __awaiter(this, void 0, void 0, function* () {
6469
6458
  const redirectionConfig = yield __classPrivateFieldGet(this, _Authentication_leapAuthService, "f").getRedirections();
6470
6459
  const origin = window.location.origin;
6471
- const decodedToken = this.getDecodedAccessToken();
6460
+
6461
+ const decodedToken = __classPrivateFieldGet(this, _Authentication_decodeAccessToken, "f").call(this, accessToken);
6462
+
6472
6463
  const redirectUri = getRedirectUri(origin, decodedToken, redirectionConfig);
6473
6464
 
6474
6465
  if (redirectUri) {
@@ -6534,6 +6525,21 @@
6534
6525
  __classPrivateFieldSet(this, _Authentication_refreshInfo, undefined, "f");
6535
6526
  });
6536
6527
 
6528
+ _Authentication_decodeAccessToken.set(this, accessToken => {
6529
+ const payload = accessToken.split('.')[1];
6530
+
6531
+ if (payload) {
6532
+ try {
6533
+ const result = window.atob(payload);
6534
+ return JSON.parse(result);
6535
+ } catch (e) {
6536
+ throw Error('Fail to decode access token.');
6537
+ }
6538
+ }
6539
+
6540
+ return undefined;
6541
+ });
6542
+
6537
6543
  __classPrivateFieldSet(this, _Authentication_accessToken, undefined, "f");
6538
6544
 
6539
6545
  __classPrivateFieldSet(this, _Authentication_config, init$1(options), "f");
@@ -6544,7 +6550,7 @@
6544
6550
  }
6545
6551
 
6546
6552
  }
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();
6553
+ _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
6554
 
6549
6555
  var _IdleTimer_timeoutInMinutes, _IdleTimer_timer, _IdleTimer_onTimeout, _IdleTimer_cleanUpTracker, _IdleTimer_clearTimeout, _IdleTimer_resetTimer;
6550
6556
  class IdleTimer {