@ranty/ranty-sdk 3.17.0-beta.5 → 3.17.0-beta.6

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.
@@ -926,7 +926,7 @@ function ie(t) {
926
926
  */
927
927
  var kb;
928
928
  ((kb = window.HTMLSlotElement) === null || kb === void 0 ? void 0 : kb.prototype.assignedElements) != null;
929
- const cR = "@ranty/ranty-sdk", AR = "3.17.0-beta.5", uR = "Ranty sdk", pR = "dist/index.js", hR = {
929
+ const cR = "@ranty/ranty-sdk", AR = "3.17.0-beta.6", uR = "Ranty sdk", pR = "dist/index.js", hR = {
930
930
  ".": "./dist/index.js"
931
931
  }, gR = "types/index.d.ts", fR = [
932
932
  "dist",
@@ -3161,237 +3161,7 @@ gd.isIdempotentRequestError = Vk;
3161
3161
  gd.isNetworkOrIdempotentRequestError = Kk;
3162
3162
  gd.exponentialDelay = vP;
3163
3163
  gd.isRetryableError = R_;
3164
- var Gk = {}, Eu = {}, Rg = {}, BP = io && io.__awaiter || function(t, e, n, s) {
3165
- function r(i) {
3166
- return i instanceof n ? i : new n(function(o) {
3167
- o(i);
3168
- });
3169
- }
3170
- return new (n || (n = Promise))(function(i, o) {
3171
- function a(c) {
3172
- try {
3173
- l(s.next(c));
3174
- } catch (u) {
3175
- o(u);
3176
- }
3177
- }
3178
- function d(c) {
3179
- try {
3180
- l(s.throw(c));
3181
- } catch (u) {
3182
- o(u);
3183
- }
3184
- }
3185
- function l(c) {
3186
- c.done ? i(c.value) : r(c.value).then(a, d);
3187
- }
3188
- l((s = s.apply(t, e || [])).next());
3189
- });
3190
- }, EP = io && io.__generator || function(t, e) {
3191
- var n = { label: 0, sent: function() {
3192
- if (i[0] & 1)
3193
- throw i[1];
3194
- return i[1];
3195
- }, trys: [], ops: [] }, s, r, i, o;
3196
- return o = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
3197
- return this;
3198
- }), o;
3199
- function a(l) {
3200
- return function(c) {
3201
- return d([l, c]);
3202
- };
3203
- }
3204
- function d(l) {
3205
- if (s)
3206
- throw new TypeError("Generator is already executing.");
3207
- for (; o && (o = 0, l[0] && (n = 0)), n; )
3208
- try {
3209
- if (s = 1, r && (i = l[0] & 2 ? r.return : l[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, l[1])).done)
3210
- return i;
3211
- switch (r = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
3212
- case 0:
3213
- case 1:
3214
- i = l;
3215
- break;
3216
- case 4:
3217
- return n.label++, { value: l[1], done: !1 };
3218
- case 5:
3219
- n.label++, r = l[1], l = [0];
3220
- continue;
3221
- case 7:
3222
- l = n.ops.pop(), n.trys.pop();
3223
- continue;
3224
- default:
3225
- if (i = n.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
3226
- n = 0;
3227
- continue;
3228
- }
3229
- if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
3230
- n.label = l[1];
3231
- break;
3232
- }
3233
- if (l[0] === 6 && n.label < i[1]) {
3234
- n.label = i[1], i = l;
3235
- break;
3236
- }
3237
- if (i && n.label < i[2]) {
3238
- n.label = i[2], n.ops.push(l);
3239
- break;
3240
- }
3241
- i[2] && n.ops.pop(), n.trys.pop();
3242
- continue;
3243
- }
3244
- l = e.call(t, n);
3245
- } catch (c) {
3246
- l = [6, c], r = 0;
3247
- } finally {
3248
- s = i = 0;
3249
- }
3250
- if (l[0] & 5)
3251
- throw l[1];
3252
- return { value: l[0] ? l[1] : void 0, done: !0 };
3253
- }
3254
- };
3255
- Object.defineProperty(Rg, "__esModule", { value: !0 });
3256
- Rg.ReCaptchaInstance = void 0;
3257
- var kP = function() {
3258
- function t(e, n, s) {
3259
- this.siteKey = e, this.recaptchaID = n, this.recaptcha = s, this.styleContainer = null;
3260
- }
3261
- return t.prototype.execute = function(e) {
3262
- return BP(this, void 0, void 0, function() {
3263
- var n;
3264
- return EP(this, function(s) {
3265
- switch (s.label) {
3266
- case 0:
3267
- return this.recaptcha.enterprise ? [4, this.recaptcha.enterprise.execute(this.recaptchaID, { action: e })] : [3, 2];
3268
- case 1:
3269
- return n = s.sent(), [3, 4];
3270
- case 2:
3271
- return [4, this.recaptcha.execute(this.recaptchaID, { action: e })];
3272
- case 3:
3273
- n = s.sent(), s.label = 4;
3274
- case 4:
3275
- return [2, n];
3276
- }
3277
- });
3278
- });
3279
- }, t.prototype.getSiteKey = function() {
3280
- return this.siteKey;
3281
- }, t.prototype.hideBadge = function() {
3282
- this.styleContainer === null && (this.styleContainer = document.createElement("style"), this.styleContainer.innerHTML = ".grecaptcha-badge{visibility:hidden !important;}", document.head.appendChild(this.styleContainer));
3283
- }, t.prototype.showBadge = function() {
3284
- this.styleContainer !== null && (document.head.removeChild(this.styleContainer), this.styleContainer = null);
3285
- }, t;
3286
- }();
3287
- Rg.ReCaptchaInstance = kP;
3288
- var j2 = io && io.__assign || function() {
3289
- return j2 = Object.assign || function(t) {
3290
- for (var e, n = 1, s = arguments.length; n < s; n++) {
3291
- e = arguments[n];
3292
- for (var r in e)
3293
- Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
3294
- }
3295
- return t;
3296
- }, j2.apply(this, arguments);
3297
- };
3298
- Object.defineProperty(Eu, "__esModule", { value: !0 });
3299
- Eu.getInstance = Eu.load = void 0;
3300
- var SP = Rg, zl;
3301
- (function(t) {
3302
- t[t.NOT_LOADED = 0] = "NOT_LOADED", t[t.LOADING = 1] = "LOADING", t[t.LOADED = 2] = "LOADED";
3303
- })(zl || (zl = {}));
3304
- var Wk = function() {
3305
- function t() {
3306
- }
3307
- return t.load = function(e, n) {
3308
- if (n === void 0 && (n = {}), typeof document == "undefined")
3309
- return Promise.reject(new Error("This is a library for the browser!"));
3310
- if (t.getLoadingState() === zl.LOADED)
3311
- return t.instance.getSiteKey() === e ? Promise.resolve(t.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
3312
- if (t.getLoadingState() === zl.LOADING)
3313
- return e !== t.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(r, i) {
3314
- t.successfulLoadingConsumers.push(function(o) {
3315
- return r(o);
3316
- }), t.errorLoadingRunnable.push(function(o) {
3317
- return i(o);
3318
- });
3319
- });
3320
- t.instanceSiteKey = e, t.setLoadingState(zl.LOADING);
3321
- var s = new t();
3322
- return new Promise(function(r, i) {
3323
- s.loadScript(e, n.useRecaptchaNet || !1, n.useEnterprise || !1, n.renderParameters ? n.renderParameters : {}, n.customUrl).then(function() {
3324
- t.setLoadingState(zl.LOADED);
3325
- var o = s.doExplicitRender(grecaptcha, e, n.explicitRenderParameters ? n.explicitRenderParameters : {}, n.useEnterprise || !1), a = new SP.ReCaptchaInstance(e, o, grecaptcha);
3326
- t.successfulLoadingConsumers.forEach(function(d) {
3327
- return d(a);
3328
- }), t.successfulLoadingConsumers = [], n.autoHideBadge && a.hideBadge(), t.instance = a, r(a);
3329
- }).catch(function(o) {
3330
- t.errorLoadingRunnable.forEach(function(a) {
3331
- return a(o);
3332
- }), t.errorLoadingRunnable = [], i(o);
3333
- });
3334
- });
3335
- }, t.getInstance = function() {
3336
- return t.instance;
3337
- }, t.setLoadingState = function(e) {
3338
- t.loadingState = e;
3339
- }, t.getLoadingState = function() {
3340
- return t.loadingState === null ? zl.NOT_LOADED : t.loadingState;
3341
- }, t.prototype.loadScript = function(e, n, s, r, i) {
3342
- var o = this;
3343
- n === void 0 && (n = !1), s === void 0 && (s = !1), r === void 0 && (r = {}), i === void 0 && (i = "");
3344
- var a = document.createElement("script");
3345
- a.setAttribute("recaptcha-v3-script", ""), a.setAttribute("async", ""), a.setAttribute("defer", "");
3346
- var d = "https://www.google.com/recaptcha/api.js";
3347
- n ? s ? d = "https://recaptcha.net/recaptcha/enterprise.js" : d = "https://recaptcha.net/recaptcha/api.js" : s && (d = "https://www.google.com/recaptcha/enterprise.js"), i && (d = i), r.render && (r.render = void 0);
3348
- var l = this.buildQueryString(r);
3349
- return a.src = d + "?render=explicit" + l, new Promise(function(c, u) {
3350
- a.addEventListener("load", o.waitForScriptToLoad(function() {
3351
- c(a);
3352
- }, s), !1), a.onerror = function(h) {
3353
- t.setLoadingState(zl.NOT_LOADED), u(h);
3354
- }, document.head.appendChild(a);
3355
- });
3356
- }, t.prototype.buildQueryString = function(e) {
3357
- var n = Object.keys(e);
3358
- return n.length < 1 ? "" : "&" + Object.keys(e).filter(function(s) {
3359
- return !!e[s];
3360
- }).map(function(s) {
3361
- return s + "=" + e[s];
3362
- }).join("&");
3363
- }, t.prototype.waitForScriptToLoad = function(e, n) {
3364
- var s = this;
3365
- return function() {
3366
- window.grecaptcha === void 0 ? setTimeout(function() {
3367
- s.waitForScriptToLoad(e, n);
3368
- }, t.SCRIPT_LOAD_DELAY) : n ? window.grecaptcha.enterprise.ready(function() {
3369
- e();
3370
- }) : window.grecaptcha.ready(function() {
3371
- e();
3372
- });
3373
- };
3374
- }, t.prototype.doExplicitRender = function(e, n, s, r) {
3375
- var i = j2({ sitekey: n }, s);
3376
- return s.container ? r ? e.enterprise.render(s.container, i) : e.render(s.container, i) : r ? e.enterprise.render(i) : e.render(i);
3377
- }, t.loadingState = null, t.instance = null, t.instanceSiteKey = null, t.successfulLoadingConsumers = [], t.errorLoadingRunnable = [], t.SCRIPT_LOAD_DELAY = 25, t;
3378
- }();
3379
- Eu.load = Wk.load;
3380
- Eu.getInstance = Wk.getInstance;
3381
- (function(t) {
3382
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ReCaptchaInstance = t.getInstance = t.load = void 0;
3383
- var e = Eu;
3384
- Object.defineProperty(t, "load", { enumerable: !0, get: function() {
3385
- return e.load;
3386
- } }), Object.defineProperty(t, "getInstance", { enumerable: !0, get: function() {
3387
- return e.getInstance;
3388
- } });
3389
- var n = Rg;
3390
- Object.defineProperty(t, "ReCaptchaInstance", { enumerable: !0, get: function() {
3391
- return n.ReCaptchaInstance;
3392
- } });
3393
- })(Gk);
3394
- var IP = "Logging", TP = globalThis && globalThis.__values || function(t) {
3164
+ var BP = "Logging", EP = globalThis && globalThis.__values || function(t) {
3395
3165
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], s = 0;
3396
3166
  if (n)
3397
3167
  return n.call(t);
@@ -3469,7 +3239,7 @@ var _o = (
3469
3239
  } else
3470
3240
  u = "".concat(c, " ").concat(r), l(c, r);
3471
3241
  try {
3472
- for (var p = TP(this._pluggables), f = p.next(); !f.done; f = p.next()) {
3242
+ for (var p = EP(this._pluggables), f = p.next(); !f.done; f = p.next()) {
3473
3243
  var y = f.value, w = { message: u, timestamp: Date.now() };
3474
3244
  y.pushLogs([w]);
3475
3245
  }
@@ -3509,12 +3279,12 @@ var _o = (
3509
3279
  e[n] = arguments[n];
3510
3280
  this._log.apply(this, FA([Zi.VERBOSE], DA(e), !1));
3511
3281
  }, t.prototype.addPluggable = function(e) {
3512
- e && e.getCategoryName() === IP && (this._pluggables.push(e), e.configure(this._config));
3282
+ e && e.getCategoryName() === BP && (this._pluggables.push(e), e.configure(this._config));
3513
3283
  }, t.prototype.listPluggables = function() {
3514
3284
  return this._pluggables;
3515
3285
  }, t.LOG_LEVEL = null, t;
3516
3286
  }()
3517
- ), UP = globalThis && globalThis.__read || function(t, e) {
3287
+ ), kP = globalThis && globalThis.__read || function(t, e) {
3518
3288
  var n = typeof Symbol == "function" && t[Symbol.iterator];
3519
3289
  if (!n)
3520
3290
  return t;
@@ -3533,7 +3303,7 @@ var _o = (
3533
3303
  }
3534
3304
  }
3535
3305
  return i;
3536
- }, Rb = new _o("Amplify"), RP = (
3306
+ }, Rb = new _o("Amplify"), SP = (
3537
3307
  /** @class */
3538
3308
  function() {
3539
3309
  function t() {
@@ -3544,7 +3314,7 @@ var _o = (
3544
3314
  }, t.prototype.configure = function(e) {
3545
3315
  var n = this;
3546
3316
  return e ? (this._config = Object.assign(this._config, e), Rb.debug("amplify config", this._config), Object.entries(this._modules).forEach(function(s) {
3547
- var r = UP(s, 2);
3317
+ var r = kP(s, 2);
3548
3318
  r[0];
3549
3319
  var i = r[1];
3550
3320
  Object.keys(i).forEach(function(o) {
@@ -3559,14 +3329,14 @@ var _o = (
3559
3329
  });
3560
3330
  }, t;
3561
3331
  }()
3562
- ), jg = new RP(), Qn;
3332
+ ), Rg = new SP(), Qn;
3563
3333
  (function(t) {
3564
3334
  t.WebUnknown = "0", t.React = "1", t.NextJs = "2", t.Angular = "3", t.VueJs = "4", t.Nuxt = "5", t.Svelte = "6", t.ServerSideUnknown = "100", t.ReactSSR = "101", t.NextJsSSR = "102", t.AngularSSR = "103", t.VueJsSSR = "104", t.NuxtSSR = "105", t.SvelteSSR = "106", t.ReactNative = "201", t.Expo = "202";
3565
3335
  })(Qn || (Qn = {}));
3566
- var P2;
3336
+ var j2;
3567
3337
  (function(t) {
3568
3338
  t.API = "api", t.Auth = "auth", t.Analytics = "analytics", t.DataStore = "datastore", t.Geo = "geo", t.InAppMessaging = "inappmessaging", t.Interactions = "interactions", t.Predictions = "predictions", t.PubSub = "pubsub", t.PushNotification = "pushnotification", t.Storage = "storage";
3569
- })(P2 || (P2 = {}));
3339
+ })(j2 || (j2 = {}));
3570
3340
  var NC;
3571
3341
  (function(t) {
3572
3342
  t.Record = "1", t.UpdateEndpoint = "2";
@@ -3575,10 +3345,10 @@ var LC;
3575
3345
  (function(t) {
3576
3346
  t.GraphQl = "1", t.Get = "2", t.Post = "3", t.Put = "4", t.Patch = "5", t.Del = "6", t.Head = "7";
3577
3347
  })(LC || (LC = {}));
3578
- var D2;
3348
+ var P2;
3579
3349
  (function(t) {
3580
3350
  t.FederatedSignIn = "30";
3581
- })(D2 || (D2 = {}));
3351
+ })(P2 || (P2 = {}));
3582
3352
  var QC;
3583
3353
  (function(t) {
3584
3354
  t.Subscribe = "1", t.GraphQl = "2";
@@ -3611,11 +3381,11 @@ var GC;
3611
3381
  (function(t) {
3612
3382
  t.Put = "1", t.Get = "2", t.List = "3", t.Copy = "4", t.Remove = "5", t.GetProperties = "6";
3613
3383
  })(GC || (GC = {}));
3614
- var Yk = "5.3.26", R1 = function() {
3384
+ var Gk = "5.3.26", R1 = function() {
3615
3385
  return typeof global != "undefined";
3616
3386
  }, Zu = function() {
3617
3387
  return typeof window != "undefined";
3618
- }, Jk = function() {
3388
+ }, Wk = function() {
3619
3389
  return typeof document != "undefined";
3620
3390
  }, j_ = function() {
3621
3391
  return typeof process != "undefined";
@@ -3624,7 +3394,7 @@ var Yk = "5.3.26", R1 = function() {
3624
3394
  return n.startsWith(e);
3625
3395
  });
3626
3396
  };
3627
- function jP() {
3397
+ function IP() {
3628
3398
  var t = function(s) {
3629
3399
  return s.startsWith("_react") || s.startsWith("__react");
3630
3400
  }, e = function(s) {
@@ -3632,108 +3402,108 @@ function jP() {
3632
3402
  }, n = function() {
3633
3403
  return Array.from(document.querySelectorAll("[id]"));
3634
3404
  };
3635
- return Jk() && n().some(e);
3405
+ return Wk() && n().some(e);
3636
3406
  }
3637
- function PP() {
3407
+ function TP() {
3638
3408
  return j_() && typeof process.env != "undefined" && !!Object.keys(process.env).find(function(t) {
3639
3409
  return t.includes("react");
3640
3410
  });
3641
3411
  }
3642
- function DP() {
3412
+ function UP() {
3643
3413
  return Zu() && Zh(window, "__VUE");
3644
3414
  }
3645
- function FP() {
3415
+ function RP() {
3646
3416
  return R1() && Zh(global, "__VUE");
3647
3417
  }
3648
- function OP() {
3418
+ function jP() {
3649
3419
  return Zu() && Zh(window, "__SVELTE");
3650
3420
  }
3651
- function NP() {
3421
+ function PP() {
3652
3422
  return j_() && typeof process.env != "undefined" && !!Object.keys(process.env).find(function(t) {
3653
3423
  return t.includes("svelte");
3654
3424
  });
3655
3425
  }
3656
- function LP() {
3426
+ function DP() {
3657
3427
  return Zu() && window.next && typeof window.next == "object";
3658
3428
  }
3659
- function QP() {
3429
+ function FP() {
3660
3430
  return R1() && (Zh(global, "__next") || Zh(global, "__NEXT"));
3661
3431
  }
3662
- function MP() {
3432
+ function OP() {
3663
3433
  return Zu() && // @ts-ignore
3664
3434
  (window.__NUXT__ !== void 0 || window.$nuxt !== void 0);
3665
3435
  }
3666
- function zP() {
3436
+ function NP() {
3667
3437
  return R1() && typeof global.__NUXT_PATHS__ != "undefined";
3668
3438
  }
3669
- function HP() {
3670
- var t = !!(Jk() && document.querySelector("[ng-version]")), e = !!// @ts-ignore
3439
+ function LP() {
3440
+ var t = !!(Wk() && document.querySelector("[ng-version]")), e = !!// @ts-ignore
3671
3441
  (Zu() && typeof window.ng != "undefined");
3672
3442
  return t || e;
3673
3443
  }
3674
- function qP() {
3444
+ function QP() {
3675
3445
  var t;
3676
3446
  return j_() && typeof process.env == "object" && ((t = process.env.npm_lifecycle_script) === null || t === void 0 ? void 0 : t.startsWith("ng ")) || !1;
3677
3447
  }
3678
- function VP() {
3448
+ function MP() {
3679
3449
  return typeof navigator != "undefined" && typeof navigator.product != "undefined" && navigator.product === "ReactNative";
3680
3450
  }
3681
- function KP() {
3451
+ function zP() {
3682
3452
  return R1() && typeof global.expo != "undefined";
3683
3453
  }
3684
- function GP() {
3454
+ function HP() {
3685
3455
  return Zu();
3686
3456
  }
3687
- var WP = [
3457
+ var qP = [
3688
3458
  // First, detect mobile
3689
- { platform: Qn.Expo, detectionMethod: KP },
3690
- { platform: Qn.ReactNative, detectionMethod: VP },
3459
+ { platform: Qn.Expo, detectionMethod: zP },
3460
+ { platform: Qn.ReactNative, detectionMethod: MP },
3691
3461
  // Next, detect web frameworks
3692
- { platform: Qn.NextJs, detectionMethod: LP },
3693
- { platform: Qn.Nuxt, detectionMethod: MP },
3694
- { platform: Qn.Angular, detectionMethod: HP },
3695
- { platform: Qn.React, detectionMethod: jP },
3696
- { platform: Qn.VueJs, detectionMethod: DP },
3697
- { platform: Qn.Svelte, detectionMethod: OP },
3698
- { platform: Qn.WebUnknown, detectionMethod: GP },
3462
+ { platform: Qn.NextJs, detectionMethod: DP },
3463
+ { platform: Qn.Nuxt, detectionMethod: OP },
3464
+ { platform: Qn.Angular, detectionMethod: LP },
3465
+ { platform: Qn.React, detectionMethod: IP },
3466
+ { platform: Qn.VueJs, detectionMethod: UP },
3467
+ { platform: Qn.Svelte, detectionMethod: jP },
3468
+ { platform: Qn.WebUnknown, detectionMethod: HP },
3699
3469
  // Last, detect ssr frameworks
3700
- { platform: Qn.NextJsSSR, detectionMethod: QP },
3701
- { platform: Qn.NuxtSSR, detectionMethod: zP },
3702
- { platform: Qn.ReactSSR, detectionMethod: PP },
3703
- { platform: Qn.VueJsSSR, detectionMethod: FP },
3704
- { platform: Qn.AngularSSR, detectionMethod: qP },
3705
- { platform: Qn.SvelteSSR, detectionMethod: NP }
3470
+ { platform: Qn.NextJsSSR, detectionMethod: FP },
3471
+ { platform: Qn.NuxtSSR, detectionMethod: NP },
3472
+ { platform: Qn.ReactSSR, detectionMethod: TP },
3473
+ { platform: Qn.VueJsSSR, detectionMethod: RP },
3474
+ { platform: Qn.AngularSSR, detectionMethod: QP },
3475
+ { platform: Qn.SvelteSSR, detectionMethod: PP }
3706
3476
  ];
3707
- function YP() {
3477
+ function VP() {
3708
3478
  var t;
3709
- return ((t = WP.find(function(e) {
3479
+ return ((t = qP.find(function(e) {
3710
3480
  return e.detectionMethod();
3711
3481
  })) === null || t === void 0 ? void 0 : t.platform) || Qn.ServerSideUnknown;
3712
3482
  }
3713
- var Ih, Xm = [], B0 = !1, JP = 10, XP = 10, ZP = 1e3, P_ = function() {
3483
+ var Ih, Xm = [], B0 = !1, KP = 10, GP = 10, WP = 1e3, P_ = function() {
3714
3484
  if (!Ih) {
3715
- if (Ih = YP(), B0)
3485
+ if (Ih = VP(), B0)
3716
3486
  for (; Xm.length; )
3717
3487
  Xm.pop()();
3718
3488
  else
3719
3489
  Xm.forEach(function(t) {
3720
3490
  return t();
3721
3491
  });
3722
- WC(Qn.ServerSideUnknown, JP), WC(Qn.WebUnknown, XP);
3492
+ WC(Qn.ServerSideUnknown, KP), WC(Qn.WebUnknown, GP);
3723
3493
  }
3724
3494
  return Ih;
3725
- }, Xk = function(t) {
3495
+ }, Yk = function(t) {
3726
3496
  B0 || Xm.push(t);
3727
3497
  };
3728
- function $P() {
3498
+ function YP() {
3729
3499
  Ih = void 0;
3730
3500
  }
3731
3501
  function WC(t, e) {
3732
3502
  Ih === t && !B0 && setTimeout(function() {
3733
- $P(), B0 = !0, setTimeout(P_, ZP);
3503
+ YP(), B0 = !0, setTimeout(P_, WP);
3734
3504
  }, e);
3735
3505
  }
3736
- var eD = globalThis && globalThis.__read || function(t, e) {
3506
+ var JP = globalThis && globalThis.__read || function(t, e) {
3737
3507
  var n = typeof Symbol == "function" && t[Symbol.iterator];
3738
3508
  if (!n)
3739
3509
  return t;
@@ -3752,11 +3522,11 @@ var eD = globalThis && globalThis.__read || function(t, e) {
3752
3522
  }
3753
3523
  }
3754
3524
  return i;
3755
- }, Zk = "aws-amplify", tD = (
3525
+ }, Jk = "aws-amplify", XP = (
3756
3526
  /** @class */
3757
3527
  function() {
3758
3528
  function t() {
3759
- this.userAgent = "".concat(Zk, "/").concat(Yk);
3529
+ this.userAgent = "".concat(Jk, "/").concat(Gk);
3760
3530
  }
3761
3531
  return Object.defineProperty(t.prototype, "framework", {
3762
3532
  get: function() {
@@ -3771,17 +3541,17 @@ var eD = globalThis && globalThis.__read || function(t, e) {
3771
3541
  enumerable: !1,
3772
3542
  configurable: !0
3773
3543
  }), t.prototype.observeFrameworkChanges = function(e) {
3774
- Xk(e);
3544
+ Yk(e);
3775
3545
  }, t;
3776
3546
  }()
3777
- ), jb = new tD(), nD = function(t) {
3547
+ ), jb = new XP(), ZP = function(t) {
3778
3548
  var e = t === void 0 ? {} : t, n = e.category, s = e.action;
3779
3549
  e.framework;
3780
- var r = [[Zk, Yk]];
3550
+ var r = [[Jk, Gk]];
3781
3551
  return n && r.push([n, s]), r.push(["framework", P_()]), r;
3782
3552
  }, D_ = function(t) {
3783
- var e = nD(t), n = e.map(function(s) {
3784
- var r = eD(s, 2), i = r[0], o = r[1];
3553
+ var e = ZP(t), n = e.map(function(s) {
3554
+ var r = JP(s, 2), i = r[0], o = r[1];
3785
3555
  return "".concat(i, "/").concat(o);
3786
3556
  }).join(" ");
3787
3557
  return n;
@@ -3818,11 +3588,11 @@ var eD = globalThis && globalThis.__read || function(t, e) {
3818
3588
  for (var s = 0, r = e.length, i; s < r; s++)
3819
3589
  (i || !(s in e)) && (i || (i = Array.prototype.slice.call(e, 0, s)), i[s] = e[s]);
3820
3590
  return t.concat(i || Array.prototype.slice.call(e));
3821
- }, Ra = new _o("Hub"), sD = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default";
3822
- function rD(t) {
3591
+ }, Ra = new _o("Hub"), $P = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default";
3592
+ function eD(t) {
3823
3593
  return t.onHubCapsule !== void 0;
3824
3594
  }
3825
- var iD = (
3595
+ var tD = (
3826
3596
  /** @class */
3827
3597
  function() {
3828
3598
  function t(e) {
@@ -3866,7 +3636,7 @@ var iD = (
3866
3636
  this._remove(e, n);
3867
3637
  }, t.prototype.dispatch = function(e, n, s, r) {
3868
3638
  if (s === void 0 && (s = ""), this.protectedChannels.indexOf(e) > -1) {
3869
- var i = r === sD;
3639
+ var i = r === $P;
3870
3640
  i || Ra.warn("WARNING: ".concat(e, " is protected and dispatching on it can have unintended consequences"));
3871
3641
  }
3872
3642
  var o = {
@@ -3884,7 +3654,7 @@ var iD = (
3884
3654
  var r = this;
3885
3655
  s === void 0 && (s = "noname");
3886
3656
  var i;
3887
- if (rD(n))
3657
+ if (eD(n))
3888
3658
  Ra.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."), i = n.onHubCapsule.bind(n);
3889
3659
  else {
3890
3660
  if (typeof n != "function")
@@ -3935,7 +3705,7 @@ var iD = (
3935
3705
  }
3936
3706
  }, t;
3937
3707
  }()
3938
- ), La = new iD("__default__"), oD = function(t) {
3708
+ ), La = new tD("__default__"), nD = function(t) {
3939
3709
  if (t.isResolved)
3940
3710
  return t;
3941
3711
  var e = !0, n = !1, s = !1, r = t.then(function(i) {
@@ -3956,7 +3726,7 @@ var iD = (
3956
3726
  isBrowser: t,
3957
3727
  isNode: e
3958
3728
  };
3959
- }, aD = globalThis && globalThis.__extends || function() {
3729
+ }, sD = globalThis && globalThis.__extends || function() {
3960
3730
  var t = function(e, n) {
3961
3731
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, r) {
3962
3732
  s.__proto__ = r;
@@ -4064,7 +3834,7 @@ var iD = (
4064
3834
  throw l[1];
4065
3835
  return { value: l[0] ? l[1] : void 0, done: !0 };
4066
3836
  }
4067
- }, lD = globalThis && globalThis.__read || function(t, e) {
3837
+ }, rD = globalThis && globalThis.__read || function(t, e) {
4068
3838
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4069
3839
  if (!n)
4070
3840
  return t;
@@ -4083,7 +3853,7 @@ var iD = (
4083
3853
  }
4084
3854
  }
4085
3855
  return i;
4086
- }, dD = globalThis && globalThis.__spreadArray || function(t, e, n) {
3856
+ }, iD = globalThis && globalThis.__spreadArray || function(t, e, n) {
4087
3857
  if (n || arguments.length === 2)
4088
3858
  for (var s = 0, r = e.length, i; s < r; s++)
4089
3859
  (i || !(s in e)) && (i || (i = Array.prototype.slice.call(e, 0, s)), i[s] = e[s]);
@@ -4091,18 +3861,18 @@ var iD = (
4091
3861
  }, Of = new _o("Util"), Ec = (
4092
3862
  /** @class */
4093
3863
  function(t) {
4094
- aD(e, t);
3864
+ sD(e, t);
4095
3865
  function e(n) {
4096
3866
  var s = t.call(this, n) || this;
4097
3867
  return s.nonRetryable = !0, s;
4098
3868
  }
4099
3869
  return e;
4100
3870
  }(Error)
4101
- ), cD = function(t) {
3871
+ ), oD = function(t) {
4102
3872
  var e = "nonRetryable";
4103
3873
  return t && t[e];
4104
3874
  };
4105
- function AD(t, e, n, s) {
3875
+ function aD(t, e, n, s) {
4106
3876
  return JC(this, void 0, void 0, function() {
4107
3877
  var r = this;
4108
3878
  return Db(this, function(i) {
@@ -4124,11 +3894,11 @@ function AD(t, e, n, s) {
4124
3894
  case 0:
4125
3895
  d++, Of.debug("".concat(t.name, " attempt #").concat(d, " with this vars: ").concat(JSON.stringify(e))), E.label = 1;
4126
3896
  case 1:
4127
- return E.trys.push([1, 3, , 7]), w = {}, v = o, [4, t.apply(void 0, dD([], lD(e), !1))];
3897
+ return E.trys.push([1, 3, , 7]), w = {}, v = o, [4, t.apply(void 0, iD([], rD(e), !1))];
4128
3898
  case 2:
4129
3899
  return [2, (w.value = v.apply(void 0, [E.sent()]), w)];
4130
3900
  case 3:
4131
- return B = E.sent(), h = B, Of.debug("error on ".concat(t.name), B), cD(B) ? (Of.debug("".concat(t.name, " non retryable error"), B), [2, { value: a(B) }]) : (k = n(d, e, B), Of.debug("".concat(t.name, " retrying in ").concat(k, " ms")), k === !1 || l ? [2, { value: a(B) }] : [3, 4]);
3901
+ return B = E.sent(), h = B, Of.debug("error on ".concat(t.name), B), oD(B) ? (Of.debug("".concat(t.name, " non retryable error"), B), [2, { value: a(B) }]) : (k = n(d, e, B), Of.debug("".concat(t.name, " retrying in ").concat(k, " ms")), k === !1 || l ? [2, { value: a(B) }] : [3, 4]);
4132
3902
  case 4:
4133
3903
  return [4, new Promise(function(H) {
4134
3904
  u = H, c = setTimeout(u, k);
@@ -4161,18 +3931,18 @@ function AD(t, e, n, s) {
4161
3931
  });
4162
3932
  });
4163
3933
  }
4164
- var $k = 5 * 60 * 1e3;
4165
- function e4(t) {
4166
- t === void 0 && (t = $k);
3934
+ var Xk = 5 * 60 * 1e3;
3935
+ function Zk(t) {
3936
+ t === void 0 && (t = Xk);
4167
3937
  var e = 100, n = 100;
4168
3938
  return function(s) {
4169
3939
  var r = Math.pow(2, s) * e + n * Math.random();
4170
3940
  return r > t ? !1 : r;
4171
3941
  };
4172
3942
  }
4173
- var uD = function(t, e, n, s) {
4174
- return n === void 0 && (n = $k), AD(t, e, e4(n), s);
4175
- }, pD = globalThis && globalThis.__read || function(t, e) {
3943
+ var lD = function(t, e, n, s) {
3944
+ return n === void 0 && (n = Xk), aD(t, e, Zk(n), s);
3945
+ }, dD = globalThis && globalThis.__read || function(t, e) {
4176
3946
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4177
3947
  if (!n)
4178
3948
  return t;
@@ -4191,7 +3961,7 @@ var uD = function(t, e, n, s) {
4191
3961
  }
4192
3962
  }
4193
3963
  return i;
4194
- }, hD = 1e3 * 60 * 5, gc = {
3964
+ }, cD = 1e3 * 60 * 5, gc = {
4195
3965
  /**
4196
3966
  * Milliseconds to offset the date to compensate for clock skew between device & services
4197
3967
  */
@@ -4209,11 +3979,11 @@ var uD = function(t, e, n, s) {
4209
3979
  return t === void 0 && (t = gc.getDateWithClockOffset()), t.toISOString().replace(/[:\-]|\.\d{3}/g, "");
4210
3980
  },
4211
3981
  getDateFromHeaderString: function(t) {
4212
- var e = pD(t.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/), 7), n = e[1], s = e[2], r = e[3], i = e[4], o = e[5], a = e[6];
3982
+ var e = dD(t.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/), 7), n = e[1], s = e[2], r = e[3], i = e[4], o = e[5], a = e[6];
4213
3983
  return new Date(Date.UTC(Number(n), Number(s) - 1, Number(r), Number(i), Number(o), Number(a)));
4214
3984
  },
4215
3985
  isClockSkewed: function(t) {
4216
- return Math.abs(t.getTime() - gc.getDateWithClockOffset().getTime()) >= hD;
3986
+ return Math.abs(t.getTime() - gc.getDateWithClockOffset().getTime()) >= cD;
4217
3987
  },
4218
3988
  isClockSkewError: function(t) {
4219
3989
  if (!t.response || !t.response.headers)
@@ -4228,30 +3998,30 @@ var uD = function(t, e, n, s) {
4228
3998
  gc.clockOffset = t;
4229
3999
  }
4230
4000
  };
4231
- function gD(t) {
4001
+ function AD(t) {
4232
4002
  return t.split("").map(function(e) {
4233
4003
  return e.charCodeAt(0).toString(16).padStart(2, "0");
4234
4004
  }).join("");
4235
4005
  }
4236
- function fD(t) {
4006
+ function uD(t) {
4237
4007
  return t.match(/.{2}/g).map(function(e) {
4238
4008
  return String.fromCharCode(parseInt(e, 16));
4239
4009
  }).join("");
4240
4010
  }
4241
- var t4 = function(t) {
4011
+ var $k = function(t) {
4242
4012
  return Object.keys(t).map(function(e) {
4243
4013
  return e.toLowerCase();
4244
4014
  }).sort().join(";");
4245
- }, mD = "X-Amz-Algorithm", n4 = "X-Amz-Date", yD = "X-Amz-Credential", bD = "X-Amz-Expires", vD = "X-Amz-Signature", wD = "X-Amz-SignedHeaders", F_ = "X-Amz-Security-Token", _D = "authorization", F2 = "host", xD = n4.toLowerCase(), CD = F_.toLowerCase(), s4 = "aws4_request", O_ = "AWS4-HMAC-SHA256", BD = "AWS4", ED = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", kD = "UNSIGNED-PAYLOAD", SD = function(t, e, n) {
4246
- return "".concat(t, "/").concat(e, "/").concat(n, "/").concat(s4);
4247
- }, ID = function(t) {
4015
+ }, pD = "X-Amz-Algorithm", e4 = "X-Amz-Date", hD = "X-Amz-Credential", gD = "X-Amz-Expires", fD = "X-Amz-Signature", mD = "X-Amz-SignedHeaders", F_ = "X-Amz-Security-Token", yD = "authorization", D2 = "host", bD = e4.toLowerCase(), vD = F_.toLowerCase(), t4 = "aws4_request", O_ = "AWS4-HMAC-SHA256", wD = "AWS4", _D = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", xD = "UNSIGNED-PAYLOAD", CD = function(t, e, n) {
4016
+ return "".concat(t, "/").concat(e, "/").concat(n, "/").concat(t4);
4017
+ }, BD = function(t) {
4248
4018
  var e = t.toISOString().replace(/[:\-]|\.\d{3}/g, "");
4249
4019
  return {
4250
4020
  longDate: e,
4251
4021
  shortDate: e.slice(0, 8)
4252
4022
  };
4253
- }, r4 = function(t) {
4254
- var e = t.credentials, n = t.signingDate, s = n === void 0 ? /* @__PURE__ */ new Date() : n, r = t.signingRegion, i = t.signingService, o = t.uriEscapePath, a = o === void 0 ? !0 : o, d = e.accessKeyId, l = e.secretAccessKey, c = e.sessionToken, u = ID(s), h = u.longDate, p = u.shortDate, f = SD(p, r, i);
4023
+ }, n4 = function(t) {
4024
+ var e = t.credentials, n = t.signingDate, s = n === void 0 ? /* @__PURE__ */ new Date() : n, r = t.signingRegion, i = t.signingService, o = t.uriEscapePath, a = o === void 0 ? !0 : o, d = e.accessKeyId, l = e.secretAccessKey, c = e.sessionToken, u = BD(s), h = u.longDate, p = u.shortDate, f = CD(p, r, i);
4255
4025
  return {
4256
4026
  accessKeyId: d,
4257
4027
  credentialScope: f,
@@ -4278,32 +4048,32 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4278
4048
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4279
4049
  PERFORMANCE OF THIS SOFTWARE.
4280
4050
  ***************************************************************************** */
4281
- var O2 = function(t, e) {
4282
- return O2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
4051
+ var F2 = function(t, e) {
4052
+ return F2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
4283
4053
  n.__proto__ = s;
4284
4054
  } || function(n, s) {
4285
4055
  for (var r in s)
4286
4056
  s.hasOwnProperty(r) && (n[r] = s[r]);
4287
- }, O2(t, e);
4057
+ }, F2(t, e);
4288
4058
  };
4289
- function TD(t, e) {
4290
- O2(t, e);
4059
+ function ED(t, e) {
4060
+ F2(t, e);
4291
4061
  function n() {
4292
4062
  this.constructor = t;
4293
4063
  }
4294
4064
  t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
4295
4065
  }
4296
- var N2 = function() {
4297
- return N2 = Object.assign || function(e) {
4066
+ var O2 = function() {
4067
+ return O2 = Object.assign || function(e) {
4298
4068
  for (var n, s = 1, r = arguments.length; s < r; s++) {
4299
4069
  n = arguments[s];
4300
4070
  for (var i in n)
4301
4071
  Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
4302
4072
  }
4303
4073
  return e;
4304
- }, N2.apply(this, arguments);
4074
+ }, O2.apply(this, arguments);
4305
4075
  };
4306
- function UD(t, e) {
4076
+ function kD(t, e) {
4307
4077
  var n = {};
4308
4078
  for (var s in t)
4309
4079
  Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
@@ -4312,7 +4082,7 @@ function UD(t, e) {
4312
4082
  e.indexOf(s[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[r]) && (n[s[r]] = t[s[r]]);
4313
4083
  return n;
4314
4084
  }
4315
- function RD(t, e, n, s) {
4085
+ function SD(t, e, n, s) {
4316
4086
  var r = arguments.length, i = r < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, n) : s, o;
4317
4087
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4318
4088
  i = Reflect.decorate(t, e, n, s);
@@ -4321,16 +4091,16 @@ function RD(t, e, n, s) {
4321
4091
  (o = t[a]) && (i = (r < 3 ? o(i) : r > 3 ? o(e, n, i) : o(e, n)) || i);
4322
4092
  return r > 3 && i && Object.defineProperty(e, n, i), i;
4323
4093
  }
4324
- function jD(t, e) {
4094
+ function ID(t, e) {
4325
4095
  return function(n, s) {
4326
4096
  e(n, s, t);
4327
4097
  };
4328
4098
  }
4329
- function PD(t, e) {
4099
+ function TD(t, e) {
4330
4100
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4331
4101
  return Reflect.metadata(t, e);
4332
4102
  }
4333
- function DD(t, e, n, s) {
4103
+ function UD(t, e, n, s) {
4334
4104
  function r(i) {
4335
4105
  return i instanceof n ? i : new n(function(o) {
4336
4106
  o(i);
@@ -4357,7 +4127,7 @@ function DD(t, e, n, s) {
4357
4127
  l((s = s.apply(t, e || [])).next());
4358
4128
  });
4359
4129
  }
4360
- function FD(t, e) {
4130
+ function RD(t, e) {
4361
4131
  var n = { label: 0, sent: function() {
4362
4132
  if (i[0] & 1)
4363
4133
  throw i[1];
@@ -4422,14 +4192,14 @@ function FD(t, e) {
4422
4192
  return { value: l[0] ? l[1] : void 0, done: !0 };
4423
4193
  }
4424
4194
  }
4425
- function OD(t, e, n, s) {
4195
+ function jD(t, e, n, s) {
4426
4196
  s === void 0 && (s = n), t[s] = e[n];
4427
4197
  }
4428
- function ND(t, e) {
4198
+ function PD(t, e) {
4429
4199
  for (var n in t)
4430
4200
  n !== "default" && !e.hasOwnProperty(n) && (e[n] = t[n]);
4431
4201
  }
4432
- function L2(t) {
4202
+ function N2(t) {
4433
4203
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], s = 0;
4434
4204
  if (n)
4435
4205
  return n.call(t);
@@ -4441,7 +4211,7 @@ function L2(t) {
4441
4211
  };
4442
4212
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
4443
4213
  }
4444
- function i4(t, e) {
4214
+ function s4(t, e) {
4445
4215
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4446
4216
  if (!n)
4447
4217
  return t;
@@ -4461,12 +4231,12 @@ function i4(t, e) {
4461
4231
  }
4462
4232
  return i;
4463
4233
  }
4464
- function LD() {
4234
+ function DD() {
4465
4235
  for (var t = [], e = 0; e < arguments.length; e++)
4466
- t = t.concat(i4(arguments[e]));
4236
+ t = t.concat(s4(arguments[e]));
4467
4237
  return t;
4468
4238
  }
4469
- function QD() {
4239
+ function FD() {
4470
4240
  for (var t = 0, e = 0, n = arguments.length; e < n; e++)
4471
4241
  t += arguments[e].length;
4472
4242
  for (var s = Array(t), r = 0, e = 0; e < n; e++)
@@ -4477,7 +4247,7 @@ function QD() {
4477
4247
  function $h(t) {
4478
4248
  return this instanceof $h ? (this.v = t, this) : new $h(t);
4479
4249
  }
4480
- function MD(t, e, n) {
4250
+ function OD(t, e, n) {
4481
4251
  if (!Symbol.asyncIterator)
4482
4252
  throw new TypeError("Symbol.asyncIterator is not defined.");
4483
4253
  var s = n.apply(t, e || []), r, i = [];
@@ -4511,7 +4281,7 @@ function MD(t, e, n) {
4511
4281
  h(p), i.shift(), i.length && a(i[0][0], i[0][1]);
4512
4282
  }
4513
4283
  }
4514
- function zD(t) {
4284
+ function ND(t) {
4515
4285
  var e, n;
4516
4286
  return e = {}, s("next"), s("throw", function(r) {
4517
4287
  throw r;
@@ -4524,11 +4294,11 @@ function zD(t) {
4524
4294
  } : i;
4525
4295
  }
4526
4296
  }
4527
- function HD(t) {
4297
+ function LD(t) {
4528
4298
  if (!Symbol.asyncIterator)
4529
4299
  throw new TypeError("Symbol.asyncIterator is not defined.");
4530
4300
  var e = t[Symbol.asyncIterator], n;
4531
- return e ? e.call(t) : (t = typeof L2 == "function" ? L2(t) : t[Symbol.iterator](), n = {}, s("next"), s("throw"), s("return"), n[Symbol.asyncIterator] = function() {
4301
+ return e ? e.call(t) : (t = typeof N2 == "function" ? N2(t) : t[Symbol.iterator](), n = {}, s("next"), s("throw"), s("return"), n[Symbol.asyncIterator] = function() {
4532
4302
  return this;
4533
4303
  }, n);
4534
4304
  function s(i) {
@@ -4544,10 +4314,10 @@ function HD(t) {
4544
4314
  }, o);
4545
4315
  }
4546
4316
  }
4547
- function qD(t, e) {
4317
+ function QD(t, e) {
4548
4318
  return Object.defineProperty ? Object.defineProperty(t, "raw", { value: e }) : t.raw = e, t;
4549
4319
  }
4550
- function VD(t) {
4320
+ function MD(t) {
4551
4321
  if (t && t.__esModule)
4552
4322
  return t;
4553
4323
  var e = {};
@@ -4556,47 +4326,47 @@ function VD(t) {
4556
4326
  Object.hasOwnProperty.call(t, n) && (e[n] = t[n]);
4557
4327
  return e.default = t, e;
4558
4328
  }
4559
- function KD(t) {
4329
+ function zD(t) {
4560
4330
  return t && t.__esModule ? t : { default: t };
4561
4331
  }
4562
- function GD(t, e) {
4332
+ function HD(t, e) {
4563
4333
  if (!e.has(t))
4564
4334
  throw new TypeError("attempted to get private field on non-instance");
4565
4335
  return e.get(t);
4566
4336
  }
4567
- function WD(t, e, n) {
4337
+ function qD(t, e, n) {
4568
4338
  if (!e.has(t))
4569
4339
  throw new TypeError("attempted to set private field on non-instance");
4570
4340
  return e.set(t, n), n;
4571
4341
  }
4572
- const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4342
+ const VD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4573
4343
  __proto__: null,
4574
4344
  get __assign() {
4575
- return N2;
4345
+ return O2;
4576
4346
  },
4577
- __asyncDelegator: zD,
4578
- __asyncGenerator: MD,
4579
- __asyncValues: HD,
4347
+ __asyncDelegator: ND,
4348
+ __asyncGenerator: OD,
4349
+ __asyncValues: LD,
4580
4350
  __await: $h,
4581
- __awaiter: DD,
4582
- __classPrivateFieldGet: GD,
4583
- __classPrivateFieldSet: WD,
4584
- __createBinding: OD,
4585
- __decorate: RD,
4586
- __exportStar: ND,
4587
- __extends: TD,
4588
- __generator: FD,
4589
- __importDefault: KD,
4590
- __importStar: VD,
4591
- __makeTemplateObject: qD,
4592
- __metadata: PD,
4593
- __param: jD,
4594
- __read: i4,
4595
- __rest: UD,
4596
- __spread: LD,
4597
- __spreadArrays: QD,
4598
- __values: L2
4599
- }, Symbol.toStringTag, { value: "Module" })), o4 = /* @__PURE__ */ U_(YD);
4351
+ __awaiter: UD,
4352
+ __classPrivateFieldGet: HD,
4353
+ __classPrivateFieldSet: qD,
4354
+ __createBinding: jD,
4355
+ __decorate: SD,
4356
+ __exportStar: PD,
4357
+ __extends: ED,
4358
+ __generator: RD,
4359
+ __importDefault: zD,
4360
+ __importStar: MD,
4361
+ __makeTemplateObject: QD,
4362
+ __metadata: TD,
4363
+ __param: ID,
4364
+ __read: s4,
4365
+ __rest: kD,
4366
+ __spread: DD,
4367
+ __spreadArrays: FD,
4368
+ __values: N2
4369
+ }, Symbol.toStringTag, { value: "Module" })), r4 = /* @__PURE__ */ U_(VD);
4600
4370
  var j1 = {}, $r = {};
4601
4371
  Object.defineProperty($r, "__esModule", { value: !0 });
4602
4372
  $r.MAX_HASHABLE_LENGTH = $r.INIT = $r.KEY = $r.DIGEST_LENGTH = $r.BLOCK_SIZE = void 0;
@@ -4682,7 +4452,7 @@ $r.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1;
4682
4452
  var P1 = {};
4683
4453
  Object.defineProperty(P1, "__esModule", { value: !0 });
4684
4454
  P1.RawSha256 = void 0;
4685
- var wi = $r, JD = (
4455
+ var wi = $r, KD = (
4686
4456
  /** @class */
4687
4457
  function() {
4688
4458
  function t() {
@@ -4728,8 +4498,8 @@ var wi = $r, JD = (
4728
4498
  }, t;
4729
4499
  }()
4730
4500
  );
4731
- P1.RawSha256 = JD;
4732
- var a4 = {}, D1 = {}, XD = function(t) {
4501
+ P1.RawSha256 = KD;
4502
+ var i4 = {}, D1 = {}, GD = function(t) {
4733
4503
  for (var e = [], n = 0, s = t.length; n < s; n++) {
4734
4504
  var r = t.charCodeAt(n);
4735
4505
  if (r < 128)
@@ -4743,7 +4513,7 @@ var a4 = {}, D1 = {}, XD = function(t) {
4743
4513
  e.push(r >> 12 | 224, r >> 6 & 63 | 128, r & 63 | 128);
4744
4514
  }
4745
4515
  return Uint8Array.from(e);
4746
- }, ZD = function(t) {
4516
+ }, WD = function(t) {
4747
4517
  for (var e = "", n = 0, s = t.length; n < s; n++) {
4748
4518
  var r = t[n];
4749
4519
  if (r < 128)
@@ -4761,42 +4531,42 @@ var a4 = {}, D1 = {}, XD = function(t) {
4761
4531
  }
4762
4532
  return e;
4763
4533
  };
4764
- function $D(t) {
4534
+ function YD(t) {
4765
4535
  return new TextEncoder().encode(t);
4766
4536
  }
4767
- function eF(t) {
4537
+ function JD(t) {
4768
4538
  return new TextDecoder("utf-8").decode(t);
4769
4539
  }
4770
- var tF = function(t) {
4771
- return typeof TextEncoder == "function" ? $D(t) : XD(t);
4772
- }, nF = function(t) {
4773
- return typeof TextDecoder == "function" ? eF(t) : ZD(t);
4540
+ var XD = function(t) {
4541
+ return typeof TextEncoder == "function" ? YD(t) : GD(t);
4542
+ }, ZD = function(t) {
4543
+ return typeof TextDecoder == "function" ? JD(t) : WD(t);
4774
4544
  };
4775
- const sF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4545
+ const $D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4776
4546
  __proto__: null,
4777
- fromUtf8: tF,
4778
- toUtf8: nF
4779
- }, Symbol.toStringTag, { value: "Module" })), rF = /* @__PURE__ */ U_(sF);
4547
+ fromUtf8: XD,
4548
+ toUtf8: ZD
4549
+ }, Symbol.toStringTag, { value: "Module" })), eF = /* @__PURE__ */ U_($D);
4780
4550
  Object.defineProperty(D1, "__esModule", { value: !0 });
4781
4551
  D1.convertToBuffer = void 0;
4782
- var iF = rF, oF = typeof Buffer != "undefined" && Buffer.from ? function(t) {
4552
+ var tF = eF, nF = typeof Buffer != "undefined" && Buffer.from ? function(t) {
4783
4553
  return Buffer.from(t, "utf8");
4784
- } : iF.fromUtf8;
4785
- function aF(t) {
4786
- return t instanceof Uint8Array ? t : typeof t == "string" ? oF(t) : ArrayBuffer.isView(t) ? new Uint8Array(t.buffer, t.byteOffset, t.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(t);
4554
+ } : tF.fromUtf8;
4555
+ function sF(t) {
4556
+ return t instanceof Uint8Array ? t : typeof t == "string" ? nF(t) : ArrayBuffer.isView(t) ? new Uint8Array(t.buffer, t.byteOffset, t.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(t);
4787
4557
  }
4788
- D1.convertToBuffer = aF;
4558
+ D1.convertToBuffer = sF;
4789
4559
  var F1 = {};
4790
4560
  Object.defineProperty(F1, "__esModule", { value: !0 });
4791
4561
  F1.isEmptyData = void 0;
4792
- function lF(t) {
4562
+ function rF(t) {
4793
4563
  return typeof t == "string" ? t.length === 0 : t.byteLength === 0;
4794
4564
  }
4795
- F1.isEmptyData = lF;
4565
+ F1.isEmptyData = rF;
4796
4566
  var O1 = {};
4797
4567
  Object.defineProperty(O1, "__esModule", { value: !0 });
4798
4568
  O1.numToUint8 = void 0;
4799
- function dF(t) {
4569
+ function iF(t) {
4800
4570
  return new Uint8Array([
4801
4571
  (t & 4278190080) >> 24,
4802
4572
  (t & 16711680) >> 16,
@@ -4804,11 +4574,11 @@ function dF(t) {
4804
4574
  t & 255
4805
4575
  ]);
4806
4576
  }
4807
- O1.numToUint8 = dF;
4577
+ O1.numToUint8 = iF;
4808
4578
  var N1 = {};
4809
4579
  Object.defineProperty(N1, "__esModule", { value: !0 });
4810
4580
  N1.uint32ArrayFrom = void 0;
4811
- function cF(t) {
4581
+ function oF(t) {
4812
4582
  if (!Array.from) {
4813
4583
  for (var e = new Uint32Array(t.length), n = 0; n < t.length; )
4814
4584
  e[n] = t[n];
@@ -4816,7 +4586,7 @@ function cF(t) {
4816
4586
  }
4817
4587
  return Uint32Array.from(t);
4818
4588
  }
4819
- N1.uint32ArrayFrom = cF;
4589
+ N1.uint32ArrayFrom = oF;
4820
4590
  (function(t) {
4821
4591
  Object.defineProperty(t, "__esModule", { value: !0 }), t.uint32ArrayFrom = t.numToUint8 = t.isEmptyData = t.convertToBuffer = void 0;
4822
4592
  var e = D1;
@@ -4835,16 +4605,16 @@ N1.uint32ArrayFrom = cF;
4835
4605
  Object.defineProperty(t, "uint32ArrayFrom", { enumerable: !0, get: function() {
4836
4606
  return r.uint32ArrayFrom;
4837
4607
  } });
4838
- })(a4);
4608
+ })(i4);
4839
4609
  Object.defineProperty(j1, "__esModule", { value: !0 });
4840
4610
  j1.Sha256 = void 0;
4841
- var XC = o4, E0 = $r, Q2 = P1, M2 = a4, AF = (
4611
+ var XC = r4, E0 = $r, L2 = P1, Q2 = i4, aF = (
4842
4612
  /** @class */
4843
4613
  function() {
4844
4614
  function t(e) {
4845
- if (this.hash = new Q2.RawSha256(), e) {
4846
- this.outer = new Q2.RawSha256();
4847
- var n = uF(e), s = new Uint8Array(E0.BLOCK_SIZE);
4615
+ if (this.hash = new L2.RawSha256(), e) {
4616
+ this.outer = new L2.RawSha256();
4617
+ var n = lF(e), s = new Uint8Array(E0.BLOCK_SIZE);
4848
4618
  s.set(n);
4849
4619
  for (var r = 0; r < E0.BLOCK_SIZE; r++)
4850
4620
  n[r] ^= 54, s[r] ^= 92;
@@ -4854,9 +4624,9 @@ var XC = o4, E0 = $r, Q2 = P1, M2 = a4, AF = (
4854
4624
  }
4855
4625
  }
4856
4626
  return t.prototype.update = function(e) {
4857
- if (!((0, M2.isEmptyData)(e) || this.error))
4627
+ if (!((0, Q2.isEmptyData)(e) || this.error))
4858
4628
  try {
4859
- this.hash.update((0, M2.convertToBuffer)(e));
4629
+ this.hash.update((0, Q2.convertToBuffer)(e));
4860
4630
  } catch (n) {
4861
4631
  this.error = n;
4862
4632
  }
@@ -4873,11 +4643,11 @@ var XC = o4, E0 = $r, Q2 = P1, M2 = a4, AF = (
4873
4643
  }, t;
4874
4644
  }()
4875
4645
  );
4876
- j1.Sha256 = AF;
4877
- function uF(t) {
4878
- var e = (0, M2.convertToBuffer)(t);
4646
+ j1.Sha256 = aF;
4647
+ function lF(t) {
4648
+ var e = (0, Q2.convertToBuffer)(t);
4879
4649
  if (e.byteLength > E0.BLOCK_SIZE) {
4880
- var n = new Q2.RawSha256();
4650
+ var n = new L2.RawSha256();
4881
4651
  n.update(e), e = n.digest();
4882
4652
  }
4883
4653
  var s = new Uint8Array(E0.BLOCK_SIZE);
@@ -4885,17 +4655,17 @@ function uF(t) {
4885
4655
  }
4886
4656
  (function(t) {
4887
4657
  Object.defineProperty(t, "__esModule", { value: !0 });
4888
- var e = o4;
4658
+ var e = r4;
4889
4659
  (0, e.__exportStar)(j1, t);
4890
4660
  })(id);
4891
- var l4 = {};
4661
+ var o4 = {};
4892
4662
  for (var Nf = 0; Nf < 256; Nf++) {
4893
4663
  var Lf = Nf.toString(16).toLowerCase();
4894
- Lf.length === 1 && (Lf = "0" + Lf), l4[Nf] = Lf;
4664
+ Lf.length === 1 && (Lf = "0" + Lf), o4[Nf] = Lf;
4895
4665
  }
4896
- function pF(t) {
4666
+ function dF(t) {
4897
4667
  for (var e = "", n = 0; n < t.byteLength; n++)
4898
- e += l4[t[n]];
4668
+ e += o4[t[n]];
4899
4669
  return e;
4900
4670
  }
4901
4671
  var yh = function(t, e) {
@@ -4903,10 +4673,10 @@ var yh = function(t, e) {
4903
4673
  n.update(e);
4904
4674
  var s = n.digestSync();
4905
4675
  return s;
4906
- }, z2 = function(t, e) {
4676
+ }, M2 = function(t, e) {
4907
4677
  var n = yh(t, e);
4908
- return pF(n);
4909
- }, hF = globalThis && globalThis.__read || function(t, e) {
4678
+ return dF(n);
4679
+ }, cF = globalThis && globalThis.__read || function(t, e) {
4910
4680
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4911
4681
  if (!n)
4912
4682
  return t;
@@ -4925,9 +4695,9 @@ var yh = function(t, e) {
4925
4695
  }
4926
4696
  }
4927
4697
  return i;
4928
- }, gF = function(t) {
4698
+ }, AF = function(t) {
4929
4699
  return Object.entries(t).map(function(e) {
4930
- var n, s = hF(e, 2), r = s[0], i = s[1];
4700
+ var n, s = cF(e, 2), r = s[0], i = s[1];
4931
4701
  return {
4932
4702
  key: r.toLowerCase(),
4933
4703
  value: (n = i == null ? void 0 : i.trim().replace(/\s+/g, " ")) !== null && n !== void 0 ? n : ""
@@ -4957,7 +4727,7 @@ var yh = function(t, e) {
4957
4727
  }
4958
4728
  }
4959
4729
  return i;
4960
- }, fF = function(t) {
4730
+ }, uF = function(t) {
4961
4731
  return Array.from(t).sort(function(e, n) {
4962
4732
  var s = Fb(e, 2), r = s[0], i = s[1], o = Fb(n, 2), a = o[0], d = o[1];
4963
4733
  return r === a ? i < d ? -1 : 1 : r < a ? -1 : 1;
@@ -4966,42 +4736,42 @@ var yh = function(t, e) {
4966
4736
  return "".concat(ZC(s), "=").concat(ZC(r));
4967
4737
  }).join("&");
4968
4738
  }, ZC = function(t) {
4969
- return encodeURIComponent(t).replace(/[!'()*]/g, mF);
4970
- }, mF = function(t) {
4739
+ return encodeURIComponent(t).replace(/[!'()*]/g, pF);
4740
+ }, pF = function(t) {
4971
4741
  return "%".concat(t.charCodeAt(0).toString(16).toUpperCase());
4972
- }, yF = function(t, e) {
4742
+ }, hF = function(t, e) {
4973
4743
  return e === void 0 && (e = !0), t ? e ? encodeURIComponent(t).replace(/%2F/g, "/") : t : "/";
4974
- }, bF = function(t) {
4744
+ }, gF = function(t) {
4975
4745
  if (t == null)
4976
- return ED;
4977
- if (vF(t)) {
4978
- var e = z2(null, t);
4746
+ return _D;
4747
+ if (fF(t)) {
4748
+ var e = M2(null, t);
4979
4749
  return e;
4980
4750
  }
4981
- return kD;
4982
- }, vF = function(t) {
4983
- return typeof t == "string" || ArrayBuffer.isView(t) || wF(t);
4984
- }, wF = function(t) {
4751
+ return xD;
4752
+ }, fF = function(t) {
4753
+ return typeof t == "string" || ArrayBuffer.isView(t) || mF(t);
4754
+ }, mF = function(t) {
4985
4755
  return typeof ArrayBuffer == "function" && t instanceof ArrayBuffer || Object.prototype.toString.call(t) === "[object ArrayBuffer]";
4986
- }, _F = function(t, e) {
4756
+ }, yF = function(t, e) {
4987
4757
  var n = t.body, s = t.headers, r = t.method, i = t.url;
4988
4758
  return e === void 0 && (e = !0), [
4989
4759
  r,
4990
- yF(i.pathname, e),
4991
- fF(i.searchParams),
4992
- gF(s),
4993
- t4(s),
4994
- bF(n)
4760
+ hF(i.pathname, e),
4761
+ uF(i.searchParams),
4762
+ AF(s),
4763
+ $k(s),
4764
+ gF(n)
4995
4765
  ].join(`
4996
4766
  `);
4997
- }, xF = function(t, e, n, s) {
4998
- var r = "".concat(BD).concat(t), i = yh(r, e), o = yh(i, n), a = yh(o, s), d = yh(a, s4);
4767
+ }, bF = function(t, e, n, s) {
4768
+ var r = "".concat(wD).concat(t), i = yh(r, e), o = yh(i, n), a = yh(o, s), d = yh(a, t4);
4999
4769
  return d;
5000
- }, CF = function(t, e, n) {
4770
+ }, vF = function(t, e, n) {
5001
4771
  return [O_, t, e, n].join(`
5002
4772
  `);
5003
- }, d4 = function(t, e) {
5004
- var n = e.credentialScope, s = e.longDate, r = e.secretAccessKey, i = e.shortDate, o = e.signingRegion, a = e.signingService, d = e.uriEscapePath, l = _F(t, d), c = z2(null, l), u = CF(s, n, c), h = z2(xF(r, i, o, a), u);
4773
+ }, a4 = function(t, e) {
4774
+ var n = e.credentialScope, s = e.longDate, r = e.secretAccessKey, i = e.shortDate, o = e.signingRegion, a = e.signingService, d = e.uriEscapePath, l = yF(t, d), c = M2(null, l), u = vF(s, n, c), h = M2(bF(r, i, o, a), u);
5005
4775
  return h;
5006
4776
  }, Uh = globalThis && globalThis.__assign || function() {
5007
4777
  return Uh = Object.assign || function(t) {
@@ -5012,11 +4782,11 @@ var yh = function(t, e) {
5012
4782
  }
5013
4783
  return t;
5014
4784
  }, Uh.apply(this, arguments);
5015
- }, BF = function(t, e) {
5016
- var n = r4(e), s = n.accessKeyId, r = n.credentialScope, i = n.longDate, o = n.sessionToken, a = Uh({}, t.headers);
5017
- a[F2] = t.url.host, a[xD] = i, o && (a[CD] = o);
5018
- var d = Uh(Uh({}, t), { headers: a }), l = d4(d, n), c = "Credential=".concat(s, "/").concat(r), u = "SignedHeaders=".concat(t4(a)), h = "Signature=".concat(l);
5019
- return a[_D] = "".concat(O_, " ").concat(c, ", ").concat(u, ", ").concat(h), d;
4785
+ }, wF = function(t, e) {
4786
+ var n = n4(e), s = n.accessKeyId, r = n.credentialScope, i = n.longDate, o = n.sessionToken, a = Uh({}, t.headers);
4787
+ a[D2] = t.url.host, a[bD] = i, o && (a[vD] = o);
4788
+ var d = Uh(Uh({}, t), { headers: a }), l = a4(d, n), c = "Credential=".concat(s, "/").concat(r), u = "SignedHeaders=".concat($k(a)), h = "Signature=".concat(l);
4789
+ return a[yD] = "".concat(O_, " ").concat(c, ", ").concat(u, ", ").concat(h), d;
5020
4790
  }, k0 = globalThis && globalThis.__assign || function() {
5021
4791
  return k0 = Object.assign || function(t) {
5022
4792
  for (var e, n = 1, s = arguments.length; n < s; n++) {
@@ -5026,7 +4796,7 @@ var yh = function(t, e) {
5026
4796
  }
5027
4797
  return t;
5028
4798
  }, k0.apply(this, arguments);
5029
- }, EF = globalThis && globalThis.__rest || function(t, e) {
4799
+ }, _F = globalThis && globalThis.__rest || function(t, e) {
5030
4800
  var n = {};
5031
4801
  for (var s in t)
5032
4802
  Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
@@ -5034,7 +4804,7 @@ var yh = function(t, e) {
5034
4804
  for (var r = 0, s = Object.getOwnPropertySymbols(t); r < s.length; r++)
5035
4805
  e.indexOf(s[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[r]) && (n[s[r]] = t[s[r]]);
5036
4806
  return n;
5037
- }, kF = globalThis && globalThis.__read || function(t, e) {
4807
+ }, xF = globalThis && globalThis.__read || function(t, e) {
5038
4808
  var n = typeof Symbol == "function" && t[Symbol.iterator];
5039
4809
  if (!n)
5040
4810
  return t;
@@ -5053,29 +4823,29 @@ var yh = function(t, e) {
5053
4823
  }
5054
4824
  }
5055
4825
  return i;
5056
- }, SF = function(t, e) {
5057
- var n, s, r, i, o = t.body, a = t.method, d = a === void 0 ? "GET" : a, l = t.url, c = e.expiration, u = EF(e, ["expiration"]), h = r4(u), p = h.accessKeyId, f = h.credentialScope, y = h.longDate, w = h.sessionToken, v = new URL(l);
5058
- Object.entries(k0(k0((n = {}, n[mD] = O_, n[yD] = "".concat(p, "/").concat(f), n[n4] = y, n[wD] = F2, n), c && (s = {}, s[bD] = c.toString(), s)), w && (r = {}, r[F_] = w, r))).forEach(function(E) {
5059
- var H = kF(E, 2), F = H[0], X = H[1];
4826
+ }, CF = function(t, e) {
4827
+ var n, s, r, i, o = t.body, a = t.method, d = a === void 0 ? "GET" : a, l = t.url, c = e.expiration, u = _F(e, ["expiration"]), h = n4(u), p = h.accessKeyId, f = h.credentialScope, y = h.longDate, w = h.sessionToken, v = new URL(l);
4828
+ Object.entries(k0(k0((n = {}, n[pD] = O_, n[hD] = "".concat(p, "/").concat(f), n[e4] = y, n[mD] = D2, n), c && (s = {}, s[gD] = c.toString(), s)), w && (r = {}, r[F_] = w, r))).forEach(function(E) {
4829
+ var H = xF(E, 2), F = H[0], X = H[1];
5060
4830
  v.searchParams.append(F, X);
5061
4831
  });
5062
4832
  var B = {
5063
4833
  body: o,
5064
- headers: (i = {}, i[F2] = l.host, i),
4834
+ headers: (i = {}, i[D2] = l.host, i),
5065
4835
  method: d,
5066
4836
  url: v
5067
- }, k = d4(B, h);
5068
- return v.searchParams.append(vD, k), v;
5069
- }, ku = globalThis && globalThis.__assign || function() {
5070
- return ku = Object.assign || function(t) {
4837
+ }, k = a4(B, h);
4838
+ return v.searchParams.append(fD, k), v;
4839
+ }, Eu = globalThis && globalThis.__assign || function() {
4840
+ return Eu = Object.assign || function(t) {
5071
4841
  for (var e, n = 1, s = arguments.length; n < s; n++) {
5072
4842
  e = arguments[n];
5073
4843
  for (var r in e)
5074
4844
  Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
5075
4845
  }
5076
4846
  return t;
5077
- }, ku.apply(this, arguments);
5078
- }, IF = "iotdevicegateway", TF = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/, c4 = (
4847
+ }, Eu.apply(this, arguments);
4848
+ }, BF = "iotdevicegateway", EF = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/, l4 = (
5079
4849
  /** @class */
5080
4850
  function() {
5081
4851
  function t() {
@@ -5083,28 +4853,28 @@ var yh = function(t, e) {
5083
4853
  return t.sign = function(e, n, s) {
5084
4854
  if (e.headers = e.headers || {}, e.body && !e.data)
5085
4855
  throw new Error('The attribute "body" was found on the request object. Please use the attribute "data" instead.');
5086
- var r = ku(ku({}, e), { body: e.data, url: new URL(e.url) }), i = $C(r, n, s), o = BF(r, i);
4856
+ var r = Eu(Eu({}, e), { body: e.data, url: new URL(e.url) }), i = $C(r, n, s), o = wF(r, i);
5087
4857
  return o.url = o.url.toString(), o.headers.Authorization = o.headers.authorization, o.headers["X-Amz-Security-Token"] = o.headers["x-amz-security-token"], delete o.headers.authorization, delete o.headers["x-amz-security-token"], o;
5088
4858
  }, t.signUrl = function(e, n, s, r) {
5089
4859
  var i = typeof e == "object" ? e.url : e, o = typeof e == "object" ? e.method : "GET", a = typeof e == "object" ? e.body : void 0, d = {
5090
4860
  body: a,
5091
4861
  method: o,
5092
4862
  url: new URL(i)
5093
- }, l = $C(d, n, s, r), c = SF(d, l);
5094
- return n.session_token && !A4(l.signingService) && c.searchParams.append(F_, n.session_token), c.toString();
4863
+ }, l = $C(d, n, s, r), c = CF(d, l);
4864
+ return n.session_token && !d4(l.signingService) && c.searchParams.append(F_, n.session_token), c.toString();
5095
4865
  }, t;
5096
4866
  }()
5097
4867
  ), $C = function(t, e, n, s) {
5098
- var r = e != null ? e : {}, i = r.access_key, o = r.secret_key, a = r.session_token, d = UF(t.url), l = d.region, c = d.service, u = n != null ? n : {}, h = u.region, p = h === void 0 ? l : h, f = u.service, y = f === void 0 ? c : f, w = ku({ accessKeyId: i, secretAccessKey: o }, A4(y) ? { sessionToken: a } : {});
5099
- return ku({ credentials: w, signingDate: gc.getDateWithClockOffset(), signingRegion: p, signingService: y }, s && { expiration: s });
5100
- }, UF = function(t) {
5101
- var e, n = t.host, s = (e = n.match(TF)) !== null && e !== void 0 ? e : [], r = s.slice(1, 3);
4868
+ var r = e != null ? e : {}, i = r.access_key, o = r.secret_key, a = r.session_token, d = kF(t.url), l = d.region, c = d.service, u = n != null ? n : {}, h = u.region, p = h === void 0 ? l : h, f = u.service, y = f === void 0 ? c : f, w = Eu({ accessKeyId: i, secretAccessKey: o }, d4(y) ? { sessionToken: a } : {});
4869
+ return Eu({ credentials: w, signingDate: gc.getDateWithClockOffset(), signingRegion: p, signingService: y }, s && { expiration: s });
4870
+ }, kF = function(t) {
4871
+ var e, n = t.host, s = (e = n.match(EF)) !== null && e !== void 0 ? e : [], r = s.slice(1, 3);
5102
4872
  return r[1] === "es" && (r = r.reverse()), {
5103
4873
  service: r[0],
5104
4874
  region: r[1]
5105
4875
  };
5106
- }, A4 = function(t) {
5107
- return t !== IF;
4876
+ }, d4 = function(t) {
4877
+ return t !== BF;
5108
4878
  }, S0 = globalThis && globalThis.__assign || function() {
5109
4879
  return S0 = Object.assign || function(t) {
5110
4880
  for (var e, n = 1, s = arguments.length; n < s; n++) {
@@ -5114,7 +4884,7 @@ var yh = function(t, e) {
5114
4884
  }
5115
4885
  return t;
5116
4886
  }, S0.apply(this, arguments);
5117
- }, RF = new _o("Parser"), u4 = function(t) {
4887
+ }, SF = new _o("Parser"), c4 = function(t) {
5118
4888
  var e = {};
5119
4889
  if (t.aws_mobile_analytics_app_id) {
5120
4890
  var n = {
@@ -5143,8 +4913,8 @@ var yh = function(t, e) {
5143
4913
  }
5144
4914
  } : s = t ? t.Storage || t : {}, t.Logging && (e.Logging = S0(S0({}, t.Logging), { region: t.aws_project_region })), t.geo && (e.Geo = Object.assign({}, t.geo), t.geo.amazon_location_service && (e.Geo = {
5145
4915
  AmazonLocationService: t.geo.amazon_location_service
5146
- })), e.Analytics = Object.assign({}, e.Analytics, t.Analytics), e.Auth = Object.assign({}, e.Auth, t.Auth), e.Storage = Object.assign({}, s), e.Logging = Object.assign({}, e.Logging, t.Logging), RF.debug("parse config", t, "to amplifyconfig", e), e;
5147
- }, jF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
4916
+ })), e.Analytics = Object.assign({}, e.Analytics, t.Analytics), e.Auth = Object.assign({}, e.Auth, t.Auth), e.Storage = Object.assign({}, s), e.Logging = Object.assign({}, e.Logging, t.Logging), SF.debug("parse config", t, "to amplifyconfig", e), e;
4917
+ }, IF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5148
4918
  function r(i) {
5149
4919
  return i instanceof n ? i : new n(function(o) {
5150
4920
  o(i);
@@ -5170,7 +4940,7 @@ var yh = function(t, e) {
5170
4940
  }
5171
4941
  l((s = s.apply(t, e || [])).next());
5172
4942
  });
5173
- }, PF = globalThis && globalThis.__generator || function(t, e) {
4943
+ }, TF = globalThis && globalThis.__generator || function(t, e) {
5174
4944
  var n = { label: 0, sent: function() {
5175
4945
  if (i[0] & 1)
5176
4946
  throw i[1];
@@ -5234,29 +5004,29 @@ var yh = function(t, e) {
5234
5004
  throw l[1];
5235
5005
  return { value: l[0] ? l[1] : void 0, done: !0 };
5236
5006
  }
5237
- }, Hl = new _o("CognitoCredentials"), DF = new Promise(function(t, e) {
5007
+ }, zl = new _o("CognitoCredentials"), UF = new Promise(function(t, e) {
5238
5008
  if (!Ya().isBrowser)
5239
- return Hl.debug("not in the browser, directly resolved"), t();
5009
+ return zl.debug("not in the browser, directly resolved"), t();
5240
5010
  var n = window.gapi && window.gapi.auth2 ? window.gapi.auth2 : null;
5241
5011
  if (n)
5242
- return Hl.debug("google api already loaded"), t();
5012
+ return zl.debug("google api already loaded"), t();
5243
5013
  setTimeout(function() {
5244
5014
  return t();
5245
5015
  }, 2e3);
5246
- }), FF = (
5016
+ }), RF = (
5247
5017
  /** @class */
5248
5018
  function() {
5249
5019
  function t() {
5250
5020
  this.initialized = !1, this.refreshGoogleToken = this.refreshGoogleToken.bind(this), this._refreshGoogleTokenImpl = this._refreshGoogleTokenImpl.bind(this);
5251
5021
  }
5252
5022
  return t.prototype.refreshGoogleToken = function() {
5253
- return jF(this, void 0, void 0, function() {
5254
- return PF(this, function(e) {
5023
+ return IF(this, void 0, void 0, function() {
5024
+ return TF(this, function(e) {
5255
5025
  switch (e.label) {
5256
5026
  case 0:
5257
- return this.initialized ? [3, 2] : (Hl.debug("need to wait for the Google SDK loaded"), [4, DF]);
5027
+ return this.initialized ? [3, 2] : (zl.debug("need to wait for the Google SDK loaded"), [4, UF]);
5258
5028
  case 1:
5259
- e.sent(), this.initialized = !0, Hl.debug("finish waiting"), e.label = 2;
5029
+ e.sent(), this.initialized = !0, zl.debug("finish waiting"), e.label = 2;
5260
5030
  case 2:
5261
5031
  return [2, this._refreshGoogleTokenImpl()];
5262
5032
  }
@@ -5266,21 +5036,21 @@ var yh = function(t, e) {
5266
5036
  var e = null;
5267
5037
  return Ya().isBrowser && (e = window.gapi && window.gapi.auth2 ? window.gapi.auth2 : null), e ? new Promise(function(n, s) {
5268
5038
  e.getAuthInstance().then(function(r) {
5269
- r || (Hl.debug("google Auth undefined"), s(new Ec("google Auth undefined")));
5039
+ r || (zl.debug("google Auth undefined"), s(new Ec("google Auth undefined")));
5270
5040
  var i = r.currentUser.get();
5271
- i.isSignedIn() ? (Hl.debug("refreshing the google access token"), i.reloadAuthResponse().then(function(o) {
5041
+ i.isSignedIn() ? (zl.debug("refreshing the google access token"), i.reloadAuthResponse().then(function(o) {
5272
5042
  var a = o.id_token, d = o.expires_at;
5273
5043
  n({ token: a, expires_at: d });
5274
5044
  }).catch(function(o) {
5275
5045
  o && o.error === "network_error" ? s("Network error reloading google auth response") : s(new Ec("Failed to reload google auth response"));
5276
5046
  })) : s(new Ec("User is not signed in with Google"));
5277
5047
  }).catch(function(r) {
5278
- Hl.debug("Failed to refresh google token", r), s(new Ec("Failed to refresh google token"));
5048
+ zl.debug("Failed to refresh google token", r), s(new Ec("Failed to refresh google token"));
5279
5049
  });
5280
- }) : (Hl.debug("no gapi auth2 available"), Promise.reject("no gapi auth2 available"));
5050
+ }) : (zl.debug("no gapi auth2 available"), Promise.reject("no gapi auth2 available"));
5281
5051
  }, t;
5282
5052
  }()
5283
- ), OF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5053
+ ), jF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5284
5054
  function r(i) {
5285
5055
  return i instanceof n ? i : new n(function(o) {
5286
5056
  o(i);
@@ -5306,7 +5076,7 @@ var yh = function(t, e) {
5306
5076
  }
5307
5077
  l((s = s.apply(t, e || [])).next());
5308
5078
  });
5309
- }, NF = globalThis && globalThis.__generator || function(t, e) {
5079
+ }, PF = globalThis && globalThis.__generator || function(t, e) {
5310
5080
  var n = { label: 0, sent: function() {
5311
5081
  if (i[0] & 1)
5312
5082
  throw i[1];
@@ -5370,7 +5140,7 @@ var yh = function(t, e) {
5370
5140
  throw l[1];
5371
5141
  return { value: l[0] ? l[1] : void 0, done: !0 };
5372
5142
  }
5373
- }, yc = new _o("CognitoCredentials"), LF = new Promise(function(t, e) {
5143
+ }, yc = new _o("CognitoCredentials"), DF = new Promise(function(t, e) {
5374
5144
  if (!Ya().isBrowser)
5375
5145
  return yc.debug("not in the browser, directly resolved"), t();
5376
5146
  var n = window.FB;
@@ -5379,18 +5149,18 @@ var yh = function(t, e) {
5379
5149
  setTimeout(function() {
5380
5150
  return t();
5381
5151
  }, 2e3);
5382
- }), QF = (
5152
+ }), FF = (
5383
5153
  /** @class */
5384
5154
  function() {
5385
5155
  function t() {
5386
5156
  this.initialized = !1, this.refreshFacebookToken = this.refreshFacebookToken.bind(this), this._refreshFacebookTokenImpl = this._refreshFacebookTokenImpl.bind(this);
5387
5157
  }
5388
5158
  return t.prototype.refreshFacebookToken = function() {
5389
- return OF(this, void 0, void 0, function() {
5390
- return NF(this, function(e) {
5159
+ return jF(this, void 0, void 0, function() {
5160
+ return PF(this, function(e) {
5391
5161
  switch (e.label) {
5392
5162
  case 0:
5393
- return this.initialized ? [3, 2] : (yc.debug("need to wait for the Facebook SDK loaded"), [4, LF]);
5163
+ return this.initialized ? [3, 2] : (yc.debug("need to wait for the Facebook SDK loaded"), [4, DF]);
5394
5164
  case 1:
5395
5165
  e.sent(), this.initialized = !0, yc.debug("finish waiting"), e.label = 2;
5396
5166
  case 2:
@@ -5424,7 +5194,7 @@ var yh = function(t, e) {
5424
5194
  });
5425
5195
  }, t;
5426
5196
  }()
5427
- ), MF = new FF(), zF = new QF(), sc = {}, HF = (
5197
+ ), OF = new RF(), NF = new FF(), sc = {}, LF = (
5428
5198
  /** @class */
5429
5199
  function() {
5430
5200
  function t() {
@@ -5439,30 +5209,30 @@ var yh = function(t, e) {
5439
5209
  return sc = {}, sc;
5440
5210
  }, t;
5441
5211
  }()
5442
- ), p4 = (
5212
+ ), A4 = (
5443
5213
  /** @class */
5444
5214
  function() {
5445
5215
  function t() {
5446
5216
  try {
5447
5217
  this.storageWindow = window.localStorage, this.storageWindow.setItem("aws.amplify.test-ls", 1), this.storageWindow.removeItem("aws.amplify.test-ls");
5448
5218
  } catch (e) {
5449
- this.storageWindow = HF;
5219
+ this.storageWindow = LF;
5450
5220
  }
5451
5221
  }
5452
5222
  return t.prototype.getStorage = function() {
5453
5223
  return this.storageWindow;
5454
5224
  }, t;
5455
5225
  }()
5456
- ), h4 = {
5226
+ ), u4 = {
5457
5227
  id: "aws",
5458
5228
  outputs: {
5459
5229
  dnsSuffix: "amazonaws.com"
5460
5230
  },
5461
5231
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
5462
5232
  regions: ["aws-global"]
5463
- }, qF = {
5233
+ }, QF = {
5464
5234
  partitions: [
5465
- h4,
5235
+ u4,
5466
5236
  {
5467
5237
  id: "aws-cn",
5468
5238
  outputs: {
@@ -5472,7 +5242,7 @@ var yh = function(t, e) {
5472
5242
  regions: ["aws-cn-global"]
5473
5243
  }
5474
5244
  ]
5475
- }, VF = globalThis && globalThis.__values || function(t) {
5245
+ }, MF = globalThis && globalThis.__values || function(t) {
5476
5246
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], s = 0;
5477
5247
  if (n)
5478
5248
  return n.call(t);
@@ -5483,10 +5253,10 @@ var yh = function(t, e) {
5483
5253
  }
5484
5254
  };
5485
5255
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
5486
- }, KF = function(t) {
5487
- var e, n, s = qF.partitions;
5256
+ }, zF = function(t) {
5257
+ var e, n, s = QF.partitions;
5488
5258
  try {
5489
- for (var r = VF(s), i = r.next(); !i.done; i = r.next()) {
5259
+ for (var r = MF(s), i = r.next(); !i.done; i = r.next()) {
5490
5260
  var o = i.value, a = o.regions, d = o.outputs, l = o.regionRegex, c = new RegExp(l);
5491
5261
  if (a.includes(t) || c.test(t))
5492
5262
  return d.dnsSuffix;
@@ -5501,9 +5271,9 @@ var yh = function(t, e) {
5501
5271
  throw e.error;
5502
5272
  }
5503
5273
  }
5504
- return h4.outputs.dnsSuffix;
5274
+ return u4.outputs.dnsSuffix;
5505
5275
  };
5506
- function GF(t, e) {
5276
+ function HF(t, e) {
5507
5277
  return e = e || {}, new Promise(function(n, s) {
5508
5278
  var r = new XMLHttpRequest(), i = [], o = [], a = {}, d = function() {
5509
5279
  return { ok: (r.status / 100 | 0) == 2, statusText: r.statusText, status: r.status, url: r.responseURL, text: function() {
@@ -5531,10 +5301,10 @@ function GF(t, e) {
5531
5301
  r.send(e.body || null);
5532
5302
  });
5533
5303
  }
5534
- const WF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5304
+ const qF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5535
5305
  __proto__: null,
5536
- default: GF
5537
- }, Symbol.toStringTag, { value: "Module" })), e3 = /* @__PURE__ */ U_(WF);
5306
+ default: HF
5307
+ }, Symbol.toStringTag, { value: "Module" })), e3 = /* @__PURE__ */ U_(qF);
5538
5308
  self.fetch || (self.fetch = e3.default || e3);
5539
5309
  var Ob = function(t) {
5540
5310
  var e;
@@ -5550,7 +5320,7 @@ var Ob = function(t) {
5550
5320
  }
5551
5321
  return t;
5552
5322
  }, I0.apply(this, arguments);
5553
- }, YF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5323
+ }, VF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5554
5324
  function r(i) {
5555
5325
  return i instanceof n ? i : new n(function(o) {
5556
5326
  o(i);
@@ -5576,7 +5346,7 @@ var Ob = function(t) {
5576
5346
  }
5577
5347
  l((s = s.apply(t, e || [])).next());
5578
5348
  });
5579
- }, JF = globalThis && globalThis.__generator || function(t, e) {
5349
+ }, KF = globalThis && globalThis.__generator || function(t, e) {
5580
5350
  var n = { label: 0, sent: function() {
5581
5351
  if (i[0] & 1)
5582
5352
  throw i[1];
@@ -5640,19 +5410,19 @@ var Ob = function(t) {
5640
5410
  throw l[1];
5641
5411
  return { value: l[0] ? l[1] : void 0, done: !0 };
5642
5412
  }
5643
- }, XF = function(t) {
5413
+ }, GF = function(t) {
5644
5414
  return !["HEAD", "GET", "DELETE"].includes(t.toUpperCase());
5645
- }, ZF = function(t, e) {
5415
+ }, WF = function(t, e) {
5646
5416
  var n = t.url, s = t.method, r = t.headers, i = t.body, o = e.abortSignal;
5647
- return YF(void 0, void 0, void 0, function() {
5417
+ return VF(void 0, void 0, void 0, function() {
5648
5418
  var a, d, l, c, u, h, p;
5649
- return JF(this, function(f) {
5419
+ return KF(this, function(f) {
5650
5420
  switch (f.label) {
5651
5421
  case 0:
5652
5422
  return f.trys.push([0, 2, , 3]), [4, fetch(n, {
5653
5423
  method: s,
5654
5424
  headers: r,
5655
- body: XF(s) ? i : void 0,
5425
+ body: GF(s) ? i : void 0,
5656
5426
  signal: o
5657
5427
  })];
5658
5428
  case 1:
@@ -5689,7 +5459,7 @@ var Ob = function(t) {
5689
5459
  }
5690
5460
  return t;
5691
5461
  }, T0.apply(this, arguments);
5692
- }, $F = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5462
+ }, YF = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5693
5463
  function r(i) {
5694
5464
  return i instanceof n ? i : new n(function(o) {
5695
5465
  o(i);
@@ -5715,7 +5485,7 @@ var Ob = function(t) {
5715
5485
  }
5716
5486
  l((s = s.apply(t, e || [])).next());
5717
5487
  });
5718
- }, e7 = globalThis && globalThis.__generator || function(t, e) {
5488
+ }, JF = globalThis && globalThis.__generator || function(t, e) {
5719
5489
  var n = { label: 0, sent: function() {
5720
5490
  if (i[0] & 1)
5721
5491
  throw i[1];
@@ -5779,16 +5549,16 @@ var Ob = function(t) {
5779
5549
  throw l[1];
5780
5550
  return { value: l[0] ? l[1] : void 0, done: !0 };
5781
5551
  }
5782
- }, t7 = 3, n7 = function(t) {
5783
- var e = t.maxAttempts, n = e === void 0 ? t7 : e, s = t.retryDecider, r = t.computeDelay, i = t.abortSignal;
5552
+ }, XF = 3, ZF = function(t) {
5553
+ var e = t.maxAttempts, n = e === void 0 ? XF : e, s = t.retryDecider, r = t.computeDelay, i = t.abortSignal;
5784
5554
  if (n < 1)
5785
5555
  throw new Error("maxAttempts must be greater than 0");
5786
5556
  return function(o, a) {
5787
5557
  return function(l) {
5788
5558
  var c;
5789
- return $F(this, void 0, void 0, function() {
5559
+ return YF(this, void 0, void 0, function() {
5790
5560
  var u, h, p, f, y, w;
5791
- return e7(this, function(v) {
5561
+ return JF(this, function(v) {
5792
5562
  switch (v.label) {
5793
5563
  case 0:
5794
5564
  h = (c = a.attemptsCount) !== null && c !== void 0 ? c : 0, f = function() {
@@ -5809,7 +5579,7 @@ var Ob = function(t) {
5809
5579
  case 5:
5810
5580
  return h = a.attemptsCount > h ? a.attemptsCount : h + 1, a.attemptsCount = h, [4, s(p, u)];
5811
5581
  case 6:
5812
- return v.sent() ? !(i != null && i.aborted) && h < n ? (w = r(h), [4, s7(w, i)]) : [3, 8] : [3, 9];
5582
+ return v.sent() ? !(i != null && i.aborted) && h < n ? (w = r(h), [4, $F(w, i)]) : [3, 8] : [3, 9];
5813
5583
  case 7:
5814
5584
  v.sent(), v.label = 8;
5815
5585
  case 8:
@@ -5827,7 +5597,7 @@ var Ob = function(t) {
5827
5597
  });
5828
5598
  };
5829
5599
  };
5830
- }, s7 = function(t, e) {
5600
+ }, $F = function(t, e) {
5831
5601
  if (e != null && e.aborted)
5832
5602
  return Promise.resolve();
5833
5603
  var n, s, r = new Promise(function(i) {
@@ -5839,10 +5609,10 @@ var Ob = function(t) {
5839
5609
  }, t3 = function(t, e) {
5840
5610
  var n;
5841
5611
  Object.prototype.toString.call(t) === "[object Object]" && (t.$metadata = T0(T0({}, (n = t.$metadata) !== null && n !== void 0 ? n : {}), { attempts: e }));
5842
- }, n3 = 5 * 60 * 1e3, r7 = function(t) {
5843
- var e = e4(n3), n = e(t);
5612
+ }, n3 = 5 * 60 * 1e3, e7 = function(t) {
5613
+ var e = Zk(n3), n = e(t);
5844
5614
  return n === !1 ? n3 : n;
5845
- }, i7 = [
5615
+ }, t7 = [
5846
5616
  "AuthFailure",
5847
5617
  "InvalidSignatureException",
5848
5618
  "RequestExpired",
@@ -5851,9 +5621,9 @@ var Ob = function(t) {
5851
5621
  "SignatureDoesNotMatch",
5852
5622
  "BadRequestException"
5853
5623
  // API Gateway
5854
- ], o7 = function(t) {
5855
- return i7.includes(t);
5856
- }, a7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5624
+ ], n7 = function(t) {
5625
+ return t7.includes(t);
5626
+ }, s7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5857
5627
  function r(i) {
5858
5628
  return i instanceof n ? i : new n(function(o) {
5859
5629
  o(i);
@@ -5879,7 +5649,7 @@ var Ob = function(t) {
5879
5649
  }
5880
5650
  l((s = s.apply(t, e || [])).next());
5881
5651
  });
5882
- }, l7 = globalThis && globalThis.__generator || function(t, e) {
5652
+ }, r7 = globalThis && globalThis.__generator || function(t, e) {
5883
5653
  var n = { label: 0, sent: function() {
5884
5654
  if (i[0] & 1)
5885
5655
  throw i[1];
@@ -5943,11 +5713,11 @@ var Ob = function(t) {
5943
5713
  throw l[1];
5944
5714
  return { value: l[0] ? l[1] : void 0, done: !0 };
5945
5715
  }
5946
- }, d7 = function(t) {
5716
+ }, i7 = function(t) {
5947
5717
  return function(e, n) {
5948
- return a7(void 0, void 0, void 0, function() {
5718
+ return s7(void 0, void 0, void 0, function() {
5949
5719
  var s, r, i, o;
5950
- return l7(this, function(a) {
5720
+ return r7(this, function(a) {
5951
5721
  switch (a.label) {
5952
5722
  case 0:
5953
5723
  return n == null ? [3, 1] : (r = n, [3, 3]);
@@ -5956,12 +5726,12 @@ var Ob = function(t) {
5956
5726
  case 2:
5957
5727
  r = a.sent(), a.label = 3;
5958
5728
  case 3:
5959
- return s = ((o = r) !== null && o !== void 0 ? o : {}).name, i = e == null ? void 0 : e.statusCode, [2, p7(n) || u7(i, s) || o7(s) || h7(i, s)];
5729
+ return s = ((o = r) !== null && o !== void 0 ? o : {}).name, i = e == null ? void 0 : e.statusCode, [2, d7(n) || l7(i, s) || n7(s) || c7(i, s)];
5960
5730
  }
5961
5731
  });
5962
5732
  });
5963
5733
  };
5964
- }, c7 = [
5734
+ }, o7 = [
5965
5735
  "BandwidthLimitExceeded",
5966
5736
  "EC2ThrottledException",
5967
5737
  "LimitExceededException",
@@ -5975,17 +5745,17 @@ var Ob = function(t) {
5975
5745
  "Throttling",
5976
5746
  "ThrottlingException",
5977
5747
  "TooManyRequestsException"
5978
- ], A7 = [
5748
+ ], a7 = [
5979
5749
  "TimeoutError",
5980
5750
  "RequestTimeout",
5981
5751
  "RequestTimeoutException"
5982
- ], u7 = function(t, e) {
5983
- return t === 429 || c7.includes(e);
5984
- }, p7 = function(t) {
5752
+ ], l7 = function(t, e) {
5753
+ return t === 429 || o7.includes(e);
5754
+ }, d7 = function(t) {
5985
5755
  return (t == null ? void 0 : t.name) === "Network error";
5986
- }, h7 = function(t, e) {
5987
- return [500, 502, 503, 504].includes(t) || A7.includes(e);
5988
- }, g7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5756
+ }, c7 = function(t, e) {
5757
+ return [500, 502, 503, 504].includes(t) || a7.includes(e);
5758
+ }, A7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5989
5759
  function r(i) {
5990
5760
  return i instanceof n ? i : new n(function(o) {
5991
5761
  o(i);
@@ -6011,7 +5781,7 @@ var Ob = function(t) {
6011
5781
  }
6012
5782
  l((s = s.apply(t, e || [])).next());
6013
5783
  });
6014
- }, f7 = globalThis && globalThis.__generator || function(t, e) {
5784
+ }, u7 = globalThis && globalThis.__generator || function(t, e) {
6015
5785
  var n = { label: 0, sent: function() {
6016
5786
  if (i[0] & 1)
6017
5787
  throw i[1];
@@ -6075,13 +5845,13 @@ var Ob = function(t) {
6075
5845
  throw l[1];
6076
5846
  return { value: l[0] ? l[1] : void 0, done: !0 };
6077
5847
  }
6078
- }, m7 = function(t) {
5848
+ }, p7 = function(t) {
6079
5849
  var e = t.userAgentHeader, n = e === void 0 ? "x-amz-user-agent" : e, s = t.userAgentValue, r = s === void 0 ? "" : s;
6080
5850
  return function(i) {
6081
5851
  return function(a) {
6082
- return g7(this, void 0, void 0, function() {
5852
+ return A7(this, void 0, void 0, function() {
6083
5853
  var d, l, c;
6084
- return f7(this, function(u) {
5854
+ return u7(this, function(u) {
6085
5855
  switch (u.label) {
6086
5856
  case 0:
6087
5857
  return r.trim().length !== 0 ? [3, 2] : [4, i(a)];
@@ -6096,7 +5866,7 @@ var Ob = function(t) {
6096
5866
  });
6097
5867
  };
6098
5868
  };
6099
- }, g4 = function(t, e) {
5869
+ }, p4 = function(t, e) {
6100
5870
  return function(n, s) {
6101
5871
  for (var r = {}, i = function(l) {
6102
5872
  return t(l, s);
@@ -6106,7 +5876,7 @@ var Ob = function(t) {
6106
5876
  }
6107
5877
  return i(n);
6108
5878
  };
6109
- }, y7 = g4(ZF, [m7, n7]), U0 = globalThis && globalThis.__assign || function() {
5879
+ }, h7 = p4(WF, [p7, ZF]), U0 = globalThis && globalThis.__assign || function() {
6110
5880
  return U0 = Object.assign || function(t) {
6111
5881
  for (var e, n = 1, s = arguments.length; n < s; n++) {
6112
5882
  e = arguments[n];
@@ -6117,10 +5887,10 @@ var Ob = function(t) {
6117
5887
  }, U0.apply(this, arguments);
6118
5888
  }, L1 = function(t) {
6119
5889
  var e, n, s = t.headers, r = t.statusCode;
6120
- return U0(U0({}, b7(t) ? t.$metadata : {}), { httpStatusCode: r, requestId: (n = (e = s["x-amzn-requestid"]) !== null && e !== void 0 ? e : s["x-amzn-request-id"]) !== null && n !== void 0 ? n : s["x-amz-request-id"], extendedRequestId: s["x-amz-id-2"], cfId: s["x-amz-cf-id"] });
6121
- }, b7 = function(t) {
5890
+ return U0(U0({}, g7(t) ? t.$metadata : {}), { httpStatusCode: r, requestId: (n = (e = s["x-amzn-requestid"]) !== null && e !== void 0 ? e : s["x-amzn-request-id"]) !== null && n !== void 0 ? n : s["x-amz-request-id"], extendedRequestId: s["x-amz-id-2"], cfId: s["x-amz-cf-id"] });
5891
+ }, g7 = function(t) {
6122
5892
  return typeof (t == null ? void 0 : t.$metadata) == "object";
6123
- }, f4 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
5893
+ }, h4 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6124
5894
  function r(i) {
6125
5895
  return i instanceof n ? i : new n(function(o) {
6126
5896
  o(i);
@@ -6146,7 +5916,7 @@ var Ob = function(t) {
6146
5916
  }
6147
5917
  l((s = s.apply(t, e || [])).next());
6148
5918
  });
6149
- }, m4 = globalThis && globalThis.__generator || function(t, e) {
5919
+ }, g4 = globalThis && globalThis.__generator || function(t, e) {
6150
5920
  var n = { label: 0, sent: function() {
6151
5921
  if (i[0] & 1)
6152
5922
  throw i[1];
@@ -6210,7 +5980,7 @@ var Ob = function(t) {
6210
5980
  throw l[1];
6211
5981
  return { value: l[0] ? l[1] : void 0, done: !0 };
6212
5982
  }
6213
- }, v7 = globalThis && globalThis.__read || function(t, e) {
5983
+ }, f7 = globalThis && globalThis.__read || function(t, e) {
6214
5984
  var n = typeof Symbol == "function" && t[Symbol.iterator];
6215
5985
  if (!n)
6216
5986
  return t;
@@ -6230,9 +6000,9 @@ var Ob = function(t) {
6230
6000
  }
6231
6001
  return i;
6232
6002
  }, N_ = function(t) {
6233
- return f4(void 0, void 0, void 0, function() {
6003
+ return h4(void 0, void 0, void 0, function() {
6234
6004
  var e, n, s, r, i, o, a, d, l, c;
6235
- return m4(this, function(u) {
6005
+ return g4(this, function(u) {
6236
6006
  switch (u.label) {
6237
6007
  case 0:
6238
6008
  return !t || t.statusCode < 300 ? [
@@ -6241,7 +6011,7 @@ var Ob = function(t) {
6241
6011
  ] : [4, L_(t)];
6242
6012
  case 1:
6243
6013
  return e = u.sent(), n = function(h) {
6244
- var p = v7(h.toString().split(/[\,\:]+/), 1), f = p[0];
6014
+ var p = f7(h.toString().split(/[\,\:]+/), 1), f = p[0];
6245
6015
  return f.includes("#") ? f.split("#")[1] : f;
6246
6016
  }, s = n((d = (a = (o = t.headers["x-amzn-errortype"]) !== null && o !== void 0 ? o : e.code) !== null && a !== void 0 ? a : e.__type) !== null && d !== void 0 ? d : "UnknownError"), r = (c = (l = e.message) !== null && l !== void 0 ? l : e.Message) !== null && c !== void 0 ? c : "Unknown error", i = new Error(r), [2, Object.assign(i, {
6247
6017
  name: s,
@@ -6251,9 +6021,9 @@ var Ob = function(t) {
6251
6021
  });
6252
6022
  });
6253
6023
  }, L_ = function(t) {
6254
- return f4(void 0, void 0, void 0, function() {
6024
+ return h4(void 0, void 0, void 0, function() {
6255
6025
  var e;
6256
- return m4(this, function(n) {
6026
+ return g4(this, function(n) {
6257
6027
  switch (n.label) {
6258
6028
  case 0:
6259
6029
  if (!t.body)
@@ -6266,7 +6036,7 @@ var Ob = function(t) {
6266
6036
  }
6267
6037
  });
6268
6038
  });
6269
- }, w7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6039
+ }, m7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6270
6040
  function r(i) {
6271
6041
  return i instanceof n ? i : new n(function(o) {
6272
6042
  o(i);
@@ -6292,7 +6062,7 @@ var Ob = function(t) {
6292
6062
  }
6293
6063
  l((s = s.apply(t, e || [])).next());
6294
6064
  });
6295
- }, _7 = globalThis && globalThis.__generator || function(t, e) {
6065
+ }, y7 = globalThis && globalThis.__generator || function(t, e) {
6296
6066
  var n = { label: 0, sent: function() {
6297
6067
  if (i[0] & 1)
6298
6068
  throw i[1];
@@ -6356,37 +6126,37 @@ var Ob = function(t) {
6356
6126
  throw l[1];
6357
6127
  return { value: l[0] ? l[1] : void 0, done: !0 };
6358
6128
  }
6359
- }, x7 = "cognito-identity", C7 = function(t) {
6129
+ }, b7 = "cognito-identity", v7 = function(t) {
6360
6130
  var e = t.region;
6361
6131
  return {
6362
- url: new URL("https://cognito-identity.".concat(e, ".").concat(KF(e)))
6132
+ url: new URL("https://cognito-identity.".concat(e, ".").concat(zF(e)))
6363
6133
  };
6364
- }, B7 = function() {
6134
+ }, w7 = function() {
6365
6135
  return function(t, e) {
6366
6136
  return function(s) {
6367
- return w7(this, void 0, void 0, function() {
6368
- return _7(this, function(r) {
6137
+ return m7(this, void 0, void 0, function() {
6138
+ return y7(this, function(r) {
6369
6139
  return s.headers["cache-control"] = "no-store", [2, t(s)];
6370
6140
  });
6371
6141
  });
6372
6142
  };
6373
6143
  };
6374
- }, y4 = g4(y7, [B7]), Q_ = {
6375
- service: x7,
6376
- endpointResolver: C7,
6377
- retryDecider: d7(N_),
6378
- computeDelay: r7,
6144
+ }, f4 = p4(h7, [w7]), Q_ = {
6145
+ service: b7,
6146
+ endpointResolver: v7,
6147
+ retryDecider: i7(N_),
6148
+ computeDelay: e7,
6379
6149
  userAgentValue: D_()
6380
6150
  };
6381
- Xk(function() {
6151
+ Yk(function() {
6382
6152
  Q_.userAgentValue = D_();
6383
6153
  });
6384
- var b4 = function(t) {
6154
+ var m4 = function(t) {
6385
6155
  return {
6386
6156
  "content-type": "application/x-amz-json-1.1",
6387
6157
  "x-amz-target": "AWSCognitoIdentityService.".concat(t)
6388
6158
  };
6389
- }, v4 = function(t, e, n) {
6159
+ }, y4 = function(t, e, n) {
6390
6160
  var s = t.url;
6391
6161
  return {
6392
6162
  headers: e,
@@ -6403,7 +6173,7 @@ var b4 = function(t) {
6403
6173
  }
6404
6174
  return t;
6405
6175
  }, Rh.apply(this, arguments);
6406
- }, E7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6176
+ }, _7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6407
6177
  function r(i) {
6408
6178
  return i instanceof n ? i : new n(function(o) {
6409
6179
  o(i);
@@ -6429,7 +6199,7 @@ var b4 = function(t) {
6429
6199
  }
6430
6200
  l((s = s.apply(t, e || [])).next());
6431
6201
  });
6432
- }, k7 = globalThis && globalThis.__generator || function(t, e) {
6202
+ }, x7 = globalThis && globalThis.__generator || function(t, e) {
6433
6203
  var n = { label: 0, sent: function() {
6434
6204
  if (i[0] & 1)
6435
6205
  throw i[1];
@@ -6493,11 +6263,11 @@ var b4 = function(t) {
6493
6263
  throw l[1];
6494
6264
  return { value: l[0] ? l[1] : void 0, done: !0 };
6495
6265
  }
6496
- }, w4 = function(t, e, n, s) {
6266
+ }, b4 = function(t, e, n, s) {
6497
6267
  return function(r, i) {
6498
- return E7(void 0, void 0, void 0, function() {
6268
+ return _7(void 0, void 0, void 0, function() {
6499
6269
  var o, a, d, l;
6500
- return k7(this, function(c) {
6270
+ return x7(this, function(c) {
6501
6271
  switch (c.label) {
6502
6272
  case 0:
6503
6273
  return o = Rh(Rh({}, s), r), [4, o.endpointResolver(o, i)];
@@ -6513,7 +6283,7 @@ var b4 = function(t) {
6513
6283
  });
6514
6284
  });
6515
6285
  };
6516
- }, S7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6286
+ }, C7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6517
6287
  function r(i) {
6518
6288
  return i instanceof n ? i : new n(function(o) {
6519
6289
  o(i);
@@ -6539,7 +6309,7 @@ var b4 = function(t) {
6539
6309
  }
6540
6310
  l((s = s.apply(t, e || [])).next());
6541
6311
  });
6542
- }, I7 = globalThis && globalThis.__generator || function(t, e) {
6312
+ }, B7 = globalThis && globalThis.__generator || function(t, e) {
6543
6313
  var n = { label: 0, sent: function() {
6544
6314
  if (i[0] & 1)
6545
6315
  throw i[1];
@@ -6603,13 +6373,13 @@ var b4 = function(t) {
6603
6373
  throw l[1];
6604
6374
  return { value: l[0] ? l[1] : void 0, done: !0 };
6605
6375
  }
6606
- }, T7 = function(t, e) {
6607
- var n = b4("GetId"), s = JSON.stringify(t);
6608
- return v4(e, n, s);
6609
- }, U7 = function(t) {
6610
- return S7(void 0, void 0, void 0, function() {
6376
+ }, E7 = function(t, e) {
6377
+ var n = m4("GetId"), s = JSON.stringify(t);
6378
+ return y4(e, n, s);
6379
+ }, k7 = function(t) {
6380
+ return C7(void 0, void 0, void 0, function() {
6611
6381
  var e, n;
6612
- return I7(this, function(s) {
6382
+ return B7(this, function(s) {
6613
6383
  switch (s.label) {
6614
6384
  case 0:
6615
6385
  return t.statusCode >= 300 ? [4, N_(t)] : [3, 2];
@@ -6625,7 +6395,7 @@ var b4 = function(t) {
6625
6395
  }
6626
6396
  });
6627
6397
  });
6628
- }, Qf = w4(y4, T7, U7, Q_), R7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6398
+ }, Qf = b4(f4, E7, k7, Q_), S7 = globalThis && globalThis.__awaiter || function(t, e, n, s) {
6629
6399
  function r(i) {
6630
6400
  return i instanceof n ? i : new n(function(o) {
6631
6401
  o(i);
@@ -6651,7 +6421,7 @@ var b4 = function(t) {
6651
6421
  }
6652
6422
  l((s = s.apply(t, e || [])).next());
6653
6423
  });
6654
- }, j7 = globalThis && globalThis.__generator || function(t, e) {
6424
+ }, I7 = globalThis && globalThis.__generator || function(t, e) {
6655
6425
  var n = { label: 0, sent: function() {
6656
6426
  if (i[0] & 1)
6657
6427
  throw i[1];
@@ -6715,13 +6485,13 @@ var b4 = function(t) {
6715
6485
  throw l[1];
6716
6486
  return { value: l[0] ? l[1] : void 0, done: !0 };
6717
6487
  }
6718
- }, P7 = function(t, e) {
6719
- var n = b4("GetCredentialsForIdentity"), s = JSON.stringify(t);
6720
- return v4(e, n, s);
6721
- }, D7 = function(t) {
6722
- return R7(void 0, void 0, void 0, function() {
6488
+ }, T7 = function(t, e) {
6489
+ var n = m4("GetCredentialsForIdentity"), s = JSON.stringify(t);
6490
+ return y4(e, n, s);
6491
+ }, U7 = function(t) {
6492
+ return S7(void 0, void 0, void 0, function() {
6723
6493
  var e, n;
6724
- return j7(this, function(s) {
6494
+ return I7(this, function(s) {
6725
6495
  switch (s.label) {
6726
6496
  case 0:
6727
6497
  return t.statusCode >= 300 ? [4, N_(t)] : [3, 2];
@@ -6732,20 +6502,20 @@ var b4 = function(t) {
6732
6502
  case 3:
6733
6503
  return n = s.sent(), [2, {
6734
6504
  IdentityId: n.IdentityId,
6735
- Credentials: F7(n.Credentials),
6505
+ Credentials: R7(n.Credentials),
6736
6506
  $metadata: L1(t)
6737
6507
  }];
6738
6508
  }
6739
6509
  });
6740
6510
  });
6741
- }, F7 = function(t) {
6511
+ }, R7 = function(t) {
6742
6512
  return t === void 0 && (t = {}), {
6743
6513
  AccessKeyId: t.AccessKeyId,
6744
6514
  SecretKey: t.SecretKey,
6745
6515
  SessionToken: t.SessionToken,
6746
6516
  Expiration: new Date(t.Expiration * 1e3)
6747
6517
  };
6748
- }, Mf = w4(y4, P7, D7, Q_), R0 = globalThis && globalThis.__assign || function() {
6518
+ }, Mf = b4(f4, T7, U7, Q_), R0 = globalThis && globalThis.__assign || function() {
6749
6519
  return R0 = Object.assign || function(t) {
6750
6520
  for (var e, n = 1, s = arguments.length; n < s; n++) {
6751
6521
  e = arguments[n];
@@ -6844,13 +6614,13 @@ var b4 = function(t) {
6844
6614
  throw l[1];
6845
6615
  return { value: l[0] ? l[1] : void 0, done: !0 };
6846
6616
  }
6847
- }, Mt = new _o("Credentials"), O7 = 50 * 60 * 1e3, N7 = "CognitoIdentityId-", L7 = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", Q7 = function(t, e, n) {
6848
- La.dispatch("core", { event: t, data: e, message: n }, "Credentials", L7);
6849
- }, M7 = (
6617
+ }, Mt = new _o("Credentials"), j7 = 50 * 60 * 1e3, P7 = "CognitoIdentityId-", D7 = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", F7 = function(t, e, n) {
6618
+ La.dispatch("core", { event: t, data: e, message: n }, "Credentials", D7);
6619
+ }, O7 = (
6850
6620
  /** @class */
6851
6621
  function() {
6852
6622
  function t(e) {
6853
- this._gettingCredPromise = null, this._refreshHandlers = {}, this.Auth = void 0, this.configure(e), this._refreshHandlers.google = MF.refreshGoogleToken, this._refreshHandlers.facebook = zF.refreshFacebookToken;
6623
+ this._gettingCredPromise = null, this._refreshHandlers = {}, this.Auth = void 0, this.configure(e), this._refreshHandlers.google = OF.refreshGoogleToken, this._refreshHandlers.facebook = NF.refreshFacebookToken;
6854
6624
  }
6855
6625
  return t.prototype.getModuleName = function() {
6856
6626
  return "Credentials";
@@ -6861,13 +6631,13 @@ var b4 = function(t) {
6861
6631
  return this._config || {};
6862
6632
  this._config = Object.assign({}, this._config, e);
6863
6633
  var n = this._config.refreshHandlers;
6864
- return n && (this._refreshHandlers = R0(R0({}, this._refreshHandlers), n)), this._storage = this._config.storage, this._storage || (this._storage = new p4().getStorage()), this._storageSync = Promise.resolve(), typeof this._storage.sync == "function" && (this._storageSync = this._storage.sync()), Q7("credentials_configured", null, "Credentials has been configured successfully"), this._config;
6634
+ return n && (this._refreshHandlers = R0(R0({}, this._refreshHandlers), n)), this._storage = this._config.storage, this._storage || (this._storage = new A4().getStorage()), this._storageSync = Promise.resolve(), typeof this._storage.sync == "function" && (this._storageSync = this._storage.sync()), F7("credentials_configured", null, "Credentials has been configured successfully"), this._config;
6865
6635
  }, t.prototype.get = function() {
6866
6636
  return Mt.debug("getting credentials"), this._pickupCredentials();
6867
6637
  }, t.prototype._getCognitoIdentityIdStorageKey = function(e) {
6868
- return "".concat(N7).concat(e);
6638
+ return "".concat(P7).concat(e);
6869
6639
  }, t.prototype._pickupCredentials = function() {
6870
- return Mt.debug("picking up credentials"), !this._gettingCredPromise || !this._gettingCredPromise.isPending() ? (Mt.debug("getting new cred promise"), this._gettingCredPromise = oD(this._keepAlive())) : Mt.debug("getting old cred promise"), this._gettingCredPromise;
6640
+ return Mt.debug("picking up credentials"), !this._gettingCredPromise || !this._gettingCredPromise.isPending() ? (Mt.debug("getting new cred promise"), this._gettingCredPromise = nD(this._keepAlive())) : Mt.debug("getting old cred promise"), this._gettingCredPromise;
6871
6641
  }, t.prototype._keepAlive = function() {
6872
6642
  return Xs(this, void 0, void 0, function() {
6873
6643
  var e, n, s, r, i, o, a, d;
@@ -6876,7 +6646,7 @@ var b4 = function(t) {
6876
6646
  case 0:
6877
6647
  if (Mt.debug("checking if credentials exists and not expired"), e = this._credentials, e && !this._isExpired(e) && !this._isPastTTL())
6878
6648
  return Mt.debug("credentials not changed and not expired, directly return"), [2, Promise.resolve(e)];
6879
- if (Mt.debug("need to get a new credential or refresh the existing one"), n = this.Auth, s = n === void 0 ? jg.Auth : n, !s || typeof s.currentUserCredentials != "function")
6649
+ if (Mt.debug("need to get a new credential or refresh the existing one"), n = this.Auth, s = n === void 0 ? Rg.Auth : n, !s || typeof s.currentUserCredentials != "function")
6880
6650
  return [2, this._setCredentialsForGuest()];
6881
6651
  if (!(!this._isExpired(e) && this._isPastTTL()))
6882
6652
  return [3, 6];
@@ -6918,7 +6688,7 @@ var b4 = function(t) {
6918
6688
  })) : (Mt.debug("no refresh handler for provider:", n), this.clear(), Promise.reject("no refresh handler for provider"));
6919
6689
  }, t.prototype._providerRefreshWithRetry = function(e) {
6920
6690
  var n = this, s = e.refreshHandler, r = e.provider, i = e.user, o = 10 * 1e3;
6921
- return uD(s, [], o).then(function(a) {
6691
+ return lD(s, [], o).then(function(a) {
6922
6692
  return Mt.debug("refresh federated token sucessfully", a), n._setCredentialsFromFederation({
6923
6693
  provider: r,
6924
6694
  token: a.token,
@@ -6945,7 +6715,7 @@ var b4 = function(t) {
6945
6715
  return Zs(this, function(p) {
6946
6716
  switch (p.label) {
6947
6717
  case 0:
6948
- return Mt.debug("setting credentials for guest"), !((e = this._config) === null || e === void 0) && e.identityPoolId || (this._config = Object.assign({}, this._config, u4(this._config || {}).Auth)), n = this._config, s = n.identityPoolId, r = n.region, i = n.mandatorySignIn, o = n.identityPoolRegion, i ? [2, Promise.reject("cannot get guest credentials when mandatory signin enabled")] : s ? !o && !r ? (Mt.debug("region is not configured for getting the credentials"), [2, Promise.reject("region is not configured for getting the credentials")]) : (d = this, [4, this._getGuestIdentityId()]) : (Mt.debug("No Cognito Identity pool provided for unauthenticated access"), [2, Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);
6718
+ return Mt.debug("setting credentials for guest"), !((e = this._config) === null || e === void 0) && e.identityPoolId || (this._config = Object.assign({}, this._config, c4(this._config || {}).Auth)), n = this._config, s = n.identityPoolId, r = n.region, i = n.mandatorySignIn, o = n.identityPoolRegion, i ? [2, Promise.reject("cannot get guest credentials when mandatory signin enabled")] : s ? !o && !r ? (Mt.debug("region is not configured for getting the credentials"), [2, Promise.reject("region is not configured for getting the credentials")]) : (d = this, [4, this._getGuestIdentityId()]) : (Mt.debug("No Cognito Identity pool provided for unauthenticated access"), [2, Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);
6949
6719
  case 1:
6950
6720
  return a = d._identityId = p.sent(), l = { region: o != null ? o : r }, c = function() {
6951
6721
  return Xs(h, void 0, void 0, function() {
@@ -7142,7 +6912,7 @@ var b4 = function(t) {
7142
6912
  return Zs(this, function(y) {
7143
6913
  switch (y.label) {
7144
6914
  case 0:
7145
- if (Mt.debug("Load credentials successfully", l), this._identityId && !l.identityId && (l.identityId = this._identityId), o._credentials = l, o._credentials.authenticated = s, o._credentials_source = n, o._nextCredentialsRefresh = (/* @__PURE__ */ new Date()).getTime() + O7, n === "federated") {
6915
+ if (Mt.debug("Load credentials successfully", l), this._identityId && !l.identityId && (l.identityId = this._identityId), o._credentials = l, o._credentials.authenticated = s, o._credentials_source = n, o._nextCredentialsRefresh = (/* @__PURE__ */ new Date()).getTime() + j7, n === "federated") {
7146
6916
  c = Object.assign({ id: this._credentials.identityId }, r.user), u = r.provider, h = r.token, p = r.expires_at, f = r.identity_id;
7147
6917
  try {
7148
6918
  this._storage.setItem("aws-amplify-federatedInfo", JSON.stringify({
@@ -7247,8 +7017,8 @@ var b4 = function(t) {
7247
7017
  };
7248
7018
  }, t;
7249
7019
  }()
7250
- ), _4 = new M7(null);
7251
- jg.register(_4);
7020
+ ), v4 = new O7(null);
7021
+ Rg.register(v4);
7252
7022
  var zf = {};
7253
7023
  /*!
7254
7024
  * cookie
@@ -7257,7 +7027,7 @@ var zf = {};
7257
7027
  * MIT Licensed
7258
7028
  */
7259
7029
  var s3;
7260
- function z7() {
7030
+ function N7() {
7261
7031
  if (s3)
7262
7032
  return zf;
7263
7033
  s3 = 1, zf.parse = o, zf.serialize = l;
@@ -7391,16 +7161,16 @@ function z7() {
7391
7161
  }
7392
7162
  return zf;
7393
7163
  }
7394
- var Zm = z7();
7395
- function H7() {
7164
+ var Zm = N7();
7165
+ function L7() {
7396
7166
  const t = typeof global == "undefined" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
7397
7167
  return typeof t == "boolean" ? t : typeof document == "object" && typeof document.cookie == "string";
7398
7168
  }
7399
- function q7(t) {
7169
+ function Q7(t) {
7400
7170
  return typeof t == "string" ? Zm.parse(t) : typeof t == "object" && t !== null ? t : {};
7401
7171
  }
7402
7172
  function Nb(t, e = {}) {
7403
- const n = V7(t);
7173
+ const n = M7(t);
7404
7174
  if (!e.doNotParse)
7405
7175
  try {
7406
7176
  return JSON.parse(n);
@@ -7408,7 +7178,7 @@ function Nb(t, e = {}) {
7408
7178
  }
7409
7179
  return t;
7410
7180
  }
7411
- function V7(t) {
7181
+ function M7(t) {
7412
7182
  return t && t[0] === "j" && t[1] === ":" ? t.substr(2) : t;
7413
7183
  }
7414
7184
  class Lb {
@@ -7420,7 +7190,7 @@ class Lb {
7420
7190
  this.cookies = Zm.parse(document.cookie), this._checkChanges(r);
7421
7191
  };
7422
7192
  const s = typeof document == "undefined" ? "" : document.cookie;
7423
- this.cookies = q7(e || s), this.defaultSetOptions = n, this.HAS_DOCUMENT_COOKIE = H7();
7193
+ this.cookies = Q7(e || s), this.defaultSetOptions = n, this.HAS_DOCUMENT_COOKIE = L7();
7424
7194
  }
7425
7195
  _emitChange(e) {
7426
7196
  for (let n = 0; n < this.changeListeners.length; ++n)
@@ -7476,7 +7246,7 @@ var j0 = globalThis && globalThis.__assign || function() {
7476
7246
  }
7477
7247
  return t;
7478
7248
  }, j0.apply(this, arguments);
7479
- }, r3 = Ya().isBrowser, K7 = 365 * 24 * 60 * 60 * 1e3, G7 = (
7249
+ }, r3 = Ya().isBrowser, z7 = 365 * 24 * 60 * 60 * 1e3, H7 = (
7480
7250
  /** @class */
7481
7251
  function() {
7482
7252
  function t(e) {
@@ -7528,7 +7298,7 @@ var j0 = globalThis && globalThis.__assign || function() {
7528
7298
  // 'clockDrift',
7529
7299
  ];
7530
7300
  r.includes(s != null ? s : "") && this.setUniversalItem(e, n, {
7531
- expires: new Date(Date.now() + K7)
7301
+ expires: new Date(Date.now() + z7)
7532
7302
  });
7533
7303
  }, t.prototype.setLocalItem = function(e, n) {
7534
7304
  this.store[e] = n;
@@ -7542,7 +7312,7 @@ var j0 = globalThis && globalThis.__assign || function() {
7542
7312
  }));
7543
7313
  }, t;
7544
7314
  }()
7545
- ), W7 = "x-amz-user-agent";
7315
+ ), q7 = "x-amz-user-agent";
7546
7316
  /*! *****************************************************************************
7547
7317
  Copyright (c) Microsoft Corporation.
7548
7318
 
@@ -7557,16 +7327,16 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7557
7327
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7558
7328
  PERFORMANCE OF THIS SOFTWARE.
7559
7329
  ***************************************************************************** */
7560
- var H2 = function(t, e) {
7561
- return H2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
7330
+ var z2 = function(t, e) {
7331
+ return z2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
7562
7332
  n.__proto__ = s;
7563
7333
  } || function(n, s) {
7564
7334
  for (var r in s)
7565
7335
  s.hasOwnProperty(r) && (n[r] = s[r]);
7566
- }, H2(t, e);
7336
+ }, z2(t, e);
7567
7337
  };
7568
- function x4(t, e) {
7569
- H2(t, e);
7338
+ function w4(t, e) {
7339
+ z2(t, e);
7570
7340
  function n() {
7571
7341
  this.constructor = t;
7572
7342
  }
@@ -7704,13 +7474,13 @@ function Qb(t) {
7704
7474
  return t.hasOwnProperty(n);
7705
7475
  });
7706
7476
  }
7707
- function Y7(t) {
7477
+ function V7(t) {
7708
7478
  var e = ["customProvider"];
7709
7479
  return t && !!e.find(function(n) {
7710
7480
  return t.hasOwnProperty(n);
7711
7481
  });
7712
7482
  }
7713
- function J7(t) {
7483
+ function K7(t) {
7714
7484
  var e = ["customState"];
7715
7485
  return t && !!e.find(function(n) {
7716
7486
  return t.hasOwnProperty(n);
@@ -7723,7 +7493,7 @@ var tn;
7723
7493
  (function(t) {
7724
7494
  t.NoConfig = "noConfig", t.MissingAuthConfig = "missingAuthConfig", t.EmptyUsername = "emptyUsername", t.InvalidUsername = "invalidUsername", t.EmptyPassword = "emptyPassword", t.EmptyCode = "emptyCode", t.SignUpError = "signUpError", t.NoMFA = "noMFA", t.InvalidMFA = "invalidMFA", t.EmptyChallengeResponse = "emptyChallengeResponse", t.NoUserSession = "noUserSession", t.Default = "default", t.DeviceConfig = "deviceConfig", t.NetworkError = "networkError", t.AutoSignInError = "autoSignInError";
7725
7495
  })(tn || (tn = {}));
7726
- function X7(t) {
7496
+ function G7(t) {
7727
7497
  return !!t.username;
7728
7498
  }
7729
7499
  var i3;
@@ -7752,15 +7522,15 @@ var o3 = /* @__PURE__ */ function() {
7752
7522
  return this.clientMetadata;
7753
7523
  }, t;
7754
7524
  }(), vn = {}, Q1 = {};
7755
- Q1.byteLength = eO;
7756
- Q1.toByteArray = nO;
7757
- Q1.fromByteArray = iO;
7758
- var Ko = [], _i = [], Z7 = typeof Uint8Array != "undefined" ? Uint8Array : Array, Mb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7759
- for (var OA = 0, $7 = Mb.length; OA < $7; ++OA)
7525
+ Q1.byteLength = J7;
7526
+ Q1.toByteArray = Z7;
7527
+ Q1.fromByteArray = tO;
7528
+ var Ko = [], _i = [], W7 = typeof Uint8Array != "undefined" ? Uint8Array : Array, Mb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7529
+ for (var OA = 0, Y7 = Mb.length; OA < Y7; ++OA)
7760
7530
  Ko[OA] = Mb[OA], _i[Mb.charCodeAt(OA)] = OA;
7761
7531
  _i["-".charCodeAt(0)] = 62;
7762
7532
  _i["_".charCodeAt(0)] = 63;
7763
- function C4(t) {
7533
+ function _4(t) {
7764
7534
  var e = t.length;
7765
7535
  if (e % 4 > 0)
7766
7536
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -7769,30 +7539,30 @@ function C4(t) {
7769
7539
  var s = n === e ? 0 : 4 - n % 4;
7770
7540
  return [n, s];
7771
7541
  }
7772
- function eO(t) {
7773
- var e = C4(t), n = e[0], s = e[1];
7542
+ function J7(t) {
7543
+ var e = _4(t), n = e[0], s = e[1];
7774
7544
  return (n + s) * 3 / 4 - s;
7775
7545
  }
7776
- function tO(t, e, n) {
7546
+ function X7(t, e, n) {
7777
7547
  return (e + n) * 3 / 4 - n;
7778
7548
  }
7779
- function nO(t) {
7780
- var e, n = C4(t), s = n[0], r = n[1], i = new Z7(tO(t, s, r)), o = 0, a = r > 0 ? s - 4 : s, d;
7549
+ function Z7(t) {
7550
+ var e, n = _4(t), s = n[0], r = n[1], i = new W7(X7(t, s, r)), o = 0, a = r > 0 ? s - 4 : s, d;
7781
7551
  for (d = 0; d < a; d += 4)
7782
7552
  e = _i[t.charCodeAt(d)] << 18 | _i[t.charCodeAt(d + 1)] << 12 | _i[t.charCodeAt(d + 2)] << 6 | _i[t.charCodeAt(d + 3)], i[o++] = e >> 16 & 255, i[o++] = e >> 8 & 255, i[o++] = e & 255;
7783
7553
  return r === 2 && (e = _i[t.charCodeAt(d)] << 2 | _i[t.charCodeAt(d + 1)] >> 4, i[o++] = e & 255), r === 1 && (e = _i[t.charCodeAt(d)] << 10 | _i[t.charCodeAt(d + 1)] << 4 | _i[t.charCodeAt(d + 2)] >> 2, i[o++] = e >> 8 & 255, i[o++] = e & 255), i;
7784
7554
  }
7785
- function sO(t) {
7555
+ function $7(t) {
7786
7556
  return Ko[t >> 18 & 63] + Ko[t >> 12 & 63] + Ko[t >> 6 & 63] + Ko[t & 63];
7787
7557
  }
7788
- function rO(t, e, n) {
7558
+ function eO(t, e, n) {
7789
7559
  for (var s, r = [], i = e; i < n; i += 3)
7790
- s = (t[i] << 16 & 16711680) + (t[i + 1] << 8 & 65280) + (t[i + 2] & 255), r.push(sO(s));
7560
+ s = (t[i] << 16 & 16711680) + (t[i + 1] << 8 & 65280) + (t[i + 2] & 255), r.push($7(s));
7791
7561
  return r.join("");
7792
7562
  }
7793
- function iO(t) {
7563
+ function tO(t) {
7794
7564
  for (var e, n = t.length, s = n % 3, r = [], i = 16383, o = 0, a = n - s; o < a; o += i)
7795
- r.push(rO(t, o, o + i > a ? a : o + i));
7565
+ r.push(eO(t, o, o + i > a ? a : o + i));
7796
7566
  return s === 1 ? (e = t[n - 1], r.push(
7797
7567
  Ko[e >> 2] + Ko[e << 4 & 63] + "=="
7798
7568
  )) : s === 2 && (e = (t[n - 2] << 8) + t[n - 1], r.push(
@@ -7824,8 +7594,8 @@ M_.write = function(t, e, n, s, r, i) {
7824
7594
  ;
7825
7595
  t[n + p - f] |= y * 128;
7826
7596
  };
7827
- var oO = {}.toString, aO = Array.isArray || function(t) {
7828
- return oO.call(t) == "[object Array]";
7597
+ var nO = {}.toString, sO = Array.isArray || function(t) {
7598
+ return nO.call(t) == "[object Array]";
7829
7599
  };
7830
7600
  /*!
7831
7601
  * The buffer module from node.js, for the browser.
@@ -7834,7 +7604,7 @@ var oO = {}.toString, aO = Array.isArray || function(t) {
7834
7604
  * @license MIT
7835
7605
  */
7836
7606
  (function(t) {
7837
- var e = Q1, n = M_, s = aO;
7607
+ var e = Q1, n = M_, s = sO;
7838
7608
  t.Buffer = a, t.SlowBuffer = v, t.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = io.TYPED_ARRAY_SUPPORT !== void 0 ? io.TYPED_ARRAY_SUPPORT : r(), t.kMaxLength = i();
7839
7609
  function r() {
7840
7610
  try {
@@ -8636,7 +8406,7 @@ if (!Ei && typeof require == "function")
8636
8406
  Ei = require("crypto");
8637
8407
  } catch (t) {
8638
8408
  }
8639
- function lO() {
8409
+ function rO() {
8640
8410
  if (Ei) {
8641
8411
  if (typeof Ei.getRandomValues == "function")
8642
8412
  try {
@@ -8651,24 +8421,24 @@ function lO() {
8651
8421
  }
8652
8422
  throw new Error("Native crypto module could not be used to get secure random number.");
8653
8423
  }
8654
- function dO(t) {
8424
+ function iO(t) {
8655
8425
  for (var e = t.words, n = t.sigBytes, s = [], r = 0; r < n; r++) {
8656
8426
  var i = e[r >>> 2] >>> 24 - r % 4 * 8 & 255;
8657
8427
  s.push((i >>> 4).toString(16)), s.push((i & 15).toString(16));
8658
8428
  }
8659
8429
  return s.join("");
8660
8430
  }
8661
- var cO = /* @__PURE__ */ function() {
8431
+ var oO = /* @__PURE__ */ function() {
8662
8432
  function t(n, s) {
8663
8433
  n = this.words = n || [], s != null ? this.sigBytes = s : this.sigBytes = n.length * 4;
8664
8434
  }
8665
8435
  var e = t.prototype;
8666
8436
  return e.random = function(s) {
8667
8437
  for (var r = [], i = 0; i < s; i += 4)
8668
- r.push(lO());
8438
+ r.push(rO());
8669
8439
  return new t(r, s);
8670
8440
  }, e.toString = function() {
8671
- return dO(this);
8441
+ return iO(this);
8672
8442
  }, t;
8673
8443
  }();
8674
8444
  function rt(t, e) {
@@ -8677,22 +8447,22 @@ function rt(t, e) {
8677
8447
  function yr() {
8678
8448
  return new rt(null);
8679
8449
  }
8680
- var od, AO = 244837814094590, a3 = (AO & 16777215) == 15715070;
8681
- function uO(t, e, n, s, r, i) {
8450
+ var od, aO = 244837814094590, a3 = (aO & 16777215) == 15715070;
8451
+ function lO(t, e, n, s, r, i) {
8682
8452
  for (; --i >= 0; ) {
8683
8453
  var o = e * this[t++] + n[s] + r;
8684
8454
  r = Math.floor(o / 67108864), n[s++] = o & 67108863;
8685
8455
  }
8686
8456
  return r;
8687
8457
  }
8688
- function pO(t, e, n, s, r, i) {
8458
+ function dO(t, e, n, s, r, i) {
8689
8459
  for (var o = e & 32767, a = e >> 15; --i >= 0; ) {
8690
8460
  var d = this[t] & 32767, l = this[t++] >> 15, c = a * d + l * o;
8691
8461
  d = o * d + ((c & 32767) << 15) + n[s] + (r & 1073741823), r = (d >>> 30) + (c >>> 15) + a * l + (r >>> 30), n[s++] = d & 1073741823;
8692
8462
  }
8693
8463
  return r;
8694
8464
  }
8695
- function hO(t, e, n, s, r, i) {
8465
+ function cO(t, e, n, s, r, i) {
8696
8466
  for (var o = e & 16383, a = e >> 14; --i >= 0; ) {
8697
8467
  var d = this[t] & 16383, l = this[t++] >> 14, c = a * d + l * o;
8698
8468
  d = o * d + ((c & 16383) << 14) + n[s] + r, r = (d >> 28) + (c >> 14) + a * l, n[s++] = d & 268435455;
@@ -8700,7 +8470,7 @@ function hO(t, e, n, s, r, i) {
8700
8470
  return r;
8701
8471
  }
8702
8472
  var l3 = typeof navigator != "undefined";
8703
- l3 && a3 && navigator.appName == "Microsoft Internet Explorer" ? (rt.prototype.am = pO, od = 30) : l3 && a3 && navigator.appName != "Netscape" ? (rt.prototype.am = uO, od = 26) : (rt.prototype.am = hO, od = 28);
8473
+ l3 && a3 && navigator.appName == "Microsoft Internet Explorer" ? (rt.prototype.am = dO, od = 30) : l3 && a3 && navigator.appName != "Netscape" ? (rt.prototype.am = lO, od = 26) : (rt.prototype.am = cO, od = 28);
8704
8474
  rt.prototype.DB = od;
8705
8475
  rt.prototype.DM = (1 << od) - 1;
8706
8476
  rt.prototype.DV = 1 << od;
@@ -8708,7 +8478,7 @@ var z_ = 52;
8708
8478
  rt.prototype.FV = Math.pow(2, z_);
8709
8479
  rt.prototype.F1 = z_ - od;
8710
8480
  rt.prototype.F2 = 2 * od - z_;
8711
- var gO = "0123456789abcdefghijklmnopqrstuvwxyz", M1 = new Array(), $u, Si;
8481
+ var AO = "0123456789abcdefghijklmnopqrstuvwxyz", M1 = new Array(), $u, Si;
8712
8482
  $u = "0".charCodeAt(0);
8713
8483
  for (Si = 0; Si <= 9; ++Si)
8714
8484
  M1[$u++] = Si;
@@ -8719,25 +8489,25 @@ $u = "A".charCodeAt(0);
8719
8489
  for (Si = 10; Si < 36; ++Si)
8720
8490
  M1[$u++] = Si;
8721
8491
  function d3(t) {
8722
- return gO.charAt(t);
8492
+ return AO.charAt(t);
8723
8493
  }
8724
- function fO(t, e) {
8494
+ function uO(t, e) {
8725
8495
  var n = M1[t.charCodeAt(e)];
8726
8496
  return n == null ? -1 : n;
8727
8497
  }
8728
- function mO(t) {
8498
+ function pO(t) {
8729
8499
  for (var e = this.t - 1; e >= 0; --e)
8730
8500
  t[e] = this[e];
8731
8501
  t.t = this.t, t.s = this.s;
8732
8502
  }
8733
- function yO(t) {
8503
+ function hO(t) {
8734
8504
  this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0;
8735
8505
  }
8736
8506
  function H_(t) {
8737
8507
  var e = yr();
8738
8508
  return e.fromInt(t), e;
8739
8509
  }
8740
- function bO(t, e) {
8510
+ function gO(t, e) {
8741
8511
  var n;
8742
8512
  if (e == 16)
8743
8513
  n = 4;
@@ -8753,7 +8523,7 @@ function bO(t, e) {
8753
8523
  throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
8754
8524
  this.t = 0, this.s = 0;
8755
8525
  for (var s = t.length, r = !1, i = 0; --s >= 0; ) {
8756
- var o = fO(t, s);
8526
+ var o = uO(t, s);
8757
8527
  if (o < 0) {
8758
8528
  t.charAt(s) == "-" && (r = !0);
8759
8529
  continue;
@@ -8762,11 +8532,11 @@ function bO(t, e) {
8762
8532
  }
8763
8533
  this.clamp(), r && rt.ZERO.subTo(this, this);
8764
8534
  }
8765
- function vO() {
8535
+ function fO() {
8766
8536
  for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t; )
8767
8537
  --this.t;
8768
8538
  }
8769
- function wO(t) {
8539
+ function mO(t) {
8770
8540
  if (this.s < 0)
8771
8541
  return "-" + this.negate().toString(t);
8772
8542
  var e;
@@ -8788,14 +8558,14 @@ function wO(t) {
8788
8558
  a < e ? (s = (this[o] & (1 << a) - 1) << e - a, s |= this[--o] >> (a += this.DB - e)) : (s = this[o] >> (a -= e) & n, a <= 0 && (a += this.DB, --o)), s > 0 && (r = !0), r && (i += d3(s));
8789
8559
  return r ? i : "0";
8790
8560
  }
8791
- function _O() {
8561
+ function yO() {
8792
8562
  var t = yr();
8793
8563
  return rt.ZERO.subTo(this, t), t;
8794
8564
  }
8795
- function xO() {
8565
+ function bO() {
8796
8566
  return this.s < 0 ? this.negate() : this;
8797
8567
  }
8798
- function CO(t) {
8568
+ function vO(t) {
8799
8569
  var e = this.s - t.s;
8800
8570
  if (e != 0)
8801
8571
  return e;
@@ -8811,10 +8581,10 @@ function q_(t) {
8811
8581
  var e = 1, n;
8812
8582
  return (n = t >>> 16) != 0 && (t = n, e += 16), (n = t >> 8) != 0 && (t = n, e += 8), (n = t >> 4) != 0 && (t = n, e += 4), (n = t >> 2) != 0 && (t = n, e += 2), (n = t >> 1) != 0 && (t = n, e += 1), e;
8813
8583
  }
8814
- function BO() {
8584
+ function wO() {
8815
8585
  return this.t <= 0 ? 0 : this.DB * (this.t - 1) + q_(this[this.t - 1] ^ this.s & this.DM);
8816
8586
  }
8817
- function EO(t, e) {
8587
+ function _O(t, e) {
8818
8588
  var n;
8819
8589
  for (n = this.t - 1; n >= 0; --n)
8820
8590
  e[n + t] = this[n];
@@ -8822,12 +8592,12 @@ function EO(t, e) {
8822
8592
  e[n] = 0;
8823
8593
  e.t = this.t + t, e.s = this.s;
8824
8594
  }
8825
- function kO(t, e) {
8595
+ function xO(t, e) {
8826
8596
  for (var n = t; n < this.t; ++n)
8827
8597
  e[n - t] = this[n];
8828
8598
  e.t = Math.max(this.t - t, 0), e.s = this.s;
8829
8599
  }
8830
- function SO(t, e) {
8600
+ function CO(t, e) {
8831
8601
  var n = t % this.DB, s = this.DB - n, r = (1 << s) - 1, i = Math.floor(t / this.DB), o = this.s << n & this.DM, a;
8832
8602
  for (a = this.t - 1; a >= 0; --a)
8833
8603
  e[a + i + 1] = this[a] >> s | o, o = (this[a] & r) << n;
@@ -8835,7 +8605,7 @@ function SO(t, e) {
8835
8605
  e[a] = 0;
8836
8606
  e[i] = o, e.t = this.t + i + 1, e.s = this.s, e.clamp();
8837
8607
  }
8838
- function IO(t, e) {
8608
+ function BO(t, e) {
8839
8609
  e.s = this.s;
8840
8610
  var n = Math.floor(t / this.DB);
8841
8611
  if (n >= this.t) {
@@ -8848,7 +8618,7 @@ function IO(t, e) {
8848
8618
  e[o - n - 1] |= (this[o] & i) << r, e[o - n] = this[o] >> s;
8849
8619
  s > 0 && (e[this.t - n - 1] |= (this.s & i) << r), e.t = this.t - n, e.clamp();
8850
8620
  }
8851
- function TO(t, e) {
8621
+ function EO(t, e) {
8852
8622
  for (var n = 0, s = 0, r = Math.min(t.t, this.t); n < r; )
8853
8623
  s += this[n] - t[n], e[n++] = s & this.DM, s >>= this.DB;
8854
8624
  if (t.t < this.t) {
@@ -8862,7 +8632,7 @@ function TO(t, e) {
8862
8632
  }
8863
8633
  e.s = s < 0 ? -1 : 0, s < -1 ? e[n++] = this.DV + s : s > 0 && (e[n++] = s), e.t = n, e.clamp();
8864
8634
  }
8865
- function UO(t, e) {
8635
+ function kO(t, e) {
8866
8636
  var n = this.abs(), s = t.abs(), r = n.t;
8867
8637
  for (e.t = r + s.t; --r >= 0; )
8868
8638
  e[r] = 0;
@@ -8870,7 +8640,7 @@ function UO(t, e) {
8870
8640
  e[r + n.t] = n.am(0, s[r], e, r, 0, n.t);
8871
8641
  e.s = 0, e.clamp(), this.s != t.s && rt.ZERO.subTo(e, e);
8872
8642
  }
8873
- function RO(t) {
8643
+ function SO(t) {
8874
8644
  for (var e = this.abs(), n = t.t = 2 * e.t; --n >= 0; )
8875
8645
  t[n] = 0;
8876
8646
  for (n = 0; n < e.t - 1; ++n) {
@@ -8879,7 +8649,7 @@ function RO(t) {
8879
8649
  }
8880
8650
  t.t > 0 && (t[t.t - 1] += e.am(n, e[n], t, 2 * n, 0, 1)), t.s = 0, t.clamp();
8881
8651
  }
8882
- function jO(t, e, n) {
8652
+ function IO(t, e, n) {
8883
8653
  var s = t.abs();
8884
8654
  if (!(s.t <= 0)) {
8885
8655
  var r = this.abs();
@@ -8905,11 +8675,11 @@ function jO(t, e, n) {
8905
8675
  }
8906
8676
  }
8907
8677
  }
8908
- function PO(t) {
8678
+ function TO(t) {
8909
8679
  var e = yr();
8910
8680
  return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(rt.ZERO) > 0 && t.subTo(e, e), e;
8911
8681
  }
8912
- function DO() {
8682
+ function UO() {
8913
8683
  if (this.t < 1)
8914
8684
  return 0;
8915
8685
  var t = this[0];
@@ -8918,10 +8688,10 @@ function DO() {
8918
8688
  var e = t & 3;
8919
8689
  return e = e * (2 - (t & 15) * e) & 15, e = e * (2 - (t & 255) * e) & 255, e = e * (2 - ((t & 65535) * e & 65535)) & 65535, e = e * (2 - t * e % this.DV) % this.DV, e > 0 ? this.DV - e : -e;
8920
8690
  }
8921
- function FO(t) {
8691
+ function RO(t) {
8922
8692
  return this.compareTo(t) == 0;
8923
8693
  }
8924
- function OO(t, e) {
8694
+ function jO(t, e) {
8925
8695
  for (var n = 0, s = 0, r = Math.min(t.t, this.t); n < r; )
8926
8696
  s += this[n] + t[n], e[n++] = s & this.DM, s >>= this.DB;
8927
8697
  if (t.t < this.t) {
@@ -8935,34 +8705,34 @@ function OO(t, e) {
8935
8705
  }
8936
8706
  e.s = s < 0 ? -1 : 0, s > 0 ? e[n++] = s : s < -1 && (e[n++] = this.DV + s), e.t = n, e.clamp();
8937
8707
  }
8938
- function NO(t) {
8708
+ function PO(t) {
8939
8709
  var e = yr();
8940
8710
  return this.addTo(t, e), e;
8941
8711
  }
8942
- function LO(t) {
8712
+ function DO(t) {
8943
8713
  var e = yr();
8944
8714
  return this.subTo(t, e), e;
8945
8715
  }
8946
- function QO(t) {
8716
+ function FO(t) {
8947
8717
  var e = yr();
8948
8718
  return this.multiplyTo(t, e), e;
8949
8719
  }
8950
- function MO(t) {
8720
+ function OO(t) {
8951
8721
  var e = yr();
8952
8722
  return this.divRemTo(t, e, null), e;
8953
8723
  }
8954
8724
  function ep(t) {
8955
8725
  this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
8956
8726
  }
8957
- function zO(t) {
8727
+ function NO(t) {
8958
8728
  var e = yr();
8959
8729
  return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(rt.ZERO) > 0 && this.m.subTo(e, e), e;
8960
8730
  }
8961
- function HO(t) {
8731
+ function LO(t) {
8962
8732
  var e = yr();
8963
8733
  return t.copyTo(e), this.reduce(e), e;
8964
8734
  }
8965
- function qO(t) {
8735
+ function QO(t) {
8966
8736
  for (; t.t <= this.mt2; )
8967
8737
  t[t.t++] = 0;
8968
8738
  for (var e = 0; e < this.m.t; ++e) {
@@ -8972,18 +8742,18 @@ function qO(t) {
8972
8742
  }
8973
8743
  t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t);
8974
8744
  }
8975
- function VO(t, e) {
8745
+ function MO(t, e) {
8976
8746
  t.squareTo(e), this.reduce(e);
8977
8747
  }
8978
- function KO(t, e, n) {
8748
+ function zO(t, e, n) {
8979
8749
  t.multiplyTo(e, n), this.reduce(n);
8980
8750
  }
8981
- ep.prototype.convert = zO;
8982
- ep.prototype.revert = HO;
8983
- ep.prototype.reduce = qO;
8984
- ep.prototype.mulTo = KO;
8985
- ep.prototype.sqrTo = VO;
8986
- function GO(t, e, n) {
8751
+ ep.prototype.convert = NO;
8752
+ ep.prototype.revert = LO;
8753
+ ep.prototype.reduce = QO;
8754
+ ep.prototype.mulTo = zO;
8755
+ ep.prototype.sqrTo = MO;
8756
+ function HO(t, e, n) {
8987
8757
  var s = t.bitLength(), r, i = H_(1), o = new ep(e);
8988
8758
  if (s <= 0)
8989
8759
  return i;
@@ -9011,32 +8781,32 @@ function GO(t, e, n) {
9011
8781
  var v = o.revert(i);
9012
8782
  return n(null, v), v;
9013
8783
  }
9014
- rt.prototype.copyTo = mO;
9015
- rt.prototype.fromInt = yO;
9016
- rt.prototype.fromString = bO;
9017
- rt.prototype.clamp = vO;
9018
- rt.prototype.dlShiftTo = EO;
9019
- rt.prototype.drShiftTo = kO;
9020
- rt.prototype.lShiftTo = SO;
9021
- rt.prototype.rShiftTo = IO;
9022
- rt.prototype.subTo = TO;
9023
- rt.prototype.multiplyTo = UO;
9024
- rt.prototype.squareTo = RO;
9025
- rt.prototype.divRemTo = jO;
9026
- rt.prototype.invDigit = DO;
9027
- rt.prototype.addTo = OO;
9028
- rt.prototype.toString = wO;
9029
- rt.prototype.negate = _O;
9030
- rt.prototype.abs = xO;
9031
- rt.prototype.compareTo = CO;
9032
- rt.prototype.bitLength = BO;
9033
- rt.prototype.mod = PO;
9034
- rt.prototype.equals = FO;
9035
- rt.prototype.add = NO;
9036
- rt.prototype.subtract = LO;
9037
- rt.prototype.multiply = QO;
9038
- rt.prototype.divide = MO;
9039
- rt.prototype.modPow = GO;
8784
+ rt.prototype.copyTo = pO;
8785
+ rt.prototype.fromInt = hO;
8786
+ rt.prototype.fromString = gO;
8787
+ rt.prototype.clamp = fO;
8788
+ rt.prototype.dlShiftTo = _O;
8789
+ rt.prototype.drShiftTo = xO;
8790
+ rt.prototype.lShiftTo = CO;
8791
+ rt.prototype.rShiftTo = BO;
8792
+ rt.prototype.subTo = EO;
8793
+ rt.prototype.multiplyTo = kO;
8794
+ rt.prototype.squareTo = SO;
8795
+ rt.prototype.divRemTo = IO;
8796
+ rt.prototype.invDigit = UO;
8797
+ rt.prototype.addTo = jO;
8798
+ rt.prototype.toString = mO;
8799
+ rt.prototype.negate = yO;
8800
+ rt.prototype.abs = bO;
8801
+ rt.prototype.compareTo = vO;
8802
+ rt.prototype.bitLength = wO;
8803
+ rt.prototype.mod = TO;
8804
+ rt.prototype.equals = RO;
8805
+ rt.prototype.add = PO;
8806
+ rt.prototype.subtract = DO;
8807
+ rt.prototype.multiply = FO;
8808
+ rt.prototype.divide = OO;
8809
+ rt.prototype.modPow = HO;
9040
8810
  rt.ZERO = H_(0);
9041
8811
  rt.ONE = H_(1);
9042
8812
  /*!
@@ -9044,11 +8814,11 @@ rt.ONE = H_(1);
9044
8814
  * SPDX-License-Identifier: Apache-2.0
9045
8815
  */
9046
8816
  function zb(t) {
9047
- return vn.Buffer.from(new cO().random(t).toString(), "hex");
8817
+ return vn.Buffer.from(new oO().random(t).toString(), "hex");
9048
8818
  }
9049
- var WO = /^[89a-f]/i, YO = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", JO = "userAttributes.", NA = /* @__PURE__ */ function() {
8819
+ var qO = /^[89a-f]/i, VO = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", KO = "userAttributes.", NA = /* @__PURE__ */ function() {
9050
8820
  function t(n) {
9051
- this.N = new rt(YO, 16), this.g = new rt("2", 16), this.k = new rt(this.hexHash("" + this.padHex(this.N) + this.padHex(this.g)), 16), this.smallAValue = this.generateRandomSmallA(), this.getLargeAValue(function() {
8821
+ this.N = new rt(VO, 16), this.g = new rt("2", 16), this.k = new rt(this.hexHash("" + this.padHex(this.N) + this.padHex(this.g)), 16), this.smallAValue = this.generateRandomSmallA(), this.getLargeAValue(function() {
9052
8822
  }), this.infoBits = vn.Buffer.from("Caldera Derived Key", "utf8"), this.poolName = n;
9053
8823
  }
9054
8824
  var e = t.prototype;
@@ -9122,12 +8892,12 @@ var WO = /^[89a-f]/i, YO = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD12902
9122
8892
  });
9123
8893
  });
9124
8894
  }, e.getNewPasswordRequiredChallengeUserAttributePrefix = function() {
9125
- return JO;
8895
+ return KO;
9126
8896
  }, e.padHex = function(s) {
9127
8897
  if (!(s instanceof rt))
9128
8898
  throw new Error("Not a BigInteger");
9129
8899
  var r = s.compareTo(rt.ZERO) < 0, i = s.abs().toString(16);
9130
- if (i = i.length % 2 !== 0 ? "0" + i : i, i = WO.test(i) ? "00" + i : i, r) {
8900
+ if (i = i.length % 2 !== 0 ? "0" + i : i, i = qO.test(i) ? "00" + i : i, r) {
9131
8901
  var o = i.split("").map(function(d) {
9132
8902
  var l = ~parseInt(d, 16) & 15;
9133
8903
  return "0123456789ABCDEF".charAt(l);
@@ -9141,7 +8911,7 @@ var WO = /^[89a-f]/i, YO = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD12902
9141
8911
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9142
8912
  * SPDX-License-Identifier: Apache-2.0
9143
8913
  */
9144
- var B4 = /* @__PURE__ */ function() {
8914
+ var x4 = /* @__PURE__ */ function() {
9145
8915
  function t(n) {
9146
8916
  this.jwtToken = n || "", this.payload = this.decodePayload();
9147
8917
  }
@@ -9161,41 +8931,41 @@ var B4 = /* @__PURE__ */ function() {
9161
8931
  }
9162
8932
  }, t;
9163
8933
  }();
9164
- function XO(t, e) {
9165
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, q2(t, e);
8934
+ function GO(t, e) {
8935
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, H2(t, e);
9166
8936
  }
9167
- function q2(t, e) {
9168
- return q2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
8937
+ function H2(t, e) {
8938
+ return H2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
9169
8939
  return n.__proto__ = s, n;
9170
- }, q2(t, e);
8940
+ }, H2(t, e);
9171
8941
  }
9172
- var V2 = /* @__PURE__ */ function(t) {
8942
+ var q2 = /* @__PURE__ */ function(t) {
9173
8943
  function e(n) {
9174
8944
  var s = n === void 0 ? {} : n, r = s.AccessToken;
9175
8945
  return t.call(this, r || "") || this;
9176
8946
  }
9177
- return XO(e, t), e;
9178
- }(B4);
9179
- function ZO(t, e) {
9180
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, K2(t, e);
8947
+ return GO(e, t), e;
8948
+ }(x4);
8949
+ function WO(t, e) {
8950
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, V2(t, e);
9181
8951
  }
9182
- function K2(t, e) {
9183
- return K2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
8952
+ function V2(t, e) {
8953
+ return V2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
9184
8954
  return n.__proto__ = s, n;
9185
- }, K2(t, e);
8955
+ }, V2(t, e);
9186
8956
  }
9187
- var G2 = /* @__PURE__ */ function(t) {
8957
+ var K2 = /* @__PURE__ */ function(t) {
9188
8958
  function e(n) {
9189
8959
  var s = n === void 0 ? {} : n, r = s.IdToken;
9190
8960
  return t.call(this, r || "") || this;
9191
8961
  }
9192
- return ZO(e, t), e;
9193
- }(B4);
8962
+ return WO(e, t), e;
8963
+ }(x4);
9194
8964
  /*!
9195
8965
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9196
8966
  * SPDX-License-Identifier: Apache-2.0
9197
8967
  */
9198
- var W2 = /* @__PURE__ */ function() {
8968
+ var G2 = /* @__PURE__ */ function() {
9199
8969
  function t(n) {
9200
8970
  var s = n === void 0 ? {} : n, r = s.RefreshToken;
9201
8971
  this.token = r || "";
@@ -9204,22 +8974,22 @@ var W2 = /* @__PURE__ */ function() {
9204
8974
  return e.getToken = function() {
9205
8975
  return this.token;
9206
8976
  }, t;
9207
- }(), $O = "5.0.4";
8977
+ }(), YO = "5.0.4";
9208
8978
  /*!
9209
8979
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9210
8980
  * SPDX-License-Identifier: Apache-2.0
9211
8981
  */
9212
- var eN = "aws-amplify/" + $O, E4 = {
9213
- userAgent: eN,
8982
+ var JO = "aws-amplify/" + YO, C4 = {
8983
+ userAgent: JO,
9214
8984
  isReactNative: typeof navigator != "undefined" && navigator.product === "ReactNative"
9215
- }, tN = function() {
9216
- return E4.userAgent;
8985
+ }, XO = function() {
8986
+ return C4.userAgent;
9217
8987
  };
9218
8988
  /*!
9219
8989
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9220
8990
  * SPDX-License-Identifier: Apache-2.0
9221
8991
  */
9222
- var Y2 = /* @__PURE__ */ function() {
8992
+ var W2 = /* @__PURE__ */ function() {
9223
8993
  function t(n) {
9224
8994
  var s = n === void 0 ? {} : n, r = s.IdToken, i = s.RefreshToken, o = s.AccessToken, a = s.ClockDrift;
9225
8995
  if (o == null || r == null)
@@ -9247,12 +9017,12 @@ var Y2 = /* @__PURE__ */ function() {
9247
9017
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9248
9018
  * SPDX-License-Identifier: Apache-2.0
9249
9019
  */
9250
- var nN = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], sN = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c3 = /* @__PURE__ */ function() {
9020
+ var ZO = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], $O = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c3 = /* @__PURE__ */ function() {
9251
9021
  function t() {
9252
9022
  }
9253
9023
  var e = t.prototype;
9254
9024
  return e.getNowString = function() {
9255
- var s = /* @__PURE__ */ new Date(), r = sN[s.getUTCDay()], i = nN[s.getUTCMonth()], o = s.getUTCDate(), a = s.getUTCHours();
9025
+ var s = /* @__PURE__ */ new Date(), r = $O[s.getUTCDay()], i = ZO[s.getUTCMonth()], o = s.getUTCDate(), a = s.getUTCHours();
9256
9026
  a < 10 && (a = "0" + a);
9257
9027
  var d = s.getUTCMinutes();
9258
9028
  d < 10 && (d = "0" + d);
@@ -9293,7 +9063,7 @@ var eu = /* @__PURE__ */ function() {
9293
9063
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9294
9064
  * SPDX-License-Identifier: Apache-2.0
9295
9065
  */
9296
- var rc = {}, rN = /* @__PURE__ */ function() {
9066
+ var rc = {}, eN = /* @__PURE__ */ function() {
9297
9067
  function t() {
9298
9068
  }
9299
9069
  return t.setItem = function(n, s) {
@@ -9305,12 +9075,12 @@ var rc = {}, rN = /* @__PURE__ */ function() {
9305
9075
  }, t.clear = function() {
9306
9076
  return rc = {}, rc;
9307
9077
  }, t;
9308
- }(), k4 = /* @__PURE__ */ function() {
9078
+ }(), B4 = /* @__PURE__ */ function() {
9309
9079
  function t() {
9310
9080
  try {
9311
9081
  this.storageWindow = window.localStorage, this.storageWindow.setItem("aws.cognito.test-ls", 1), this.storageWindow.removeItem("aws.cognito.test-ls");
9312
9082
  } catch (n) {
9313
- this.storageWindow = rN;
9083
+ this.storageWindow = eN;
9314
9084
  }
9315
9085
  }
9316
9086
  var e = t.prototype;
@@ -9322,11 +9092,11 @@ var rc = {}, rN = /* @__PURE__ */ function() {
9322
9092
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
9323
9093
  * SPDX-License-Identifier: Apache-2.0
9324
9094
  */
9325
- var iN = typeof navigator != "undefined", A3 = iN ? E4.isReactNative ? "react-native" : navigator.userAgent : "nodejs", J2 = /* @__PURE__ */ function() {
9095
+ var tN = typeof navigator != "undefined", A3 = tN ? C4.isReactNative ? "react-native" : navigator.userAgent : "nodejs", Y2 = /* @__PURE__ */ function() {
9326
9096
  function t(n) {
9327
9097
  if (n == null || n.Username == null || n.Pool == null)
9328
9098
  throw new Error("Username and Pool information are required.");
9329
- this.username = n.Username || "", this.pool = n.Pool, this.Session = null, this.client = n.Pool.client, this.signInUserSession = null, this.authenticationFlowType = "USER_SRP_AUTH", this.storage = n.Storage || new k4().getStorage(), this.keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(), this.userDataKey = this.keyPrefix + "." + this.username + ".userData";
9099
+ this.username = n.Username || "", this.pool = n.Pool, this.Session = null, this.client = n.Pool.client, this.signInUserSession = null, this.authenticationFlowType = "USER_SRP_AUTH", this.storage = n.Storage || new B4().getStorage(), this.keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(), this.userDataKey = this.keyPrefix + "." + this.username + ".userData";
9330
9100
  }
9331
9101
  var e = t.prototype;
9332
9102
  return e.setSignInUserSession = function(s) {
@@ -9745,18 +9515,18 @@ var iN = typeof navigator != "undefined", A3 = iN ? E4.isReactNative ? "react-na
9745
9515
  return s(null, this.signInUserSession);
9746
9516
  var i = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, o = i + ".idToken", a = i + ".accessToken", d = i + ".refreshToken", l = i + ".clockDrift";
9747
9517
  if (this.storage.getItem(o)) {
9748
- var c = new G2({
9518
+ var c = new K2({
9749
9519
  IdToken: this.storage.getItem(o)
9750
- }), u = new V2({
9520
+ }), u = new q2({
9751
9521
  AccessToken: this.storage.getItem(a)
9752
- }), h = new W2({
9522
+ }), h = new G2({
9753
9523
  RefreshToken: this.storage.getItem(d)
9754
9524
  }), p = parseInt(this.storage.getItem(l), 0) || 0, f = {
9755
9525
  IdToken: c,
9756
9526
  AccessToken: u,
9757
9527
  RefreshToken: h,
9758
9528
  ClockDrift: p
9759
- }, y = new Y2(f);
9529
+ }, y = new W2(f);
9760
9530
  if (y.isValid())
9761
9531
  return this.signInUserSession = y, s(null, this.signInUserSession);
9762
9532
  if (!h.getToken())
@@ -9809,12 +9579,12 @@ var iN = typeof navigator != "undefined", A3 = iN ? E4.isReactNative ? "react-na
9809
9579
  var s = "CognitoIdentityServiceProvider." + this.pool.getClientId(), r = s + "." + this.username + ".idToken", i = s + "." + this.username + ".accessToken", o = s + "." + this.username + ".refreshToken", a = s + ".LastAuthUser", d = s + "." + this.username + ".clockDrift";
9810
9580
  this.storage.removeItem(r), this.storage.removeItem(i), this.storage.removeItem(o), this.storage.removeItem(a), this.storage.removeItem(d);
9811
9581
  }, e.getCognitoUserSession = function(s) {
9812
- var r = new G2(s), i = new V2(s), o = new W2(s), a = {
9582
+ var r = new K2(s), i = new q2(s), o = new G2(s), a = {
9813
9583
  IdToken: r,
9814
9584
  AccessToken: i,
9815
9585
  RefreshToken: o
9816
9586
  };
9817
- return new Y2(a);
9587
+ return new W2(a);
9818
9588
  }, e.forgotPassword = function(s, r) {
9819
9589
  var i = {
9820
9590
  ClientId: this.pool.getClientId(),
@@ -10032,25 +9802,25 @@ var iN = typeof navigator != "undefined", A3 = iN ? E4.isReactNative ? "react-na
10032
9802
  });
10033
9803
  });
10034
9804
  }, t;
10035
- }(), oN = "auth";
9805
+ }(), nN = "auth";
10036
9806
  function Yl() {
10037
9807
  }
10038
- Yl.prototype.userAgent = tN();
10039
- var aN = function() {
10040
- Yl.category = oN;
9808
+ Yl.prototype.userAgent = XO();
9809
+ var sN = function() {
9810
+ Yl.category = nN;
10041
9811
  }, u3 = function(e) {
10042
9812
  Yl.framework = e;
10043
- }, lN = function(e) {
9813
+ }, rN = function(e) {
10044
9814
  var n = Yl.category ? " " + Yl.category : "", s = Yl.framework ? " framework/" + Yl.framework : "", r = "" + Yl.prototype.userAgent + n + s;
10045
9815
  return r;
10046
9816
  };
10047
- function dN(t, e) {
9817
+ function iN(t, e) {
10048
9818
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, eg(t, e);
10049
9819
  }
10050
- function X2(t) {
9820
+ function J2(t) {
10051
9821
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
10052
- return X2 = function(s) {
10053
- if (s === null || !AN(s))
9822
+ return J2 = function(s) {
9823
+ if (s === null || !aN(s))
10054
9824
  return s;
10055
9825
  if (typeof s != "function")
10056
9826
  throw new TypeError("Super expression must either be null or a function");
@@ -10060,30 +9830,30 @@ function X2(t) {
10060
9830
  e.set(s, r);
10061
9831
  }
10062
9832
  function r() {
10063
- return cN(s, arguments, Z2(this).constructor);
9833
+ return oN(s, arguments, X2(this).constructor);
10064
9834
  }
10065
9835
  return r.prototype = Object.create(s.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), eg(r, s);
10066
- }, X2(t);
9836
+ }, J2(t);
10067
9837
  }
10068
- function cN(t, e, n) {
10069
- if (S4())
9838
+ function oN(t, e, n) {
9839
+ if (E4())
10070
9840
  return Reflect.construct.apply(null, arguments);
10071
9841
  var s = [null];
10072
9842
  s.push.apply(s, e);
10073
9843
  var r = new (t.bind.apply(t, s))();
10074
9844
  return n && eg(r, n.prototype), r;
10075
9845
  }
10076
- function S4() {
9846
+ function E4() {
10077
9847
  try {
10078
9848
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
10079
9849
  }));
10080
9850
  } catch (e) {
10081
9851
  }
10082
- return (S4 = function() {
9852
+ return (E4 = function() {
10083
9853
  return !!t;
10084
9854
  })();
10085
9855
  }
10086
- function AN(t) {
9856
+ function aN(t) {
10087
9857
  try {
10088
9858
  return Function.toString.call(t).indexOf("[native code]") !== -1;
10089
9859
  } catch (e) {
@@ -10095,18 +9865,18 @@ function eg(t, e) {
10095
9865
  return n.__proto__ = s, n;
10096
9866
  }, eg(t, e);
10097
9867
  }
10098
- function Z2(t) {
10099
- return Z2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
9868
+ function X2(t) {
9869
+ return X2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
10100
9870
  return e.__proto__ || Object.getPrototypeOf(e);
10101
- }, Z2(t);
9871
+ }, X2(t);
10102
9872
  }
10103
- var uN = /* @__PURE__ */ function(t) {
9873
+ var lN = /* @__PURE__ */ function(t) {
10104
9874
  function e(n, s, r, i) {
10105
9875
  var o;
10106
9876
  return o = t.call(this, n) || this, o.code = s, o.name = r, o.statusCode = i, o;
10107
9877
  }
10108
- return dN(e, t), e;
10109
- }(/* @__PURE__ */ X2(Error)), pN = /* @__PURE__ */ function() {
9878
+ return iN(e, t), e;
9879
+ }(/* @__PURE__ */ J2(Error)), dN = /* @__PURE__ */ function() {
10110
9880
  function t(n, s, r) {
10111
9881
  this.endpoint = s || "https://cognito-idp." + n + ".amazonaws.com/";
10112
9882
  var i = r || {}, o = i.credentials;
@@ -10119,12 +9889,12 @@ var uN = /* @__PURE__ */ function(t) {
10119
9889
  var i = this;
10120
9890
  return new Promise(function(o, a) {
10121
9891
  i.request(s, r, function(d, l) {
10122
- d ? a(new uN(d.message, d.code, d.name, d.statusCode)) : o(l);
9892
+ d ? a(new lN(d.message, d.code, d.name, d.statusCode)) : o(l);
10123
9893
  });
10124
9894
  });
10125
9895
  }, e.requestWithRetry = function(s, r, i) {
10126
9896
  var o = this, a = 5 * 1e3;
10127
- mN(function(d) {
9897
+ pN(function(d) {
10128
9898
  return new Promise(function(l, c) {
10129
9899
  o.request(s, d, function(u, h) {
10130
9900
  u ? c(u) : l(h);
@@ -10139,7 +9909,7 @@ var uN = /* @__PURE__ */ function(t) {
10139
9909
  var o = {
10140
9910
  "Content-Type": "application/x-amz-json-1.1",
10141
9911
  "X-Amz-Target": "AWSCognitoIdentityProviderService." + s,
10142
- "X-Amz-User-Agent": lN(),
9912
+ "X-Amz-User-Agent": rN(),
10143
9913
  "Cache-Control": "no-store"
10144
9914
  }, a = Object.assign({}, this.fetchOptions, {
10145
9915
  headers: o,
@@ -10176,50 +9946,50 @@ var uN = /* @__PURE__ */ function(t) {
10176
9946
  }(), Hf = {
10177
9947
  debug: function() {
10178
9948
  }
10179
- }, hN = function(e) {
9949
+ }, cN = function(e) {
10180
9950
  var n = "nonRetryable";
10181
9951
  return e && e[n];
10182
9952
  };
10183
- function I4(t, e, n, s) {
9953
+ function k4(t, e, n, s) {
10184
9954
  if (s === void 0 && (s = 1), typeof t != "function")
10185
9955
  throw Error("functionToRetry must be a function");
10186
9956
  return Hf.debug(t.name + " attempt #" + s + " with args: " + JSON.stringify(e)), t.apply(void 0, e).catch(function(r) {
10187
- if (Hf.debug("error on " + t.name, r), hN(r))
9957
+ if (Hf.debug("error on " + t.name, r), cN(r))
10188
9958
  throw Hf.debug(t.name + " non retryable error", r), r;
10189
9959
  var i = n(s, e, r);
10190
9960
  if (Hf.debug(t.name + " retrying in " + i + " ms"), i !== !1)
10191
9961
  return new Promise(function(o) {
10192
9962
  return setTimeout(o, i);
10193
9963
  }).then(function() {
10194
- return I4(t, e, n, s + 1);
9964
+ return k4(t, e, n, s + 1);
10195
9965
  });
10196
9966
  throw r;
10197
9967
  });
10198
9968
  }
10199
- function gN(t) {
9969
+ function AN(t) {
10200
9970
  var e = 100, n = 100;
10201
9971
  return function(s) {
10202
9972
  var r = Math.pow(2, s) * e + n * Math.random();
10203
9973
  return r > t ? !1 : r;
10204
9974
  };
10205
9975
  }
10206
- var fN = 5 * 60 * 1e3;
10207
- function mN(t, e, n) {
10208
- return n === void 0 && (n = fN), I4(t, e, gN(n));
9976
+ var uN = 5 * 60 * 1e3;
9977
+ function pN(t, e, n) {
9978
+ return n === void 0 && (n = uN), k4(t, e, AN(n));
10209
9979
  }
10210
9980
  /*!
10211
9981
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
10212
9982
  * SPDX-License-Identifier: Apache-2.0
10213
9983
  */
10214
- var yN = 55, bN = /* @__PURE__ */ function() {
9984
+ var hN = 55, gN = /* @__PURE__ */ function() {
10215
9985
  function t(n, s) {
10216
9986
  var r = n || {}, i = r.UserPoolId, o = r.ClientId, a = r.endpoint, d = r.fetchOptions, l = r.AdvancedSecurityDataCollectionFlag;
10217
9987
  if (!i || !o)
10218
9988
  throw new Error("Both UserPoolId and ClientId are required.");
10219
- if (i.length > yN || !/^[\w-]+_[0-9a-zA-Z]+$/.test(i))
9989
+ if (i.length > hN || !/^[\w-]+_[0-9a-zA-Z]+$/.test(i))
10220
9990
  throw new Error("Invalid UserPoolId format.");
10221
9991
  var c = i.split("_")[0];
10222
- this.userPoolId = i, this.clientId = o, this.client = new pN(c, a, d), this.advancedSecurityDataCollectionFlag = l !== !1, this.storage = n.Storage || new k4().getStorage(), s && (this.wrapRefreshSessionCallback = s);
9992
+ this.userPoolId = i, this.clientId = o, this.client = new dN(c, a, d), this.advancedSecurityDataCollectionFlag = l !== !1, this.storage = n.Storage || new B4().getStorage(), s && (this.wrapRefreshSessionCallback = s);
10223
9993
  }
10224
9994
  var e = t.prototype;
10225
9995
  return e.getUserPoolId = function() {
@@ -10245,7 +10015,7 @@ var yN = 55, bN = /* @__PURE__ */ function() {
10245
10015
  Pool: l,
10246
10016
  Storage: l.storage
10247
10017
  }, f = {
10248
- user: new J2(p),
10018
+ user: new Y2(p),
10249
10019
  userConfirmed: h.UserConfirmed,
10250
10020
  userSub: h.UserSub,
10251
10021
  codeDeliveryDetails: h.CodeDeliveryDetails
@@ -10260,7 +10030,7 @@ var yN = 55, bN = /* @__PURE__ */ function() {
10260
10030
  Pool: this,
10261
10031
  Storage: this.storage
10262
10032
  };
10263
- return new J2(i);
10033
+ return new Y2(i);
10264
10034
  }
10265
10035
  return null;
10266
10036
  }, e.getUserContextData = function(s) {
@@ -10278,7 +10048,7 @@ var yN = 55, bN = /* @__PURE__ */ function() {
10278
10048
  return {};
10279
10049
  }
10280
10050
  }, t;
10281
- }(), T4 = { exports: {} };
10051
+ }(), S4 = { exports: {} };
10282
10052
  /*!
10283
10053
  * JavaScript Cookie v2.2.1
10284
10054
  * https://github.com/js-cookie/js-cookie
@@ -10368,8 +10138,8 @@ var yN = 55, bN = /* @__PURE__ */ function() {
10368
10138
  return r(function() {
10369
10139
  });
10370
10140
  });
10371
- })(T4);
10372
- var th = T4.exports, vN = /* @__PURE__ */ function() {
10141
+ })(S4);
10142
+ var th = S4.exports, fN = /* @__PURE__ */ function() {
10373
10143
  function t(n) {
10374
10144
  if (n === void 0 && (n = {}), n.domain && (this.domain = n.domain), n.path ? this.path = n.path : this.path = "/", Object.prototype.hasOwnProperty.call(n, "expires") ? this.expires = n.expires : this.expires = 365, Object.prototype.hasOwnProperty.call(n, "secure") ? this.secure = n.secure : this.secure = !0, Object.prototype.hasOwnProperty.call(n, "sameSite")) {
10375
10145
  if (!["strict", "lax", "none"].includes(n.sameSite))
@@ -10525,7 +10295,7 @@ D0.exports;
10525
10295
  n.punycode = o;
10526
10296
  })(io);
10527
10297
  })(D0, D0.exports);
10528
- var wN = D0.exports, _N = {
10298
+ var mN = D0.exports, yN = {
10529
10299
  isString: function(t) {
10530
10300
  return typeof t == "string";
10531
10301
  },
@@ -10539,10 +10309,10 @@ var wN = D0.exports, _N = {
10539
10309
  return t == null;
10540
10310
  }
10541
10311
  }, tg = {};
10542
- function xN(t, e) {
10312
+ function bN(t, e) {
10543
10313
  return Object.prototype.hasOwnProperty.call(t, e);
10544
10314
  }
10545
- var CN = function(t, e, n, s) {
10315
+ var vN = function(t, e, n, s) {
10546
10316
  e = e || "&", n = n || "=";
10547
10317
  var r = {};
10548
10318
  if (typeof t != "string" || t.length === 0)
@@ -10555,7 +10325,7 @@ var CN = function(t, e, n, s) {
10555
10325
  o > 0 && a > o && (a = o);
10556
10326
  for (var d = 0; d < a; ++d) {
10557
10327
  var l = t[d].replace(i, "%20"), c = l.indexOf(n), u, h, p, f;
10558
- c >= 0 ? (u = l.substr(0, c), h = l.substr(c + 1)) : (u = l, h = ""), p = decodeURIComponent(u), f = decodeURIComponent(h), xN(r, p) ? Array.isArray(r[p]) ? r[p].push(f) : r[p] = [r[p], f] : r[p] = f;
10328
+ c >= 0 ? (u = l.substr(0, c), h = l.substr(c + 1)) : (u = l, h = ""), p = decodeURIComponent(u), f = decodeURIComponent(h), bN(r, p) ? Array.isArray(r[p]) ? r[p].push(f) : r[p] = [r[p], f] : r[p] = f;
10559
10329
  }
10560
10330
  return r;
10561
10331
  }, nh = function(t) {
@@ -10569,7 +10339,7 @@ var CN = function(t, e, n, s) {
10569
10339
  default:
10570
10340
  return "";
10571
10341
  }
10572
- }, BN = function(t, e, n, s) {
10342
+ }, wN = function(t, e, n, s) {
10573
10343
  return e = e || "&", n = n || "=", t === null && (t = void 0), typeof t == "object" ? Object.keys(t).map(function(r) {
10574
10344
  var i = encodeURIComponent(nh(r)) + n;
10575
10345
  return Array.isArray(t[r]) ? t[r].map(function(o) {
@@ -10577,17 +10347,17 @@ var CN = function(t, e, n, s) {
10577
10347
  }).join(e) : i + encodeURIComponent(nh(t[r]));
10578
10348
  }).join(e) : s ? encodeURIComponent(nh(s)) + n + encodeURIComponent(nh(t)) : "";
10579
10349
  };
10580
- tg.decode = tg.parse = CN;
10581
- tg.encode = tg.stringify = BN;
10582
- var EN = wN, Qa = _N, ql = U4;
10350
+ tg.decode = tg.parse = vN;
10351
+ tg.encode = tg.stringify = wN;
10352
+ var _N = mN, Qa = yN, Hl = I4;
10583
10353
  function qa() {
10584
10354
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
10585
10355
  }
10586
- var kN = /^([a-z0-9.+-]+:)/i, SN = /:[0-9]*$/, IN = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, TN = ["<", ">", '"', "`", " ", "\r", `
10587
- `, " "], UN = ["{", "}", "|", "\\", "^", "`"].concat(TN), $2 = ["'"].concat(UN), p3 = ["%", "/", "?", ";", "#"].concat($2), h3 = ["/", "?", "#"], RN = 255, g3 = /^[+a-z0-9A-Z_-]{0,63}$/, jN = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, PN = {
10356
+ var xN = /^([a-z0-9.+-]+:)/i, CN = /:[0-9]*$/, BN = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, EN = ["<", ">", '"', "`", " ", "\r", `
10357
+ `, " "], kN = ["{", "}", "|", "\\", "^", "`"].concat(EN), Z2 = ["'"].concat(kN), p3 = ["%", "/", "?", ";", "#"].concat(Z2), h3 = ["/", "?", "#"], SN = 255, g3 = /^[+a-z0-9A-Z_-]{0,63}$/, IN = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, TN = {
10588
10358
  javascript: !0,
10589
10359
  "javascript:": !0
10590
- }, ew = {
10360
+ }, $2 = {
10591
10361
  javascript: !0,
10592
10362
  "javascript:": !0
10593
10363
  }, hu = {
@@ -10601,8 +10371,8 @@ var kN = /^([a-z0-9.+-]+:)/i, SN = /:[0-9]*$/, IN = /^(\/\/?(?!\/)[^\?\s]*)(\?[^
10601
10371
  "ftp:": !0,
10602
10372
  "gopher:": !0,
10603
10373
  "file:": !0
10604
- }, tw = tg;
10605
- function U4(t, e, n) {
10374
+ }, ew = tg;
10375
+ function I4(t, e, n) {
10606
10376
  if (t && Qa.isObject(t) && t instanceof qa)
10607
10377
  return t;
10608
10378
  var s = new qa();
@@ -10615,11 +10385,11 @@ qa.prototype.parse = function(t, e, n) {
10615
10385
  i[0] = i[0].replace(o, "/"), t = i.join(r);
10616
10386
  var a = t;
10617
10387
  if (a = a.trim(), !n && t.split("#").length === 1) {
10618
- var d = IN.exec(a);
10388
+ var d = BN.exec(a);
10619
10389
  if (d)
10620
- return this.path = a, this.href = a, this.pathname = d[1], d[2] ? (this.search = d[2], e ? this.query = tw.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
10390
+ return this.path = a, this.href = a, this.pathname = d[1], d[2] ? (this.search = d[2], e ? this.query = ew.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
10621
10391
  }
10622
- var l = kN.exec(a);
10392
+ var l = xN.exec(a);
10623
10393
  if (l) {
10624
10394
  l = l[0];
10625
10395
  var c = l.toLowerCase();
@@ -10627,9 +10397,9 @@ qa.prototype.parse = function(t, e, n) {
10627
10397
  }
10628
10398
  if (n || l || a.match(/^\/\/[^@\/]+@[^@\/]+/)) {
10629
10399
  var u = a.substr(0, 2) === "//";
10630
- u && !(l && ew[l]) && (a = a.substr(2), this.slashes = !0);
10400
+ u && !(l && $2[l]) && (a = a.substr(2), this.slashes = !0);
10631
10401
  }
10632
- if (!ew[l] && (u || l && !hu[l])) {
10402
+ if (!$2[l] && (u || l && !hu[l])) {
10633
10403
  for (var h = -1, p = 0; p < h3.length; p++) {
10634
10404
  var f = a.indexOf(h3[p]);
10635
10405
  f !== -1 && (h === -1 || f < h) && (h = f);
@@ -10649,19 +10419,19 @@ qa.prototype.parse = function(t, e, n) {
10649
10419
  for (var H = "", F = 0, X = E.length; F < X; F++)
10650
10420
  E.charCodeAt(F) > 127 ? H += "x" : H += E[F];
10651
10421
  if (!H.match(g3)) {
10652
- var K = B.slice(0, p), O = B.slice(p + 1), re = E.match(jN);
10422
+ var K = B.slice(0, p), O = B.slice(p + 1), re = E.match(IN);
10653
10423
  re && (K.push(re[1]), O.unshift(re[2])), O.length && (a = "/" + O.join(".") + a), this.hostname = K.join(".");
10654
10424
  break;
10655
10425
  }
10656
10426
  }
10657
10427
  }
10658
- this.hostname.length > RN ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), v || (this.hostname = EN.toASCII(this.hostname));
10428
+ this.hostname.length > SN ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), v || (this.hostname = _N.toASCII(this.hostname));
10659
10429
  var P = this.port ? ":" + this.port : "", z = this.hostname || "";
10660
10430
  this.host = z + P, this.href += this.host, v && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), a[0] !== "/" && (a = "/" + a));
10661
10431
  }
10662
- if (!PN[c])
10663
- for (var p = 0, k = $2.length; p < k; p++) {
10664
- var $ = $2[p];
10432
+ if (!TN[c])
10433
+ for (var p = 0, k = Z2.length; p < k; p++) {
10434
+ var $ = Z2[p];
10665
10435
  if (a.indexOf($) !== -1) {
10666
10436
  var ee = encodeURIComponent($);
10667
10437
  ee === $ && (ee = escape($)), a = a.split($).join(ee);
@@ -10670,7 +10440,7 @@ qa.prototype.parse = function(t, e, n) {
10670
10440
  var fe = a.indexOf("#");
10671
10441
  fe !== -1 && (this.hash = a.substr(fe), a = a.slice(0, fe));
10672
10442
  var ve = a.indexOf("?");
10673
- if (ve !== -1 ? (this.search = a.substr(ve), this.query = a.substr(ve + 1), e && (this.query = tw.parse(this.query)), a = a.slice(0, ve)) : e && (this.search = "", this.query = {}), a && (this.pathname = a), hu[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
10443
+ if (ve !== -1 ? (this.search = a.substr(ve), this.query = a.substr(ve + 1), e && (this.query = ew.parse(this.query)), a = a.slice(0, ve)) : e && (this.search = "", this.query = {}), a && (this.pathname = a), hu[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
10674
10444
  var P = this.pathname || "", xe = this.search || "";
10675
10445
  this.path = P + xe;
10676
10446
  }
@@ -10680,14 +10450,14 @@ qa.prototype.format = function() {
10680
10450
  var t = this.auth || "";
10681
10451
  t && (t = encodeURIComponent(t), t = t.replace(/%3A/i, ":"), t += "@");
10682
10452
  var e = this.protocol || "", n = this.pathname || "", s = this.hash || "", r = !1, i = "";
10683
- this.host ? r = t + this.host : this.hostname && (r = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (r += ":" + this.port)), this.query && Qa.isObject(this.query) && Object.keys(this.query).length && (i = tw.stringify(this.query));
10453
+ this.host ? r = t + this.host : this.hostname && (r = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (r += ":" + this.port)), this.query && Qa.isObject(this.query) && Object.keys(this.query).length && (i = ew.stringify(this.query));
10684
10454
  var o = this.search || i && "?" + i || "";
10685
10455
  return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || hu[e]) && r !== !1 ? (r = "//" + (r || ""), n && n.charAt(0) !== "/" && (n = "/" + n)) : r || (r = ""), s && s.charAt(0) !== "#" && (s = "#" + s), o && o.charAt(0) !== "?" && (o = "?" + o), n = n.replace(/[?#]/g, function(a) {
10686
10456
  return encodeURIComponent(a);
10687
10457
  }), o = o.replace("#", "%23"), e + r + n + o + s;
10688
10458
  };
10689
10459
  qa.prototype.resolve = function(t) {
10690
- return this.resolveObject(U4(t, !1, !0)).format();
10460
+ return this.resolveObject(I4(t, !1, !0)).format();
10691
10461
  };
10692
10462
  qa.prototype.resolveObject = function(t) {
10693
10463
  if (Qa.isString(t)) {
@@ -10715,7 +10485,7 @@ qa.prototype.resolveObject = function(t) {
10715
10485
  }
10716
10486
  return n.href = n.format(), n;
10717
10487
  }
10718
- if (n.protocol = t.protocol, !t.host && !ew[t.protocol]) {
10488
+ if (n.protocol = t.protocol, !t.host && !$2[t.protocol]) {
10719
10489
  for (var k = (t.pathname || "").split("/"); k.length && !(t.host = k.shift()); )
10720
10490
  ;
10721
10491
  t.host || (t.host = ""), t.hostname || (t.hostname = ""), k[0] !== "" && k.unshift(""), k.length < 2 && k.unshift(""), n.pathname = k.join("/");
@@ -10757,30 +10527,30 @@ qa.prototype.resolveObject = function(t) {
10757
10527
  return w = w || n.host && B.length, w && !re && B.unshift(""), B.length ? n.pathname = B.join("/") : (n.pathname = null, n.path = null), (!Qa.isNull(n.pathname) || !Qa.isNull(n.search)) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = t.auth || n.auth, n.slashes = n.slashes || t.slashes, n.href = n.format(), n;
10758
10528
  };
10759
10529
  qa.prototype.parseHost = function() {
10760
- var t = this.host, e = SN.exec(t);
10530
+ var t = this.host, e = CN.exec(t);
10761
10531
  e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);
10762
10532
  };
10763
- var DN = "_self", FN = function(t) {
10764
- var e = window.open(t, DN);
10533
+ var UN = "_self", RN = function(t) {
10534
+ var e = window.open(t, UN);
10765
10535
  return e ? Promise.resolve(e) : Promise.reject();
10766
- }, ON = function(t) {
10536
+ }, jN = function(t) {
10767
10537
  window.sessionStorage.setItem("oauth_state", t);
10768
- }, NN = function() {
10538
+ }, PN = function() {
10769
10539
  var t = window.sessionStorage.getItem("oauth_state");
10770
10540
  return window.sessionStorage.removeItem("oauth_state"), t;
10771
- }, LN = function(t) {
10541
+ }, DN = function(t) {
10772
10542
  window.sessionStorage.setItem("ouath_pkce_key", t);
10773
- }, QN = function() {
10543
+ }, FN = function() {
10774
10544
  var t = window.sessionStorage.getItem("ouath_pkce_key");
10775
10545
  return window.sessionStorage.removeItem("ouath_pkce_key"), t;
10776
- }, MN = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", Hb = function(t, e, n) {
10777
- La.dispatch("auth", { event: t, data: e, message: n }, "Auth", MN);
10778
- }, LA = new _o("OAuth"), zN = (
10546
+ }, ON = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", Hb = function(t, e, n) {
10547
+ La.dispatch("auth", { event: t, data: e, message: n }, "Auth", ON);
10548
+ }, LA = new _o("OAuth"), NN = (
10779
10549
  /** @class */
10780
10550
  function() {
10781
10551
  function t(e) {
10782
10552
  var n = e.config, s = e.cognitoClientId, r = e.scopes, i = r === void 0 ? [] : r;
10783
- if (this._urlOpener = n.urlOpener || FN, this._config = n, this._cognitoClientId = s, !this.isValidScopes(i))
10553
+ if (this._urlOpener = n.urlOpener || RN, this._config = n, this._cognitoClientId = s, !this.isValidScopes(i))
10784
10554
  throw Error("scopes must be a String Array");
10785
10555
  this._scopes = i;
10786
10556
  }
@@ -10790,10 +10560,10 @@ var DN = "_self", FN = function(t) {
10790
10560
  });
10791
10561
  }, t.prototype.oauthSignIn = function(e, n, s, r, i, o) {
10792
10562
  e === void 0 && (e = "code"), i === void 0 && (i = P0.Cognito);
10793
- var a = this._generateState(32), d = o ? a + "-" + gD(o) : a;
10794
- ON(d);
10563
+ var a = this._generateState(32), d = o ? a + "-" + AD(o) : a;
10564
+ jN(d);
10795
10565
  var l = this._generateRandom(128);
10796
- LN(l);
10566
+ DN(l);
10797
10567
  var c = this._generateChallenge(l), u = "S256", h = this._scopes.join(" "), p = Object.entries(Ms(Ms({ redirect_uri: s, response_type: e, client_id: r, identity_provider: i, scope: h, state: d }, e === "code" ? { code_challenge: c } : {}), e === "code" ? { code_challenge_method: u } : {})).map(function(y) {
10798
10568
  var w = Oa(y, 2), v = w[0], B = w[1];
10799
10569
  return encodeURIComponent(v) + "=" + encodeURIComponent(B);
@@ -10805,15 +10575,15 @@ var DN = "_self", FN = function(t) {
10805
10575
  return Xt(this, function(B) {
10806
10576
  switch (B.label) {
10807
10577
  case 0:
10808
- return n = (ql(e).query || "").split("&").map(function(k) {
10578
+ return n = (Hl(e).query || "").split("&").map(function(k) {
10809
10579
  return k.split("=");
10810
10580
  }).reduce(function(k, E) {
10811
10581
  var H, F = Oa(E, 2), X = F[0], K = F[1];
10812
10582
  return Ms(Ms({}, k), (H = {}, H[X] = K, H));
10813
- }, { code: void 0 }).code, s = ql(e).pathname || "/", r = ql(this._config.redirectSignIn).pathname || "/", !n || s !== r ? [
10583
+ }, { code: void 0 }).code, s = Hl(e).pathname || "/", r = Hl(this._config.redirectSignIn).pathname || "/", !n || s !== r ? [
10814
10584
  2
10815
10585
  /*return*/
10816
- ] : (i = "https://" + this._config.domain + "/oauth2/token", Hb("codeFlow", {}, "Retrieving tokens from " + i), o = kc(this._config) ? this._cognitoClientId : this._config.clientID, a = kc(this._config) ? this._config.redirectSignIn : this._config.redirectUri, d = QN(), l = Ms({
10586
+ ] : (i = "https://" + this._config.domain + "/oauth2/token", Hb("codeFlow", {}, "Retrieving tokens from " + i), o = kc(this._config) ? this._cognitoClientId : this._config.clientID, a = kc(this._config) ? this._config.redirectSignIn : this._config.redirectUri, d = FN(), l = Ms({
10817
10587
  grant_type: "authorization_code",
10818
10588
  code: n,
10819
10589
  client_id: o,
@@ -10822,13 +10592,13 @@ var DN = "_self", FN = function(t) {
10822
10592
  var E = Oa(k, 2), H = E[0], F = E[1];
10823
10593
  return encodeURIComponent(H) + "=" + encodeURIComponent(F);
10824
10594
  }).join("&"), u = {
10825
- category: P2.Auth,
10826
- action: D2.FederatedSignIn
10595
+ category: j2.Auth,
10596
+ action: P2.FederatedSignIn
10827
10597
  }, [4, fetch(i, {
10828
10598
  method: "POST",
10829
10599
  headers: (v = {
10830
10600
  "Content-Type": "application/x-www-form-urlencoded"
10831
- }, v[W7] = D_(u), v),
10601
+ }, v[q7] = D_(u), v),
10832
10602
  body: c
10833
10603
  })]);
10834
10604
  case 1:
@@ -10848,7 +10618,7 @@ var DN = "_self", FN = function(t) {
10848
10618
  return Jt(this, void 0, void 0, function() {
10849
10619
  var n, s, r;
10850
10620
  return Xt(this, function(i) {
10851
- return n = (ql(e).hash || "#").substr(1).split("&").map(function(o) {
10621
+ return n = (Hl(e).hash || "#").substr(1).split("&").map(function(o) {
10852
10622
  return o.split("=");
10853
10623
  }).reduce(function(o, a) {
10854
10624
  var d, l = Oa(a, 2), c = l[0], u = l[1];
@@ -10869,12 +10639,12 @@ var DN = "_self", FN = function(t) {
10869
10639
  return Xt(this, function(l) {
10870
10640
  switch (l.label) {
10871
10641
  case 0:
10872
- if (l.trys.push([0, 5, , 6]), n = e ? Ms(Ms({}, (ql(e).hash || "#").substr(1).split("&").map(function(c) {
10642
+ if (l.trys.push([0, 5, , 6]), n = e ? Ms(Ms({}, (Hl(e).hash || "#").substr(1).split("&").map(function(c) {
10873
10643
  return c.split("=");
10874
10644
  }).reduce(function(c, u) {
10875
10645
  var h = Oa(u, 2), p = h[0], f = h[1];
10876
10646
  return c[p] = f, c;
10877
- }, {})), (ql(e).query || "").split("&").map(function(c) {
10647
+ }, {})), (Hl(e).query || "").split("&").map(function(c) {
10878
10648
  return c.split("=");
10879
10649
  }).reduce(function(c, u) {
10880
10650
  var h = Oa(u, 2), p = h[0], f = h[1];
@@ -10902,7 +10672,7 @@ var DN = "_self", FN = function(t) {
10902
10672
  });
10903
10673
  }, t.prototype._validateState = function(e) {
10904
10674
  if (e) {
10905
- var n = NN(), s = e.state;
10675
+ var n = PN(), s = e.state;
10906
10676
  if (n && n !== s)
10907
10677
  throw new Error("Invalid state in OAuth flow");
10908
10678
  return s;
@@ -10948,7 +10718,7 @@ var DN = "_self", FN = function(t) {
10948
10718
  }, t;
10949
10719
  }()
10950
10720
  );
10951
- const HN = zN, qN = function(t) {
10721
+ const LN = NN, QN = function(t) {
10952
10722
  if (Ya().isBrowser && window.location) {
10953
10723
  var e = window.location.href;
10954
10724
  t({ url: e });
@@ -10959,27 +10729,27 @@ var Qs;
10959
10729
  (function(t) {
10960
10730
  t.DEFAULT_MSG = "Authentication Error", t.EMPTY_EMAIL = "Email cannot be empty", t.EMPTY_PHONE = "Phone number cannot be empty", t.EMPTY_USERNAME = "Username cannot be empty", t.INVALID_USERNAME = "The username should either be a string or one of the sign in types", t.EMPTY_PASSWORD = "Password cannot be empty", t.EMPTY_CODE = "Confirmation code cannot be empty", t.SIGN_UP_ERROR = "Error creating account", t.NO_MFA = "No valid MFA method provided", t.INVALID_MFA = "Invalid MFA type", t.EMPTY_CHALLENGE = "Challenge response cannot be empty", t.NO_USER_SESSION = "Failed to get the session because the user is empty", t.NETWORK_ERROR = "Network Error", t.DEVICE_CONFIG = "Device tracking has not been configured in this User Pool", t.AUTOSIGNIN_ERROR = "Please use your credentials to sign in";
10961
10731
  })(Qs || (Qs = {}));
10962
- var VN = new _o("AuthError"), Ll = (
10732
+ var MN = new _o("AuthError"), Ll = (
10963
10733
  /** @class */
10964
10734
  function(t) {
10965
- x4(e, t);
10735
+ w4(e, t);
10966
10736
  function e(n) {
10967
- var s = this, r = GN[n], i = r.message, o = r.log;
10968
- return s = t.call(this, i) || this, s.constructor = e, Object.setPrototypeOf(s, e.prototype), s.name = "AuthError", s.log = o || i, VN.error(s.log), s;
10737
+ var s = this, r = HN[n], i = r.message, o = r.log;
10738
+ return s = t.call(this, i) || this, s.constructor = e, Object.setPrototypeOf(s, e.prototype), s.name = "AuthError", s.log = o || i, MN.error(s.log), s;
10969
10739
  }
10970
10740
  return e;
10971
10741
  }(Error)
10972
- ), KN = (
10742
+ ), zN = (
10973
10743
  /** @class */
10974
10744
  function(t) {
10975
- x4(e, t);
10745
+ w4(e, t);
10976
10746
  function e(n) {
10977
10747
  var s = t.call(this, n) || this;
10978
10748
  return s.constructor = e, Object.setPrototypeOf(s, e.prototype), s.name = "NoUserPoolError", s;
10979
10749
  }
10980
10750
  return e;
10981
10751
  }(Ll)
10982
- ), GN = {
10752
+ ), HN = {
10983
10753
  noConfig: {
10984
10754
  message: Qs.DEFAULT_MSG,
10985
10755
  log: `
@@ -11047,14 +10817,14 @@ var VN = new _o("AuthError"), Ll = (
11047
10817
  default: {
11048
10818
  message: Qs.DEFAULT_MSG
11049
10819
  }
11050
- }, Qe = new _o("AuthClass"), f3 = "aws.cognito.signin.user.admin", WN = 10 * 1e3, YN = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", Kt = function(t, e, n) {
11051
- La.dispatch("auth", { event: t, data: e, message: n }, "Auth", YN);
11052
- }, JN = 60, XN = 3 * 60 * 1e3, ZN = (
10820
+ }, Qe = new _o("AuthClass"), f3 = "aws.cognito.signin.user.admin", qN = 10 * 1e3, VN = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", Kt = function(t, e, n) {
10821
+ La.dispatch("auth", { event: t, data: e, message: n }, "Auth", VN);
10822
+ }, KN = 60, GN = 3 * 60 * 1e3, WN = (
11053
10823
  /** @class */
11054
10824
  function() {
11055
10825
  function t(e) {
11056
10826
  var n = this;
11057
- this.userPool = null, this.user = null, this.oAuthFlowInProgress = !1, this.autoSignInInitiated = !1, this.inflightSessionPromise = null, this.inflightSessionPromiseCounter = 0, this.Credentials = _4, this.wrapRefreshSessionCallback = function(s) {
10827
+ this.userPool = null, this.user = null, this.oAuthFlowInProgress = !1, this.autoSignInInitiated = !1, this.inflightSessionPromise = null, this.inflightSessionPromiseCounter = 0, this.Credentials = v4, this.wrapRefreshSessionCallback = function(s) {
11058
10828
  var r = function(i, o) {
11059
10829
  return o ? Kt("tokenRefresh", void 0, "New token retrieved") : Kt("tokenRefresh_failure", i, "Failed to retrieve new token"), s(i, o);
11060
10830
  };
@@ -11073,7 +10843,7 @@ var VN = new _o("AuthError"), Ll = (
11073
10843
  n._storage.setItem("amplify-signin-with-hostedUI", "true");
11074
10844
  break;
11075
10845
  }
11076
- }), aN(), u3(jb.framework), jb.observeFrameworkChanges(function() {
10846
+ }), sN(), u3(jb.framework), jb.observeFrameworkChanges(function() {
11077
10847
  u3(jb.framework);
11078
10848
  });
11079
10849
  }
@@ -11084,11 +10854,11 @@ var VN = new _o("AuthError"), Ll = (
11084
10854
  if (!e)
11085
10855
  return this._config || {};
11086
10856
  Qe.debug("configure Auth");
11087
- var s = Object.assign({}, this._config, u4(e).Auth, e);
10857
+ var s = Object.assign({}, this._config, c4(e).Auth, e);
11088
10858
  this._config = s;
11089
10859
  var r = this._config, i = r.userPoolId, o = r.userPoolWebClientId, a = r.cookieStorage, d = r.oauth, l = r.region, c = r.identityPoolId, u = r.mandatorySignIn, h = r.refreshHandlers, p = r.identityPoolRegion, f = r.clientMetadata, y = r.endpoint, w = r.storage;
11090
10860
  if (!w)
11091
- a ? this._storage = new vN(a) : this._storage = e.ssr ? new G7() : new p4().getStorage();
10861
+ a ? this._storage = new fN(a) : this._storage = e.ssr ? new H7() : new A4().getStorage();
11092
10862
  else {
11093
10863
  if (!this._isValidAuthStorage(w))
11094
10864
  throw Qe.error("The storage in the Auth config is not valid!"), new Error("Empty storage object");
@@ -11100,7 +10870,7 @@ var VN = new _o("AuthError"), Ll = (
11100
10870
  ClientId: o,
11101
10871
  endpoint: y
11102
10872
  };
11103
- v.Storage = this._storage, this.userPool = new bN(v, this.wrapRefreshSessionCallback);
10873
+ v.Storage = this._storage, this.userPool = new gN(v, this.wrapRefreshSessionCallback);
11104
10874
  }
11105
10875
  this.Credentials.configure({
11106
10876
  mandatorySignIn: u,
@@ -11125,13 +10895,13 @@ var VN = new _o("AuthError"), Ll = (
11125
10895
  urlOpener: B.urlOpener,
11126
10896
  clientMetadata: f
11127
10897
  }, B.options);
11128
- this._oAuthHandler = new HN({
10898
+ this._oAuthHandler = new LN({
11129
10899
  scopes: k.scopes,
11130
10900
  config: k,
11131
10901
  cognitoClientId: k.cognitoClientId
11132
10902
  });
11133
10903
  var E = {};
11134
- qN(function(F) {
10904
+ QN(function(F) {
11135
10905
  var X = F.url;
11136
10906
  E[X] || (E[X] = !0, n._handleAuthResponse(X));
11137
10907
  });
@@ -11194,7 +10964,7 @@ var VN = new _o("AuthError"), Ll = (
11194
10964
  var n = this;
11195
10965
  this._storage.setItem("amplify-polling-started", "true");
11196
10966
  var s = Date.now(), r = setInterval(function() {
11197
- Date.now() - s > XN ? (clearInterval(r), Kt("autoSignIn_failure", null, "Please confirm your account and use your credentials to sign in."), n._storage.removeItem("amplify-auto-sign-in")) : n.signInAfterUserConfirmed(e, null, r);
10967
+ Date.now() - s > GN ? (clearInterval(r), Kt("autoSignIn_failure", null, "Please confirm your account and use your credentials to sign in."), n._storage.removeItem("amplify-auto-sign-in")) : n.signInAfterUserConfirmed(e, null, r);
11198
10968
  }, 5e3);
11199
10969
  }, t.prototype.signInAfterUserConfirmed = function(e, n, s) {
11200
10970
  return Jt(this, void 0, void 0, function() {
@@ -11261,7 +11031,7 @@ var VN = new _o("AuthError"), Ll = (
11261
11031
  var r = null, i = null, o = {};
11262
11032
  if (typeof e == "string")
11263
11033
  r = e, i = n;
11264
- else if (X7(e))
11034
+ else if (G7(e))
11265
11035
  typeof n != "undefined" && Qe.warn("The password should be defined under the first parameter object!"), r = e.username, i = e.password, o = e.validationData;
11266
11036
  else
11267
11037
  return this.rejectAuthError(tn.InvalidUsername);
@@ -11903,7 +11673,7 @@ var VN = new _o("AuthError"), Ll = (
11903
11673
  return this.isOAuthInProgress() ? (Qe.debug("OAuth signIn in progress, waiting for resolution..."), [4, new Promise(function(f) {
11904
11674
  var y = setTimeout(function() {
11905
11675
  Qe.debug("OAuth signIn in progress timeout"), La.remove("auth", w), f();
11906
- }, WN);
11676
+ }, qN);
11907
11677
  La.listen("auth", w);
11908
11678
  function w(v) {
11909
11679
  var B = v.payload, k = B.event;
@@ -12384,7 +12154,7 @@ var VN = new _o("AuthError"), Ll = (
12384
12154
  throw new Error("Federation requires either a User Pool or Identity Pool in config");
12385
12155
  if (typeof e == "undefined" && this._config.identityPoolId && !this._config.userPoolId)
12386
12156
  throw new Error("Federation with Identity Pools requires tokens passed as arguments");
12387
- return Qb(e) || Y7(e) || J7(e) || typeof e == "undefined" ? (r = e || {
12157
+ return Qb(e) || V7(e) || K7(e) || typeof e == "undefined" ? (r = e || {
12388
12158
  provider: P0.Cognito
12389
12159
  }, d = Qb(r) ? r.provider : r.customProvider, i = (Qb(r), r.customState), this._config.userPoolId && (o = kc(this._config.oauth) ? this._config.userPoolWebClientId : this._config.oauth.clientID, a = kc(this._config.oauth) ? this._config.oauth.redirectSignIn : this._config.oauth.redirectUri, this._oAuthHandler.oauthSignIn(this._config.oauth.responseType, this._config.oauth.domain, a, o, d, i)), [3, 4]) : [3, 1];
12390
12160
  case 1:
@@ -12422,12 +12192,12 @@ var VN = new _o("AuthError"), Ll = (
12422
12192
  case 1:
12423
12193
  if (w.trys.push([1, , 8, 9]), this.oAuthFlowInProgress = !0, !this._config.userPoolId)
12424
12194
  throw new Error("OAuth responses require a User Pool defined in config");
12425
- if (Kt("parsingCallbackUrl", { url: e }, "The callback url is being parsed"), n = e || (Ya().isBrowser ? window.location.href : ""), s = !!(ql(n).query || "").split("&").map(function(v) {
12195
+ if (Kt("parsingCallbackUrl", { url: e }, "The callback url is being parsed"), n = e || (Ya().isBrowser ? window.location.href : ""), s = !!(Hl(n).query || "").split("&").map(function(v) {
12426
12196
  return v.split("=");
12427
12197
  }).find(function(v) {
12428
12198
  var B = Oa(v, 1), k = B[0];
12429
12199
  return k === "code" || k === "error";
12430
- }), r = !!(ql(n).hash || "#").substr(1).split("&").map(function(v) {
12200
+ }), r = !!(Hl(n).hash || "#").substr(1).split("&").map(function(v) {
12431
12201
  return v.split("=");
12432
12202
  }).find(function(v) {
12433
12203
  var B = Oa(v, 1), k = B[0];
@@ -12438,19 +12208,19 @@ var VN = new _o("AuthError"), Ll = (
12438
12208
  case 2:
12439
12209
  return w.trys.push([2, 6, , 7]), [4, this._oAuthHandler.handleAuthResponse(n)];
12440
12210
  case 3:
12441
- return i = w.sent(), o = i.accessToken, a = i.idToken, d = i.refreshToken, l = i.state, c = new Y2({
12442
- IdToken: new G2({ IdToken: a }),
12443
- RefreshToken: new W2({
12211
+ return i = w.sent(), o = i.accessToken, a = i.idToken, d = i.refreshToken, l = i.state, c = new W2({
12212
+ IdToken: new K2({ IdToken: a }),
12213
+ RefreshToken: new G2({
12444
12214
  RefreshToken: d
12445
12215
  }),
12446
- AccessToken: new V2({
12216
+ AccessToken: new q2({
12447
12217
  AccessToken: o
12448
12218
  })
12449
12219
  }), u = void 0, this._config.identityPoolId ? [4, this.Credentials.set(c, "session")] : [3, 5];
12450
12220
  case 4:
12451
12221
  u = w.sent(), Qe.debug("AWS credentials", u), w.label = 5;
12452
12222
  case 5:
12453
- return h = /-/.test(l), p = this.createCognitoUser(c.getIdToken().decodePayload()["cognito:username"]), p.setSignInUserSession(c), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn), Kt("signIn", p, "A user " + p.getUsername() + " has been signed in"), Kt("cognitoHostedUI", p, "A user " + p.getUsername() + " has been signed in via Cognito Hosted UI"), h && (f = l.split("-").splice(1).join("-"), Kt("customOAuthState", fD(f), "State for user " + p.getUsername())), [2, u];
12223
+ return h = /-/.test(l), p = this.createCognitoUser(c.getIdToken().decodePayload()["cognito:username"]), p.setSignInUserSession(c), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn), Kt("signIn", p, "A user " + p.getUsername() + " has been signed in"), Kt("cognitoHostedUI", p, "A user " + p.getUsername() + " has been signed in via Cognito Hosted UI"), h && (f = l.split("-").splice(1).join("-"), Kt("customOAuthState", uD(f), "State for user " + p.getUsername())), [2, u];
12454
12224
  case 6:
12455
12225
  return y = w.sent(), Qe.debug("Error in cognito hosted auth response", y), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn), Kt("signIn_failure", y, "The OAuth response flow failed"), Kt("cognitoHostedUI_failure", y, "A failure occurred when returning to the Cognito Hosted UI"), Kt("customState_failure", y, "A failure occurred when returning state"), [3, 7];
12456
12226
  case 7:
@@ -12489,7 +12259,7 @@ var VN = new _o("AuthError"), Ll = (
12489
12259
  Pool: this.userPool
12490
12260
  };
12491
12261
  n.Storage = this._storage;
12492
- var s = this._config.authenticationFlowType, r = new J2(n);
12262
+ var s = this._config.authenticationFlowType, r = new Y2(n);
12493
12263
  return s && r.setAuthenticationFlowType(s), r;
12494
12264
  }, t.prototype._isValidAuthStorage = function(e) {
12495
12265
  return !!e && typeof e.getItem == "function" && typeof e.setItem == "function" && typeof e.removeItem == "function" && typeof e.clear == "function";
@@ -12499,7 +12269,7 @@ var VN = new _o("AuthError"), Ll = (
12499
12269
  return Promise.reject(new Ll(e));
12500
12270
  }, t.prototype.rejectNoUserPool = function() {
12501
12271
  var e = this.noUserPoolErrorHandler(this._config);
12502
- return Promise.reject(new KN(e));
12272
+ return Promise.reject(new zN(e));
12503
12273
  }, t.prototype.rememberDevice = function() {
12504
12274
  return Jt(this, void 0, void 0, function() {
12505
12275
  var e, n;
@@ -12581,15 +12351,245 @@ var VN = new _o("AuthError"), Ll = (
12581
12351
  a.code === "InvalidParameterException" ? i(new Ll(tn.DeviceConfig)) : a.code === "NetworkError" ? i(new Ll(tn.NetworkError)) : i(a);
12582
12352
  }
12583
12353
  };
12584
- e.listDevices(JN, null, o);
12354
+ e.listDevices(KN, null, o);
12585
12355
  })];
12586
12356
  }
12587
12357
  });
12588
12358
  });
12589
12359
  }, t;
12590
12360
  }()
12591
- ), F0 = new ZN(null);
12592
- jg.register(F0);
12361
+ ), F0 = new WN(null);
12362
+ Rg.register(F0);
12363
+ var T4 = {}, ku = {}, jg = {}, YN = io && io.__awaiter || function(t, e, n, s) {
12364
+ function r(i) {
12365
+ return i instanceof n ? i : new n(function(o) {
12366
+ o(i);
12367
+ });
12368
+ }
12369
+ return new (n || (n = Promise))(function(i, o) {
12370
+ function a(c) {
12371
+ try {
12372
+ l(s.next(c));
12373
+ } catch (u) {
12374
+ o(u);
12375
+ }
12376
+ }
12377
+ function d(c) {
12378
+ try {
12379
+ l(s.throw(c));
12380
+ } catch (u) {
12381
+ o(u);
12382
+ }
12383
+ }
12384
+ function l(c) {
12385
+ c.done ? i(c.value) : r(c.value).then(a, d);
12386
+ }
12387
+ l((s = s.apply(t, e || [])).next());
12388
+ });
12389
+ }, JN = io && io.__generator || function(t, e) {
12390
+ var n = { label: 0, sent: function() {
12391
+ if (i[0] & 1)
12392
+ throw i[1];
12393
+ return i[1];
12394
+ }, trys: [], ops: [] }, s, r, i, o;
12395
+ return o = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
12396
+ return this;
12397
+ }), o;
12398
+ function a(l) {
12399
+ return function(c) {
12400
+ return d([l, c]);
12401
+ };
12402
+ }
12403
+ function d(l) {
12404
+ if (s)
12405
+ throw new TypeError("Generator is already executing.");
12406
+ for (; o && (o = 0, l[0] && (n = 0)), n; )
12407
+ try {
12408
+ if (s = 1, r && (i = l[0] & 2 ? r.return : l[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, l[1])).done)
12409
+ return i;
12410
+ switch (r = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
12411
+ case 0:
12412
+ case 1:
12413
+ i = l;
12414
+ break;
12415
+ case 4:
12416
+ return n.label++, { value: l[1], done: !1 };
12417
+ case 5:
12418
+ n.label++, r = l[1], l = [0];
12419
+ continue;
12420
+ case 7:
12421
+ l = n.ops.pop(), n.trys.pop();
12422
+ continue;
12423
+ default:
12424
+ if (i = n.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12425
+ n = 0;
12426
+ continue;
12427
+ }
12428
+ if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
12429
+ n.label = l[1];
12430
+ break;
12431
+ }
12432
+ if (l[0] === 6 && n.label < i[1]) {
12433
+ n.label = i[1], i = l;
12434
+ break;
12435
+ }
12436
+ if (i && n.label < i[2]) {
12437
+ n.label = i[2], n.ops.push(l);
12438
+ break;
12439
+ }
12440
+ i[2] && n.ops.pop(), n.trys.pop();
12441
+ continue;
12442
+ }
12443
+ l = e.call(t, n);
12444
+ } catch (c) {
12445
+ l = [6, c], r = 0;
12446
+ } finally {
12447
+ s = i = 0;
12448
+ }
12449
+ if (l[0] & 5)
12450
+ throw l[1];
12451
+ return { value: l[0] ? l[1] : void 0, done: !0 };
12452
+ }
12453
+ };
12454
+ Object.defineProperty(jg, "__esModule", { value: !0 });
12455
+ jg.ReCaptchaInstance = void 0;
12456
+ var XN = function() {
12457
+ function t(e, n, s) {
12458
+ this.siteKey = e, this.recaptchaID = n, this.recaptcha = s, this.styleContainer = null;
12459
+ }
12460
+ return t.prototype.execute = function(e) {
12461
+ return YN(this, void 0, void 0, function() {
12462
+ var n;
12463
+ return JN(this, function(s) {
12464
+ switch (s.label) {
12465
+ case 0:
12466
+ return this.recaptcha.enterprise ? [4, this.recaptcha.enterprise.execute(this.recaptchaID, { action: e })] : [3, 2];
12467
+ case 1:
12468
+ return n = s.sent(), [3, 4];
12469
+ case 2:
12470
+ return [4, this.recaptcha.execute(this.recaptchaID, { action: e })];
12471
+ case 3:
12472
+ n = s.sent(), s.label = 4;
12473
+ case 4:
12474
+ return [2, n];
12475
+ }
12476
+ });
12477
+ });
12478
+ }, t.prototype.getSiteKey = function() {
12479
+ return this.siteKey;
12480
+ }, t.prototype.hideBadge = function() {
12481
+ this.styleContainer === null && (this.styleContainer = document.createElement("style"), this.styleContainer.innerHTML = ".grecaptcha-badge{visibility:hidden !important;}", document.head.appendChild(this.styleContainer));
12482
+ }, t.prototype.showBadge = function() {
12483
+ this.styleContainer !== null && (document.head.removeChild(this.styleContainer), this.styleContainer = null);
12484
+ }, t;
12485
+ }();
12486
+ jg.ReCaptchaInstance = XN;
12487
+ var tw = io && io.__assign || function() {
12488
+ return tw = Object.assign || function(t) {
12489
+ for (var e, n = 1, s = arguments.length; n < s; n++) {
12490
+ e = arguments[n];
12491
+ for (var r in e)
12492
+ Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
12493
+ }
12494
+ return t;
12495
+ }, tw.apply(this, arguments);
12496
+ };
12497
+ Object.defineProperty(ku, "__esModule", { value: !0 });
12498
+ ku.getInstance = ku.load = void 0;
12499
+ var ZN = jg, ql;
12500
+ (function(t) {
12501
+ t[t.NOT_LOADED = 0] = "NOT_LOADED", t[t.LOADING = 1] = "LOADING", t[t.LOADED = 2] = "LOADED";
12502
+ })(ql || (ql = {}));
12503
+ var U4 = function() {
12504
+ function t() {
12505
+ }
12506
+ return t.load = function(e, n) {
12507
+ if (n === void 0 && (n = {}), typeof document == "undefined")
12508
+ return Promise.reject(new Error("This is a library for the browser!"));
12509
+ if (t.getLoadingState() === ql.LOADED)
12510
+ return t.instance.getSiteKey() === e ? Promise.resolve(t.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
12511
+ if (t.getLoadingState() === ql.LOADING)
12512
+ return e !== t.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(r, i) {
12513
+ t.successfulLoadingConsumers.push(function(o) {
12514
+ return r(o);
12515
+ }), t.errorLoadingRunnable.push(function(o) {
12516
+ return i(o);
12517
+ });
12518
+ });
12519
+ t.instanceSiteKey = e, t.setLoadingState(ql.LOADING);
12520
+ var s = new t();
12521
+ return new Promise(function(r, i) {
12522
+ s.loadScript(e, n.useRecaptchaNet || !1, n.useEnterprise || !1, n.renderParameters ? n.renderParameters : {}, n.customUrl).then(function() {
12523
+ t.setLoadingState(ql.LOADED);
12524
+ var o = s.doExplicitRender(grecaptcha, e, n.explicitRenderParameters ? n.explicitRenderParameters : {}, n.useEnterprise || !1), a = new ZN.ReCaptchaInstance(e, o, grecaptcha);
12525
+ t.successfulLoadingConsumers.forEach(function(d) {
12526
+ return d(a);
12527
+ }), t.successfulLoadingConsumers = [], n.autoHideBadge && a.hideBadge(), t.instance = a, r(a);
12528
+ }).catch(function(o) {
12529
+ t.errorLoadingRunnable.forEach(function(a) {
12530
+ return a(o);
12531
+ }), t.errorLoadingRunnable = [], i(o);
12532
+ });
12533
+ });
12534
+ }, t.getInstance = function() {
12535
+ return t.instance;
12536
+ }, t.setLoadingState = function(e) {
12537
+ t.loadingState = e;
12538
+ }, t.getLoadingState = function() {
12539
+ return t.loadingState === null ? ql.NOT_LOADED : t.loadingState;
12540
+ }, t.prototype.loadScript = function(e, n, s, r, i) {
12541
+ var o = this;
12542
+ n === void 0 && (n = !1), s === void 0 && (s = !1), r === void 0 && (r = {}), i === void 0 && (i = "");
12543
+ var a = document.createElement("script");
12544
+ a.setAttribute("recaptcha-v3-script", ""), a.setAttribute("async", ""), a.setAttribute("defer", "");
12545
+ var d = "https://www.google.com/recaptcha/api.js";
12546
+ n ? s ? d = "https://recaptcha.net/recaptcha/enterprise.js" : d = "https://recaptcha.net/recaptcha/api.js" : s && (d = "https://www.google.com/recaptcha/enterprise.js"), i && (d = i), r.render && (r.render = void 0);
12547
+ var l = this.buildQueryString(r);
12548
+ return a.src = d + "?render=explicit" + l, new Promise(function(c, u) {
12549
+ a.addEventListener("load", o.waitForScriptToLoad(function() {
12550
+ c(a);
12551
+ }, s), !1), a.onerror = function(h) {
12552
+ t.setLoadingState(ql.NOT_LOADED), u(h);
12553
+ }, document.head.appendChild(a);
12554
+ });
12555
+ }, t.prototype.buildQueryString = function(e) {
12556
+ var n = Object.keys(e);
12557
+ return n.length < 1 ? "" : "&" + Object.keys(e).filter(function(s) {
12558
+ return !!e[s];
12559
+ }).map(function(s) {
12560
+ return s + "=" + e[s];
12561
+ }).join("&");
12562
+ }, t.prototype.waitForScriptToLoad = function(e, n) {
12563
+ var s = this;
12564
+ return function() {
12565
+ window.grecaptcha === void 0 ? setTimeout(function() {
12566
+ s.waitForScriptToLoad(e, n);
12567
+ }, t.SCRIPT_LOAD_DELAY) : n ? window.grecaptcha.enterprise.ready(function() {
12568
+ e();
12569
+ }) : window.grecaptcha.ready(function() {
12570
+ e();
12571
+ });
12572
+ };
12573
+ }, t.prototype.doExplicitRender = function(e, n, s, r) {
12574
+ var i = tw({ sitekey: n }, s);
12575
+ return s.container ? r ? e.enterprise.render(s.container, i) : e.render(s.container, i) : r ? e.enterprise.render(i) : e.render(i);
12576
+ }, t.loadingState = null, t.instance = null, t.instanceSiteKey = null, t.successfulLoadingConsumers = [], t.errorLoadingRunnable = [], t.SCRIPT_LOAD_DELAY = 25, t;
12577
+ }();
12578
+ ku.load = U4.load;
12579
+ ku.getInstance = U4.getInstance;
12580
+ (function(t) {
12581
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.ReCaptchaInstance = t.getInstance = t.load = void 0;
12582
+ var e = ku;
12583
+ Object.defineProperty(t, "load", { enumerable: !0, get: function() {
12584
+ return e.load;
12585
+ } }), Object.defineProperty(t, "getInstance", { enumerable: !0, get: function() {
12586
+ return e.getInstance;
12587
+ } });
12588
+ var n = jg;
12589
+ Object.defineProperty(t, "ReCaptchaInstance", { enumerable: !0, get: function() {
12590
+ return n.ReCaptchaInstance;
12591
+ } });
12592
+ })(T4);
12593
12593
  const $N = () => Ft.getConfig().VITE_DATADOG_ENV !== "production", V = {
12594
12594
  info: (t, e = {}) => {
12595
12595
  $N() && console.log(t, e), nB.logger.info(t, e);
@@ -12618,7 +12618,7 @@ class eL {
12618
12618
  return le(this, null, function* () {
12619
12619
  if (Ft.getConfig().VITE_ENV === "sandbox")
12620
12620
  return sessionStorage.setItem("key", e), e;
12621
- const s = yield (yield Gk.load(e)).execute("submit");
12621
+ const s = yield (yield T4.load(e)).execute("submit");
12622
12622
  return sessionStorage.setItem("key", e), sessionStorage.setItem("token", s), s;
12623
12623
  });
12624
12624
  }
@@ -12680,7 +12680,7 @@ class eL {
12680
12680
  let o = this._region;
12681
12681
  o || (o = i.VITE_COGNITO_REGION_1);
12682
12682
  const a = o === i.VITE_COGNITO_REGION_1 ? i.VITE_COGNITO_REGION_1 : i.VITE_COGNITO_REGION_2, d = a === i.VITE_COGNITO_REGION_1 ? i.VITE_IDENTITY_POOL_ID_1 : i.VITE_IDENTITY_POOL_ID_2;
12683
- jg.configure({
12683
+ Rg.configure({
12684
12684
  identityPoolId: d,
12685
12685
  identityPoolRegion: a,
12686
12686
  identityPoolService: "execute-api"
@@ -12699,7 +12699,7 @@ class eL {
12699
12699
  method: "POST",
12700
12700
  url: u,
12701
12701
  headers: p
12702
- }, { headers: y, url: w } = c4.sign(f, c, h), E = y, { host: v } = E, B = fb(E, ["host"]);
12702
+ }, { headers: y, url: w } = l4.sign(f, c, h), E = y, { host: v } = E, B = fb(E, ["host"]);
12703
12703
  V.info("createTokenWithAmplify", {
12704
12704
  context: n,
12705
12705
  tag: "AMPLIFY_TOKEN_CREATED",
@@ -12710,7 +12710,7 @@ class eL {
12710
12710
  }
12711
12711
  });
12712
12712
  const { data: k } = yield C0.post(w, null, { headers: B });
12713
- return console.log(k), this._token = `${k.token_type} ${k.access_token}`, k;
12713
+ return this._token = `${k.token_type} ${k.access_token}`, k;
12714
12714
  });
12715
12715
  }
12716
12716
  createToken(e, n, s, r) {
@@ -19571,10 +19571,10 @@ function jH(t, e, n, s) {
19571
19571
  }
19572
19572
  const Fh = sH(jH);
19573
19573
  sz(la(), "DD_LOGS", Fh);
19574
- const PH = "@ranty/ranty-sdk", DH = "3.17.0-beta.5", FH = 3, OH = !0, NH = {
19574
+ const PH = "@ranty/ranty-sdk", DH = "3.17.0-beta.6", FH = 3, OH = !0, NH = {
19575
19575
  "": {
19576
19576
  name: "@ranty/ranty-sdk",
19577
- version: "3.17.0-beta.5",
19577
+ version: "3.17.0-beta.6",
19578
19578
  license: "ISC",
19579
19579
  dependencies: {
19580
19580
  "@datadog/browser-logs": "^6.17.0",
@@ -42153,9 +42153,9 @@ const ih = su, Pi = class extends EventTarget {
42153
42153
  static getSignedUrl() {
42154
42154
  return le(this, null, function* () {
42155
42155
  const e = Ft.getConfig(), n = gu.region === e.VITE_COGNITO_REGION_1 ? e.VITE_COGNITO_REGION_1 : e.VITE_COGNITO_REGION_2, s = n === e.VITE_COGNITO_REGION_1 ? e.VITE_IDENTITY_POOL_ID_1 : e.VITE_IDENTITY_POOL_ID_2, r = "execute-api", i = gu.region === e.VITE_COGNITO_REGION_1 ? `${e.VITE_WS_DOMAIN_REGION_1}/notify` : `${e.VITE_WS_DOMAIN_REGION_2}/notify`;
42156
- jg.configure({ identityPoolId: s, identityPoolRegion: n, identityPoolService: r });
42156
+ Rg.configure({ identityPoolId: s, identityPoolRegion: n, identityPoolService: r });
42157
42157
  const o = F0.essentialCredentials(yield F0.currentCredentials());
42158
- return c4.signUrl(
42158
+ return l4.signUrl(
42159
42159
  i,
42160
42160
  {
42161
42161
  access_key: o.accessKeyId,
@@ -52061,13 +52061,11 @@ let ia = class t extends qe {
52061
52061
  return;
52062
52062
  }
52063
52063
  if (!Sx(this.payfacContext.paymentRequest) && (!t8(this.payfacContext.paymentRequest) || !gw(this.payfacContext.paymentRequest))) {
52064
- const o = wn.messages.find((a) => a.name === "no-payment-methods");
52065
- Object.assign(this.status, o), this.createEvent("button-pushed", ze.STATUS);
52064
+ const i = wn.messages.find((o) => o.name === "no-payment-methods");
52065
+ Object.assign(this.status, i), this.createEvent("button-pushed", ze.STATUS);
52066
52066
  return;
52067
52067
  }
52068
- gw(this.payfacContext.paymentRequest) && (yield this.getDataSCOF(this.payfacContext.paymentRequest.id)), Ix(this.payfacContext.paymentRequest) && (yield this.getDataA2A(this.payfacContext.paymentRequest.id)), yield this.getPromotions(), this.state.scofEnabled || (yield this.getInstallmentPlans());
52069
- const i = this.processPaymentInputs(s);
52070
- this.state.page = i || ze.MAIN, this.createEvent("button-pushed", this.state.page), this.requestUpdate();
52068
+ gw(this.payfacContext.paymentRequest) && (yield this.getDataSCOF(this.payfacContext.paymentRequest.id)), Ix(this.payfacContext.paymentRequest) && (yield this.getDataA2A(this.payfacContext.paymentRequest.id)), this.processPaymentInputs(s), this.state.onlyWallet || (yield this.getPromotions()), !this.state.scofEnabled && !this.state.onlyWallet && (yield this.getInstallmentPlans()), this.requestUpdate();
52071
52069
  } catch (s) {
52072
52070
  Ge("LOAD_DATA_ERROR", "Load data failed."), console.log(s), this.redirectByUnknownError();
52073
52071
  }
@@ -52160,7 +52158,7 @@ let ia = class t extends qe {
52160
52158
  }
52161
52159
  handleManualInputOnly() {
52162
52160
  var e, n;
52163
- return this.state.scofEnabled && ((e = this.state.userCardData) != null && e.list) && ((n = this.state.userCardData) == null ? void 0 : n.list.length) > 0 ? ze.CARD_LIST : ze.HOLDER_FORM;
52161
+ return this.state.scofEnabled && ((e = this.state.userCardData) != null && e.list) && ((n = this.state.userCardData) == null ? void 0 : n.list.length) > 0 ? this.createEvent("button-pushed", ze.CARD_LIST) : this.createEvent("button-pushed", ze.HOLDER_FORM);
52164
52162
  }
52165
52163
  handleDeepLinkModo() {
52166
52164
  var s;
@@ -52174,15 +52172,17 @@ let ia = class t extends qe {
52174
52172
  const n = this.hasOnlyWalletInput(e);
52175
52173
  this.state.onlyWallet = n;
52176
52174
  const s = this.isManualInputOnly(e);
52177
- if (this.state.onlyManualInput = s, n) {
52178
- if (ri())
52175
+ if (this.state.onlyManualInput = s, n)
52176
+ if (ri()) {
52179
52177
  this.handleDeepLinkModo();
52180
- else
52181
- return ze.QR;
52182
- return;
52183
- }
52178
+ return;
52179
+ } else {
52180
+ this.createEvent("button-pushed", ze.QR);
52181
+ return;
52182
+ }
52184
52183
  if (s)
52185
52184
  return this.handleManualInputOnly();
52185
+ this.createEvent("button-pushed", ze.MAIN);
52186
52186
  }
52187
52187
  redirectByUnknownError() {
52188
52188
  const e = wn.messages.find((n) => n.name === "unknown-error");
@@ -67985,7 +67985,7 @@ function(t) {
67985
67985
  var l = d.getContext("2d");
67986
67986
  l.fillStyle = "#fff", l.fillRect(0, 0, d.width, d.height);
67987
67987
  var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
67988
- return (xt.canvg ? Promise.resolve(xt.canvg) : import("./index.es-c0f33a93.js")).catch(function(h) {
67988
+ return (xt.canvg ? Promise.resolve(xt.canvg) : import("./index.es-e94107e7.js")).catch(function(h) {
67989
67989
  return Promise.reject(new Error("Could not load canvg: " + h));
67990
67990
  }).then(function(h) {
67991
67991
  return h.default ? h.default : h;