@tapni/auth 0.0.101 → 0.0.103

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.
@@ -1,4 +1,4 @@
1
- import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
1
+ import { reactive as Ko, readonly as Go, resolveComponent as Bt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ee, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Dt, popScopeId as Ht, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Lt, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as un, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
2
2
  import { RouterView as Yo } from "vue-router";
3
3
  import ne from "await-to-js";
4
4
  import Xn from "axios";
@@ -8,7 +8,7 @@ import { Capacitor as Vt, 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.100";
11
+ const Xo = "0.0.103";
12
12
  let Un;
13
13
  const qt = {
14
14
  setApiRootFromOptions(n) {
@@ -4445,7 +4445,7 @@ const ze = {
4445
4445
  ]);
4446
4446
  },
4447
4447
  async switchAccount(n) {
4448
- console.log("switch account auth f"), this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction(this.loggedInAccounts[n]), z.$emit("ssoEvent", { name: "switchAccount", data: { username: n } });
4448
+ this.$storage.username = n, this.loggedInAccounts[n] && (this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction({ ...this.loggedInAccounts[n], storage: this.$storage })), z.$emit("ssoEvent", { name: "switchAccount", data: { username: n } });
4449
4449
  },
4450
4450
  async refreshTokenAction(n) {
4451
4451
  return new Promise(async (e, t) => {
@@ -4485,7 +4485,9 @@ const ze = {
4485
4485
  { code: n.data.auth_code, state: this.$route.query.state },
4486
4486
  e
4487
4487
  );
4488
- }) : this.display === "npm" && (z.$emit("ssoEvent", { name: "setLoading", data: !0 }), z.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), z.$emit("ssoEvent", { name: "getUser", data: { username: this.$storage.username } }), n.isModal && (z.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + n.data.data.username + "#edit"));
4488
+ }) : this.display === "npm" && (z.$emit("ssoEvent", { name: "setLoading", data: !0 }), z.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), z.$emit("ssoEvent", { name: "getUser", data: { username: this.$storage.username } }), n.isModal && (z.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login), setTimeout(() => {
4489
+ location.reload();
4490
+ }, 1500)), this.$router.push("/" + n.data.data.username + "#edit"));
4489
4491
  },
4490
4492
  async register(n) {
4491
4493
  const [e, t] = await ne(
@@ -4662,7 +4664,7 @@ const ze = {
4662
4664
  type: "video/mp4"
4663
4665
  }, null, -1)), ai = [
4664
4666
  ii
4665
- ], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, ui = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), di = {
4667
+ ], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, di = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ui = {
4666
4668
  key: 2,
4667
4669
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4668
4670
  }, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>', 3), hi = [
@@ -4702,9 +4704,9 @@ function mi(n, e, t, r, o, i) {
4702
4704
  ]),
4703
4705
  _: 1
4704
4706
  }),
4705
- ui
4707
+ di
4706
4708
  ]),
4707
- this.isNative ? ee("", !0) : (S(), P("div", di, hi))
4709
+ this.isNative ? ee("", !0) : (S(), P("div", ui, hi))
4708
4710
  ]);
4709
4711
  }
4710
4712
  const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
@@ -4902,22 +4904,22 @@ function T(n, e, t, r) {
4902
4904
  });
4903
4905
  }
4904
4906
  return new (t || (t = Promise))(function(i, a) {
4905
- function s(d) {
4907
+ function s(u) {
4906
4908
  try {
4907
- p(r.next(d));
4909
+ p(r.next(u));
4908
4910
  } catch (f) {
4909
4911
  a(f);
4910
4912
  }
4911
4913
  }
4912
- function u(d) {
4914
+ function d(u) {
4913
4915
  try {
4914
- p(r.throw(d));
4916
+ p(r.throw(u));
4915
4917
  } catch (f) {
4916
4918
  a(f);
4917
4919
  }
4918
4920
  }
4919
- function p(d) {
4920
- d.done ? i(d.value) : o(d.value).then(s, u);
4921
+ function p(u) {
4922
+ u.done ? i(u.value) : o(u.value).then(s, d);
4921
4923
  }
4922
4924
  p((r = r.apply(n, e || [])).next());
4923
4925
  });
@@ -4932,11 +4934,11 @@ function I(n, e) {
4932
4934
  return this;
4933
4935
  }), a;
4934
4936
  function s(p) {
4935
- return function(d) {
4936
- return u([p, d]);
4937
+ return function(u) {
4938
+ return d([p, u]);
4937
4939
  };
4938
4940
  }
4939
- function u(p) {
4941
+ function d(p) {
4940
4942
  if (r)
4941
4943
  throw new TypeError("Generator is already executing.");
4942
4944
  for (; t; )
@@ -4977,8 +4979,8 @@ function I(n, e) {
4977
4979
  continue;
4978
4980
  }
4979
4981
  p = e.call(n, t);
4980
- } catch (d) {
4981
- p = [6, d], o = 0;
4982
+ } catch (u) {
4983
+ p = [6, u], o = 0;
4982
4984
  } finally {
4983
4985
  r = i = 0;
4984
4986
  }
@@ -5059,22 +5061,22 @@ function j(n, e, t, r) {
5059
5061
  });
5060
5062
  }
5061
5063
  return new (t || (t = Promise))(function(i, a) {
5062
- function s(d) {
5064
+ function s(u) {
5063
5065
  try {
5064
- p(r.next(d));
5066
+ p(r.next(u));
5065
5067
  } catch (f) {
5066
5068
  a(f);
5067
5069
  }
5068
5070
  }
5069
- function u(d) {
5071
+ function d(u) {
5070
5072
  try {
5071
- p(r.throw(d));
5073
+ p(r.throw(u));
5072
5074
  } catch (f) {
5073
5075
  a(f);
5074
5076
  }
5075
5077
  }
5076
- function p(d) {
5077
- d.done ? i(d.value) : o(d.value).then(s, u);
5078
+ function p(u) {
5079
+ u.done ? i(u.value) : o(u.value).then(s, d);
5078
5080
  }
5079
5081
  p((r = r.apply(n, e || [])).next());
5080
5082
  });
@@ -5089,11 +5091,11 @@ function K(n, e) {
5089
5091
  return this;
5090
5092
  }), a;
5091
5093
  function s(p) {
5092
- return function(d) {
5093
- return u([p, d]);
5094
+ return function(u) {
5095
+ return d([p, u]);
5094
5096
  };
5095
5097
  }
5096
- function u(p) {
5098
+ function d(p) {
5097
5099
  if (r)
5098
5100
  throw new TypeError("Generator is already executing.");
5099
5101
  for (; t; )
@@ -5134,8 +5136,8 @@ function K(n, e) {
5134
5136
  continue;
5135
5137
  }
5136
5138
  p = e.call(n, t);
5137
- } catch (d) {
5138
- p = [6, d], o = 0;
5139
+ } catch (u) {
5140
+ p = [6, u], o = 0;
5139
5141
  } finally {
5140
5142
  r = i = 0;
5141
5143
  }
@@ -5313,10 +5315,10 @@ var At;
5313
5315
  (function(n) {
5314
5316
  n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
5315
5317
  })(At || (At = {}));
5316
- var dt;
5318
+ var ut;
5317
5319
  (function(n) {
5318
5320
  n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
5319
- })(dt || (dt = {}));
5321
+ })(ut || (ut = {}));
5320
5322
  var Jt;
5321
5323
  (function(n) {
5322
5324
  n.CONFIGURED_MATCHES_DETECTED = "1", n.CONFIGURED_NO_AUTO_DETECTION = "2", n.CONFIGURED_NOT_DETECTED = "3", n.AUTO_DETECTION_REQUESTED_SUCCESSFUL = "4", n.AUTO_DETECTION_REQUESTED_FAILED = "5";
@@ -5762,8 +5764,8 @@ var L = (
5762
5764
  };
5763
5765
  return r.forEach(function(i) {
5764
5766
  if (i.trim()) {
5765
- var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
5766
- s && u && (t[o(s)] = o(u));
5767
+ var a = i.split(/=(.+)/g, 2), s = a[0], d = a[1];
5768
+ s && d && (t[o(s)] = o(d));
5767
5769
  }
5768
5770
  }), t;
5769
5771
  }, n.trimArrayEntries = function(e) {
@@ -6203,34 +6205,34 @@ var we = (
6203
6205
  e.tenantId || g.EMPTY_STRING
6204
6206
  ];
6205
6207
  return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
6206
- }, n.createAccount = function(e, t, r, o, i, a, s, u) {
6207
- var p, d, f, _, k, E, N = new n();
6208
- N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
6208
+ }, n.createAccount = function(e, t, r, o, i, a, s, d) {
6209
+ var p, u, f, _, k, E, N = new n();
6210
+ N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = d;
6209
6211
  var Q = s || o && o.getPreferredCache();
6210
6212
  if (!Q)
6211
6213
  throw O.createInvalidCacheEnvironmentError();
6212
6214
  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) {
6213
- 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;
6215
+ N.idTokenClaims = r.claims, N.localAccountId = ((u = r == null ? void 0 : r.claims) === null || u === void 0 ? void 0 : u.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6214
6216
  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;
6215
6217
  N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6216
6218
  }
6217
6219
  return N.cloudGraphHostName = i, N.msGraphHost = a, N;
6218
6220
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
6219
- var s, u, p, d, f = new n();
6221
+ var s, d, p, u, f = new n();
6220
6222
  f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
6221
6223
  var _ = a || r && r.getPreferredCache();
6222
6224
  if (!_)
6223
6225
  throw O.createInvalidCacheEnvironmentError();
6224
- return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.sub) || g.EMPTY_STRING, f.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || g.EMPTY_STRING, f.name = ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
6226
+ return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((d = t == null ? void 0 : t.claims) === null || d === void 0 ? void 0 : d.sub) || g.EMPTY_STRING, f.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || g.EMPTY_STRING, f.name = ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.name) || g.EMPTY_STRING, f.idTokenClaims = t == null ? void 0 : t.claims), f.environment = _, f.cloudGraphHostName = o, f.msGraphHost = i, f;
6225
6227
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
6226
6228
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
6227
6229
  if (t === Se.Adfs || t === Se.Dsts)
6228
6230
  return s;
6229
6231
  if (e)
6230
6232
  try {
6231
- var u = vn(e, o);
6232
- if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
6233
- return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
6233
+ var d = vn(e, o);
6234
+ if (!L.isEmpty(d.uid) && !L.isEmpty(d.utid))
6235
+ return "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid;
6234
6236
  } catch {
6235
6237
  }
6236
6238
  return r.verbose("No client info in response"), s;
@@ -6331,12 +6333,12 @@ var Me = (
6331
6333
  realm: e.realm,
6332
6334
  tokenType: e.tokenType,
6333
6335
  requestedClaimsHash: e.requestedClaimsHash
6334
- }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
6335
- if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
6336
- var p = a.getAccessTokenCredential(u);
6336
+ }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(d) {
6337
+ if (a.accessTokenKeyMatchesFilter(d, t, !1)) {
6338
+ var p = a.getAccessTokenCredential(d);
6337
6339
  if (p && a.credentialMatchesFilter(p, t)) {
6338
- var d = Ee.fromString(p.target);
6339
- d.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
6340
+ var u = Ee.fromString(p.target);
6341
+ u.intersectingScopeSets(o) && i.push(a.removeAccessToken(d));
6340
6342
  }
6341
6343
  }
6342
6344
  }), [4, Promise.all(i)];
@@ -6481,12 +6483,12 @@ var Me = (
6481
6483
  e.isAppMetadata(r) && e.removeItem(r);
6482
6484
  }), !0;
6483
6485
  }, n.prototype.readCacheRecord = function(e, t, r) {
6484
- var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), u = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
6486
+ var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), d = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
6485
6487
  return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
6486
6488
  account: i,
6487
6489
  idToken: a,
6488
6490
  accessToken: s,
6489
- refreshToken: u,
6491
+ refreshToken: d,
6490
6492
  appMetadata: p
6491
6493
  };
