@bcrumbs.net/bc-api 0.0.31 → 0.0.32

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/index.cjs.js CHANGED
@@ -5,17 +5,12 @@ var error = require('@apollo/client/link/error');
5
5
  var context = require('@apollo/client/link/context');
6
6
  var apolloLinkRest = require('apollo-link-rest');
7
7
  var nextWithApollo = require('next-with-apollo');
8
- var decode = require('jwt-decode');
9
- var dateFns = require('date-fns');
10
8
  var Stream = require('stream');
11
9
  var http = require('http');
12
10
  var Url = require('url');
13
11
  var require$$0$1 = require('punycode');
14
12
  var https = require('https');
15
13
  var zlib = require('zlib');
16
- var i18n = require('i18next');
17
- var reactI18next = require('react-i18next');
18
- var Backend = require('i18next-http-backend');
19
14
 
20
15
  /******************************************************************************
21
16
  Copyright (c) Microsoft Corporation.
@@ -1684,7 +1679,7 @@ function isNameStart(code) {
1684
1679
  * Given a GraphQL source, parses it into a Document.
1685
1680
  * Throws GraphQLError if a syntax error is encountered.
1686
1681
  */
1687
- function parse$1(source, options) {
1682
+ function parse(source, options) {
1688
1683
  var parser = new Parser(source, options);
1689
1684
  return parser.parseDocument();
1690
1685
  }
@@ -3243,7 +3238,7 @@ function stripLoc(doc) {
3243
3238
  function parseDocument(source) {
3244
3239
  var cacheKey = normalize$2(source);
3245
3240
  if (!docCache.has(cacheKey)) {
3246
- var parsed = parse$1(source, {
3241
+ var parsed = parse(source, {
3247
3242
  experimentalFragmentVariables: experimentalFragmentVariables,
3248
3243
  allowLegacyFragmentVariables: experimentalFragmentVariables
3249
3244
  });
@@ -3335,7 +3330,7 @@ var check = function (it) {
3335
3330
  };
3336
3331
 
3337
3332
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
3338
- var global$n =
3333
+ var global$l =
3339
3334
  // eslint-disable-next-line es/no-global-this -- safe
3340
3335
  check(typeof globalThis == 'object' && globalThis) ||
3341
3336
  check(typeof window == 'object' && window) ||
@@ -3348,7 +3343,7 @@ var global$n =
3348
3343
 
3349
3344
  var objectGetOwnPropertyDescriptor = {};
3350
3345
 
3351
- var fails$m = function (exec) {
3346
+ var fails$i = function (exec) {
3352
3347
  try {
3353
3348
  return !!exec();
3354
3349
  } catch (error) {
@@ -3356,17 +3351,17 @@ var fails$m = function (exec) {
3356
3351
  }
3357
3352
  };
3358
3353
 
3359
- var fails$l = fails$m;
3354
+ var fails$h = fails$i;
3360
3355
 
3361
3356
  // Detect IE8's incomplete defineProperty implementation
3362
- var descriptors = !fails$l(function () {
3357
+ var descriptors = !fails$h(function () {
3363
3358
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3364
3359
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
3365
3360
  });
3366
3361
 
3367
- var fails$k = fails$m;
3362
+ var fails$g = fails$i;
3368
3363
 
3369
- var functionBindNative = !fails$k(function () {
3364
+ var functionBindNative = !fails$g(function () {
3370
3365
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
3371
3366
  var test = (function () { /* empty */ }).bind();
3372
3367
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -3375,10 +3370,10 @@ var functionBindNative = !fails$k(function () {
3375
3370
 
3376
3371
  var NATIVE_BIND$3 = functionBindNative;
3377
3372
 
3378
- var call$j = Function.prototype.call;
3373
+ var call$i = Function.prototype.call;
3379
3374
 
3380
- var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () {
3381
- return call$j.apply(call$j, arguments);
3375
+ var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
3376
+ return call$i.apply(call$i, arguments);
3382
3377
  };
3383
3378
 
3384
3379
  var objectPropertyIsEnumerable = {};
@@ -3397,7 +3392,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
3397
3392
  return !!descriptor && descriptor.enumerable;
3398
3393
  } : $propertyIsEnumerable;
3399
3394
 
3400
- var createPropertyDescriptor$4 = function (bitmap, value) {
3395
+ var createPropertyDescriptor$3 = function (bitmap, value) {
3401
3396
  return {
3402
3397
  enumerable: !(bitmap & 1),
3403
3398
  configurable: !(bitmap & 2),
@@ -3409,38 +3404,38 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
3409
3404
  var NATIVE_BIND$2 = functionBindNative;
3410
3405
 
3411
3406
  var FunctionPrototype$2 = Function.prototype;
3412
- var call$i = FunctionPrototype$2.call;
3413
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$i, call$i);
3407
+ var call$h = FunctionPrototype$2.call;
3408
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
3414
3409
 
3415
3410
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
3416
3411
  return function () {
3417
- return call$i.apply(fn, arguments);
3412
+ return call$h.apply(fn, arguments);
3418
3413
  };
3419
3414
  };
3420
3415
 
3421
- var uncurryThis$o = functionUncurryThis;
3416
+ var uncurryThis$i = functionUncurryThis;
3422
3417
 
3423
- var toString$b = uncurryThis$o({}.toString);
3424
- var stringSlice$5 = uncurryThis$o(''.slice);
3418
+ var toString$6 = uncurryThis$i({}.toString);
3419
+ var stringSlice$5 = uncurryThis$i(''.slice);
3425
3420
 
3426
3421
  var classofRaw$2 = function (it) {
3427
- return stringSlice$5(toString$b(it), 8, -1);
3422
+ return stringSlice$5(toString$6(it), 8, -1);
3428
3423
  };
3429
3424
 
3430
- var uncurryThis$n = functionUncurryThis;
3431
- var fails$j = fails$m;
3432
- var classof$9 = classofRaw$2;
3425
+ var uncurryThis$h = functionUncurryThis;
3426
+ var fails$f = fails$i;
3427
+ var classof$6 = classofRaw$2;
3433
3428
 
3434
3429
  var $Object$4 = Object;
3435
- var split = uncurryThis$n(''.split);
3430
+ var split = uncurryThis$h(''.split);
3436
3431
 
3437
3432
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
3438
- var indexedObject = fails$j(function () {
3433
+ var indexedObject = fails$f(function () {
3439
3434
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
3440
3435
  // eslint-disable-next-line no-prototype-builtins -- safe
3441
3436
  return !$Object$4('z').propertyIsEnumerable(0);
3442
3437
  }) ? function (it) {
3443
- return classof$9(it) === 'String' ? split(it, '') : $Object$4(it);
3438
+ return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
3444
3439
  } : $Object$4;
3445
3440
 
3446
3441
  // we can't use just `it == null` since of `document.all` special case
@@ -3451,21 +3446,21 @@ var isNullOrUndefined$6 = function (it) {
3451
3446
 
3452
3447
  var isNullOrUndefined$5 = isNullOrUndefined$6;
3453
3448
 
3454
- var $TypeError$e = TypeError;
3449
+ var $TypeError$d = TypeError;
3455
3450
 
3456
3451
  // `RequireObjectCoercible` abstract operation
3457
3452
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
3458
- var requireObjectCoercible$8 = function (it) {
3459
- if (isNullOrUndefined$5(it)) throw new $TypeError$e("Can't call method on " + it);
3453
+ var requireObjectCoercible$6 = function (it) {
3454
+ if (isNullOrUndefined$5(it)) throw new $TypeError$d("Can't call method on " + it);
3460
3455
  return it;
3461
3456
  };
3462
3457
 
3463
3458
  // toObject with fallback for non-array-like ES3 strings
3464
3459
  var IndexedObject$1 = indexedObject;
3465
- var requireObjectCoercible$7 = requireObjectCoercible$8;
3460
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
3466
3461
 
3467
3462
  var toIndexedObject$5 = function (it) {
3468
- return IndexedObject$1(requireObjectCoercible$7(it));
3463
+ return IndexedObject$1(requireObjectCoercible$5(it));
3469
3464
  };
3470
3465
 
3471
3466
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -3474,40 +3469,40 @@ var documentAll = typeof document == 'object' && document.all;
3474
3469
  // `IsCallable` abstract operation
3475
3470
  // https://tc39.es/ecma262/#sec-iscallable
3476
3471
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
3477
- var isCallable$o = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
3472
+ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
3478
3473
  return typeof argument == 'function' || argument === documentAll;
3479
3474
  } : function (argument) {
3480
3475
  return typeof argument == 'function';
3481
3476
  };
3482
3477
 
3483
- var isCallable$n = isCallable$o;
3478
+ var isCallable$k = isCallable$l;
3484
3479
 
3485
- var isObject$d = function (it) {
3486
- return typeof it == 'object' ? it !== null : isCallable$n(it);
3480
+ var isObject$a = function (it) {
3481
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
3487
3482
  };
3488
3483
 
3489
- var global$m = global$n;
3490
- var isCallable$m = isCallable$o;
3484
+ var global$k = global$l;
3485
+ var isCallable$j = isCallable$l;
3491
3486
 
3492
3487
  var aFunction = function (argument) {
3493
- return isCallable$m(argument) ? argument : undefined;
3488
+ return isCallable$j(argument) ? argument : undefined;
3494
3489
  };
3495
3490
 
3496
- var getBuiltIn$9 = function (namespace, method) {
3497
- return arguments.length < 2 ? aFunction(global$m[namespace]) : global$m[namespace] && global$m[namespace][method];
3491
+ var getBuiltIn$7 = function (namespace, method) {
3492
+ return arguments.length < 2 ? aFunction(global$k[namespace]) : global$k[namespace] && global$k[namespace][method];
3498
3493
  };
3499
3494
 
3500
- var uncurryThis$m = functionUncurryThis;
3495
+ var uncurryThis$g = functionUncurryThis;
3501
3496
 
3502
- var objectIsPrototypeOf = uncurryThis$m({}.isPrototypeOf);
3497
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
3503
3498
 
3504
3499
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
3505
3500
 
3506
- var global$l = global$n;
3501
+ var global$j = global$l;
3507
3502
  var userAgent$3 = engineUserAgent;
3508
3503
 
3509
- var process$4 = global$l.process;
3510
- var Deno$1 = global$l.Deno;
3504
+ var process$4 = global$j.process;
3505
+ var Deno$1 = global$j.Deno;
3511
3506
  var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
3512
3507
  var v8 = versions && versions.v8;
3513
3508
  var match, version;
@@ -3533,63 +3528,63 @@ var engineV8Version = version;
3533
3528
 
3534
3529
  /* eslint-disable es/no-symbol -- required for testing */
3535
3530
  var V8_VERSION$1 = engineV8Version;
3536
- var fails$i = fails$m;
3537
- var global$k = global$n;
3531
+ var fails$e = fails$i;
3532
+ var global$i = global$l;
3538
3533
 
3539
- var $String$6 = global$k.String;
3534
+ var $String$5 = global$i.String;
3540
3535
 
3541
3536
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
3542
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
3537
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
3543
3538
  var symbol = Symbol('symbol detection');
3544
3539
  // Chrome 38 Symbol has incorrect toString conversion
3545
3540
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
3546
3541
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
3547
3542
  // of course, fail.
3548
- return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
3543
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
3549
3544
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
3550
3545
  !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
3551
3546
  });
3552
3547
 
3553
3548
  /* eslint-disable es/no-symbol -- required for testing */
3554
- var NATIVE_SYMBOL$2 = symbolConstructorDetection;
3549
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
3555
3550
 
3556
- var useSymbolAsUid = NATIVE_SYMBOL$2
3551
+ var useSymbolAsUid = NATIVE_SYMBOL$1
3557
3552
  && !Symbol.sham
3558
3553
  && typeof Symbol.iterator == 'symbol';
3559
3554
 
3560
- var getBuiltIn$8 = getBuiltIn$9;
3561
- var isCallable$l = isCallable$o;
3562
- var isPrototypeOf$3 = objectIsPrototypeOf;
3555
+ var getBuiltIn$6 = getBuiltIn$7;
3556
+ var isCallable$i = isCallable$l;
3557
+ var isPrototypeOf$2 = objectIsPrototypeOf;
3563
3558
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
3564
3559
 
3565
3560
  var $Object$3 = Object;
3566
3561
 
3567
- var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
3562
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
3568
3563
  return typeof it == 'symbol';
3569
3564
  } : function (it) {
3570
- var $Symbol = getBuiltIn$8('Symbol');
3571
- return isCallable$l($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
3565
+ var $Symbol = getBuiltIn$6('Symbol');
3566
+ return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
3572
3567
  };
3573
3568
 
3574
- var $String$5 = String;
3569
+ var $String$4 = String;
3575
3570
 
3576
3571
  var tryToString$4 = function (argument) {
3577
3572
  try {
3578
- return $String$5(argument);
3573
+ return $String$4(argument);
3579
3574
  } catch (error) {
3580
3575
  return 'Object';
3581
3576
  }
3582
3577
  };
3583
3578
 
3584
- var isCallable$k = isCallable$o;
3579
+ var isCallable$h = isCallable$l;
3585
3580
  var tryToString$3 = tryToString$4;
3586
3581
 
3587
- var $TypeError$d = TypeError;
3582
+ var $TypeError$c = TypeError;
3588
3583
 
3589
3584
  // `Assert: IsCallable(argument) is true`
3590
3585
  var aCallable$8 = function (argument) {
3591
- if (isCallable$k(argument)) return argument;
3592
- throw new $TypeError$d(tryToString$3(argument) + ' is not a function');
3586
+ if (isCallable$h(argument)) return argument;
3587
+ throw new $TypeError$c(tryToString$3(argument) + ' is not a function');
3593
3588
  };
3594
3589
 
3595
3590
  var aCallable$7 = aCallable$8;
@@ -3602,38 +3597,38 @@ var getMethod$5 = function (V, P) {
3602
3597
  return isNullOrUndefined$4(func) ? undefined : aCallable$7(func);
3603
3598
  };
3604
3599
 
3605
- var call$h = functionCall;
3606
- var isCallable$j = isCallable$o;
3607
- var isObject$c = isObject$d;
3600
+ var call$g = functionCall;
3601
+ var isCallable$g = isCallable$l;
3602
+ var isObject$9 = isObject$a;
3608
3603
 
3609
- var $TypeError$c = TypeError;
3604
+ var $TypeError$b = TypeError;
3610
3605
 
3611
3606
  // `OrdinaryToPrimitive` abstract operation
3612
3607
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
3613
3608
  var ordinaryToPrimitive$1 = function (input, pref) {
3614
3609
  var fn, val;
3615
- if (pref === 'string' && isCallable$j(fn = input.toString) && !isObject$c(val = call$h(fn, input))) return val;
3616
- if (isCallable$j(fn = input.valueOf) && !isObject$c(val = call$h(fn, input))) return val;
3617
- if (pref !== 'string' && isCallable$j(fn = input.toString) && !isObject$c(val = call$h(fn, input))) return val;
3618
- throw new $TypeError$c("Can't convert object to primitive value");
3610
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
3611
+ if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$g(fn, input))) return val;
3612
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
3613
+ throw new $TypeError$b("Can't convert object to primitive value");
3619
3614
  };
3620
3615
 
3621
3616
  var sharedStore = {exports: {}};
3622
3617
 
3623
- var global$j = global$n;
3618
+ var global$h = global$l;
3624
3619
 
3625
3620
  // eslint-disable-next-line es/no-object-defineproperty -- safe
3626
- var defineProperty$7 = Object.defineProperty;
3621
+ var defineProperty$6 = Object.defineProperty;
3627
3622
 
3628
3623
  var defineGlobalProperty$3 = function (key, value) {
3629
3624
  try {
3630
- defineProperty$7(global$j, key, { value: value, configurable: true, writable: true });
3625
+ defineProperty$6(global$h, key, { value: value, configurable: true, writable: true });
3631
3626
  } catch (error) {
3632
- global$j[key] = value;
3627
+ global$h[key] = value;
3633
3628
  } return value;
3634
3629
  };
3635
3630
 
3636
- var globalThis$1 = global$n;
3631
+ var globalThis$1 = global$l;
3637
3632
  var defineGlobalProperty$2 = defineGlobalProperty$3;
3638
3633
 
3639
3634
  var SHARED = '__core-js_shared__';
@@ -3655,20 +3650,20 @@ var shared$4 = function (key, value) {
3655
3650
  return store$2[key] || (store$2[key] = value || {});
3656
3651
  };
3657
3652
 
3658
- var requireObjectCoercible$6 = requireObjectCoercible$8;
3653
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
3659
3654
 
3660
3655
  var $Object$2 = Object;
3661
3656
 
3662
3657
  // `ToObject` abstract operation
3663
3658
  // https://tc39.es/ecma262/#sec-toobject
3664
3659
  var toObject$4 = function (argument) {
3665
- return $Object$2(requireObjectCoercible$6(argument));
3660
+ return $Object$2(requireObjectCoercible$4(argument));
3666
3661
  };
3667
3662
 
3668
- var uncurryThis$l = functionUncurryThis;
3663
+ var uncurryThis$f = functionUncurryThis;
3669
3664
  var toObject$3 = toObject$4;
3670
3665
 
3671
- var hasOwnProperty = uncurryThis$l({}.hasOwnProperty);
3666
+ var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
3672
3667
 
3673
3668
  // `HasOwnProperty` abstract operation
3674
3669
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -3677,101 +3672,101 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
3677
3672
  return hasOwnProperty(toObject$3(it), key);
3678
3673
  };
3679
3674
 
3680
- var uncurryThis$k = functionUncurryThis;
3675
+ var uncurryThis$e = functionUncurryThis;
3681
3676
 
3682
3677
  var id = 0;
3683
3678
  var postfix = Math.random();
3684
- var toString$a = uncurryThis$k(1.0.toString);
3679
+ var toString$5 = uncurryThis$e(1.0.toString);
3685
3680
 
3686
3681
  var uid$2 = function (key) {
3687
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
3682
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
3688
3683
  };
3689
3684
 
3690
- var global$i = global$n;
3685
+ var global$g = global$l;
3691
3686
  var shared$3 = shared$4;
3692
- var hasOwn$a = hasOwnProperty_1;
3687
+ var hasOwn$9 = hasOwnProperty_1;
3693
3688
  var uid$1 = uid$2;
3694
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
3689
+ var NATIVE_SYMBOL = symbolConstructorDetection;
3695
3690
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
3696
3691
 
3697
- var Symbol$2 = global$i.Symbol;
3692
+ var Symbol$1 = global$g.Symbol;
3698
3693
  var WellKnownSymbolsStore = shared$3('wks');
3699
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
3694
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
3700
3695
 
3701
- var wellKnownSymbol$i = function (name) {
3702
- if (!hasOwn$a(WellKnownSymbolsStore, name)) {
3703
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$a(Symbol$2, name)
3704
- ? Symbol$2[name]
3696
+ var wellKnownSymbol$g = function (name) {
3697
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
3698
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
3699
+ ? Symbol$1[name]
3705
3700
  : createWellKnownSymbol('Symbol.' + name);
3706
3701
  } return WellKnownSymbolsStore[name];
3707
3702
  };
3708
3703
 
3709
- var call$g = functionCall;
3710
- var isObject$b = isObject$d;
3711
- var isSymbol$2 = isSymbol$3;
3704
+ var call$f = functionCall;
3705
+ var isObject$8 = isObject$a;
3706
+ var isSymbol$1 = isSymbol$2;
3712
3707
  var getMethod$4 = getMethod$5;
3713
3708
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
3714
- var wellKnownSymbol$h = wellKnownSymbol$i;
3709
+ var wellKnownSymbol$f = wellKnownSymbol$g;
3715
3710
 
3716
- var $TypeError$b = TypeError;
3717
- var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
3711
+ var $TypeError$a = TypeError;
3712
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
3718
3713
 
3719
3714
  // `ToPrimitive` abstract operation
3720
3715
  // https://tc39.es/ecma262/#sec-toprimitive
3721
3716
  var toPrimitive$1 = function (input, pref) {
3722
- if (!isObject$b(input) || isSymbol$2(input)) return input;
3717
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
3723
3718
  var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
3724
3719
  var result;
3725
3720
  if (exoticToPrim) {
3726
3721
  if (pref === undefined) pref = 'default';
3727
- result = call$g(exoticToPrim, input, pref);
3728
- if (!isObject$b(result) || isSymbol$2(result)) return result;
3729
- throw new $TypeError$b("Can't convert object to primitive value");
3722
+ result = call$f(exoticToPrim, input, pref);
3723
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
3724
+ throw new $TypeError$a("Can't convert object to primitive value");
3730
3725
  }
3731
3726
  if (pref === undefined) pref = 'number';
3732
3727
  return ordinaryToPrimitive(input, pref);
3733
3728
  };
3734
3729
 
3735
3730
  var toPrimitive = toPrimitive$1;
3736
- var isSymbol$1 = isSymbol$3;
3731
+ var isSymbol = isSymbol$2;
3737
3732
 
3738
3733
  // `ToPropertyKey` abstract operation
3739
3734
  // https://tc39.es/ecma262/#sec-topropertykey
3740
3735
  var toPropertyKey$2 = function (argument) {
3741
3736
  var key = toPrimitive(argument, 'string');
3742
- return isSymbol$1(key) ? key : key + '';
3737
+ return isSymbol(key) ? key : key + '';
3743
3738
  };
3744
3739
 
3745
- var global$h = global$n;
3746
- var isObject$a = isObject$d;
3740
+ var global$f = global$l;
3741
+ var isObject$7 = isObject$a;
3747
3742
 
3748
- var document$3 = global$h.document;
3743
+ var document$3 = global$f.document;
3749
3744
  // typeof document.createElement is 'object' in old IE
3750
- var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
3745
+ var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
3751
3746
 
3752
3747
  var documentCreateElement$2 = function (it) {
3753
3748
  return EXISTS$1 ? document$3.createElement(it) : {};
3754
3749
  };
3755
3750
 
3756
- var DESCRIPTORS$c = descriptors;
3757
- var fails$h = fails$m;
3751
+ var DESCRIPTORS$b = descriptors;
3752
+ var fails$d = fails$i;
3758
3753
  var createElement$1 = documentCreateElement$2;
3759
3754
 
3760
3755
  // Thanks to IE8 for its funny defineProperty
3761
- var ie8DomDefine = !DESCRIPTORS$c && !fails$h(function () {
3756
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$d(function () {
3762
3757
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3763
3758
  return Object.defineProperty(createElement$1('div'), 'a', {
3764
3759
  get: function () { return 7; }
3765
3760
  }).a !== 7;
3766
3761
  });
3767
3762
 
3768
- var DESCRIPTORS$b = descriptors;
3769
- var call$f = functionCall;
3763
+ var DESCRIPTORS$a = descriptors;
3764
+ var call$e = functionCall;
3770
3765
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
3771
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
3766
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
3772
3767
  var toIndexedObject$4 = toIndexedObject$5;
3773
3768
  var toPropertyKey$1 = toPropertyKey$2;
3774
- var hasOwn$9 = hasOwnProperty_1;
3769
+ var hasOwn$8 = hasOwnProperty_1;
3775
3770
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
3776
3771
 
3777
3772
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -3779,23 +3774,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
3779
3774
 
3780
3775
  // `Object.getOwnPropertyDescriptor` method
3781
3776
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
3782
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
3777
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
3783
3778
  O = toIndexedObject$4(O);
3784
3779
  P = toPropertyKey$1(P);
3785
3780
  if (IE8_DOM_DEFINE$1) try {
3786
3781
  return $getOwnPropertyDescriptor$1(O, P);
3787
3782
  } catch (error) { /* empty */ }
3788
- if (hasOwn$9(O, P)) return createPropertyDescriptor$3(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
3783
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
3789
3784
  };
3790
3785
 
3791
3786
  var objectDefineProperty = {};
3792
3787
 
3793
- var DESCRIPTORS$a = descriptors;
3794
- var fails$g = fails$m;
3788
+ var DESCRIPTORS$9 = descriptors;
3789
+ var fails$c = fails$i;
3795
3790
 
3796
3791
  // V8 ~ Chrome 36-
3797
3792
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
3798
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$g(function () {
3793
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
3799
3794
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3800
3795
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
3801
3796
  value: 42,
@@ -3803,24 +3798,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$g(function () {
3803
3798
  }).prototype !== 42;
3804
3799
  });
3805
3800
 
3806
- var isObject$9 = isObject$d;
3801
+ var isObject$6 = isObject$a;
3807
3802
 
3808
- var $String$4 = String;
3809
- var $TypeError$a = TypeError;
3803
+ var $String$3 = String;
3804
+ var $TypeError$9 = TypeError;
3810
3805
 
3811
3806
  // `Assert: Type(argument) is Object`
3812
3807
  var anObject$d = function (argument) {
3813
- if (isObject$9(argument)) return argument;
3814
- throw new $TypeError$a($String$4(argument) + ' is not an object');
3808
+ if (isObject$6(argument)) return argument;
3809
+ throw new $TypeError$9($String$3(argument) + ' is not an object');
3815
3810
  };
3816
3811
 
3817
- var DESCRIPTORS$9 = descriptors;
3812
+ var DESCRIPTORS$8 = descriptors;
3818
3813
  var IE8_DOM_DEFINE = ie8DomDefine;
3819
3814
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
3820
3815
  var anObject$c = anObject$d;
3821
3816
  var toPropertyKey = toPropertyKey$2;
3822
3817
 
3823
- var $TypeError$9 = TypeError;
3818
+ var $TypeError$8 = TypeError;
3824
3819
  // eslint-disable-next-line es/no-object-defineproperty -- safe
3825
3820
  var $defineProperty = Object.defineProperty;
3826
3821
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -3831,7 +3826,7 @@ var WRITABLE = 'writable';
3831
3826
 
3832
3827
  // `Object.defineProperty` method
3833
3828
  // https://tc39.es/ecma262/#sec-object.defineproperty
3834
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
3829
+ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
3835
3830
  anObject$c(O);
3836
3831
  P = toPropertyKey(P);
3837
3832
  anObject$c(Attributes);
@@ -3853,17 +3848,17 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
3853
3848
  if (IE8_DOM_DEFINE) try {
3854
3849
  return $defineProperty(O, P, Attributes);
3855
3850
  } catch (error) { /* empty */ }
3856
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$9('Accessors not supported');
3851
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
3857
3852
  if ('value' in Attributes) O[P] = Attributes.value;
3858
3853
  return O;
3859
3854
  };
3860
3855
 
3861
- var DESCRIPTORS$8 = descriptors;
3856
+ var DESCRIPTORS$7 = descriptors;
3862
3857
  var definePropertyModule$3 = objectDefineProperty;
3863
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
3858
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
3864
3859
 
3865
- var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value) {
3866
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
3860
+ var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
3861
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
3867
3862
  } : function (object, key, value) {
3868
3863
  object[key] = value;
3869
3864
  return object;
@@ -3871,17 +3866,17 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value
3871
3866
 
3872
3867
  var makeBuiltIn$3 = {exports: {}};
3873
3868
 
3874
- var DESCRIPTORS$7 = descriptors;
3875
- var hasOwn$8 = hasOwnProperty_1;
3869
+ var DESCRIPTORS$6 = descriptors;
3870
+ var hasOwn$7 = hasOwnProperty_1;
3876
3871
 
3877
3872
  var FunctionPrototype$1 = Function.prototype;
3878
3873
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3879
- var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
3874
+ var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
3880
3875
 
3881
- var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
3876
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
3882
3877
  // additional protection from minified / mangled / dropped function names
3883
3878
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
3884
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
3879
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
3885
3880
 
3886
3881
  var functionName = {
3887
3882
  EXISTS: EXISTS,
@@ -3889,14 +3884,14 @@ var functionName = {
3889
3884
  CONFIGURABLE: CONFIGURABLE
3890
3885
  };
3891
3886
 
3892
- var uncurryThis$j = functionUncurryThis;
3893
- var isCallable$i = isCallable$o;
3887
+ var uncurryThis$d = functionUncurryThis;
3888
+ var isCallable$f = isCallable$l;
3894
3889
  var store$1 = sharedStoreExports;
3895
3890
 
3896
- var functionToString = uncurryThis$j(Function.toString);
3891
+ var functionToString = uncurryThis$d(Function.toString);
3897
3892
 
3898
3893
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
3899
- if (!isCallable$i(store$1.inspectSource)) {
3894
+ if (!isCallable$f(store$1.inspectSource)) {
3900
3895
  store$1.inspectSource = function (it) {
3901
3896
  return functionToString(it);
3902
3897
  };
@@ -3904,12 +3899,12 @@ if (!isCallable$i(store$1.inspectSource)) {
3904
3899
 
3905
3900
  var inspectSource$3 = store$1.inspectSource;
3906
3901
 
3907
- var global$g = global$n;
3908
- var isCallable$h = isCallable$o;
3902
+ var global$e = global$l;
3903
+ var isCallable$e = isCallable$l;
3909
3904
 
3910
- var WeakMap$1 = global$g.WeakMap;
3905
+ var WeakMap$1 = global$e.WeakMap;
3911
3906
 
3912
- var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
3907
+ var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
3913
3908
 
3914
3909
  var shared$2 = shared$4;
3915
3910
  var uid = uid$2;
@@ -3923,17 +3918,17 @@ var sharedKey$3 = function (key) {
3923
3918
  var hiddenKeys$4 = {};
3924
3919
 
3925
3920
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
3926
- var global$f = global$n;
3927
- var isObject$8 = isObject$d;
3928
- var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
3929
- var hasOwn$7 = hasOwnProperty_1;
3921
+ var global$d = global$l;
3922
+ var isObject$5 = isObject$a;
3923
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
3924
+ var hasOwn$6 = hasOwnProperty_1;
3930
3925
  var shared$1 = sharedStoreExports;
3931
3926
  var sharedKey$2 = sharedKey$3;
3932
3927
  var hiddenKeys$3 = hiddenKeys$4;
3933
3928
 
3934
3929
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
3935
- var TypeError$2 = global$f.TypeError;
3936
- var WeakMap = global$f.WeakMap;
3930
+ var TypeError$2 = global$d.TypeError;
3931
+ var WeakMap = global$d.WeakMap;
3937
3932
  var set$1, get, has;
3938
3933
 
3939
3934
  var enforce = function (it) {
@@ -3943,7 +3938,7 @@ var enforce = function (it) {
3943
3938
  var getterFor = function (TYPE) {
3944
3939
  return function (it) {
3945
3940
  var state;
3946
- if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
3941
+ if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
3947
3942
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
3948
3943
  } return state;
3949
3944
  };
@@ -3972,16 +3967,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
3972
3967
  var STATE = sharedKey$2('state');
3973
3968
  hiddenKeys$3[STATE] = true;
3974
3969
  set$1 = function (it, metadata) {
3975
- if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
3970
+ if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
3976
3971
  metadata.facade = it;
3977
- createNonEnumerableProperty$7(it, STATE, metadata);
3972
+ createNonEnumerableProperty$4(it, STATE, metadata);
3978
3973
  return metadata;
3979
3974
  };
3980
3975
  get = function (it) {
3981
- return hasOwn$7(it, STATE) ? it[STATE] : {};
3976
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
3982
3977
  };
3983
3978
  has = function (it) {
3984
- return hasOwn$7(it, STATE);
3979
+ return hasOwn$6(it, STATE);
3985
3980
  };
3986
3981
  }
3987
3982
 
@@ -3993,51 +3988,51 @@ var internalState = {
3993
3988
  getterFor: getterFor
3994
3989
  };
3995
3990
 
3996
- var uncurryThis$i = functionUncurryThis;
3997
- var fails$f = fails$m;
3998
- var isCallable$g = isCallable$o;
3999
- var hasOwn$6 = hasOwnProperty_1;
4000
- var DESCRIPTORS$6 = descriptors;
3991
+ var uncurryThis$c = functionUncurryThis;
3992
+ var fails$b = fails$i;
3993
+ var isCallable$d = isCallable$l;
3994
+ var hasOwn$5 = hasOwnProperty_1;
3995
+ var DESCRIPTORS$5 = descriptors;
4001
3996
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
4002
3997
  var inspectSource$2 = inspectSource$3;
4003
3998
  var InternalStateModule$2 = internalState;
4004
3999
 
4005
4000
  var enforceInternalState = InternalStateModule$2.enforce;
4006
4001
  var getInternalState$2 = InternalStateModule$2.get;
4007
- var $String$3 = String;
4002
+ var $String$2 = String;
4008
4003
  // eslint-disable-next-line es/no-object-defineproperty -- safe
4009
- var defineProperty$6 = Object.defineProperty;
4010
- var stringSlice$4 = uncurryThis$i(''.slice);
4011
- var replace$5 = uncurryThis$i(''.replace);
4012
- var join = uncurryThis$i([].join);
4004
+ var defineProperty$5 = Object.defineProperty;
4005
+ var stringSlice$4 = uncurryThis$c(''.slice);
4006
+ var replace$2 = uncurryThis$c(''.replace);
4007
+ var join = uncurryThis$c([].join);
4013
4008
 
4014
- var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$f(function () {
4015
- return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
4009
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$b(function () {
4010
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
4016
4011
  });
4017
4012
 
4018
4013
  var TEMPLATE = String(String).split('String');
4019
4014
 
4020
4015
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
4021
- if (stringSlice$4($String$3(name), 0, 7) === 'Symbol(') {
4022
- name = '[' + replace$5($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
4016
+ if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
4017
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
4023
4018
  }
4024
4019
  if (options && options.getter) name = 'get ' + name;
4025
4020
  if (options && options.setter) name = 'set ' + name;
4026
- if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
4027
- if (DESCRIPTORS$6) defineProperty$6(value, 'name', { value: name, configurable: true });
4021
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
4022
+ if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
4028
4023
  else value.name = name;
4029
4024
  }
4030
- if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
4031
- defineProperty$6(value, 'length', { value: options.arity });
4025
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
4026
+ defineProperty$5(value, 'length', { value: options.arity });
4032
4027
  }
4033
4028
  try {
4034
- if (options && hasOwn$6(options, 'constructor') && options.constructor) {
4035
- if (DESCRIPTORS$6) defineProperty$6(value, 'prototype', { writable: false });
4029
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
4030
+ if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
4036
4031
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
4037
4032
  } else if (value.prototype) value.prototype = undefined;
4038
4033
  } catch (error) { /* empty */ }
4039
4034
  var state = enforceInternalState(value);
4040
- if (!hasOwn$6(state, 'source')) {
4035
+ if (!hasOwn$5(state, 'source')) {
4041
4036
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
4042
4037
  } return value;
4043
4038
  };
@@ -4045,12 +4040,12 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
4045
4040
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
4046
4041
  // eslint-disable-next-line no-extend-native -- required
4047
4042
  Function.prototype.toString = makeBuiltIn$2(function toString() {
4048
- return isCallable$g(this) && getInternalState$2(this).source || inspectSource$2(this);
4043
+ return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
4049
4044
  }, 'toString');
4050
4045
 
4051
4046
  var makeBuiltInExports = makeBuiltIn$3.exports;
4052
4047
 
4053
- var isCallable$f = isCallable$o;
4048
+ var isCallable$c = isCallable$l;
4054
4049
  var definePropertyModule$2 = objectDefineProperty;
4055
4050
  var makeBuiltIn$1 = makeBuiltInExports;
4056
4051
  var defineGlobalProperty$1 = defineGlobalProperty$3;
@@ -4059,7 +4054,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
4059
4054
  if (!options) options = {};
4060
4055
  var simple = options.enumerable;
4061
4056
  var name = options.name !== undefined ? options.name : key;
4062
- if (isCallable$f(value)) makeBuiltIn$1(value, name, options);
4057
+ if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
4063
4058
  if (options.global) {
4064
4059
  if (simple) O[key] = value;
4065
4060
  else defineGlobalProperty$1(key, value);
@@ -4138,7 +4133,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
4138
4133
  var lengthOfArrayLike$1 = lengthOfArrayLike$2;
4139
4134
 
4140
4135
  // `Array.prototype.{ indexOf, includes }` methods implementation
4141
- var createMethod$2 = function (IS_INCLUDES) {
4136
+ var createMethod$1 = function (IS_INCLUDES) {
4142
4137
  return function ($this, el, fromIndex) {
4143
4138
  var O = toIndexedObject$3($this);
4144
4139
  var length = lengthOfArrayLike$1(O);
@@ -4161,29 +4156,29 @@ var createMethod$2 = function (IS_INCLUDES) {
4161
4156
  var arrayIncludes = {
4162
4157
  // `Array.prototype.includes` method
4163
4158
  // https://tc39.es/ecma262/#sec-array.prototype.includes
4164
- includes: createMethod$2(true),
4159
+ includes: createMethod$1(true),
4165
4160
  // `Array.prototype.indexOf` method
4166
4161
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
4167
- indexOf: createMethod$2(false)
4162
+ indexOf: createMethod$1(false)
4168
4163
  };
4169
4164
 
4170
- var uncurryThis$h = functionUncurryThis;
4171
- var hasOwn$5 = hasOwnProperty_1;
4165
+ var uncurryThis$b = functionUncurryThis;
4166
+ var hasOwn$4 = hasOwnProperty_1;
4172
4167
  var toIndexedObject$2 = toIndexedObject$5;
4173
4168
  var indexOf$1 = arrayIncludes.indexOf;
4174
4169
  var hiddenKeys$2 = hiddenKeys$4;
4175
4170
 
4176
- var push$2 = uncurryThis$h([].push);
4171
+ var push$1 = uncurryThis$b([].push);
4177
4172
 
4178
4173
  var objectKeysInternal = function (object, names) {
4179
4174
  var O = toIndexedObject$2(object);
4180
4175
  var i = 0;
4181
4176
  var result = [];
4182
4177
  var key;
4183
- for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$2(result, key);
4178
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
4184
4179
  // Don't enum bug & hidden keys
4185
- while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
4186
- ~indexOf$1(result, key) || push$2(result, key);
4180
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
4181
+ ~indexOf$1(result, key) || push$1(result, key);
4187
4182
  }
4188
4183
  return result;
4189
4184
  };
@@ -4216,40 +4211,40 @@ var objectGetOwnPropertySymbols = {};
4216
4211
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
4217
4212
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
4218
4213
 
4219
- var getBuiltIn$7 = getBuiltIn$9;
4220
- var uncurryThis$g = functionUncurryThis;
4214
+ var getBuiltIn$5 = getBuiltIn$7;
4215
+ var uncurryThis$a = functionUncurryThis;
4221
4216
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
4222
4217
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
4223
4218
  var anObject$b = anObject$d;
4224
4219
 
4225
- var concat$2 = uncurryThis$g([].concat);
4220
+ var concat$2 = uncurryThis$a([].concat);
4226
4221
 
4227
4222
  // all object keys, includes non-enumerable and symbols
4228
- var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
4223
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
4229
4224
  var keys = getOwnPropertyNamesModule.f(anObject$b(it));
4230
4225
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
4231
4226
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
4232
4227
  };
4233
4228
 
4234
- var hasOwn$4 = hasOwnProperty_1;
4229
+ var hasOwn$3 = hasOwnProperty_1;
4235
4230
  var ownKeys = ownKeys$1;
4236
4231
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
4237
4232
  var definePropertyModule$1 = objectDefineProperty;
4238
4233
 
4239
- var copyConstructorProperties$2 = function (target, source, exceptions) {
4234
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
4240
4235
  var keys = ownKeys(source);
4241
4236
  var defineProperty = definePropertyModule$1.f;
4242
4237
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
4243
4238
  for (var i = 0; i < keys.length; i++) {
4244
4239
  var key = keys[i];
4245
- if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
4240
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
4246
4241
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
4247
4242
  }
4248
4243
  }
4249
4244
  };
4250
4245
 
4251
- var fails$e = fails$m;
4252
- var isCallable$e = isCallable$o;
4246
+ var fails$a = fails$i;
4247
+ var isCallable$b = isCallable$l;
4253
4248
 
4254
4249
  var replacement = /#|\.prototype\./;
4255
4250
 
@@ -4257,7 +4252,7 @@ var isForced$2 = function (feature, detection) {
4257
4252
  var value = data[normalize$1(feature)];
4258
4253
  return value === POLYFILL ? true
4259
4254
  : value === NATIVE ? false
4260
- : isCallable$e(detection) ? fails$e(detection)
4255
+ : isCallable$b(detection) ? fails$a(detection)
4261
4256
  : !!detection;
4262
4257
  };
4263
4258
 
@@ -4271,12 +4266,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
4271
4266
 
4272
4267
  var isForced_1 = isForced$2;
4273
4268
 
4274
- var global$e = global$n;
4269
+ var global$c = global$l;
4275
4270
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
4276
- var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
4271
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
4277
4272
  var defineBuiltIn$5 = defineBuiltIn$6;
4278
4273
  var defineGlobalProperty = defineGlobalProperty$3;
4279
- var copyConstructorProperties$1 = copyConstructorProperties$2;
4274
+ var copyConstructorProperties = copyConstructorProperties$1;
4280
4275
  var isForced$1 = isForced_1;
4281
4276
 
4282
4277
  /*
@@ -4300,11 +4295,11 @@ var _export = function (options, source) {
4300
4295
  var STATIC = options.stat;
4301
4296
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
4302
4297
  if (GLOBAL) {
4303
- target = global$e;
4298
+ target = global$c;
4304
4299
  } else if (STATIC) {
4305
- target = global$e[TARGET] || defineGlobalProperty(TARGET, {});
4300
+ target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
4306
4301
  } else {
4307
- target = global$e[TARGET] && global$e[TARGET].prototype;
4302
+ target = global$c[TARGET] && global$c[TARGET].prototype;
4308
4303
  }
4309
4304
  if (target) for (key in source) {
4310
4305
  sourceProperty = source[key];
@@ -4316,11 +4311,11 @@ var _export = function (options, source) {
4316
4311
  // contained in target
4317
4312
  if (!FORCED && targetProperty !== undefined) {
4318
4313
  if (typeof sourceProperty == typeof targetProperty) continue;
4319
- copyConstructorProperties$1(sourceProperty, targetProperty);
4314
+ copyConstructorProperties(sourceProperty, targetProperty);
4320
4315
  }
4321
4316
  // add a flag to not completely full polyfills
4322
4317
  if (options.sham || (targetProperty && targetProperty.sham)) {
4323
- createNonEnumerableProperty$6(sourceProperty, 'sham', true);
4318
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
4324
4319
  }
4325
4320
  defineBuiltIn$5(target, key, sourceProperty, options);
4326
4321
  }
@@ -4336,10 +4331,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
4336
4331
  return internalObjectKeys(O, enumBugKeys$1);
4337
4332
  };
4338
4333
 
4339
- var DESCRIPTORS$5 = descriptors;
4340
- var uncurryThis$f = functionUncurryThis;
4341
- var call$e = functionCall;
4342
- var fails$d = fails$m;
4334
+ var DESCRIPTORS$4 = descriptors;
4335
+ var uncurryThis$9 = functionUncurryThis;
4336
+ var call$d = functionCall;
4337
+ var fails$9 = fails$i;
4343
4338
  var objectKeys$1 = objectKeys$2;
4344
4339
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
4345
4340
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -4349,17 +4344,17 @@ var IndexedObject = indexedObject;
4349
4344
  // eslint-disable-next-line es/no-object-assign -- safe
4350
4345
  var $assign = Object.assign;
4351
4346
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
4352
- var defineProperty$5 = Object.defineProperty;
4353
- var concat$1 = uncurryThis$f([].concat);
4347
+ var defineProperty$4 = Object.defineProperty;
4348
+ var concat$1 = uncurryThis$9([].concat);
4354
4349
 
4355
4350
  // `Object.assign` method
4356
4351
  // https://tc39.es/ecma262/#sec-object.assign
4357
- var objectAssign = !$assign || fails$d(function () {
4352
+ var objectAssign = !$assign || fails$9(function () {
4358
4353
  // should have correct order of operations (Edge bug)
4359
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
4354
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
4360
4355
  enumerable: true,
4361
4356
  get: function () {
4362
- defineProperty$5(this, 'b', {
4357
+ defineProperty$4(this, 'b', {
4363
4358
  value: 3,
4364
4359
  enumerable: false
4365
4360
  });
@@ -4388,56 +4383,56 @@ var objectAssign = !$assign || fails$d(function () {
4388
4383
  var key;
4389
4384
  while (length > j) {
4390
4385
  key = keys[j++];
4391
- if (!DESCRIPTORS$5 || call$e(propertyIsEnumerable, S, key)) T[key] = S[key];
4386
+ if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
4392
4387
  }
4393
4388
  } return T;
4394
4389
  } : $assign;
4395
4390
 
4396
- var $$d = _export;
4391
+ var $$8 = _export;
4397
4392
  var assign = objectAssign;
4398
4393
 
4399
4394
  // `Object.assign` method
4400
4395
  // https://tc39.es/ecma262/#sec-object.assign
4401
4396
  // eslint-disable-next-line es/no-object-assign -- required for testing
4402
- $$d({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
4397
+ $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
4403
4398
  assign: assign
4404
4399
  });
4405
4400
 
4406
- var global$d = global$n;
4407
- var classof$8 = classofRaw$2;
4401
+ var global$b = global$l;
4402
+ var classof$5 = classofRaw$2;
4408
4403
 
4409
- var engineIsNode = classof$8(global$d.process) === 'process';
4404
+ var engineIsNode = classof$5(global$b.process) === 'process';
4410
4405
 
4411
- var uncurryThis$e = functionUncurryThis;
4406
+ var uncurryThis$8 = functionUncurryThis;
4412
4407
  var aCallable$6 = aCallable$8;
4413
4408
 
4414
4409
  var functionUncurryThisAccessor = function (object, key, method) {
4415
4410
  try {
4416
4411
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
4417
- return uncurryThis$e(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
4412
+ return uncurryThis$8(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
4418
4413
  } catch (error) { /* empty */ }
4419
4414
  };
4420
4415
 
4421
- var isObject$7 = isObject$d;
4416
+ var isObject$4 = isObject$a;
4422
4417
 
4423
4418
  var isPossiblePrototype$1 = function (argument) {
4424
- return isObject$7(argument) || argument === null;
4419
+ return isObject$4(argument) || argument === null;
4425
4420
  };
4426
4421
 
4427
4422
  var isPossiblePrototype = isPossiblePrototype$1;
4428
4423
 
4429
- var $String$2 = String;
4430
- var $TypeError$8 = TypeError;
4424
+ var $String$1 = String;
4425
+ var $TypeError$7 = TypeError;
4431
4426
 
4432
4427
  var aPossiblePrototype$1 = function (argument) {
4433
4428
  if (isPossiblePrototype(argument)) return argument;
4434
- throw new $TypeError$8("Can't set " + $String$2(argument) + ' as a prototype');
4429
+ throw new $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype');
4435
4430
  };
4436
4431
 
4437
4432
  /* eslint-disable no-proto -- safe */
4438
4433
  var uncurryThisAccessor = functionUncurryThisAccessor;
4439
- var isObject$6 = isObject$d;
4440
- var requireObjectCoercible$5 = requireObjectCoercible$8;
4434
+ var isObject$3 = isObject$a;
4435
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
4441
4436
  var aPossiblePrototype = aPossiblePrototype$1;
4442
4437
 
4443
4438
  // `Object.setPrototypeOf` method
@@ -4454,48 +4449,48 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
4454
4449
  CORRECT_SETTER = test instanceof Array;
4455
4450
  } catch (error) { /* empty */ }
4456
4451
  return function setPrototypeOf(O, proto) {
4457
- requireObjectCoercible$5(O);
4452
+ requireObjectCoercible$3(O);
4458
4453
  aPossiblePrototype(proto);
4459
- if (!isObject$6(O)) return O;
4454
+ if (!isObject$3(O)) return O;
4460
4455
  if (CORRECT_SETTER) setter(O, proto);
4461
4456
  else O.__proto__ = proto;
4462
4457
  return O;
4463
4458
  };
4464
4459
  }() : undefined);
4465
4460
 
4466
- var defineProperty$4 = objectDefineProperty.f;
4467
- var hasOwn$3 = hasOwnProperty_1;
4468
- var wellKnownSymbol$g = wellKnownSymbol$i;
4461
+ var defineProperty$3 = objectDefineProperty.f;
4462
+ var hasOwn$2 = hasOwnProperty_1;
4463
+ var wellKnownSymbol$e = wellKnownSymbol$g;
4469
4464
 
4470
- var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
4465
+ var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag');
4471
4466
 
4472
4467
  var setToStringTag$4 = function (target, TAG, STATIC) {
4473
4468
  if (target && !STATIC) target = target.prototype;
4474
- if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
4475
- defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
4469
+ if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
4470
+ defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
4476
4471
  }
4477
4472
  };
4478
4473
 
4479
4474
  var makeBuiltIn = makeBuiltInExports;
4480
- var defineProperty$3 = objectDefineProperty;
4475
+ var defineProperty$2 = objectDefineProperty;
4481
4476
 
4482
4477
  var defineBuiltInAccessor$1 = function (target, name, descriptor) {
4483
4478
  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
4484
4479
  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
4485
- return defineProperty$3.f(target, name, descriptor);
4480
+ return defineProperty$2.f(target, name, descriptor);
4486
4481
  };
4487
4482
 
4488
- var getBuiltIn$6 = getBuiltIn$9;
4483
+ var getBuiltIn$4 = getBuiltIn$7;
4489
4484
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
4490
- var wellKnownSymbol$f = wellKnownSymbol$i;
4491
- var DESCRIPTORS$4 = descriptors;
4485
+ var wellKnownSymbol$d = wellKnownSymbol$g;
4486
+ var DESCRIPTORS$3 = descriptors;
4492
4487
 
4493
- var SPECIES$3 = wellKnownSymbol$f('species');
4488
+ var SPECIES$3 = wellKnownSymbol$d('species');
4494
4489
 
4495
4490
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
4496
- var Constructor = getBuiltIn$6(CONSTRUCTOR_NAME);
4491
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
4497
4492
 
4498
- if (DESCRIPTORS$4 && Constructor && !Constructor[SPECIES$3]) {
4493
+ if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
4499
4494
  defineBuiltInAccessor(Constructor, SPECIES$3, {
4500
4495
  configurable: true,
4501
4496
  get: function () { return this; }
@@ -4503,18 +4498,18 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
4503
4498
  }
4504
4499
  };
4505
4500
 
4506
- var isPrototypeOf$2 = objectIsPrototypeOf;
4501
+ var isPrototypeOf$1 = objectIsPrototypeOf;
4507
4502
 
4508
- var $TypeError$7 = TypeError;
4503
+ var $TypeError$6 = TypeError;
4509
4504
 
4510
4505
  var anInstance$1 = function (it, Prototype) {
4511
- if (isPrototypeOf$2(Prototype, it)) return it;
4512
- throw new $TypeError$7('Incorrect invocation');
4506
+ if (isPrototypeOf$1(Prototype, it)) return it;
4507
+ throw new $TypeError$6('Incorrect invocation');
4513
4508
  };
4514
4509
 
4515
- var wellKnownSymbol$e = wellKnownSymbol$i;
4510
+ var wellKnownSymbol$c = wellKnownSymbol$g;
4516
4511
 
4517
- var TO_STRING_TAG$1 = wellKnownSymbol$e('toStringTag');
4512
+ var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
4518
4513
  var test = {};
4519
4514
 
4520
4515
  test[TO_STRING_TAG$1] = 'z';
@@ -4522,11 +4517,11 @@ test[TO_STRING_TAG$1] = 'z';
4522
4517
  var toStringTagSupport = String(test) === '[object z]';
4523
4518
 
4524
4519
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
4525
- var isCallable$d = isCallable$o;
4520
+ var isCallable$a = isCallable$l;
4526
4521
  var classofRaw$1 = classofRaw$2;
4527
- var wellKnownSymbol$d = wellKnownSymbol$i;
4522
+ var wellKnownSymbol$b = wellKnownSymbol$g;
4528
4523
 
4529
- var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
4524
+ var TO_STRING_TAG = wellKnownSymbol$b('toStringTag');
4530
4525
  var $Object$1 = Object;
4531
4526
 
4532
4527
  // ES3 wrong here
@@ -4540,7 +4535,7 @@ var tryGet = function (it, key) {
4540
4535
  };
4541
4536
 
4542
4537
  // getting tag from ES6+ `Object.prototype.toString`
4543
- var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
4538
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
4544
4539
  var O, tag, result;
4545
4540
  return it === undefined ? 'Undefined' : it === null ? 'Null'
4546
4541
  // @@toStringTag case
@@ -4548,24 +4543,24 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
4548
4543
  // builtinTag case
4549
4544
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
4550
4545
  // ES3 arguments fallback
4551
- : (result = classofRaw$1(O)) === 'Object' && isCallable$d(O.callee) ? 'Arguments' : result;
4546
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
4552
4547
  };
4553
4548
 
4554
- var uncurryThis$d = functionUncurryThis;
4555
- var fails$c = fails$m;
4556
- var isCallable$c = isCallable$o;
4557
- var classof$6 = classof$7;
4558
- var getBuiltIn$5 = getBuiltIn$9;
4549
+ var uncurryThis$7 = functionUncurryThis;
4550
+ var fails$8 = fails$i;
4551
+ var isCallable$9 = isCallable$l;
4552
+ var classof$3 = classof$4;
4553
+ var getBuiltIn$3 = getBuiltIn$7;
4559
4554
  var inspectSource$1 = inspectSource$3;
4560
4555
 
4561
4556
  var noop = function () { /* empty */ };
4562
- var construct = getBuiltIn$5('Reflect', 'construct');
4557
+ var construct = getBuiltIn$3('Reflect', 'construct');
4563
4558
  var constructorRegExp = /^\s*(?:class|function)\b/;
4564
- var exec$3 = uncurryThis$d(constructorRegExp.exec);
4559
+ var exec$1 = uncurryThis$7(constructorRegExp.exec);
4565
4560
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
4566
4561
 
4567
4562
  var isConstructorModern = function isConstructor(argument) {
4568
- if (!isCallable$c(argument)) return false;
4563
+ if (!isCallable$9(argument)) return false;
4569
4564
  try {
4570
4565
  construct(noop, [], argument);
4571
4566
  return true;
@@ -4575,8 +4570,8 @@ var isConstructorModern = function isConstructor(argument) {
4575
4570
  };
4576
4571
 
4577
4572
  var isConstructorLegacy = function isConstructor(argument) {
4578
- if (!isCallable$c(argument)) return false;
4579
- switch (classof$6(argument)) {
4573
+ if (!isCallable$9(argument)) return false;
4574
+ switch (classof$3(argument)) {
4580
4575
  case 'AsyncFunction':
4581
4576
  case 'GeneratorFunction':
4582
4577
  case 'AsyncGeneratorFunction': return false;
@@ -4585,7 +4580,7 @@ var isConstructorLegacy = function isConstructor(argument) {
4585
4580
  // we can't check .prototype since constructors produced by .bind haven't it
4586
4581
  // `Function#toString` throws on some built-it function in some legacy engines
4587
4582
  // (for example, `DOMQuad` and similar in FF41-)
4588
- return INCORRECT_TO_STRING || !!exec$3(constructorRegExp, inspectSource$1(argument));
4583
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
4589
4584
  } catch (error) {
4590
4585
  return true;
4591
4586
  }
@@ -4595,7 +4590,7 @@ isConstructorLegacy.sham = true;
4595
4590
 
4596
4591
  // `IsConstructor` abstract operation
4597
4592
  // https://tc39.es/ecma262/#sec-isconstructor
4598
- var isConstructor$1 = !construct || fails$c(function () {
4593
+ var isConstructor$1 = !construct || fails$8(function () {
4599
4594
  var called;
4600
4595
  return isConstructorModern(isConstructorModern.call)
4601
4596
  || !isConstructorModern(Object)
@@ -4606,20 +4601,20 @@ var isConstructor$1 = !construct || fails$c(function () {
4606
4601
  var isConstructor = isConstructor$1;
4607
4602
  var tryToString$2 = tryToString$4;
4608
4603
 
4609
- var $TypeError$6 = TypeError;
4604
+ var $TypeError$5 = TypeError;
4610
4605
 
4611
4606
  // `Assert: IsConstructor(argument) is true`
4612
4607
  var aConstructor$1 = function (argument) {
4613
4608
  if (isConstructor(argument)) return argument;
4614
- throw new $TypeError$6(tryToString$2(argument) + ' is not a constructor');
4609
+ throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
4615
4610
  };
4616
4611
 
4617
4612
  var anObject$a = anObject$d;
4618
4613
  var aConstructor = aConstructor$1;
4619
4614
  var isNullOrUndefined$3 = isNullOrUndefined$6;
4620
- var wellKnownSymbol$c = wellKnownSymbol$i;
4615
+ var wellKnownSymbol$a = wellKnownSymbol$g;
4621
4616
 
4622
- var SPECIES$2 = wellKnownSymbol$c('species');
4617
+ var SPECIES$2 = wellKnownSymbol$a('species');
4623
4618
 
4624
4619
  // `SpeciesConstructor` abstract operation
4625
4620
  // https://tc39.es/ecma262/#sec-speciesconstructor
@@ -4632,29 +4627,29 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
4632
4627
  var NATIVE_BIND$1 = functionBindNative;
4633
4628
 
4634
4629
  var FunctionPrototype = Function.prototype;
4635
- var apply$4 = FunctionPrototype.apply;
4636
- var call$d = FunctionPrototype.call;
4630
+ var apply$2 = FunctionPrototype.apply;
4631
+ var call$c = FunctionPrototype.call;
4637
4632
 
4638
4633
  // eslint-disable-next-line es/no-reflect -- safe
4639
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$d.bind(apply$4) : function () {
4640
- return call$d.apply(apply$4, arguments);
4634
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$2) : function () {
4635
+ return call$c.apply(apply$2, arguments);
4641
4636
  });
4642
4637
 
4643
4638
  var classofRaw = classofRaw$2;
4644
- var uncurryThis$c = functionUncurryThis;
4639
+ var uncurryThis$6 = functionUncurryThis;
4645
4640
 
4646
4641
  var functionUncurryThisClause = function (fn) {
4647
4642
  // Nashorn bug:
4648
4643
  // https://github.com/zloirock/core-js/issues/1128
4649
4644
  // https://github.com/zloirock/core-js/issues/1130
4650
- if (classofRaw(fn) === 'Function') return uncurryThis$c(fn);
4645
+ if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
4651
4646
  };
4652
4647
 
4653
- var uncurryThis$b = functionUncurryThisClause;
4648
+ var uncurryThis$5 = functionUncurryThisClause;
4654
4649
  var aCallable$5 = aCallable$8;
4655
4650
  var NATIVE_BIND = functionBindNative;
4656
4651
 
4657
- var bind$4 = uncurryThis$b(uncurryThis$b.bind);
4652
+ var bind$4 = uncurryThis$5(uncurryThis$5.bind);
4658
4653
 
4659
4654
  // optional / simple context binding
4660
4655
  var functionBindContext = function (fn, that) {
@@ -4664,18 +4659,18 @@ var functionBindContext = function (fn, that) {
4664
4659
  };
4665
4660
  };
4666
4661
 
4667
- var getBuiltIn$4 = getBuiltIn$9;
4662
+ var getBuiltIn$2 = getBuiltIn$7;
4668
4663
 
4669
- var html$2 = getBuiltIn$4('document', 'documentElement');
4664
+ var html$2 = getBuiltIn$2('document', 'documentElement');
4670
4665
 
4671
- var uncurryThis$a = functionUncurryThis;
4666
+ var uncurryThis$4 = functionUncurryThis;
4672
4667
 
4673
- var arraySlice$2 = uncurryThis$a([].slice);
4668
+ var arraySlice$1 = uncurryThis$4([].slice);
4674
4669
 
4675
- var $TypeError$5 = TypeError;
4670
+ var $TypeError$4 = TypeError;
4676
4671
 
4677
4672
  var validateArgumentsLength$1 = function (passed, required) {
4678
- if (passed < required) throw new $TypeError$5('Not enough arguments');
4673
+ if (passed < required) throw new $TypeError$4('Not enough arguments');
4679
4674
  return passed;
4680
4675
  };
4681
4676
 
@@ -4684,38 +4679,38 @@ var userAgent$2 = engineUserAgent;
4684
4679
  // eslint-disable-next-line redos/no-vulnerable -- safe
4685
4680
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
4686
4681
 
4687
- var global$c = global$n;
4688
- var apply$3 = functionApply;
4682
+ var global$a = global$l;
4683
+ var apply$1 = functionApply;
4689
4684
  var bind$3 = functionBindContext;
4690
- var isCallable$b = isCallable$o;
4691
- var hasOwn$2 = hasOwnProperty_1;
4692
- var fails$b = fails$m;
4685
+ var isCallable$8 = isCallable$l;
4686
+ var hasOwn$1 = hasOwnProperty_1;
4687
+ var fails$7 = fails$i;
4693
4688
  var html$1 = html$2;
4694
- var arraySlice$1 = arraySlice$2;
4689
+ var arraySlice = arraySlice$1;
4695
4690
  var createElement = documentCreateElement$2;
4696
4691
  var validateArgumentsLength = validateArgumentsLength$1;
4697
4692
  var IS_IOS$1 = engineIsIos;
4698
4693
  var IS_NODE$3 = engineIsNode;
4699
4694
 
4700
- var set = global$c.setImmediate;
4701
- var clear = global$c.clearImmediate;
4702
- var process$3 = global$c.process;
4703
- var Dispatch = global$c.Dispatch;
4704
- var Function$1 = global$c.Function;
4705
- var MessageChannel = global$c.MessageChannel;
4706
- var String$1 = global$c.String;
4695
+ var set = global$a.setImmediate;
4696
+ var clear = global$a.clearImmediate;
4697
+ var process$3 = global$a.process;
4698
+ var Dispatch = global$a.Dispatch;
4699
+ var Function$1 = global$a.Function;
4700
+ var MessageChannel = global$a.MessageChannel;
4701
+ var String$1 = global$a.String;
4707
4702
  var counter = 0;
4708
4703
  var queue$2 = {};
4709
4704
  var ONREADYSTATECHANGE = 'onreadystatechange';
4710
4705
  var $location, defer, channel, port;
4711
4706
 
4712
- fails$b(function () {
4707
+ fails$7(function () {
4713
4708
  // Deno throws a ReferenceError on `location` access without `--location` flag
4714
- $location = global$c.location;
4709
+ $location = global$a.location;
4715
4710
  });
4716
4711
 
4717
4712
  var run = function (id) {
4718
- if (hasOwn$2(queue$2, id)) {
4713
+ if (hasOwn$1(queue$2, id)) {
4719
4714
  var fn = queue$2[id];
4720
4715
  delete queue$2[id];
4721
4716
  fn();
@@ -4734,17 +4729,17 @@ var eventListener = function (event) {
4734
4729
 
4735
4730
  var globalPostMessageDefer = function (id) {
4736
4731
  // old engines have not location.origin
4737
- global$c.postMessage(String$1(id), $location.protocol + '//' + $location.host);
4732
+ global$a.postMessage(String$1(id), $location.protocol + '//' + $location.host);
4738
4733
  };
4739
4734
 
4740
4735
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
4741
4736
  if (!set || !clear) {
4742
4737
  set = function setImmediate(handler) {
4743
4738
  validateArgumentsLength(arguments.length, 1);
4744
- var fn = isCallable$b(handler) ? handler : Function$1(handler);
4745
- var args = arraySlice$1(arguments, 1);
4739
+ var fn = isCallable$8(handler) ? handler : Function$1(handler);
4740
+ var args = arraySlice(arguments, 1);
4746
4741
  queue$2[++counter] = function () {
4747
- apply$3(fn, undefined, args);
4742
+ apply$1(fn, undefined, args);
4748
4743
  };
4749
4744
  defer(counter);
4750
4745
  return counter;
@@ -4772,14 +4767,14 @@ if (!set || !clear) {
4772
4767
  // Browsers with postMessage, skip WebWorkers
4773
4768
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
4774
4769
  } else if (
4775
- global$c.addEventListener &&
4776
- isCallable$b(global$c.postMessage) &&
4777
- !global$c.importScripts &&
4770
+ global$a.addEventListener &&
4771
+ isCallable$8(global$a.postMessage) &&
4772
+ !global$a.importScripts &&
4778
4773
  $location && $location.protocol !== 'file:' &&
4779
- !fails$b(globalPostMessageDefer)
4774
+ !fails$7(globalPostMessageDefer)
4780
4775
  ) {
4781
4776
  defer = globalPostMessageDefer;
4782
- global$c.addEventListener('message', eventListener, false);
4777
+ global$a.addEventListener('message', eventListener, false);
4783
4778
  // IE8-
4784
4779
  } else if (ONREADYSTATECHANGE in createElement('script')) {
4785
4780
  defer = function (id) {
@@ -4801,16 +4796,16 @@ var task$1 = {
4801
4796
  clear: clear
4802
4797
  };
4803
4798
 
4804
- var global$b = global$n;
4805
- var DESCRIPTORS$3 = descriptors;
4799
+ var global$9 = global$l;
4800
+ var DESCRIPTORS$2 = descriptors;
4806
4801
 
4807
4802
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
4808
4803
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
4809
4804
 
4810
4805
  // Avoid NodeJS experimental warning
4811
4806
  var safeGetBuiltIn$1 = function (name) {
4812
- if (!DESCRIPTORS$3) return global$b[name];
4813
- var descriptor = getOwnPropertyDescriptor(global$b, name);
4807
+ if (!DESCRIPTORS$2) return global$9[name];
4808
+ var descriptor = getOwnPropertyDescriptor(global$9, name);
4814
4809
  return descriptor && descriptor.value;
4815
4810
  };
4816
4811
 
@@ -4847,7 +4842,7 @@ var userAgent = engineUserAgent;
4847
4842
 
4848
4843
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
4849
4844
 
4850
- var global$a = global$n;
4845
+ var global$8 = global$l;
4851
4846
  var safeGetBuiltIn = safeGetBuiltIn$1;
4852
4847
  var bind$2 = functionBindContext;
4853
4848
  var macrotask = task$1.set;
@@ -4857,10 +4852,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
4857
4852
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
4858
4853
  var IS_NODE$2 = engineIsNode;
4859
4854
 
4860
- var MutationObserver = global$a.MutationObserver || global$a.WebKitMutationObserver;
4861
- var document$2 = global$a.document;
4862
- var process$2 = global$a.process;
4863
- var Promise$1 = global$a.Promise;
4855
+ var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
4856
+ var document$2 = global$8.document;
4857
+ var process$2 = global$8.process;
4858
+ var Promise$1 = global$8.Promise;
4864
4859
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
4865
4860
  var notify$1, toggle, node, promise, then;
4866
4861
 
@@ -4912,7 +4907,7 @@ if (!microtask$1) {
4912
4907
  // - setTimeout
4913
4908
  } else {
4914
4909
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
4915
- macrotask = bind$2(macrotask, global$a);
4910
+ macrotask = bind$2(macrotask, global$8);
4916
4911
  notify$1 = function () {
4917
4912
  macrotask(flush);
4918
4913
  };
@@ -4941,9 +4936,9 @@ var perform$3 = function (exec) {
4941
4936
  }
4942
4937
  };
4943
4938
 
4944
- var global$9 = global$n;
4939
+ var global$7 = global$l;
4945
4940
 
4946
- var promiseNativeConstructor = global$9.Promise;
4941
+ var promiseNativeConstructor = global$7.Promise;
4947
4942
 
4948
4943
  /* global Deno -- Deno case */
4949
4944
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
@@ -4955,20 +4950,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
4955
4950
  && typeof window == 'object'
4956
4951
  && typeof document == 'object';
4957
4952
 
4958
- var global$8 = global$n;
4953
+ var global$6 = global$l;
4959
4954
  var NativePromiseConstructor$3 = promiseNativeConstructor;
4960
- var isCallable$a = isCallable$o;
4955
+ var isCallable$7 = isCallable$l;
4961
4956
  var isForced = isForced_1;
4962
4957
  var inspectSource = inspectSource$3;
4963
- var wellKnownSymbol$b = wellKnownSymbol$i;
4958
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
4964
4959
  var IS_BROWSER = engineIsBrowser;
4965
4960
  var IS_DENO = engineIsDeno;
4966
4961
  var V8_VERSION = engineV8Version;
4967
4962
 
4968
4963
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
4969
- var SPECIES$1 = wellKnownSymbol$b('species');
4964
+ var SPECIES$1 = wellKnownSymbol$9('species');
4970
4965
  var SUBCLASSING = false;
4971
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$a(global$8.PromiseRejectionEvent);
4966
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(global$6.PromiseRejectionEvent);
4972
4967
 
4973
4968
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
4974
4969
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -5004,12 +4999,12 @@ var newPromiseCapability$2 = {};
5004
4999
 
5005
5000
  var aCallable$4 = aCallable$8;
5006
5001
 
5007
- var $TypeError$4 = TypeError;
5002
+ var $TypeError$3 = TypeError;
5008
5003
 
5009
5004
  var PromiseCapability = function (C) {
5010
5005
  var resolve, reject;
5011
5006
  this.promise = new C(function ($$resolve, $$reject) {
5012
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$4('Bad Promise constructor');
5007
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
5013
5008
  resolve = $$resolve;
5014
5009
  reject = $$reject;
5015
5010
  });
@@ -5023,17 +5018,17 @@ newPromiseCapability$2.f = function (C) {
5023
5018
  return new PromiseCapability(C);
5024
5019
  };
5025
5020
 
5026
- var $$c = _export;
5021
+ var $$7 = _export;
5027
5022
  var IS_NODE = engineIsNode;
5028
- var global$7 = global$n;
5029
- var call$c = functionCall;
5023
+ var global$5 = global$l;
5024
+ var call$b = functionCall;
5030
5025
  var defineBuiltIn$4 = defineBuiltIn$6;
5031
- var setPrototypeOf$3 = objectSetPrototypeOf;
5026
+ var setPrototypeOf$1 = objectSetPrototypeOf;
5032
5027
  var setToStringTag$3 = setToStringTag$4;
5033
5028
  var setSpecies = setSpecies$1;
5034
5029
  var aCallable$3 = aCallable$8;
5035
- var isCallable$9 = isCallable$o;
5036
- var isObject$5 = isObject$d;
5030
+ var isCallable$6 = isCallable$l;
5031
+ var isObject$2 = isObject$a;
5037
5032
  var anInstance = anInstance$1;
5038
5033
  var speciesConstructor = speciesConstructor$1;
5039
5034
  var task = task$1.set;
@@ -5055,13 +5050,13 @@ var setInternalState$1 = InternalStateModule$1.set;
5055
5050
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
5056
5051
  var PromiseConstructor = NativePromiseConstructor$2;
5057
5052
  var PromisePrototype = NativePromisePrototype$1;
5058
- var TypeError$1 = global$7.TypeError;
5059
- var document$1 = global$7.document;
5060
- var process$1 = global$7.process;
5053
+ var TypeError$1 = global$5.TypeError;
5054
+ var document$1 = global$5.document;
5055
+ var process$1 = global$5.process;
5061
5056
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
5062
5057
  var newGenericPromiseCapability = newPromiseCapability$1;
5063
5058
 
5064
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$7.dispatchEvent);
5059
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$5.dispatchEvent);
5065
5060
  var UNHANDLED_REJECTION = 'unhandledrejection';
5066
5061
  var REJECTION_HANDLED = 'rejectionhandled';
5067
5062
  var PENDING = 0;
@@ -5075,7 +5070,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
5075
5070
  // helpers
5076
5071
  var isThenable = function (it) {
5077
5072
  var then;
5078
- return isObject$5(it) && isCallable$9(then = it.then) ? then : false;
5073
+ return isObject$2(it) && isCallable$6(then = it.then) ? then : false;
5079
5074
  };
5080
5075
 
5081
5076
  var callReaction = function (reaction, state) {
@@ -5104,7 +5099,7 @@ var callReaction = function (reaction, state) {
5104
5099
  if (result === reaction.promise) {
5105
5100
  reject(new TypeError$1('Promise-chain cycle'));
5106
5101
  } else if (then = isThenable(result)) {
5107
- call$c(then, result, resolve, reject);
5102
+ call$b(then, result, resolve, reject);
5108
5103
  } else resolve(result);
5109
5104
  } else reject(value);
5110
5105
  } catch (error) {
@@ -5134,14 +5129,14 @@ var dispatchEvent = function (name, promise, reason) {
5134
5129
  event.promise = promise;
5135
5130
  event.reason = reason;
5136
5131
  event.initEvent(name, false, true);
5137
- global$7.dispatchEvent(event);
5132
+ global$5.dispatchEvent(event);
5138
5133
  } else event = { promise: promise, reason: reason };
5139
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$7['on' + name])) handler(event);
5134
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$5['on' + name])) handler(event);
5140
5135
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
5141
5136
  };
5142
5137
 
5143
5138
  var onUnhandled = function (state) {
5144
- call$c(task, global$7, function () {
5139
+ call$b(task, global$5, function () {
5145
5140
  var promise = state.facade;
5146
5141
  var value = state.value;
5147
5142
  var IS_UNHANDLED = isUnhandled(state);
@@ -5164,7 +5159,7 @@ var isUnhandled = function (state) {
5164
5159
  };
5165
5160
 
5166
5161
  var onHandleUnhandled = function (state) {
5167
- call$c(task, global$7, function () {
5162
+ call$b(task, global$5, function () {
5168
5163
  var promise = state.facade;
5169
5164
  if (IS_NODE) {
5170
5165
  process$1.emit('rejectionHandled', promise);
@@ -5198,7 +5193,7 @@ var internalResolve = function (state, value, unwrap) {
5198
5193
  microtask(function () {
5199
5194
  var wrapper = { done: false };
5200
5195
  try {
5201
- call$c(then, value,
5196
+ call$b(then, value,
5202
5197
  bind$1(internalResolve, wrapper, state),
5203
5198
  bind$1(internalReject, wrapper, state)
5204
5199
  );
@@ -5222,7 +5217,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5222
5217
  PromiseConstructor = function Promise(executor) {
5223
5218
  anInstance(this, PromisePrototype);
5224
5219
  aCallable$3(executor);
5225
- call$c(Internal, this);
5220
+ call$b(Internal, this);
5226
5221
  var state = getInternalPromiseState(this);
5227
5222
  try {
5228
5223
  executor(bind$1(internalResolve, state), bind$1(internalReject, state));
@@ -5253,8 +5248,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5253
5248
  var state = getInternalPromiseState(this);
5254
5249
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
5255
5250
  state.parent = true;
5256
- reaction.ok = isCallable$9(onFulfilled) ? onFulfilled : true;
5257
- reaction.fail = isCallable$9(onRejected) && onRejected;
5251
+ reaction.ok = isCallable$6(onFulfilled) ? onFulfilled : true;
5252
+ reaction.fail = isCallable$6(onRejected) && onRejected;
5258
5253
  reaction.domain = IS_NODE ? process$1.domain : undefined;
5259
5254
  if (state.state === PENDING) state.reactions.add(reaction);
5260
5255
  else microtask(function () {
@@ -5277,7 +5272,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5277
5272
  : newGenericPromiseCapability(C);
5278
5273
  };
5279
5274
 
5280
- if (isCallable$9(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
5275
+ if (isCallable$6(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
5281
5276
  nativeThen = NativePromisePrototype$1.then;
5282
5277
 
5283
5278
  if (!NATIVE_PROMISE_SUBCLASSING) {
@@ -5285,7 +5280,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5285
5280
  defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
5286
5281
  var that = this;
5287
5282
  return new PromiseConstructor(function (resolve, reject) {
5288
- call$c(nativeThen, that, resolve, reject);
5283
+ call$b(nativeThen, that, resolve, reject);
5289
5284
  }).then(onFulfilled, onRejected);
5290
5285
  // https://github.com/zloirock/core-js/issues/640
5291
5286
  }, { unsafe: true });
@@ -5297,13 +5292,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5297
5292
  } catch (error) { /* empty */ }
5298
5293
 
5299
5294
  // make `instanceof Promise` work for native promise-based APIs
5300
- if (setPrototypeOf$3) {
5301
- setPrototypeOf$3(NativePromisePrototype$1, PromisePrototype);
5295
+ if (setPrototypeOf$1) {
5296
+ setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
5302
5297
  }
5303
5298
  }
5304
5299
  }
5305
5300
 
5306
- $$c({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5301
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5307
5302
  Promise: PromiseConstructor
5308
5303
  });
5309
5304
 
@@ -5312,46 +5307,46 @@ setSpecies(PROMISE);
5312
5307
 
5313
5308
  var iterators = {};
5314
5309
 
5315
- var wellKnownSymbol$a = wellKnownSymbol$i;
5310
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
5316
5311
  var Iterators$4 = iterators;
5317
5312
 
5318
- var ITERATOR$6 = wellKnownSymbol$a('iterator');
5313
+ var ITERATOR$5 = wellKnownSymbol$8('iterator');
5319
5314
  var ArrayPrototype$1 = Array.prototype;
5320
5315
 
5321
5316
  // check on default Array iterator
5322
5317
  var isArrayIteratorMethod$1 = function (it) {
5323
- return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
5318
+ return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
5324
5319
  };
5325
5320
 
5326
- var classof$5 = classof$7;
5321
+ var classof$2 = classof$4;
5327
5322
  var getMethod$3 = getMethod$5;
5328
5323
  var isNullOrUndefined$2 = isNullOrUndefined$6;
5329
5324
  var Iterators$3 = iterators;
5330
- var wellKnownSymbol$9 = wellKnownSymbol$i;
5325
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
5331
5326
 
5332
- var ITERATOR$5 = wellKnownSymbol$9('iterator');
5327
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
5333
5328
 
5334
5329
  var getIteratorMethod$2 = function (it) {
5335
- if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$5)
5330
+ if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$4)
5336
5331
  || getMethod$3(it, '@@iterator')
5337
- || Iterators$3[classof$5(it)];
5332
+ || Iterators$3[classof$2(it)];
5338
5333
  };
5339
5334
 
5340
- var call$b = functionCall;
5335
+ var call$a = functionCall;
5341
5336
  var aCallable$2 = aCallable$8;
5342
5337
  var anObject$9 = anObject$d;
5343
5338
  var tryToString$1 = tryToString$4;
5344
5339
  var getIteratorMethod$1 = getIteratorMethod$2;
5345
5340
 
5346
- var $TypeError$3 = TypeError;
5341
+ var $TypeError$2 = TypeError;
5347
5342
 
5348
5343
  var getIterator$1 = function (argument, usingIterator) {
5349
5344
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
5350
- if (aCallable$2(iteratorMethod)) return anObject$9(call$b(iteratorMethod, argument));
5351
- throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
5345
+ if (aCallable$2(iteratorMethod)) return anObject$9(call$a(iteratorMethod, argument));
5346
+ throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
5352
5347
  };
5353
5348
 
5354
- var call$a = functionCall;
5349
+ var call$9 = functionCall;
5355
5350
  var anObject$8 = anObject$d;
5356
5351
  var getMethod$2 = getMethod$5;
5357
5352
 
@@ -5364,7 +5359,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
5364
5359
  if (kind === 'throw') throw value;
5365
5360
  return value;
5366
5361
  }
5367
- innerResult = call$a(innerResult, iterator);
5362
+ innerResult = call$9(innerResult, iterator);
5368
5363
  } catch (error) {
5369
5364
  innerError = true;
5370
5365
  innerResult = error;
@@ -5376,17 +5371,17 @@ var iteratorClose$1 = function (iterator, kind, value) {
5376
5371
  };
5377
5372
 
5378
5373
  var bind = functionBindContext;
5379
- var call$9 = functionCall;
5374
+ var call$8 = functionCall;
5380
5375
  var anObject$7 = anObject$d;
5381
5376
  var tryToString = tryToString$4;
5382
5377
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
5383
5378
  var lengthOfArrayLike = lengthOfArrayLike$2;
5384
- var isPrototypeOf$1 = objectIsPrototypeOf;
5379
+ var isPrototypeOf = objectIsPrototypeOf;
5385
5380
  var getIterator = getIterator$1;
5386
5381
  var getIteratorMethod = getIteratorMethod$2;
5387
5382
  var iteratorClose = iteratorClose$1;
5388
5383
 
5389
- var $TypeError$2 = TypeError;
5384
+ var $TypeError$1 = TypeError;
5390
5385
 
5391
5386
  var Result = function (stopped, result) {
5392
5387
  this.stopped = stopped;
@@ -5422,31 +5417,31 @@ var iterate$2 = function (iterable, unboundFunction, options) {
5422
5417
  iterator = iterable;
5423
5418
  } else {
5424
5419
  iterFn = getIteratorMethod(iterable);
5425
- if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
5420
+ if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
5426
5421
  // optimisation for array iterators
5427
5422
  if (isArrayIteratorMethod(iterFn)) {
5428
5423
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
5429
5424
  result = callFn(iterable[index]);
5430
- if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
5425
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
5431
5426
  } return new Result(false);
5432
5427
  }
5433
5428
  iterator = getIterator(iterable, iterFn);
5434
5429
  }
5435
5430
 
5436
5431
  next = IS_RECORD ? iterable.next : iterator.next;
5437
- while (!(step = call$9(next, iterator)).done) {
5432
+ while (!(step = call$8(next, iterator)).done) {
5438
5433
  try {
5439
5434
  result = callFn(step.value);
5440
5435
  } catch (error) {
5441
5436
  iteratorClose(iterator, 'throw', error);
5442
5437
  }
5443
- if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
5438
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
5444
5439
  } return new Result(false);
5445
5440
  };
5446
5441
 
5447
- var wellKnownSymbol$8 = wellKnownSymbol$i;
5442
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
5448
5443
 
5449
- var ITERATOR$4 = wellKnownSymbol$8('iterator');
5444
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
5450
5445
  var SAFE_CLOSING = false;
5451
5446
 
5452
5447
  try {
@@ -5459,7 +5454,7 @@ try {
5459
5454
  SAFE_CLOSING = true;
5460
5455
  }
5461
5456
  };
5462
- iteratorWithReturn[ITERATOR$4] = function () {
5457
+ iteratorWithReturn[ITERATOR$3] = function () {
5463
5458
  return this;
5464
5459
  };
5465
5460
  // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
@@ -5473,7 +5468,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5473
5468
  var ITERATION_SUPPORT = false;
5474
5469
  try {
5475
5470
  var object = {};
5476
- object[ITERATOR$4] = function () {
5471
+ object[ITERATOR$3] = function () {
5477
5472
  return {
5478
5473
  next: function () {
5479
5474
  return { done: ITERATION_SUPPORT = true };
@@ -5493,8 +5488,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
5493
5488
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
5494
5489
  });
5495
5490
 
5496
- var $$b = _export;
5497
- var call$8 = functionCall;
5491
+ var $$6 = _export;
5492
+ var call$7 = functionCall;
5498
5493
  var aCallable$1 = aCallable$8;
5499
5494
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
5500
5495
  var perform$1 = perform$3;
@@ -5503,7 +5498,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
5503
5498
 
5504
5499
  // `Promise.all` method
5505
5500
  // https://tc39.es/ecma262/#sec-promise.all
5506
- $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5501
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5507
5502
  all: function all(iterable) {
5508
5503
  var C = this;
5509
5504
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -5518,7 +5513,7 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5518
5513
  var index = counter++;
5519
5514
  var alreadyCalled = false;
5520
5515
  remaining++;
5521
- call$8($promiseResolve, C, promise).then(function (value) {
5516
+ call$7($promiseResolve, C, promise).then(function (value) {
5522
5517
  if (alreadyCalled) return;
5523
5518
  alreadyCalled = true;
5524
5519
  values[index] = value;
@@ -5532,33 +5527,33 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5532
5527
  }
5533
5528
  });
5534
5529
 
5535
- var $$a = _export;
5530
+ var $$5 = _export;
5536
5531
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
5537
5532
  var NativePromiseConstructor = promiseNativeConstructor;
5538
- var getBuiltIn$3 = getBuiltIn$9;
5539
- var isCallable$8 = isCallable$o;
5533
+ var getBuiltIn$1 = getBuiltIn$7;
5534
+ var isCallable$5 = isCallable$l;
5540
5535
  var defineBuiltIn$3 = defineBuiltIn$6;
5541
5536
 
5542
5537
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
5543
5538
 
5544
5539
  // `Promise.prototype.catch` method
5545
5540
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
5546
- $$a({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5541
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5547
5542
  'catch': function (onRejected) {
5548
5543
  return this.then(undefined, onRejected);
5549
5544
  }
5550
5545
  });
5551
5546
 
5552
5547
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
5553
- if (isCallable$8(NativePromiseConstructor)) {
5554
- var method = getBuiltIn$3('Promise').prototype['catch'];
5548
+ if (isCallable$5(NativePromiseConstructor)) {
5549
+ var method = getBuiltIn$1('Promise').prototype['catch'];
5555
5550
  if (NativePromisePrototype['catch'] !== method) {
5556
5551
  defineBuiltIn$3(NativePromisePrototype, 'catch', method, { unsafe: true });
5557
5552
  }
5558
5553
  }
5559
5554
 
5560
- var $$9 = _export;
5561
- var call$7 = functionCall;
5555
+ var $$4 = _export;
5556
+ var call$6 = functionCall;
5562
5557
  var aCallable = aCallable$8;
5563
5558
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
5564
5559
  var perform = perform$3;
@@ -5567,7 +5562,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
5567
5562
 
5568
5563
  // `Promise.race` method
5569
5564
  // https://tc39.es/ecma262/#sec-promise.race
5570
- $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5565
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5571
5566
  race: function race(iterable) {
5572
5567
  var C = this;
5573
5568
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -5575,7 +5570,7 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5575
5570
  var result = perform(function () {
5576
5571
  var $promiseResolve = aCallable(C.resolve);
5577
5572
  iterate(iterable, function (promise) {
5578
- call$7($promiseResolve, C, promise).then(capability.resolve, reject);
5573
+ call$6($promiseResolve, C, promise).then(capability.resolve, reject);
5579
5574
  });
5580
5575
  });
5581
5576
  if (result.error) reject(result.value);
@@ -5583,13 +5578,13 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5583
5578
  }
5584
5579
  });
5585
5580
 
5586
- var $$8 = _export;
5581
+ var $$3 = _export;
5587
5582
  var newPromiseCapabilityModule = newPromiseCapability$2;
5588
5583
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
5589
5584
 
5590
5585
  // `Promise.reject` method
5591
5586
  // https://tc39.es/ecma262/#sec-promise.reject
5592
- $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5587
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5593
5588
  reject: function reject(r) {
5594
5589
  var capability = newPromiseCapabilityModule.f(this);
5595
5590
  var capabilityReject = capability.reject;
@@ -5599,40 +5594,40 @@ $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5599
5594
  });
5600
5595
 
5601
5596
  var anObject$6 = anObject$d;
5602
- var isObject$4 = isObject$d;
5597
+ var isObject$1 = isObject$a;
5603
5598
  var newPromiseCapability = newPromiseCapability$2;
5604
5599
 
5605
5600
  var promiseResolve$1 = function (C, x) {
5606
5601
  anObject$6(C);
5607
- if (isObject$4(x) && x.constructor === C) return x;
5602
+ if (isObject$1(x) && x.constructor === C) return x;
5608
5603
  var promiseCapability = newPromiseCapability.f(C);
5609
5604
  var resolve = promiseCapability.resolve;
5610
5605
  resolve(x);
5611
5606
  return promiseCapability.promise;
5612
5607
  };
5613
5608
 
5614
- var $$7 = _export;
5615
- var getBuiltIn$2 = getBuiltIn$9;
5609
+ var $$2 = _export;
5610
+ var getBuiltIn = getBuiltIn$7;
5616
5611
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
5617
5612
  var promiseResolve = promiseResolve$1;
5618
5613
 
5619
- getBuiltIn$2('Promise');
5614
+ getBuiltIn('Promise');
5620
5615
 
5621
5616
  // `Promise.resolve` method
5622
5617
  // https://tc39.es/ecma262/#sec-promise.resolve
5623
- $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5618
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5624
5619
  resolve: function resolve(x) {
5625
5620
  return promiseResolve(this, x);
5626
5621
  }
5627
5622
  });
5628
5623
 
5629
- var classof$4 = classof$7;
5624
+ var classof$1 = classof$4;
5630
5625
 
5631
- var $String$1 = String;
5626
+ var $String = String;
5632
5627
 
5633
- var toString$9 = function (argument) {
5634
- if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
5635
- return $String$1(argument);
5628
+ var toString$4 = function (argument) {
5629
+ if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
5630
+ return $String(argument);
5636
5631
  };
5637
5632
 
5638
5633
  var anObject$5 = anObject$d;
@@ -5653,13 +5648,13 @@ var regexpFlags$1 = function () {
5653
5648
  return result;
5654
5649
  };
5655
5650
 
5656
- var fails$a = fails$m;
5657
- var global$6 = global$n;
5651
+ var fails$6 = fails$i;
5652
+ var global$4 = global$l;
5658
5653
 
5659
5654
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
5660
- var $RegExp$2 = global$6.RegExp;
5655
+ var $RegExp$2 = global$4.RegExp;
5661
5656
 
5662
- var UNSUPPORTED_Y$1 = fails$a(function () {
5657
+ var UNSUPPORTED_Y$1 = fails$6(function () {
5663
5658
  var re = $RegExp$2('a', 'y');
5664
5659
  re.lastIndex = 2;
5665
5660
  return re.exec('abcd') !== null;
@@ -5667,11 +5662,11 @@ var UNSUPPORTED_Y$1 = fails$a(function () {
5667
5662
 
5668
5663
  // UC Browser bug
5669
5664
  // https://github.com/zloirock/core-js/issues/1008
5670
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$a(function () {
5665
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
5671
5666
  return !$RegExp$2('a', 'y').sticky;
5672
5667
  });
5673
5668
 
5674
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$a(function () {
5669
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
5675
5670
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
5676
5671
  var re = $RegExp$2('^r', 'gy');
5677
5672
  re.lastIndex = 2;
@@ -5686,7 +5681,7 @@ var regexpStickyHelpers = {
5686
5681
 
5687
5682
  var objectDefineProperties = {};
5688
5683
 
5689
- var DESCRIPTORS$2 = descriptors;
5684
+ var DESCRIPTORS$1 = descriptors;
5690
5685
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
5691
5686
  var definePropertyModule = objectDefineProperty;
5692
5687
  var anObject$4 = anObject$d;
@@ -5696,7 +5691,7 @@ var objectKeys = objectKeys$2;
5696
5691
  // `Object.defineProperties` method
5697
5692
  // https://tc39.es/ecma262/#sec-object.defineproperties
5698
5693
  // eslint-disable-next-line es/no-object-defineproperties -- safe
5699
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
5694
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
5700
5695
  anObject$4(O);
5701
5696
  var props = toIndexedObject$1(Properties);
5702
5697
  var keys = objectKeys(Properties);
@@ -5791,24 +5786,24 @@ var objectCreate = Object.create || function create(O, Properties) {
5791
5786
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
5792
5787
  };
5793
5788
 
5794
- var fails$9 = fails$m;
5795
- var global$5 = global$n;
5789
+ var fails$5 = fails$i;
5790
+ var global$3 = global$l;
5796
5791
 
5797
5792
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
5798
- var $RegExp$1 = global$5.RegExp;
5793
+ var $RegExp$1 = global$3.RegExp;
5799
5794
 
5800
- var regexpUnsupportedDotAll = fails$9(function () {
5795
+ var regexpUnsupportedDotAll = fails$5(function () {
5801
5796
  var re = $RegExp$1('.', 's');
5802
5797
  return !(re.dotAll && re.test('\n') && re.flags === 's');
5803
5798
  });
5804
5799
 
5805
- var fails$8 = fails$m;
5806
- var global$4 = global$n;
5800
+ var fails$4 = fails$i;
5801
+ var global$2 = global$l;
5807
5802
 
5808
5803
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
5809
- var $RegExp = global$4.RegExp;
5804
+ var $RegExp = global$2.RegExp;
5810
5805
 
5811
- var regexpUnsupportedNcg = fails$8(function () {
5806
+ var regexpUnsupportedNcg = fails$4(function () {
5812
5807
  var re = $RegExp('(?<a>b)', 'g');
5813
5808
  return re.exec('b').groups.a !== 'b' ||
5814
5809
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -5816,9 +5811,9 @@ var regexpUnsupportedNcg = fails$8(function () {
5816
5811
 
5817
5812
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
5818
5813
  /* eslint-disable regexp/no-useless-quantifier -- testing */
5819
- var call$6 = functionCall;
5820
- var uncurryThis$9 = functionUncurryThis;
5821
- var toString$8 = toString$9;
5814
+ var call$5 = functionCall;
5815
+ var uncurryThis$3 = functionUncurryThis;
5816
+ var toString$3 = toString$4;
5822
5817
  var regexpFlags = regexpFlags$1;
5823
5818
  var stickyHelpers = regexpStickyHelpers;
5824
5819
  var shared = shared$4;
@@ -5830,16 +5825,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
5830
5825
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
5831
5826
  var nativeExec = RegExp.prototype.exec;
5832
5827
  var patchedExec = nativeExec;
5833
- var charAt$4 = uncurryThis$9(''.charAt);
5834
- var indexOf = uncurryThis$9(''.indexOf);
5835
- var replace$4 = uncurryThis$9(''.replace);
5836
- var stringSlice$3 = uncurryThis$9(''.slice);
5828
+ var charAt$3 = uncurryThis$3(''.charAt);
5829
+ var indexOf = uncurryThis$3(''.indexOf);
5830
+ var replace$1 = uncurryThis$3(''.replace);
5831
+ var stringSlice$3 = uncurryThis$3(''.slice);
5837
5832
 
5838
5833
  var UPDATES_LAST_INDEX_WRONG = (function () {
5839
5834
  var re1 = /a/;
5840
5835
  var re2 = /b*/g;
5841
- call$6(nativeExec, re1, 'a');
5842
- call$6(nativeExec, re2, 'a');
5836
+ call$5(nativeExec, re1, 'a');
5837
+ call$5(nativeExec, re2, 'a');
5843
5838
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
5844
5839
  })();
5845
5840
 
@@ -5854,33 +5849,33 @@ if (PATCH) {
5854
5849
  patchedExec = function exec(string) {
5855
5850
  var re = this;
5856
5851
  var state = getInternalState$1(re);
5857
- var str = toString$8(string);
5852
+ var str = toString$3(string);
5858
5853
  var raw = state.raw;
5859
5854
  var result, reCopy, lastIndex, match, i, object, group;
5860
5855
 
5861
5856
  if (raw) {
5862
5857
  raw.lastIndex = re.lastIndex;
5863
- result = call$6(patchedExec, raw, str);
5858
+ result = call$5(patchedExec, raw, str);
5864
5859
  re.lastIndex = raw.lastIndex;
5865
5860
  return result;
5866
5861
  }
5867
5862
 
5868
5863
  var groups = state.groups;
5869
5864
  var sticky = UNSUPPORTED_Y && re.sticky;
5870
- var flags = call$6(regexpFlags, re);
5865
+ var flags = call$5(regexpFlags, re);
5871
5866
  var source = re.source;
5872
5867
  var charsAdded = 0;
5873
5868
  var strCopy = str;
5874
5869
 
5875
5870
  if (sticky) {
5876
- flags = replace$4(flags, 'y', '');
5871
+ flags = replace$1(flags, 'y', '');
5877
5872
  if (indexOf(flags, 'g') === -1) {
5878
5873
  flags += 'g';
5879
5874
  }
5880
5875
 
5881
5876
  strCopy = stringSlice$3(str, re.lastIndex);
5882
5877
  // Support anchored sticky behavior.
5883
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
5878
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
5884
5879
  source = '(?: ' + source + ')';
5885
5880
  strCopy = ' ' + strCopy;
5886
5881
  charsAdded++;
@@ -5895,7 +5890,7 @@ if (PATCH) {
5895
5890
  }
5896
5891
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
5897
5892
 
5898
- match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
5893
+ match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
5899
5894
 
5900
5895
  if (sticky) {
5901
5896
  if (match) {
@@ -5910,7 +5905,7 @@ if (PATCH) {
5910
5905
  if (NPCG_INCLUDED && match && match.length > 1) {
5911
5906
  // Fix browsers whose `exec` methods don't consistently return `undefined`
5912
5907
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
5913
- call$6(nativeReplace, match[0], reCopy, function () {
5908
+ call$5(nativeReplace, match[0], reCopy, function () {
5914
5909
  for (i = 1; i < arguments.length - 2; i++) {
5915
5910
  if (arguments[i] === undefined) match[i] = undefined;
5916
5911
  }
@@ -5931,38 +5926,38 @@ if (PATCH) {
5931
5926
 
5932
5927
  var regexpExec$2 = patchedExec;
5933
5928
 
5934
- var $$6 = _export;
5935
- var exec$2 = regexpExec$2;
5929
+ var $$1 = _export;
5930
+ var exec = regexpExec$2;
5936
5931
 
5937
5932
  // `RegExp.prototype.exec` method
5938
5933
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
5939
- $$6({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
5940
- exec: exec$2
5934
+ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
5935
+ exec: exec
5941
5936
  });
5942
5937
 
5943
5938
  // TODO: Remove from `core-js@4` since it's moved to entry points
5944
5939
 
5945
- var call$5 = functionCall;
5940
+ var call$4 = functionCall;
5946
5941
  var defineBuiltIn$2 = defineBuiltIn$6;
5947
5942
  var regexpExec$1 = regexpExec$2;
5948
- var fails$7 = fails$m;
5949
- var wellKnownSymbol$7 = wellKnownSymbol$i;
5950
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
5943
+ var fails$3 = fails$i;
5944
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
5945
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
5951
5946
 
5952
- var SPECIES = wellKnownSymbol$7('species');
5947
+ var SPECIES = wellKnownSymbol$5('species');
5953
5948
  var RegExpPrototype = RegExp.prototype;
5954
5949
 
5955
5950
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
5956
- var SYMBOL = wellKnownSymbol$7(KEY);
5951
+ var SYMBOL = wellKnownSymbol$5(KEY);
5957
5952
 
5958
- var DELEGATES_TO_SYMBOL = !fails$7(function () {
5953
+ var DELEGATES_TO_SYMBOL = !fails$3(function () {
5959
5954
  // String methods call symbol-named RegExp methods
5960
5955
  var O = {};
5961
5956
  O[SYMBOL] = function () { return 7; };
5962
5957
  return ''[KEY](O) !== 7;
5963
5958
  });
5964
5959
 
5965
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
5960
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
5966
5961
  // Symbol-named RegExp methods call .exec
5967
5962
  var execCalled = false;
5968
5963
  var re = /a/;
@@ -6002,9 +5997,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
6002
5997
  // The native String method already delegates to @@method (this
6003
5998
  // polyfilled function), leasing to infinite recursion.
6004
5999
  // We avoid it by directly calling the native @@method method.
6005
- return { done: true, value: call$5(nativeRegExpMethod, regexp, str, arg2) };
6000
+ return { done: true, value: call$4(nativeRegExpMethod, regexp, str, arg2) };
6006
6001
  }
6007
- return { done: true, value: call$5(nativeMethod, str, regexp, arg2) };
6002
+ return { done: true, value: call$4(nativeMethod, str, regexp, arg2) };
6008
6003
  }
6009
6004
  return { done: false };
6010
6005
  });
@@ -6013,30 +6008,30 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
6013
6008
  defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
6014
6009
  }
6015
6010
 
6016
- if (SHAM) createNonEnumerableProperty$5(RegExpPrototype[SYMBOL], 'sham', true);
6011
+ if (SHAM) createNonEnumerableProperty$2(RegExpPrototype[SYMBOL], 'sham', true);
6017
6012
  };
6018
6013
 
6019
- var uncurryThis$8 = functionUncurryThis;
6014
+ var uncurryThis$2 = functionUncurryThis;
6020
6015
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
6021
- var toString$7 = toString$9;
6022
- var requireObjectCoercible$4 = requireObjectCoercible$8;
6016
+ var toString$2 = toString$4;
6017
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
6023
6018
 
6024
- var charAt$3 = uncurryThis$8(''.charAt);
6025
- var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
6026
- var stringSlice$2 = uncurryThis$8(''.slice);
6019
+ var charAt$2 = uncurryThis$2(''.charAt);
6020
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
6021
+ var stringSlice$2 = uncurryThis$2(''.slice);
6027
6022
 
6028
- var createMethod$1 = function (CONVERT_TO_STRING) {
6023
+ var createMethod = function (CONVERT_TO_STRING) {
6029
6024
  return function ($this, pos) {
6030
- var S = toString$7(requireObjectCoercible$4($this));
6025
+ var S = toString$2(requireObjectCoercible$2($this));
6031
6026
  var position = toIntegerOrInfinity$1(pos);
6032
6027
  var size = S.length;
6033
6028
  var first, second;
6034
6029
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
6035
- first = charCodeAt$1(S, position);
6030
+ first = charCodeAt(S, position);
6036
6031
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
6037
- || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
6032
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
6038
6033
  ? CONVERT_TO_STRING
6039
- ? charAt$3(S, position)
6034
+ ? charAt$2(S, position)
6040
6035
  : first
6041
6036
  : CONVERT_TO_STRING
6042
6037
  ? stringSlice$2(S, position, position + 2)
@@ -6047,27 +6042,27 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
6047
6042
  var stringMultibyte = {
6048
6043
  // `String.prototype.codePointAt` method
6049
6044
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
6050
- codeAt: createMethod$1(false),
6045
+ codeAt: createMethod(false),
6051
6046
  // `String.prototype.at` method
6052
6047
  // https://github.com/mathiasbynens/String.prototype.at
6053
- charAt: createMethod$1(true)
6048
+ charAt: createMethod(true)
6054
6049
  };
6055
6050
 
6056
- var charAt$2 = stringMultibyte.charAt;
6051
+ var charAt$1 = stringMultibyte.charAt;
6057
6052
 
6058
6053
  // `AdvanceStringIndex` abstract operation
6059
6054
  // https://tc39.es/ecma262/#sec-advancestringindex
6060
6055
  var advanceStringIndex$1 = function (S, index, unicode) {
6061
- return index + (unicode ? charAt$2(S, index).length : 1);
6056
+ return index + (unicode ? charAt$1(S, index).length : 1);
6062
6057
  };
6063
6058
 
6064
- var uncurryThis$7 = functionUncurryThis;
6059
+ var uncurryThis$1 = functionUncurryThis;
6065
6060
  var toObject$1 = toObject$4;
6066
6061
 
6067
6062
  var floor = Math.floor;
6068
- var charAt$1 = uncurryThis$7(''.charAt);
6069
- var replace$3 = uncurryThis$7(''.replace);
6070
- var stringSlice$1 = uncurryThis$7(''.slice);
6063
+ var charAt = uncurryThis$1(''.charAt);
6064
+ var replace = uncurryThis$1(''.replace);
6065
+ var stringSlice$1 = uncurryThis$1(''.slice);
6071
6066
  // eslint-disable-next-line redos/no-vulnerable -- safe
6072
6067
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
6073
6068
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
@@ -6082,9 +6077,9 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
6082
6077
  namedCaptures = toObject$1(namedCaptures);
6083
6078
  symbols = SUBSTITUTION_SYMBOLS;
6084
6079
  }
6085
- return replace$3(replacement, symbols, function (match, ch) {
6080
+ return replace(replacement, symbols, function (match, ch) {
6086
6081
  var capture;
6087
- switch (charAt$1(ch, 0)) {
6082
+ switch (charAt(ch, 0)) {
6088
6083
  case '$': return '$';
6089
6084
  case '&': return matched;
6090
6085
  case '`': return stringSlice$1(str, 0, position);
@@ -6098,7 +6093,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
6098
6093
  if (n > m) {
6099
6094
  var f = floor(n / 10);
6100
6095
  if (f === 0) return match;
6101
- if (f <= m) return captures[f - 1] === undefined ? charAt$1(ch, 1) : captures[f - 1] + charAt$1(ch, 1);
6096
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
6102
6097
  return match;
6103
6098
  }
6104
6099
  capture = captures[n - 1];
@@ -6107,52 +6102,52 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
6107
6102
  });
6108
6103
  };
6109
6104
 
6110
- var call$4 = functionCall;
6105
+ var call$3 = functionCall;
6111
6106
  var anObject$2 = anObject$d;
6112
- var isCallable$7 = isCallable$o;
6113
- var classof$3 = classofRaw$2;
6107
+ var isCallable$4 = isCallable$l;
6108
+ var classof = classofRaw$2;
6114
6109
  var regexpExec = regexpExec$2;
6115
6110
 
6116
- var $TypeError$1 = TypeError;
6111
+ var $TypeError = TypeError;
6117
6112
 
6118
6113
  // `RegExpExec` abstract operation
6119
6114
  // https://tc39.es/ecma262/#sec-regexpexec
6120
6115
  var regexpExecAbstract = function (R, S) {
6121
6116
  var exec = R.exec;
6122
- if (isCallable$7(exec)) {
6123
- var result = call$4(exec, R, S);
6117
+ if (isCallable$4(exec)) {
6118
+ var result = call$3(exec, R, S);
6124
6119
  if (result !== null) anObject$2(result);
6125
6120
  return result;
6126
6121
  }
6127
- if (classof$3(R) === 'RegExp') return call$4(regexpExec, R, S);
6128
- throw new $TypeError$1('RegExp#exec called on incompatible receiver');
6122
+ if (classof(R) === 'RegExp') return call$3(regexpExec, R, S);
6123
+ throw new $TypeError('RegExp#exec called on incompatible receiver');
6129
6124
  };
6130
6125
 
6131
- var apply$2 = functionApply;
6132
- var call$3 = functionCall;
6133
- var uncurryThis$6 = functionUncurryThis;
6126
+ var apply = functionApply;
6127
+ var call$2 = functionCall;
6128
+ var uncurryThis = functionUncurryThis;
6134
6129
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
6135
- var fails$6 = fails$m;
6130
+ var fails$2 = fails$i;
6136
6131
  var anObject$1 = anObject$d;
6137
- var isCallable$6 = isCallable$o;
6132
+ var isCallable$3 = isCallable$l;
6138
6133
  var isNullOrUndefined$1 = isNullOrUndefined$6;
6139
6134
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
6140
6135
  var toLength = toLength$2;
6141
- var toString$6 = toString$9;
6142
- var requireObjectCoercible$3 = requireObjectCoercible$8;
6136
+ var toString$1 = toString$4;
6137
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
6143
6138
  var advanceStringIndex = advanceStringIndex$1;
6144
6139
  var getMethod$1 = getMethod$5;
6145
6140
  var getSubstitution = getSubstitution$1;
6146
6141
  var regExpExec$1 = regexpExecAbstract;
6147
- var wellKnownSymbol$6 = wellKnownSymbol$i;
6142
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
6148
6143
 
6149
- var REPLACE = wellKnownSymbol$6('replace');
6144
+ var REPLACE = wellKnownSymbol$4('replace');
6150
6145
  var max = Math.max;
6151
6146
  var min = Math.min;
6152
- var concat = uncurryThis$6([].concat);
6153
- var push$1 = uncurryThis$6([].push);
6154
- var stringIndexOf$1 = uncurryThis$6(''.indexOf);
6155
- var stringSlice = uncurryThis$6(''.slice);
6147
+ var concat = uncurryThis([].concat);
6148
+ var push = uncurryThis([].push);
6149
+ var stringIndexOf = uncurryThis(''.indexOf);
6150
+ var stringSlice = uncurryThis(''.slice);
6156
6151
 
6157
6152
  var maybeToString = function (it) {
6158
6153
  return it === undefined ? it : String(it);
@@ -6173,7 +6168,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
6173
6168
  return false;
6174
6169
  })();
6175
6170
 
6176
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$6(function () {
6171
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function () {
6177
6172
  var re = /./;
6178
6173
  re.exec = function () {
6179
6174
  var result = [];
@@ -6192,29 +6187,29 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
6192
6187
  // `String.prototype.replace` method
6193
6188
  // https://tc39.es/ecma262/#sec-string.prototype.replace
6194
6189
  function replace(searchValue, replaceValue) {
6195
- var O = requireObjectCoercible$3(this);
6190
+ var O = requireObjectCoercible$1(this);
6196
6191
  var replacer = isNullOrUndefined$1(searchValue) ? undefined : getMethod$1(searchValue, REPLACE);
6197
6192
  return replacer
6198
- ? call$3(replacer, searchValue, O, replaceValue)
6199
- : call$3(nativeReplace, toString$6(O), searchValue, replaceValue);
6193
+ ? call$2(replacer, searchValue, O, replaceValue)
6194
+ : call$2(nativeReplace, toString$1(O), searchValue, replaceValue);
6200
6195
  },
6201
6196
  // `RegExp.prototype[@@replace]` method
6202
6197
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
6203
6198
  function (string, replaceValue) {
6204
6199
  var rx = anObject$1(this);
6205
- var S = toString$6(string);
6200
+ var S = toString$1(string);
6206
6201
 
6207
6202
  if (
6208
6203
  typeof replaceValue == 'string' &&
6209
- stringIndexOf$1(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
6210
- stringIndexOf$1(replaceValue, '$<') === -1
6204
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
6205
+ stringIndexOf(replaceValue, '$<') === -1
6211
6206
  ) {
6212
6207
  var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
6213
6208
  if (res.done) return res.value;
6214
6209
  }
6215
6210
 
6216
- var functionalReplace = isCallable$6(replaceValue);
6217
- if (!functionalReplace) replaceValue = toString$6(replaceValue);
6211
+ var functionalReplace = isCallable$3(replaceValue);
6212
+ if (!functionalReplace) replaceValue = toString$1(replaceValue);
6218
6213
 
6219
6214
  var global = rx.global;
6220
6215
  var fullUnicode;
@@ -6229,10 +6224,10 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
6229
6224
  result = regExpExec$1(rx, S);
6230
6225
  if (result === null) break;
6231
6226
 
6232
- push$1(results, result);
6227
+ push(results, result);
6233
6228
  if (!global) break;
6234
6229
 
6235
- var matchStr = toString$6(result[0]);
6230
+ var matchStr = toString$1(result[0]);
6236
6231
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
6237
6232
  }
6238
6233
 
@@ -6241,7 +6236,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
6241
6236
  for (var i = 0; i < results.length; i++) {
6242
6237
  result = results[i];
6243
6238
 
6244
- var matched = toString$6(result[0]);
6239
+ var matched = toString$1(result[0]);
6245
6240
  var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
6246
6241
  var captures = [];
6247
6242
  var replacement;
@@ -6250,12 +6245,12 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
6250
6245
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
6251
6246
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
6252
6247
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
6253
- for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
6248
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
6254
6249
  var namedCaptures = result.groups;
6255
6250
  if (functionalReplace) {
6256
6251
  var replacerArgs = concat([matched], captures, position, S);
6257
- if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
6258
- replacement = toString$6(apply$2(replaceValue, undefined, replacerArgs));
6252
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
6253
+ replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
6259
6254
  } else {
6260
6255
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
6261
6256
  }
@@ -6278,13 +6273,13 @@ var sameValue$1 = Object.is || function is(x, y) {
6278
6273
  return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
6279
6274
  };
6280
6275
 
6281
- var call$2 = functionCall;
6276
+ var call$1 = functionCall;
6282
6277
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
6283
6278
  var anObject = anObject$d;
6284
6279
  var isNullOrUndefined = isNullOrUndefined$6;
6285
- var requireObjectCoercible$2 = requireObjectCoercible$8;
6280
+ var requireObjectCoercible = requireObjectCoercible$6;
6286
6281
  var sameValue = sameValue$1;
6287
- var toString$5 = toString$9;
6282
+ var toString = toString$4;
6288
6283
  var getMethod = getMethod$5;
6289
6284
  var regExpExec = regexpExecAbstract;
6290
6285
 
@@ -6294,15 +6289,15 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
6294
6289
  // `String.prototype.search` method
6295
6290
  // https://tc39.es/ecma262/#sec-string.prototype.search
6296
6291
  function search(regexp) {
6297
- var O = requireObjectCoercible$2(this);
6292
+ var O = requireObjectCoercible(this);
6298
6293
  var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
6299
- return searcher ? call$2(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$5(O));
6294
+ return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
6300
6295
  },
6301
6296
  // `RegExp.prototype[@@search]` method
6302
6297
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
6303
6298
  function (string) {
6304
6299
  var rx = anObject(this);
6305
- var S = toString$5(string);
6300
+ var S = toString(string);
6306
6301
  var res = maybeCallNative(nativeSearch, rx, S);
6307
6302
 
6308
6303
  if (res.done) return res.value;
@@ -6363,7 +6358,7 @@ function initBackendsLocations() {
6363
6358
  dBackend = 'https://query.bcrumbs.net';
6364
6359
  exports.frontend = 'http://localhost:4200';
6365
6360
  exports.apiBackend = 'https://api.bcrumbs.net';
6366
- exports.apiV2Backend = 'https://apiv2-dev.bcrumbs.net';
6361
+ exports.apiV2Backend = 'https://apiv2.bcrumbs.net';
6367
6362
  showcaseRenderer = 'https://test-showcase.bcrumbs.net';
6368
6363
  } else if (currentUrl && currentUrl.indexOf('dconfig.com') > -1) {
6369
6364
  dBackend = 'https://query.bcrumbs.net';
@@ -6409,6 +6404,12 @@ const appConfig = {
6409
6404
  billing: {
6410
6405
  networkInterface: exports.apiV2Backend + '/billing'
6411
6406
  },
6407
+ core: {
6408
+ networkInterface: exports.apiV2Backend + '/core'
6409
+ },
6410
+ bot: {
6411
+ networkInterface: exports.apiV2Backend + '/bot'
6412
+ },
6412
6413
  // sw path
6413
6414
  sw: {
6414
6415
  path: 'assets/sw.js'
@@ -6416,9 +6417,9 @@ const appConfig = {
6416
6417
  };
6417
6418
 
6418
6419
  const {
6419
- networkInterface: uri$2
6420
+ networkInterface: uri$4
6420
6421
  } = appConfig.dconfig;
6421
- function getUserToken() {
6422
+ function getUserToken$2() {
6422
6423
  return __awaiter(this, void 0, void 0, function* () {
6423
6424
  return new Promise(resolve => {
6424
6425
  if (typeof window !== 'undefined') {
@@ -6440,10 +6441,10 @@ function getUserContext() {
6440
6441
  });
6441
6442
  });
6442
6443
  }
6443
- const authLink = context.setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
6444
+ const authLink$2 = context.setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
6444
6445
  headers
6445
6446
  }) {
6446
- const currentUsertoken = yield getUserToken();
6447
+ const currentUsertoken = yield getUserToken$2();
6447
6448
  const currentContext = yield getUserContext();
6448
6449
  if (headers === undefined) {
6449
6450
  headers = {};
@@ -6464,8 +6465,8 @@ const authLink = context.setContext((operation_1, _a) => __awaiter(void 0, [oper
6464
6465
  };
6465
6466
  return resultHeaders;
6466
6467
  }));
6467
- const cache$2 = new client.InMemoryCache();
6468
- const errorLink$1 = error.onError(({
6468
+ const cache$4 = new client.InMemoryCache();
6469
+ const errorLink$3 = error.onError(({
6469
6470
  networkError
6470
6471
  }) => {
6471
6472
  if (networkError && networkError.statusCode === 401) {
@@ -6484,10 +6485,10 @@ const errorLink$1 = error.onError(({
6484
6485
  }
6485
6486
  });
6486
6487
  /* eslint-disable no-process-env */
6487
- const isDevEnv$2 = process.env['NODE_ENV'] !== 'production';
6488
+ const isDevEnv$4 = process.env['NODE_ENV'] !== 'production';
6488
6489
  /* eslint-enable no-process-env */
6489
6490
  const link_dconfig = new apolloLinkRest.RestLink({
6490
- uri: uri$2 || 'https://api.bcrumbs.net',
6491
+ uri: uri$4 || 'https://api.bcrumbs.net',
6491
6492
  bodySerializers: {
6492
6493
  fileEncode: (data, headers) => {
6493
6494
  const formData = new FormData();
@@ -6501,9 +6502,9 @@ const link_dconfig = new apolloLinkRest.RestLink({
6501
6502
  }
6502
6503
  });
6503
6504
  const dconfigClient = new client.ApolloClient({
6504
- link: client.from([authLink, errorLink$1, link_dconfig]),
6505
- cache: cache$2,
6506
- connectToDevTools: isDevEnv$2,
6505
+ link: client.from([authLink$2, errorLink$3, link_dconfig]),
6506
+ cache: cache$4,
6507
+ connectToDevTools: isDevEnv$4,
6507
6508
  queryDeduplication: true
6508
6509
  });
6509
6510
  const formSerializer = (data, headers) => {
@@ -6521,19 +6522,19 @@ const formSerializer = (data, headers) => {
6521
6522
  };
6522
6523
  };
6523
6524
  const link_dconfig_token = new apolloLinkRest.RestLink({
6524
- uri: uri$2 || 'https://api.bcrumbs.net',
6525
+ uri: uri$4 || 'https://api.bcrumbs.net',
6525
6526
  defaultSerializer: formSerializer
6526
6527
  });
6527
6528
  const tokenClient = new client.ApolloClient({
6528
- link: client.from([link_dconfig_token, errorLink$1]),
6529
- cache: cache$2,
6530
- connectToDevTools: isDevEnv$2
6529
+ link: client.from([link_dconfig_token, errorLink$3]),
6530
+ cache: cache$4,
6531
+ connectToDevTools: isDevEnv$4
6531
6532
  });
6532
6533
 
6533
- let _$7 = t => t,
6534
- _t$7,
6534
+ let _$8 = t => t,
6535
+ _t$8,
6535
6536
  _t2$6;
6536
- const viewTypesQuery = gql(_t$7 || (_t$7 = _$7`
6537
+ const viewTypesQuery = gql(_t$8 || (_t$8 = _$8`
6537
6538
  query ($templateContextId: Int!) {
6538
6539
  viewTypes(templateContextId: $templateContextId)
6539
6540
  @rest(
@@ -6580,7 +6581,7 @@ const useModelsQuery = templateContextId => client.useQuery(viewTypesQuery, {
6580
6581
  templateContextId
6581
6582
  }
6582
6583
  });
6583
- const viewTypeChildrenQuery = gql(_t2$6 || (_t2$6 = _$7`
6584
+ const viewTypeChildrenQuery = gql(_t2$6 || (_t2$6 = _$8`
6584
6585
  query ($parentId: Int!, $templateId: Int!) {
6585
6586
  viewTypes(parentId: $parentId, templateId: $templateId)
6586
6587
  @rest(
@@ -6630,10 +6631,10 @@ const useModelChildrenQuery = (parentId, templateId) => client.useQuery(viewType
6630
6631
  });
6631
6632
 
6632
6633
  const {
6633
- networkInterface: uri$1
6634
+ networkInterface: uri$3
6634
6635
  } = appConfig.dquery;
6635
- const cache$1 = new client.InMemoryCache();
6636
- const errorLink = error.onError(({
6636
+ const cache$3 = new client.InMemoryCache();
6637
+ const errorLink$2 = error.onError(({
6637
6638
  networkError
6638
6639
  }) => {
6639
6640
  if (networkError && networkError.statusCode === 401) {
@@ -6648,18 +6649,18 @@ const errorLink = error.onError(({
6648
6649
  }
6649
6650
  });
6650
6651
  /* eslint-disable no-process-env */
6651
- const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
6652
+ const isDevEnv$3 = process.env['NODE_ENV'] !== 'production';
6652
6653
  /* eslint-enable no-process-env */
6653
- const link_dquery = client.createHttpLink({
6654
- uri: uri$1,
6654
+ const link_dquery$2 = client.createHttpLink({
6655
+ uri: uri$3,
6655
6656
  fetchOptions: {
6656
6657
  mode: 'cors'
6657
6658
  }
6658
6659
  });
6659
6660
  const dqueryClient = new client.ApolloClient({
6660
- link: client.from([errorLink, link_dquery]),
6661
- cache: cache$1,
6662
- connectToDevTools: isDevEnv$1,
6661
+ link: client.from([errorLink$2, link_dquery$2]),
6662
+ cache: cache$3,
6663
+ connectToDevTools: isDevEnv$3,
6663
6664
  queryDeduplication: true
6664
6665
  });
6665
6666
  const withDQueryClient = nextWithApollo.withApollo(({
@@ -6667,721 +6668,27 @@ const withDQueryClient = nextWithApollo.withApollo(({
6667
6668
  }) =>
6668
6669
  // @ts-expect-error TypeScript is complaining
6669
6670
  new client.ApolloClient({
6670
- link: link_dquery,
6671
+ link: link_dquery$2,
6671
6672
  cache: new client.InMemoryCache()
6672
6673
  // rehydrate the cache using the initial data passed from the server:
6673
6674
  .restore(initialState || {})
6674
6675
  }));
6675
6676
 
6676
- var defineProperty$2 = objectDefineProperty.f;
6677
-
6678
- var proxyAccessor$1 = function (Target, Source, key) {
6679
- key in Target || defineProperty$2(Target, key, {
6680
- configurable: true,
6681
- get: function () { return Source[key]; },
6682
- set: function (it) { Source[key] = it; }
6683
- });
6684
- };
6685
-
6686
- var isCallable$5 = isCallable$o;
6687
- var isObject$3 = isObject$d;
6688
- var setPrototypeOf$2 = objectSetPrototypeOf;
6689
-
6690
- // makes subclassing work correct for wrapped built-ins
6691
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
6692
- var NewTarget, NewTargetPrototype;
6693
- if (
6694
- // it can work only with native `setPrototypeOf`
6695
- setPrototypeOf$2 &&
6696
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
6697
- isCallable$5(NewTarget = dummy.constructor) &&
6698
- NewTarget !== Wrapper &&
6699
- isObject$3(NewTargetPrototype = NewTarget.prototype) &&
6700
- NewTargetPrototype !== Wrapper.prototype
6701
- ) setPrototypeOf$2($this, NewTargetPrototype);
6702
- return $this;
6703
- };
6704
-
6705
- var toString$4 = toString$9;
6706
-
6707
- var normalizeStringArgument$1 = function (argument, $default) {
6708
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString$4(argument);
6709
- };
6710
-
6711
- var isObject$2 = isObject$d;
6712
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
6713
-
6714
- // `InstallErrorCause` abstract operation
6715
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
6716
- var installErrorCause$1 = function (O, options) {
6717
- if (isObject$2(options) && 'cause' in options) {
6718
- createNonEnumerableProperty$4(O, 'cause', options.cause);
6719
- }
6720
- };
6721
-
6722
- var uncurryThis$5 = functionUncurryThis;
6723
-
6724
- var $Error = Error;
6725
- var replace$2 = uncurryThis$5(''.replace);
6726
-
6727
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
6728
- // eslint-disable-next-line redos/no-vulnerable -- safe
6729
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
6730
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
6731
-
6732
- var errorStackClear = function (stack, dropEntries) {
6733
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
6734
- while (dropEntries--) stack = replace$2(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
6735
- } return stack;
6736
- };
6737
-
6738
- var fails$5 = fails$m;
6739
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
6740
-
6741
- var errorStackInstallable = !fails$5(function () {
6742
- var error = new Error('a');
6743
- if (!('stack' in error)) return true;
6744
- // eslint-disable-next-line es/no-object-defineproperty -- safe
6745
- Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));
6746
- return error.stack !== 7;
6747
- });
6748
-
6749
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
6750
- var clearErrorStack = errorStackClear;
6751
- var ERROR_STACK_INSTALLABLE = errorStackInstallable;
6752
-
6753
- // non-standard V8
6754
- var captureStackTrace = Error.captureStackTrace;
6755
-
6756
- var errorStackInstall = function (error, C, stack, dropEntries) {
6757
- if (ERROR_STACK_INSTALLABLE) {
6758
- if (captureStackTrace) captureStackTrace(error, C);
6759
- else createNonEnumerableProperty$3(error, 'stack', clearErrorStack(stack, dropEntries));
6760
- }
6761
- };
6762
-
6763
- var getBuiltIn$1 = getBuiltIn$9;
6764
- var hasOwn$1 = hasOwnProperty_1;
6765
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
6766
- var isPrototypeOf = objectIsPrototypeOf;
6767
- var setPrototypeOf$1 = objectSetPrototypeOf;
6768
- var copyConstructorProperties = copyConstructorProperties$2;
6769
- var proxyAccessor = proxyAccessor$1;
6770
- var inheritIfRequired = inheritIfRequired$1;
6771
- var normalizeStringArgument = normalizeStringArgument$1;
6772
- var installErrorCause = installErrorCause$1;
6773
- var installErrorStack = errorStackInstall;
6774
- var DESCRIPTORS$1 = descriptors;
6775
-
6776
- var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
6777
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
6778
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
6779
- var path = FULL_NAME.split('.');
6780
- var ERROR_NAME = path[path.length - 1];
6781
- var OriginalError = getBuiltIn$1.apply(null, path);
6782
-
6783
- if (!OriginalError) return;
6784
-
6785
- var OriginalErrorPrototype = OriginalError.prototype;
6786
-
6787
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
6788
- if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
6789
-
6790
- if (!FORCED) return OriginalError;
6791
-
6792
- var BaseError = getBuiltIn$1('Error');
6793
-
6794
- var WrappedError = wrapper(function (a, b) {
6795
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
6796
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
6797
- if (message !== undefined) createNonEnumerableProperty$2(result, 'message', message);
6798
- installErrorStack(result, WrappedError, result.stack, 2);
6799
- if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
6800
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
6801
- return result;
6802
- });
6803
-
6804
- WrappedError.prototype = OriginalErrorPrototype;
6805
-
6806
- if (ERROR_NAME !== 'Error') {
6807
- if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
6808
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
6809
- } else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
6810
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
6811
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
6812
- }
6813
-
6814
- copyConstructorProperties(WrappedError, OriginalError);
6815
-
6816
- try {
6817
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
6818
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
6819
- createNonEnumerableProperty$2(OriginalErrorPrototype, 'name', ERROR_NAME);
6820
- }
6821
- OriginalErrorPrototype.constructor = WrappedError;
6822
- } catch (error) { /* empty */ }
6823
-
6824
- return WrappedError;
6825
- };
6826
-
6827
- /* eslint-disable no-unused-vars -- required for functions `.length` */
6828
- var $$5 = _export;
6829
- var global$3 = global$n;
6830
- var apply$1 = functionApply;
6831
- var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
6832
-
6833
- var WEB_ASSEMBLY = 'WebAssembly';
6834
- var WebAssembly = global$3[WEB_ASSEMBLY];
6835
-
6836
- // eslint-disable-next-line es/no-error-cause -- feature detection
6837
- var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
6838
-
6839
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
6840
- var O = {};
6841
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
6842
- $$5({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
6843
- };
6844
-
6845
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
6846
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
6847
- var O = {};
6848
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
6849
- $$5({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
6677
+ let _$7 = t => t,
6678
+ _t$7;
6679
+ const portalThemeConfig = gql(_t$7 || (_t$7 = _$7`
6680
+ query ($domain: String!) {
6681
+ configuration(type: "portalTheme", domain: $domain)
6850
6682
  }
6851
- };
6852
-
6853
- // https://tc39.es/ecma262/#sec-nativeerror
6854
- exportGlobalErrorCauseWrapper('Error', function (init) {
6855
- return function Error(message) { return apply$1(init, this, arguments); };
6856
- });
6857
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
6858
- return function EvalError(message) { return apply$1(init, this, arguments); };
6859
- });
6860
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
6861
- return function RangeError(message) { return apply$1(init, this, arguments); };
6862
- });
6863
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
6864
- return function ReferenceError(message) { return apply$1(init, this, arguments); };
6865
- });
6866
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
6867
- return function SyntaxError(message) { return apply$1(init, this, arguments); };
6868
- });
6869
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
6870
- return function TypeError(message) { return apply$1(init, this, arguments); };
6871
- });
6872
- exportGlobalErrorCauseWrapper('URIError', function (init) {
6873
- return function URIError(message) { return apply$1(init, this, arguments); };
6874
- });
6875
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
6876
- return function CompileError(message) { return apply$1(init, this, arguments); };
6877
- });
6878
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
6879
- return function LinkError(message) { return apply$1(init, this, arguments); };
6880
- });
6881
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
6882
- return function RuntimeError(message) { return apply$1(init, this, arguments); };
6883
- });
6884
-
6885
- var classof$2 = classofRaw$2;
6886
-
6887
- // `IsArray` abstract operation
6888
- // https://tc39.es/ecma262/#sec-isarray
6889
- // eslint-disable-next-line es/no-array-isarray -- safe
6890
- var isArray$1 = Array.isArray || function isArray(argument) {
6891
- return classof$2(argument) === 'Array';
6892
- };
6893
-
6894
- var uncurryThis$4 = functionUncurryThis;
6895
- var isArray = isArray$1;
6896
- var isCallable$4 = isCallable$o;
6897
- var classof$1 = classofRaw$2;
6898
- var toString$3 = toString$9;
6899
-
6900
- var push = uncurryThis$4([].push);
6901
-
6902
- var getJsonReplacerFunction = function (replacer) {
6903
- if (isCallable$4(replacer)) return replacer;
6904
- if (!isArray(replacer)) return;
6905
- var rawLength = replacer.length;
6906
- var keys = [];
6907
- for (var i = 0; i < rawLength; i++) {
6908
- var element = replacer[i];
6909
- if (typeof element == 'string') push(keys, element);
6910
- else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$3(element));
6683
+ `));
6684
+ const usePortalThemeConfig = domain => client.useQuery(portalThemeConfig, {
6685
+ fetchPolicy: 'cache-first',
6686
+ client: dqueryClient,
6687
+ variables: {
6688
+ domain
6911
6689
  }
6912
- var keysLength = keys.length;
6913
- var root = true;
6914
- return function (key, value) {
6915
- if (root) {
6916
- root = false;
6917
- return value;
6918
- }
6919
- if (isArray(this)) return value;
6920
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
6921
- };
6922
- };
6923
-
6924
- var $$4 = _export;
6925
- var getBuiltIn = getBuiltIn$9;
6926
- var apply = functionApply;
6927
- var call$1 = functionCall;
6928
- var uncurryThis$3 = functionUncurryThis;
6929
- var fails$4 = fails$m;
6930
- var isCallable$3 = isCallable$o;
6931
- var isSymbol = isSymbol$3;
6932
- var arraySlice = arraySlice$2;
6933
- var getReplacerFunction = getJsonReplacerFunction;
6934
- var NATIVE_SYMBOL = symbolConstructorDetection;
6935
-
6936
- var $String = String;
6937
- var $stringify = getBuiltIn('JSON', 'stringify');
6938
- var exec$1 = uncurryThis$3(/./.exec);
6939
- var charAt = uncurryThis$3(''.charAt);
6940
- var charCodeAt = uncurryThis$3(''.charCodeAt);
6941
- var replace$1 = uncurryThis$3(''.replace);
6942
- var numberToString = uncurryThis$3(1.0.toString);
6943
-
6944
- var tester = /[\uD800-\uDFFF]/g;
6945
- var low = /^[\uD800-\uDBFF]$/;
6946
- var hi = /^[\uDC00-\uDFFF]$/;
6947
-
6948
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$4(function () {
6949
- var symbol = getBuiltIn('Symbol')('stringify detection');
6950
- // MS Edge converts symbol values to JSON as {}
6951
- return $stringify([symbol]) !== '[null]'
6952
- // WebKit converts symbol values to JSON as null
6953
- || $stringify({ a: symbol }) !== '{}'
6954
- // V8 throws on boxed symbols
6955
- || $stringify(Object(symbol)) !== '{}';
6956
- });
6957
-
6958
- // https://github.com/tc39/proposal-well-formed-stringify
6959
- var ILL_FORMED_UNICODE = fails$4(function () {
6960
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
6961
- || $stringify('\uDEAD') !== '"\\udead"';
6962
6690
  });
6963
6691
 
6964
- var stringifyWithSymbolsFix = function (it, replacer) {
6965
- var args = arraySlice(arguments);
6966
- var $replacer = getReplacerFunction(replacer);
6967
- if (!isCallable$3($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
6968
- args[1] = function (key, value) {
6969
- // some old implementations (like WebKit) could pass numbers as keys
6970
- if (isCallable$3($replacer)) value = call$1($replacer, this, $String(key), value);
6971
- if (!isSymbol(value)) return value;
6972
- };
6973
- return apply($stringify, null, args);
6974
- };
6975
-
6976
- var fixIllFormed = function (match, offset, string) {
6977
- var prev = charAt(string, offset - 1);
6978
- var next = charAt(string, offset + 1);
6979
- if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
6980
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
6981
- } return match;
6982
- };
6983
-
6984
- if ($stringify) {
6985
- // `JSON.stringify` method
6986
- // https://tc39.es/ecma262/#sec-json.stringify
6987
- $$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
6988
- // eslint-disable-next-line no-unused-vars -- required for `.length`
6989
- stringify: function stringify(it, replacer, space) {
6990
- var args = arraySlice(arguments);
6991
- var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
6992
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
6993
- }
6994
- });
6995
- }
6996
-
6997
- // a string of all valid unicode whitespaces
6998
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
6999
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
7000
-
7001
- var uncurryThis$2 = functionUncurryThis;
7002
- var requireObjectCoercible$1 = requireObjectCoercible$8;
7003
- var toString$2 = toString$9;
7004
- var whitespaces$1 = whitespaces$2;
7005
-
7006
- var replace = uncurryThis$2(''.replace);
7007
- var ltrim = RegExp('^[' + whitespaces$1 + ']+');
7008
- var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
7009
-
7010
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
7011
- var createMethod = function (TYPE) {
7012
- return function ($this) {
7013
- var string = toString$2(requireObjectCoercible$1($this));
7014
- if (TYPE & 1) string = replace(string, ltrim, '');
7015
- if (TYPE & 2) string = replace(string, rtrim, '$1');
7016
- return string;
7017
- };
7018
- };
7019
-
7020
- var stringTrim = {
7021
- // `String.prototype.{ trimLeft, trimStart }` methods
7022
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
7023
- start: createMethod(1),
7024
- // `String.prototype.{ trimRight, trimEnd }` methods
7025
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
7026
- end: createMethod(2),
7027
- // `String.prototype.trim` method
7028
- // https://tc39.es/ecma262/#sec-string.prototype.trim
7029
- trim: createMethod(3)
7030
- };
7031
-
7032
- var global$2 = global$n;
7033
- var fails$3 = fails$m;
7034
- var uncurryThis$1 = functionUncurryThis;
7035
- var toString$1 = toString$9;
7036
- var trim = stringTrim.trim;
7037
- var whitespaces = whitespaces$2;
7038
-
7039
- var $parseInt$1 = global$2.parseInt;
7040
- var Symbol$1 = global$2.Symbol;
7041
- var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
7042
- var hex = /^[+-]?0x/i;
7043
- var exec = uncurryThis$1(hex.exec);
7044
- var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
7045
- // MS Edge 18- broken with boxed symbols
7046
- || (ITERATOR$3 && !fails$3(function () { $parseInt$1(Object(ITERATOR$3)); }));
7047
-
7048
- // `parseInt` method
7049
- // https://tc39.es/ecma262/#sec-parseint-string-radix
7050
- var numberParseInt = FORCED ? function parseInt(string, radix) {
7051
- var S = trim(toString$1(string));
7052
- return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
7053
- } : $parseInt$1;
7054
-
7055
- var $$3 = _export;
7056
- var $parseInt = numberParseInt;
7057
-
7058
- // `parseInt` method
7059
- // https://tc39.es/ecma262/#sec-parseint-string-radix
7060
- $$3({ global: true, forced: parseInt !== $parseInt }, {
7061
- parseInt: $parseInt
7062
- });
7063
-
7064
- const CONTEXT_KEY = 'ContextId';
7065
- const TOKEN_KEY = 'token';
7066
- const USER_INFO = 'userInfo';
7067
- const APP_PERSIST_STORES_TYPES = ['localStorage', 'sessionStorage'];
7068
- const parse = JSON.parse;
7069
- const stringify = JSON.stringify;
7070
- /*
7071
- auth object
7072
- -> store "TOKEN_KEY"
7073
- - default storage is "localStorage"
7074
- - default token key is 'token'
7075
- */
7076
- const auth = {
7077
- // /////////////////////////////////////////////////////////////
7078
- // TOKEN
7079
- // /////////////////////////////////////////////////////////////
7080
- /**
7081
- * get token from localstorage
7082
- *
7083
- * @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
7084
- * @param {any} [tokenKey=TOKEN_KEY] optionnal parameter to specify a token key
7085
- * @returns {string} token value
7086
- */
7087
- getToken(fromStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
7088
- if (typeof window === 'undefined') {
7089
- return null;
7090
- }
7091
- // localStorage:
7092
- if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
7093
- return window.localStorage && window.localStorage.getItem(tokenKey) || null;
7094
- }
7095
- // sessionStorage:
7096
- if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
7097
- return window.sessionStorage && window.sessionStorage.getItem(tokenKey) || null;
7098
- }
7099
- // default:
7100
- return null;
7101
- },
7102
- /**
7103
- * set the token value into localstorage (managed by localforage)
7104
- *
7105
- * @param {string} [value=''] token value
7106
- * @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
7107
- * @param {any} [tokenKey='token'] token key
7108
- * @returns {boolean} success/failure flag
7109
- */
7110
- setToken(value = '', toStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
7111
- if (typeof window === 'undefined') {
7112
- throw Error('Token should not be set from backend side.');
7113
- }
7114
- if (!value || value.length <= 0) {
7115
- return;
7116
- }
7117
- // localStorage:
7118
- if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
7119
- if (window.localStorage) {
7120
- window.localStorage.setItem(tokenKey, value);
7121
- }
7122
- }
7123
- // sessionStorage:
7124
- if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
7125
- if (window.sessionStorage) {
7126
- window.sessionStorage.setItem(tokenKey, value);
7127
- }
7128
- }
7129
- },
7130
- /**
7131
- * check
7132
- * - if token key contains a valid token value (defined and not an empty value)
7133
- * - if the token expiration date is passed
7134
- *
7135
- *
7136
- * Note: 'isAuthenticated' just checks 'tokenKey' on store (localStorage by default or sessionStorage)
7137
- *
7138
- * You may think: 'ok I just put an empty token key and I have access to protected routes?''
7139
- * -> answer is: YES^^
7140
- * BUT
7141
- * -> : your backend will not recognize a wrong token so private data or safe and you protected view could be a bit ugly without any data.
7142
- *
7143
- * => ON CONCLUSION: this aim of 'isAuthenticated'
7144
- * -> is to help for a better "user experience" (= better than displaying a view with no data since server did not accept the user).
7145
- * -> it is not a security purpose (security comes from backend, since frontend is easily hackable => user has access to all your frontend)
7146
- *
7147
- * @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
7148
- * @param {any} [tokenKey=TOKEN_KEY] token key
7149
- * @returns {bool} is authenticed response
7150
- */
7151
- isAuthenticated(fromStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
7152
- if (typeof window === 'undefined') {
7153
- return false;
7154
- }
7155
- // localStorage:
7156
- if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
7157
- if (window.localStorage && window.localStorage.getItem(tokenKey)) {
7158
- return true;
7159
- } else {
7160
- return false;
7161
- }
7162
- }
7163
- // sessionStorage:
7164
- if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
7165
- if (window.sessionStorage && window.sessionStorage.getItem(tokenKey)) {
7166
- return true;
7167
- } else {
7168
- return false;
7169
- }
7170
- }
7171
- // default:
7172
- return false;
7173
- },
7174
- /**
7175
- * delete token
7176
- *
7177
- * @param {any} [tokenKey='token'] token key
7178
- * @returns {bool} success/failure flag
7179
- */
7180
- clearToken(storage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
7181
- if (typeof window === 'undefined') {
7182
- return false;
7183
- }
7184
- // localStorage:
7185
- if (window.localStorage && window.localStorage[tokenKey]) {
7186
- window.localStorage.removeItem(tokenKey);
7187
- return true;
7188
- }
7189
- // sessionStorage:
7190
- if (window.sessionStorage && window.sessionStorage[tokenKey]) {
7191
- window.sessionStorage.removeItem(tokenKey);
7192
- return true;
7193
- }
7194
- return false;
7195
- },
7196
- //TODO: Its not working for now while the token is not JWT token
7197
- /**
7198
- * return expiration date from token
7199
- *
7200
- * @param {string} encodedToken - base 64 token received from server and stored in local storage
7201
- * @returns {date | null} returns expiration date or null id expired props not found in decoded token
7202
- */
7203
- getTokenExpirationDate(encodedToken) {
7204
- if (typeof window === 'undefined') {
7205
- return new Date(0);
7206
- }
7207
- if (!encodedToken) {
7208
- return new Date(0); // is expired
7209
- }
7210
- const token = decode(encodedToken);
7211
- if (!token.exp) {
7212
- return new Date(0); // is expired
7213
- }
7214
- const expirationDate = new Date(token.exp * 1000);
7215
- return expirationDate;
7216
- },
7217
- //TODO: Its not working for now while the token is not JWT token
7218
- /**
7219
- *
7220
- * tell is token is expired (compared to now)
7221
- *
7222
- * @param {string} encodedToken - base 64 token received from server and stored in local storage
7223
- * @returns {bool} returns true if expired else false
7224
- */
7225
- isExpiredToken(encodedToken) {
7226
- const expirationDate = this.getTokenExpirationDate(encodedToken);
7227
- const rightNow = new Date();
7228
- const isExpiredToken = dateFns.isAfter(rightNow, expirationDate);
7229
- return isExpiredToken;
7230
- },
7231
- // /////////////////////////////////////////////////////////////
7232
- // USER_INFO
7233
- // /////////////////////////////////////////////////////////////
7234
- /**
7235
- * get user info from localstorage
7236
- *
7237
- * @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
7238
- * @param {any} [userInfoKey='userInfo'] optionnal parameter to specify a token key
7239
- * @returns {string} token value
7240
- */
7241
- getUserInfo(fromStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
7242
- if (typeof window === 'undefined') {
7243
- return undefined;
7244
- }
7245
- // localStorage:
7246
- if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
7247
- const userString = window.localStorage.getItem(userInfoKey);
7248
- return userString && parse(userString);
7249
- }
7250
- // sessionStorage:
7251
- if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
7252
- const userString = window.sessionStorage.getItem(userInfoKey);
7253
- return userString && parse(userString);
7254
- }
7255
- // default:
7256
- return null;
7257
- },
7258
- /**
7259
- * set the userInfo value into localstorage
7260
- *
7261
- * @param {object} [value=''] token value
7262
- * @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
7263
- * @param {any} [userInfoKey='userInfo'] token key
7264
- * @returns {boolean} success/failure flag
7265
- */
7266
- setUserInfo(value, toStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
7267
- if (typeof window === 'undefined') {
7268
- throw Error('User info should not be set from backend side.');
7269
- }
7270
- if (!value) {
7271
- return;
7272
- }
7273
- // localStorage:
7274
- if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
7275
- if (window.localStorage) {
7276
- window.localStorage.setItem(userInfoKey, stringify(value));
7277
- }
7278
- }
7279
- // sessionStorage:
7280
- if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
7281
- if (window.sessionStorage) {
7282
- window.sessionStorage.setItem(userInfoKey, stringify(value));
7283
- }
7284
- }
7285
- },
7286
- updateUserInfo(value, toStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
7287
- const user = this.getUserInfo();
7288
- user.name = value.name;
7289
- user.surname = value.surname;
7290
- this.setUserInfo(user);
7291
- },
7292
- /**
7293
- * delete userInfo
7294
- *
7295
- * @param {string} [userInfoKey='userInfo'] token key
7296
- * @returns {bool} success/failure flag
7297
- */
7298
- clearUserInfo(userInfoKey = USER_INFO) {
7299
- if (typeof window === 'undefined') {
7300
- throw Error('User info should not be cleared from backend side.');
7301
- }
7302
- // localStorage:
7303
- if (window.localStorage && window.localStorage[userInfoKey]) {
7304
- window.localStorage.removeItem(userInfoKey);
7305
- }
7306
- // sessionStorage:
7307
- if (window.sessionStorage && window.sessionStorage[userInfoKey]) {
7308
- window.sessionStorage.removeItem(userInfoKey);
7309
- }
7310
- },
7311
- // /////////////////////////////////////////////////////////////
7312
- // COMMON
7313
- // /////////////////////////////////////////////////////////////
7314
- /**
7315
- * forget me method: clear all
7316
- * @returns {bool} success/failure flag
7317
- */
7318
- clearAllAppStorage() {
7319
- if (typeof window === 'undefined') {
7320
- throw Error('App storage should not be cleared from backend side.');
7321
- }
7322
- if (window.localStorage) {
7323
- window.localStorage.clear();
7324
- }
7325
- if (window.sessionStorage) {
7326
- window.sessionStorage.clear();
7327
- }
7328
- dconfigClient.clearStore();
7329
- },
7330
- // /////////////////////////////////////////////////////////////
7331
- // Context
7332
- // /////////////////////////////////////////////////////////////
7333
- /**
7334
- * set the context value into localstorage (managed by localforage)
7335
- *
7336
- * @param {string} [value=''] context value
7337
- * @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
7338
- * @param {any} [tokenKey='token'] token key
7339
- * @returns {boolean} success/failure flag
7340
- */
7341
- setContext(value = '', toStorage = APP_PERSIST_STORES_TYPES[0], contextKey = CONTEXT_KEY) {
7342
- if (typeof window === 'undefined') {
7343
- throw Error('Context should not be set from backend side.');
7344
- }
7345
- if (!value || value.length <= 0) {
7346
- return;
7347
- }
7348
- // localStorage:
7349
- if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
7350
- if (window.localStorage) {
7351
- window.localStorage.setItem(contextKey, value);
7352
- }
7353
- }
7354
- // sessionStorage:
7355
- if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
7356
- if (window.sessionStorage) {
7357
- window.sessionStorage.setItem(contextKey, value);
7358
- }
7359
- }
7360
- },
7361
- /**
7362
- * get context from localstorage
7363
- *
7364
- * @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
7365
- * @param {any} [tokenKey=TOKEN_KEY] optionnal parameter to specify a token key
7366
- * @returns {number} token value
7367
- */
7368
- getContext(fromStorage = APP_PERSIST_STORES_TYPES[0], contextKey = CONTEXT_KEY) {
7369
- if (typeof window === 'undefined') {
7370
- return undefined;
7371
- }
7372
- // localStorage:
7373
- if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
7374
- return parseInt(window.localStorage && window.localStorage.getItem(contextKey) || '');
7375
- }
7376
- // sessionStorage:
7377
- if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
7378
- return parseInt(window.sessionStorage && window.sessionStorage.getItem(contextKey) || '');
7379
- }
7380
- // default:
7381
- return null;
7382
- }
7383
- };
7384
-
7385
6692
  let _$6 = t => t,
7386
6693
  _t$6,
7387
6694
  _t2$5,
@@ -7692,37 +6999,11 @@ const showcasePagesQuery = gql(_t3$5 || (_t3$5 = _$6`
7692
6999
  }
7693
7000
  }
7694
7001
  `));
7695
- const showcasePagesQueryOptions = {
7696
- options: props => {
7697
- return {
7698
- client: dqueryClient,
7699
- variables: {
7700
- companyId: auth.getContext(),
7701
- parentId: props.parentId
7702
- },
7703
- fetchPolicy: 'no-cache'
7704
- };
7705
- },
7706
- name: 'pages',
7707
- props: ({
7708
- pages: {
7709
- loading,
7710
- pages,
7711
- refetch
7712
- }
7713
- }) => {
7714
- return {
7715
- pages: pages,
7716
- refetchPages: refetch,
7717
- loadingPages: loading
7718
- };
7719
- }
7720
- };
7721
- const useShowcasePagesQuery = parentId => client.useQuery(showcasePagesQuery, {
7002
+ const useShowcasePagesQuery = (companyId, parentId) => client.useQuery(showcasePagesQuery, {
7722
7003
  fetchPolicy: 'cache-first',
7723
7004
  client: dqueryClient,
7724
7005
  variables: {
7725
- companyId: auth.getContext(),
7006
+ companyId,
7726
7007
  parentId: parentId
7727
7008
  }
7728
7009
  });
@@ -7740,32 +7021,14 @@ const showcaseSectionsQuery = gql(_t4$5 || (_t4$5 = _$6`
7740
7021
  }
7741
7022
  }
7742
7023
  `));
7743
- const showcaseSectionsQueryOptions = {
7744
- options: props => {
7745
- return {
7746
- client: dqueryClient,
7747
- variables: {
7748
- companyId: auth.getContext(),
7749
- parentId: props.parentId
7750
- },
7751
- fetchPolicy: 'no-cache'
7752
- };
7753
- },
7754
- name: 'sections',
7755
- props: ({
7756
- sections: {
7757
- loading,
7758
- pageResoruces,
7759
- refetch
7760
- }
7761
- }) => {
7762
- return {
7763
- sections: pageResoruces,
7764
- refetchSections: refetch,
7765
- loadingSections: loading
7766
- };
7024
+ const useShowcaseSectionsQuery = (companyId, parentId) => client.useQuery(showcaseSectionsQuery, {
7025
+ fetchPolicy: 'cache-first',
7026
+ client: dqueryClient,
7027
+ variables: {
7028
+ companyId,
7029
+ parentId: parentId
7767
7030
  }
7768
- };
7031
+ });
7769
7032
  const showcaseSectionQuery = gql(_t5$5 || (_t5$5 = _$6`
7770
7033
  query ($companyId: Int!, $id: Int!) {
7771
7034
  pageResoruce(companyId: $companyId, id: $id) {
@@ -7823,36 +7086,11 @@ const showcaseDomainsQuery = gql(_t6$4 || (_t6$4 = _$6`
7823
7086
  }
7824
7087
  }
7825
7088
  `));
7826
- const showcaseDomainsQueryOptions = {
7827
- options: () => {
7828
- return {
7829
- client: dqueryClient,
7830
- variables: {
7831
- companyId: auth.getContext(),
7832
- fetchPolicy: 'no-cache'
7833
- }
7834
- };
7835
- },
7836
- name: 'domains',
7837
- props: ({
7838
- domains: {
7839
- loading,
7840
- domains,
7841
- refetch
7842
- }
7843
- }) => {
7844
- return {
7845
- domains: domains,
7846
- refetchDomains: refetch,
7847
- loadingDomains: loading
7848
- };
7849
- }
7850
- };
7851
- const useDomainsQuery = () => client.useQuery(showcaseDomainsQuery, {
7089
+ const useDomainsQuery = companyId => client.useQuery(showcaseDomainsQuery, {
7852
7090
  fetchPolicy: 'cache-first',
7853
7091
  client: dqueryClient,
7854
7092
  variables: {
7855
- companyId: auth.getContext()
7093
+ companyId
7856
7094
  }
7857
7095
  });
7858
7096
  const showcaseConfig = gql(_t7$2 || (_t7$2 = _$6`
@@ -7914,13 +7152,12 @@ const VALIDATE_COMPANY_NAME = gql(_t$5 || (_t$5 = _$5`
7914
7152
  validateCompanyName(name: $name)
7915
7153
  }
7916
7154
  `));
7917
- const useValidateCompanyName = name => client.useQuery(VALIDATE_COMPANY_NAME, {
7155
+ const useValidateCompanyName = name => client.useLazyQuery(VALIDATE_COMPANY_NAME, {
7918
7156
  fetchPolicy: 'cache-first',
7919
7157
  client: dqueryClient,
7920
7158
  variables: {
7921
7159
  name
7922
- },
7923
- skip: !name
7160
+ }
7924
7161
  });
7925
7162
 
7926
7163
  let _$4 = t => t,
@@ -8243,6 +7480,7 @@ const inviteUser = gql(_t8$1 || (_t8$1 = _$4`
8243
7480
  ) {
8244
7481
  result
8245
7482
  message
7483
+ member
8246
7484
  }
8247
7485
  }
8248
7486
  `));
@@ -8295,12 +7533,12 @@ const removeUserFromCompanyOptions = {
8295
7533
  props: ({
8296
7534
  mutate
8297
7535
  }) => ({
8298
- removeUserFromCompany(userId) {
7536
+ removeUserFromCompany(companyId, userId) {
8299
7537
  return __awaiter(this, void 0, void 0, function* () {
8300
7538
  try {
8301
7539
  const payload = {
8302
7540
  variables: {
8303
- companyId: auth.getContext(),
7541
+ companyId,
8304
7542
  userId
8305
7543
  }
8306
7544
  };
@@ -8423,38 +7661,13 @@ const createCompany = gql(_t4$3 || (_t4$3 = _$3`
8423
7661
  }
8424
7662
  }
8425
7663
  `));
8426
- const createCompanyOptions = {
8427
- options: {
8428
- client: dconfigClient
8429
- },
8430
- props: ({
8431
- ownProps,
8432
- mutate
8433
- }) => ({
8434
- createCompany(Name) {
8435
- return __awaiter(this, void 0, void 0, function* () {
8436
- try {
8437
- const payload = {
8438
- variables: {
8439
- body: {
8440
- Name,
8441
- OwnerId: auth.getUserInfo()['id'],
8442
- SubscriptionType: 'Showcase-free'
8443
- }
8444
- }
8445
- };
8446
- const result = yield mutate(payload);
8447
- // @ts-expect-error will be fixed later
8448
- if (result.data.createCompany.result === 'true') context.setContext(result.data.createCompany.obj.Id);
8449
- // @ts-expect-error will be fixed later
8450
- return Promise.resolve(result.data.createCompany);
8451
- } catch (error) {
8452
- return Promise.reject(error);
8453
- }
8454
- });
8455
- }
8456
- })
8457
- };
7664
+ const useCreateCompanyMutation = OwnerId => client.useMutation(createCompany, {
7665
+ client: dconfigClient,
7666
+ variables: {
7667
+ OwnerId,
7668
+ SubscriptionType: 'Showcase-free'
7669
+ }
7670
+ });
8458
7671
  const updateCompany = gql(_t5$3 || (_t5$3 = _$3`
8459
7672
  mutation ($body: JSON!) {
8460
7673
  updateCompany(body: $body)
@@ -8778,19 +7991,19 @@ const useUpdateContentsOrderingMutation = () => client.useMutation(updateContent
8778
7991
  });
8779
7992
 
8780
7993
  const {
8781
- networkInterface: uri
7994
+ networkInterface: uri$2
8782
7995
  } = appConfig.showcase;
8783
- const cache = new client.InMemoryCache();
7996
+ const cache$2 = new client.InMemoryCache();
8784
7997
  /* eslint-disable no-process-env */
8785
- const isDevEnv = process.env['NODE_ENV'] !== 'production';
7998
+ const isDevEnv$2 = process.env['NODE_ENV'] !== 'production';
8786
7999
  /* eslint-enable no-process-env */
8787
8000
  const link$1 = new apolloLinkRest.RestLink({
8788
- uri: uri || "https://api.bcrumbs.net"
8001
+ uri: uri$2 || "https://api.bcrumbs.net"
8789
8002
  });
8790
8003
  const showcaseRendererClient = new client.ApolloClient({
8791
8004
  link: link$1,
8792
- cache,
8793
- connectToDevTools: isDevEnv,
8005
+ cache: cache$2,
8006
+ connectToDevTools: isDevEnv$2,
8794
8007
  queryDeduplication: true
8795
8008
  });
8796
8009
 
@@ -8815,11 +8028,11 @@ const showcaseConfigurationQuery = gql(_t$1 || (_t$1 = _$1`
8815
8028
  )
8816
8029
  }
8817
8030
  `));
8818
- const useShowcaseConfigurationQuery = () => client.useQuery(showcaseConfigurationQuery, {
8031
+ const useShowcaseConfigurationQuery = ContextId => client.useQuery(showcaseConfigurationQuery, {
8819
8032
  fetchPolicy: 'cache-first',
8820
8033
  client: dconfigClient,
8821
8034
  variables: {
8822
- ContextId: auth.getContext()
8035
+ ContextId
8823
8036
  }
8824
8037
  });
8825
8038
  const showcaseConfigurationQueryOptions = {
@@ -8863,12 +8076,13 @@ const menuConfigurationQuery = gql(_t2$1 || (_t2$1 = _$1`
8863
8076
  )
8864
8077
  }
8865
8078
  `));
8866
- const useMenuConfigurationQuery = () => client.useQuery(menuConfigurationQuery, {
8079
+ const useMenuConfigurationQuery = ContextId => client.useQuery(menuConfigurationQuery, {
8867
8080
  fetchPolicy: 'cache-first',
8868
8081
  client: dconfigClient,
8869
8082
  variables: {
8870
- ContextId: auth.getContext()
8871
- }
8083
+ ContextId
8084
+ },
8085
+ skip: !ContextId
8872
8086
  });
8873
8087
  const addDomain = gql(_t3$1 || (_t3$1 = _$1`
8874
8088
  mutation ($rootContent: String!, $body: JSON!) {
@@ -8985,13 +8199,13 @@ const useShowcaseTemplateOptions = {
8985
8199
  ownProps,
8986
8200
  mutate
8987
8201
  }) => ({
8988
- useShowcaseTemplate(templateId, parentContentId, path) {
8202
+ useShowcaseTemplate(companyId, templateId, parentContentId, path) {
8989
8203
  return __awaiter(this, void 0, void 0, function* () {
8990
8204
  try {
8991
8205
  const payload = {
8992
8206
  variables: {
8993
8207
  templateId,
8994
- companyId: auth.getContext(),
8208
+ companyId,
8995
8209
  parentContentId,
8996
8210
  path
8997
8211
  }
@@ -9019,12 +8233,12 @@ const useShowcaseTemplateProgress = gql(_t6$1 || (_t6$1 = _$1`
9019
8233
  }
9020
8234
  }
9021
8235
  `));
9022
- const useShowcaseTemplateProgressQuery = templateId => client.useLazyQuery(useShowcaseTemplateProgress, {
8236
+ const useShowcaseTemplateProgressQuery = (companyId, templateId) => client.useLazyQuery(useShowcaseTemplateProgress, {
9023
8237
  fetchPolicy: 'no-cache',
9024
8238
  client: dconfigClient,
9025
8239
  variables: {
9026
8240
  templateId,
9027
- companyId: auth.getContext()
8241
+ companyId
9028
8242
  }
9029
8243
  });
9030
8244
  const updateTemplateSectionThumb = gql(_t7 || (_t7 = _$1`
@@ -90835,11 +90049,163 @@ const withShowcaseClient = nextWithApollo.withApollo(({
90835
90049
  // @ts-expect-error will be fixed later
90836
90050
  showcaseClient);
90837
90051
 
90838
- var wellKnownSymbol$5 = wellKnownSymbol$i;
90052
+ const {
90053
+ networkInterface: uri$1
90054
+ } = appConfig.core;
90055
+ function getUserToken$1() {
90056
+ return __awaiter(this, void 0, void 0, function* () {
90057
+ return new Promise(resolve => {
90058
+ if (typeof window !== 'undefined') {
90059
+ const storedToken = window.localStorage.getItem('token');
90060
+ resolve(storedToken);
90061
+ }
90062
+ resolve(undefined);
90063
+ });
90064
+ });
90065
+ }
90066
+ const authLink$1 = context.setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
90067
+ headers
90068
+ }) {
90069
+ const currentUsertoken = yield getUserToken$1();
90070
+ const isAPIKey = (currentUsertoken === null || currentUsertoken === void 0 ? void 0 : currentUsertoken.length) === 36;
90071
+ if (headers === undefined) {
90072
+ headers = {};
90073
+ }
90074
+ const resultHeaders = currentUsertoken ? {
90075
+ headers: Object.assign(Object.assign({}, headers), {
90076
+ Accept: 'application/json',
90077
+ Authorization: isAPIKey ? currentUsertoken : `Bearer ${currentUsertoken}`
90078
+ })
90079
+ } : {
90080
+ headers: Object.assign(Object.assign({}, headers), {
90081
+ Accept: 'application/json'
90082
+ })
90083
+ };
90084
+ return resultHeaders;
90085
+ }));
90086
+ const cache$1 = new client.InMemoryCache();
90087
+ const errorLink$1 = error.onError(({
90088
+ networkError,
90089
+ graphQLErrors
90090
+ }) => {
90091
+ if (networkError && networkError.statusCode === 401) {
90092
+ // redirect to login page
90093
+ if (typeof window !== 'undefined') {
90094
+ return window.location.replace('/account/login');
90095
+ }
90096
+ } else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
90097
+ if (typeof window !== 'undefined') {
90098
+ return window.location.replace('/error?message=' + networkError.message);
90099
+ }
90100
+ }
90101
+ if (graphQLErrors && graphQLErrors.find(error => {
90102
+ var _a;
90103
+ return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
90104
+ })) {
90105
+ const error = graphQLErrors.find(error => {
90106
+ var _a;
90107
+ return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
90108
+ });
90109
+ return window.location.replace('/403?message=' + (error === null || error === void 0 ? void 0 : error.message));
90110
+ }
90111
+ });
90112
+ /* eslint-disable no-process-env */
90113
+ const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
90114
+ /* eslint-enable no-process-env */
90115
+ const link_dquery$1 = client.createHttpLink({
90116
+ uri: `${uri$1}/gq`,
90117
+ fetchOptions: {
90118
+ mode: 'cors'
90119
+ }
90120
+ });
90121
+ const coreClient = new client.ApolloClient({
90122
+ link: client.from([authLink$1, errorLink$1, link_dquery$1]),
90123
+ cache: cache$1,
90124
+ connectToDevTools: isDevEnv$1,
90125
+ queryDeduplication: true
90126
+ });
90127
+
90128
+ const {
90129
+ networkInterface: uri
90130
+ } = appConfig.bot;
90131
+ function getUserToken() {
90132
+ return __awaiter(this, void 0, void 0, function* () {
90133
+ return new Promise(resolve => {
90134
+ if (typeof window !== 'undefined') {
90135
+ const storedToken = window.localStorage.getItem('token');
90136
+ resolve(storedToken);
90137
+ }
90138
+ resolve(undefined);
90139
+ });
90140
+ });
90141
+ }
90142
+ const authLink = context.setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
90143
+ headers
90144
+ }) {
90145
+ const currentUsertoken = yield getUserToken();
90146
+ const isAPIKey = (currentUsertoken === null || currentUsertoken === void 0 ? void 0 : currentUsertoken.length) === 36;
90147
+ if (headers === undefined) {
90148
+ headers = {};
90149
+ }
90150
+ const resultHeaders = currentUsertoken ? {
90151
+ headers: Object.assign(Object.assign({}, headers), {
90152
+ Accept: 'application/json',
90153
+ Authorization: isAPIKey ? currentUsertoken : `Bearer ${currentUsertoken}`
90154
+ })
90155
+ } : {
90156
+ headers: Object.assign(Object.assign({}, headers), {
90157
+ Accept: 'application/json'
90158
+ })
90159
+ };
90160
+ return resultHeaders;
90161
+ }));
90162
+ const cache = new client.InMemoryCache();
90163
+ const errorLink = error.onError(({
90164
+ networkError,
90165
+ graphQLErrors
90166
+ }) => {
90167
+ if (networkError && networkError.statusCode === 401) {
90168
+ // redirect to login page
90169
+ if (typeof window !== 'undefined') {
90170
+ return window.location.replace('/account/login');
90171
+ }
90172
+ } else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
90173
+ if (typeof window !== 'undefined') {
90174
+ return window.location.replace('/error?message=' + networkError.message);
90175
+ }
90176
+ }
90177
+ if (graphQLErrors && graphQLErrors.find(error => {
90178
+ var _a;
90179
+ return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
90180
+ })) {
90181
+ const error = graphQLErrors.find(error => {
90182
+ var _a;
90183
+ return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
90184
+ });
90185
+ return window.location.replace('/403?message=' + (error === null || error === void 0 ? void 0 : error.message));
90186
+ }
90187
+ });
90188
+ /* eslint-disable no-process-env */
90189
+ const isDevEnv = process.env['NODE_ENV'] !== 'production';
90190
+ /* eslint-enable no-process-env */
90191
+ const link_dquery = client.createHttpLink({
90192
+ uri: `${uri}/gq`,
90193
+ fetchOptions: {
90194
+ mode: 'cors'
90195
+ }
90196
+ });
90197
+ const botClient = new client.ApolloClient({
90198
+ link: client.from([authLink, errorLink, link_dquery]),
90199
+ cache,
90200
+ connectToDevTools: isDevEnv,
90201
+ queryDeduplication: true
90202
+ });
90203
+
90204
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
90839
90205
  var create$1 = objectCreate;
90840
90206
  var defineProperty$1 = objectDefineProperty.f;
90841
90207
 
90842
- var UNSCOPABLES = wellKnownSymbol$5('unscopables');
90208
+ var UNSCOPABLES = wellKnownSymbol$3('unscopables');
90843
90209
  var ArrayPrototype = Array.prototype;
90844
90210
 
90845
90211
  // Array.prototype[@@unscopables]
@@ -90852,13 +90218,13 @@ if (ArrayPrototype[UNSCOPABLES] === undefined) {
90852
90218
  }
90853
90219
 
90854
90220
  // add a key to Array.prototype[@@unscopables]
90855
- var addToUnscopables$2 = function (key) {
90221
+ var addToUnscopables$1 = function (key) {
90856
90222
  ArrayPrototype[UNSCOPABLES][key] = true;
90857
90223
  };
90858
90224
 
90859
- var fails$2 = fails$m;
90225
+ var fails$1 = fails$i;
90860
90226
 
90861
- var correctPrototypeGetter = !fails$2(function () {
90227
+ var correctPrototypeGetter = !fails$1(function () {
90862
90228
  function F() { /* empty */ }
90863
90229
  F.prototype.constructor = null;
90864
90230
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -90866,7 +90232,7 @@ var correctPrototypeGetter = !fails$2(function () {
90866
90232
  });
90867
90233
 
90868
90234
  var hasOwn = hasOwnProperty_1;
90869
- var isCallable$2 = isCallable$o;
90235
+ var isCallable$2 = isCallable$l;
90870
90236
  var toObject = toObject$4;
90871
90237
  var sharedKey = sharedKey$3;
90872
90238
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -90887,14 +90253,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
90887
90253
  } return object instanceof $Object ? ObjectPrototype : null;
90888
90254
  };
90889
90255
 
90890
- var fails$1 = fails$m;
90891
- var isCallable$1 = isCallable$o;
90892
- var isObject$1 = isObject$d;
90256
+ var fails = fails$i;
90257
+ var isCallable$1 = isCallable$l;
90258
+ var isObject = isObject$a;
90893
90259
  var getPrototypeOf$1 = objectGetPrototypeOf;
90894
90260
  var defineBuiltIn$1 = defineBuiltIn$6;
90895
- var wellKnownSymbol$4 = wellKnownSymbol$i;
90261
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
90896
90262
 
90897
- var ITERATOR$2 = wellKnownSymbol$4('iterator');
90263
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
90898
90264
  var BUGGY_SAFARI_ITERATORS$1 = false;
90899
90265
 
90900
90266
  // `%IteratorPrototype%` object
@@ -90912,7 +90278,7 @@ if ([].keys) {
90912
90278
  }
90913
90279
  }
90914
90280
 
90915
- var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$1(function () {
90281
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
90916
90282
  var test = {};
90917
90283
  // FF44- legacy iterators case
90918
90284
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -90935,7 +90301,7 @@ var iteratorsCore = {
90935
90301
 
90936
90302
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
90937
90303
  var create = objectCreate;
90938
- var createPropertyDescriptor = createPropertyDescriptor$4;
90304
+ var createPropertyDescriptor = createPropertyDescriptor$3;
90939
90305
  var setToStringTag$2 = setToStringTag$4;
90940
90306
  var Iterators$2 = iterators;
90941
90307
 
@@ -90949,17 +90315,17 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
90949
90315
  return IteratorConstructor;
90950
90316
  };
90951
90317
 
90952
- var $$2 = _export;
90318
+ var $ = _export;
90953
90319
  var call = functionCall;
90954
90320
  var FunctionName = functionName;
90955
- var isCallable = isCallable$o;
90321
+ var isCallable = isCallable$l;
90956
90322
  var createIteratorConstructor = iteratorCreateConstructor;
90957
90323
  var getPrototypeOf = objectGetPrototypeOf;
90958
90324
  var setPrototypeOf = objectSetPrototypeOf;
90959
90325
  var setToStringTag$1 = setToStringTag$4;
90960
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
90326
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
90961
90327
  var defineBuiltIn = defineBuiltIn$6;
90962
- var wellKnownSymbol$3 = wellKnownSymbol$i;
90328
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
90963
90329
  var Iterators$1 = iterators;
90964
90330
  var IteratorsCore = iteratorsCore;
90965
90331
 
@@ -90967,7 +90333,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
90967
90333
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
90968
90334
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
90969
90335
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
90970
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
90336
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
90971
90337
  var KEYS = 'keys';
90972
90338
  var VALUES = 'values';
90973
90339
  var ENTRIES = 'entries';
@@ -91037,7 +90403,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
91037
90403
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
91038
90404
  defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
91039
90405
  }
91040
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
90406
+ } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
91041
90407
  }
91042
90408
 
91043
90409
  // define iterator
@@ -91056,7 +90422,7 @@ var createIterResultObject$1 = function (value, done) {
91056
90422
  };
91057
90423
 
91058
90424
  var toIndexedObject = toIndexedObject$5;
91059
- var addToUnscopables$1 = addToUnscopables$2;
90425
+ var addToUnscopables = addToUnscopables$1;
91060
90426
  var Iterators = iterators;
91061
90427
  var InternalStateModule = internalState;
91062
90428
  var defineProperty = objectDefineProperty.f;
@@ -91107,9 +90473,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
91107
90473
  var values = Iterators.Arguments = Iterators.Array;
91108
90474
 
91109
90475
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
91110
- addToUnscopables$1('keys');
91111
- addToUnscopables$1('values');
91112
- addToUnscopables$1('entries');
90476
+ addToUnscopables('keys');
90477
+ addToUnscopables('values');
90478
+ addToUnscopables('entries');
91113
90479
 
91114
90480
  // V8 ~ Chrome 45- bug
91115
90481
  if (DESCRIPTORS && values.name !== 'values') try {
@@ -91160,15 +90526,15 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
91160
90526
 
91161
90527
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
91162
90528
 
91163
- var global$1 = global$n;
90529
+ var global$1 = global$l;
91164
90530
  var DOMIterables = domIterables;
91165
90531
  var DOMTokenListPrototype = domTokenListPrototype;
91166
90532
  var ArrayIteratorMethods = es_array_iterator;
91167
- var createNonEnumerableProperty = createNonEnumerableProperty$8;
90533
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
91168
90534
  var setToStringTag = setToStringTag$4;
91169
- var wellKnownSymbol$2 = wellKnownSymbol$i;
90535
+ var wellKnownSymbol = wellKnownSymbol$g;
91170
90536
 
91171
- var ITERATOR = wellKnownSymbol$2('iterator');
90537
+ var ITERATOR = wellKnownSymbol('iterator');
91172
90538
  var ArrayValues = ArrayIteratorMethods.values;
91173
90539
 
91174
90540
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -91228,549 +90594,21 @@ exports.ModelFieldsTypes = void 0;
91228
90594
  ModelFieldsTypes["Number"] = "Number";
91229
90595
  ModelFieldsTypes["Image"] = "Image";
91230
90596
  ModelFieldsTypes["MultipleImages"] = "Multiple Images";
90597
+ ModelFieldsTypes["JSON"] = "JSON";
91231
90598
  })(exports.ModelFieldsTypes || (exports.ModelFieldsTypes = {}));
91232
90599
 
91233
- const MessageTypePossibleValues = ['text', 'image', 'audio', 'document', 'video', 'location', 'interactive', 'template'];
91234
- const IntegrationTypePossibleValues = ['WHATSAPP', 'BCWEBCHAT'];
91235
-
91236
- /**
91237
- * Hypertext Transfer Protocol (HTTP) response status codes.
91238
- * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
91239
- */
91240
- exports.HttpStatusCode = void 0;
91241
- (function (HttpStatusCode) {
91242
- /**
91243
- * The server has received the request headers and the client should proceed to send the request body
91244
- * (in the case of a request for which a body needs to be sent; for example, a POST request).
91245
- * Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.
91246
- * To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request
91247
- * and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.
91248
- */
91249
- HttpStatusCode[HttpStatusCode["CONTINUE"] = 100] = "CONTINUE";
91250
- /**
91251
- * The requester has asked the server to switch protocols and the server has agreed to do so.
91252
- */
91253
- HttpStatusCode[HttpStatusCode["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
91254
- /**
91255
- * A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.
91256
- * This code indicates that the server has received and is processing the request, but no response is available yet.
91257
- * This prevents the client from timing out and assuming the request was lost.
91258
- */
91259
- HttpStatusCode[HttpStatusCode["PROCESSING"] = 102] = "PROCESSING";
91260
- /**
91261
- * Standard response for successful HTTP requests.
91262
- * The actual response will depend on the request method used.
91263
- * In a GET request, the response will contain an entity corresponding to the requested resource.
91264
- * In a POST request, the response will contain an entity describing or containing the result of the action.
91265
- */
91266
- HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
91267
- /**
91268
- * The request has been fulfilled, resulting in the creation of a new resource.
91269
- */
91270
- HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
91271
- /**
91272
- * The request has been accepted for processing, but the processing has not been completed.
91273
- * The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
91274
- */
91275
- HttpStatusCode[HttpStatusCode["ACCEPTED"] = 202] = "ACCEPTED";
91276
- /**
91277
- * SINCE HTTP/1.1
91278
- * The server is a transforming proxy that received a 200 OK from its origin,
91279
- * but is returning a modified version of the origin's response.
91280
- */
91281
- HttpStatusCode[HttpStatusCode["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
91282
- /**
91283
- * The server successfully processed the request and is not returning any content.
91284
- */
91285
- HttpStatusCode[HttpStatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
91286
- /**
91287
- * The server successfully processed the request, but is not returning any content.
91288
- * Unlike a 204 response, this response requires that the requester reset the document view.
91289
- */
91290
- HttpStatusCode[HttpStatusCode["RESET_CONTENT"] = 205] = "RESET_CONTENT";
91291
- /**
91292
- * The server is delivering only part of the resource (byte serving) due to a range header sent by the client.
91293
- * The range header is used by HTTP clients to enable resuming of interrupted downloads,
91294
- * or split a download into multiple simultaneous streams.
91295
- */
91296
- HttpStatusCode[HttpStatusCode["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
91297
- /**
91298
- * The message body that follows is an XML message and can contain a number of separate response codes,
91299
- * depending on how many sub-requests were made.
91300
- */
91301
- HttpStatusCode[HttpStatusCode["MULTI_STATUS"] = 207] = "MULTI_STATUS";
91302
- /**
91303
- * The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,
91304
- * and are not being included again.
91305
- */
91306
- HttpStatusCode[HttpStatusCode["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
91307
- /**
91308
- * The server has fulfilled a request for the resource,
91309
- * and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
91310
- */
91311
- HttpStatusCode[HttpStatusCode["IM_USED"] = 226] = "IM_USED";
91312
- /**
91313
- * Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).
91314
- * For example, this code could be used to present multiple video format options,
91315
- * to list files with different filename extensions, or to suggest word-sense disambiguation.
91316
- */
91317
- HttpStatusCode[HttpStatusCode["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
91318
- /**
91319
- * This and all future requests should be directed to the given URI.
91320
- */
91321
- HttpStatusCode[HttpStatusCode["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
91322
- /**
91323
- * This is an example of industry practice contradicting the standard.
91324
- * The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect
91325
- * (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302
91326
- * with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307
91327
- * to distinguish between the two behaviours. However, some Web applications and frameworks
91328
- * use the 302 status code as if it were the 303.
91329
- */
91330
- HttpStatusCode[HttpStatusCode["FOUND"] = 302] = "FOUND";
91331
- /**
91332
- * SINCE HTTP/1.1
91333
- * The response to the request can be found under another URI using a GET method.
91334
- * When received in response to a POST (or PUT/DELETE), the client should presume that
91335
- * the server has received the data and should issue a redirect with a separate GET message.
91336
- */
91337
- HttpStatusCode[HttpStatusCode["SEE_OTHER"] = 303] = "SEE_OTHER";
91338
- /**
91339
- * Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.
91340
- * In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.
91341
- */
91342
- HttpStatusCode[HttpStatusCode["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
91343
- /**
91344
- * SINCE HTTP/1.1
91345
- * The requested resource is available only through a proxy, the address for which is provided in the response.
91346
- * Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.
91347
- */
91348
- HttpStatusCode[HttpStatusCode["USE_PROXY"] = 305] = "USE_PROXY";
91349
- /**
91350
- * No longer used. Originally meant "Subsequent requests should use the specified proxy."
91351
- */
91352
- HttpStatusCode[HttpStatusCode["SWITCH_PROXY"] = 306] = "SWITCH_PROXY";
91353
- /**
91354
- * SINCE HTTP/1.1
91355
- * In this case, the request should be repeated with another URI; however, future requests should still use the original URI.
91356
- * In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.
91357
- * For example, a POST request should be repeated using another POST request.
91358
- */
91359
- HttpStatusCode[HttpStatusCode["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
91360
- /**
91361
- * The request and all future requests should be repeated using another URI.
91362
- * 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.
91363
- * So, for example, submitting a form to a permanently redirected resource may continue smoothly.
91364
- */
91365
- HttpStatusCode[HttpStatusCode["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
91366
- /**
91367
- * The server cannot or will not process the request due to an apparent client error
91368
- * (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).
91369
- */
91370
- HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
91371
- /**
91372
- * Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet
91373
- * been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the
91374
- * requested resource. See Basic access authentication and Digest access authentication. 401 semantically means
91375
- * "unauthenticated",i.e. the user does not have the necessary credentials.
91376
- */
91377
- HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
91378
- /**
91379
- * Reserved for future use. The original intention was that this code might be used as part of some form of digital
91380
- * cash or micro payment scheme, but that has not happened, and this code is not usually used.
91381
- * Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.
91382
- */
91383
- HttpStatusCode[HttpStatusCode["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
91384
- /**
91385
- * The request was valid, but the server is refusing action.
91386
- * The user might not have the necessary permissions for a resource.
91387
- */
91388
- HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
91389
- /**
91390
- * The requested resource could not be found but may be available in the future.
91391
- * Subsequent requests by the client are permissible.
91392
- */
91393
- HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
91394
- /**
91395
- * A request method is not supported for the requested resource;
91396
- * for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
91397
- */
91398
- HttpStatusCode[HttpStatusCode["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
91399
- /**
91400
- * The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
91401
- */
91402
- HttpStatusCode[HttpStatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
91403
- /**
91404
- * The client must first authenticate itself with the proxy.
91405
- */
91406
- HttpStatusCode[HttpStatusCode["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
91407
- /**
91408
- * The server timed out waiting for the request.
91409
- * According to HTTP specifications:
91410
- * "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."
91411
- */
91412
- HttpStatusCode[HttpStatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
91413
- /**
91414
- * Indicates that the request could not be processed because of conflict in the request,
91415
- * such as an edit conflict between multiple simultaneous updates.
91416
- */
91417
- HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
91418
- /**
91419
- * Indicates that the resource requested is no longer available and will not be available again.
91420
- * This should be used when a resource has been intentionally removed and the resource should be purged.
91421
- * Upon receiving a 410 status code, the client should not request the resource in the future.
91422
- * Clients such as search engines should remove the resource from their indices.
91423
- * Most use cases do not require clients and search engines to purge the resource, and a "404 Not Found" may be used instead.
91424
- */
91425
- HttpStatusCode[HttpStatusCode["GONE"] = 410] = "GONE";
91426
- /**
91427
- * The request did not specify the length of its content, which is required by the requested resource.
91428
- */
91429
- HttpStatusCode[HttpStatusCode["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
91430
- /**
91431
- * The server does not meet one of the preconditions that the requester put on the request.
91432
- */
91433
- HttpStatusCode[HttpStatusCode["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
91434
- /**
91435
- * The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".
91436
- */
91437
- HttpStatusCode[HttpStatusCode["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
91438
- /**
91439
- * The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,
91440
- * in which case it should be converted to a POST request.
91441
- * Called "Request-URI Too Long" previously.
91442
- */
91443
- HttpStatusCode[HttpStatusCode["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
91444
- /**
91445
- * The request entity has a media type which the server or resource does not support.
91446
- * For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.
91447
- */
91448
- HttpStatusCode[HttpStatusCode["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
91449
- /**
91450
- * The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.
91451
- * For example, if the client asked for a part of the file that lies beyond the end of the file.
91452
- * Called "Requested Range Not Satisfiable" previously.
91453
- */
91454
- HttpStatusCode[HttpStatusCode["RANGE_NOT_SATISFIABLE"] = 416] = "RANGE_NOT_SATISFIABLE";
91455
- /**
91456
- * The server cannot meet the requirements of the Expect request-header field.
91457
- */
91458
- HttpStatusCode[HttpStatusCode["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
91459
- /**
91460
- * This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,
91461
- * and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by
91462
- * teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.
91463
- */
91464
- HttpStatusCode[HttpStatusCode["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
91465
- /**
91466
- * The request was directed at a server that is not able to produce a response (for example because a connection reuse).
91467
- */
91468
- HttpStatusCode[HttpStatusCode["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
91469
- /**
91470
- * The request was well-formed but was unable to be followed due to semantic errors.
91471
- */
91472
- HttpStatusCode[HttpStatusCode["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
91473
- /**
91474
- * The resource that is being accessed is locked.
91475
- */
91476
- HttpStatusCode[HttpStatusCode["LOCKED"] = 423] = "LOCKED";
91477
- /**
91478
- * The request failed due to failure of a previous request (e.g., a PROPPATCH).
91479
- */
91480
- HttpStatusCode[HttpStatusCode["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
91481
- /**
91482
- * The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.
91483
- */
91484
- HttpStatusCode[HttpStatusCode["UPGRADE_REQUIRED"] = 426] = "UPGRADE_REQUIRED";
91485
- /**
91486
- * The origin server requires the request to be conditional.
91487
- * Intended to prevent "the 'lost update' problem, where a client
91488
- * GETs a resource's state, modifies it, and PUTs it back to the server,
91489
- * when meanwhile a third party has modified the state on the server, leading to a conflict."
91490
- */
91491
- HttpStatusCode[HttpStatusCode["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
91492
- /**
91493
- * The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.
91494
- */
91495
- HttpStatusCode[HttpStatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
91496
- /**
91497
- * The server is unwilling to process the request because either an individual header field,
91498
- * or all the header fields collectively, are too large.
91499
- */
91500
- HttpStatusCode[HttpStatusCode["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
91501
- /**
91502
- * A server operator has received a legal demand to deny access to a resource or to a set of resources
91503
- * that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.
91504
- */
91505
- HttpStatusCode[HttpStatusCode["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
91506
- /**
91507
- * A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
91508
- */
91509
- HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
91510
- /**
91511
- * The server either does not recognize the request method, or it lacks the ability to fulfill the request.
91512
- * Usually this implies future availability (e.g., a new feature of a web-service API).
91513
- */
91514
- HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
91515
- /**
91516
- * The server was acting as a gateway or proxy and received an invalid response from the upstream server.
91517
- */
91518
- HttpStatusCode[HttpStatusCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
91519
- /**
91520
- * The server is currently unavailable (because it is overloaded or down for maintenance).
91521
- * Generally, this is a temporary state.
91522
- */
91523
- HttpStatusCode[HttpStatusCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
91524
- /**
91525
- * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
91526
- */
91527
- HttpStatusCode[HttpStatusCode["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
91528
- /**
91529
- * The server does not support the HTTP protocol version used in the request
91530
- */
91531
- HttpStatusCode[HttpStatusCode["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
91532
- /**
91533
- * Transparent content negotiation for the request results in a circular reference.
91534
- */
91535
- HttpStatusCode[HttpStatusCode["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
91536
- /**
91537
- * The server is unable to store the representation needed to complete the request.
91538
- */
91539
- HttpStatusCode[HttpStatusCode["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
91540
- /**
91541
- * The server detected an infinite loop while processing the request.
91542
- */
91543
- HttpStatusCode[HttpStatusCode["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
91544
- /**
91545
- * Further extensions to the request are required for the server to fulfill it.
91546
- */
91547
- HttpStatusCode[HttpStatusCode["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
91548
- /**
91549
- * The client needs to authenticate to gain network access.
91550
- * Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used
91551
- * to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).
91552
- */
91553
- HttpStatusCode[HttpStatusCode["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
91554
- })(exports.HttpStatusCode || (exports.HttpStatusCode = {}));
91555
- const HttpStatusCodeName = {
91556
- CONTINUE: "CONTINUE",
91557
- SWITCHING_PROTOCOLS: "SWITCHING_PROTOCOLS",
91558
- PROCESSING: "PROCESSING",
91559
- OK: "OK",
91560
- CREATED: "CREATED",
91561
- ACCEPTED: "ACCEPTED",
91562
- NON_AUTHORITATIVE_INFORMATION: "NON_AUTHORITATIVE_INFORMATION",
91563
- NO_CONTENT: "NO_CONTENT",
91564
- RESET_CONTENT: "RESET_CONTENT",
91565
- PARTIAL_CONTENT: "PARTIAL_CONTENT",
91566
- MULTI_STATUS: "MULTI_STATUS",
91567
- ALREADY_REPORTED: "ALREADY_REPORTED",
91568
- IM_USED: "IM_USED",
91569
- MULTIPLE_CHOICES: "MULTIPLE_CHOICES",
91570
- MOVED_PERMANENTLY: "MOVED_PERMANENTLY",
91571
- FOUND: "FOUND",
91572
- SEE_OTHER: "SEE_OTHER",
91573
- NOT_MODIFIED: "NOT_MODIFIED",
91574
- USE_PROXY: "USE_PROXY",
91575
- SWITCH_PROXY: "SWITCH_PROXY",
91576
- TEMPORARY_REDIRECT: "TEMPORARY_REDIRECT",
91577
- PERMANENT_REDIRECT: "PERMANENT_REDIRECT",
91578
- BAD_REQUEST: "BAD_REQUEST",
91579
- UNAUTHORIZED: "UNAUTHORIZED",
91580
- PAYMENT_REQUIRED: "PAYMENT_REQUIRED",
91581
- FORBIDDEN: "FORBIDDEN",
91582
- NOT_FOUND: "NOT_FOUND",
91583
- METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED",
91584
- NOT_ACCEPTABLE: "NOT_ACCEPTABLE",
91585
- PROXY_AUTHENTICATION_REQUIRED: "PROXY_AUTHENTICATION_REQUIRED",
91586
- REQUEST_TIMEOUT: "REQUEST_TIMEOUT",
91587
- CONFLICT: "CONFLICT",
91588
- GONE: "GONE",
91589
- LENGTH_REQUIRED: "LENGTH_REQUIRED",
91590
- PRECONDITION_FAILED: "PRECONDITION_FAILED",
91591
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
91592
- URI_TOO_LONG: "URI_TOO_LONG",
91593
- UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
91594
- RANGE_NOT_SATISFIABLE: "RANGE_NOT_SATISFIABLE",
91595
- EXPECTATION_FAILED: "EXPECTATION_FAILED",
91596
- I_AM_A_TEAPOT: "I_AM_A_TEAPOT",
91597
- MISDIRECTED_REQUEST: "MISDIRECTED_REQUEST",
91598
- UNPROCESSABLE_ENTITY: "UNPROCESSABLE_ENTITY",
91599
- LOCKED: "LOCKED",
91600
- FAILED_DEPENDENCY: "FAILED_DEPENDENCY",
91601
- UPGRADE_REQUIRED: "UPGRADE_REQUIRED",
91602
- PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED",
91603
- TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS",
91604
- REQUEST_HEADER_FIELDS_TOO_LARGE: "REQUEST_HEADER_FIELDS_TOO_LARGE",
91605
- UNAVAILABLE_FOR_LEGAL_REASONS: "UNAVAILABLE_FOR_LEGAL_REASONS",
91606
- INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
91607
- NOT_IMPLEMENTED: "NOT_IMPLEMENTED",
91608
- BAD_GATEWAY: "BAD_GATEWAY",
91609
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE",
91610
- GATEWAY_TIMEOUT: "GATEWAY_TIMEOUT",
91611
- HTTP_VERSION_NOT_SUPPORTED: "HTTP_VERSION_NOT_SUPPORTED",
91612
- VARIANT_ALSO_NEGOTIATES: "VARIANT_ALSO_NEGOTIATES",
91613
- INSUFFICIENT_STORAGE: "INSUFFICIENT_STORAGE",
91614
- LOOP_DETECTED: "LOOP_DETECTED",
91615
- NOT_EXTENDED: "NOT_EXTENDED",
91616
- NETWORK_AUTHENTICATION_REQUIRED: "NETWORK_AUTHENTICATION_REQUIRED"
91617
- };
91618
-
91619
- var $$1 = _export;
91620
- var $includes = arrayIncludes.includes;
91621
- var fails = fails$m;
91622
- var addToUnscopables = addToUnscopables$2;
91623
-
91624
- // FF99+ bug
91625
- var BROKEN_ON_SPARSE = fails(function () {
91626
- // eslint-disable-next-line es/no-array-prototype-includes -- detection
91627
- return !Array(1).includes();
91628
- });
91629
-
91630
- // `Array.prototype.includes` method
91631
- // https://tc39.es/ecma262/#sec-array.prototype.includes
91632
- $$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
91633
- includes: function includes(el /* , fromIndex = 0 */) {
91634
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
91635
- }
91636
- });
91637
-
91638
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
91639
- addToUnscopables('includes');
91640
-
91641
- var isObject = isObject$d;
91642
- var classof = classofRaw$2;
91643
- var wellKnownSymbol$1 = wellKnownSymbol$i;
91644
-
91645
- var MATCH$1 = wellKnownSymbol$1('match');
91646
-
91647
- // `IsRegExp` abstract operation
91648
- // https://tc39.es/ecma262/#sec-isregexp
91649
- var isRegexp = function (it) {
91650
- var isRegExp;
91651
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
91652
- };
91653
-
91654
- var isRegExp = isRegexp;
91655
-
91656
- var $TypeError = TypeError;
91657
-
91658
- var notARegexp = function (it) {
91659
- if (isRegExp(it)) {
91660
- throw new $TypeError("The method doesn't accept regular expressions");
91661
- } return it;
91662
- };
91663
-
91664
- var wellKnownSymbol = wellKnownSymbol$i;
91665
-
91666
- var MATCH = wellKnownSymbol('match');
91667
-
91668
- var correctIsRegexpLogic = function (METHOD_NAME) {
91669
- var regexp = /./;
91670
- try {
91671
- '/./'[METHOD_NAME](regexp);
91672
- } catch (error1) {
91673
- try {
91674
- regexp[MATCH] = false;
91675
- return '/./'[METHOD_NAME](regexp);
91676
- } catch (error2) { /* empty */ }
91677
- } return false;
91678
- };
91679
-
91680
- var $ = _export;
91681
- var uncurryThis = functionUncurryThis;
91682
- var notARegExp = notARegexp;
91683
- var requireObjectCoercible = requireObjectCoercible$8;
91684
- var toString = toString$9;
91685
- var correctIsRegExpLogic = correctIsRegexpLogic;
91686
-
91687
- var stringIndexOf = uncurryThis(''.indexOf);
91688
-
91689
- // `String.prototype.includes` method
91690
- // https://tc39.es/ecma262/#sec-string.prototype.includes
91691
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
91692
- includes: function includes(searchString /* , position = 0 */) {
91693
- return !!~stringIndexOf(
91694
- toString(requireObjectCoercible(this)),
91695
- toString(notARegExp(searchString)),
91696
- arguments.length > 1 ? arguments[1] : undefined
91697
- );
91698
- }
91699
- });
91700
-
91701
- // import LanguageDetector from 'i18next-browser-languagedetector';
91702
- const LOCAL_STORAGE_I18N_STRING = 'I18N_SELECTION';
91703
- const systemDefaultLang = 'en';
91704
- const init = () => {
91705
- const currentLng = localStorage.getItem(LOCAL_STORAGE_I18N_STRING) || systemDefaultLang;
91706
- i18n.use(Backend) // load translation using http
91707
- // .use(LanguageDetector) // detect user language
91708
- .use(reactI18next.initReactI18next) // passes i18n down to react-i18next
91709
- .init({
91710
- lng: currentLng,
91711
- fallbackLng: systemDefaultLang,
91712
- ns: 'translation',
91713
- interpolation: {
91714
- escapeValue: false
91715
- },
91716
- load: 'languageOnly',
91717
- backend: {
91718
- loadPath: '/assets/locales/{{lng}}/{{ns}}.json'
91719
- }
91720
- });
91721
- };
91722
- const changeLang = lang => {
91723
- localStorage.setItem(LOCAL_STORAGE_I18N_STRING, lang);
91724
- i18n.changeLanguage(lang);
91725
- };
91726
- const getLang = () => {
91727
- var _a;
91728
- return (_a = localStorage.getItem(LOCAL_STORAGE_I18N_STRING)) !== null && _a !== void 0 ? _a : systemDefaultLang;
91729
- };
91730
- const LangService = {
91731
- init,
91732
- changeLang,
91733
- getLang
91734
- };
91735
- exports.Languages = void 0;
91736
- (function (Languages) {
91737
- Languages["EN"] = "en";
91738
- Languages["AR"] = "ar";
91739
- Languages["TR"] = "tr";
91740
- })(exports.Languages || (exports.Languages = {}));
91741
-
91742
- class StringsUtils {
91743
- static localCompareStrings(a, b) {
91744
- const language = LangService.getLang();
91745
- return a.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr').localeCompare(b.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr'), language !== null && language !== void 0 ? language : 'tr');
91746
- }
91747
- static localeIncludeString(a, b) {
91748
- const language = LangService.getLang();
91749
- return a.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr').includes(b.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr'));
91750
- }
91751
- static isStringHasCharacters(text) {
91752
- return text && text.length > 0;
91753
- }
91754
- }
91755
-
91756
90600
  exports.CreateCheckoutSessionUri = CreateCheckoutSessionUri;
91757
90601
  exports.CreatePortalSessionUri = CreatePortalSessionUri;
91758
- exports.HttpStatusCodeName = HttpStatusCodeName;
91759
- exports.IntegrationTypePossibleValues = IntegrationTypePossibleValues;
91760
- exports.LOCAL_STORAGE_I18N_STRING = LOCAL_STORAGE_I18N_STRING;
91761
- exports.LangService = LangService;
91762
- exports.MessageTypePossibleValues = MessageTypePossibleValues;
91763
90602
  exports.ModelUtilities = ModelUtilities;
91764
- exports.StringsUtils = StringsUtils;
91765
90603
  exports.VALIDATE_COMPANY_NAME = VALIDATE_COMPANY_NAME;
91766
90604
  exports.addDomain = addDomain;
91767
90605
  exports.addDomainOptions = addDomainOptions;
91768
90606
  exports.appConfig = appConfig;
91769
- exports.auth = auth;
90607
+ exports.botClient = botClient;
91770
90608
  exports.companyUsersQuery = companyUsersQuery;
91771
90609
  exports.contentInstancesQuery = contentInstancesQuery;
90610
+ exports.coreClient = coreClient;
91772
90611
  exports.createCompany = createCompany;
91773
- exports.createCompanyOptions = createCompanyOptions;
91774
90612
  exports.createContentInstanceMutation = createContentInstanceMutation;
91775
90613
  exports.createContentInstanceMutationOptions = createContentInstanceMutationOptions;
91776
90614
  exports.createContentMutation = createContentMutation;
@@ -91790,6 +90628,7 @@ exports.inviteUserOptions = inviteUserOptions;
91790
90628
  exports.login = login;
91791
90629
  exports.loginOptions = loginOptions;
91792
90630
  exports.menuConfigurationQuery = menuConfigurationQuery;
90631
+ exports.portalThemeConfig = portalThemeConfig;
91793
90632
  exports.querySectionThumb = querySectionThumb;
91794
90633
  exports.queryUsage = queryUsage;
91795
90634
  exports.registeUsage = registeUsage;
@@ -91810,12 +90649,9 @@ exports.showcaseConfigurationQueryOptions = showcaseConfigurationQueryOptions;
91810
90649
  exports.showcaseContentsQuery = showcaseContentsQuery;
91811
90650
  exports.showcaseContext = showcaseContext;
91812
90651
  exports.showcaseDomainsQuery = showcaseDomainsQuery;
91813
- exports.showcaseDomainsQueryOptions = showcaseDomainsQueryOptions;
91814
90652
  exports.showcasePagesQuery = showcasePagesQuery;
91815
- exports.showcasePagesQueryOptions = showcasePagesQueryOptions;
91816
90653
  exports.showcaseSectionQuery = showcaseSectionQuery;
91817
90654
  exports.showcaseSectionsQuery = showcaseSectionsQuery;
91818
- exports.showcaseSectionsQueryOptions = showcaseSectionsQueryOptions;
91819
90655
  exports.showcaseTemplateSectionsThumbsMap = showcaseTemplateSectionsThumbsMap;
91820
90656
  exports.showcaseTemplatesQuery = showcaseTemplatesQuery;
91821
90657
  exports.showcaseTemplatesQueryOptions = showcaseTemplatesQueryOptions;
@@ -91834,6 +90670,7 @@ exports.updateUserPasswordOptions = updateUserPasswordOptions;
91834
90670
  exports.updateUserProfile = updateUserProfile;
91835
90671
  exports.updateUserProfileOptions = updateUserProfileOptions;
91836
90672
  exports.useContentInstancesQuery = useContentInstancesQuery;
90673
+ exports.useCreateCompanyMutation = useCreateCompanyMutation;
91837
90674
  exports.useCreateContentInstanceMutation = useCreateContentInstanceMutation;
91838
90675
  exports.useCreateContentMutation = useCreateContentMutation;
91839
90676
  exports.useCreateFileMutation = useCreateFileMutation;
@@ -91847,6 +90684,7 @@ exports.useFoldersTreeQuery = useFoldersTreeQuery;
91847
90684
  exports.useMenuConfigurationQuery = useMenuConfigurationQuery;
91848
90685
  exports.useModelChildrenQuery = useModelChildrenQuery;
91849
90686
  exports.useModelsQuery = useModelsQuery;
90687
+ exports.usePortalThemeConfig = usePortalThemeConfig;
91850
90688
  exports.useQuerySectionThumb = useQuerySectionThumb;
91851
90689
  exports.useQueryUsage = useQueryUsage;
91852
90690
  exports.useRegisterUsage = useRegisterUsage;
@@ -91857,6 +90695,7 @@ exports.useShowcaseContentsQuery = useShowcaseContentsQuery;
91857
90695
  exports.useShowcaseContext = useShowcaseContext;
91858
90696
  exports.useShowcasePagesQuery = useShowcasePagesQuery;
91859
90697
  exports.useShowcaseSectionQuery = useShowcaseSectionQuery;
90698
+ exports.useShowcaseSectionsQuery = useShowcaseSectionsQuery;
91860
90699
  exports.useShowcaseTemplate = useShowcaseTemplate;
91861
90700
  exports.useShowcaseTemplateOptions = useShowcaseTemplateOptions;
91862
90701
  exports.useShowcaseTemplateProgress = useShowcaseTemplateProgress;