@tapni/auth 0.0.72 → 0.0.73

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.
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
8
8
  import { Browser as hn } from "@capacitor/browser";
9
9
  import $o from "qr-code-styling";
10
10
  import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
11
- const Xo = "0.0.72";
11
+ const Xo = "0.0.73";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
@@ -102,7 +102,7 @@ const Ft = {
102
102
  }, _e = Ft.instance;
103
103
  let He;
104
104
  pn.getId().then((n) => He = n.uuid);
105
- const Me = {
105
+ const Ne = {
106
106
  register(n, e) {
107
107
  return n.device_id = He, _e(e).post("/users/register", n);
108
108
  },
@@ -4469,11 +4469,13 @@ const ze = {
4469
4469
  });
4470
4470
  },
4471
4471
  async refreshTokenAction(n) {
4472
- if (!this.refreshToken || this.refreshing)
4472
+ if (!this.refreshToken || this.refreshing) {
4473
+ console.log("return-refreshTokenAction", this.refreshToken, this.refreshing);
4473
4474
  return;
4475
+ }
4474
4476
  this.refreshing = !0;
4475
4477
  const [e, t] = await Z(
4476
- Me.refreshToken({
4478
+ Ne.refreshToken({
4477
4479
  id: n.id,
4478
4480
  refreshToken: this.refreshToken,
4479
4481
  refreshTokenAction: !0
@@ -4484,7 +4486,7 @@ const ze = {
4484
4486
  t && t.data ? this.setToken(t.data.token) : console.error("Invalid response setToken"), this.refreshing = !1;
4485
4487
  },
4486
4488
  async login(n) {
4487
- const [e, t] = await Z(Me.login(n, this.$storage));
4489
+ const [e, t] = await Z(Ne.login(n, this.$storage));
4488
4490
  if (e)
4489
4491
  return this.errorHandler(e);
4490
4492
  if (t.data.success)
@@ -4508,31 +4510,31 @@ const ze = {
4508
4510
  },
4509
4511
  async register(n) {
4510
4512
  const [e, t] = await Z(
4511
- Me.register(n, this.$storage)
4513
+ Ne.register(n, this.$storage)
4512
4514
  );
4513
4515
  return e ? this.errorHandler(e) : t;
4514
4516
  },
4515
4517
  async verify(n) {
4516
- const [e, t] = await Z(Me.verify(n, this.$storage));
4518
+ const [e, t] = await Z(Ne.verify(n, this.$storage));
4517
4519
  return e ? this.errorHandler(e) : t;
4518
4520
  },
4519
4521
  async reset(n) {
4520
4522
  const [e, t] = await Z(
4521
- Me.sendResetEmail(n, this.$storage)
4523
+ Ne.sendResetEmail(n, this.$storage)
4522
4524
  );
4523
4525
  if (e)
4524
4526
  return this.errorHandler(e);
4525
4527
  t.data.success && this.successSnack(this.ssoLang[this.appLanguage].password_reset_success);
4526
4528
  },
4527
4529
  async exchangeAuthCode(n) {
4528
- const [e, t] = await Z(Me.exchangeAuthCode(n, this.$storage));
4530
+ const [e, t] = await Z(Ne.exchangeAuthCode(n, this.$storage));
4529
4531
  if (e)
4530
4532
  return this.errorHandler(e);
4531
4533
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.loginSuccess(t);
4532
4534
  },
4533
4535
  async changePassword(n) {
4534
4536
  const [e, t] = await Z(
4535
- Me.changePassword(n, this.$storage)
4537
+ Ne.changePassword(n, this.$storage)
4536
4538
  );
4537
4539
  return e ? this.errorHandler(e) : t.data.success;
4538
4540
  },
@@ -4580,7 +4582,7 @@ const ze = {
4580
4582
  return e ? this.errorHandler(e) : t;
4581
4583
  },
4582
4584
  async logout(n = !0) {
4583
- n && Me.logout({ token: this.refreshToken }, this.$storage), this.$storage && (this.$storage.username = "", this.$storage.ssoUser = "", this.$storage.UserId = ""), this.setLoggedInUserId(""), this.setToken(""), this.setRefreshToken(""), this.refreshToken ? Object.keys(this.loggedInAccounts).forEach((e) => {
4585
+ n && Ne.logout({ token: this.refreshToken }, this.$storage), this.$storage && (this.$storage.username = "", this.$storage.ssoUser = "", this.$storage.UserId = ""), this.setLoggedInUserId(""), this.setToken(""), this.setRefreshToken(""), this.refreshToken ? Object.keys(this.loggedInAccounts).forEach((e) => {
4584
4586
  this.loggedInAccounts[e].refreshToken === this.refreshToken && this.refreshTokenAction({
4585
4587
  id: this.loggedInAccounts[e].id
4586
4588
  }).then(() => (this.setLoggedInUserId(this.loggedInAccounts[e].id), this.$storage && (this.$storage.username = e, this.$storage.UserId = this.loggedInAccounts[e].id), this.getLoggedInAccounts(), this.$router.push("/" + e)));
@@ -4599,7 +4601,7 @@ const ze = {
4599
4601
  const n = this.getRefreshTokens();
4600
4602
  if (n && n.length >= 1) {
4601
4603
  const [e, t] = await Z(
4602
- Me.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
4604
+ Ne.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
4603
4605
  );
4604
4606
  if (e)
4605
4607
  return this.errorHandler(e);
@@ -4751,13 +4753,13 @@ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a5
4751
4753
  return this.googleLoad = !1;
4752
4754
  if (this.referral && (e.ref = this.referral), e.authentication && (e.authentication.accessToken || e.authentication.idToken)) {
4753
4755
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4754
- const [r, o] = await Z(Me.googleSDK(e, this.$storage));
4756
+ const [r, o] = await Z(Ne.googleSDK(e, this.$storage));
4755
4757
  if (r)
4756
4758
  return this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4757
4759
  if (o.data.success) {
4758
4760
  if (this.display === "popup")
4759
4761
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
4760
- await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: !1 }), setTimeout(() => {
4762
+ await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: this.isModal }), setTimeout(() => {
4761
4763
  this.googleLoad = !1;
4762
4764
  }, 1e3);
4763
4765
  } else
@@ -4806,7 +4808,7 @@ const Zr = {
4806
4808
  if (e)
4807
4809
  return this.facebookLoad = !1;
4808
4810
  if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
4809
- const [o, i] = await Z(Me.facebookSDK(t, this.$storage));
4811
+ const [o, i] = await Z(Ne.facebookSDK(t, this.$storage));
4810
4812
  if (o)
4811
4813
  return this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4812
4814
  if (i.data.success) {
@@ -4848,13 +4850,13 @@ const Zr = {
4848
4850
  return this.appleLoad = !1;
4849
4851
  if (e.response.tokenData = qr(e.response.identityToken), e && e.response && e.response.identityToken) {
4850
4852
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4851
- const [r, o] = await Z(Me.appleSDK(e.response, this.$storage));
4853
+ const [r, o] = await Z(Ne.appleSDK(e.response, this.$storage));
4852
4854
  if (r)
4853
4855
  return this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4854
4856
  if (o.data.success) {
4855
4857
  if (this.display === "popup")
4856
4858
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
4857
- await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: !1 }), setTimeout(() => {
4859
+ await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: this.isModal }), setTimeout(() => {
4858
4860
  this.appleLoad = !1;
4859
4861
  }, 1e3);
4860
4862
  } else
@@ -6222,17 +6224,17 @@ var we = (
6222
6224
  ];
6223
6225
  return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
6224
6226
  }, n.createAccount = function(e, t, r, o, i, a, s, u) {
6225
- var p, d, f, _, k, E, M = new n();
6226
- M.authorityType = ot.MSSTS_ACCOUNT_TYPE, M.clientInfo = e, M.homeAccountId = t, M.nativeAccountId = u;
6227
+ var p, d, f, _, k, E, N = new n();
6228
+ N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
6227
6229
  var Q = s || o && o.getPreferredCache();
6228
6230
  if (!Q)
6229
6231
  throw O.createInvalidCacheEnvironmentError();
6230
- if (M.environment = Q, M.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
6231
- M.idTokenClaims = r.claims, M.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6232
+ if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
6233
+ N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6232
6234
  var X = (_ = r == null ? void 0 : r.claims) === null || _ === void 0 ? void 0 : _.preferred_username, G = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
6233
- M.username = X || G || g.EMPTY_STRING, M.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6235
+ N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6234
6236
  }
6235
- return M.cloudGraphHostName = i, M.msGraphHost = a, M;
6237
+ return N.cloudGraphHostName = i, N.msGraphHost = a, N;
6236
6238
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
6237
6239
  var s, u, p, d, f = new n();
6238
6240
  f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
@@ -6291,7 +6293,7 @@ var rt = (
6291
6293
  }()
6292
6294
  );
6293
6295
  /*! @azure/msal-common v13.3.1 2023-10-27 */
6294
- var Ne = (
6296
+ var Me = (
6295
6297
  /** @class */
6296
6298
  function() {
6297
6299
  function n(e, t, r) {
@@ -6745,7 +6747,7 @@ var Ne = (
6745
6747
  var t = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";
6746
6748
  throw D.createUnexpectedError(t);
6747
6749
  }, e;
6748
- }(Ne)
6750
+ }(Me)
6749
6751
  );
6750
6752
  /*! @azure/msal-common v13.3.1 2023-10-27 */
6751
6753
  var ki = 300, no = {
@@ -7218,11 +7220,11 @@ var _t = (
7218
7220
  function e() {
7219
7221
  return n !== null && n.apply(this, arguments) || this;
7220
7222
  }
7221
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, M, Q) {
7223
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
7222
7224
  var X, G, $ = new e();
7223
7225
  $.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
7224
7226
  var Ae = Ke.nowSeconds();
7225
- if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, M && ($.requestedClaims = M, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
7227
+ if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
7226
7228
  switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
7227
7229
  case te.POP:
7228
7230
  var xe = rt.extractTokenClaims(o, d);
@@ -7240,7 +7242,7 @@ var _t = (
7240
7242
  }(rr)
7241
7243
  );
7242
7244
  /*! @azure/msal-common v13.3.1 2023-10-27 */
7243
- var Nt = (
7245
+ var Mt = (
7244
7246
  /** @class */
7245
7247
  function(n) {
7246
7248
  Ue(e, n);
@@ -7260,13 +7262,13 @@ var Ir = [
7260
7262
  "interaction_required",
7261
7263
  "consent_required",
7262
7264
  "login_required"
7263
- ], Ni = [
7265
+ ], Mi = [
7264
7266
  "message_only",
7265
7267
  "additional_action",
7266
7268
  "basic_action",
7267
7269
  "user_password_expired",
7268
7270
  "consent_required"
7269
- ], Mt = {
7271
+ ], Nt = {
7270
7272
  noTokensFoundError: {
7271
7273
  code: "no_tokens_found",
7272
7274
  desc: "No refresh token found in the cache. Please sign-in."
@@ -7284,14 +7286,14 @@ var Ir = [
7284
7286
  return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = u || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7285
7287
  }
7286
7288
  return e.isInteractionRequiredError = function(t, r, o) {
7287
- var i = !!t && Ir.indexOf(t) > -1, a = !!o && Ni.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
7289
+ var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
7288
7290
  return r.indexOf(u) > -1;
7289
7291
  });
7290
7292
  return i || s || a;
7291
7293
  }, e.createNoTokensFoundError = function() {
7292
- return new e(Mt.noTokensFoundError.code, Mt.noTokensFoundError.desc);
7294
+ return new e(Nt.noTokensFoundError.code, Nt.noTokensFoundError.desc);
7293
7295
  }, e.createNativeAccountUnavailableError = function() {
7294
- return new e(Mt.native_account_unavailable.code, Mt.native_account_unavailable.desc);
7296
+ return new e(Nt.native_account_unavailable.code, Nt.native_account_unavailable.desc);
7295
7297
  }, e;
7296
7298
  }(D)
7297
7299
  );
@@ -7444,7 +7446,7 @@ var kn;
7444
7446
  (function(n) {
7445
7447
  n[n.NotStarted = 0] = "NotStarted", n[n.InProgress = 1] = "InProgress", n[n.Completed = 2] = "Completed";
7446
7448
  })(kn || (kn = {}));
7447
- var Mi = /* @__PURE__ */ new Set([
7449
+ var Ni = /* @__PURE__ */ new Set([
7448
7450
  "accessTokenSize",
7449
7451
  "durationMs",
7450
7452
  "idTokenSize",
@@ -7597,7 +7599,7 @@ var wn = (
7597
7599
  }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
7598
7600
  var d;
7599
7601
  return j(this, void 0, void 0, function() {
7600
- var f, _, k, E, M, Q, X;
7602
+ var f, _, k, E, N, Q, X;
7601
7603
  return K(this, function(G) {
7602
7604
  switch (G.label) {
7603
7605
  case 0:
@@ -7612,7 +7614,7 @@ var wn = (
7612
7614
  }
7613
7615
  this.homeAccountIdentifier = we.generateHomeAccountId(e.client_info || g.EMPTY_STRING, t.authorityType, this.logger, this.cryptoObj, f), i && i.state && (k = st.parseRequestState(this.cryptoObj, i.state)), e.key_id = e.key_id || o.sshKid || void 0, E = this.generateCacheRecord(e, t, r, o, f, a, i), G.label = 1;
7614
7616
  case 1:
7615
- return G.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"), M = new Li(this.serializableCache, !0), [4, this.persistencePlugin.beforeCacheAccess(M)]) : [3, 3];
7617
+ return G.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"), N = new Li(this.serializableCache, !0), [4, this.persistencePlugin.beforeCacheAccess(N)]) : [3, 3];
7616
7618
  case 2:
7617
7619
  G.sent(), G.label = 3;
7618
7620
  case 3:
@@ -7620,7 +7622,7 @@ var wn = (
7620
7622
  case 4:
7621
7623
  return G.sent(), [3, 8];
7622
7624
  case 5:
7623
- return this.persistencePlugin && this.serializableCache && M ? (this.logger.verbose("Persistence enabled, calling afterCacheAccess"), [4, this.persistencePlugin.afterCacheAccess(M)]) : [3, 7];
7625
+ return this.persistencePlugin && this.serializableCache && N ? (this.logger.verbose("Persistence enabled, calling afterCacheAccess"), [4, this.persistencePlugin.afterCacheAccess(N)]) : [3, 7];
7624
7626
  case 6:
7625
7627
  G.sent(), G.label = 7;
7626
7628
  case 7:
@@ -7641,11 +7643,11 @@ var wn = (
7641
7643
  !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), d = this.generateAccountEntity(e, i, t, s));
7642
7644
  var f = null;
7643
7645
  if (!L.isEmpty(e.access_token)) {
7644
- var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, M = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = M && M > 0 ? r + M : void 0;
7646
+ var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, N = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = N && N > 0 ? r + N : void 0;
7645
7647
  f = _t.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
7646
7648
  }
7647
7649
  var $ = null;
7648
- L.isEmpty(e.refresh_token) || ($ = Nt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7650
+ L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7649
7651
  var Ae = null;
7650
7652
  return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new en(d, p, f, $, Ae);
7651
7653
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
@@ -7658,11 +7660,11 @@ var wn = (
7658
7660
  }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
7659
7661
  var d, f, _;
7660
7662
  return j(this, void 0, void 0, function() {
7661
- var k, E, M, Q, X, G, $, Ae, xe, Ve, Ct;
7663
+ var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
7662
7664
  return K(this, function(ce) {
7663
7665
  switch (ce.label) {
7664
7666
  case 0:
7665
- if (k = g.EMPTY_STRING, E = [], M = null, X = g.EMPTY_STRING, !r.accessToken)
7667
+ if (k = g.EMPTY_STRING, E = [], N = null, X = g.EMPTY_STRING, !r.accessToken)
7666
7668
  return [3, 4];
7667
7669
  if (r.accessToken.tokenType !== te.POP)
7668
7670
  return [3, 2];
@@ -7674,7 +7676,7 @@ var wn = (
7674
7676
  case 2:
7675
7677
  k = r.accessToken.secret, ce.label = 3;
7676
7678
  case 3:
7677
- E = Ee.fromString(r.accessToken.target).asArray(), M = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
7679
+ E = Ee.fromString(r.accessToken.target).asArray(), N = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
7678
7680
  case 4:
7679
7681
  return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
7680
7682
  authority: t.canonicalAuthority,
@@ -7686,7 +7688,7 @@ var wn = (
7686
7688
  idTokenClaims: a ? a.claims : {},
7687
7689
  accessToken: k,
7688
7690
  fromCache: o,
7689
- expiresOn: M,
7691
+ expiresOn: N,
7690
7692
  correlationId: i.correlationId,
7691
7693
  requestId: p || g.EMPTY_STRING,
7692
7694
  extExpiresOn: Q,
@@ -7729,7 +7731,7 @@ var ro = (
7729
7731
  }, e.prototype.acquireToken = function(t, r) {
7730
7732
  var o, i, a, s, u, p;
7731
7733
  return j(this, void 0, void 0, function() {
7732
- var d, f, _, k, E, M, Q = this;
7734
+ var d, f, _, k, E, N, Q = this;
7733
7735
  return K(this, function(X) {
7734
7736
  switch (X.label) {
7735
7737
  case 0:
@@ -7739,7 +7741,7 @@ var ro = (
7739
7741
  case 1:
7740
7742
  return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_HTTP_VERSION], E && (d == null || d.addStaticFields({
7741
7743
  httpVerAuthority: E
7742
- })), M = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), M.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, M.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
7744
+ })), N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
7743
7745
  return d == null || d.endMeasurement({
7744
7746
  success: !0
7745
7747
  }), G;
@@ -7914,7 +7916,7 @@ var oo = (
7914
7916
  return e.prototype.acquireToken = function(t) {
7915
7917
  var r, o, i, a, s, u, p;
7916
7918
  return j(this, void 0, void 0, function() {
7917
- var d, f, _, k, E, M, Q = this;
7919
+ var d, f, _, k, E, N, Q = this;
7918
7920
  return K(this, function(X) {
7919
7921
  switch (X.label) {
7920
7922
  case 0:
@@ -7924,7 +7926,7 @@ var oo = (
7924
7926
  refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
7925
7927
  }), k && (d == null || d.addStaticFields({
7926
7928
  httpVerToken: k
7927
- })), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID], M = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), M.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, M.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
7929
+ })), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID], N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
7928
7930
  return d == null || d.endMeasurement({
7929
7931
  success: !0
7930
7932
  }), G;
@@ -7951,7 +7953,7 @@ var oo = (
7951
7953
  try {
7952
7954
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
7953
7955
  } catch (f) {
7954
- if (u = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
7956
+ if (u = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
7955
7957
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
7956
7958
  throw f;
7957
7959
  }
@@ -8815,7 +8817,7 @@ var ao = (
8815
8817
  }, n.prototype.startPerformanceMeasuremeant = function(e, t) {
8816
8818
  return {};
8817
8819
  }, n.prototype.getIntFields = function() {
8818
- return Mi;
8820
+ return Ni;
8819
8821
  }, n.prototype.getPreQueueTime = function(e, t) {
8820
8822
  var r = this.preQueueTimeByCorrelationId.get(t);
8821
8823
  if (r) {
@@ -8952,7 +8954,7 @@ var ao = (
8952
8954
  }()
8953
8955
  );
8954
8956
  /*! @azure/msal-common v13.3.1 2023-10-27 */
8955
- var Nr = (
8957
+ var Mr = (
8956
8958
  /** @class */
8957
8959
  function() {
8958
8960
  function n() {
@@ -8973,9 +8975,9 @@ var Nr = (
8973
8975
  return e.prototype.generateId = function() {
8974
8976
  return "callback-id";
8975
8977
  }, e.prototype.startPerformanceMeasuremeant = function() {
8976
- return new Nr();
8978
+ return new Mr();
8977
8979
  }, e.prototype.startPerformanceMeasurement = function() {
8978
- return new Nr();
8980
+ return new Mr();
8979
8981
  }, e.prototype.calculateQueuedTime = function(t, r) {
8980
8982
  return 0;
8981
8983
  }, e.prototype.addQueueMeasurement = function(t, r, o) {
@@ -9165,7 +9167,7 @@ var A = {
9165
9167
  code: "native_prompt_not_supported",
9166
9168
  desc: "The provided prompt is not supported by the native platform. This request should be routed to the web based flow."
9167
9169
  }
9168
- }, N = (
9170
+ }, M = (
9169
9171
  /** @class */
9170
9172
  function(n) {
9171
9173
  be(e, n);
@@ -9333,10 +9335,10 @@ var x;
9333
9335
  (function(n) {
9334
9336
  n.Redirect = "redirect", n.Popup = "popup", n.Silent = "silent", n.None = "none";
9335
9337
  })(x || (x = {}));
9336
- var Mr;
9338
+ var Nr;
9337
9339
  (function(n) {
9338
9340
  n.Startup = "startup", n.Login = "login", n.Logout = "logout", n.AcquireToken = "acquireToken", n.SsoSilent = "ssoSilent", n.HandleRedirect = "handleRedirect", n.None = "none";
9339
- })(Mr || (Mr = {}));
9341
+ })(Nr || (Nr = {}));
9340
9342
  var Lr = {
9341
9343
  scopes: an
9342
9344
  }, Bt = "jwk", Or;
@@ -9540,7 +9542,7 @@ var $n = (
9540
9542
  case H.ID_TOKEN:
9541
9543
  if (gt.isIdTokenEntity(u)) {
9542
9544
  t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + a + " found, saving key to token key map");
9543
- var p = Ne.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9545
+ var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9544
9546
  t.addTokenKey(d, H.ID_TOKEN);
9545
9547
  return;
9546
9548
  } else
@@ -9550,16 +9552,16 @@ var $n = (
9550
9552
  case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
9551
9553
  if (_t.isAccessTokenEntity(u)) {
9552
9554
  t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
9553
- var f = Ne.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9555
+ var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9554
9556
  t.addTokenKey(d, H.ACCESS_TOKEN);
9555
9557
  return;
9556
9558
  } else
9557
9559
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + a);
9558
9560
  break;
9559
9561
  case H.REFRESH_TOKEN:
9560
- if (Nt.isRefreshTokenEntity(u)) {
9562
+ if (Mt.isRefreshTokenEntity(u)) {
9561
9563
  t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + a + " found, saving key to token key map");
9562
- var _ = Ne.toObject(new Nt(), u), d = t.updateCredentialCacheKey(a, _);
9564
+ var _ = Me.toObject(new Mt(), u), d = t.updateCredentialCacheKey(a, _);
9563
9565
  t.addTokenKey(d, H.REFRESH_TOKEN);
9564
9566
  return;
9565
9567
  } else
@@ -9593,7 +9595,7 @@ var $n = (
9593
9595
  if (!r)
9594
9596
  return this.removeAccountKeyFromMap(t), null;
9595
9597
  var o = this.validateAndParseJson(r);
9596
- return !o || !we.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) : Ne.toObject(new we(), o);
9598
+ return !o || !we.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) : Me.toObject(new we(), o);
9597
9599
  }, e.prototype.setAccount = function(t) {
9598
9600
  this.logger.trace("BrowserCacheManager.setAccount called");
9599
9601
  var r = t.generateAccountKey();
@@ -9692,7 +9694,7 @@ var $n = (
9692
9694
  if (!r)
9693
9695
  return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null;
9694
9696
  var o = this.validateAndParseJson(r);
9695
- return !o || !gt.isIdTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"), Ne.toObject(new gt(), o));
9697
+ return !o || !gt.isIdTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"), Me.toObject(new gt(), o));
9696
9698
  }, e.prototype.setIdTokenCredential = function(t) {
9697
9699
  this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
9698
9700
  var r = t.generateCredentialKey();
@@ -9702,7 +9704,7 @@ var $n = (
9702
9704
  if (!r)
9703
9705
  return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null;
9704
9706
  var o = this.validateAndParseJson(r);
9705
- return !o || !_t.isAccessTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"), Ne.toObject(new _t(), o));
9707
+ return !o || !_t.isAccessTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"), Me.toObject(new _t(), o));
9706
9708
  }, e.prototype.setAccessTokenCredential = function(t) {
9707
9709
  this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
9708
9710
  var r = t.generateCredentialKey();
@@ -9712,7 +9714,7 @@ var $n = (
9712
9714
  if (!r)
9713
9715
  return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.REFRESH_TOKEN), null;
9714
9716
  var o = this.validateAndParseJson(r);
9715
- return !o || !Nt.isRefreshTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.REFRESH_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"), Ne.toObject(new Nt(), o));
9717
+ return !o || !Mt.isRefreshTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.REFRESH_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"), Me.toObject(new Mt(), o));
9716
9718
  }, e.prototype.setRefreshTokenCredential = function(t) {
9717
9719
  this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");
9718
9720
  var r = t.generateCredentialKey();
@@ -9722,7 +9724,7 @@ var $n = (
9722
9724
  if (!r)
9723
9725
  return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null;
9724
9726
  var o = this.validateAndParseJson(r);
9725
- return !o || !Vn.isAppMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"), Ne.toObject(new Vn(), o));
9727
+ return !o || !Vn.isAppMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"), Me.toObject(new Vn(), o));
9726
9728
  }, e.prototype.setAppMetadata = function(t) {
9727
9729
  this.logger.trace("BrowserCacheManager.setAppMetadata called");
9728
9730
  var r = t.generateAppMetadataKey();
@@ -9732,7 +9734,7 @@ var $n = (
9732
9734
  if (!r)
9733
9735
  return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null;
9734
9736
  var o = this.validateAndParseJson(r);
9735
- return !o || !Cn.isServerTelemetryEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"), Ne.toObject(new Cn(), o));
9737
+ return !o || !Cn.isServerTelemetryEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"), Me.toObject(new Cn(), o));
9736
9738
  }, e.prototype.setServerTelemetry = function(t, r) {
9737
9739
  this.logger.trace("BrowserCacheManager.setServerTelemetry called"), this.setItem(t, JSON.stringify(r));
9738
9740
  }, e.prototype.getAuthorityMetadata = function(t) {
@@ -9740,7 +9742,7 @@ var $n = (
9740
9742
  if (!r)
9741
9743
  return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"), null;
9742
9744
  var o = this.validateAndParseJson(r);
9743
- return o && Qn.isAuthorityMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"), Ne.toObject(new Qn(), o)) : null;
9745
+ return o && Qn.isAuthorityMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"), Me.toObject(new Qn(), o)) : null;
9744
9746
  }, e.prototype.getAuthorityMetadataKeys = function() {
9745
9747
  var t = this, r = this.internalStorage.getKeys();
9746
9748
  return r.filter(function(o) {
@@ -9802,7 +9804,7 @@ var $n = (
9802
9804
  if (!r)
9803
9805
  return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null;
9804
9806
  var o = this.validateAndParseJson(r);
9805
- return !o || !Rr.isThrottlingEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"), Ne.toObject(new Rr(), o));
9807
+ return !o || !Rr.isThrottlingEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"), Me.toObject(new Rr(), o));
9806
9808
  }, e.prototype.setThrottlingCache = function(t, r) {
9807
9809
  this.logger.trace("BrowserCacheManager.setThrottlingCache called"), this.setItem(t, JSON.stringify(r));
9808
9810
  }, e.prototype.getTemporaryCache = function(t, r) {
@@ -9967,14 +9969,14 @@ var $n = (
9967
9969
  this.logger.trace("BrowserCacheManager.getCachedRequest called");
9968
9970
  var o = this.getTemporaryCache(J.REQUEST_PARAMS, !0);
9969
9971
  if (!o)
9970
- throw N.createNoTokenRequestCacheError();
9972
+ throw M.createNoTokenRequestCacheError();
9971
9973
  var i = this.validateAndParseJson(r.base64Decode(o));
9972
9974
  if (!i)
9973
- throw N.createUnableToParseTokenRequestCacheError();
9975
+ throw M.createUnableToParseTokenRequestCacheError();
9974
9976
  if (this.removeItem(this.generateCacheKey(J.REQUEST_PARAMS)), L.isEmpty(i.authority)) {
9975
9977
  var a = this.generateAuthorityKey(t), s = this.getTemporaryCache(a);
9976
9978
  if (!s)
9977
- throw N.createNoCachedAuthorityError();
9979
+ throw M.createNoCachedAuthorityError();
9978
9980
  i.authority = s;
9979
9981
  }
9980
9982
  return i;
@@ -9995,7 +9997,7 @@ var $n = (
9995
9997
  var r = g.CACHE_PREFIX + "." + J.INTERACTION_STATUS_KEY;
9996
9998
  if (t) {
9997
9999
  if (this.getInteractionInProgress())
9998
- throw N.createInteractionInProgressError();
10000
+ throw M.createInteractionInProgressError();
9999
10001
  this.setTemporaryCache(r, this.clientId, !1);
10000
10002
  } else
10001
10003
  !t && this.getInteractionInProgress() === this.clientId && this.removeItem(r);
@@ -10028,7 +10030,7 @@ var $n = (
10028
10030
  }, e.prototype.setRedirectRequestContext = function(t) {
10029
10031
  this.setTemporaryCache(J.REDIRECT_CONTEXT, t, !0);
10030
10032
  }, e;
10031
- }(Ne)
10033
+ }(Me)
10032
10034
  ), Gi = function(n, e) {
10033
10035
  var t = {
10034
10036
  cacheLocation: pe.MemoryStorage,
@@ -10061,7 +10063,7 @@ var Vi = (
10061
10063
  case 1:
10062
10064
  return r = a.sent(), [3, 3];
10063
10065
  case 2:
10064
- throw o = a.sent(), window.navigator.onLine ? N.createGetRequestFailedError(o, e) : N.createNoNetworkConnectivityError();
10066
+ throw o = a.sent(), window.navigator.onLine ? M.createGetRequestFailedError(o, e) : M.createNoNetworkConnectivityError();
10065
10067
  case 3:
10066
10068
  return a.trys.push([3, 5, , 6]), i = {
10067
10069
  headers: this.getHeaderDict(r.headers)
@@ -10069,7 +10071,7 @@ var Vi = (
10069
10071
  case 4:
10070
10072
  return [2, (i.body = a.sent(), i.status = r.status, i)];
10071
10073
  case 5:
10072
- throw a.sent(), N.createFailedToParseNetworkResponseError(e);
10074
+ throw a.sent(), M.createFailedToParseNetworkResponseError(e);
10073
10075
  case 6:
10074
10076
  return [
10075
10077
  2
@@ -10094,7 +10096,7 @@ var Vi = (
10094
10096
  case 2:
10095
10097
  return o = s.sent(), [3, 4];
10096
10098
  case 3:
10097
- throw i = s.sent(), window.navigator.onLine ? N.createPostRequestFailedError(i, e) : N.createNoNetworkConnectivityError();
10099
+ throw i = s.sent(), window.navigator.onLine ? M.createPostRequestFailedError(i, e) : M.createNoNetworkConnectivityError();
10098
10100
  case 4:
10099
10101
  return s.trys.push([4, 6, , 7]), a = {
10100
10102
  headers: this.getHeaderDict(o.headers)
@@ -10102,7 +10104,7 @@ var Vi = (
10102
10104
  case 5:
10103
10105
  return [2, (a.body = s.sent(), a.status = o.status, a)];
10104
10106
  case 6:
10105
- throw s.sent(), N.createFailedToParseNetworkResponseError(e);
10107
+ throw s.sent(), M.createFailedToParseNetworkResponseError(e);
10106
10108
  case 7:
10107
10109
  return [
10108
10110
  2
@@ -10155,7 +10157,7 @@ var Qi = (
10155
10157
  /* async: */
10156
10158
  !0
10157
10159
  ), o.setXhrHeaders(s, r), s.onload = function() {
10158
- (s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(N.createPostRequestFailedError("Failed with status " + s.status, e)) : a(N.createGetRequestFailedError("Failed with status " + s.status, e)));
10160
+ (s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)));
10159
10161
  try {
10160
10162
  var u = JSON.parse(s.responseText), p = {
10161
10163
  headers: o.getHeaderDict(s),
@@ -10164,16 +10166,16 @@ var Qi = (
10164
10166
  };
10165
10167
  i(p);
10166
10168
  } catch {
10167
- a(N.createFailedToParseNetworkResponseError(e));
10169
+ a(M.createFailedToParseNetworkResponseError(e));
10168
10170
  }
10169
10171
  }, s.onerror = function() {
10170
- window.navigator.onLine ? t === Ze.POST ? a(N.createPostRequestFailedError("Failed with status " + s.status, e)) : a(N.createGetRequestFailedError("Failed with status " + s.status, e)) : a(N.createNoNetworkConnectivityError());
10172
+ window.navigator.onLine ? t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)) : a(M.createNoNetworkConnectivityError());
10171
10173
  }, t === Ze.POST && r && r.body)
10172
10174
  s.send(r.body);
10173
10175
  else if (t === Ze.GET)
10174
10176
  s.send();
10175
10177
  else
10176
- throw N.createHttpMethodNotImplementedError(t);
10178
+ throw M.createHttpMethodNotImplementedError(t);
10177
10179
  });
10178
10180
  }, n.prototype.setXhrHeaders = function(e, t) {
10179
10181
  if (t && t.headers) {
@@ -10216,20 +10218,20 @@ var de = (
10216
10218
  }, n.blockReloadInHiddenIframes = function() {
10217
10219
  var e = W.hashContainsKnownProperties(window.location.hash);
10218
10220
  if (e && n.isInIframe())
10219
- throw N.createBlockReloadInHiddenIframeError();
10221
+ throw M.createBlockReloadInHiddenIframeError();
10220
10222
  }, n.blockRedirectInIframe = function(e, t) {
10221
10223
  var r = n.isInIframe();
10222
10224
  if (e === x.Redirect && r && !t)
10223
- throw N.createRedirectInIframeError(r);
10225
+ throw M.createRedirectInIframeError(r);
10224
10226
  }, n.blockAcquireTokenInPopups = function() {
10225
10227
  if (n.isInPopup())
10226
- throw N.createBlockAcquireTokenInPopupsError();
10228
+ throw M.createBlockAcquireTokenInPopupsError();
10227
10229
  }, n.blockNonBrowserEnvironment = function(e) {
10228
10230
  if (!e)
10229
- throw N.createNonBrowserEnvironmentError();
10231
+ throw M.createNonBrowserEnvironmentError();
10230
10232
  }, n.blockNativeBrokerCalledBeforeInitialized = function(e, t) {
10231
10233
  if (e && !t)
10232
- throw N.createNativeBrokerCalledBeforeInitialize();
10234
+ throw M.createNativeBrokerCalledBeforeInitialize();
10233
10235
  }, n.detectIEOrEdge = function() {
10234
10236
  var e = window.navigator.userAgent, t = e.indexOf("MSIE "), r = e.indexOf("Trident/"), o = e.indexOf("Edge/"), i = t > 0 || r > 0, a = o > 0;
10235
10237
  return i || a;
@@ -10463,12 +10465,12 @@ var jt = (
10463
10465
  });
10464
10466
  }, e.prototype.validateAndExtractStateFromHash = function(t, r, o) {
10465
10467
  if (this.logger.verbose("validateAndExtractStateFromHash called", o), !t.state)
10466
- throw N.createHashDoesNotContainStateError();
10468
+ throw M.createHashDoesNotContainStateError();
10467
10469
  var i = so.extractBrowserRequestState(this.browserCrypto, t.state);
10468
10470
  if (!i)
10469
- throw N.createUnableToParseStateError();
10471
+ throw M.createUnableToParseStateError();
10470
10472
  if (i.interactionType !== r)
10471
- throw N.createStateInteractionTypeMismatchError();
10473
+ throw M.createStateInteractionTypeMismatchError();
10472
10474
  return this.logger.verbose("Returning state from hash", o), t.state;
10473
10475
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
10474
10476
  var o;
@@ -10528,13 +10530,13 @@ var or = (
10528
10530
  var i, a, s;
10529
10531
  return I(this, function(u) {
10530
10532
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
10531
- throw N.createEmptyHashError(e);
10533
+ throw M.createEmptyHashError(e);
10532
10534
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
10533
10535
  throw O.createStateNotFoundError("Cached State");
10534
10536
  try {
10535
10537
  s = this.authModule.handleFragmentResponse(e, a);
10536
10538
  } catch (p) {
10537
- throw p instanceof bt && p.subError === A.userCancelledError.code ? N.createUserCancelledError() : p;
10539
+ throw p instanceof bt && p.subError === A.userCancelledError.code ? M.createUserCancelledError() : p;
10538
10540
  }
10539
10541
  return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), [2, this.handleCodeResponseFromServer(s, t, r, o)];
10540
10542
  });
@@ -10626,7 +10628,7 @@ var Ur = (
10626
10628
  case 6:
10627
10629
  return [3, 8];
10628
10630
  case 7:
10629
- throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"), N.createEmptyNavigationUriError();
10631
+ throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"), M.createEmptyNavigationUriError();
10630
10632
  case 8:
10631
10633
  return [
10632
10634
  2
@@ -10642,13 +10644,13 @@ var Ur = (
10642
10644
  switch (k.label) {
10643
10645
  case 0:
10644
10646
  if (this.logger.verbose("RedirectHandler.handleCodeResponse called"), L.isEmpty(t))
10645
- throw N.createEmptyHashError(t);
10647
+ throw M.createEmptyHashError(t);
10646
10648
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
10647
10649
  throw O.createStateNotFoundError("Cached State");
10648
10650
  try {
10649
10651
  u = this.authModule.handleFragmentResponse(t, s);
10650
10652
  } catch (E) {
10651
- throw E instanceof bt && E.subError === A.userCancelledError.code ? N.createUserCancelledError() : E;
10653
+ throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
10652
10654
  }
10653
10655
  return p = this.browserStorage.generateNonceKey(s), d = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
10654
10656
  case 1:
@@ -10710,9 +10712,9 @@ var Gt = {
10710
10712
  case pt.USER_INTERACTION_REQUIRED:
10711
10713
  return new Ye(t, r);
10712
10714
  case pt.USER_CANCEL:
10713
- return N.createUserCancelledError();
10715
+ return M.createUserCancelledError();
10714
10716
  case pt.NO_NETWORK:
10715
- return N.createNoNetworkConnectivityError();
10717
+ return M.createNoNetworkConnectivityError();
10716
10718
  }
10717
10719
  return new e(t, r, o);
10718
10720
  }, e.createUserSwitchError = function() {
@@ -10747,7 +10749,7 @@ var lo = (
10747
10749
  fromCache: !0
10748
10750
  }), [2, a];
10749
10751
  case 4:
10750
- throw s = u.sent(), s instanceof N && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
10752
+ throw s = u.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
10751
10753
  errorCode: s instanceof D && s.errorCode || void 0,
10752
10754
  subErrorCode: s instanceof D && s.subError || void 0,
10753
10755
  success: !1
@@ -10761,7 +10763,7 @@ var lo = (
10761
10763
  });
10762
10764
  });
10763
10765
  }, e.prototype.logout = function() {
10764
- return Promise.reject(N.createSilentLogoutUnsupportedError());
10766
+ return Promise.reject(M.createSilentLogoutUnsupportedError());
10765
10767
  }, e.prototype.createSilentFlowClient = function(t, r, o) {
10766
10768
  return T(this, void 0, void 0, function() {
10767
10769
  var i;
@@ -10989,13 +10991,13 @@ var zt = (
10989
10991
  });
10990
10992
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
10991
10993
  return T(this, void 0, void 0, function() {
10992
- var u, p, d, f, _, k, E, M;
10994
+ var u, p, d, f, _, k, E, N;
10993
10995
  return I(this, function(Q) {
10994
10996
  switch (Q.label) {
10995
10997
  case 0:
10996
10998
  return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), d = t.account.properties || {}, f = d.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = d.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
10997
10999
  case 1:
10998
- return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, M = {
11000
+ return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, N = {
10999
11001
  authority: a,
11000
11002
  uniqueId: f,
11001
11003
  tenantId: _,
@@ -11010,7 +11012,7 @@ var zt = (
11010
11012
  correlationId: this.correlationId,
11011
11013
  state: t.state,
11012
11014
  fromNativeBroker: !0
11013
- }, [2, M];
11015
+ }, [2, N];
11014
11016
  }
11015
11017
  });
11016
11018
  });
@@ -11020,8 +11022,8 @@ var zt = (
11020
11022
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
11021
11023
  });
11022
11024
  }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
11023
- var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), M = new en(i, d, E);
11024
- this.nativeStorageManager.saveCacheRecord(M);
11025
+ var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), N = new en(i, d, E);
11026
+ this.nativeStorageManager.saveCacheRecord(N);
11025
11027
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
11026
11028
  var r = this.getMATSFromResponse(t);
11027
11029
  return r ? (this.performanceClient.addStaticFields({
@@ -11081,7 +11083,7 @@ var zt = (
11081
11083
  case Te.LOGIN:
11082
11084
  return k.logger.trace("initializeNativeRequest: prompt is compatible with native flow"), t.prompt;
11083
11085
  default:
11084
- throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"), N.createNativePromptParameterNotSupportedError();
11086
+ throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"), M.createNativePromptParameterNotSupportedError();
11085
11087
  }
11086
11088
  }, p = B(B({}, a), {
11087
11089
  accountId: this.accountId,
@@ -11174,7 +11176,7 @@ var yt = (
11174
11176
  t.onChannelMessage(o);
11175
11177
  }, window.postMessage(e, window.origin, [this.messageChannel.port2]), [2, new Promise(function(o, i) {
11176
11178
  t.handshakeResolvers.set(e.responseId, { resolve: o, reject: i }), t.timeoutId = window.setTimeout(function() {
11177
- window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(N.createNativeHandshakeTimeoutError()), t.handshakeResolvers.delete(e.responseId);
11179
+ window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(M.createNativeHandshakeTimeoutError()), t.handshakeResolvers.delete(e.responseId);
11178
11180
  }, t.handshakeTimeoutMs);
11179
11181
  })];
11180
11182
  });
@@ -11185,7 +11187,7 @@ var yt = (
11185
11187
  if (!(!t.channel || t.channel !== Vt.CHANNEL_ID) && !(t.extensionId && t.extensionId !== this.extensionId) && t.body.method === at.HandshakeRequest) {
11186
11188
  this.logger.verbose(t.extensionId ? "Extension with id: " + t.extensionId + " not installed" : "No extension installed"), clearTimeout(this.timeoutId), this.messageChannel.port1.close(), this.messageChannel.port2.close(), window.removeEventListener("message", this.windowListener, !1);
11187
11189
  var r = this.handshakeResolvers.get(t.responseId);
11188
- r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(N.createNativeExtensionNotInstalledError()));
11190
+ r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(M.createNativeExtensionNotInstalledError()));
11189
11191
  }
11190
11192
  }
11191
11193
  }, n.prototype.onChannelMessage = function(e) {
@@ -11281,12 +11283,12 @@ var Yi = (
11281
11283
  }, e.prototype.handleRedirectPromise = function(t) {
11282
11284
  return T(this, void 0, void 0, function() {
11283
11285
  var r, o, i, a, s, u, p, d, f, _, k, E;
11284
- return I(this, function(M) {
11285
- switch (M.label) {
11286
+ return I(this, function(N) {
11287
+ switch (N.label) {
11286
11288
  case 0:
11287
- r = this.initializeServerTelemetryManager(oe.handleRedirectPromise), M.label = 1;
11289
+ r = this.initializeServerTelemetryManager(oe.handleRedirectPromise), N.label = 1;
11288
11290
  case 1:
11289
- if (M.trys.push([1, 10, , 11]), !this.browserStorage.isInteractionInProgress(!0))
11291
+ if (N.trys.push([1, 10, , 11]), !this.browserStorage.isInteractionInProgress(!0))
11290
11292
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
11291
11293
  if (o = this.getRedirectResponseHash(t || window.location.hash), !o)
11292
11294
  return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
@@ -11298,7 +11300,7 @@ var Yi = (
11298
11300
  }
11299
11301
  return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, u = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), u === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11300
11302
  case 2:
11301
- return d = M.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11303
+ return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11302
11304
  case 3:
11303
11305
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
11304
11306
  case 4:
@@ -11308,19 +11310,19 @@ var Yi = (
11308
11310
  noHistory: !0
11309
11311
  }, _ = !0, !s || s === "null" ? (k = de.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
11310
11312
  case 5:
11311
- return _ = M.sent(), [3, 8];
11313
+ return _ = N.sent(), [3, 8];
11312
11314
  case 6:
11313
11315
  return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s, f)];
11314
11316
  case 7:
11315
- _ = M.sent(), M.label = 8;
11317
+ _ = N.sent(), N.label = 8;
11316
11318
  case 8:
11317
11319
  if (!_)
11318
11320
  return [2, this.handleHash(o, i, r)];
11319
- M.label = 9;
11321
+ N.label = 9;
11320
11322
  case 9:
11321
11323
  return [2, null];
11322
11324
  case 10:
11323
- throw E = M.sent(), E instanceof D && E.setCorrelationId(this.correlationId), r.cacheFailedRequest(E), this.browserStorage.cleanRequestByInteractionType(x.Redirect), E;
11325
+ throw E = N.sent(), E instanceof D && E.setCorrelationId(this.correlationId), r.cacheFailedRequest(E), this.browserStorage.cleanRequestByInteractionType(x.Redirect), E;
11324
11326
  case 11:
11325
11327
  return [
11326
11328
  2
@@ -11344,7 +11346,7 @@ var Yi = (
11344
11346
  case 0:
11345
11347
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
11346
11348
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11347
- throw N.createNativeConnectionNotEstablishedError();
11349
+ throw M.createNativeConnectionNotEstablishedError();
11348
11350
  return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11349
11351
  state: u,
11350
11352
  prompt: void 0
@@ -11354,7 +11356,7 @@ var Yi = (
11354
11356
  })];
11355
11357
  }
11356
11358
  if (p = this.browserStorage.getCachedAuthority(r), !p)
11357
- throw N.createNoCachedAuthorityError();
11359
+ throw M.createNoCachedAuthorityError();
11358
11360
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
11359
11361
  case 1:
11360
11362
  return d = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(d, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, d.authority, this.networkClient)];
@@ -11448,7 +11450,7 @@ var Wi = (
11448
11450
  }
11449
11451
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
11450
11452
  return T(this, void 0, void 0, function() {
11451
- var a, s, u, p, d, f, _, k, E, M, Q, X, G, $, Ae, xe, Ve, Ct = this;
11453
+ var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11452
11454
  return I(this, function(ce) {
11453
11455
  switch (ce.label) {
11454
11456
  case 0:
@@ -11466,14 +11468,14 @@ var Wi = (
11466
11468
  popup: i,
11467
11469
  popupName: r,
11468
11470
  popupWindowAttributes: o
11469
- }, M = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: M }, null), [4, this.monitorPopupForHash(M)];
11471
+ }, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
11470
11472
  case 6:
11471
11473
  if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, u), X.accountId) {
11472
11474
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
11473
11475
  success: !0,
11474
11476
  isNativeBroker: !0
11475
11477
  }), !this.nativeMessageHandler)
11476
- throw N.createNativeConnectionNotEstablishedError();
11478
+ throw M.createNativeConnectionNotEstablishedError();
11477
11479
  return $ = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, X.accountId, this.nativeStorage, s.correlationId), Ae = st.parseRequestState(this.browserCrypto, G).userRequestState, [2, $.acquireToken(B(B({}, s), {
11478
11480
  state: Ae,
11479
11481
  prompt: void 0
@@ -11498,24 +11500,24 @@ var Wi = (
11498
11500
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
11499
11501
  return T(this, void 0, void 0, function() {
11500
11502
  var u, p, d, f, _, k, E;
11501
- return I(this, function(M) {
11502
- switch (M.label) {
11503
+ return I(this, function(N) {
11504
+ switch (N.label) {
11503
11505
  case 0:
11504
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), M.label = 1;
11506
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11505
11507
  case 1:
11506
- return M.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11508
+ return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11507
11509
  case 2:
11508
- return M.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11510
+ return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11509
11511
  case 3:
11510
- return p = M.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11512
+ return p = N.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11511
11513
  case 4:
11512
- return M.sent(), s ? (_ = {
11514
+ return N.sent(), s ? (_ = {
11513
11515
  apiId: oe.logoutPopup,
11514
11516
  timeout: this.config.system.redirectNavigationTimeout,
11515
11517
  noHistory: !1
11516
11518
  }, k = W.getAbsoluteUrl(s, de.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
11517
11519
  case 5:
11518
- throw E = M.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
11520
+ throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
11519
11521
  case 6:
11520
11522
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
11521
11523
  2
@@ -11526,7 +11528,7 @@ var Wi = (
11526
11528
  });
11527
11529
  }, e.prototype.initiateAuthRequest = function(t, r) {
11528
11530
  if (L.isEmpty(t))
11529
- throw this.logger.error("Navigate url is empty"), N.createEmptyNavigationUriError();
11531
+ throw this.logger.error("Navigate url is empty"), M.createEmptyNavigationUriError();
11530
11532
  return this.logger.infoPii("Navigate to: " + t), this.openPopup(t, r);
11531
11533
  }, e.prototype.monitorPopupForHash = function(t) {
11532
11534
  var r = this;
@@ -11535,7 +11537,7 @@ var Wi = (
11535
11537
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
11536
11538
  var u = setInterval(function() {
11537
11539
  if (t.closed) {
11538
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(N.createUserCancelledError());
11540
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
11539
11541
  return;
11540
11542
  }
11541
11543
  var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
@@ -11543,7 +11545,7 @@ var Wi = (
11543
11545
  p = t.location.href, d = t.location.hash;
11544
11546
  } catch {
11545
11547
  }
11546
- L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(N.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(N.createMonitorPopupTimeoutError())));
11548
+ L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(M.createMonitorPopupTimeoutError())));
11547
11549
  }, r.config.system.pollIntervalMilliseconds);
11548
11550
  });
11549
11551
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -11564,14 +11566,14 @@ var Wi = (
11564
11566
  try {
11565
11567
  var o = void 0;
11566
11568
  if (r.popup ? (o = r.popup, this.logger.verbosePii("Navigating popup window to: " + t), o.location.assign(t)) : typeof r.popup > "u" && (this.logger.verbosePii("Opening popup window to: " + t), o = this.openSizedPopup(t, r.popupName, r.popupWindowAttributes)), !o)
11567
- throw N.createEmptyWindowCreatedError();
11569
+ throw M.createEmptyWindowCreatedError();
11568
11570
  return o.focus && o.focus(), this.currentWindow = o, window.addEventListener("beforeunload", this.unloadWindow), o;
11569
11571
  } catch (i) {
11570
- throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), N.createPopupWindowError(i.toString());
11572
+ throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
11571
11573
  }
11572
11574
  }, e.prototype.openSizedPopup = function(t, r, o) {
11573
- var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, M = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
11574
- return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!M || M < 0 || M > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), M = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + M + ", left=" + Q + ", scrollbars=yes");
11575
+ var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
11576
+ return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
11575
11577
  }, e.prototype.unloadWindow = function(t) {
11576
11578
  this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
11577
11579
  }, e.prototype.cleanPopup = function(t) {
@@ -11683,7 +11685,7 @@ var uo = (
11683
11685
  switch (r.label) {
11684
11686
  case 0:
11685
11687
  if (this.performanceClient.addQueueMeasurement(b.SilentHandlerInitiateAuthRequest, this.authCodeRequest.correlationId), L.isEmpty(t))
11686
- throw this.logger.info("Navigate url is empty"), N.createEmptyNavigationUriError();
11688
+ throw this.logger.info("Navigate url is empty"), M.createEmptyNavigationUriError();
11687
11689
  return this.navigateFrameWait ? (this.performanceClient.setPreQueueTime(b.SilentHandlerLoadFrame, this.authCodeRequest.correlationId), [4, this.loadFrame(t)]) : [3, 2];
11688
11690
  case 1:
11689
11691
  return [2, r.sent()];
@@ -11698,7 +11700,7 @@ var uo = (
11698
11700
  r < Jn && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + Jn + "ms). This may result in timeouts.");
11699
11701
  var s = window.performance.now(), u = s + r, p = setInterval(function() {
11700
11702
  if (window.performance.now() > u) {
11701
- o.removeHiddenIframe(t), clearInterval(p), a(N.createMonitorIframeTimeoutError());
11703
+ o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
11702
11704
  return;
11703
11705
  }
11704
11706
  var d = g.EMPTY_STRING, f = t.contentWindow;
@@ -11756,7 +11758,7 @@ var ta = (
11756
11758
  if (this.performanceClient.addQueueMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), L.isEmpty(t.loginHint) && L.isEmpty(t.sid) && (!t.account || L.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Te.NONE && t.prompt !== Te.NO_SESSION)
11757
11759
  throw r.endMeasurement({
11758
11760
  success: !1
11759
- }), N.createSilentPromptValueError(t.prompt);
11761
+ }), M.createSilentPromptValueError(t.prompt);
11760
11762
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
11761
11763
  case 1:
11762
11764
  o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
@@ -11787,7 +11789,7 @@ var ta = (
11787
11789
  });
11788
11790
  });
11789
11791
  }, e.prototype.logout = function() {
11790
- return Promise.reject(N.createSilentLogoutUnsupportedError());
11792
+ return Promise.reject(M.createSilentLogoutUnsupportedError());
11791
11793
  }, e.prototype.silentTokenHelper = function(t, r) {
11792
11794
  return T(this, void 0, void 0, function() {
11793
11795
  var o, i, a, s, u, p, d, f, _, k = this;
@@ -11804,7 +11806,7 @@ var ta = (
11804
11806
  case 4:
11805
11807
  if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11806
11808
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11807
- throw N.createNativeConnectionNotEstablishedError();
11809
+ throw M.createNativeConnectionNotEstablishedError();
11808
11810
  return f = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, d).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11809
11811
  k.browserStorage.cleanRequestByState(d);
11810
11812
  })];
@@ -11851,7 +11853,7 @@ var na = (
11851
11853
  });
11852
11854
  });
11853
11855
  }, e.prototype.logout = function() {
11854
- return Promise.reject(N.createSilentLogoutUnsupportedError());
11856
+ return Promise.reject(M.createSilentLogoutUnsupportedError());
11855
11857
  }, e.prototype.createRefreshTokenClient = function(t, r, o) {
11856
11858
  return T(this, void 0, void 0, function() {
11857
11859
  var i;
@@ -11908,7 +11910,7 @@ var ra = (
11908
11910
  var r = JSON.parse(t);
11909
11911
  if (typeof r != "object" || !we.isAccountEntity(r))
11910
11912
  return;
11911
- var o = Ne.toObject(new we(), r), i = o.getAccountInfo();
11913
+ var o = Me.toObject(new we(), r), i = o.getAccountInfo();
11912
11914
  !e.oldValue && e.newValue ? (this.logger.info("Account was added to cache in a different window"), this.emitEvent(q.ACCOUNT_ADDED, void 0, i)) : !e.newValue && e.oldValue && (this.logger.info("Account was removed from cache in a different window"), this.emitEvent(q.ACCOUNT_REMOVED, void 0, i));
11913
11915
  } catch {
11914
11916
  return;
@@ -12082,7 +12084,7 @@ var ia = 32, aa = (
12082
12084
  var t = this.base64Encode.urlEncodeArr(e);
12083
12085
  return t;
12084
12086
  } catch (r) {
12085
- throw N.createPkceNotGeneratedError(r);
12087
+ throw M.createPkceNotGeneratedError(r);
12086
12088
  }
12087
12089
  }, n.prototype.generateCodeChallengeFromVerifier = function(e) {
12088
12090
  return T(this, void 0, void 0, function() {
@@ -12094,7 +12096,7 @@ var ia = 32, aa = (
12094
12096
  case 1:
12095
12097
  return t = o.sent(), [2, this.base64Encode.urlEncodeArr(new Uint8Array(t))];
12096
12098
  case 2:
12097
- throw r = o.sent(), N.createPkceNotGeneratedError(r);
12099
+ throw r = o.sent(), M.createPkceNotGeneratedError(r);
12098
12100
  case 3:
12099
12101
  return [
12100
12102
  2
@@ -12285,7 +12287,7 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
12285
12287
  else if (this.hasMsrCrypto() && (!((r = this.cryptoOptions) === null || r === void 0) && r.useMsrCrypto))
12286
12288
  this.logger.verbose("BrowserCrypto: MSR crypto interface available"), this.subtleCrypto = new ca();
12287
12289
  else
12288
- throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."), N.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");
12290
+ throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."), M.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");
12289
12291
  if (this.subtleCrypto.initPrng) {
12290
12292
  if (this.logger.verbose("BrowserCrypto: Interface requires entropy"), !(!((o = this.cryptoOptions) === null || o === void 0) && o.entropy))
12291
12293
  throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."), En.createEntropyNotProvided();
@@ -12360,7 +12362,7 @@ var ha = (
12360
12362
  var s = a;
12361
12363
  e.db = s.target.result, e.dbOpen = !0, r();
12362
12364
  }), i.addEventListener("error", function() {
12363
- return o(N.createDatabaseUnavailableError());
12365
+ return o(M.createDatabaseUnavailableError());
12364
12366
  });
12365
12367
  })];
12366
12368
  });
@@ -12394,7 +12396,7 @@ var ha = (
12394
12396
  case 1:
12395
12397
  return r.sent(), [2, new Promise(function(o, i) {
12396
12398
  if (!t.db)
12397
- return i(N.createDatabaseNotOpenError());
12399
+ return i(M.createDatabaseNotOpenError());
12398
12400
  var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
12399
12401
  u.addEventListener("success", function(p) {
12400
12402
  var d = p;
@@ -12416,7 +12418,7 @@ var ha = (
12416
12418
  case 1:
12417
12419
  return o.sent(), [2, new Promise(function(i, a) {
12418
12420
  if (!r.db)
12419
- return a(N.createDatabaseNotOpenError());
12421
+ return a(M.createDatabaseNotOpenError());
12420
12422
  var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
12421
12423
  p.addEventListener("success", function() {
12422
12424
  r.closeConnection(), i();
@@ -12437,7 +12439,7 @@ var ha = (
12437
12439
  case 1:
12438
12440
  return r.sent(), [2, new Promise(function(o, i) {
12439
12441
  if (!t.db)
12440
- return i(N.createDatabaseNotOpenError());
12442
+ return i(M.createDatabaseNotOpenError());
12441
12443
  var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
12442
12444
  u.addEventListener("success", function() {
12443
12445
  t.closeConnection(), o();
@@ -12458,7 +12460,7 @@ var ha = (
12458
12460
  case 1:
12459
12461
  return t.sent(), [2, new Promise(function(r, o) {
12460
12462
  if (!e.db)
12461
- return o(N.createDatabaseNotOpenError());
12463
+ return o(M.createDatabaseNotOpenError());
12462
12464
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
12463
12465
  s.addEventListener("success", function(u) {
12464
12466
  var p = u;
@@ -12480,7 +12482,7 @@ var ha = (
12480
12482
  case 1:
12481
12483
  return r.sent(), [2, new Promise(function(o, i) {
12482
12484
  if (!t.db)
12483
- return i(N.createDatabaseNotOpenError());
12485
+ return i(M.createDatabaseNotOpenError());
12484
12486
  var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
12485
12487
  u.addEventListener("success", function(p) {
12486
12488
  var d = p;
@@ -12518,7 +12520,7 @@ var Br = (
12518
12520
  this.inMemoryCache = new Wn(), this.indexedDBCache = new ha(), this.logger = e, this.storeName = t;
12519
12521
  }
12520
12522
  return n.prototype.handleDatabaseAccessError = function(e) {
12521
- if (e instanceof N && e.errorCode === A.databaseUnavailable.code)
12523
+ if (e instanceof M && e.errorCode === A.databaseUnavailable.code)
12522
12524
  this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");
12523
12525
  else
12524
12526
  throw e;
@@ -12764,21 +12766,21 @@ var fa = (
12764
12766
  }, n.prototype.signJwt = function(e, t, r) {
12765
12767
  var o;
12766
12768
  return T(this, void 0, void 0, function() {
12767
- var i, a, s, u, p, d, f, _, k, E, M, Q, X;
12769
+ var i, a, s, u, p, d, f, _, k, E, N, Q, X;
12768
12770
  return I(this, function(G) {
12769
12771
  switch (G.label) {
12770
12772
  case 0:
12771
12773
  return i = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.CryptoOptsSignJwt, r), [4, this.cache.asymmetricKeys.getItem(t)];
12772
12774
  case 1:
12773
12775
  if (a = G.sent(), !a)
12774
- throw N.createSigningKeyNotFoundInStorageError(t);
12776
+ throw M.createSigningKeyNotFoundInStorageError(t);
12775
12777
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
12776
12778
  case 2:
12777
12779
  return s = G.sent(), u = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), d = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(d), e.cnf = {
12778
12780
  jwk: JSON.parse(u)
12779
12781
  }, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
12780
12782
  case 3:
12781
- return M = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(M)), X = k + "." + Q, i && i.endMeasurement({
12783
+ return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
12782
12784
  success: !0
12783
12785
  }), [2, X];
12784
12786
  }
@@ -12917,7 +12919,7 @@ var _a = (
12917
12919
  }
12918
12920
  return n.prototype.loadExternalTokens = function(e, t, r) {
12919
12921
  if (this.logger.info("TokenCache - loadExternalTokens called"), !t.id_token)
12920
- throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");
12922
+ throw M.createUnableToLoadTokenError("Please ensure server response includes id token.");
12921
12923
  var o = new rt(t.id_token, this.cryptoObj), i, a;
12922
12924
  if (e.account) {
12923
12925
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
@@ -12939,41 +12941,41 @@ var _a = (
12939
12941
  var s = this.loadAccount(o, a.hostnameAndPort, t.client_info, a.authorityType);
12940
12942
  i = new en(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
12941
12943
  } else
12942
- throw N.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");
12944
+ throw M.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");
12943
12945
  } else
12944
- throw N.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");
12946
+ throw M.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");
12945
12947
  return this.generateAuthenticationResult(e, o, i, a);
12946
12948
  }, n.prototype.loadAccount = function(e, t, r, o, i) {
12947
12949
  var a;
12948
12950
  if (i ? a = i : o !== void 0 && r && (a = we.generateHomeAccountId(r, o, this.logger, this.cryptoObj, e)), !a)
12949
- throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");
12951
+ throw M.createUnableToLoadTokenError("Unexpected missing homeAccountId");
12950
12952
  var s = r ? we.createAccount(r, a, e, void 0, void 0, void 0, t) : we.createGenericAccount(a, e, void 0, void 0, void 0, t);
12951
12953
  if (this.isBrowserEnvironment)
12952
12954
  return this.logger.verbose("TokenCache - loading account"), this.storage.setAccount(s), s;
12953
- throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12955
+ throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12954
12956
  }, n.prototype.loadIdToken = function(e, t, r, o) {
12955
12957
  var i = gt.createIdTokenEntity(t, r, e.rawToken, this.config.auth.clientId, o);
12956
12958
  if (this.isBrowserEnvironment)
12957
12959
  return this.logger.verbose("TokenCache - loading id token"), this.storage.setIdTokenCredential(i), i;
12958
- throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12960
+ throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12959
12961
  }, n.prototype.loadAccessToken = function(e, t, r, o, i, a) {
12960
12962
  if (!t.access_token)
12961
12963
  return this.logger.verbose("TokenCache - No access token provided for caching"), null;
12962
12964
  if (!t.expires_in)
12963
- throw N.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12965
+ throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12964
12966
  if (!a.extendedExpiresOn)
12965
- throw N.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
12967
+ throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
12966
12968
  var s = new Ee(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, d = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
12967
12969
  if (this.isBrowserEnvironment)
12968
12970
  return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
12969
- throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12971
+ throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12970
12972
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
12971
12973
  if (!t.refresh_token)
12972
12974
  return this.logger.verbose("TokenCache - No refresh token provided for caching"), null;
12973
- var i = Nt.createRefreshTokenEntity(r, o, t.refresh_token, this.config.auth.clientId);
12975
+ var i = Mt.createRefreshTokenEntity(r, o, t.refresh_token, this.config.auth.clientId);
12974
12976
  if (this.isBrowserEnvironment)
12975
12977
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
12976
- throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12978
+ throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12977
12979
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
12978
12980
  var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
12979
12981
  r != null && r.accessToken && (u = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), d = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
@@ -13031,7 +13033,7 @@ var ya = (
13031
13033
  switch (d.label) {
13032
13034
  case 0:
13033
13035
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
13034
- throw N.createAuthCodeRequiredError();
13036
+ throw M.createAuthCodeRequiredError();
13035
13037
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
13036
13038
  case 1:
13037
13039
  r = d.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
@@ -13055,7 +13057,7 @@ var ya = (
13055
13057
  });
13056
13058
  });
13057
13059
  }, e.prototype.logout = function() {
13058
- return Promise.reject(N.createSilentLogoutUnsupportedError());
13060
+ return Promise.reject(M.createSilentLogoutUnsupportedError());
13059
13061
  }, e;
13060
13062
  }(jt)
13061
13063
  );
@@ -13243,7 +13245,7 @@ var ka = (
13243
13245
  t = this.getRequestCorrelationId(e), this.preflightBrowserEnvironmentCheck(x.Silent), this.logger.trace("acquireTokenByCode called", t), this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START, x.Silent, e), r = this.performanceClient.startMeasurement(b.AcquireTokenByCode, e.correlationId);
13244
13246
  try {
13245
13247
  if (e.code && e.nativeAccountId)
13246
- throw N.createSpaCodeAndNativeAccountIdPresentError();
13248
+ throw M.createSpaCodeAndNativeAccountIdPresentError();
13247
13249
  if (e.code)
13248
13250
  return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(u) {
13249
13251
  return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
@@ -13266,9 +13268,9 @@ var ka = (
13266
13268
  return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
13267
13269
  throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
13268
13270
  })];
13269
- throw N.createUnableToAcquireTokenFromNativePlatformError();
13271
+ throw M.createUnableToAcquireTokenFromNativePlatformError();
13270
13272
  } else
13271
- throw N.createAuthCodeOrNativeAccountIdRequiredError();
13273
+ throw M.createAuthCodeOrNativeAccountIdRequiredError();
13272
13274
  } catch (u) {
13273
13275
  throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13274
13276
  errorCode: u instanceof D && u.errorCode || void 0,
@@ -13412,7 +13414,7 @@ var ka = (
13412
13414
  var o;
13413
13415
  return I(this, function(i) {
13414
13416
  if (this.logger.trace("acquireTokenNative called"), !this.nativeExtensionProvider)
13415
- throw N.createNativeConnectionNotEstablishedError();
13417
+ throw M.createNativeConnectionNotEstablishedError();
13416
13418
  return o = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, t, this.performanceClient, this.nativeExtensionProvider, r || this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), [2, o.acquireToken(e)];
13417
13419
  });
13418
13420
  });
@@ -13500,7 +13502,7 @@ var wa = (
13500
13502
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
13501
13503
  cacheLookupPolicy: t.cacheLookupPolicy
13502
13504
  }), this.preflightBrowserEnvironmentCheck(x.Silent), this.logger.verbose("acquireTokenSilent called", r), i = t.account || this.getActiveAccount(), !i)
13503
- throw N.createNoAccountError();
13505
+ throw M.createNoAccountError();
13504
13506
  return a = {
13505
13507
  clientId: this.config.auth.clientId,
13506
13508
  authority: t.authority || g.EMPTY_STRING,
@@ -13565,8 +13567,8 @@ var wa = (
13565
13567
  if (p.cacheLookupPolicy === Le.AccessToken)
13566
13568
  throw _;
13567
13569
  return de.blockReloadInHiddenIframes(), d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, u), d.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, u.correlationId), d.acquireTokenByRefreshToken(u, p).catch(function(k) {
13568
- var E = k instanceof bt, M = k instanceof Ye, Q = k.errorCode === Mt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13569
- if ((!E || !X || M || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13570
+ var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Nt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13571
+ if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13570
13572
  throw k;
13571
13573
  return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), d.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, u.correlationId), d.acquireTokenBySilentIframe(u);
13572
13574
  });
@@ -13682,7 +13684,7 @@ const An = {
13682
13684
  return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
13683
13685
  if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
13684
13686
  const [s, u] = await Z(
13685
- Me.microsoftSDK(r, this.$storage)
13687
+ Ne.microsoftSDK(r, this.$storage)
13686
13688
  );
13687
13689
  if (s)
13688
13690
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
@@ -13692,7 +13694,7 @@ const An = {
13692
13694
  { code: u.data.auth_code, state: this.$route.query.state },
13693
13695
  "*"
13694
13696
  );
13695
- await this.loginSetup(u), this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: !1 }), setTimeout(() => {
13697
+ await this.loginSetup(u), this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
13696
13698
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
13697
13699
  }, 1e3);
13698
13700
  } else
@@ -13813,7 +13815,7 @@ const An = {
13813
13815
  return this.errorHandler(e);
13814
13816
  localStorage.removeItem("pkce_code_verifier");
13815
13817
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
13816
- if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(Me.oktaSDK(r, this.$storage)), e)
13818
+ if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(Ne.oktaSDK(r, this.$storage)), e)
13817
13819
  return this.oktaLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
13818
13820
  if (t.data.success) {
13819
13821
  if (this.display === "popup")
@@ -13851,7 +13853,7 @@ const An = {
13851
13853
  var fo = {}, Pn = {};
13852
13854
  Pn.byteLength = Sa;
13853
13855
  Pn.toByteArray = Ra;
13854
- Pn.fromByteArray = Ma;
13856
+ Pn.fromByteArray = Na;
13855
13857
  var et = [], je = [], Ta = typeof Uint8Array < "u" ? Uint8Array : Array, Dn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
13856
13858
  for (var St = 0, Ia = Dn.length; St < Ia; ++St)
13857
13859
  et[St] = Dn[St], je[Dn.charCodeAt(St)] = St;
@@ -13882,14 +13884,14 @@ function Ra(n) {
13882
13884
  function Pa(n) {
13883
13885
  return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
13884
13886
  }
13885
- function Na(n, e, t) {
13887
+ function Ma(n, e, t) {
13886
13888
  for (var r, o = [], i = e; i < t; i += 3)
13887
13889
  r = (n[i] << 16 & 16711680) + (n[i + 1] << 8 & 65280) + (n[i + 2] & 255), o.push(Pa(r));
13888
13890
  return o.join("");
13889
13891
  }
13890
- function Ma(n) {
13892
+ function Na(n) {
13891
13893
  for (var e, t = n.length, r = t % 3, o = [], i = 16383, a = 0, s = t - r; a < s; a += i)
13892
- o.push(Na(n, a, a + i > s ? s : a + i));
13894
+ o.push(Ma(n, a, a + i > s ? s : a + i));
13893
13895
  return r === 1 ? (e = n[t - 1], o.push(
13894
13896
  et[e >> 2] + et[e << 4 & 63] + "=="
13895
13897
  )) : r === 2 && (e = (n[t - 2] << 8) + n[t - 1], o.push(
@@ -13914,12 +13916,12 @@ ir.read = function(n, e, t, r, o) {
13914
13916
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
13915
13917
  };
13916
13918
  ir.write = function(n, e, t, r, o, i) {
13917
- var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, M = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
13919
+ var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
13918
13920
  for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = d) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + f >= 1 ? e += _ / u : e += _ * Math.pow(2, 1 - f), e * u >= 2 && (a++, u /= 2), a + f >= d ? (s = 0, a = d) : a + f >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
13919
13921
  ;
13920
13922
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
13921
13923
  ;
13922
- n[t + k - E] |= M * 128;
13924
+ n[t + k - E] |= N * 128;
13923
13925
  };
13924
13926
  /*!
13925
13927
  * The buffer module from node.js, for the browser.
@@ -13978,7 +13980,7 @@ ir.write = function(n, e, t, r, o, i) {
13978
13980
  d.poolSize = 8192;
13979
13981
  function f(h, c, l) {
13980
13982
  if (typeof h == "string")
13981
- return M(h, c);
13983
+ return N(h, c);
13982
13984
  if (a.isView(h))
13983
13985
  return X(h);
13984
13986
  if (h == null)
@@ -14026,7 +14028,7 @@ ir.write = function(n, e, t, r, o, i) {
14026
14028
  }, d.allocUnsafeSlow = function(h) {
14027
14029
  return E(h);
14028
14030
  };
14029
- function M(h, c) {
14031
+ function N(h, c) {
14030
14032
  if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
14031
14033
  throw new TypeError("Unknown encoding: " + c);
14032
14034
  const l = Ve(h, c) | 0;
@@ -14188,7 +14190,7 @@ ir.write = function(n, e, t, r, o, i) {
14188
14190
  case "binary":
14189
14191
  return Oo(this, c, l);
14190
14192
  case "base64":
14191
- return No(this, c, l);
14193
+ return Mo(this, c, l);
14192
14194
  case "ucs2":
14193
14195
  case "ucs-2":
14194
14196
  case "utf16le":
@@ -14390,7 +14392,7 @@ ir.write = function(n, e, t, r, o, i) {
14390
14392
  data: Array.prototype.slice.call(this._arr || this, 0)
14391
14393
  };
14392
14394
  };
14393
- function No(h, c, l) {
14395
+ function Mo(h, c, l) {
14394
14396
  return c === 0 && l === h.length ? e.fromByteArray(h) : e.fromByteArray(h.slice(c, l));
14395
14397
  }
14396
14398
  function cr(h, c, l) {
@@ -14418,10 +14420,10 @@ ir.write = function(n, e, t, r, o, i) {
14418
14420
  }
14419
14421
  C === null ? (C = 65533, Y = 1) : C > 65535 && (C -= 65536, m.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), m.push(C), v += Y;
14420
14422
  }
14421
- return Mo(m);
14423
+ return No(m);
14422
14424
  }
14423
14425
  const lr = 4096;
14424
- function Mo(h) {
14426
+ function No(h) {
14425
14427
  const c = h.length;
14426
14428
  if (c <= lr)
14427
14429
  return String.fromCharCode.apply(String, h);
@@ -14899,7 +14901,7 @@ ir.write = function(n, e, t, r, o, i) {
14899
14901
  throw new Error("BigInt not supported");
14900
14902
  }
14901
14903
  })(fo);
14902
- const La = fo.Buffer, Nn = {
14904
+ const La = fo.Buffer, Mn = {
14903
14905
  data() {
14904
14906
  return {
14905
14907
  code_verifier: "",
@@ -15025,7 +15027,7 @@ const La = fo.Buffer, Nn = {
15025
15027
  }
15026
15028
  }, za = {
15027
15029
  name: "AuthLogin",
15028
- mixins: [Xr, Zr, eo, An, Rn, Nn, ze, Oa],
15030
+ mixins: [Xr, Zr, eo, An, Rn, Mn, ze, Oa],
15029
15031
  props: {
15030
15032
  isModal: {
15031
15033
  type: Boolean,
@@ -15347,7 +15349,7 @@ function Ps(n, e, t, r, o, i) {
15347
15349
  ]))
15348
15350
  ], 36);
15349
15351
  }
15350
- const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ns = {
15352
+ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15351
15353
  name: "AuthRegister",
15352
15354
  mixins: [Xr, Zr, eo, An, ze],
15353
15355
  props: {
@@ -15414,14 +15416,14 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ns = {
15414
15416
  this.$storage.referral = n;
15415
15417
  }
15416
15418
  }
15417
- }, Ms = /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
15419
+ }, Ns = /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
15418
15420
  /* @__PURE__ */ y("img", {
15419
15421
  src: "https://cdn.tapni.co/icons/down-arrow.png",
15420
15422
  class: "responsive-image",
15421
15423
  style: { width: "35%" }
15422
15424
  })
15423
15425
  ], -1), Ls = [
15424
- Ms
15426
+ Ns
15425
15427
  ], Os = {
15426
15428
  class: "bold no-bottom center-text",
15427
15429
  style: { "margin-top": "63px" }
@@ -15643,7 +15645,7 @@ function Cc(n, e, t, r, o, i) {
15643
15645
  ]))
15644
15646
  ], 36);
15645
15647
  }
15646
- const vo = /* @__PURE__ */ We(Ns, [["render", Cc]]), Ec = {
15648
+ const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15647
15649
  name: "AuthVerify",
15648
15650
  mixins: [ze],
15649
15651
  props: {
@@ -15723,7 +15725,7 @@ const vo = /* @__PURE__ */ We(Ns, [["render", Cc]]), Ec = {
15723
15725
  class: "responsive-image",
15724
15726
  style: { width: "80%" }
15725
15727
  })
15726
- ], -1)), Nc = ["placeholder"], Mc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("em", null, null, -1)), Lc = { class: "page-login-field half-top" }, Oc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
15728
+ ], -1)), Mc = ["placeholder"], Nc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("em", null, null, -1)), Lc = { class: "page-login-field half-top" }, Oc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
15727
15729
  /* @__PURE__ */ y("img", {
15728
15730
  src: "https://cdn.tapni.co/icons/password2.png",
15729
15731
  class: "responsive-image",
@@ -15767,10 +15769,10 @@ function $c(n, e, t, r, o, i) {
15767
15769
  type: "email",
15768
15770
  placeholder: n.ssoLang[this.appLanguage].email,
15769
15771
  required: ""
15770
- }, null, 40, Nc), [
15772
+ }, null, 40, Mc), [
15771
15773
  [wt, o.email]
15772
15774
  ]),
15773
- Mc
15775
+ Nc
15774
15776
  ]),
15775
15777
  y("div", Lc, [
15776
15778
  Oc,
@@ -15940,7 +15942,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-af1531a
15940
15942
  }, Al = {
15941
15943
  key: 1,
15942
15944
  class: "button--loading button__loader"
15943
- }, Rl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pl = { class: "close-text center-text half-top color-black" }, Nl = ["innerHTML"], Ml = ["href"];
15945
+ }, Rl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pl = { class: "close-text center-text half-top color-black" }, Ml = ["innerHTML"], Nl = ["href"];
15944
15946
  function Ll(n, e, t, r, o, i) {
15945
15947
  const a = Dt("router-link");
15946
15948
  return o.passwordChange ? (S(), P("form", {
@@ -15999,11 +16001,11 @@ function Ll(n, e, t, r, o, i) {
15999
16001
  y("p", Pl, [
16000
16002
  y("span", {
16001
16003
  innerHTML: n.ssoLang[this.appLanguage].reset_password_p2
16002
- }, null, 8, Nl),
16004
+ }, null, 8, Ml),
16003
16005
  se(),
16004
16006
  y("a", {
16005
16007
  href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
16006
- }, " support@tapni.com", 8, Ml)
16008
+ }, " support@tapni.com", 8, Nl)
16007
16009
  ])
16008
16010
  ], 32)) : (S(), P("form", {
16009
16011
  key: 0,
@@ -16066,7 +16068,7 @@ function Ll(n, e, t, r, o, i) {
16066
16068
  }
16067
16069
  const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89a"]]), Ol = {
16068
16070
  name: "AuthCallback",
16069
- mixins: [Rn, Nn, ze],
16071
+ mixins: [Rn, Mn, ze],
16070
16072
  data() {
16071
16073
  return {};
16072
16074
  },
@@ -16138,7 +16140,7 @@ function ql(n, e, t, r, o, i) {
16138
16140
  }
16139
16141
  const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2fa"]]), Fl = {
16140
16142
  name: "SSO",
16141
- mixins: [An, Rn, Nn, ze],
16143
+ mixins: [An, Rn, Mn, ze],
16142
16144
  data() {
16143
16145
  return {
16144
16146
  toggle: !1,
@@ -16232,7 +16234,7 @@ function Jl(n, e, t, r, o, i) {
16232
16234
  }
16233
16235
  const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a09"]]), Xl = {
16234
16236
  name: "SSOPick",
16235
- mixins: [An, Rn, Nn, ze],
16237
+ mixins: [An, Rn, Mn, ze],
16236
16238
  data() {
16237
16239
  return {
16238
16240
  toggle: !1,
@@ -16265,7 +16267,7 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16265
16267
  this.azureLoad = !1, this.oktaLoad = !1, this.samlLoad = !1, this.sso = null, this.email = null, n && (this.sso = n.sso, this.email = n.email), this.toggle = !this.toggle;
16266
16268
  }
16267
16269
  }
16268
- }, Mn = (n) => (Ht("data-v-4f821f65"), n = n(), qt(), n), Zl = /* @__PURE__ */ Mn(() => /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
16270
+ }, Nn = (n) => (Ht("data-v-4f821f65"), n = n(), qt(), n), Zl = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
16269
16271
  /* @__PURE__ */ y("img", {
16270
16272
  src: "https://cdn.tapni.co/icons/down-arrow.png",
16271
16273
  class: "responsive-image",
@@ -16273,19 +16275,19 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16273
16275
  })
16274
16276
  ], -1)), eu = [
16275
16277
  Zl
16276
- ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Mn(() => /* @__PURE__ */ y("img", {
16278
+ ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16277
16279
  src: "https://cdn.tapni.co/icons/azure.png",
16278
16280
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16279
16281
  }, null, -1)), ru = { key: 0 }, ou = {
16280
16282
  key: 1,
16281
16283
  class: "button--loading button__loader"
16282
- }, iu = /* @__PURE__ */ Mn(() => /* @__PURE__ */ y("img", {
16284
+ }, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16283
16285
  src: "https://cdn.tapni.co/icons/okta.png",
16284
16286
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16285
16287
  }, null, -1)), au = { key: 0 }, su = {
16286
16288
  key: 1,
16287
16289
  class: "button--loading button__loader"
16288
- }, cu = /* @__PURE__ */ Mn(() => /* @__PURE__ */ y("img", {
16290
+ }, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16289
16291
  src: "https://cdn.tapni.co/icons/saml.png",
16290
16292
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16291
16293
  }, null, -1)), lu = { key: 0 }, uu = {
@@ -16589,7 +16591,7 @@ const Su = { id: "ssoapp" }, Au = {
16589
16591
  class: "header-logo-img"
16590
16592
  }, null, -1), Pu = [
16591
16593
  Ru
16592
- ], Nu = { class: "lang-icon" }, Mu = {
16594
+ ], Mu = { class: "lang-icon" }, Nu = {
16593
16595
  class: "snackbar snackbar-boxed",
16594
16596
  id: "snackbar"
16595
16597
  }, Lu = {
@@ -16652,7 +16654,7 @@ const Su = { id: "ssoapp" }, Au = {
16652
16654
  return;
16653
16655
  this.isSetup = !0, this.setToken(this.$storage.token);
16654
16656
  const n = this.getRefreshTokens();
16655
- this.setRefreshToken(n[0]), this.getLoggedInAccounts(), this.$emit("ssoLibraryReady");
16657
+ this.setRefreshToken(n[0]), await this.getLoggedInAccounts(), this.$emit("ssoLibraryReady");
16656
16658
  },
16657
16659
  ssoOutgoingEvent(n) {
16658
16660
  this.$emit("ssoEvent", n);
@@ -16670,6 +16672,9 @@ const Su = { id: "ssoapp" }, Au = {
16670
16672
  watch: {
16671
16673
  display() {
16672
16674
  this.applyBgStyle();
16675
+ },
16676
+ "$storageReady.value"(n) {
16677
+ n && this.display === "npm" && this.init();
16673
16678
  }
16674
16679
  }
16675
16680
  }, Hr = /* @__PURE__ */ Object.assign(qu, {
@@ -16685,7 +16690,7 @@ const Su = { id: "ssoapp" }, Au = {
16685
16690
  class: "font-18 no-border pointer color-black",
16686
16691
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16687
16692
  }, [
16688
- y("span", Nu, U(e.appLanguage.toUpperCase()), 1)
16693
+ y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
16689
16694
  ])) : ne("", !0),
16690
16695
  ke(bo),
16691
16696
  n.isModal ? ne("", !0) : (S(), qe(To, { key: 2 })),
@@ -16701,7 +16706,7 @@ const Su = { id: "ssoapp" }, Au = {
16701
16706
  key: 8,
16702
16707
  isModal: n.isModal
16703
16708
  }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : (S(), qe(Qo(Yo), { key: 11 })),
16704
- y("div", Mu, [
16709
+ y("div", Nu, [
16705
16710
  y("p", Lu, [
16706
16711
  y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
16707
16712
  y("a", {