6492
6494
  }, n.prototype.readAccountFromCache = function(e) {
@@ -6523,7 +6525,7 @@ var Me = (
6523
6525
  }, n.prototype.getAccessToken = function(e, t, r) {
6524
6526
  var o = this;
6525
6527
  this.commonLogger.trace("CacheManager - getAccessToken called");
6526
- var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, u = {
6528
+ var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || te.BEARER, s = a && a.toLowerCase() !== te.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, d = {
6527
6529
  homeAccountId: e.homeAccountId,
6528
6530
  environment: e.environment,
6529
6531
  credentialType: s,
@@ -6533,17 +6535,17 @@ var Me = (
6533
6535
  tokenType: a,
6534
6536
  keyId: t.sshKid,
6535
6537
  requestedClaimsHash: t.requestedClaimsHash
6536
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, d = [];
6538
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
6537
6539
  p.forEach(function(_) {
6538
- if (o.accessTokenKeyMatchesFilter(_, u, !0)) {
6540
+ if (o.accessTokenKeyMatchesFilter(_, d, !0)) {
6539
6541
  var k = o.getAccessTokenCredential(_);
6540
- k && o.credentialMatchesFilter(k, u) && d.push(k);
6542
+ k && o.credentialMatchesFilter(k, d) && u.push(k);
6541
6543
  }
6542
6544
  });
6543
- var f = d.length;
6544
- return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), d.forEach(function(_) {
6545
+ var f = u.length;
6546
+ return f < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : f > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), u.forEach(function(_) {
6545
6547
  o.removeAccessToken(_.generateCredentialKey());
6546
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), d[0]);
6548
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
6547
6549
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
6548
6550
  var o = e.toLowerCase();
6549
6551
  if (t.clientId && o.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && o.indexOf(t.homeAccountId.toLowerCase()) === -1 || t.realm && o.indexOf(t.realm.toLowerCase()) === -1 || t.requestedClaimsHash && o.indexOf(t.requestedClaimsHash.toLowerCase()) === -1)
@@ -6573,15 +6575,15 @@ var Me = (
6573
6575
  credentialType: H.REFRESH_TOKEN,
6574
6576
  clientId: this.clientId,
6575
6577
  familyId: i
6576
- }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
6577
- s.forEach(function(d) {
6578
- if (o.refreshTokenKeyMatchesFilter(d, a)) {
6579
- var f = o.getRefreshTokenCredential(d);
6580
- f && o.credentialMatchesFilter(f, a) && u.push(f);
6578
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, d = [];
6579
+ s.forEach(function(u) {
6580
+ if (o.refreshTokenKeyMatchesFilter(u, a)) {
6581
+ var f = o.getRefreshTokenCredential(u);
6582
+ f && o.credentialMatchesFilter(f, a) && d.push(f);
6581
6583
  }
6582
6584
  });
6583
- var p = u.length;
6584
- return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
6585
+ var p = d.length;
6586
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), d[0]);
6585
6587
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
6586
6588
  var r = e.toLowerCase();
6587
6589
  return !(t.familyId && r.indexOf(t.familyId.toLowerCase()) === -1 || !t.familyId && t.clientId && r.indexOf(t.clientId.toLowerCase()) === -1 || t.homeAccountId && r.indexOf(t.homeAccountId.toLowerCase()) === -1);
@@ -6776,7 +6778,7 @@ var ki = 300, no = {
6776
6778
  }
6777
6779
  };
6778
6780
  function Ai(n) {
6779
- var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, d = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = Z(Z({}, wi), r);
6781
+ var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, d = n.clientCredentials, p = n.libraryInfo, u = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = Z(Z({}, wi), r);
6780
6782
  return {
6781
6783
  authOptions: Ri(e),
6782
6784
  systemOptions: Z(Z({}, no), t),
@@ -6785,9 +6787,9 @@ function Ai(n) {
6785
6787
  storageInterface: i || new yi(e.clientId, _n, new er(E)),
6786
6788
  networkInterface: a || Ci,
6787
6789
  cryptoInterface: s || _n,
6788
- clientCredentials: u || Ti,
6790
+ clientCredentials: d || Ti,
6789
6791
  libraryInfo: Z(Z({}, Ei), p),
6790
- telemetry: Z(Z({}, Si), d),
6792
+ telemetry: Z(Z({}, Si), u),
6791
6793
  serverTelemetryManager: f || null,
6792
6794
  persistencePlugin: _ || null,
6793
6795
  serializableCache: k || null
@@ -7125,15 +7127,15 @@ var rr = (
7125
7127
  default:
7126
7128
  throw O.createUnexpectedCredentialTypeError();
7127
7129
  }
7128
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
7129
- var d = [
7130
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, d, p) {
7131
+ var u = [
7130
7132
  this.generateAccountIdForCacheKey(e, t),
7131
7133
  this.generateCredentialIdForCacheKey(r, o, i, s),
7132
7134
  this.generateTargetForCacheKey(a),
7133
7135
  this.generateClaimsHashForCacheKey(p),
7134
- this.generateSchemeForCacheKey(u)
7136
+ this.generateSchemeForCacheKey(d)
7135
7137
  ];
7136
- return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7138
+ return u.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7137
7139
  }, n.generateAccountIdForCacheKey = function(e, t) {
7138
7140
  var r = [e, t];
7139
7141
  return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -7200,14 +7202,14 @@ var _t = (
7200
7202
  function e() {
7201
7203
  return n !== null && n.apply(this, arguments) || this;
7202
7204
  }
7203
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
7205
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, d, p, u, f, _, k, E, N, Q) {
7204
7206
  var X, G, $ = new e();
7205
7207
  $.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
7206
7208
  var Ae = Ke.nowSeconds();
7207
- 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())
7209
+ if ($.cachedAt = Ae.toString(), $.expiresOn = d.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())
7208
7210
  switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
7209
7211
  case te.POP:
7210
- var xe = rt.extractTokenClaims(o, d);
7212
+ var xe = rt.extractTokenClaims(o, u);
7211
7213
  if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
7212
7214
  throw O.createTokenClaimsRequiredError();
7213
7215
  $.keyId = xe.cnf.kid;
@@ -7230,8 +7232,8 @@ var Pt = (
7230
7232
  return n !== null && n.apply(this, arguments) || this;
7231
7233
  }
7232
7234
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
7233
- var u = new e();
7234
- return u.clientId = i, u.credentialType = H.REFRESH_TOKEN, u.environment = r, u.homeAccountId = t, u.secret = o, u.userAssertionHash = s, a && (u.familyId = a), u;
7235
+ var d = new e();
7236
+ return d.clientId = i, d.credentialType = H.REFRESH_TOKEN, d.environment = r, d.homeAccountId = t, d.secret = o, d.userAssertionHash = s, a && (d.familyId = a), d;
7235
7237
  }, e.isRefreshTokenEntity = function(t) {
7236
7238
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
7237
7239
  }, e;
@@ -7261,13 +7263,13 @@ var Ir = [
7261
7263
  /** @class */
7262
7264
  function(n) {
7263
7265
  Ue(e, n);
7264
- function e(t, r, o, i, a, s, u) {
7266
+ function e(t, r, o, i, a, s, d) {
7265
7267
  var p = n.call(this, t, r, o) || this;
7266
- 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;
7268
+ 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 = d || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7267
7269
  }
7268
7270
  return e.isInteractionRequiredError = function(t, r, o) {
7269
- var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
7270
- return r.indexOf(u) > -1;
7271
+ var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(d) {
7272
+ return r.indexOf(d) > -1;
7271
7273
  });
7272
7274
  return i || s || a;
7273
7275
  }, e.createNoTokensFoundError = function() {
@@ -7316,8 +7318,8 @@ var st = (
7316
7318
  userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
7317
7319
  libraryState: s
7318
7320
  };
7319
- } catch (u) {
7320
- throw O.createInvalidStateError(t, u);
7321
+ } catch (d) {
7322
+ throw O.createInvalidStateError(t, d);
7321
7323
  }
7322
7324
  }, n;
7323
7325
  }()
@@ -7490,11 +7492,11 @@ var Ut = (
7490
7492
  });
7491
7493
  }, n.prototype.signPayload = function(e, t, r, o) {
7492
7494
  return j(this, void 0, void 0, function() {
7493
- var i, a, s, u, p, d;
7495
+ var i, a, s, d, p, u;
7494
7496
  return K(this, function(f) {
7495
7497
  switch (f.label) {
7496
7498
  case 0:
7497
- return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new W(a) : void 0, d = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(Z({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: d == null ? void 0 : d.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: d == null ? void 0 : d.AbsolutePath, q: d != null && d.QueryString ? [[], d.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
7499
+ return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, d = r.shrNonce, p = a ? new W(a) : void 0, u = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(Z({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: u == null ? void 0 : u.HostNameAndPort, nonce: d || this.cryptoUtils.createNewGuid(), p: u == null ? void 0 : u.AbsolutePath, q: u != null && u.QueryString ? [[], u.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
7498
7500
  case 1:
7499
7501
  return [2, f.sent()];
7500
7502
  }
@@ -7576,14 +7578,14 @@ var wn = (
7576
7578
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
7577
7579
  throw new bt(e.error, t, e.suberror);
7578
7580
  }
7579
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
7580
- var d;
7581
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, d, p) {
7582
+ var u;
7581
7583
  return j(this, void 0, void 0, function() {
7582
7584
  var f, _, k, E, N, Q, X;
7583
7585
  return K(this, function(G) {
7584
7586
  switch (G.label) {
7585
7587
  case 0:
7586
- if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7588
+ if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7587
7589
  if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
7588
7590
  throw O.createNonceMismatchError();
7589
7591
  if (o.maxAge || o.maxAge === 0) {
@@ -7598,7 +7600,7 @@ var wn = (
7598
7600
  case 2:
7599
7601
  G.sent(), G.label = 3;
7600
7602
  case 3:
7601
- return s && !u && E.account && (Q = E.account.generateAccountKey(), X = this.cacheStorage.getAccount(Q), !X) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, f, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
7603
+ return s && !d && E.account && (Q = E.account.generateAccountKey(), X = this.cacheStorage.getAccount(Q), !X) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, f, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
7602
7604
  case 4:
7603
7605
  return G.sent(), [3, 8];
7604
7606
  case 5:
@@ -7616,20 +7618,20 @@ var wn = (
7616
7618
  });
7617
7619
  });
7618
7620
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
7619
- var u = t.getPreferredCache();
7620
- if (L.isEmpty(u))
7621
+ var d = t.getPreferredCache();
7622
+ if (L.isEmpty(d))
7621
7623
  throw O.createInvalidCacheEnvironmentError();
7622
- var p, d;
7623
- !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));
7624
+ var p, u;
7625
+ !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, d, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
7624
7626
  var f = null;
7625
7627
  if (!L.isEmpty(e.access_token)) {
7626
7628
  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;
7627
- 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);
7629
+ f = _t.createAccessTokenEntity(this.homeAccountIdentifier, d, 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);
7628
7630
  }
7629
7631
  var $ = null;
7630
- L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7632
+ L.isEmpty(e.refresh_token) || ($ = Pt.createRefreshTokenEntity(this.homeAccountIdentifier, d, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7631
7633
  var Ae = null;
7632
- return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new Zt(d, p, f, $, Ae);
7634
+ return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, d, e.foci)), new Zt(u, p, f, $, Ae);
7633
7635
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
7634
7636
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
7635
7637
  if (i === Se.Adfs)
@@ -7637,8 +7639,8 @@ var wn = (
7637
7639
  if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
7638
7640
  throw O.createClientInfoEmptyError();
7639
7641
  return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
7640
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
7641
- var d, f, _;
7642
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, d, p) {
7643
+ var u, f, _;
7642
7644
  return j(this, void 0, void 0, function() {
7643
7645
  var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
7644
7646
  return K(this, function(ce) {
@@ -7658,7 +7660,7 @@ var wn = (
7658
7660
  case 3:
7659
7661
  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;
7660
7662
  case 4:
7661
- return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : 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, {
7663
+ return r.appMetadata && (X = r.appMetadata.familyId === Yt ? Yt : 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, d != null && d.spa_accountid && r.account && (r.account.nativeAccountId = d == null ? void 0 : d.spa_accountid), [2, {
7662
7664
  authority: t.canonicalAuthority,
7663
7665
  uniqueId: Ve,
7664
7666
  tenantId: Ct,
@@ -7673,11 +7675,11 @@ var wn = (
7673
7675
  requestId: p || g.EMPTY_STRING,
7674
7676
  extExpiresOn: Q,
7675
7677
  familyId: X,
7676
- tokenType: ((d = r.accessToken) === null || d === void 0 ? void 0 : d.tokenType) || g.EMPTY_STRING,
7678
+ tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || g.EMPTY_STRING,
7677
7679
  state: s ? s.userRequestState : g.EMPTY_STRING,
7678
7680
  cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
7679
7681
  msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
7680
- code: u == null ? void 0 : u.spa_code,
7682
+ code: d == null ? void 0 : d.spa_code,
7681
7683
  fromNativeBroker: !1
7682
7684
  }];
7683
7685
  }
@@ -7709,24 +7711,24 @@ var ro = (
7709
7711
  });
7710
7712
  });
7711
7713
  }, e.prototype.acquireToken = function(t, r) {
7712
- var o, i, a, s, u, p;
7714
+ var o, i, a, s, d, p;
7713
7715
  return j(this, void 0, void 0, function() {
7714
- var d, f, _, k, E, N, Q = this;
7716
+ var u, f, _, k, E, N, Q = this;
7715
7717
  return K(this, function(X) {
7716
7718
  switch (X.label) {
7717
7719
  case 0:
7718
7720
  if (!t || !t.code)
7719
7721
  throw O.createTokenRequestCannotBeMadeError();
7720
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), d = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
7722
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), u = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
7721
7723
  case 1:
7722
- 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({
7724
+ return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (d = _.headers) === null || d === void 0 ? void 0 : d[De.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
7723
7725
  httpVerAuthority: E
7724
7726
  })), 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) {
7725
- return d == null || d.endMeasurement({
7727
+ return u == null || u.endMeasurement({
7726
7728
  success: !0
7727
7729
  }), G;
7728
7730
  }).catch(function(G) {
7729
- throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), d == null || d.endMeasurement({
7731
+ throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
7730
7732
  errorCode: G.errorCode,
7731
7733
  subErrorCode: G.subError,
7732
7734
  success: !1
@@ -7751,16 +7753,16 @@ var ro = (
7751
7753
  }, e.prototype.executeTokenRequest = function(t, r) {
7752
7754
  var o, i;
7753
7755
  return j(this, void 0, void 0, function() {
7754
- var a, s, u, p, d, f, _;
7756
+ var a, s, d, p, u, f, _;
7755
7757
  return K(this, function(k) {
7756
7758
  switch (k.label) {
7757
7759
  case 0:
7758
7760
  return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientExecuteTokenRequest, r.correlationId), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthClientCreateTokenRequestBody, r.correlationId), a = this.createTokenQueryParameters(r), s = W.appendQueryString(t.tokenEndpoint, a), [4, this.createTokenRequestBody(r)];
7759
7761
  case 1:
7760
- if (u = k.sent(), p = void 0, r.clientInfo)
7762
+ if (d = k.sent(), p = void 0, r.clientInfo)
7761
7763
  try {
7762
- d = vn(r.clientInfo, this.cryptoUtils), p = {
7763
- credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
7764
+ u = vn(r.clientInfo, this.cryptoUtils), p = {
7765
+ credential: "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid,
7764
7766
  type: Be.HOME_ACCOUNT_ID
7765
7767
  };
7766
7768
  } catch (E) {
@@ -7776,20 +7778,20 @@ var ro = (
7776
7778
  resourceRequestUri: r.resourceRequestUri,
7777
7779
  shrClaims: r.shrClaims,
7778
7780
  sshKid: r.sshKid
7779
- }, [2, this.executePostToTokenEndpoint(s, u, f, _)];
7781
+ }, [2, this.executePostToTokenEndpoint(s, d, f, _)];
7780
7782
  }
7781
7783
  });
7782
7784
  });
7783
7785
  }, e.prototype.createTokenRequestBody = function(t) {
7784
7786
  var r, o;
7785
7787
  return j(this, void 0, void 0, function() {
7786
- var i, a, s, u, p, d, f, f, _;
7788
+ var i, a, s, d, p, u, f, f, _;
7787
7789
  return K(this, function(k) {
7788
7790
  switch (k.label) {
7789
7791
  case 0:
7790
7792
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Xt(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : ft.validateRedirectUri(t.redirectUri), i.addScopes(t.scopes), i.addAuthorizationCode(t.code), i.addLibraryInfo(this.config.libraryInfo), i.addApplicationTelemetry(this.config.telemetry.application), i.addThrottling(), this.serverTelemetryManager && i.addServerTelemetry(this.serverTelemetryManager), t.codeVerifier && i.addCodeVerifier(t.codeVerifier), this.config.clientCredentials.clientSecret && i.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (a = this.config.clientCredentials.clientAssertion, i.addClientAssertion(a.assertion), i.addClientAssertionType(a.assertionType)), i.addGrantType(fn.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== te.POP ? [3, 2] : (s = new Ut(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
7791
7793
  case 1:
7792
- return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
7794
+ return d = k.sent(), i.addPopToken(d.reqCnfString), [3, 3];
7793
7795
  case 2:
7794
7796
  if (t.authenticationScheme === te.SSH)
7795
7797
  if (t.sshJwk)
@@ -7798,9 +7800,9 @@ var ro = (
7798
7800
  throw ie.createMissingSshJwkError();
7799
7801
  k.label = 3;
7800
7802
  case 3:
7801
- if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), d = void 0, t.clientInfo)
7803
+ if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), u = void 0, t.clientInfo)
7802
7804
  try {
7803
- f = vn(t.clientInfo, this.cryptoUtils), d = {
7805
+ f = vn(t.clientInfo, this.cryptoUtils), u = {
7804
7806
  credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
7805
7807
  type: Be.HOME_ACCOUNT_ID
7806
7808
  };
@@ -7808,18 +7810,18 @@ var ro = (
7808
7810
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
7809
7811
  }
7810
7812
  else
7811
- d = t.ccsCredential;
7812
- if (this.config.systemOptions.preventCorsPreflight && d)
7813
- switch (d.type) {
7813
+ u = t.ccsCredential;
7814
+ if (this.config.systemOptions.preventCorsPreflight && u)
7815
+ switch (u.type) {
7814
7816
  case Be.HOME_ACCOUNT_ID:
7815
7817
  try {
7816
- f = Rt(d.credential), i.addCcsOid(f);
7818
+ f = Rt(u.credential), i.addCcsOid(f);
7817
7819
  } catch (E) {
7818
7820
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
7819
7821
  }
7820
7822
  break;
7821
7823
  case Be.UPN:
7822
- i.addCcsUpn(d.credential);
7824
+ i.addCcsUpn(u.credential);
7823
7825
  break;
7824
7826
  }
7825
7827
  return t.tokenBodyParameters && i.addExtraQueryParameters(t.tokenBodyParameters), t.enableSpaAuthorizationCode && (!t.tokenBodyParameters || !t.tokenBodyParameters[V.RETURN_SPA_CODE]) && i.addExtraQueryParameters((_ = {}, _[V.RETURN_SPA_CODE] = "1", _)), [2, i.createQueryString()];
@@ -7829,7 +7831,7 @@ var ro = (
7829
7831
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
7830
7832
  var r;
7831
7833
  return j(this, void 0, void 0, function() {
7832
- var o, i, a, s, u, p, p, p, d, f;
7834
+ var o, i, a, s, d, p, p, p, u, f;
7833
7835
  return K(this, function(_) {
7834
7836
  switch (_.label) {
7835
7837
  case 0:
@@ -7837,8 +7839,8 @@ var ro = (
7837
7839
  if (t.sid && t.prompt === Te.NONE)
7838
7840
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
7839
7841
  else if (t.account) {
7840
- if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
7841
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
7842
+ if (s = this.extractAccountSid(t.account), d = this.extractLoginHint(t.account), d) {
7843
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(d);
7842
7844
  try {
7843
7845
  p = Rt(t.account.homeAccountId), o.addCcsOid(p);
7844
7846
  } catch {
@@ -7865,7 +7867,7 @@ var ro = (
7865
7867
  t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
7866
7868
  else
7867
7869
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
7868
- return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils), [4, d.generateCnf(t)])) : [3, 2];
7870
+ return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!L.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== te.POP ? [3, 2] : (u = new Ut(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
7869
7871
  case 1:
7870
7872
  f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
7871
7873
  case 2:
@@ -7894,24 +7896,24 @@ var oo = (
7894
7896
  return n.call(this, t, r) || this;
7895
7897
  }
7896
7898
  return e.prototype.acquireToken = function(t) {
7897
- var r, o, i, a, s, u, p;
7899
+ var r, o, i, a, s, d, p;
7898
7900
  return j(this, void 0, void 0, function() {
7899
- var d, f, _, k, E, N, Q = this;
7901
+ var u, f, _, k, E, N, Q = this;
7900
7902
  return K(this, function(X) {
7901
7903
  switch (X.label) {
7902
7904
  case 0:
7903
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), d = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
7905
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), u = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
7904
7906
  case 1:
7905
- return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
7907
+ return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
7906
7908
  refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
7907
- }), k && (d == null || d.addStaticFields({
7909
+ }), k && (u == null || u.addStaticFields({
7908
7910
  httpVerToken: k
7909
- })), 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) {
7910
- return d == null || d.endMeasurement({
7911
+ })), E = (d = _.headers) === null || d === void 0 ? void 0 : d[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) {
7912
+ return u == null || u.endMeasurement({
7911
7913
  success: !0
7912
7914
  }), G;
7913
7915
  }).catch(function(G) {
7914
- throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), d == null || d.endMeasurement({
7916
+ throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
7915
7917
  errorCode: G.errorCode,
7916
7918
  subErrorCode: G.subError,
7917
7919
  success: !1
@@ -7923,8 +7925,8 @@ var oo = (
7923
7925
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
7924
7926
  var r, o, i, a;
7925
7927
  return j(this, void 0, void 0, function() {
7926
- var s, u, p;
7927
- return K(this, function(d) {
7928
+ var s, d, p;
7929
+ return K(this, function(u) {
7928
7930
  if (!t)
7929
7931
  throw ie.createEmptyTokenRequestError();
7930
7932
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -7933,7 +7935,7 @@ var oo = (
7933
7935
  try {
7934
7936
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
7935
7937
  } catch (f) {
7936
- 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)
7938
+ if (d = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, d || p)
7937
7939
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
7938
7940
  throw f;
7939
7941
  }
@@ -7943,13 +7945,13 @@ var oo = (
7943
7945
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
7944
7946
  var o, i, a;
7945
7947
  return j(this, void 0, void 0, function() {
7946
- var s, u, p;
7947
- return K(this, function(d) {
7948
- if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
7948
+ var s, d, p;
7949
+ return K(this, function(u) {
7950
+ if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), d = this.cacheManager.getRefreshToken(t.account, r), !d)
7949
7951
  throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
7950
7952
  return s == null || s.endMeasurement({
7951
7953
  success: !0
7952
- }), p = Z(Z({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
7954
+ }), p = Z(Z({}, t), { refreshToken: d.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
7953
7955
  credential: t.account.homeAccountId,
7954
7956
  type: Be.HOME_ACCOUNT_ID
7955
7957
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
@@ -7958,13 +7960,13 @@ var oo = (
7958
7960
  }, e.prototype.executeTokenRequest = function(t, r) {
7959
7961
  var o, i, a;
7960
7962
  return j(this, void 0, void 0, function() {
7961
- var s, u, p, d, f, _;
7963
+ var s, d, p, u, f, _;
7962
7964
  return K(this, function(k) {
7963
7965
  switch (k.label) {
7964
7966
  case 0:
7965
- return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
7967
+ return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), d = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, d), [4, this.createTokenRequestBody(t)];
7966
7968
  case 1:
7967
- return d = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7969
+ return u = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7968
7970
  clientId: this.config.authOptions.clientId,
7969
7971
  authority: r.canonicalAuthority,
7970
7972
  scopes: t.scopes,
@@ -7974,7 +7976,7 @@ var oo = (
7974
7976
  resourceRequestUri: t.resourceRequestUri,
7975
7977
  shrClaims: t.shrClaims,
7976
7978
  sshKid: t.sshKid
7977
- }, [2, this.executePostToTokenEndpoint(p, d, f, _).then(function(E) {
7979
+ }, [2, this.executePostToTokenEndpoint(p, u, f, _).then(function(E) {
7978
7980
  return s == null || s.endMeasurement({
7979
7981
  success: !0
7980
7982
  }), E;
@@ -7989,39 +7991,39 @@ var oo = (
7989
7991
  }, e.prototype.createTokenRequestBody = function(t) {
7990
7992
  var r, o, i;
7991
7993
  return j(this, void 0, void 0, function() {
7992
- var a, s, u, p, d, f, _;
7994
+ var a, s, d, p, u, f, _;
7993
7995
  return K(this, function(k) {
7994
7996
  switch (k.label) {
7995
7997
  case 0:
7996
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a), u = new Xt(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(fn.REFRESH_TOKEN_GRANT), u.addClientInfo(), u.addLibraryInfo(this.config.libraryInfo), u.addApplicationTelemetry(this.config.telemetry.application), u.addThrottling(), this.serverTelemetryManager && u.addServerTelemetry(this.serverTelemetryManager), u.addCorrelationId(a), u.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && u.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, u.addClientAssertion(p.assertion), u.addClientAssertionType(p.assertionType)), t.authenticationScheme !== te.POP ? [3, 2] : (d = new Ut(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, d.generateCnf(t)]);
7998
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.BaseClientCreateTokenRequestHeaders, a), d = new Xt(), d.addClientId(this.config.authOptions.clientId), d.addScopes(t.scopes), d.addGrantType(fn.REFRESH_TOKEN_GRANT), d.addClientInfo(), d.addLibraryInfo(this.config.libraryInfo), d.addApplicationTelemetry(this.config.telemetry.application), d.addThrottling(), this.serverTelemetryManager && d.addServerTelemetry(this.serverTelemetryManager), d.addCorrelationId(a), d.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && d.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, d.addClientAssertion(p.assertion), d.addClientAssertionType(p.assertionType)), t.authenticationScheme !== te.POP ? [3, 2] : (u = new Ut(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
7997
7999
  case 1:
7998
- return f = k.sent(), u.addPopToken(f.reqCnfString), [3, 3];
8000
+ return f = k.sent(), d.addPopToken(f.reqCnfString), [3, 3];
7999
8001
  case 2:
8000
8002
  if (t.authenticationScheme === te.SSH)
8001
8003
  if (t.sshJwk)
8002
- u.addSshJwk(t.sshJwk);
8004
+ d.addSshJwk(t.sshJwk);
8003
8005
  else
8004
8006
  throw s == null || s.endMeasurement({
8005
8007
  success: !1
8006
8008
  }), ie.createMissingSshJwkError();
8007
8009
  k.label = 3;
8008
8010
  case 3:
8009
- if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && u.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
8011
+ if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && d.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
8010
8012
  switch (t.ccsCredential.type) {
8011
8013
  case Be.HOME_ACCOUNT_ID:
8012
8014
  try {
8013
- _ = Rt(t.ccsCredential.credential), u.addCcsOid(_);
8015
+ _ = Rt(t.ccsCredential.credential), d.addCcsOid(_);
8014
8016
  } catch (E) {
8015
8017
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
8016
8018
  }
8017
8019
  break;
8018
8020
  case Be.UPN:
8019
- u.addCcsUpn(t.ccsCredential.credential);
8021
+ d.addCcsUpn(t.ccsCredential.credential);
8020
8022
  break;
8021
8023
  }
8022
8024
  return s == null || s.endMeasurement({
8023
8025
  success: !0
8024
- }), [2, u.createQueryString()];
8026
+ }), [2, d.createQueryString()];
8025
8027
  }
8026
8028
  });
8027
8029
  });
@@ -8060,9 +8062,9 @@ var Oi = (
8060
8062
  }, e.prototype.acquireCachedToken = function(t) {
8061
8063
  var r, o, i, a, s;
8062
8064
  return j(this, void 0, void 0, function() {
8063
- var u, p;
8064
- return K(this, function(d) {
8065
- switch (d.label) {
8065
+ var d, p;
8066
+ return K(this, function(u) {
8067
+ switch (u.label) {
8066
8068
  case 0:
8067
8069
  if (!t)
8068
8070
  throw ie.createEmptyTokenRequestError();
@@ -8072,7 +8074,7 @@ var Oi = (
8072
8074
  throw (o = this.serverTelemetryManager) === null || o === void 0 || o.setCacheOutcome(ht.CLAIMS_REQUESTED_CACHE_SKIPPED), this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."), O.createRefreshRequiredError();
8073
8075
  if (!t.account)
8074
8076
  throw O.createNoAccountInSilentRequestError();
8075
- if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
8077
+ if (d = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, d), p.accessToken) {
8076
8078
  if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
8077
8079
  throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(ht.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), O.createRefreshRequiredError();
8078
8080
  if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -8081,7 +8083,7 @@ var Oi = (
8081
8083
  throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(ht.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), O.createRefreshRequiredError();
8082
8084
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
8083
8085
  case 1:
8084
- return [2, d.sent()];
8086
+ return [2, u.sent()];
8085
8087
  }
8086
8088
  });
8087
8089
  });
@@ -8156,31 +8158,31 @@ var Bi = (
8156
8158
  return n.prototype.detectRegion = function(e, t) {
8157
8159
  var r, o, i, a;
8158
8160
  return j(this, void 0, void 0, function() {
8159
- var s, u, p, d, f;
8161
+ var s, d, p, u, f;
8160
8162
  return K(this, function(_) {
8161
8163
  switch (_.label) {
8162
8164
  case 0:
8163
8165
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
8164
8166
  return [3, 8];
8165
- u = n.IMDS_OPTIONS, _.label = 1;
8167
+ d = n.IMDS_OPTIONS, _.label = 1;
8166
8168
  case 1:
8167
- return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION, u)];
8169
+ return _.trys.push([1, 6, , 7]), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(g.IMDS_VERSION, d)];
8168
8170
  case 2:
8169
- return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source = dt.IMDS), p.status !== At.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
8171
+ return p = _.sent(), p.status === At.httpSuccess && (s = p.body, t.region_source = ut.IMDS), p.status !== At.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(d)]);
8170
8172
  case 3:
8171
- return d = _.sent(), d ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(d, u)]) : (t.region_source = dt.FAILED_AUTO_DETECTION, [2, null]);
8173
+ return u = _.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, d)]) : (t.region_source = ut.FAILED_AUTO_DETECTION, [2, null]);
8172
8174
  case 4:
8173
- f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source = dt.IMDS), _.label = 5;
8175
+ f = _.sent(), f.status === At.httpSuccess && (s = f.body, t.region_source = ut.IMDS), _.label = 5;
8174
8176
  case 5:
8175
8177
  return [3, 7];
8176
8178
  case 6:
8177
- return _.sent(), t.region_source = dt.FAILED_AUTO_DETECTION, [2, null];
8179
+ return _.sent(), t.region_source = ut.FAILED_AUTO_DETECTION, [2, null];
8178
8180
  case 7:
8179
8181
  return [3, 9];
8180
8182
  case 8:
8181
- t.region_source = dt.ENVIRONMENT_VARIABLE, _.label = 9;
8183
+ t.region_source = ut.ENVIRONMENT_VARIABLE, _.label = 9;
8182
8184
  case 9:
8183
- return s || (t.region_source = dt.FAILED_AUTO_DETECTION), [2, s || null];
8185
+ return s || (t.region_source = ut.FAILED_AUTO_DETECTION), [2, s || null];
8184
8186
  }
8185
8187
  });
8186
8188
  });
@@ -8378,13 +8380,13 @@ var rn = (
8378
8380
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
8379
8381
  }, n.prototype.replacePath = function(e) {
8380
8382
  var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
8381
- return s.forEach(function(u, p) {
8382
- var d = a[p];
8383
+ return s.forEach(function(d, p) {
8384
+ var u = a[p];
8383
8385
  if (p === 0 && t.canReplaceTenant(i)) {
8384
8386
  var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
8385
- d !== f && (t.logger.verbose("Replacing tenant domain name " + d + " with id " + f), d = f);
8387
+ u !== f && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + f), u = f);
8386
8388
  }
8387
- u !== d && (r = r.replace("/" + d + "/", "/" + u + "/"));
8389
+ d !== u && (r = r.replace("/" + u + "/", "/" + d + "/"));
8388
8390
  }), this.replaceTenant(r);
8389
8391
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
8390
8392
  /**
@@ -8401,14 +8403,14 @@ var rn = (
8401
8403
  var e, t, r;
8402
8404
  return j(this, void 0, void 0, function() {
8403
8405
  var o, i, a, s;
8404
- return K(this, function(u) {
8405
- switch (u.label) {
8406
+ return K(this, function(d) {
8407
+ switch (d.label) {
8406
8408
  case 0:
8407
8409
  return (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityResolveEndpointsAsync, this.correlationId), o = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort), o || (o = new Qn(), o.updateCanonicalAuthority(this.canonicalAuthority)), (t = this.performanceClient) === null || t === void 0 || t.setPreQueueTime(b.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), [4, this.updateCloudDiscoveryMetadata(o)];
8408
8410
  case 1:
8409
- return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
8411
+ return i = d.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
8410
8412
  case 2:
8411
- return a = u.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
8413
+ return a = d.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
8412
8414
  2
8413
8415
  /*return*/
8414
8416
  ];
@@ -8418,21 +8420,21 @@ var rn = (
8418
8420
  }, n.prototype.updateEndpointMetadata = function(e) {
8419
8421
  var t, r, o, i, a, s;
8420
8422
  return j(this, void 0, void 0, function() {
8421
- var u, p;
8422
- return K(this, function(d) {
8423
- switch (d.label) {
8423
+ var d, p;
8424
+ return K(this, function(u) {
8425
+ switch (u.label) {
8424
8426
  case 0:
8425
- return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
8427
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), d = this.getEndpointMetadataFromConfig(), d ? (e.updateEndpointMetadata(d, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
8426
8428
  case 1:
8427
- return u = d.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
8429
+ return d = u.sent(), d ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(d)]) : [3, 3] : [3, 4];
8428
8430
  case 2:
8429
- u = d.sent(), d.label = 3;
8431
+ d = u.sent(), u.label = 3;
8430
8432
  case 3:
8431
- return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
8433
+ return e.updateEndpointMetadata(d, !0), [2, Fe.NETWORK];
8432
8434
  case 4:
8433
8435
  return p = this.getEndpointMetadataFromHardcodedValues(), p && !this.authorityOptions.skipAuthorityMetadataCache ? !((a = this.authorityOptions.azureRegionConfiguration) === null || a === void 0) && a.azureRegion ? ((s = this.performanceClient) === null || s === void 0 || s.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
8434
8436
  case 5:
8435
- p = d.sent(), d.label = 6;
8437
+ p = u.sent(), u.label = 6;
8436
8438
  case 6:
8437
8439
  return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
8438
8440
  case 7:
@@ -8479,14 +8481,14 @@ var rn = (
8479
8481
  var t, r, o, i;
8480
8482
  return j(this, void 0, void 0, function() {
8481
8483
  var a, s;
8482
- return K(this, function(u) {
8483
- switch (u.label) {
8484
+ return K(this, function(d) {
8485
+ switch (d.label) {
8484
8486
  case 0:
8485
8487
  return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== g.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Jt.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
8486
8488
  case 1:
8487
- if (s = u.sent(), s)
8489
+ if (s = d.sent(), s)
8488
8490
  return this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
8489
- this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
8491
+ this.regionDiscoveryMetadata.region_outcome = Jt.AUTO_DETECTION_REQUESTED_FAILED, d.label = 2;
8490
8492
  case 2:
8491
8493
  return [2, e];
8492
8494
  }
@@ -8528,15 +8530,15 @@ var rn = (
8528
8530
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
8529
8531
  var e;
8530
8532
  return j(this, void 0, void 0, function() {
8531
- var t, r, o, i, a, s, u, p;
8532
- return K(this, function(d) {
8533
- switch (d.label) {
8533
+ var t, r, o, i, a, s, d, p;
8534
+ return K(this, function(u) {
8535
+ switch (u.label) {
8534
8536
  case 0:
8535
- (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, d.label = 1;
8537
+ (e = this.performanceClient) === null || e === void 0 || e.addQueueMeasurement(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), t = "" + g.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize", r = {}, o = null, u.label = 1;
8536
8538
  case 1:
8537
- return d.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8539
+ return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8538
8540
  case 2:
8539
- if (i = d.sent(), a = void 0, s = void 0, Ui(i.body))
8541
+ if (i = u.sent(), a = void 0, s = void 0, Ui(i.body))
8540
8542
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
8541
8543
  else if (xi(i.body)) {
8542
8544
  if (this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + i.status), a = i.body, a.error === g.INVALID_INSTANCE)
@@ -8546,9 +8548,9 @@ var rn = (
8546
8548
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
8547
8549
  return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."), o = n.getCloudDiscoveryMetadataFromNetworkResponse(s, this.hostnameAndPort), [3, 4];
8548
8550
  case 3:
8549
- return u = d.sent(), u instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8550
- Error: ` + u.errorCode + `
8551
- Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8551
+ return d = u.sent(), d instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8552
+ Error: ` + d.errorCode + `
8553
+ Error Description: ` + d.errorMessage) : (p = d, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8552
8554
  Error: ` + p.name + `
8553
8555
  Error Description: ` + p.message)), [2, null];
8554
8556
  case 4:
@@ -8624,17 +8626,17 @@ var bn = (
8624
8626
  }
8625
8627
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
8626
8628
  return j(this, void 0, void 0, function() {
8627
- var u, p, d;
8629
+ var d, p, u;
8628
8630
  return K(this, function(f) {
8629
8631
  switch (f.label) {
8630
8632
  case 0:
8631
- a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), u = rn.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), f.label = 1;
8633
+ a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), d = rn.transformCIAMAuthority(e), p = n.createInstance(d, t, r, o, i, a, s), f.label = 1;
8632
8634
  case 1:
8633
8635
  return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
8634
8636
  case 2:
8635
8637
  return f.sent(), [2, p];
8636
8638
  case 3:
8637
- throw d = f.sent(), O.createEndpointDiscoveryIncompleteError(d);
8639
+ throw u = f.sent(), O.createEndpointDiscoveryIncompleteError(u);
8638
8640
  case 4:
8639
8641
  return [
8640
8642
  2
@@ -8689,7 +8691,7 @@ var Di = {
8689
8691
  }
8690
8692
  };
8691
8693
  /*! @azure/msal-common v13.3.1 2023-10-27 */
8692
- var un = {
8694
+ var dn = {
8693
8695
  missingKidError: {
8694
8696
  code: "missing_kid_error",
8695
8697
  desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."
@@ -8707,9 +8709,9 @@ var un = {
8707
8709
  return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
8708
8710
  }
8709
8711
  return e.createMissingKidError = function() {
8710
- return new e(un.missingKidError.code, un.missingKidError.desc);
8712
+ return new e(dn.missingKidError.code, dn.missingKidError.desc);
8711
8713
  }, e.createMissingAlgError = function() {
8712
- return new e(un.missingAlgError.code, un.missingAlgError.desc);
8714
+ return new e(dn.missingAlgError.code, dn.missingAlgError.desc);
8713
8715
  }, e;
8714
8716
  }(D)
8715
8717
  );
@@ -8768,8 +8770,8 @@ var qi = (
8768
8770
  }, n.maxErrorsToSend = function(e) {
8769
8771
  var t, r = 0, o = 0, i = e.errors.length;
8770
8772
  for (t = 0; t < i; t++) {
8771
- var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, u = e.errors[t] || g.EMPTY_STRING;
8772
- if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8773
+ var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, d = e.errors[t] || g.EMPTY_STRING;
8774
+ if (o += a.toString().length + s.toString().length + d.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8773
8775
  r += 1;
8774
8776
  else
8775
8777
  break;
@@ -8837,7 +8839,7 @@ var ao = (
8837
8839
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
8838
8840
  var s = this.startPerformanceMeasuremeant(e, a);
8839
8841
  s.startMeasurement();
8840
- var u = {
8842
+ var d = {
8841
8843
  eventId: this.generateId(),
8842
8844
  status: kn.InProgress,
8843
8845
  authority: this.authority,
@@ -8850,41 +8852,41 @@ var ao = (
8850
8852
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
8851
8853
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
8852
8854
  };
8853
- return this.cacheEventByCorrelationId(u), {
8855
+ return this.cacheEventByCorrelationId(d), {
8854
8856
  endMeasurement: function(p) {
8855
- return r.endMeasurement(Z(Z({}, u), p), s);
8857
+ return r.endMeasurement(Z(Z({}, d), p), s);
8856
8858
  },
8857
8859
  discardMeasurement: function() {
8858
- return r.discardMeasurements(u.correlationId);
8860
+ return r.discardMeasurements(d.correlationId);
8859
8861
  },
8860
8862
  addStaticFields: function(p) {
8861
- return r.addStaticFields(p, u.correlationId);
8863
+ return r.addStaticFields(p, d.correlationId);
8862
8864
  },
8863
8865
  increment: function(p) {
8864
- return r.increment(p, u.correlationId);
8866
+ return r.increment(p, d.correlationId);
8865
8867
  },
8866
8868
  measurement: s,
8867
- event: u
8869
+ event: d
8868
8870
  };
8869
8871
  }, n.prototype.endMeasurement = function(e, t) {
8870
8872
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
8871
8873
  if (!a)
8872
8874
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
8873
- var s = e.eventId === a.eventId, u = {
8875
+ var s = e.eventId === a.eventId, d = {
8874
8876
  totalQueueTime: 0,
8875
8877
  totalQueueCount: 0,
8876
8878
  manuallyCompletedCount: 0
8877
8879
  };
8878
- s ? (u = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
8880
+ s ? (d = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
8879
8881
  var p = t == null ? void 0 : t.flushMeasurement();
8880
8882
  if (!p)
8881
8883
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
8882
8884
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
8883
8885
  return a[e.name + "DurationMs"] = Math.floor(p), Z({}, a);
8884
- var d = Z(Z({}, a), e), f = 0;
8885
- return (i = d.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8886
- r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, d.correlationId), f++;
8887
- }), d.incompleteSubMeasurements = void 0, d = Z(Z({}, d), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(d, this.getIntFields()), this.emitEvents([d], e.correlationId), d;
8886
+ var u = Z(Z({}, a), e), f = 0;
8887
+ return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8888
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, u.correlationId), f++;
8889
+ }), u.incompleteSubMeasurements = void 0, u = Z(Z({}, u), { durationMs: Math.round(p), queuedTimeMs: d.totalQueueTime, queuedCount: d.totalQueueCount, queuedManuallyCompletedCount: d.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
8888
8890
  }, n.prototype.addStaticFields = function(e, t) {
8889
8891
  this.logger.trace("PerformanceClient: Updating static fields");
8890
8892
  var r = this.eventsByCorrelationId.get(t);
@@ -9497,7 +9499,7 @@ var $n = (
9497
9499
  return this.internalStorage;
9498
9500
  }
9499
9501
  }, e.prototype.migrateCacheEntries = function() {
9500
- var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), d = this.browserStorage.getItem(a), f = [s, u, p, d], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
9502
+ var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), d = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), u = this.browserStorage.getItem(a), f = [s, d, p, u], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
9501
9503
  _.forEach(function(k, E) {
9502
9504
  return t.migrateCacheEntry(k, f[E]);
9503
9505
  });
@@ -9516,33 +9518,33 @@ var $n = (
9516
9518
  if (t.isCredentialKey(a)) {
9517
9519
  var s = t.getItem(a);
9518
9520
  if (s) {
9519
- var u = t.validateAndParseJson(s);
9520
- if (u && u.hasOwnProperty("credentialType"))
9521
- switch (u.credentialType) {
9521
+ var d = t.validateAndParseJson(s);
9522
+ if (d && d.hasOwnProperty("credentialType"))
9523
+ switch (d.credentialType) {
9522
9524
  case H.ID_TOKEN:
9523
- if (gt.isIdTokenEntity(u)) {
9525
+ if (gt.isIdTokenEntity(d)) {
9524
9526
  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");
9525
- var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9526
- t.addTokenKey(d, H.ID_TOKEN);
9527
+ var p = Me.toObject(new gt(), d), u = t.updateCredentialCacheKey(a, p);
9528
+ t.addTokenKey(u, H.ID_TOKEN);
9527
9529
  return;
9528
9530
  } else
9529
9531
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: " + a);
9530
9532
  break;
9531
9533
  case H.ACCESS_TOKEN:
9532
9534
  case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
9533
- if (_t.isAccessTokenEntity(u)) {
9535
+ if (_t.isAccessTokenEntity(d)) {
9534
9536
  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");
9535
- var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9536
- t.addTokenKey(d, H.ACCESS_TOKEN);
9537
+ var f = Me.toObject(new _t(), d), u = t.updateCredentialCacheKey(a, f);
9538
+ t.addTokenKey(u, H.ACCESS_TOKEN);
9537
9539
  return;
9538
9540
  } else
9539
9541
  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);
9540
9542
  break;
9541
9543
  case H.REFRESH_TOKEN:
9542
- if (Pt.isRefreshTokenEntity(u)) {
9544
+ if (Pt.isRefreshTokenEntity(d)) {
9543
9545
  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");
9544
- var _ = Me.toObject(new Pt(), u), d = t.updateCredentialCacheKey(a, _);
9545
- t.addTokenKey(d, H.REFRESH_TOKEN);
9546
+ var _ = Me.toObject(new Pt(), d), u = t.updateCredentialCacheKey(a, _);
9547
+ t.addTokenKey(u, H.REFRESH_TOKEN);
9546
9548
  return;
9547
9549
  } else
9548
9550
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: " + a);
@@ -9903,21 +9905,21 @@ var $n = (
9903
9905
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
9904
9906
  var s = this.generateStateKey(t);
9905
9907
  this.setTemporaryCache(s, t, !1);
9906
- var u = this.generateNonceKey(t);
9907
- this.setTemporaryCache(u, r, !1);
9908
+ var d = this.generateNonceKey(t);
9909
+ this.setTemporaryCache(d, r, !1);
9908
9910
  var p = this.generateAuthorityKey(t);
9909
9911
  if (this.setTemporaryCache(p, o, !1), a) {
9910
- var d = {
9912
+ var u = {
9911
9913
  credential: a.homeAccountId,
9912
9914
  type: Be.HOME_ACCOUNT_ID
9913
9915
  };
9914
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9916
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9915
9917
  } else if (!L.isEmpty(i)) {
9916
- var d = {
9918
+ var u = {
9917
9919
  credential: i,
9918
9920
  type: Be.UPN
9919
9921
  };
9920
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9922
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9921
9923
  }
9922
9924
  }, e.prototype.resetRequestCache = function(t) {
9923
9925
  var r = this;
@@ -10139,9 +10141,9 @@ var Qi = (
10139
10141
  ), o.setXhrHeaders(s, r), s.onload = function() {
10140
10142
  (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)));
10141
10143
  try {
10142
- var u = JSON.parse(s.responseText), p = {
10144
+ var d = JSON.parse(s.responseText), p = {
10143
10145
  headers: o.getHeaderDict(s),
10144
- body: u,
10146
+ body: d,
10145
10147
  status: s.status
10146
10148
  };
10147
10149
  i(p);
@@ -10167,14 +10169,14 @@ var Qi = (
10167
10169
  }, n.prototype.getHeaderDict = function(e) {
10168
10170
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
10169
10171
  return r.forEach(function(i) {
10170
- var a = i.split(": "), s = a.shift(), u = a.join(": ");
10171
- s && u && (o[s] = u);
10172
+ var a = i.split(": "), s = a.shift(), d = a.join(": ");
10173
+ s && d && (o[s] = d);
10172
10174
  }), o;
10173
10175
  }, n;
10174
10176
  }()
10175
10177
  );
10176
10178
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
10177
- var de = (
10179
+ var ue = (
10178
10180
  /** @class */
10179
10181
  function() {
10180
10182
  function n() {
@@ -10222,8 +10224,8 @@ var de = (
10222
10224
  var co = (
10223
10225
  /** @class */
10224
10226
  function() {
10225
- function n(e, t, r, o, i, a, s, u, p) {
10226
- this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = u, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, en, this.correlationId), this.performanceClient = s;
10227
+ function n(e, t, r, o, i, a, s, d, p) {
10228
+ this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = d, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, en, this.correlationId), this.performanceClient = s;
10227
10229
  }
10228
10230
  return n.prototype.clearCacheOnLogout = function(e) {
10229
10231
  return T(this, void 0, void 0, function() {
@@ -10292,8 +10294,8 @@ var co = (
10292
10294
  });
10293
10295
  }, n.prototype.getRedirectUri = function(e) {
10294
10296
  this.logger.verbose("getRedirectUri called");
10295
- var t = e || this.config.auth.redirectUri || de.getCurrentUri();
10296
- return W.getAbsoluteUrl(t, de.getCurrentUri());
10297
+ var t = e || this.config.auth.redirectUri || ue.getCurrentUri();
10298
+ return W.getAbsoluteUrl(t, ue.getCurrentUri());
10297
10299
  }, n.prototype.validateRequestAuthority = function(e, t) {
10298
10300
  return T(this, void 0, void 0, function() {
10299
10301
  var r;
@@ -10379,7 +10381,7 @@ var Ft = (
10379
10381
  this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
10380
10382
  else
10381
10383
  this.logger.verbose("logoutHint will not be set since no logout request was configured");
10382
- return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri, de.getCurrentUri())) : this.config.auth.postLogoutRedirectUri === null ? this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", r.correlationId) : this.config.auth.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to configured uri", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, de.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(de.getCurrentUri(), de.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
10384
+ return !t || t.postLogoutRedirectUri !== null ? t && t.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(t.postLogoutRedirectUri, ue.getCurrentUri())) : this.config.auth.postLogoutRedirectUri === null ? this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", r.correlationId) : this.config.auth.postLogoutRedirectUri ? (this.logger.verbose("Setting postLogoutRedirectUri to configured uri", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, ue.getCurrentUri())) : (this.logger.verbose("Setting postLogoutRedirectUri to current page", r.correlationId), r.postLogoutRedirectUri = W.getAbsoluteUrl(ue.getCurrentUri(), ue.getCurrentUri())) : this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", r.correlationId), r;
10383
10385
  }, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
10384
10386
  var r = t.idTokenClaims;
10385
10387
  if (r) {
@@ -10455,7 +10457,7 @@ var Ft = (
10455
10457
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
10456
10458
  var o;
10457
10459
  return T(this, void 0, void 0, function() {
10458
- var i, a, s, u;
10460
+ var i, a, s, d;
10459
10461
  return I(this, function(p) {
10460
10462
  switch (p.label) {
10461
10463
  case 0:
@@ -10465,16 +10467,16 @@ var Ft = (
10465
10467
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
10466
10468
  authorityMetadata: this.config.auth.authorityMetadata,
10467
10469
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
10468
- }, s = t || this.config.auth.authority, u = rn.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(b.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, bn.createDiscoveredInstance(u, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(d) {
10470
+ }, s = t || this.config.auth.authority, d = rn.generateAuthority(s, r || this.config.auth.azureCloudOptions), this.logger.verbose("Creating discovered authority with configured authority", this.correlationId), this.performanceClient.setPreQueueTime(b.AuthorityFactoryCreateDiscoveredInstance, this.correlationId), [4, bn.createDiscoveredInstance(d, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
10469
10471
  return i.endMeasurement({
10470
10472
  success: !0
10471
- }), d;
10472
- }).catch(function(d) {
10473
+ }), u;
10474
+ }).catch(function(u) {
10473
10475
  throw i.endMeasurement({
10474
- errorCode: d.errorCode,
10475
- subErrorCode: d.subError,
10476
+ errorCode: u.errorCode,
10477
+ subErrorCode: u.subError,
10476
10478
  success: !1
10477
- }), d;
10479
+ }), u;
10478
10480
  })];
10479
10481
  case 1:
10480
10482
  return [2, p.sent()];
@@ -10483,15 +10485,15 @@ var Ft = (
10483
10485
  });
10484
10486
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
10485
10487
  return T(this, void 0, void 0, function() {
10486
- var o, i, a, s, u, p, d;
10488
+ var o, i, a, s, d, p, u;
10487
10489
  return I(this, function(f) {
10488
10490
  switch (f.label) {
10489
10491
  case 0:
10490
10492
  return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
10491
10493
  interactionType: r
10492
- }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
10494
+ }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), d = [{}], [4, this.initializeBaseRequest(t)];
10493
10495
  case 1:
10494
- return s = B.apply(void 0, [B.apply(void 0, u.concat([f.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mn.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), L.isEmpty(s.loginHint) && !p && (d = this.browserStorage.getLegacyLoginHint(), d && (s.loginHint = d)), [2, s];
10496
+ return s = B.apply(void 0, [B.apply(void 0, d.concat([f.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: mn.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), L.isEmpty(s.loginHint) && !p && (u = this.browserStorage.getLegacyLoginHint(), u && (s.loginHint = u)), [2, s];
10495
10497
  }
10496
10498
  });
10497
10499
  });
@@ -10508,7 +10510,7 @@ var or = (
10508
10510
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
10509
10511
  return T(this, void 0, void 0, function() {
10510
10512
  var i, a, s;
10511
- return I(this, function(u) {
10513
+ return I(this, function(d) {
10512
10514
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
10513
10515
  throw M.createEmptyHashError(e);
10514
10516
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -10523,17 +10525,17 @@ var or = (
10523
10525
  });
10524
10526
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
10525
10527
  return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
10526
- var a, s, u, p, d, f;
10528
+ var a, s, d, p, u, f;
10527
10529
  return I(this, function(_) {
10528
10530
  switch (_.label) {
10529
10531
  case 0:
10530
10532
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"), a = this.browserStorage.generateStateKey(t), s = this.browserStorage.getTemporaryCache(a), !s)
10531
10533
  throw O.createStateNotFoundError("Cached State");
10532
- return u = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(u), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(b.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
10534
+ return d = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(d), this.authCodeRequest.code = e.code, e.cloud_instance_host_name ? (this.performanceClient.setPreQueueTime(b.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId), [4, this.updateTokenEndpointAuthority(e.cloud_instance_host_name, r, o)]) : [3, 2];
10533
10535
  case 1:
10534
10536
  _.sent(), _.label = 2;
10535
10537
  case 2:
10536
- return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (d = this.checkCcsCredentials(), d && (this.authCodeRequest.ccsCredential = d)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
10538
+ return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (u = this.checkCcsCredentials(), u && (this.authCodeRequest.ccsCredential = u)), this.performanceClient.setPreQueueTime(b.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
10537
10539
  case 3:
10538
10540
  return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
10539
10541
  }
@@ -10572,8 +10574,8 @@ var Ur = (
10572
10574
  function(n) {
10573
10575
  be(e, n);
10574
10576
  function e(t, r, o, i, a, s) {
10575
- var u = n.call(this, t, r, o, i, s) || this;
10576
- return u.browserCrypto = a, u;
10577
+ var d = n.call(this, t, r, o, i, s) || this;
10578
+ return d.browserCrypto = a, d;
10577
10579
  }
10578
10580
  return e.prototype.initiateAuthRequest = function(t, r) {
10579
10581
  return T(this, void 0, void 0, function() {
@@ -10619,7 +10621,7 @@ var Ur = (
10619
10621
  });
10620
10622
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
10621
10623
  return T(this, void 0, void 0, function() {
10622
- var a, s, u, p, d, f, _;
10624
+ var a, s, d, p, u, f, _;
10623
10625
  return I(this, function(k) {
10624
10626
  switch (k.label) {
10625
10627
  case 0:
@@ -10628,15 +10630,15 @@ var Ur = (
10628
10630
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
10629
10631
  throw O.createStateNotFoundError("Cached State");
10630
10632
  try {
10631
- u = this.authModule.handleFragmentResponse(t, s);
10633
+ d = this.authModule.handleFragmentResponse(t, s);
10632
10634
  } catch (E) {
10633
10635
  throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
10634
10636
  }
10635
- 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];
10637
+ return p = this.browserStorage.generateNonceKey(s), u = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = d.code, d.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(d.cloud_instance_host_name, o, i)] : [3, 2];
10636
10638
  case 1:
10637
10639
  k.sent(), k.label = 2;
10638
10640
  case 2:
10639
- return u.nonce = d || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
10641
+ return d.nonce = u || void 0, d.state = s, d.client_info ? this.authCodeRequest.clientInfo = d.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, d)];
10640
10642
  case 3:
10641
10643
  return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
10642
10644
  }
@@ -10715,21 +10717,21 @@ var lo = (
10715
10717
  return e.prototype.acquireToken = function(t) {
10716
10718
  return T(this, void 0, void 0, function() {
10717
10719
  var r, o, i, a, s;
10718
- return I(this, function(u) {
10719
- switch (u.label) {
10720
+ return I(this, function(d) {
10721
+ switch (d.label) {
10720
10722
  case 0:
10721
10723
  return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
10722
10724
  case 1:
10723
- i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
10725
+ i = d.sent(), this.logger.verbose("Silent auth client created"), d.label = 2;
10724
10726
  case 2:
10725
- return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10727
+ return d.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10726
10728
  case 3:
10727
- return a = u.sent(), r.endMeasurement({
10729
+ return a = d.sent(), r.endMeasurement({
10728
10730
  success: !0,
10729
10731
  fromCache: !0
10730
10732
  }), [2, a];
10731
10733
  case 4:
10732
- 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({
10734
+ throw s = d.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({
10733
10735
  errorCode: s instanceof D && s.errorCode || void 0,
10734
10736
  subErrorCode: s instanceof D && s.subError || void 0,
10735
10737
  success: !1
@@ -10776,36 +10778,36 @@ var Ot = (
10776
10778
  /** @class */
10777
10779
  function(n) {
10778
10780
  be(e, n);
10779
- function e(t, r, o, i, a, s, u, p, d, f, _, k) {
10780
- var E = n.call(this, t, r, o, i, a, s, p, d, k) || this;
10781
- return E.apiId = u, E.accountId = f, E.nativeMessageHandler = d, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, d, k), E;
10781
+ function e(t, r, o, i, a, s, d, p, u, f, _, k) {
10782
+ var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
10783
+ return E.apiId = d, E.accountId = f, E.nativeMessageHandler = u, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
10782
10784
  }
10783
10785
  return e.prototype.acquireToken = function(t) {
10784
10786
  return T(this, void 0, void 0, function() {
10785
- var r, o, i, a, s, u, p;
10786
- return I(this, function(d) {
10787
- switch (d.label) {
10787
+ var r, o, i, a, s, d, p;
10788
+ return I(this, function(u) {
10789
+ switch (u.label) {
10788
10790
  case 0:
10789
10791
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
10790
10792
  case 1:
10791
- i = d.sent(), d.label = 2;
10793
+ i = u.sent(), u.label = 2;
10792
10794
  case 2:
10793
- return d.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10795
+ return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10794
10796
  case 3:
10795
- return a = d.sent(), r.endMeasurement({
10797
+ return a = u.sent(), r.endMeasurement({
10796
10798
  success: !0,
10797
10799
  isNativeBroker: !1,
10798
10800
  fromCache: !0
10799
10801
  }), [2, a];
10800
10802
  case 4:
10801
- return d.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10803
+ return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10802
10804
  case 5:
10803
10805
  return s = {
10804
10806
  method: at.GetToken,
10805
10807
  request: i
10806
10808
  }, [4, this.nativeMessageHandler.sendMessage(s)];
10807
10809
  case 6:
10808
- return u = d.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10810
+ return d = u.sent(), p = this.validateNativeResponse(d), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10809
10811
  return r.endMeasurement({
10810
10812
  success: !0,
10811
10813
  isNativeBroker: !0,
@@ -10833,20 +10835,20 @@ var Ot = (
10833
10835
  }, e.prototype.acquireTokensFromCache = function(t, r) {
10834
10836
  return T(this, void 0, void 0, function() {
10835
10837
  var o, i, a, s;
10836
- return I(this, function(u) {
10837
- switch (u.label) {
10838
+ return I(this, function(d) {
10839
+ switch (d.label) {
10838
10840
  case 0:
10839
10841
  if (!t)
10840
10842
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
10841
10843
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
10842
10844
  throw O.createNoAccountFoundError();
10843
- u.label = 1;
10845
+ d.label = 1;
10844
10846
  case 1:
10845
- return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10847
+ return d.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10846
10848
  case 2:
10847
- return a = u.sent(), [2, a];
10849
+ return a = d.sent(), [2, a];
10848
10850
  case 3:
10849
- throw s = u.sent(), s;
10851
+ throw s = d.sent(), s;
10850
10852
  case 4:
10851
10853
  return [
10852
10854
  2
@@ -10857,7 +10859,7 @@ var Ot = (
10857
10859
  });
10858
10860
  }, e.prototype.acquireTokenRedirect = function(t) {
10859
10861
  return T(this, void 0, void 0, function() {
10860
- var r, o, i, a, s, u;
10862
+ var r, o, i, a, s, d;
10861
10863
  return I(this, function(p) {
10862
10864
  switch (p.label) {
10863
10865
  case 0:
@@ -10880,7 +10882,7 @@ var Ot = (
10880
10882
  apiId: oe.acquireTokenRedirect,
10881
10883
  timeout: this.config.system.redirectNavigationTimeout,
10882
10884
  noHistory: !1
10883
- }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
10885
+ }, d = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(d, s)];
10884
10886
  case 6:
10885
10887
  return p.sent(), [
10886
10888
  2
@@ -10891,9 +10893,9 @@ var Ot = (
10891
10893
  });
10892
10894
  }, e.prototype.handleRedirectPromise = function() {
10893
10895
  return T(this, void 0, void 0, function() {
10894
- var t, r, o, i, a, s, u, p;
10895
- return I(this, function(d) {
10896
- switch (d.label) {
10896
+ var t, r, o, i, a, s, d, p;
10897
+ return I(this, function(u) {
10898
+ switch (u.label) {
10897
10899
  case 0:
10898
10900
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
10899
10901
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -10902,13 +10904,13 @@ var Ot = (
10902
10904
  r = t.prompt, o = br(t, ["prompt"]), r && this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."), this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.NATIVE_REQUEST)), i = {
10903
10905
  method: at.GetToken,
10904
10906
  request: o
10905
- }, a = Ke.nowSeconds(), d.label = 1;
10907
+ }, a = Ke.nowSeconds(), u.label = 1;
10906
10908
  case 1:
10907
- return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10909
+ return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10908
10910
  case 2:
10909
- return s = d.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
10911
+ return s = u.sent(), this.validateNativeResponse(s), d = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, d];
10910
10912
  case 3:
10911
- throw p = d.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10913
+ throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10912
10914
  case 4:
10913
10915
  return [
10914
10916
  2
@@ -10921,7 +10923,7 @@ var Ot = (
10921
10923
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
10922
10924
  }, e.prototype.handleNativeResponse = function(t, r, o) {
10923
10925
  return T(this, void 0, void 0, function() {
10924
- var i, a, s, u, p, d;
10926
+ var i, a, s, d, p, u;
10925
10927
  return I(this, function(f) {
10926
10928
  switch (f.label) {
10927
10929
  case 0:
@@ -10929,9 +10931,9 @@ var Ot = (
10929
10931
  throw tt.createUserSwitchError();
10930
10932
  return [4, this.getDiscoveredAuthority(r.authority)];
10931
10933
  case 1:
10932
- return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
10934
+ return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), d = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, d, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
10933
10935
  case 2:
10934
- return d = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, d.accessToken, d.tenantId, o), [2, d];
10936
+ return u = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, d, p, s, u.accessToken, u.tenantId, o), [2, u];
10935
10937
  }
10936
10938
  });
10937
10939
  });
@@ -10971,11 +10973,11 @@ var Ot = (
10971
10973
  });
10972
10974
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
10973
10975
  return T(this, void 0, void 0, function() {
10974
- var u, p, d, f, _, k, E, N;
10976
+ var d, p, u, f, _, k, E, N;
10975
10977
  return I(this, function(Q) {
10976
10978
  switch (Q.label) {
10977
10979
  case 0:
10978
- 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)];
10980
+ return d = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), u = t.account.properties || {}, f = u.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = u.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
10979
10981
  case 1:
10980
10982
  return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, N = {
10981
10983
  authority: a,
@@ -10986,7 +10988,7 @@ var Ot = (
10986
10988
  idToken: t.id_token,
10987
10989
  idTokenClaims: o.claims,
10988
10990
  accessToken: k,
10989
- fromCache: u ? this.isResponseFromCache(u) : !1,
10991
+ fromCache: d ? this.isResponseFromCache(d) : !1,
10990
10992
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
10991
10993
  tokenType: E,
10992
10994
  correlationId: this.correlationId,
@@ -11001,8 +11003,8 @@ var Ot = (
11001
11003
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
11002
11004
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
11003
11005
  });
11004
- }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
11005
- 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 Zt(i, d, E);
11006
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, d, p) {
11007
+ var u = 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 : d, k.printScopes(), _, 0, this.browserCrypto), N = new Zt(i, u, E);
11006
11008
  this.nativeStorageManager.saveCacheRecord(N);
11007
11009
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
11008
11010
  var r = this.getMATSFromResponse(t);
@@ -11039,7 +11041,7 @@ var Ot = (
11039
11041
  return typeof t.is_cached > "u" ? (this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."), !1) : !!t.is_cached;
11040
11042
  }, e.prototype.initializeNativeRequest = function(t) {
11041
11043
  return T(this, void 0, void 0, function() {
11042
- var r, o, i, a, s, u, p, d, f, _, k = this;
11044
+ var r, o, i, a, s, d, p, u, f, _, k = this;
11043
11045
  return I(this, function(E) {
11044
11046
  switch (E.label) {
11045
11047
  case 0:
@@ -11047,7 +11049,7 @@ var Ot = (
11047
11049
  case 1:
11048
11050
  E.sent(), E.label = 2;
11049
11051
  case 2:
11050
- return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on), u = function() {
11052
+ return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(on), d = function() {
11051
11053
  switch (k.apiId) {
11052
11054
  case oe.ssoSilent:
11053
11055
  case oe.acquireTokenSilent_silentFlow:
@@ -11071,19 +11073,19 @@ var Ot = (
11071
11073
  authority: o.urlString,
11072
11074
  scope: s.printScopes(),
11073
11075
  redirectUri: this.getRedirectUri(t.redirectUri),
11074
- prompt: u(),
11076
+ prompt: d(),
11075
11077
  correlationId: this.correlationId,
11076
11078
  tokenType: t.authenticationScheme,
11077
11079
  windowTitleSubstring: document.title,
11078
11080
  extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Gt.MATS_TELEMETRY }),
11079
11081
  extendedExpiryToken: !1
11080
11082
  // Make this configurable?
11081
- }), t.authenticationScheme !== te.POP ? [3, 4] : (d = {
11083
+ }), t.authenticationScheme !== te.POP ? [3, 4] : (u = {
11082
11084
  resourceRequestUri: t.resourceRequestUri,
11083
11085
  resourceRequestMethod: t.resourceRequestMethod,
11084
11086
  shrClaims: t.shrClaims,
11085
11087
  shrNonce: t.shrNonce
11086
- }, f = new Ut(this.browserCrypto), [4, f.generateCnf(d)]);
11088
+ }, f = new Ut(this.browserCrypto), [4, f.generateCnf(u)]);
11087
11089
  case 3:
11088
11090
  _ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
11089
11091
  case 4:
@@ -11220,13 +11222,13 @@ var Yi = (
11220
11222
  /** @class */
11221
11223
  function(n) {
11222
11224
  be(e, n);
11223
- function e(t, r, o, i, a, s, u, p, d, f) {
11224
- var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11225
+ function e(t, r, o, i, a, s, d, p, u, f) {
11226
+ var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11225
11227
  return _.nativeStorage = p, _;
11226
11228
  }
11227
11229
  return e.prototype.acquireToken = function(t) {
11228
11230
  return T(this, void 0, void 0, function() {
11229
- var r, o, i, a, s, u, p, d, f, _ = this;
11231
+ var r, o, i, a, s, d, p, u, f, _ = this;
11230
11232
  return I(this, function(k) {
11231
11233
  switch (k.label) {
11232
11234
  case 0:
@@ -11240,12 +11242,12 @@ var Yi = (
11240
11242
  case 3:
11241
11243
  return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
11242
11244
  case 4:
11243
- return s = k.sent(), this.logger.verbose("Auth code client created"), u = new Ur(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(B(B({}, r), { nativeBroker: yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
11245
+ return s = k.sent(), this.logger.verbose("Auth code client created"), d = new Ur(s, this.browserStorage, a, this.logger, this.browserCrypto, this.performanceClient), [4, s.getAuthCodeUrl(B(B({}, r), { nativeBroker: yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme) }))];
11244
11246
  case 5:
11245
- return p = k.sent(), d = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + d), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
11247
+ return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, d.initiateAuthRequest(p, {
11246
11248
  navigationClient: this.navigationClient,
11247
11249
  redirectTimeout: this.config.system.redirectNavigationTimeout,
11248
- redirectStartPage: d,
11250
+ redirectStartPage: u,
11249
11251
  onRedirectNavigate: t.onRedirectNavigate
11250
11252
  })];
11251
11253
  case 6:
@@ -11262,7 +11264,7 @@ var Yi = (
11262
11264
  });
11263
11265
  }, e.prototype.handleRedirectPromise = function(t) {
11264
11266
  return T(this, void 0, void 0, function() {
11265
- var r, o, i, a, s, u, p, d, f, _, k, E;
11267
+ var r, o, i, a, s, d, p, u, f, _, k, E;
11266
11268
  return I(this, function(N) {
11267
11269
  switch (N.label) {
11268
11270
  case 0:
@@ -11278,17 +11280,17 @@ var Yi = (
11278
11280
  } catch (Q) {
11279
11281
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
11280
11282
  }
11281
- 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];
11283
+ return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, d = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), d === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11282
11284
  case 2:
11283
- return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11285
+ return u = N.sent(), s.indexOf("#") > -1 && ue.replaceHash(s), [2, u];
11284
11286
  case 3:
11285
11287
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
11286
11288
  case 4:
11287
- return !de.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11289
+ return !ue.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11288
11290
  apiId: oe.handleRedirectPromise,
11289
11291
  timeout: this.config.system.redirectNavigationTimeout,
11290
11292
  noHistory: !0
11291
- }, _ = !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];
11293
+ }, _ = !0, !s || s === "null" ? (k = ue.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];
11292
11294
  case 5:
11293
11295
  return _ = N.sent(), [3, 8];
11294
11296
  case 6:
@@ -11315,20 +11317,20 @@ var Yi = (
11315
11317
  this.logger.verbose("getRedirectResponseHash called");
11316
11318
  var r = W.hashContainsKnownProperties(t);
11317
11319
  if (r)
11318
- return de.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11320
+ return ue.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11319
11321
  var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
11320
11322
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
11321
11323
  }, e.prototype.handleHash = function(t, r, o) {
11322
11324
  return T(this, void 0, void 0, function() {
11323
- var i, a, s, u, p, d, f, _ = this;
11325
+ var i, a, s, d, p, u, f, _ = this;
11324
11326
  return I(this, function(k) {
11325
11327
  switch (k.label) {
11326
11328
  case 0:
11327
11329
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
11328
11330
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11329
11331
  throw M.createNativeConnectionNotEstablishedError();
11330
- return s = new Ot(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), {
11331
- state: u,
11332
+ return s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), d = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11333
+ state: d,
11332
11334
  prompt: void 0
11333
11335
  // Server should handle the prompt, ideally native broker can do this part silently
11334
11336
  })).finally(function() {
@@ -11339,7 +11341,7 @@ var Yi = (
11339
11341
  throw M.createNoCachedAuthorityError();
11340
11342
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
11341
11343
  case 1:
11342
- 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)];
11344
+ return u = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(u, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, u.authority, this.networkClient)];
11343
11345
  case 2:
11344
11346
  return [2, k.sent()];
11345
11347
  }
@@ -11347,41 +11349,41 @@ var Yi = (
11347
11349
  });
11348
11350
  }, e.prototype.logout = function(t) {
11349
11351
  return T(this, void 0, void 0, function() {
11350
- var r, o, i, a, s, u, p;
11351
- return I(this, function(d) {
11352
- switch (d.label) {
11352
+ var r, o, i, a, s, d, p;
11353
+ return I(this, function(u) {
11354
+ switch (u.label) {
11353
11355
  case 0:
11354
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), d.label = 1;
11356
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), u.label = 1;
11355
11357
  case 1:
11356
- return d.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11358
+ return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11357
11359
  case 2:
11358
- return d.sent(), i = {
11360
+ return u.sent(), i = {
11359
11361
  apiId: oe.logout,
11360
11362
  timeout: this.config.system.redirectNavigationTimeout,
11361
11363
  noHistory: !1
11362
11364
  }, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
11363
11365
  case 3:
11364
- return a = d.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (u = t.onRedirectNavigate(s), u === !1 ? [3, 5] : (this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"), this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)])) : [3, 7];
11366
+ return a = u.sent(), this.logger.verbose("Auth code client created"), s = a.getLogoutUri(r), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Redirect, r), t && typeof t.onRedirectNavigate == "function" ? (d = t.onRedirectNavigate(s), d === !1 ? [3, 5] : (this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"), this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)])) : [3, 7];
11365
11367
  case 4:
11366
- return d.sent(), [
11368
+ return u.sent(), [
11367
11369
  2
11368
11370
  /*return*/
11369
11371
  ];
11370
11372
  case 5:
11371
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), d.label = 6;
11373
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
11372
11374
  case 6:
11373
11375
  return [3, 9];
11374
11376
  case 7:
11375
11377
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
11376
11378
  case 8:
11377
- return d.sent(), [
11379
+ return u.sent(), [
11378
11380
  2
11379
11381
  /*return*/
11380
11382
  ];
11381
11383
  case 9:
11382
11384
  return [3, 11];
11383
11385
  case 10:
11384
- throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Redirect, null, p), this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), p;
11386
+ throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Redirect, null, p), this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), p;
11385
11387
  case 11:
11386
11388
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
11387
11389
  2
@@ -11392,7 +11394,7 @@ var Yi = (
11392
11394
  });
11393
11395
  }, e.prototype.getRedirectStartPage = function(t) {
11394
11396
  var r = t || window.location.href;
11395
- return W.getAbsoluteUrl(r, de.getCurrentUri());
11397
+ return W.getAbsoluteUrl(r, ue.getCurrentUri());
11396
11398
  }, e;
11397
11399
  }(Ft)
11398
11400
  );
@@ -11401,8 +11403,8 @@ var Wi = (
11401
11403
  /** @class */
11402
11404
  function(n) {
11403
11405
  be(e, n);
11404
- function e(t, r, o, i, a, s, u, p, d, f) {
11405
- var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11406
+ function e(t, r, o, i, a, s, d, p, u, f) {
11407
+ var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11406
11408
  return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
11407
11409
  }
11408
11410
  return e.prototype.acquireToken = function(t) {
@@ -11423,14 +11425,14 @@ var Wi = (
11423
11425
  if (this.config.system.asyncPopups)
11424
11426
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
11425
11427
  this.logger.verbose("asyncPopup set to false, opening popup");
11426
- var u = this.openSizedPopup("about:blank", o, s);
11427
- return this.logoutPopupAsync(r, o, s, i, u, a);
11428
+ var d = this.openSizedPopup("about:blank", o, s);
11429
+ return this.logoutPopupAsync(r, o, s, i, d, a);
11428
11430
  } catch (p) {
11429
11431
  return Promise.reject(p);
11430
11432
  }
11431
11433
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
11432
11434
  return T(this, void 0, void 0, function() {
11433
- var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11435
+ var a, s, d, p, u, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11434
11436
  return I(this, function(ce) {
11435
11437
  switch (ce.label) {
11436
11438
  case 0:
@@ -11440,17 +11442,17 @@ var Wi = (
11440
11442
  case 2:
11441
11443
  return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
11442
11444
  case 3:
11443
- return u = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11445
+ return d = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11444
11446
  case 4:
11445
- return p = ce.sent(), this.logger.verbose("Auth code client created"), d = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, d && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: d }))];
11447
+ return p = ce.sent(), this.logger.verbose("Auth code client created"), u = yt.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), f = void 0, u && (f = this.performanceClient.startMeasurement(b.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl(B(B({}, s), { nativeBroker: u }))];
11446
11448
  case 5:
11447
- return _ = ce.sent(), k = new or(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
11449
+ return _ = ce.sent(), k = new or(p, this.browserStorage, d, this.logger, this.performanceClient), E = {
11448
11450
  popup: i,
11449
11451
  popupName: r,
11450
11452
  popupWindowAttributes: o
11451
11453
  }, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
11452
11454
  case 6:
11453
- 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) {
11455
+ if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, d), X.accountId) {
11454
11456
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
11455
11457
  success: !0,
11456
11458
  isNativeBroker: !0
@@ -11479,25 +11481,25 @@ var Wi = (
11479
11481
  });
11480
11482
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
11481
11483
  return T(this, void 0, void 0, function() {
11482
- var u, p, d, f, _, k, E;
11484
+ var d, p, u, f, _, k, E;
11483
11485
  return I(this, function(N) {
11484
11486
  switch (N.label) {
11485
11487
  case 0:
11486
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11488
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), d = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11487
11489
  case 1:
11488
11490
  return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11489
11491
  case 2:
11490
- return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11492
+ return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(d, i)];
11491
11493
  case 3:
11492
- 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)];
11494
+ return p = N.sent(), this.logger.verbose("Auth code client created"), u = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(u, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11493
11495
  case 4:
11494
11496
  return N.sent(), s ? (_ = {
11495
11497
  apiId: oe.logoutPopup,
11496
11498
  timeout: this.config.system.redirectNavigationTimeout,
11497
11499
  noHistory: !1
11498
- }, 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];
11500
+ }, k = W.getAbsoluteUrl(s, ue.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];
11499
11501
  case 5:
11500
- 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;
11502
+ 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), d.cacheFailedRequest(E), E;
11501
11503
  case 6:
11502
11504
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
11503
11505
  2
@@ -11515,17 +11517,17 @@ var Wi = (
11515
11517
  return new Promise(function(o, i) {
11516
11518
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
11517
11519
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
11518
- var u = setInterval(function() {
11520
+ var d = setInterval(function() {
11519
11521
  if (t.closed) {
11520
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
11522
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(d), i(M.createUserCancelledError());
11521
11523
  return;
11522
11524
  }
11523
- var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
11525
+ var p = g.EMPTY_STRING, u = g.EMPTY_STRING;
11524
11526
  try {
11525
- p = t.location.href, d = t.location.hash;
11527
+ p = t.location.href, u = t.location.hash;
11526
11528
  } catch {
11527
11529
  }
11528
- 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())));
11530
+ L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, u ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(d), r.cleanPopup(t), W.hashContainsKnownProperties(u) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(u)) : (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: " + u), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(d), i(M.createMonitorPopupTimeoutError())));
11529
11531
  }, r.config.system.pollIntervalMilliseconds);
11530
11532
  });
11531
11533
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -11552,8 +11554,8 @@ var Wi = (
11552
11554
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
11553
11555
  }
11554
11556
  }, e.prototype.openSizedPopup = function(t, r, o) {
11555
- 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;
11556
- 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");
11557
+ var i, a, s, d, p = window.screenLeft ? window.screenLeft : window.screenX, u = 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 = (d = o.popupPosition) === null || d === void 0 ? void 0 : d.left;
11558
+ 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 + u)), (!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");
11557
11559
  }, e.prototype.unloadWindow = function(t) {
11558
11560
  this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
11559
11561
  }, e.prototype.cleanPopup = function(t) {
@@ -11612,21 +11614,21 @@ function ea(n, e) {
11612
11614
  // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
11613
11615
  cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
11614
11616
  claimsBasedCachingEnabled: !0
11615
- }, u = {
11617
+ }, d = {
11616
11618
  // eslint-disable-next-line @typescript-eslint/no-empty-function
11617
11619
  loggerCallback: function() {
11618
11620
  },
11619
11621
  logLevel: ve.Info,
11620
11622
  piiLoggingEnabled: !1
11621
11623
  }, p = B(B({}, no), {
11622
- loggerOptions: u,
11623
- networkClient: e ? de.getBrowserNetworkClient() : Di,
11624
+ loggerOptions: d,
11625
+ networkClient: e ? ue.getBrowserNetworkClient() : Di,
11624
11626
  navigationClient: new $i(),
11625
11627
  loadFrameTimeout: 0,
11626
11628
  // If loadFrameTimeout is provided, use that as default.
11627
11629
  windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
11628
11630
  iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
11629
- navigateFrameWait: e && de.detectIEOrEdge() ? 500 : 0,
11631
+ navigateFrameWait: e && ue.detectIEOrEdge() ? 500 : 0,
11630
11632
  redirectNavigationTimeout: Xi,
11631
11633
  asyncPopups: !1,
11632
11634
  allowRedirectInIframe: !1,
@@ -11637,7 +11639,7 @@ function ea(n, e) {
11637
11639
  useMsrCrypto: !1,
11638
11640
  entropy: void 0
11639
11641
  }
11640
- }), d = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), f = {
11642
+ }), u = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || d }), f = {
11641
11643
  application: {
11642
11644
  appName: g.EMPTY_STRING,
11643
11645
  appVersion: g.EMPTY_STRING
@@ -11645,7 +11647,7 @@ function ea(n, e) {
11645
11647
  }, _ = {
11646
11648
  auth: B(B({}, a), t),
11647
11649
  cache: B(B({}, s), r),
11648
- system: B(B({}, p), d),
11650
+ system: B(B({}, p), u),
11649
11651
  telemetry: B(B({}, f), i)
11650
11652
  };
11651
11653
  return _;
@@ -11656,8 +11658,8 @@ var uo = (
11656
11658
  function(n) {
11657
11659
  be(e, n);
11658
11660
  function e(t, r, o, i, a, s) {
11659
- var u = n.call(this, t, r, o, i, s) || this;
11660
- return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
11661
+ var d = n.call(this, t, r, o, i, s) || this;
11662
+ return d.navigateFrameWait = a.navigateFrameWait, d.pollIntervalMilliseconds = a.pollIntervalMilliseconds, d;
11661
11663
  }
11662
11664
  return e.prototype.initiateAuthRequest = function(t) {
11663
11665
  return T(this, void 0, void 0, function() {
@@ -11678,17 +11680,17 @@ var uo = (
11678
11680
  var o = this;
11679
11681
  return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
11680
11682
  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.");
11681
- var s = window.performance.now(), u = s + r, p = setInterval(function() {
11682
- if (window.performance.now() > u) {
11683
+ var s = window.performance.now(), d = s + r, p = setInterval(function() {
11684
+ if (window.performance.now() > d) {
11683
11685
  o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
11684
11686
  return;
11685
11687
  }
11686
- var d = g.EMPTY_STRING, f = t.contentWindow;
11688
+ var u = g.EMPTY_STRING, f = t.contentWindow;
11687
11689
  try {
11688
- d = f ? f.location.href : g.EMPTY_STRING;
11690
+ u = f ? f.location.href : g.EMPTY_STRING;
11689
11691
  } catch {
11690
11692
  }
11691
- if (!L.isEmpty(d)) {
11693
+ if (!L.isEmpty(u)) {
11692
11694
  var _ = f ? f.location.hash : g.EMPTY_STRING;
11693
11695
  if (W.hashContainsKnownProperties(_)) {
11694
11696
  o.removeHiddenIframe(t), clearInterval(p), i(_);
@@ -11725,15 +11727,15 @@ var ta = (
11725
11727
  /** @class */
11726
11728
  function(n) {
11727
11729
  be(e, n);
11728
- function e(t, r, o, i, a, s, u, p, d, f, _) {
11730
+ function e(t, r, o, i, a, s, d, p, u, f, _) {
11729
11731
  var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
11730
- return k.apiId = u, k.nativeStorage = d, k;
11732
+ return k.apiId = d, k.nativeStorage = u, k;
11731
11733
  }
11732
11734
  return e.prototype.acquireToken = function(t) {
11733
11735
  return T(this, void 0, void 0, function() {
11734
11736
  var r, o, i, a, s;
11735
- return I(this, function(u) {
11736
- switch (u.label) {
11737
+ return I(this, function(d) {
11738
+ switch (d.label) {
11737
11739
  case 0:
11738
11740
  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)
11739
11741
  throw r.endMeasurement({
@@ -11741,11 +11743,11 @@ var ta = (
11741
11743
  }), M.createSilentPromptValueError(t.prompt);
11742
11744
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
11743
11745
  case 1:
11744
- 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;
11746
+ o = d.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
11745
11747
  case 2:
11746
- return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11748
+ return d.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11747
11749
  case 3:
11748
- return a = u.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
11750
+ return a = d.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
11749
11751
  return r.endMeasurement({
11750
11752
  success: !0,
11751
11753
  fromCache: !1,
@@ -11753,9 +11755,9 @@ var ta = (
11753
11755
  }), p;
11754
11756
  })];
11755
11757
  case 4:
11756
- return [2, u.sent()];
11758
+ return [2, d.sent()];
11757
11759
  case 5:
11758
- throw s = u.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11760
+ throw s = d.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11759
11761
  errorCode: s instanceof D && s.errorCode || void 0,
11760
11762
  subErrorCode: s instanceof D && s.subError || void 0,
11761
11763
  success: !1
@@ -11772,7 +11774,7 @@ var ta = (
11772
11774
  return Promise.reject(M.createSilentLogoutUnsupportedError());
11773
11775
  }, e.prototype.silentTokenHelper = function(t, r) {
11774
11776
  return T(this, void 0, void 0, function() {
11775
- var o, i, a, s, u, p, d, f, _, k = this;
11777
+ var o, i, a, s, d, p, u, f, _, k = this;
11776
11778
  return I(this, function(E) {
11777
11779
  switch (E.label) {
11778
11780
  case 0:
@@ -11784,14 +11786,14 @@ var ta = (
11784
11786
  case 3:
11785
11787
  return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
11786
11788
  case 4:
11787
- if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11789
+ if (d = E.sent(), p = W.getDeserializedHash(d), u = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11788
11790
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11789
11791
  throw M.createNativeConnectionNotEstablishedError();
11790
- return f = new Ot(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() {
11791
- k.browserStorage.cleanRequestByState(d);
11792
+ return f = new Ot(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, u).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11793
+ k.browserStorage.cleanRequestByState(u);
11792
11794
  })];
11793
11795
  }
11794
- return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, d, t.authority, this.networkClient)];
11796
+ return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(d, u, t.authority, this.networkClient)];
11795
11797
  }
11796
11798
  });
11797
11799
  });
@@ -11808,7 +11810,7 @@ var na = (
11808
11810
  }
11809
11811
  return e.prototype.acquireToken = function(t) {
11810
11812
  return T(this, void 0, void 0, function() {
11811
- var r, o, i, a, s, u = this;
11813
+ var r, o, i, a, s, d = this;
11812
11814
  return I(this, function(p) {
11813
11815
  switch (p.label) {
11814
11816
  case 0:
@@ -11816,18 +11818,18 @@ var na = (
11816
11818
  case 1:
11817
11819
  return r = B.apply(void 0, o.concat([p.sent()])), i = this.performanceClient.startMeasurement(b.SilentRefreshClientAcquireToken, r.correlationId), a = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createRefreshTokenClient(a, r.authority, r.azureCloudOptions)];
11818
11820
  case 2:
11819
- return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(d) {
11821
+ return s = p.sent(), this.logger.verbose("Refresh token client created"), this.performanceClient.setPreQueueTime(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), [2, s.acquireTokenByRefreshToken(r).then(function(u) {
11820
11822
  return i.endMeasurement({
11821
11823
  success: !0,
11822
- fromCache: d.fromCache,
11823
- requestId: d.requestId
11824
- }), d;
11825
- }).catch(function(d) {
11826
- throw d instanceof D && d.setCorrelationId(u.correlationId), a.cacheFailedRequest(d), i.endMeasurement({
11827
- errorCode: d.errorCode,
11828
- subErrorCode: d.subError,
11824
+ fromCache: u.fromCache,
11825
+ requestId: u.requestId
11826
+ }), u;
11827
+ }).catch(function(u) {
11828
+ throw u instanceof D && u.setCorrelationId(d.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
11829
+ errorCode: u.errorCode,
11830
+ subErrorCode: u.subError,
11829
11831
  success: !1
11830
- }), d;
11832
+ }), u;
11831
11833
  })];
11832
11834
  }
11833
11835
  });
@@ -11878,8 +11880,8 @@ var ra = (
11878
11880
  error: o || null,
11879
11881
  timestamp: Date.now()
11880
11882
  };
11881
- this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
11882
- i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
11883
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, d) {
11884
+ i.logger.verbose("Emitting event to callback " + d + ": " + e), s.apply(null, [a]);
11883
11885
  });
11884
11886
  }
11885
11887
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -11942,8 +11944,8 @@ var ct = (
11942
11944
  return n.stringToUtf8Arr = function(e) {
11943
11945
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
11944
11946
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
11945
- for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
11946
- t = e.charCodeAt(u), t < 128 ? a[s++] = t : t < 2048 ? (a[s++] = 192 + (t >>> 6), a[s++] = 128 + (t & 63)) : t < 65536 ? (a[s++] = 224 + (t >>> 12), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 2097152 ? (a[s++] = 240 + (t >>> 18), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 67108864 ? (a[s++] = 248 + (t >>> 24), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : (a[s++] = 252 + (t >>> 30), a[s++] = 128 + (t >>> 24 & 63), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63));
11947
+ for (var a = new Uint8Array(r), s = 0, d = 0; s < r; d++)
11948
+ t = e.charCodeAt(d), t < 128 ? a[s++] = t : t < 2048 ? (a[s++] = 192 + (t >>> 6), a[s++] = 128 + (t & 63)) : t < 65536 ? (a[s++] = 224 + (t >>> 12), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 2097152 ? (a[s++] = 240 + (t >>> 18), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : t < 67108864 ? (a[s++] = 248 + (t >>> 24), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63)) : (a[s++] = 252 + (t >>> 30), a[s++] = 128 + (t >>> 24 & 63), a[s++] = 128 + (t >>> 18 & 63), a[s++] = 128 + (t >>> 12 & 63), a[s++] = 128 + (t >>> 6 & 63), a[s++] = 128 + (t & 63));
11947
11949
  return a;
11948
11950
  }, n.stringToArrayBuffer = function(e) {
11949
11951
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -12023,10 +12025,10 @@ var oa = (
12023
12025
  var r = this.base64DecToArr(t);
12024
12026
  return ct.utf8ArrToString(r);
12025
12027
  }, n.prototype.base64DecToArr = function(e, t) {
12026
- for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, d = 0, f = 0; f < o; f++)
12027
- if (u = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * u, u === 3 || o - f === 1) {
12028
- for (s = 0; s < 3 && d < i; s++, d++)
12029
- a[d] = p >>> (16 >>> s & 24) & 255;
12028
+ for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, g.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, d = void 0, p = 0, u = 0, f = 0; f < o; f++)
12029
+ if (d = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * d, d === 3 || o - f === 1) {
12030
+ for (s = 0; s < 3 && u < i; s++, u++)
12031
+ a[u] = p >>> (16 >>> s & 24) & 255;
12030
12032
  p = 0;
12031
12033
  }
12032
12034
  return a;
@@ -12185,10 +12187,10 @@ var la = (
12185
12187
  return I(this, function(o) {
12186
12188
  return [2, new Promise(function(i, a) {
12187
12189
  var s = window.msCrypto.subtle.generateKey(e, t, r);
12188
- s.addEventListener("complete", function(u) {
12189
- i(u.target.result);
12190
- }), s.addEventListener("error", function(u) {
12191
- a(u);
12190
+ s.addEventListener("complete", function(d) {
12191
+ i(d.target.result);
12192
+ }), s.addEventListener("error", function(d) {
12193
+ a(d);
12192
12194
  });
12193
12195
  })];
12194
12196
  });
@@ -12199,9 +12201,9 @@ var la = (
12199
12201
  return [2, new Promise(function(r, o) {
12200
12202
  var i = window.msCrypto.subtle.exportKey(xt, e);
12201
12203
  i.addEventListener("complete", function(a) {
12202
- var s = a.target.result, u = ct.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, g.EMPTY_STRING).replace(/\n/g, g.EMPTY_STRING).replace(/\t/g, g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0", g.EMPTY_STRING);
12204
+ var s = a.target.result, d = ct.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, g.EMPTY_STRING).replace(/\n/g, g.EMPTY_STRING).replace(/\t/g, g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0", g.EMPTY_STRING);
12203
12205
  try {
12204
- r(JSON.parse(u));
12206
+ r(JSON.parse(d));
12205
12207
  } catch (p) {
12206
12208
  o(p);
12207
12209
  }
@@ -12215,11 +12217,11 @@ var la = (
12215
12217
  return T(this, void 0, void 0, function() {
12216
12218
  var i, a;
12217
12219
  return I(this, function(s) {
12218
- return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
12219
- var d = window.msCrypto.subtle.importKey(xt, a, t, r, o);
12220
- d.addEventListener("complete", function(f) {
12221
- u(f.target.result);
12222
- }), d.addEventListener("error", function(f) {
12220
+ return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(d, p) {
12221
+ var u = window.msCrypto.subtle.importKey(xt, a, t, r, o);
12222
+ u.addEventListener("complete", function(f) {
12223
+ d(f.target.result);
12224
+ }), u.addEventListener("error", function(f) {
12223
12225
  p(f);
12224
12226
  });
12225
12227
  })];
@@ -12230,10 +12232,10 @@ var la = (
12230
12232
  return I(this, function(o) {
12231
12233
  return [2, new Promise(function(i, a) {
12232
12234
  var s = window.msCrypto.subtle.sign(e, t, r);
12233
- s.addEventListener("complete", function(u) {
12234
- i(u.target.result);
12235
- }), s.addEventListener("error", function(u) {
12236
- a(u);
12235
+ s.addEventListener("complete", function(d) {
12236
+ i(d.target.result);
12237
+ }), s.addEventListener("error", function(d) {
12238
+ a(d);
12237
12239
  });
12238
12240
  })];
12239
12241
  });
@@ -12255,7 +12257,7 @@ var la = (
12255
12257
  }()
12256
12258
  );
12257
12259
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12258
- var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12260
+ var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12259
12261
  /** @class */
12260
12262
  function() {
12261
12263
  function n(e, t) {
@@ -12274,9 +12276,9 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
12274
12276
  this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
12275
12277
  }
12276
12278
  this.keygenAlgorithmOptions = {
12277
- name: ua,
12279
+ name: da,
12278
12280
  hash: xr,
12279
- modulusLength: da,
12281
+ modulusLength: ua,
12280
12282
  publicExponent: pa
12281
12283
  };
12282
12284
  }
@@ -12377,11 +12379,11 @@ var ha = (
12377
12379
  return r.sent(), [2, new Promise(function(o, i) {
12378
12380
  if (!t.db)
12379
12381
  return i(M.createDatabaseNotOpenError());
12380
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
12381
- u.addEventListener("success", function(p) {
12382
- var d = p;
12383
- t.closeConnection(), o(d.target.result);
12384
- }), u.addEventListener("error", function(p) {
12382
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.get(e);
12383
+ d.addEventListener("success", function(p) {
12384
+ var u = p;
12385
+ t.closeConnection(), o(u.target.result);
12386
+ }), d.addEventListener("error", function(p) {
12385
12387
  t.closeConnection(), i(p);
12386
12388
  });
12387
12389
  })];
@@ -12399,11 +12401,11 @@ var ha = (
12399
12401
  return o.sent(), [2, new Promise(function(i, a) {
12400
12402
  if (!r.db)
12401
12403
  return a(M.createDatabaseNotOpenError());
12402
- var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
12404
+ var s = r.db.transaction([r.tableName], "readwrite"), d = s.objectStore(r.tableName), p = d.put(t, e);
12403
12405
  p.addEventListener("success", function() {
12404
12406
  r.closeConnection(), i();
12405
- }), p.addEventListener("error", function(d) {
12406
- r.closeConnection(), a(d);
12407
+ }), p.addEventListener("error", function(u) {
12408
+ r.closeConnection(), a(u);
12407
12409
  });
12408
12410
  })];
12409
12411
  }
@@ -12420,10 +12422,10 @@ var ha = (
12420
12422
  return r.sent(), [2, new Promise(function(o, i) {
12421
12423
  if (!t.db)
12422
12424
  return i(M.createDatabaseNotOpenError());
12423
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
12424
- u.addEventListener("success", function() {
12425
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), d = s.delete(e);
12426
+ d.addEventListener("success", function() {
12425
12427
  t.closeConnection(), o();
12426
- }), u.addEventListener("error", function(p) {
12428
+ }), d.addEventListener("error", function(p) {
12427
12429
  t.closeConnection(), i(p);
12428
12430
  });
12429
12431
  })];
@@ -12442,11 +12444,11 @@ var ha = (
12442
12444
  if (!e.db)
12443
12445
  return o(M.createDatabaseNotOpenError());
12444
12446
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
12445
- s.addEventListener("success", function(u) {
12446
- var p = u;
12447
+ s.addEventListener("success", function(d) {
12448
+ var p = d;
12447
12449
  e.closeConnection(), r(p.target.result);
12448
- }), s.addEventListener("error", function(u) {
12449
- e.closeConnection(), o(u);
12450
+ }), s.addEventListener("error", function(d) {
12451
+ e.closeConnection(), o(d);
12450
12452
  });
12451
12453
  })];
12452
12454
  }
@@ -12463,11 +12465,11 @@ var ha = (
12463
12465
  return r.sent(), [2, new Promise(function(o, i) {
12464
12466
  if (!t.db)
12465
12467
  return i(M.createDatabaseNotOpenError());
12466
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
12467
- u.addEventListener("success", function(p) {
12468
- var d = p;
12469
- t.closeConnection(), o(d.target.result === 1);
12470
- }), u.addEventListener("error", function(p) {
12468
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.count(e);
12469
+ d.addEventListener("success", function(p) {
12470
+ var u = p;
12471
+ t.closeConnection(), o(u.target.result === 1);
12472
+ }), d.addEventListener("error", function(p) {
12471
12473
  t.closeConnection(), i(p);
12472
12474
  });
12473
12475
  })];
@@ -12687,7 +12689,7 @@ var fa = (
12687
12689
  }, n.prototype.getPublicKeyThumbprint = function(e) {
12688
12690
  var t;
12689
12691
  return T(this, void 0, void 0, function() {
12690
- var r, o, i, a, s, u, p, d;
12692
+ var r, o, i, a, s, d, p, u;
12691
12693
  return I(this, function(f) {
12692
12694
  switch (f.label) {
12693
12695
  case 0:
@@ -12701,12 +12703,12 @@ var fa = (
12701
12703
  n: i.n
12702
12704
  }, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
12703
12705
  case 3:
12704
- return u = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12706
+ return d = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12705
12707
  case 4:
12706
12708
  return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
12707
12709
  case 5:
12708
- return d = f.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
12709
- privateKey: d,
12710
+ return u = f.sent(), [4, this.cache.asymmetricKeys.setItem(d, {
12711
+ privateKey: u,
12710
12712
  publicKey: o.publicKey,
12711
12713
  requestMethod: e.resourceRequestMethod,
12712
12714
  requestUri: e.resourceRequestUri
@@ -12714,7 +12716,7 @@ var fa = (
12714
12716
  case 6:
12715
12717
  return f.sent(), r && r.endMeasurement({
12716
12718
  success: !0
12717
- }), [2, u];
12719
+ }), [2, d];
12718
12720
  }
12719
12721
  });
12720
12722
  });
@@ -12746,7 +12748,7 @@ var fa = (
12746
12748
  }, n.prototype.signJwt = function(e, t, r) {
12747
12749
  var o;
12748
12750
  return T(this, void 0, void 0, function() {
12749
- var i, a, s, u, p, d, f, _, k, E, N, Q, X;
12751
+ var i, a, s, d, p, u, f, _, k, E, N, Q, X;
12750
12752
  return I(this, function(G) {
12751
12753
  switch (G.label) {
12752
12754
  case 0:
@@ -12756,8 +12758,8 @@ var fa = (
12756
12758
  throw M.createSigningKeyNotFoundInStorageError(t);
12757
12759
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
12758
12760
  case 2:
12759
- 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 = {
12760
- jwk: JSON.parse(u)
12761
+ return s = G.sent(), d = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), u = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(u), e.cnf = {
12762
+ jwk: JSON.parse(d)
12761
12763
  }, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
12762
12764
  case 3:
12763
12765
  return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
@@ -12836,9 +12838,9 @@ var ga = (
12836
12838
  /** @class */
12837
12839
  function(n) {
12838
12840
  be(e, n);
12839
- function e(t, r, o, i, a, s, u) {
12841
+ function e(t, r, o, i, a, s, d) {
12840
12842
  var p = n.call(this, t, r, o, i, a, s) || this;
12841
- return p.browserCrypto = new mo(p.logger, u), p.guidGenerator = new po(p.browserCrypto), p;
12843
+ return p.browserCrypto = new mo(p.logger, d), p.guidGenerator = new po(p.browserCrypto), p;
12842
12844
  }
12843
12845
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
12844
12846
  return new Dr(t, r);
@@ -12857,8 +12859,8 @@ var ga = (
12857
12859
  }, e.prototype.startMeasurement = function(t, r) {
12858
12860
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
12859
12861
  return B(B({}, a), { endMeasurement: function(s) {
12860
- var u = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12861
- return o.deleteIncompleteSubMeasurements(a), u;
12862
+ var d = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12863
+ return o.deleteIncompleteSubMeasurements(a), d;
12862
12864
  }, discardMeasurement: function() {
12863
12865
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
12864
12866
  } });
@@ -12884,8 +12886,8 @@ var ga = (
12884
12886
  }
12885
12887
  var a = n.prototype.getPreQueueTime.call(this, t, r);
12886
12888
  if (a) {
12887
- var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
12888
- return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
12889
+ var s = window.performance.now(), d = o || n.prototype.calculateQueuedTime.call(this, a, s);
12890
+ return n.prototype.addQueueMeasurement.call(this, t, r, d, i);
12889
12891
  }
12890
12892
  }, e;
12891
12893
  }(ao)
@@ -12905,14 +12907,14 @@ var _a = (
12905
12907
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
12906
12908
  i = new Zt(s, this.loadIdToken(o, s.homeAccountId, e.account.environment, e.account.tenantId), this.loadAccessToken(e, t, s.homeAccountId, e.account.environment, e.account.tenantId, r), this.loadRefreshToken(e, t, s.homeAccountId, e.account.environment));
12907
12909
  } else if (e.authority) {
12908
- var u = rn.generateAuthority(e.authority, e.azureCloudOptions), p = {
12910
+ var d = rn.generateAuthority(e.authority, e.azureCloudOptions), p = {
12909
12911
  protocolMode: this.config.auth.protocolMode,
12910
12912
  knownAuthorities: this.config.auth.knownAuthorities,
12911
12913
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
12912
12914
  authorityMetadata: this.config.auth.authorityMetadata,
12913
12915
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
12914
12916
  };
12915
- if (a = new rn(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12917
+ if (a = new rn(d, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12916
12918
  this.logger.trace("TokenCache - homeAccountId from options");
12917
12919
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
12918
12920
  i = new Zt(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));
@@ -12945,9 +12947,9 @@ var _a = (
12945
12947
  throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12946
12948
  if (!a.extendedExpiresOn)
12947
12949
  throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
12948
- 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);
12950
+ var s = new Ee(e.scopes).printScopes(), d = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, u = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, d, p, this.cryptoObj);
12949
12951
  if (this.isBrowserEnvironment)
12950
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
12952
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
12951
12953
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12952
12954
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
12953
12955
  if (!t.refresh_token)
@@ -12957,8 +12959,8 @@ var _a = (
12957
12959
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
12958
12960
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12959
12961
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
12960
- var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
12961
- 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));
12962
+ var i, a, s, d = g.EMPTY_STRING, p = [], u = null, f;
12963
+ r != null && r.accessToken && (d = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), u = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
12962
12964
  var _ = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || g.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || g.EMPTY_STRING;
12963
12965
  return {
12964
12966
  authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
@@ -12968,9 +12970,9 @@ var _a = (
12968
12970
  account: r != null && r.account ? r.account.getAccountInfo() : null,
12969
12971
  idToken: t ? t.rawToken : g.EMPTY_STRING,
12970
12972
  idTokenClaims: t ? t.claims : {},
12971
- accessToken: u,
12973
+ accessToken: d,
12972
12974
  fromCache: !0,
12973
- expiresOn: d,
12975
+ expiresOn: u,
12974
12976
  correlationId: e.correlationId || g.EMPTY_STRING,
12975
12977
  requestId: g.EMPTY_STRING,
12976
12978
  extExpiresOn: f,
@@ -13002,32 +13004,32 @@ var ya = (
13002
13004
  /** @class */
13003
13005
  function(n) {
13004
13006
  be(e, n);
13005
- function e(t, r, o, i, a, s, u, p, d, f) {
13006
- var _ = n.call(this, t, r, o, i, a, s, p, d, f) || this;
13007
- return _.apiId = u, _;
13007
+ function e(t, r, o, i, a, s, d, p, u, f) {
13008
+ var _ = n.call(this, t, r, o, i, a, s, p, u, f) || this;
13009
+ return _.apiId = d, _;
13008
13010
  }
13009
13011
  return e.prototype.acquireToken = function(t) {
13010
13012
  return T(this, void 0, void 0, function() {
13011
- var r, o, i, a, s, u, p;
13012
- return I(this, function(d) {
13013
- switch (d.label) {
13013
+ var r, o, i, a, s, d, p;
13014
+ return I(this, function(u) {
13015
+ switch (u.label) {
13014
13016
  case 0:
13015
13017
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
13016
13018
  throw M.createAuthCodeRequiredError();
13017
13019
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
13018
13020
  case 1:
13019
- 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;
13021
+ r = u.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
13020
13022
  case 2:
13021
- return d.trys.push([2, 4, , 5]), i = B(B({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(b.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
13023
+ return u.trys.push([2, 4, , 5]), i = B(B({}, r), { code: t.code }), this.performanceClient.setPreQueueTime(b.StandardInteractionClientGetClientConfiguration, t.correlationId), [4, this.getClientConfiguration(o, r.authority)];
13022
13024
  case 3:
13023
- return a = d.sent(), s = new va(a), this.logger.verbose("Auth code client created"), u = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, u.handleCodeResponseFromServer({
13025
+ return a = u.sent(), s = new va(a), this.logger.verbose("Auth code client created"), d = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, d.handleCodeResponseFromServer({
13024
13026
  code: t.code,
13025
13027
  msgraph_host: t.msGraphHost,
13026
13028
  cloud_graph_host_name: t.cloudGraphHostName,
13027
13029
  cloud_instance_host_name: t.cloudInstanceHostName
13028
13030
  }, r.state, s.authority, this.networkClient, !1)];
13029
13031
  case 4:
13030
- throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13032
+ throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13031
13033
  case 5:
13032
13034
  return [
13033
13035
  2
@@ -13091,32 +13093,32 @@ var ka = (
13091
13093
  });
13092
13094
  }, n.prototype.handleRedirectPromise = function(e) {
13093
13095
  return T(this, void 0, void 0, function() {
13094
- var t, r, o, i, a, s, u, p, d = this;
13096
+ var t, r, o, i, a, s, d, p, u = this;
13095
13097
  return I(this, function(f) {
13096
- return this.logger.verbose("handleRedirectPromise called"), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || g.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START, x.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
13098
+ return this.logger.verbose("handleRedirectPromise called"), ue.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || g.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START, x.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), d = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(d), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
13097
13099
  if (_) {
13098
- var k = t.length < d.getAllAccounts().length;
13099
- k ? (d.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, login success")) : (d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), d.logger.verbose("handleRedirectResponse returned result, acquire token success"));
13100
+ var k = t.length < u.getAllAccounts().length;
13101
+ k ? (u.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, login success")) : (u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Redirect, _), u.logger.verbose("handleRedirectResponse returned result, acquire token success"));
13100
13102
  }
13101
- return d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13103
+ return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13102
13104
  }).catch(function(_) {
13103
- throw t.length > 0 ? d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : d.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13105
+ throw t.length > 0 ? u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Redirect, null, _) : u.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Redirect, null, _), u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13104
13106
  }), this.redirectResponse.set(r, o)) : this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"), [2, o]) : (this.logger.verbose("handleRedirectPromise returns null, not browser environment"), [2, null]);
13105
13107
  });
13106
13108
  });
13107
13109
  }, n.prototype.acquireTokenRedirect = function(e) {
13108
13110
  return T(this, void 0, void 0, function() {
13109
13111
  var t, r, o, i, a, s = this;
13110
- return I(this, function(u) {
13112
+ return I(this, function(d) {
13111
13113
  return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(x.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Redirect, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new Ot(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
13112
13114
  if (p instanceof tt && p.isFatal()) {
13113
13115
  s.nativeExtensionProvider = void 0;
13114
- var d = s.createRedirectClient(e.correlationId);
13115
- return d.acquireToken(e);
13116
+ var u = s.createRedirectClient(e.correlationId);
13117
+ return u.acquireToken(e);
13116
13118
  } else if (p instanceof Ye) {
13117
13119
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
13118
- var d = s.createRedirectClient(e.correlationId);
13119
- return d.acquireToken(e);
13120
+ var u = s.createRedirectClient(e.correlationId);
13121
+ return u.acquireToken(e);
13120
13122
  }
13121
13123
  throw s.browserStorage.setInteractionInProgress(!1), p;
13122
13124
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -13128,50 +13130,50 @@ var ka = (
13128
13130
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
13129
13131
  try {
13130
13132
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
13131
- } catch (u) {
13132
- return Promise.reject(u);
13133
+ } catch (d) {
13134
+ return Promise.reject(d);
13133
13135
  }
13134
13136
  var i = this.getAllAccounts();
13135
13137
  i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
13136
13138
  var a;
13137
13139
  if (this.canUseNative(e))
13138
- a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(u) {
13140
+ a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(d) {
13139
13141
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
13140
13142
  success: !0,
13141
13143
  isNativeBroker: !0,
13142
- requestId: u.requestId
13143
- }), u;
13144
- }).catch(function(u) {
13145
- if (u instanceof tt && u.isFatal()) {
13144
+ requestId: d.requestId
13145
+ }), d;
13146
+ }).catch(function(d) {
13147
+ if (d instanceof tt && d.isFatal()) {
13146
13148
  t.nativeExtensionProvider = void 0;
13147
13149
  var p = t.createPopupClient(e.correlationId);
13148
13150
  return p.acquireToken(e);
13149
- } else if (u instanceof Ye) {
13151
+ } else if (d instanceof Ye) {
13150
13152
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
13151
13153
  var p = t.createPopupClient(e.correlationId);
13152
13154
  return p.acquireToken(e);
13153
13155
  }
13154
- throw t.browserStorage.setInteractionInProgress(!1), u;
13156
+ throw t.browserStorage.setInteractionInProgress(!1), d;
13155
13157
  });
13156
13158
  else {
13157
13159
  var s = this.createPopupClient(e.correlationId);
13158
13160
  a = s.acquireToken(e);
13159
13161
  }
13160
- return a.then(function(u) {
13162
+ return a.then(function(d) {
13161
13163
  var p = i.length < t.getAllAccounts().length;
13162
- return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, u) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, u), o.addStaticFields({
13163
- accessTokenSize: u.accessToken.length,
13164
- idTokenSize: u.idToken.length
13164
+ return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, d) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, d), o.addStaticFields({
13165
+ accessTokenSize: d.accessToken.length,
13166
+ idTokenSize: d.idToken.length
13165
13167
  }), o.endMeasurement({
13166
13168
  success: !0,
13167
- requestId: u.requestId
13168
- }), u;
13169
- }).catch(function(u) {
13170
- return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, u) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, u), o.endMeasurement({
13171
- errorCode: u.errorCode,
13172
- subErrorCode: u.subError,
13169
+ requestId: d.requestId
13170
+ }), d;
13171
+ }).catch(function(d) {
13172
+ return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, d) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, d), o.endMeasurement({
13173
+ errorCode: d.errorCode,
13174
+ subErrorCode: d.subError,
13173
13175
  success: !1
13174
- }), Promise.reject(u);
13176
+ }), Promise.reject(d);
13175
13177
  });
13176
13178
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
13177
13179
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -13182,7 +13184,7 @@ var ka = (
13182
13184
  var t;
13183
13185
  return T(this, void 0, void 0, function() {
13184
13186
  var r, o, i, a, s = this;
13185
- return I(this, function(u) {
13187
+ return I(this, function(d) {
13186
13188
  return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
13187
13189
  // will be PromptValue.NONE or PromptValue.NO_SESSION
13188
13190
  prompt: e.prompt,
@@ -13192,13 +13194,13 @@ var ka = (
13192
13194
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(q.SSO_SILENT_START, x.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, oe.ssoSilent).catch(function(p) {
13193
13195
  if (p instanceof tt && p.isFatal()) {
13194
13196
  s.nativeExtensionProvider = void 0;
13195
- var d = s.createSilentIframeClient(o.correlationId);
13196
- return d.acquireToken(o);
13197
+ var u = s.createSilentIframeClient(o.correlationId);
13198
+ return u.acquireToken(o);
13197
13199
  }
13198
13200
  throw p;
13199
13201
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
13200
- var d, f;
13201
- return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.addStaticFields({
13202
+ var u, f;
13203
+ return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
13202
13204
  accessTokenSize: p.accessToken.length,
13203
13205
  idTokenSize: p.idToken.length
13204
13206
  }), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
@@ -13207,8 +13209,8 @@ var ka = (
13207
13209
  requestId: p.requestId
13208
13210
  }), p;
13209
13211
  }).catch(function(p) {
13210
- var d;
13211
- throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.endMeasurement({
13212
+ var u;
13213
+ throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
13212
13214
  errorCode: p.errorCode,
13213
13215
  subErrorCode: p.subError,
13214
13216
  success: !1
@@ -13227,36 +13229,36 @@ var ka = (
13227
13229
  if (e.code && e.nativeAccountId)
13228
13230
  throw M.createSpaCodeAndNativeAccountIdPresentError();
13229
13231
  if (e.code)
13230
- 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) {
13231
- return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13232
- accessTokenSize: u.accessToken.length,
13233
- idTokenSize: u.idToken.length
13232
+ 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(d) {
13233
+ return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, d), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13234
+ accessTokenSize: d.accessToken.length,
13235
+ idTokenSize: d.idToken.length
13234
13236
  }), r.endMeasurement({
13235
13237
  success: !0,
13236
- isNativeBroker: u.fromNativeBroker,
13237
- requestId: u.requestId
13238
- }), u;
13239
- }).catch(function(u) {
13240
- throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13241
- errorCode: u.errorCode,
13242
- subErrorCode: u.subError,
13238
+ isNativeBroker: d.fromNativeBroker,
13239
+ requestId: d.requestId
13240
+ }), d;
13241
+ }).catch(function(d) {
13242
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13243
+ errorCode: d.errorCode,
13244
+ subErrorCode: d.subError,
13243
13245
  success: !1
13244
- }), u;
13246
+ }), d;
13245
13247
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
13246
13248
  if (e.nativeAccountId) {
13247
13249
  if (this.canUseNative(e, e.nativeAccountId))
13248
- return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
13249
- throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
13250
+ return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(d) {
13251
+ throw d instanceof tt && d.isFatal() && (a.nativeExtensionProvider = void 0), d;
13250
13252
  })];
13251
13253
  throw M.createUnableToAcquireTokenFromNativePlatformError();
13252
13254
  } else
13253
13255
  throw M.createAuthCodeOrNativeAccountIdRequiredError();
13254
- } catch (u) {
13255
- throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13256
- errorCode: u instanceof D && u.errorCode || void 0,
13257
- subErrorCode: u instanceof D && u.subError || void 0,
13256
+ } catch (d) {
13257
+ throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13258
+ errorCode: d instanceof D && d.errorCode || void 0,
13259
+ subErrorCode: d instanceof D && d.subError || void 0,
13258
13260
  success: !1
13259
- }), u;
13261
+ }), d;
13260
13262
  }
13261
13263
  return [
13262
13264
  2
@@ -13274,16 +13276,16 @@ var ka = (
13274
13276
  return this.logger.trace("acquireTokenByCodeAsync called", e.correlationId), this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenByCodeAsync, e.correlationId), (t = this.acquireTokenByCodeAsyncMeasurement) === null || t === void 0 || t.increment({
13275
13277
  visibilityChangeCount: 0
13276
13278
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
13277
- var u;
13278
- return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13279
+ var d;
13280
+ return (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13279
13281
  success: !0,
13280
13282
  fromCache: s.fromCache,
13281
13283
  isNativeBroker: s.fromNativeBroker,
13282
13284
  requestId: s.requestId
13283
13285
  }), s;
13284
13286
  }).catch(function(s) {
13285
- var u;
13286
- throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13287
+ var d;
13288
+ throw (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13287
13289
  errorCode: s.errorCode,
13288
13290
  subErrorCode: s.subError,
13289
13291
  success: !1
@@ -13384,11 +13386,11 @@ var ka = (
13384
13386
  }, n.prototype.getActiveAccount = function() {
13385
13387
  return this.browserStorage.getActiveAccount();
13386
13388
  }, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
13387
- if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), de.blockNonBrowserEnvironment(this.isBrowserEnvironment), de.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), de.blockReloadInHiddenIframes(), de.blockAcquireTokenInPopups(), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
13389
+ if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), ue.blockNonBrowserEnvironment(this.isBrowserEnvironment), ue.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), ue.blockReloadInHiddenIframes(), ue.blockAcquireTokenInPopups(), ue.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
13388
13390
  throw En.createInMemoryRedirectUnavailableError();
13389
13391
  (e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
13390
13392
  }, n.prototype.preflightInteractiveRequest = function(e) {
13391
- this.logger.verbose("preflightInteractiveRequest called, validating app environment"), de.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13393
+ this.logger.verbose("preflightInteractiveRequest called, validating app environment"), ue.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13392
13394
  }, n.prototype.acquireTokenNative = function(e, t, r) {
13393
13395
  return T(this, void 0, void 0, function() {
13394
13396
  var o;
@@ -13477,7 +13479,7 @@ var wa = (
13477
13479
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
13478
13480
  }, e.prototype.acquireTokenSilent = function(t) {
13479
13481
  return T(this, void 0, void 0, function() {
13480
- var r, o, i, a, s, u, p, d = this;
13482
+ var r, o, i, a, s, d, p, u = this;
13481
13483
  return I(this, function(f) {
13482
13484
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
13483
13485
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -13494,8 +13496,8 @@ var wa = (
13494
13496
  resourceRequestUri: t.resourceRequestUri,
13495
13497
  shrClaims: t.shrClaims,
13496
13498
  sshKid: t.sshKid
13497
- }, s = JSON.stringify(a), u = this.activeSilentTokenRequests.get(s), typeof u > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(b.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(B(B({}, t), { correlationId: r }), i).then(function(_) {
13498
- return d.activeSilentTokenRequests.delete(s), o.addStaticFields({
13499
+ }, s = JSON.stringify(a), d = this.activeSilentTokenRequests.get(s), typeof d > "u" ? (this.logger.verbose("acquireTokenSilent called for the first time, storing active request", r), this.performanceClient.setPreQueueTime(b.AcquireTokenSilentAsync, r), p = this.acquireTokenSilentAsync(B(B({}, t), { correlationId: r }), i).then(function(_) {
13500
+ return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
13499
13501
  accessTokenSize: _.accessToken.length,
13500
13502
  idTokenSize: _.idToken.length
13501
13503
  }), o.endMeasurement({
@@ -13506,12 +13508,12 @@ var wa = (
13506
13508
  requestId: _.requestId
13507
13509
  }), _;
13508
13510
  }).catch(function(_) {
13509
- throw d.activeSilentTokenRequests.delete(s), o.endMeasurement({
13511
+ throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
13510
13512
  errorCode: _.errorCode,
13511
13513
  subErrorCode: _.subError,
13512
13514
  success: !1
13513
13515
  }), _;
13514
- }), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2, u]);
13516
+ }), this.activeSilentTokenRequests.set(s, p), [2, p]) : (this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", r), o.discardMeasurement(), [2, d]);
13515
13517
  });
13516
13518
  });
13517
13519
  }, e.prototype.trackPageVisibility = function() {
@@ -13521,14 +13523,14 @@ var wa = (
13521
13523
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
13522
13524
  var o;
13523
13525
  return T(this, void 0, void 0, function() {
13524
- var i, a, s, u, p, d = this;
13526
+ var i, a, s, d, p, u = this;
13525
13527
  return I(this, function(f) {
13526
13528
  switch (f.label) {
13527
13529
  case 0:
13528
13530
  return this.performanceClient.addQueueMeasurement(b.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(b.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
13529
13531
  visibilityChangeCount: 0
13530
13532
  }), document.addEventListener("visibilitychange", this.trackPageVisibility), yt.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, t.authenticationScheme) && r.nativeAccountId ? (this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"), a = B(B({}, t), { account: r }), i = this.acquireTokenNative(a, oe.acquireTokenSilent_silentFlow).catch(function(_) {
13531
- return T(d, void 0, void 0, function() {
13533
+ return T(u, void 0, void 0, function() {
13532
13534
  var k;
13533
13535
  return I(this, function(E) {
13534
13536
  if (_ instanceof tt && _.isFatal())
@@ -13540,23 +13542,23 @@ var wa = (
13540
13542
  case 1:
13541
13543
  return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(b.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
13542
13544
  case 2:
13543
- u = f.sent(), p = B(B({}, t), {
13545
+ d = f.sent(), p = B(B({}, t), {
13544
13546
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
13545
13547
  cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
13546
- }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(_) {
13548
+ }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, d.correlationId), i = this.acquireTokenFromCache(s, d, p).catch(function(_) {
13547
13549
  if (p.cacheLookupPolicy === Le.AccessToken)
13548
13550
  throw _;
13549
- 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) {
13551
+ return ue.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, d), u.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, d.correlationId), u.acquireTokenByRefreshToken(d, p).catch(function(k) {
13550
13552
  var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Mt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13551
13553
  if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13552
13554
  throw k;
13553
- 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);
13555
+ return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), u.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, d.correlationId), u.acquireTokenBySilentIframe(d);
13554
13556
  });
13555
13557
  }), f.label = 3;
13556
13558
  case 3:
13557
13559
  return [2, i.then(function(_) {
13558
13560
  var k;
13559
- return d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13561
+ return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13560
13562
  success: !0,
13561
13563
  fromCache: _.fromCache,
13562
13564
  isNativeBroker: _.fromNativeBroker,
@@ -13564,13 +13566,13 @@ var wa = (
13564
13566
  }), _;
13565
13567
  }).catch(function(_) {
13566
13568
  var k;
13567
- throw d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13569
+ throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13568
13570
  errorCode: _.errorCode,
13569
13571
  subErrorCode: _.subError,
13570
13572
  success: !1
13571
13573
  }), _;
13572
13574
  }).finally(function() {
13573
- document.removeEventListener("visibilitychange", d.trackPageVisibility);
13575
+ document.removeEventListener("visibilitychange", u.trackPageVisibility);
13574
13576
  })];
13575
13577
  }
13576
13578
  });
@@ -13663,18 +13665,18 @@ const An = {
13663
13665
  if (t)
13664
13666
  return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
13665
13667
  if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
13666
- const [s, u] = await ne(
13668
+ const [s, d] = await ne(
13667
13669
  Ne.microsoftSDK(r, this.$storage)
13668
13670
  );
13669
13671
  if (s)
13670
13672
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13671
- if (u.data.success) {
13673
+ if (d.data.success) {
13672
13674
  if (this.display === "popup")
13673
13675
  return (a = window.parent) == null ? void 0 : a.postMessage(
13674
- { code: u.data.auth_code, state: this.$route.query.state },
13676
+ { code: d.data.auth_code, state: this.$route.query.state },
13675
13677
  "*"
13676
13678
  );
13677
- await this.loginSetup(u), await this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
13679
+ await this.loginSetup(d), await this.getLoggedInAccounts(), this.loginSuccess({ ...d, isModal: this.isModal }), setTimeout(() => {
13678
13680
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
13679
13681
  }, 1e3);
13680
13682
  } else
@@ -13701,7 +13703,7 @@ const An = {
13701
13703
  },
13702
13704
  compareLangKeys() {
13703
13705
  const n = Object.keys(Fr.default.state), e = Object.keys(jr.default.state), t = Object.keys(Kr.default.state), r = Object.keys(Wr.default.state), o = Object.keys(Vr.default.state), i = Object.keys(Gr.default.state), a = Object.keys(Qr.default.state), s = Object.keys(Yr.default.state);
13704
- console.log("In en but not in de", n.filter((u) => !e.includes(u))), console.log("In de but not in en", e.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in es", n.filter((u) => !t.includes(u))), console.log("In es but not in en", t.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in kr", n.filter((u) => !r.includes(u))), console.log("In kr but not in en", r.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in it", n.filter((u) => !o.includes(u))), console.log("In it but not in en", o.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in fr", n.filter((u) => !i.includes(u))), console.log("In fr but not in en", i.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in sr", n.filter((u) => !a.includes(u))), console.log("In sr but not in en", a.filter((u) => !n.includes(u))), console.log(), console.log("In en but not in tr", n.filter((u) => !s.includes(u))), console.log("In tr but not in en", s.filter((u) => !n.includes(u))), console.log();
13706
+ console.log("In en but not in de", n.filter((d) => !e.includes(d))), console.log("In de but not in en", e.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in es", n.filter((d) => !t.includes(d))), console.log("In es but not in en", t.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in kr", n.filter((d) => !r.includes(d))), console.log("In kr but not in en", r.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in it", n.filter((d) => !o.includes(d))), console.log("In it but not in en", o.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in fr", n.filter((d) => !i.includes(d))), console.log("In fr but not in en", i.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in sr", n.filter((d) => !a.includes(d))), console.log("In sr but not in en", a.filter((d) => !n.includes(d))), console.log(), console.log("In en but not in tr", n.filter((d) => !s.includes(d))), console.log("In tr but not in en", s.filter((d) => !n.includes(d))), console.log();
13705
13707
  },
13706
13708
  base64ImageToBlob(n) {
13707
13709
  const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
@@ -13735,8 +13737,8 @@ const An = {
13735
13737
  cropCardScan(n, e) {
13736
13738
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
13737
13739
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
13738
- const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, d = a;
13739
- r.width = p, r.height = d, o.drawImage(t, s, u, i, a, 0, 0, p, d);
13740
+ const i = t.width, a = t.width / 1.65, s = 0, d = t.height / 2 - a / 2, p = i, u = a;
13741
+ r.width = p, r.height = u, o.drawImage(t, s, d, i, a, 0, 0, p, u);
13740
13742
  const f = r.toDataURL();
13741
13743
  return e(f), f;
13742
13744
  };
@@ -13762,7 +13764,7 @@ const An = {
13762
13764
  },
13763
13765
  async decryptAES(n, e, t) {
13764
13766
  try {
13765
- const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
13767
+ const r = (d) => Uint8Array.from(atob(d), (p) => p.charCodeAt(0));
13766
13768
  t = t.replace(/ /g, "+");
13767
13769
  const o = new TextEncoder(), i = new TextDecoder();
13768
13770
  n = o.encode(n), e = o.encode(e), t = r(t, storage);
@@ -13812,11 +13814,11 @@ const An = {
13812
13814
  localStorage.setItem("pkce_code_verifier", r);
13813
13815
  let o = await zt.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
13814
13816
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
13815
- let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256", u = this, p;
13816
- window.addEventListener("message", async (d) => {
13817
- if (!this.allowedOrigins.includes(d.origin))
13817
+ let s = i + "?response_type=code&client_id=" + encodeURIComponent(n.clientID) + "&state=" + encodeURIComponent(t) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(a) + "&code_challenge=" + encodeURIComponent(o) + "&code_challenge_method=S256", d = this, p;
13818
+ window.addEventListener("message", async (u) => {
13819
+ if (!this.allowedOrigins.includes(u.origin))
13818
13820
  return console.log("Origin is not allowed!");
13819
- d.data.type === "okta" && (p = d.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13821
+ u.data.type === "okta" && (p = u.data.code, await d.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13820
13822
  }, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
13821
13823
  },
13822
13824
  async handleOktaRedirect() {
@@ -13856,10 +13858,10 @@ function Aa(n, e, t) {
13856
13858
  return (e + t) * 3 / 4 - t;
13857
13859
  }
13858
13860
  function Ra(n) {
13859
- var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
13860
- for (u = 0; u < s; u += 4)
13861
- e = je[n.charCodeAt(u)] << 18 | je[n.charCodeAt(u + 1)] << 12 | je[n.charCodeAt(u + 2)] << 6 | je[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
13862
- return o === 2 && (e = je[n.charCodeAt(u)] << 2 | je[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(u)] << 10 | je[n.charCodeAt(u + 1)] << 4 | je[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
13861
+ var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, d;
13862
+ for (d = 0; d < s; d += 4)
13863
+ e = je[n.charCodeAt(d)] << 18 | je[n.charCodeAt(d + 1)] << 12 | je[n.charCodeAt(d + 2)] << 6 | je[n.charCodeAt(d + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
13864
+ return o === 2 && (e = je[n.charCodeAt(d)] << 2 | je[n.charCodeAt(d + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(d)] << 10 | je[n.charCodeAt(d + 1)] << 4 | je[n.charCodeAt(d + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
13863
13865
  }
13864
13866
  function Pa(n) {
13865
13867
  return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
@@ -13881,23 +13883,23 @@ function Na(n) {
13881
13883
  var ir = {};
13882
13884
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13883
13885
  ir.read = function(n, e, t, r, o) {
13884
- var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, d = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
13885
- for (f += _, i = k & (1 << -d) - 1, k >>= -d, d += s; d > 0; i = i * 256 + n[e + f], f += _, d -= 8)
13886
+ var i, a, s = o * 8 - r - 1, d = (1 << s) - 1, p = d >> 1, u = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
13887
+ for (f += _, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + f], f += _, u -= 8)
13886
13888
  ;
13887
- for (a = i & (1 << -d) - 1, i >>= -d, d += r; d > 0; a = a * 256 + n[e + f], f += _, d -= 8)
13889
+ for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += _, u -= 8)
13888
13890
  ;
13889
13891
  if (i === 0)
13890
13892
  i = 1 - p;
13891
13893
  else {
13892
- if (i === u)
13894
+ if (i === d)
13893
13895
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
13894
13896
  a = a + Math.pow(2, r), i = i - p;
13895
13897
  }
13896
13898
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
13897
13899
  };
13898
13900
  ir.write = function(n, e, t, r, o, i) {
13899
- 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;
13900
- 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)
13901
+ var a, s, d, p = i * 8 - o - 1, u = (1 << p) - 1, f = u >> 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;
13902
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = u) : (a = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -a)) < 1 && (a--, d *= 2), a + f >= 1 ? e += _ / d : e += _ * Math.pow(2, 1 - f), e * d >= 2 && (a++, d /= 2), a + f >= u ? (s = 0, a = u) : a + f >= 1 ? (s = (e * d - 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)
13901
13903
  ;
13902
13904
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
13903
13905
  ;
@@ -13911,14 +13913,14 @@ ir.write = function(n, e, t, r, o, i) {
13911
13913
  */
13912
13914
  (function(n) {
13913
13915
  const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
13914
- n.Buffer = d, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
13916
+ n.Buffer = u, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
13915
13917
  const o = 2147483647;
13916
13918
  n.kMaxLength = o;
13917
13919
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
13918
- d.TYPED_ARRAY_SUPPORT = u(), !d.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13920
+ u.TYPED_ARRAY_SUPPORT = d(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13919
13921
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
13920
13922
  );
13921
- function u() {
13923
+ function d() {
13922
13924
  try {
13923
13925
  const h = new i(1), c = { foo: function() {
13924
13926
  return 42;
@@ -13928,16 +13930,16 @@ ir.write = function(n, e, t, r, o, i) {
13928
13930
  return !1;
13929
13931
  }
13930
13932
  }
13931
- Object.defineProperty(d.prototype, "parent", {
13933
+ Object.defineProperty(u.prototype, "parent", {
13932
13934
  enumerable: !0,
13933
13935
  get: function() {
13934
- if (d.isBuffer(this))
13936
+ if (u.isBuffer(this))
13935
13937
  return this.buffer;
13936
13938
  }
13937
- }), Object.defineProperty(d.prototype, "offset", {
13939
+ }), Object.defineProperty(u.prototype, "offset", {
13938
13940
  enumerable: !0,
13939
13941
  get: function() {
13940
- if (d.isBuffer(this))
13942
+ if (u.isBuffer(this))
13941
13943
  return this.byteOffset;
13942
13944
  }
13943
13945
  });
@@ -13945,9 +13947,9 @@ ir.write = function(n, e, t, r, o, i) {
13945
13947
  if (h > o)
13946
13948
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
13947
13949
  const c = new i(h);
13948
- return Object.setPrototypeOf(c, d.prototype), c;
13950
+ return Object.setPrototypeOf(c, u.prototype), c;
13949
13951
  }
13950
- function d(h, c, l) {
13952
+ function u(h, c, l) {
13951
13953
  if (typeof h == "number") {
13952
13954
  if (typeof c == "string")
13953
13955
  throw new TypeError(
@@ -13957,7 +13959,7 @@ ir.write = function(n, e, t, r, o, i) {
13957
13959
  }
13958
13960
  return f(h, c, l);
13959
13961
  }
13960
- d.poolSize = 8192;
13962
+ u.poolSize = 8192;
13961
13963
  function f(h, c, l) {
13962
13964
  if (typeof h == "string")
13963
13965
  return N(h, c);
@@ -13975,19 +13977,19 @@ ir.write = function(n, e, t, r, o, i) {
13975
13977
  );
13976
13978
  const m = h.valueOf && h.valueOf();
13977
13979
  if (m != null && m !== h)
13978
- return d.from(m, c, l);
13980
+ return u.from(m, c, l);
13979
13981
  const v = $(h);
13980
13982
  if (v)
13981
13983
  return v;
13982
13984
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
13983
- return d.from(h[Symbol.toPrimitive]("string"), c, l);
13985
+ return u.from(h[Symbol.toPrimitive]("string"), c, l);
13984
13986
  throw new TypeError(
13985
13987
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
13986
13988
  );
13987
13989
  }
13988
- d.from = function(h, c, l) {
13990
+ u.from = function(h, c, l) {
13989
13991
  return f(h, c, l);
13990
- }, Object.setPrototypeOf(d.prototype, i.prototype), Object.setPrototypeOf(d, i);
13992
+ }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
13991
13993
  function _(h) {
13992
13994
  if (typeof h != "number")
13993
13995
  throw new TypeError('"size" argument must be of type number');
@@ -13997,19 +13999,19 @@ ir.write = function(n, e, t, r, o, i) {
13997
13999
  function k(h, c, l) {
13998
14000
  return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof l == "string" ? p(h).fill(c, l) : p(h).fill(c) : p(h);
13999
14001
  }
14000
- d.alloc = function(h, c, l) {
14002
+ u.alloc = function(h, c, l) {
14001
14003
  return k(h, c, l);
14002
14004
  };
14003
14005
  function E(h) {
14004
14006
  return _(h), p(h < 0 ? 0 : Ae(h) | 0);
14005
14007
  }
14006
- d.allocUnsafe = function(h) {
14008
+ u.allocUnsafe = function(h) {
14007
14009
  return E(h);
14008
- }, d.allocUnsafeSlow = function(h) {
14010
+ }, u.allocUnsafeSlow = function(h) {
14009
14011
  return E(h);
14010
14012
  };
14011
14013
  function N(h, c) {
14012
- if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
14014
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
14013
14015
  throw new TypeError("Unknown encoding: " + c);
14014
14016
  const l = Ve(h, c) | 0;
14015
14017
  let m = p(l);
@@ -14035,10 +14037,10 @@ ir.write = function(n, e, t, r, o, i) {
14035
14037
  if (h.byteLength < c + (l || 0))
14036
14038
  throw new RangeError('"length" is outside of buffer bounds');
14037
14039
  let m;
14038
- return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m, d.prototype), m;
14040
+ return c === void 0 && l === void 0 ? m = new i(h) : l === void 0 ? m = new i(h, c) : m = new i(h, c, l), Object.setPrototypeOf(m, u.prototype), m;
14039
14041
  }
14040
14042
  function $(h) {
14041
- if (d.isBuffer(h)) {
14043
+ if (u.isBuffer(h)) {
14042
14044
  const c = Ae(h.length) | 0, l = p(c);
14043
14045
  return l.length === 0 || h.copy(l, 0, 0, c), l;
14044
14046
  }
@@ -14053,12 +14055,12 @@ ir.write = function(n, e, t, r, o, i) {
14053
14055
  return h | 0;
14054
14056
  }
14055
14057
  function xe(h) {
14056
- return +h != h && (h = 0), d.alloc(+h);
14058
+ return +h != h && (h = 0), u.alloc(+h);
14057
14059
  }
14058
- d.isBuffer = function(c) {
14059
- return c != null && c._isBuffer === !0 && c !== d.prototype;
14060
- }, d.compare = function(c, l) {
14061
- if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), $e(l, i) && (l = d.from(l, l.offset, l.byteLength)), !d.isBuffer(c) || !d.isBuffer(l))
14060
+ u.isBuffer = function(c) {
14061
+ return c != null && c._isBuffer === !0 && c !== u.prototype;
14062
+ }, u.compare = function(c, l) {
14063
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), $e(l, i) && (l = u.from(l, l.offset, l.byteLength)), !u.isBuffer(c) || !u.isBuffer(l))
14062
14064
  throw new TypeError(
14063
14065
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
14064
14066
  );
@@ -14071,7 +14073,7 @@ ir.write = function(n, e, t, r, o, i) {
14071
14073
  break;
14072
14074
  }
14073
14075
  return m < v ? -1 : v < m ? 1 : 0;
14074
- }, d.isEncoding = function(c) {
14076
+ }, u.isEncoding = function(c) {
14075
14077
  switch (String(c).toLowerCase()) {
14076
14078
  case "hex":
14077
14079
  case "utf8":
@@ -14088,26 +14090,26 @@ ir.write = function(n, e, t, r, o, i) {
14088
14090
  default:
14089
14091
  return !1;
14090
14092
  }
14091
- }, d.concat = function(c, l) {
14093
+ }, u.concat = function(c, l) {
14092
14094
  if (!Array.isArray(c))
14093
14095
  throw new TypeError('"list" argument must be an Array of Buffers');
14094
14096
  if (c.length === 0)
14095
- return d.alloc(0);
14097
+ return u.alloc(0);
14096
14098
  let m;
14097
14099
  if (l === void 0)
14098
14100
  for (l = 0, m = 0; m < c.length; ++m)
14099
14101
  l += c[m].length;
14100
- const v = d.allocUnsafe(l);
14102
+ const v = u.allocUnsafe(l);
14101
14103
  let w = 0;
14102
14104
  for (m = 0; m < c.length; ++m) {
14103
14105
  let C = c[m];
14104
14106
  if ($e(C, i))
14105
- w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
14107
+ w + C.length > v.length ? (u.isBuffer(C) || (C = u.from(C)), C.copy(v, w)) : i.prototype.set.call(
14106
14108
  v,
14107
14109
  C,
14108
14110
  w
14109
14111
  );
14110
- else if (d.isBuffer(C))
14112
+ else if (u.isBuffer(C))
14111
14113
  C.copy(v, w);
14112
14114
  else
14113
14115
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -14116,7 +14118,7 @@ ir.write = function(n, e, t, r, o, i) {
14116
14118
  return v;
14117
14119
  };
14118
14120
  function Ve(h, c) {
14119
- if (d.isBuffer(h))
14121
+ if (u.isBuffer(h))
14120
14122
  return h.length;
14121
14123
  if (a.isView(h) || $e(h, a))
14122
14124
  return h.byteLength;
@@ -14152,7 +14154,7 @@ ir.write = function(n, e, t, r, o, i) {
14152
14154
  c = ("" + c).toLowerCase(), v = !0;
14153
14155
  }
14154
14156
  }
14155
- d.byteLength = Ve;
14157
+ u.byteLength = Ve;
14156
14158
  function Ct(h, c, l) {
14157
14159
  let m = !1;
14158
14160
  if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((l === void 0 || l > this.length) && (l = this.length), l <= 0) || (l >>>= 0, c >>>= 0, l <= c))
@@ -14182,45 +14184,45 @@ ir.write = function(n, e, t, r, o, i) {
14182
14184
  h = (h + "").toLowerCase(), m = !0;
14183
14185
  }
14184
14186
  }
14185
- d.prototype._isBuffer = !0;
14187
+ u.prototype._isBuffer = !0;
14186
14188
  function ce(h, c, l) {
14187
14189
  const m = h[c];
14188
14190
  h[c] = h[l], h[l] = m;
14189
14191
  }
14190
- d.prototype.swap16 = function() {
14192
+ u.prototype.swap16 = function() {
14191
14193
  const c = this.length;
14192
14194
  if (c % 2 !== 0)
14193
14195
  throw new RangeError("Buffer size must be a multiple of 16-bits");
14194
14196
  for (let l = 0; l < c; l += 2)
14195
14197
  ce(this, l, l + 1);
14196
14198
  return this;
14197
- }, d.prototype.swap32 = function() {
14199
+ }, u.prototype.swap32 = function() {
14198
14200
  const c = this.length;
14199
14201
  if (c % 4 !== 0)
14200
14202
  throw new RangeError("Buffer size must be a multiple of 32-bits");
14201
14203
  for (let l = 0; l < c; l += 4)
14202
14204
  ce(this, l, l + 3), ce(this, l + 1, l + 2);
14203
14205
  return this;
14204
- }, d.prototype.swap64 = function() {
14206
+ }, u.prototype.swap64 = function() {
14205
14207
  const c = this.length;
14206
14208
  if (c % 8 !== 0)
14207
14209
  throw new RangeError("Buffer size must be a multiple of 64-bits");
14208
14210
  for (let l = 0; l < c; l += 8)
14209
14211
  ce(this, l, l + 7), ce(this, l + 1, l + 6), ce(this, l + 2, l + 5), ce(this, l + 3, l + 4);
14210
14212
  return this;
14211
- }, d.prototype.toString = function() {
14213
+ }, u.prototype.toString = function() {
14212
14214
  const c = this.length;
14213
14215
  return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
14214
- }, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(c) {
14215
- if (!d.isBuffer(c))
14216
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
14217
+ if (!u.isBuffer(c))
14216
14218
  throw new TypeError("Argument must be a Buffer");
14217
- return this === c ? !0 : d.compare(this, c) === 0;
14218
- }, d.prototype.inspect = function() {
14219
+ return this === c ? !0 : u.compare(this, c) === 0;
14220
+ }, u.prototype.inspect = function() {
14219
14221
  let c = "";
14220
14222
  const l = n.INSPECT_MAX_BYTES;
14221
14223
  return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
14222
- }, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
14223
- if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
14224
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, l, m, v, w) {
14225
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
14224
14226
  throw new TypeError(
14225
14227
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
14226
14228
  );
@@ -14235,10 +14237,10 @@ ir.write = function(n, e, t, r, o, i) {
14235
14237
  if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
14236
14238
  return 0;
14237
14239
  let C = w - v, Y = m - l;
14238
- const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
14240
+ const le = Math.min(C, Y), ae = this.slice(v, w), de = c.slice(l, m);
14239
14241
  for (let re = 0; re < le; ++re)
14240
- if (ae[re] !== ue[re]) {
14241
- C = ae[re], Y = ue[re];
14242
+ if (ae[re] !== de[re]) {
14243
+ C = ae[re], Y = de[re];
14242
14244
  break;
14243
14245
  }
14244
14246
  return C < Y ? -1 : Y < C ? 1 : 0;
@@ -14255,7 +14257,7 @@ ir.write = function(n, e, t, r, o, i) {
14255
14257
  l = 0;
14256
14258
  else
14257
14259
  return -1;
14258
- if (typeof c == "string" && (c = d.from(c, m)), d.isBuffer(c))
14260
+ if (typeof c == "string" && (c = u.from(c, m)), u.isBuffer(c))
14259
14261
  return c.length === 0 ? -1 : sr(h, c, l, m, v);
14260
14262
  if (typeof c == "number")
14261
14263
  return c = c & 255, typeof i.prototype.indexOf == "function" ? v ? i.prototype.indexOf.call(h, c, l) : i.prototype.lastIndexOf.call(h, c, l) : sr(h, [c], l, m, v);
@@ -14268,36 +14270,36 @@ ir.write = function(n, e, t, r, o, i) {
14268
14270
  return -1;
14269
14271
  w = 2, C /= 2, Y /= 2, l /= 2;
14270
14272
  }
14271
- function le(ue, re) {
14272
- return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
14273
+ function le(de, re) {
14274
+ return w === 1 ? de[re] : de.readUInt16BE(re * w);
14273
14275
  }
14274
14276
  let ae;
14275
14277
  if (v) {
14276
- let ue = -1;
14278
+ let de = -1;
14277
14279
  for (ae = l; ae < C; ae++)
14278
- if (le(h, ae) === le(c, ue === -1 ? 0 : ae - ue)) {
14279
- if (ue === -1 && (ue = ae), ae - ue + 1 === Y)
14280
- return ue * w;
14280
+ if (le(h, ae) === le(c, de === -1 ? 0 : ae - de)) {
14281
+ if (de === -1 && (de = ae), ae - de + 1 === Y)
14282
+ return de * w;
14281
14283
  } else
14282
- ue !== -1 && (ae -= ae - ue), ue = -1;
14284
+ de !== -1 && (ae -= ae - de), de = -1;
14283
14285
  } else
14284
14286
  for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
14285
- let ue = !0;
14287
+ let de = !0;
14286
14288
  for (let re = 0; re < Y; re++)
14287
14289
  if (le(h, ae + re) !== le(c, re)) {
14288
- ue = !1;
14290
+ de = !1;
14289
14291
  break;
14290
14292
  }
14291
- if (ue)
14293
+ if (de)
14292
14294
  return ae;
14293
14295
  }
14294
14296
  return -1;
14295
14297
  }
14296
- d.prototype.includes = function(c, l, m) {
14298
+ u.prototype.includes = function(c, l, m) {
14297
14299
  return this.indexOf(c, l, m) !== -1;
14298
- }, d.prototype.indexOf = function(c, l, m) {
14300
+ }, u.prototype.indexOf = function(c, l, m) {
14299
14301
  return ar(this, c, l, m, !0);
14300
- }, d.prototype.lastIndexOf = function(c, l, m) {
14302
+ }, u.prototype.lastIndexOf = function(c, l, m) {
14301
14303
  return ar(this, c, l, m, !1);
14302
14304
  };
14303
14305
  function Io(h, c, l, m) {
@@ -14327,7 +14329,7 @@ ir.write = function(n, e, t, r, o, i) {
14327
14329
  function Po(h, c, l, m) {
14328
14330
  return an(qo(c, h.length - l), h, l, m);
14329
14331
  }
14330
- d.prototype.write = function(c, l, m, v) {
14332
+ u.prototype.write = function(c, l, m, v) {
14331
14333
  if (l === void 0)
14332
14334
  v = "utf8", m = this.length, l = 0;
14333
14335
  else if (m === void 0 && typeof l == "string")
@@ -14366,7 +14368,7 @@ ir.write = function(n, e, t, r, o, i) {
14366
14368
  throw new TypeError("Unknown encoding: " + v);
14367
14369
  v = ("" + v).toLowerCase(), C = !0;
14368
14370
  }
14369
- }, d.prototype.toJSON = function() {
14371
+ }, u.prototype.toJSON = function() {
14370
14372
  return {
14371
14373
  type: "Buffer",
14372
14374
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -14383,7 +14385,7 @@ ir.write = function(n, e, t, r, o, i) {
14383
14385
  const w = h[v];
14384
14386
  let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
14385
14387
  if (v + Y <= l) {
14386
- let le, ae, ue, re;
14388
+ let le, ae, de, re;
14387
14389
  switch (Y) {
14388
14390
  case 1:
14389
14391
  w < 128 && (C = w);
@@ -14395,7 +14397,7 @@ ir.write = function(n, e, t, r, o, i) {
14395
14397
  le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (re = (w & 15) << 12 | (le & 63) << 6 | ae & 63, re > 2047 && (re < 55296 || re > 57343) && (C = re));
14396
14398
  break;
14397
14399
  case 4:
14398
- le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | ue & 63, re > 65535 && re < 1114112 && (C = re));
14400
+ le = h[v + 1], ae = h[v + 2], de = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (de & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | de & 63, re > 65535 && re < 1114112 && (C = re));
14399
14401
  }
14400
14402
  }
14401
14403
  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;
@@ -14444,11 +14446,11 @@ ir.write = function(n, e, t, r, o, i) {
14444
14446
  v += String.fromCharCode(m[w] + m[w + 1] * 256);
14445
14447
  return v;
14446
14448
  }
14447
- d.prototype.slice = function(c, l) {
14449
+ u.prototype.slice = function(c, l) {
14448
14450
  const m = this.length;
14449
14451
  c = ~~c, l = l === void 0 ? m : ~~l, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), l < 0 ? (l += m, l < 0 && (l = 0)) : l > m && (l = m), l < c && (l = c);
14450
14452
  const v = this.subarray(c, l);
14451
- return Object.setPrototypeOf(v, d.prototype), v;
14453
+ return Object.setPrototypeOf(v, u.prototype), v;
14452
14454
  };
14453
14455
  function ge(h, c, l) {
14454
14456
  if (h % 1 !== 0 || h < 0)
@@ -14456,97 +14458,97 @@ ir.write = function(n, e, t, r, o, i) {
14456
14458
  if (h + c > l)
14457
14459
  throw new RangeError("Trying to access beyond buffer length");
14458
14460
  }
14459
- d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
14461
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(c, l, m) {
14460
14462
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14461
14463
  let v = this[c], w = 1, C = 0;
14462
14464
  for (; ++C < l && (w *= 256); )
14463
14465
  v += this[c + C] * w;
14464
14466
  return v;
14465
- }, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
14467
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, l, m) {
14466
14468
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14467
14469
  let v = this[c + --l], w = 1;
14468
14470
  for (; l > 0 && (w *= 256); )
14469
14471
  v += this[c + --l] * w;
14470
14472
  return v;
14471
- }, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
14473
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, l) {
14472
14474
  return c = c >>> 0, l || ge(c, 1, this.length), this[c];
14473
- }, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
14475
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, l) {
14474
14476
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
14475
- }, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
14477
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, l) {
14476
14478
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
14477
- }, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
14479
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, l) {
14478
14480
  return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
14479
- }, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
14481
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, l) {
14480
14482
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
14481
- }, d.prototype.readBigUInt64LE = ut(function(c) {
14483
+ }, u.prototype.readBigUInt64LE = dt(function(c) {
14482
14484
  c = c >>> 0, Tt(c, "offset");
14483
14485
  const l = this[c], m = this[c + 7];
14484
14486
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14485
14487
  const v = l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, w = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + m * 2 ** 24;
14486
14488
  return BigInt(v) + (BigInt(w) << BigInt(32));
14487
- }), d.prototype.readBigUInt64BE = ut(function(c) {
14489
+ }), u.prototype.readBigUInt64BE = dt(function(c) {
14488
14490
  c = c >>> 0, Tt(c, "offset");
14489
14491
  const l = this[c], m = this[c + 7];
14490
14492
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14491
14493
  const v = l * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], w = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
14492
14494
  return (BigInt(v) << BigInt(32)) + BigInt(w);
14493
- }), d.prototype.readIntLE = function(c, l, m) {
14495
+ }), u.prototype.readIntLE = function(c, l, m) {
14494
14496
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14495
14497
  let v = this[c], w = 1, C = 0;
14496
14498
  for (; ++C < l && (w *= 256); )
14497
14499
  v += this[c + C] * w;
14498
14500
  return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
14499
- }, d.prototype.readIntBE = function(c, l, m) {
14501
+ }, u.prototype.readIntBE = function(c, l, m) {
14500
14502
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14501
14503
  let v = l, w = 1, C = this[c + --v];
14502
14504
  for (; v > 0 && (w *= 256); )
14503
14505
  C += this[c + --v] * w;
14504
14506
  return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
14505
- }, d.prototype.readInt8 = function(c, l) {
14507
+ }, u.prototype.readInt8 = function(c, l) {
14506
14508
  return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
14507
- }, d.prototype.readInt16LE = function(c, l) {
14509
+ }, u.prototype.readInt16LE = function(c, l) {
14508
14510
  c = c >>> 0, l || ge(c, 2, this.length);
14509
14511
  const m = this[c] | this[c + 1] << 8;
14510
14512
  return m & 32768 ? m | 4294901760 : m;
14511
- }, d.prototype.readInt16BE = function(c, l) {
14513
+ }, u.prototype.readInt16BE = function(c, l) {
14512
14514
  c = c >>> 0, l || ge(c, 2, this.length);
14513
14515
  const m = this[c + 1] | this[c] << 8;
14514
14516
  return m & 32768 ? m | 4294901760 : m;
14515
- }, d.prototype.readInt32LE = function(c, l) {
14517
+ }, u.prototype.readInt32LE = function(c, l) {
14516
14518
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
14517
- }, d.prototype.readInt32BE = function(c, l) {
14519
+ }, u.prototype.readInt32BE = function(c, l) {
14518
14520
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
14519
- }, d.prototype.readBigInt64LE = ut(function(c) {
14521
+ }, u.prototype.readBigInt64LE = dt(function(c) {
14520
14522
  c = c >>> 0, Tt(c, "offset");
14521
14523
  const l = this[c], m = this[c + 7];
14522
14524
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14523
14525
  const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
14524
14526
  return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
14525
- }), d.prototype.readBigInt64BE = ut(function(c) {
14527
+ }), u.prototype.readBigInt64BE = dt(function(c) {
14526
14528
  c = c >>> 0, Tt(c, "offset");
14527
14529
  const l = this[c], m = this[c + 7];
14528
14530
  (l === void 0 || m === void 0) && jt(c, this.length - 8);
14529
14531
  const v = (l << 24) + // Overflow
14530
14532
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
14531
14533
  return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
14532
- }), d.prototype.readFloatLE = function(c, l) {
14534
+ }), u.prototype.readFloatLE = function(c, l) {
14533
14535
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
14534
- }, d.prototype.readFloatBE = function(c, l) {
14536
+ }, u.prototype.readFloatBE = function(c, l) {
14535
14537
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
14536
- }, d.prototype.readDoubleLE = function(c, l) {
14538
+ }, u.prototype.readDoubleLE = function(c, l) {
14537
14539
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
14538
- }, d.prototype.readDoubleBE = function(c, l) {
14540
+ }, u.prototype.readDoubleBE = function(c, l) {
14539
14541
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
14540
14542
  };
14541
14543
  function Re(h, c, l, m, v, w) {
14542
- if (!d.isBuffer(h))
14544
+ if (!u.isBuffer(h))
14543
14545
  throw new TypeError('"buffer" argument must be a Buffer instance');
14544
14546
  if (c > v || c < w)
14545
14547
  throw new RangeError('"value" argument is out of bounds');
14546
14548
  if (l + m > h.length)
14547
14549
  throw new RangeError("Index out of range");
14548
14550
  }
14549
- d.prototype.writeUintLE = d.prototype.writeUIntLE = function(c, l, m, v) {
14551
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, l, m, v) {
14550
14552
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14551
14553
  const Y = Math.pow(2, 8 * m) - 1;
14552
14554
  Re(this, c, l, m, Y, 0);
@@ -14555,7 +14557,7 @@ ir.write = function(n, e, t, r, o, i) {
14555
14557
  for (this[l] = c & 255; ++C < m && (w *= 256); )
14556
14558
  this[l + C] = c / w & 255;
14557
14559
  return l + m;
14558
- }, d.prototype.writeUintBE = d.prototype.writeUIntBE = function(c, l, m, v) {
14560
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, l, m, v) {
14559
14561
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14560
14562
  const Y = Math.pow(2, 8 * m) - 1;
14561
14563
  Re(this, c, l, m, Y, 0);
@@ -14564,36 +14566,36 @@ ir.write = function(n, e, t, r, o, i) {
14564
14566
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14565
14567
  this[l + w] = c / C & 255;
14566
14568
  return l + m;
14567
- }, d.prototype.writeUint8 = d.prototype.writeUInt8 = function(c, l, m) {
14569
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, l, m) {
14568
14570
  return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
14569
- }, d.prototype.writeUint16LE = d.prototype.writeUInt16LE = function(c, l, m) {
14571
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, l, m) {
14570
14572
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
14571
- }, d.prototype.writeUint16BE = d.prototype.writeUInt16BE = function(c, l, m) {
14573
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, l, m) {
14572
14574
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 65535, 0), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
14573
- }, d.prototype.writeUint32LE = d.prototype.writeUInt32LE = function(c, l, m) {
14575
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, l, m) {
14574
14576
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l + 3] = c >>> 24, this[l + 2] = c >>> 16, this[l + 1] = c >>> 8, this[l] = c & 255, l + 4;
14575
- }, d.prototype.writeUint32BE = d.prototype.writeUInt32BE = function(c, l, m) {
14577
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, l, m) {
14576
14578
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 4294967295, 0), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
14577
14579
  };
14578
- function ur(h, c, l, m, v) {
14580
+ function dr(h, c, l, m, v) {
14579
14581
  gr(c, m, v, h, l, 7);
14580
14582
  let w = Number(c & BigInt(4294967295));
14581
14583
  h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
14582
14584
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14583
14585
  return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
14584
14586
  }
14585
- function dr(h, c, l, m, v) {
14587
+ function ur(h, c, l, m, v) {
14586
14588
  gr(c, m, v, h, l, 7);
14587
14589
  let w = Number(c & BigInt(4294967295));
14588
14590
  h[l + 7] = w, w = w >> 8, h[l + 6] = w, w = w >> 8, h[l + 5] = w, w = w >> 8, h[l + 4] = w;
14589
14591
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14590
14592
  return h[l + 3] = C, C = C >> 8, h[l + 2] = C, C = C >> 8, h[l + 1] = C, C = C >> 8, h[l] = C, l + 8;
14591
14593
  }
14592
- d.prototype.writeBigUInt64LE = ut(function(c, l = 0) {
14593
- return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14594
- }), d.prototype.writeBigUInt64BE = ut(function(c, l = 0) {
14594
+ u.prototype.writeBigUInt64LE = dt(function(c, l = 0) {
14595
14595
  return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14596
- }), d.prototype.writeIntLE = function(c, l, m, v) {
14596
+ }), u.prototype.writeBigUInt64BE = dt(function(c, l = 0) {
14597
+ return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14598
+ }), u.prototype.writeIntLE = function(c, l, m, v) {
14597
14599
  if (c = +c, l = l >>> 0, !v) {
14598
14600
  const le = Math.pow(2, 8 * m - 1);
14599
14601
  Re(this, c, l, m, le - 1, -le);
@@ -14602,7 +14604,7 @@ ir.write = function(n, e, t, r, o, i) {
14602
14604
  for (this[l] = c & 255; ++w < m && (C *= 256); )
14603
14605
  c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14604
14606
  return l + m;
14605
- }, d.prototype.writeIntBE = function(c, l, m, v) {
14607
+ }, u.prototype.writeIntBE = function(c, l, m, v) {
14606
14608
  if (c = +c, l = l >>> 0, !v) {
14607
14609
  const le = Math.pow(2, 8 * m - 1);
14608
14610
  Re(this, c, l, m, le - 1, -le);
@@ -14611,20 +14613,20 @@ ir.write = function(n, e, t, r, o, i) {
14611
14613
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14612
14614
  c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14613
14615
  return l + m;
14614
- }, d.prototype.writeInt8 = function(c, l, m) {
14616
+ }, u.prototype.writeInt8 = function(c, l, m) {
14615
14617
  return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[l] = c & 255, l + 1;
14616
- }, d.prototype.writeInt16LE = function(c, l, m) {
14618
+ }, u.prototype.writeInt16LE = function(c, l, m) {
14617
14619
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c & 255, this[l + 1] = c >>> 8, l + 2;
14618
- }, d.prototype.writeInt16BE = function(c, l, m) {
14620
+ }, u.prototype.writeInt16BE = function(c, l, m) {
14619
14621
  return c = +c, l = l >>> 0, m || Re(this, c, l, 2, 32767, -32768), this[l] = c >>> 8, this[l + 1] = c & 255, l + 2;
14620
- }, d.prototype.writeInt32LE = function(c, l, m) {
14622
+ }, u.prototype.writeInt32LE = function(c, l, m) {
14621
14623
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), this[l] = c & 255, this[l + 1] = c >>> 8, this[l + 2] = c >>> 16, this[l + 3] = c >>> 24, l + 4;
14622
- }, d.prototype.writeInt32BE = function(c, l, m) {
14624
+ }, u.prototype.writeInt32BE = function(c, l, m) {
14623
14625
  return c = +c, l = l >>> 0, m || Re(this, c, l, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[l] = c >>> 24, this[l + 1] = c >>> 16, this[l + 2] = c >>> 8, this[l + 3] = c & 255, l + 4;
14624
- }, d.prototype.writeBigInt64LE = ut(function(c, l = 0) {
14625
- return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14626
- }), d.prototype.writeBigInt64BE = ut(function(c, l = 0) {
14626
+ }, u.prototype.writeBigInt64LE = dt(function(c, l = 0) {
14627
14627
  return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14628
+ }), u.prototype.writeBigInt64BE = dt(function(c, l = 0) {
14629
+ return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14628
14630
  });
14629
14631
  function pr(h, c, l, m, v, w) {
14630
14632
  if (l + m > h.length)
@@ -14635,20 +14637,20 @@ ir.write = function(n, e, t, r, o, i) {
14635
14637
  function hr(h, c, l, m, v) {
14636
14638
  return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
14637
14639
  }
14638
- d.prototype.writeFloatLE = function(c, l, m) {
14640
+ u.prototype.writeFloatLE = function(c, l, m) {
14639
14641
  return hr(this, c, l, !0, m);
14640
- }, d.prototype.writeFloatBE = function(c, l, m) {
14642
+ }, u.prototype.writeFloatBE = function(c, l, m) {
14641
14643
  return hr(this, c, l, !1, m);
14642
14644
  };
14643
14645
  function mr(h, c, l, m, v) {
14644
14646
  return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
14645
14647
  }
14646
- d.prototype.writeDoubleLE = function(c, l, m) {
14648
+ u.prototype.writeDoubleLE = function(c, l, m) {
14647
14649
  return mr(this, c, l, !0, m);
14648
- }, d.prototype.writeDoubleBE = function(c, l, m) {
14650
+ }, u.prototype.writeDoubleBE = function(c, l, m) {
14649
14651
  return mr(this, c, l, !1, m);
14650
- }, d.prototype.copy = function(c, l, m, v) {
14651
- if (!d.isBuffer(c))
14652
+ }, u.prototype.copy = function(c, l, m, v) {
14653
+ if (!u.isBuffer(c))
14652
14654
  throw new TypeError("argument should be a Buffer");
14653
14655
  if (m || (m = 0), !v && v !== 0 && (v = this.length), l >= c.length && (l = c.length), l || (l = 0), v > 0 && v < m && (v = m), v === m || c.length === 0 || this.length === 0)
14654
14656
  return 0;
@@ -14665,11 +14667,11 @@ ir.write = function(n, e, t, r, o, i) {
14665
14667
  this.subarray(m, v),
14666
14668
  l
14667
14669
  ), w;
14668
- }, d.prototype.fill = function(c, l, m, v) {
14670
+ }, u.prototype.fill = function(c, l, m, v) {
14669
14671
  if (typeof c == "string") {
14670
14672
  if (typeof l == "string" ? (v = l, l = 0, m = this.length) : typeof m == "string" && (v = m, m = this.length), v !== void 0 && typeof v != "string")
14671
14673
  throw new TypeError("encoding must be a string");
14672
- if (typeof v == "string" && !d.isEncoding(v))
14674
+ if (typeof v == "string" && !u.isEncoding(v))
14673
14675
  throw new TypeError("Unknown encoding: " + v);
14674
14676
  if (c.length === 1) {
14675
14677
  const C = c.charCodeAt(0);
@@ -14687,7 +14689,7 @@ ir.write = function(n, e, t, r, o, i) {
14687
14689
  for (w = l; w < m; ++w)
14688
14690
  this[w] = c;
14689
14691
  else {
14690
- const C = d.isBuffer(c) ? c : d.from(c, v), Y = C.length;
14692
+ const C = u.isBuffer(c) ? c : u.from(c, v), Y = C.length;
14691
14693
  if (Y === 0)
14692
14694
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
14693
14695
  for (w = 0; w < m - l; ++w)
@@ -14874,7 +14876,7 @@ ir.write = function(n, e, t, r, o, i) {
14874
14876
  }
14875
14877
  return c;
14876
14878
  }();
14877
- function ut(h) {
14879
+ function dt(h) {
14878
14880
  return typeof BigInt > "u" ? jo : h;
14879
14881
  }
14880
14882
  function jo() {
@@ -15139,7 +15141,7 @@ const La = fo.Buffer, Mn = {
15139
15141
  }, ls = /* @__PURE__ */ y("img", {
15140
15142
  src: "https://cdn.tapni.co/icons/outlook.png",
15141
15143
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
15142
- }, null, -1), us = { key: 0 }, ds = {
15144
+ }, null, -1), ds = { key: 0 }, us = {
15143
15145
  key: 1,
15144
15146
  class: "button--loading-black button__loader"
15145
15147
  }, ps = /* @__PURE__ */ y("img", {
@@ -15209,7 +15211,7 @@ function Ps(n, e, t, r, o, i) {
15209
15211
  required: "",
15210
15212
  minlength: "8"
15211
15213
  }, null, 8, Qa), [
15212
- [dn, o.password]
15214
+ [un, o.password]
15213
15215
  ]),
15214
15216
  y("em", {
15215
15217
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
@@ -15258,7 +15260,7 @@ function Ps(n, e, t, r, o, i) {
15258
15260
  class: "button-center button button-90 google-button pointer"
15259
15261
  }, [
15260
15262
  ls,
15261
- n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15263
+ n.microsoftLoad ? (S(), P("span", us)) : (S(), P("span", ds, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15262
15264
  ])),
15263
15265
  n.displayMicrosoftSSOLogin ? ee("", !0) : (S(), P("a", {
15264
15266
  key: 6,
@@ -15452,10 +15454,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15452
15454
  }, cc = /* @__PURE__ */ y("img", {
15453
15455
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
15454
15456
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
15455
- }, null, -1), lc = { key: 0 }, uc = {
15457
+ }, null, -1), lc = { key: 0 }, dc = {
15456
15458
  key: 1,
15457
15459
  class: "button--loading-black button__loader"
15458
- }, dc = /* @__PURE__ */ y("img", {
15460
+ }, uc = /* @__PURE__ */ y("img", {
15459
15461
  src: "https://cdn.tapni.co/icons/mail.png",
15460
15462
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
15461
15463
  }, null, -1), pc = /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), hc = { class: "close-text center-text half-top color-black" }, mc = /* @__PURE__ */ y("br", null, null, -1), fc = {
@@ -15532,7 +15534,7 @@ function Cc(n, e, t, r, o, i) {
15532
15534
  required: "",
15533
15535
  minlength: "8"
15534
15536
  }, null, 8, Ws), [
15535
- [dn, o.password]
15537
+ [un, o.password]
15536
15538
  ]),
15537
15539
  y("em", {
15538
15540
  onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
@@ -15572,14 +15574,14 @@ function Cc(n, e, t, r, o, i) {
15572
15574
  class: "button-center button button-90 google-button pointer"
15573
15575
  }, [
15574
15576
  cc,
15575
- n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15577
+ n.facebookLoad ? (S(), P("span", dc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15576
15578
  ])) : ee("", !0),
15577
15579
  o.emailLogin ? ee("", !0) : (S(), P("a", {
15578
15580
  key: 4,
15579
15581
  onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
15580
15582
  class: "button-center button button-90 google-button pointer"
15581
15583
  }, [
15582
- dc,
15584
+ uc,
15583
15585
  y("span", null, U(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15584
15586
  ])),
15585
15587
  pc,
@@ -15886,7 +15888,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15886
15888
  }, al = {
15887
15889
  key: 1,
15888
15890
  class: "button--loading button__loader"
15889
- }, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"], ul = ["href"], dl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), pl = { class: "page-login-links" }, hl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ml = {
15891
+ }, sl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), cl = { class: "close-text center-text half-top color-black" }, ll = ["innerHTML"], dl = ["href"], ul = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), pl = { class: "page-login-links" }, hl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), ml = {
15890
15892
  class: "bold no-bottom center-text",
15891
15893
  style: { "margin-top": "63px" }
15892
15894
  }, fl = { class: "half-bottom small-top center-text color-black" }, gl = { class: "page-login-field half-top" }, _l = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px" } }, [
@@ -15940,7 +15942,7 @@ function Ll(n, e, t, r, o, i) {
15940
15942
  placeholder: n.ssoLang[this.appLanguage].password,
15941
15943
  required: ""
15942
15944
  }, null, 8, vl), [
15943
- [dn, o.password]
15945
+ [un, o.password]
15944
15946
  ]),
15945
15947
  y("em", {
15946
15948
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
@@ -15961,7 +15963,7 @@ function Ll(n, e, t, r, o, i) {
15961
15963
  placeholder: n.ssoLang[this.appLanguage].password_repeat,
15962
15964
  required: ""
15963
15965
  }, null, 8, Cl), [
15964
- [dn, o.passwordRepeat]
15966
+ [un, o.passwordRepeat]
15965
15967
  ]),
15966
15968
  y("em", {
15967
15969
  onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
@@ -16020,9 +16022,9 @@ function Ll(n, e, t, r, o, i) {
16020
16022
  }, null, 8, ll),
16021
16023
  y("a", {
16022
16024
  href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
16023
- }, " support@tapni.com", 8, ul)
16025
+ }, " support@tapni.com", 8, dl)
16024
16026
  ]),
16025
- dl,
16027
+ ul,
16026
16028
  y("div", pl, [
16027
16029
  ke(a, {
16028
16030
  class: "create float-right",
@@ -16253,29 +16255,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16253
16255
  class: "responsive-image",
16254
16256
  style: { width: "45%" }
16255
16257
  })
16256
- ], -1)), eu = [
16258
+ ], -1)), ed = [
16257
16259
  Zl
16258
- ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16260
+ ], td = { class: "bold center-text color-black half-top half-bottom" }, nd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16259
16261
  src: "https://cdn.tapni.co/icons/azure.png",
16260
16262
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16261
- }, null, -1)), ru = { key: 0 }, ou = {
16263
+ }, null, -1)), rd = { key: 0 }, od = {
16262
16264
  key: 1,
16263
16265
  class: "button--loading button__loader"
16264
- }, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16266
+ }, id = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16265
16267
  src: "https://cdn.tapni.co/icons/okta.png",
16266
16268
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16267
- }, null, -1)), au = { key: 0 }, su = {
16269
+ }, null, -1)), ad = { key: 0 }, sd = {
16268
16270
  key: 1,
16269
16271
  class: "button--loading button__loader"
16270
- }, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16272
+ }, cd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16271
16273
  src: "https://cdn.tapni.co/icons/saml.png",
16272
16274
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16273
- }, null, -1)), lu = { key: 0 }, uu = {
16275
+ }, null, -1)), ld = { key: 0 }, dd = {
16274
16276
  key: 1,
16275
16277
  class: "button--loading button__loader"
16276
16278
  };
16277
- function du(n, e, t, r, o, i) {
16278
- var a, s, u;
16279
+ function ud(n, e, t, r, o, i) {
16280
+ var a, s, d;
16279
16281
  return S(), P("form", {
16280
16282
  onSubmit: e[4] || (e[4] = Oe(() => {
16281
16283
  }, ["prevent"])),
@@ -16286,35 +16288,35 @@ function du(n, e, t, r, o, i) {
16286
16288
  onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
16287
16289
  class: "color-black pull-right pointer",
16288
16290
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16289
- }, eu),
16290
- y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16291
+ }, ed),
16292
+ y("h3", td, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16291
16293
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16292
16294
  key: 0,
16293
16295
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16294
16296
  class: "button-center button black-button button-90 google-button pointer"
16295
16297
  }, [
16296
- nu,
16297
- o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16298
+ nd,
16299
+ o.azureLoad ? (S(), P("span", od)) : (S(), P("span", rd, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16298
16300
  ])) : ee("", !0),
16299
16301
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16300
16302
  key: 1,
16301
16303
  onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
16302
16304
  class: "button-center button black-button button-90 google-button pointer"
16303
16305
  }, [
16304
- iu,
16305
- o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16306
+ id,
16307
+ o.oktaLoad ? (S(), P("span", sd)) : (S(), P("span", ad, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16306
16308
  ])) : ee("", !0),
16307
- (u = o.sso) != null && u.saml ? (S(), P("a", {
16309
+ (d = o.sso) != null && d.saml ? (S(), P("a", {
16308
16310
  key: 2,
16309
16311
  onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
16310
16312
  class: "button-center button black-button button-90 google-button pointer"
16311
16313
  }, [
16312
- cu,
16313
- o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16314
+ cd,
16315
+ o.samlLoad ? (S(), P("span", dd)) : (S(), P("span", ld, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16314
16316
  ])) : ee("", !0)
16315
16317
  ], 34);
16316
16318
  }
16317
- const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
16319
+ const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f65"]]), pd = {
16318
16320
  name: "LinkIcon",
16319
16321
  mixins: [ze],
16320
16322
  props: {
@@ -16386,8 +16388,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
16386
16388
  }
16387
16389
  },
16388
16390
  methods: {}
16389
- }, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
16390
- function _u(n, e, t, r, o, i) {
16391
+ }, hd = ["src", "alt"], md = ["src", "alt"], fd = ["src", "alt"], gd = ["src", "alt"];
16392
+ function _d(n, e, t, r, o, i) {
16391
16393
  var a, s;
16392
16394
  return S(), P("a", {
16393
16395
  class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
@@ -16408,31 +16410,31 @@ function _u(n, e, t, r, o, i) {
16408
16410
  src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
16409
16411
  class: "responsive-image",
16410
16412
  alt: t.data.text,
16411
- onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
16412
- onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
16413
- }, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16413
+ onLoad: e[0] || (e[0] = (d) => n.$emit("loaded")),
16414
+ onError: e[1] || (e[1] = (d) => n.$emit("loaded"))
16415
+ }, null, 40, hd)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16414
16416
  key: 1,
16415
16417
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
16416
16418
  class: "responsive-image",
16417
16419
  alt: t.data.text,
16418
- onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
16419
- onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
16420
- }, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16420
+ onLoad: e[2] || (e[2] = (d) => n.$emit("loaded")),
16421
+ onError: e[3] || (e[3] = (d) => n.$emit("loaded"))
16422
+ }, null, 40, md)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16421
16423
  key: 2,
16422
16424
  src: "https://cdn.tapni.co/icons/customlink.png",
16423
16425
  class: "responsive-image",
16424
16426
  alt: t.data.text,
16425
- onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
16426
- onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
16427
- }, null, 40, fu)) : (S(), P("img", {
16427
+ onLoad: e[4] || (e[4] = (d) => n.$emit("loaded")),
16428
+ onError: e[5] || (e[5] = (d) => n.$emit("loaded"))
16429
+ }, null, 40, fd)) : (S(), P("img", {
16428
16430
  key: 3,
16429
16431
  src: t.data.style.custom_icon,
16430
16432
  style: { "border-radius": "22.46%" },
16431
16433
  class: "responsive-image",
16432
16434
  alt: t.data.text,
16433
- onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
16434
- onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
16435
- }, null, 40, gu))
16435
+ onLoad: e[6] || (e[6] = (d) => n.$emit("loaded")),
16436
+ onError: e[7] || (e[7] = (d) => n.$emit("loaded"))
16437
+ }, null, 40, gd))
16436
16438
  ], 6),
16437
16439
  y("span", {
16438
16440
  class: "link-text link-drag color-black",
@@ -16440,17 +16442,17 @@ function _u(n, e, t, r, o, i) {
16440
16442
  }, U(i.linkText), 5)
16441
16443
  ], 6);
16442
16444
  }
16443
- const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16445
+ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16444
16446
  ANDROID_VERSION: "5.6",
16445
16447
  IOS_VERSION: "5.6",
16446
16448
  WEB_VERSION: "5.6.0",
16447
16449
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
16448
16450
  METAPIXEL_ID: "1203678696914368",
16449
16451
  GOOGLE_ANALYTICS_ID: ""
16450
- }, ku = {
16452
+ }, kd = {
16451
16453
  name: "Language",
16452
16454
  mixins: [ze],
16453
- components: { LinkIcon: vu },
16455
+ components: { LinkIcon: vd },
16454
16456
  data() {
16455
16457
  return {
16456
16458
  toggle: !1
@@ -16461,7 +16463,7 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16461
16463
  this.toggle = !1;
16462
16464
  });
16463
16465
  let n = this.isNative ? await pn.getLanguageCode() : zt.getFirstBrowserLanguage();
16464
- n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16466
+ n && yd.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16465
16467
  },
16466
16468
  beforeDestroy() {
16467
16469
  z._events.toggleSSOLanguageModal.pop();
@@ -16480,16 +16482,16 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16480
16482
  this.toggle = !this.toggle;
16481
16483
  }
16482
16484
  }
16483
- }, wu = (n) => (Dt("data-v-29699ad7"), n = n(), Ht(), n), bu = /* @__PURE__ */ wu(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16485
+ }, wd = (n) => (Dt("data-v-29699ad7"), n = n(), Ht(), n), bd = /* @__PURE__ */ wd(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16484
16486
  /* @__PURE__ */ y("img", {
16485
16487
  src: "https://cdn.tapni.co/icons/down-arrow.png",
16486
16488
  class: "fa responsive-image",
16487
16489
  style: { width: "45%" }
16488
16490
  })
16489
- ], -1)), Cu = [
16490
- bu
16491
- ], Eu = { class: "bold center-text color-black small-bottom" };
16492
- function Tu(n, e, t, r, o, i) {
16491
+ ], -1)), Cd = [
16492
+ bd
16493
+ ], Ed = { class: "bold center-text color-black small-bottom" };
16494
+ function Td(n, e, t, r, o, i) {
16493
16495
  const a = Bt("LinkIcon");
16494
16496
  return S(), P("div", {
16495
16497
  class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
@@ -16499,8 +16501,8 @@ function Tu(n, e, t, r, o, i) {
16499
16501
  onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
16500
16502
  class: "color-black pull-right pointer",
16501
16503
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16502
- }, Cu),
16503
- y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
16504
+ }, Cd),
16505
+ y("h3", Ed, U(n.ssoLang[n.appLanguage].app_language), 1),
16504
16506
  ke(a, {
16505
16507
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16506
16508
  "link-style": "link-grid",
@@ -16559,38 +16561,38 @@ function Tu(n, e, t, r, o, i) {
16559
16561
  }, null, 8, ["data"])
16560
16562
  ], 2);
16561
16563
  }
16562
- const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-29699ad7"]]);
16563
- var Iu = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
16564
- const Su = { id: "ssoapp" }, Au = {
16564
+ const To = /* @__PURE__ */ We(kd, [["render", Td], ["__scopeId", "data-v-29699ad7"]]);
16565
+ var Id = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
16566
+ const Sd = { id: "ssoapp" }, Ad = {
16565
16567
  key: 0,
16566
16568
  href: "/",
16567
16569
  class: "header-logo"
16568
- }, Ru = /* @__PURE__ */ y("img", {
16570
+ }, Rd = /* @__PURE__ */ y("img", {
16569
16571
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38EFfrKwOXrQXERfNqq/FWcBTkhhBCyJg7PeDHRiQrdgWP2+8VZk5dAhLUbxY9xAyGEkHhBNLitMnx+N3EnzIVX6FDm94q7/6jvZ7dL8YzwCCGENJ0tZOWcGFmVodAKvaTMuzTyO3upXMnxSgghpAE2D6AMW8XaeEko9EFNUOYljlU5iWOWEEJIPfQMoAxdYm28ShU6lPmYMhsAofa+y3FLCCFkFUII+FVbRIVezs58Va5S2Z1jlxBCSB1CCP5VFWvjNVeh72zKfL1m/j3SkN6ksinHLyGEEGNWAGWYWSSFDmU+pgJlXqKHfU53jmFCCCHK1ADK8HpRFHpSyrwE3AP+IC4ADSGEkGLzssq8jMvwXBEU+rZS2TF7Q+wtOclFSwghpCLezlihTlF5Me8KHcfjiACXlsP/USrnciwTQkjhyTIv+X0qi/Ou0D9UeTTlspwh2cbwJYQQEoZCfzuD5y4SF6Y8WqrLqOgRKr9QWZZief6osg/HMyGEFBZsIK/I4Lk3qEwqgkIH8A+8WOUga/A0QFCBUSrbcUwTQkhhgUJ/wePzZqiMjL3RmuO2Biv3/VTeSKlMyNT2J8k+QD8hhJBswKnwCSpLPDxrubiw5LOLqNDBs+IixT2dUrn6q9wtLgBNklTxPSGEkCh4SuXElJ/xmTjbrYfy0GCVhH7FamY3lVtSKttglcuohAkhpLBcq3JaSp+9VOVQcam9c0GlyVmwukGildNTKt+RKr/mmCaEkMJyoemCJG23PlD5lspf8tRQSeVDv0Dlh5KO/x7SrZ7AMU0IIYUFFujIU36nVJ4NDTFVcGX817w1UnWCn3W1ytdU3kqhnL8RF1GOEEJIMUHilkNUdhFnOF1OiFgcrz9semS4yrQ8NlDSuWdhxIC779ut0ZMs52hbMEyo4HN4H08IIXHzjEk3lYNVhqr0VdlApZ1Ka3HXwa+qvKbyT5UH7d+5Jo1k8ojwM0zlOpXvJPi5HVVuVtlXZTrHNCGEFBqkOf2tSSvTEWuL847C9e+bkm4gtOCoTulzPxXnCnB2wp/bz5R6O45lQgghBnbkH4kLEINob68XTZmnqdBLnGOK/dMEPxNH+TjSb80xTAghhPhR6OBWlT3FHY8kxf4qF7H7CCGEEH8KHYxTGSKVGbStyk8k/ShChBBCCBX6KiD2+1dVbkvwMy9R2baM36eVOyGEECr0BFigcpgkZywHV7ZX2I2EZAoXyoQEQMuMngtjOVgkXirO3aA5XK9yjLi0riR84FKCDHobq3Q3aaGymThXk1X7cbl9D+4n82284N9TVeaKyyXwnrjgErVs3tRY1/poW+vDLiqbqKyjsp7KWnX662OTd8QFAUG//btOn5H0N2jwxe4jLsHVFuJ8tfEetbW+amHz/jJ7d9AvM+zf8Nt+w/pvAZuTCr0cLleZLM5ifb0y/xZR6X4YeNsWeaHRSWV7lU1VvmITS2+VzpKcyyE8Jz4RF5kQASNetgnpFfvKhV7zFTj6DkGcdlDZUqVrhZ+JhddL4tyJkKnxMXGxtEnlYO5EOushtujqa4ut5rLU+utFcbZPY8XlJV/KpqZCXxOPioupe6+tKJsCEt/HENv9Gyo9m3EC0cJWyz+z3U4sYNcGG4l9bHLZMOXntTXBcwauMiFBcTwhLiXis6b4SeNjbjdxySoOtJOUJMGucZiJ2GkL+geJMR5RmcMuKAu47O6hcoQtvDon+NnYxfcwGW7fm6IyRly41ZcyqnPpdGGFnS4s5zBYnVDuvrCju9VWmo2BdKqVWLbvZhNJDAyzBU/IYMGyry1esDBrH2AZZ1uf/03l71Je/OckQbaoH0k6R5lo9+tMyqHa+u5UlQEZtQsyaI0yeTWQMYN5ZidJNn5Gab7FAv+nKuObeXpSo/JjcadevllmO3bk1njA0zPPN73Q2tpumS3acf22RCo/icNC4U1bHH2eXKympkZGjx7N1UGFoLOQKrW2AbksgWfs3sjnhybnBNxXOIr9gymn2ogE0aPOEnev6JvzUq7b5WWWBycpEwPqG0ym8IDZMoDxPS7luh5WZnla2oLw9YD66/E6Jy5p8oSHukChdyg9EAq9trY2SqkOSEkgdN/J4tKlrnpfc6WtSovErgGWaZCtzHGMfXSgO/LGwJ3+2eJsN7B43Njjs9O+02/qu4xd3jV2WjEgoL7BDuxQlX+p3CLuLjgr0u6rcq46dzDlOcrGbyhgc4QrLZys9oi4L0rPyIVhbXWAZUKg/REqC+3/WLUXMR/6NhntJOsDx4/32c5lb4nfTQnW2rBRgAHdSHFW9rHTlIkPu3IYOB0TcB/iCBRJnZ4TFw2yUw7f7abc/6J/TlF5UpxNSohU2WkDAobtJ4QKvQHuUNlLXOCY70sx3ZJKluJZsontDMbZC5s3f2NYA58uzqL3/3Ks0PGen2q78p4R9c0vxKXJ/GrOxt2aFl8w9LxH5VcSR84KlHeMvUuECr1enrIV6qIC98/uGa68kVQHx5+4u2uR83bupXKXOLuAdXJWN/Qd3DwvjHRBtrk4S/iL5Quf9zyDBReMYQ+IUJfgtAvXJS2FUKF7UlQxsUsGz1zPlNvNUn58gNiBXQCMcLbKSX1wtQCbhx/k4L39uTj/9b45Hn872vjbIuI64LrkpoIsvoJU6AjQcojKUHFHvIgyhGhQHQqwMwsdvNg+DWEwBuBOc1CB23w7lQclTKPEct9t7JaG5ahvBotzmxqaw3GHoDBwreydg7p82zYExDM4Grlyle/B93KBfYWPKIKbIIQjwgF+Yt8rhXXEzz6QL6J24e8YoSs5EFUNBmnTPTwLR+vXCo/LAKzfcewJq+s/R1oHWLIfkMO+6WY7dewE78xJnWCrAuPf9XPUTwhShLgCZ3I68avQV8jKR++lCFylgbYm4G62xJT7PFPqs03B43vvrrIQKC0U5tnf4f+Mxd0wu0qyGerqA8Y3p7CpV3s3brHxfW9kZYdXyPcL0DeIQHdZ5HWB6yci5vXPYT+dIS6W/92cTvy9GJXSyqRDGX8DpQ+3NBi8zTHlDqU/077OtUHwBrvo83v0VqZY0phMcEIzgs1cL21McSC85oTAy1paFCMM7kUF6Bu8E78Xd4oVc32RoGpAjvsJbsjjbWNHIlDozaFDnQVAQ3dGUOqjEn5ujFa+/cRlu5qUQt/DeOUgvgaNAsMyHLvj/vatgMsJ1yFYhP9OkkuAEwMX2qbg+ojKXLqWxF3zMTnvn01swfVdTiXpE7KVe1Ukn+lj0bVzwp+JK5XbqMybTA9bXIZsX4A7y8kpjJUYuEqcvUMswEYDBq8jC9I/cIHdm9NIsRV6GmWL9a4+aX90JFeo4fAvCxy7n8pmCJJWtuDaKZLyImAWghn1LlAfnSt0ZaNCJ58D/9SkjlFhAHcsm7RZ/L9kH72P1A9OnZAiq0cEZcXcVjSXYMSkP4zDtLhKkz7wX4DYAEkEm4BrGq3Zmw8WVSPZDMECZX4tNwPBciz7hgqdOAZX+PedqMwTAXeBX2czBAsS0DCmeJgMFN6lU6EnSMzJRSqNXAavgT0kbJ9QWP8ujaAvTpb8JarJE1Dou7AZgt2lk5QI2WqXCn1lBtgue24FnwFfUBjDIbb3OSpdM6gH/OmnirPIRgQ8pMn80BT5fPt5T6trF/vaz1b3XwpkEYrQo8PFheok4YEMZb+2fvqMzREUMC6Fe+UUNgUVepFByEvkSP9HArtghAVFvHLcN+7poexLrdyIiDXWFHljE+3ker4HC9kvi0urCzeYrBNYHE2FHjSweD/RFDsJh7b2DlOhp0DIR+6MKb46QxL8rBni7hsRJnReSuXF595su+s9bQExtZm7JiwKEEYSVvqwmIXf9VMZ9gXuArcuyLhDCGcE1XlbXDTHOZHsfGEz0rMgfYT+wAncG7ZgRl99GmhZDxBSOKW5EbtnNXaTZK2ssVu/QuUh27XvkeDkcofKaeKS+iQNJiq4KN0jLgLVeRmMl7VsQfRSzsYYwjE/o/JP20Uh/8I0W5xVmSAk7rri0utiUYN0s5vZrrhDQHVBspOfqPw0Z32E9/YFlcfFhSRG/yy2vlpifYTN2sa2oMG7gSu70nF31hs5BD/C9dlrnNKTZ7m4gCuhSRqhHIcFWtemCnZGG6Q0DnDFcbp8kSynuTLBdtA+6S4uO5rv/ijnhOCcgMcVFMQj4jKY9aqwH5COeWJAdcPJTrmxA/4ZaD9hsXWrLZyqmvmOw1jwFlP8WdalqaFgH/NQFpxqtC89sKamRmpra6OUUI7csaNDspb3VV6xY9lJKTwndstkGIl9JcWF3fn2wj/bzM9AIoYhNqH7BKcA+9lpg0+wcNky8jF1jymIYaYsZlTYDwjDikBIuGIZG0D9EEXupBxsvGCvMdAWXeOleVEvl9si9HDro8cyrM+uQhInrSP3ZSofmaKGVfa7Nphwr/OBrQ5xJ1eybsb359vucK79PWn4lOGBFD//eXHWwWeJC3XalEUfMuTBcn50hu2CMXWCjTlfR6xQFrupvBzhOJpo7ZSGHUJpxw/5psrF4oIjZcWB4jwlpkbYT4tsQXJtwp/7b5tLzrB33ffmDguKtSQON9WoFHpju9Zamyjxgn5syhYT5izbTeNn0+37C01Jf2r/fs86a7EU03UE90OP2qRfLV/cP1Y38v8Wdb7fos7X9e0r7i7X9lB29BuO3x9WuVoaz9WMRdmhNnmHwEnW5sd7et7gDE4GKgHvIuwwfmXvb9rcbTvBi23RlwWI8HesxHeXPltcEKPnUvp8zO/n2jvsewxvKs5zhymyE1boj9iLvcB21XNsJTvPds3v2I659P/lbLYm8aS4+8Sk8bmShqvZQHvpf1LP4g+LOfhjTw6s7XGyACMgH8k6to5opwELddxdPu75uTjBQZrQZ2yB2CaDumPReaFtRGIAV441nt6tK8UZOZ7nsX5wX+tNhU4qYU/xZ/Txx5y13V42GZbqh1X9tgGXd5DtRtPuZyyGN2tCebI2ipslYbjZ7WEbhyzaoKlRyrI2ipuZ0bv1N8/1PLEJZaJRXIRGcb7waRS3ImdtB9c2WAvfbrvREeLu4ULlaXE+8GmD3Xn/wPsOR7ffkDBc7HA6cJC4E0HfjJDwDWPRLgdk9G4hpPE8j8/rIyRRqNCp0MsBxotH2I70vgjKe5WnfugXcBvMstOV8QGV6QlxR/C+wfXRdoGPWdzzP5fRs3HVeoPH521OFUyFHgsrclov7M7fjKSs/1IZ5+E5vQIeg9+XMIPf3Cbp2Jisab7bN+DxCi+R6zMuwyjxZ8S8thAqdCp0UgY+fG03DrTuF6j8PeC+gYHcTZ6feWCg8x6O2s8LoBz/EXdd5QPkr1+HUxQVegzUsgmCwMdRc/cA6w0/8/Mj6B/EW/dp6YwEPyHe3V4m4cQzeMjTc5AVby1OUVTo3KHHCfzD4ROMeN+d68h6tlLHEVxHcRanrRJ6pg83JcTK7hRYWyOOwOIIxgT65yKPz4O71M6BtQE8Rq4JqDy+duitpY51OamcomU0o1GcnwkTCSH6ijOe6ylf5Dfvaj9vUWdlXgqkU3IxA4h1gAhZcN+BId4McYGNcHeP0MAIYNTUoCiw8P7IFg5p1rl1QH0A96NHIhozcPFEONLBnp6HsKM3B1T/v9g4DwUExZrrYZGKhf36Ulm4YVJghc4devIgSMg2NkliQkbmrW4J7bDrs4JdbIoed30weEPoUgThmN/AZyy0xUGaCr1KwnKHuiSyMYTAVQj64uu+f3ub+0IIMY1F7KjA+uM9e8d8nDq1o6qgQo+BPN+hQ1nj2PJgcS5RfT0vIPqYHGjfw+QDlxu4Q40Rdxe5ok4/pN0XLQJ6l2AE+GSEY+pBcUe9gzw8C6k7uweyM4QnxsTA+gInZMi/sYWnuYRQoXOHngE4HjtM5UjbiYdCNxNEIUOiCQTlQAzxu2xiSrsv6l4hZM2oiN+XUZ4UOnaFGwei0O8PdPE/m/MkFTrJ50DF5IdMZkeLM2ALfUwPMDnTdqs+XGNCmJQxCT8c8TiDcpvjaYz1EX/GX40xNtC+mO/xNIBQoQdPHo7cce/8M3EBQDpFWH4czw8r0JiDPcGHEZcfCxIkBDrIw7NCiGsPC/9JgfbFB9z4xEc160uF3gDIY427vdMiVeZFZGwO6uAr7On6AdR1soSb/W0+XycqOBK/QsfxNHIjw5VmU3ZjVExgHZpMCPH3pwXcD0v5OsUHj9xJXRBF61YJP4EFWR0ctechtzR2rT58oFsEUNeXAu4H3m1zh04iBj7kT1KZR8sM8XfvmSY4gn7Hw3MQlTDrYEAvc9gSKnSSNIeIiy7WmU0RLYtzUg/sDH0Y9pXCDWcFIiPO5LAlScLQr+RrKjdKWKFLSfm8laO6+DAUQ7jeLOOIfyxxeyQQ7tBJYOCY/U4q81wwO0d1WeThGQgE1CHDOs4TWpITKnSSEAh9eYPwmD0v5MmI6TMPz4BRXKuM+4s+2IQKPRJCP96/VvzGYCekqdR6ekaWrqWLhZbkhAo9GkI2UvqFyr7sIr7LBWaFp5OAxnbotewGwkkgDj4KtFzwNT+V3ZM78mQH4UPRQZl/ymFDqNDjxecxeKg7dIZyzSeb5KgubT08A5HQFmVYR3rckMSh21p6hGjwsr24HOYhsFDlNXFRwWaICyYyy75fZe3XRZzxHthMZUOVXirrShiRvkJiwxzVZTNPC+4lGW+mMM557E6o0CMgRIOXn0u2lr0IpDFG5TFxSTjeKbOdqk2ZYze6o7jc2QPFGfcVXcH3FpdwJPZocR08LU6wePw4AIVOCBV6BIS2Q8eu5+sZPXuKyqUqo8X531bSph+avKByjTh/4i1VhqvUiLMRKKJtCCKf9cmBQu+p0s3Dc97PeHfcggqdpLFKJMXYoX9HpZ3nZ+JI8wxx8eGvr1CZNwTuQp9XOdees4s4l7wiRuHqlYM6DPC00cg6sh536IQKnTv0ZvfzcM/PhJX/PiojxZ+B4DKV8SrH2q79FJVJBRpzQ3JQh109PSfryHrcoRMq9AopqlHc5qbgfDHNdspPZFhnTNiXiItVP6cg4xt1bRtx+Tuq7O7pWa8GMBdRoRMq9EgI6ch9J/FnDAerdRzvTwmk7rhjL0qsethJ7Bxx+YeKv2uDEBQ6IVTokRCSO8ogj886UeXZgOoOn/sOBRp334247CM8PQeGg9M5RREq9LjxGRlqWUD13srTcx5WuTmwPu9VsN3QN8S5sMVGP/Fn5/GmxO8NQEjhFbrP6G3tAqkz7iU39vSs8wPs8+0KNsbXVjkhwnLjZMfX/f+rQggVevS863GXPjiQOiMIi49AHfALHxdgn+9awPf6eJVtIyovggQd4/F5j3HqJ1To8YPIUPM9PWsvCePuFjs2H369T0l4wXS+ZMqiaMAA8qyIynumx7kI8dv/wamfUKHHD4KNvOPpWZtKdpHZ6uIrEcsrAfY37mTbFfTdPlDl2xGU88fiN5Xvv1Re59RPqNDzwZsen4VdUpeM6+vrlGBGYP0MQ7iagr/fvxM/iU6aC05PRnp+5gOc9gkVen7w6R8Ny93fZlxfXz7YoYW6xZXHzgV/v5GsBV4HHQMsG+w6rvdcNlwJPchpn1Ch54f/eH7e4Sp/kuyOfn3lfO4SUB9jd34KX+//7YIR275VQGXqoXK/+I1eCHDc/gKHBKFCzw9TxX/QF9xlPqOyv7jIZT7xlYTiywH1MYKr7M7X+38cqnJHIEodXheIV5CFO+HfOBRInili+lTs0GHAtYXn526tcq89/z6VCeL84hfZ1yUmnzVjUYbPmNnAz5faAibt4CqhuIf1UrmAr/ZqfNPG3/dU3suoDPA6uEtcbgHfIFnQzRwGhAo9X0BhPp6BQi+xldQfuQ1KF9HlynX9wh35ayrbS/0ueQvE+d6nfeQPv2dY9k/PeDxfJ/4C6cQGst+NVTlC/IfnPVjlapXOGdUdi5k3OQRInilqLPcQLV2xg25lCrocKe18tmngc5F17H0P5Ydx0/EZt+EolWF8rRtlc1Pqp4kfg8mNVG5SuTNDZb7MFhOEUKHnkKfF392yL4Y28P1FHncmR4l/Q6fSzvzXEndiEp+0ERemF7niD5F0TuoQ0Ogke0bW/YI7+4nsdkKFnk8+sZc8TzRmBObLVW9t241t6LHeMDKEF8HP+DqXTR+V21X+LS6Weo8EPrO/ynmmyC9VWTeAev6OXU2o0PPN3Tmrz1fEHW/Wx9Oey4HFUncPz4IdxJPi7mdJZe0IpTdZ5SHbWSMXwQbSuGV8tS3e9lA5Q+UJcW5hv/TU/00BRniPsItJEWhZ4LrjHn2chJNEpVJwPwnDtFn1/AwW9UvFn8vcVqbUj05pMYF6/EjlHAkzaEqstFfZ0wTMFXc1VbKKn2a/002c8WYX2+WvE2h94DVyEbuVUKEXg8tzpNDFFHp9Bn/TbTL26Sve33Zs14g7gp2TwGdCccCnGsfDm/P1TZ1OsnIugNgMDq9SeZ7dSIpCdcHr/2dxAV/ywg4NfB+78zszKA920ki+8aLKxeJC4TZnjMKH/1fi4gdcTWVOmsB0GzOEcIdeEHBsCOvov+SkPgNtRzW3np/B+AnhUNtnUC74hf/clDusjceKy3j1qji3uo+sL7ADx9VBX/sbHN3vZAq8FV9XUgYnS3YBdAihQs8IGMfhmHqfHNQFd5sIqflEPT9D8BmEvjwkw/LB73mwrHzNgaA3n5hCR2Y43IlXcViSCviDyj1sBlI0qtkEn4Od67yc1GVIIz+7LsDythVnKY0d+dpU5qRCcC1zKpuBUKEXl5fFGW7lgaGN/Aw797vZ3SSnIMzxCHFXOIRQoRcYBMH4aw7qgSP3jRr5+VniksEQkjcQqfA5NgOhQidIjgLf5pcirweMygY18nOcRlzI7iY5AwvV0WwGQoVOSrwrLhNV7Ed2u63h57Dsf5bdTXLC71XOZTMQKnSyKghduZ/KBxHXYZs1/BwJW34o7s4xz7zOhUvuuUWcUSshVOhsgnoZb0r9/UjLD7/t9dfwO4ighdCsK3LahwiBi4Q1R3I455Y/isvktpRNQQgVemNMNKU+JcKyQ5lv14TfQ/S4M3PYdwis8y2Vt8VPzu9QwIkLwhkjQtobOa8rjtiP4jRFCBV6U4HF7NfERTaLjV2b+HvIi31GjvoMMeOHi8vCVjQ+VjldnB/2UZLPKxUkXEGq3LM4PRFChV4uM8UlpThb5bOIyr1LGb87UvLhhw+7h6+rPFXg97n0TiPmQI3ky0XxQ3Gpcn/DaYkQKvTmskxcqk64g8WSvQkJTTYq4/dx9H5kxAoAyhxXJOM5XP/HgyoHmSKMHeQ0R/KhMexWQqjQk+A52/keJy6pSMisKy6dajncIO6o/pXI+gX2DkPtK1mZ+61PX4u0/PDIOE1lb8m/XQAhVOiewQ72GtsBny3uSD5UhjTjbybYouWGSPrjJpWvSpzGi76YJC5r3Z2RlRvXBkjkg0BIK9iNhFChpwWOeHEM/2WV76k8LS7aXOwKHcBKHMfvOMKeHGj7I0MbDL+OUJnP4bhGECwJmfYOl/DdMaeKuyvfU1xcCEIIFboXkKXtRlOeO9puAkfWywIoG/KJd6/g73FcixzrJ0hYuaVxj7q9OD/kNeEre1ssWeJuFXcXjbZbEljZZqicqDJA5a4M36EqT88IecyE8t6wL8qA+dCTA0eCE03OVukn7u5ykE1Q8A3v5LlM64iz0K/k+ByuT1eIO6492XZ4G2XUxtPF+ViXkwYWngmz7IVdkdI7ND+QBVxTectON9COv1TZN8PFPU61cM1zlbjkSCGkMcbpG06pFqX0+a1tgVwb8BhZaOM6rdOvKnt31rSohBvqJ1aeNFjL+iIXVzrMPe0HDJouKj3ERXHr4GkAYeJ4UZL1o8ciAQZKh9qCxcci5XlbVIxuxovdQqW9hzIuWEOf4nom7SA+sOfYwibAcoA9yA9U9rcx6mtxdp/K7abQQ5pQ25uySVPhrpCw4wRgzmrrYdGB93l5AH2xsPSMmpoaGT06zjw/3KH7YantEmfZ5BUzn9huHbKBKfU97SSij00ElfKpLURgl/CQymNreOkbY3kgu76QQYbB48UFpIG3wD72tZ8kF2kPfYBMf+NUHhAXY//TgHennLPCCKnLvqBCJ554z3bNkFYqvVS2FHd3/yWV3uLSuXa2lXaLOn9baxMGfKRxvAmXpCm2G4e8LbRs9g12jPebYG7oaTv+baw/N1FZz3ZuPev0JxZNuNrA8ekc+4qxMU3cvTiuoSbZgraWzUwIFToJG0zor5ncU+f7mPRxLN+uAYU+N+CdWpGBTcDrJqVgLiXjoTbiTmM62u8tMoFL58em0GupvAmhQif5Yrntwj9kU0RPSUlDef+HzUFIWNBtjRBCCKFCJ4QQQggVOiGEEEKo0AkhhBBChU4IIYRQoRNCCCGECp0QQgghCdKyU6dObAWSGgsWLJBly5axIUgqtGvXTlq3bi21tYxhQypn/vz50r59+2jL33Lq1KnsRZI4VVVV0rJlS9l7771lwoQJbBCSCiNHjpTjjjtO5s1juH5SOVgYtm3bNl6F3rVrV/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",
16570
16572
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
16571
16573
  class: "header-logo-img"
16572
- }, null, -1), Pu = [
16573
- Ru
16574
- ], Mu = { class: "lang-icon" }, Nu = {
16574
+ }, null, -1), Pd = [
16575
+ Rd
16576
+ ], Md = { class: "lang-icon" }, Nd = {
16575
16577
  class: "snackbar snackbar-boxed",
16576
16578
  id: "snackbar"
16577
- }, Lu = {
16579
+ }, Ld = {
16578
16580
  class: "snack-body",
16579
16581
  id: "errorSnack"
16580
- }, Ou = { id: "errorMessage" }, zu = /* @__PURE__ */ y("img", {
16582
+ }, Od = { id: "errorMessage" }, zd = /* @__PURE__ */ y("img", {
16581
16583
  src: "https://cdn.tapni.co/icons/notification-close.png",
16582
16584
  style: { width: "100%" }
16583
- }, null, -1), Uu = [
16584
- zu
16585
- ], xu = {
16585
+ }, null, -1), Ud = [
16586
+ zd
16587
+ ], xd = {
16586
16588
  class: "snack-body",
16587
16589
  id: "successSnack"
16588
- }, Bu = { id: "successMessage" }, Du = /* @__PURE__ */ y("img", {
16590
+ }, Bd = { id: "successMessage" }, Dd = /* @__PURE__ */ y("img", {
16589
16591
  src: "https://cdn.tapni.co/icons/notification-close.png",
16590
16592
  style: { width: "100%" }
16591
- }, null, -1), Hu = [
16592
- Du
16593
- ], qu = {
16593
+ }, null, -1), Hd = [
16594
+ Dd
16595
+ ], qd = {
16594
16596
  name: "TapniAuth",
16595
16597
  mixins: [ze],
16596
16598
  data() {
@@ -16663,20 +16665,20 @@ const Su = { id: "ssoapp" }, Au = {
16663
16665
  });
16664
16666
  }
16665
16667
  }
16666
- }, Hr = /* @__PURE__ */ Object.assign(qu, {
16668
+ }, Hr = /* @__PURE__ */ Object.assign(qd, {
16667
16669
  setup(n) {
16668
16670
  return document.addEventListener("DOMContentLoaded", function() {
16669
16671
  const e = document.createElement("script");
16670
- e.src = `https://www.google.com/recaptcha/api.js?render=${Iu.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16671
- }), (e, t) => (S(), P("div", Su, [
16672
- e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Au, Pu)) : ee("", !0),
16672
+ e.src = `https://www.google.com/recaptcha/api.js?render=${Id.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16673
+ }), (e, t) => (S(), P("div", Sd, [
16674
+ e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Ad, Pd)) : ee("", !0),
16673
16675
  e.display === "redirect" ? (S(), P("a", {
16674
16676
  key: 1,
16675
16677
  onClick: t[0] || (t[0] = (...r) => e.toggleSSOLanguageModal && e.toggleSSOLanguageModal(...r)),
16676
16678
  class: "font-18 no-border pointer color-black",
16677
16679
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16678
16680
  }, [
16679
- y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
16681
+ y("span", Md, U(e.appLanguage.toUpperCase()), 1)
16680
16682
  ])) : ee("", !0),
16681
16683
  ke(bo),
16682
16684
  n.isModal ? ee("", !0) : (S(), qe(To, { key: 2 })),
@@ -16692,25 +16694,25 @@ const Su = { id: "ssoapp" }, Au = {
16692
16694
  key: 8,
16693
16695
  isModal: n.isModal
16694
16696
  }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : e.display !== "npm" ? (S(), qe(Qo(Yo), { key: 11 })) : ee("", !0),
16695
- y("div", Nu, [
16696
- y("p", Lu, [
16697
- y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
16697
+ y("div", Nd, [
16698
+ y("p", Ld, [
16699
+ y("span", Od, U(e.ssoLang[e.appLanguage].error), 1),
16698
16700
  y("a", {
16699
16701
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16700
16702
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16701
- }, Uu)
16703
+ }, Ud)
16702
16704
  ]),
16703
- y("p", xu, [
16704
- y("span", Bu, U(e.ssoLang[e.appLanguage].success), 1),
16705
+ y("p", xd, [
16706
+ y("span", Bd, U(e.ssoLang[e.appLanguage].success), 1),
16705
16707
  y("a", {
16706
16708
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16707
16709
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16708
- }, Hu)
16710
+ }, Hd)
16709
16711
  ])
16710
16712
  ])
16711
16713
  ]));
16712
16714
  }
16713
- }), Zu = {
16715
+ }), Zd = {
16714
16716
  TapniAuth: Hr,
16715
16717
  AuthMixin: ze,
16716
16718
  install: (n, e) => {
@@ -16718,5 +16720,5 @@ const Su = { id: "ssoapp" }, Au = {
16718
16720
  }
16719
16721
  };
16720
16722
  export {
16721
- Zu as default
16723
+ Zd as default
16722
16724
  };