@tapni/auth 0.0.88 → 0.0.90

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 Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as z, createCommentVNode as te, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, 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";
1
+ import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as z, createCommentVNode as te, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, 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";
2
2
  import { RouterView as Yo } from "vue-router";
3
3
  import Z from "await-to-js";
4
4
  import Xn from "axios";
@@ -8,13 +8,13 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
8
8
  import { Browser as hn } from "@capacitor/browser";
9
9
  import $o from "qr-code-styling";
10
10
  import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
11
- const Xo = "0.0.88";
11
+ const Xo = "0.0.90";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
15
15
  Un = n;
16
16
  },
17
- instance(n, e = !1) {
17
+ instance(n, e = null) {
18
18
  const t = Xo;
19
19
  let r = "https://api.tapni.co/v1/";
20
20
  Un && (r = Un);
@@ -39,10 +39,10 @@ const Ft = {
39
39
  lang: n.appLanguage,
40
40
  realm: n.realm || "app"
41
41
  } : {}
42
- }), n && n.token && !e) {
42
+ }), n && n.token && e !== null) {
43
43
  const a = qr(n.token);
44
44
  if (a.exp - 30 < Math.floor(Date.now() / 1e3))
45
- return ze.methods.refreshTokenAction(a).then((s) => (i.headers = {
45
+ return e(a).then((s) => (i.headers = {
46
46
  ...i.headers,
47
47
  Authorization: `Bearer ${s}`
48
48
  }, i));
@@ -4330,7 +4330,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4330
4330
  }
4331
4331
  };
4332
4332
  var ti = { 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 };
4333
- const ze = {
4333
+ const De = {
4334
4334
  mixins: [ei],
4335
4335
  data() {
4336
4336
  return {
@@ -4471,13 +4471,13 @@ const ze = {
4471
4471
  async refreshTokenAction(n) {
4472
4472
  return new Promise(async (e, t) => {
4473
4473
  if (!this.refreshToken || this.refreshing)
4474
- return t(null);
4474
+ return e(null);
4475
4475
  this.refreshing = !0;
4476
4476
  const [r, o] = await Z(
4477
4477
  Ne.refreshToken({
4478
4478
  id: n.id,
4479
4479
  refreshToken: this.refreshToken,
4480
- refreshTokenAction: !0
4480
+ refreshTokenAction: this.refreshTokenAction
4481
4481
  }, this.$storage)
4482
4482
  );
4483
4483
  if (r && r.response && r.response.data.error === "ACCESS_DENIED")
@@ -4598,7 +4598,8 @@ const ze = {
4598
4598
  return t.data;
4599
4599
  },
4600
4600
  async getLoggedInAccounts(n) {
4601
- if (n || (n = this.getRefreshTokens()), n && n.length >= 1) {
4601
+ if (console.log("getLoggedInAccounts-1"), n || (n = this.getRefreshTokens()), n && n.length >= 1) {
4602
+ console.log("getLoggedInAccounts-2");
4602
4603
  const [e, t] = await Z(
4603
4604
  Ne.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
4604
4605
  );
@@ -4656,7 +4657,7 @@ const ze = {
4656
4657
  return t;
4657
4658
  }, ni = {
4658
4659
  name: "AuthWelcome",
4659
- mixins: [ze],
4660
+ mixins: [De],
4660
4661
  data() {
4661
4662
  return {
4662
4663
  loading: !0
@@ -4681,7 +4682,7 @@ const ze = {
4681
4682
  type: "video/mp4"
4682
4683
  }, null, -1)), ai = [
4683
4684
  ii
4684
- ], 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 = {
4685
+ ], 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 = {
4685
4686
  key: 2,
4686
4687
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4687
4688
  }, 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 = [
@@ -4721,9 +4722,9 @@ function mi(n, e, t, r, o, i) {
4721
4722
  ]),
4722
4723
  _: 1
4723
4724
  }),
4724
- di
4725
+ ui
4725
4726
  ]),
4726
- this.isNative ? te("", !0) : (S(), P("div", ui, hi))
4727
+ this.isNative ? te("", !0) : (S(), P("div", di, hi))
4727
4728
  ]);
4728
4729
  }
4729
4730
  const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
@@ -4921,22 +4922,22 @@ function T(n, e, t, r) {
4921
4922
  });
4922
4923
  }
4923
4924
  return new (t || (t = Promise))(function(i, a) {
4924
- function s(u) {
4925
+ function s(d) {
4925
4926
  try {
4926
- p(r.next(u));
4927
+ p(r.next(d));
4927
4928
  } catch (f) {
4928
4929
  a(f);
4929
4930
  }
4930
4931
  }
4931
- function d(u) {
4932
+ function u(d) {
4932
4933
  try {
4933
- p(r.throw(u));
4934
+ p(r.throw(d));
4934
4935
  } catch (f) {
4935
4936
  a(f);
4936
4937
  }
4937
4938
  }
4938
- function p(u) {
4939
- u.done ? i(u.value) : o(u.value).then(s, d);
4939
+ function p(d) {
4940
+ d.done ? i(d.value) : o(d.value).then(s, u);
4940
4941
  }
4941
4942
  p((r = r.apply(n, e || [])).next());
4942
4943
  });
@@ -4951,11 +4952,11 @@ function I(n, e) {
4951
4952
  return this;
4952
4953
  }), a;
4953
4954
  function s(p) {
4954
- return function(u) {
4955
- return d([p, u]);
4955
+ return function(d) {
4956
+ return u([p, d]);
4956
4957
  };
4957
4958
  }
4958
- function d(p) {
4959
+ function u(p) {
4959
4960
  if (r)
4960
4961
  throw new TypeError("Generator is already executing.");
4961
4962
  for (; t; )
@@ -4996,8 +4997,8 @@ function I(n, e) {
4996
4997
  continue;
4997
4998
  }
4998
4999
  p = e.call(n, t);
4999
- } catch (u) {
5000
- p = [6, u], o = 0;
5000
+ } catch (d) {
5001
+ p = [6, d], o = 0;
5001
5002
  } finally {
5002
5003
  r = i = 0;
5003
5004
  }
@@ -5054,7 +5055,7 @@ var Fn = function(n, e) {
5054
5055
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
5055
5056
  }, Fn(n, e);
5056
5057
  };
5057
- function Ue(n, e) {
5058
+ function ze(n, e) {
5058
5059
  Fn(n, e);
5059
5060
  function t() {
5060
5061
  this.constructor = n;
@@ -5078,22 +5079,22 @@ function j(n, e, t, r) {
5078
5079
  });
5079
5080
  }
5080
5081
  return new (t || (t = Promise))(function(i, a) {
5081
- function s(u) {
5082
+ function s(d) {
5082
5083
  try {
5083
- p(r.next(u));
5084
+ p(r.next(d));
5084
5085
  } catch (f) {
5085
5086
  a(f);
5086
5087
  }
5087
5088
  }
5088
- function d(u) {
5089
+ function u(d) {
5089
5090
  try {
5090
- p(r.throw(u));
5091
+ p(r.throw(d));
5091
5092
  } catch (f) {
5092
5093
  a(f);
5093
5094
  }
5094
5095
  }
5095
- function p(u) {
5096
- u.done ? i(u.value) : o(u.value).then(s, d);
5096
+ function p(d) {
5097
+ d.done ? i(d.value) : o(d.value).then(s, u);
5097
5098
  }
5098
5099
  p((r = r.apply(n, e || [])).next());
5099
5100
  });
@@ -5108,11 +5109,11 @@ function K(n, e) {
5108
5109
  return this;
5109
5110
  }), a;
5110
5111
  function s(p) {
5111
- return function(u) {
5112
- return d([p, u]);
5112
+ return function(d) {
5113
+ return u([p, d]);
5113
5114
  };
5114
5115
  }
5115
- function d(p) {
5116
+ function u(p) {
5116
5117
  if (r)
5117
5118
  throw new TypeError("Generator is already executing.");
5118
5119
  for (; t; )
@@ -5153,8 +5154,8 @@ function K(n, e) {
5153
5154
  continue;
5154
5155
  }
5155
5156
  p = e.call(n, t);
5156
- } catch (u) {
5157
- p = [6, u], o = 0;
5157
+ } catch (d) {
5158
+ p = [6, d], o = 0;
5158
5159
  } finally {
5159
5160
  r = i = 0;
5160
5161
  }
@@ -5231,10 +5232,10 @@ var g = {
5231
5232
  g.OFFLINE_ACCESS_SCOPE
5232
5233
  ], Cr = Sn(an, [
5233
5234
  g.EMAIL_SCOPE
5234
- ]), De;
5235
+ ]), Be;
5235
5236
  (function(n) {
5236
5237
  n.CONTENT_TYPE = "Content-Type", n.RETRY_AFTER = "Retry-After", n.CCS_HEADER = "X-AnchorMailbox", n.WWWAuthenticate = "WWW-Authenticate", n.AuthenticationInfo = "Authentication-Info", n.X_MS_REQUEST_ID = "x-ms-request-id", n.X_MS_HTTP_VERSION = "x-ms-httpver";
5237
- })(De || (De = {}));
5238
+ })(Be || (Be = {}));
5238
5239
  var he;
5239
5240
  (function(n) {
5240
5241
  n.ID_TOKEN = "idtoken", n.CLIENT_INFO = "client.info", n.ADAL_ID_TOKEN = "adal.idtoken", n.ERROR = "error", n.ERROR_DESC = "error.description", n.ACTIVE_ACCOUNT = "active-account", n.ACTIVE_ACCOUNT_FILTERS = "active-account-filters";
@@ -5332,10 +5333,10 @@ var Rt;
5332
5333
  (function(n) {
5333
5334
  n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
5334
5335
  })(Rt || (Rt = {}));
5335
- var ut;
5336
+ var dt;
5336
5337
  (function(n) {
5337
5338
  n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
5338
- })(ut || (ut = {}));
5339
+ })(dt || (dt = {}));
5339
5340
  var Xt;
5340
5341
  (function(n) {
5341
5342
  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";
@@ -5361,7 +5362,7 @@ var ln = {
5361
5362
  }, D = (
5362
5363
  /** @class */
5363
5364
  function(n) {
5364
- Ue(e, n);
5365
+ ze(e, n);
5365
5366
  function e(t, r, o) {
5366
5367
  var i = this, a = r ? t + ": " + r : t;
5367
5368
  return i = n.call(this, a) || this, Object.setPrototypeOf(i, e.prototype), i.errorCode = t || g.EMPTY_STRING, i.errorMessage = r || g.EMPTY_STRING, i.subError = o || g.EMPTY_STRING, i.name = "AuthError", i;
@@ -5643,7 +5644,7 @@ var R = {
5643
5644
  }, O = (
5644
5645
  /** @class */
5645
5646
  function(n) {
5646
- Ue(e, n);
5647
+ ze(e, n);
5647
5648
  function e(t, r) {
5648
5649
  var o = n.call(this, t, r) || this;
5649
5650
  return o.name = "ClientAuthError", Object.setPrototypeOf(o, e.prototype), o;
@@ -5781,8 +5782,8 @@ var L = (
5781
5782
  };
5782
5783
  return r.forEach(function(i) {
5783
5784
  if (i.trim()) {
5784
- var a = i.split(/=(.+)/g, 2), s = a[0], d = a[1];
5785
- s && d && (t[o(s)] = o(d));
5785
+ var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
5786
+ s && u && (t[o(s)] = o(u));
5786
5787
  }
5787
5788
  }), t;
5788
5789
  }, n.trimArrayEntries = function(e) {
@@ -6010,7 +6011,7 @@ var F = {
6010
6011
  }, ie = (
6011
6012
  /** @class */
6012
6013
  function(n) {
6013
- Ue(e, n);
6014
+ ze(e, n);
6014
6015
  function e(t, r) {
6015
6016
  var o = n.call(this, t, r) || this;
6016
6017
  return o.name = "ClientConfigurationError", Object.setPrototypeOf(o, e.prototype), o;
@@ -6222,34 +6223,34 @@ var we = (
6222
6223
  e.tenantId || g.EMPTY_STRING
6223
6224
  ];
6224
6225
  return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
6225
- }, n.createAccount = function(e, t, r, o, i, a, s, d) {
6226
- var p, u, f, _, k, E, N = new n();
6227
- N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = d;
6226
+ }, n.createAccount = function(e, t, r, o, i, a, s, u) {
6227
+ var p, d, f, _, k, E, N = new n();
6228
+ N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
6228
6229
  var Q = s || o && o.getPreferredCache();
6229
6230
  if (!Q)
6230
6231
  throw O.createInvalidCacheEnvironmentError();
6231
6232
  if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
6232
- 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;
6233
+ N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6233
6234
  var X = (_ = r == null ? void 0 : r.claims) === null || _ === void 0 ? void 0 : _.preferred_username, G = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
6234
6235
  N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6235
6236
  }
6236
6237
  return N.cloudGraphHostName = i, N.msGraphHost = a, N;
6237
6238
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
6238
- var s, d, p, u, f = new n();
6239
+ var s, u, p, d, f = new n();
6239
6240
  f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
6240
6241
  var _ = a || r && r.getPreferredCache();
6241
6242
  if (!_)
6242
6243
  throw O.createInvalidCacheEnvironmentError();
6243
- 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;
6244
+ 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;
6244
6245
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
6245
6246
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
6246
6247
  if (t === Se.Adfs || t === Se.Dsts)
6247
6248
  return s;
6248
6249
  if (e)
6249
6250
  try {
6250
- var d = vn(e, o);
6251
- if (!L.isEmpty(d.uid) && !L.isEmpty(d.utid))
6252
- return "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid;
6251
+ var u = vn(e, o);
6252
+ if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
6253
+ return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
6253
6254
  } catch {
6254
6255
  }
6255
6256
  return r.verbose("No client info in response"), s;
@@ -6350,12 +6351,12 @@ var Me = (
6350
6351
  realm: e.realm,
6351
6352
  tokenType: e.tokenType,
6352
6353
  requestedClaimsHash: e.requestedClaimsHash
6353
- }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(d) {
6354
- if (a.accessTokenKeyMatchesFilter(d, t, !1)) {
6355
- var p = a.getAccessTokenCredential(d);
6354
+ }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(u) {
6355
+ if (a.accessTokenKeyMatchesFilter(u, t, !1)) {
6356
+ var p = a.getAccessTokenCredential(u);
6356
6357
  if (p && a.credentialMatchesFilter(p, t)) {
6357
- var u = Ee.fromString(p.target);
6358
- u.intersectingScopeSets(o) && i.push(a.removeAccessToken(d));
6358
+ var d = Ee.fromString(p.target);
6359
+ d.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
6359
6360
  }
6360
6361
  }
6361
6362
  }), [4, Promise.all(i)];
@@ -6500,12 +6501,12 @@ var Me = (
6500
6501
  e.isAppMetadata(r) && e.removeItem(r);
6501
6502
  }), !0;
6502
6503
  }, n.prototype.readCacheRecord = function(e, t, r) {
6503
- 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);
6504
+ 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);
6504
6505
  return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
6505
6506
  account: i,
6506
6507
  idToken: a,
6507
6508
  accessToken: s,
6508
- refreshToken: d,
6509
+ refreshToken: u,
6509
6510
  appMetadata: p
6510
6511
  };
6511
6512
  }, n.prototype.readAccountFromCache = function(e) {
@@ -6542,7 +6543,7 @@ var Me = (
6542
6543
  }, n.prototype.getAccessToken = function(e, t, r) {
6543
6544
  var o = this;
6544
6545
  this.commonLogger.trace("CacheManager - getAccessToken called");
6545
- var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || ne.BEARER, s = a && a.toLowerCase() !== ne.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, d = {
6546
+ var i = Ee.createSearchScopes(t.scopes), a = t.authenticationScheme || ne.BEARER, s = a && a.toLowerCase() !== ne.BEARER.toLowerCase() ? H.ACCESS_TOKEN_WITH_AUTH_SCHEME : H.ACCESS_TOKEN, u = {
6546
6547
  homeAccountId: e.homeAccountId,
6547
6548
  environment: e.environment,
6548
6549
  credentialType: s,
@@ -6552,17 +6553,17 @@ var Me = (
6552
6553
  tokenType: a,
6553
6554
  keyId: t.sshKid,
6554
6555
  requestedClaimsHash: t.requestedClaimsHash
6555
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
6556
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, d = [];
6556
6557
  p.forEach(function(_) {
6557
- if (o.accessTokenKeyMatchesFilter(_, d, !0)) {
6558
+ if (o.accessTokenKeyMatchesFilter(_, u, !0)) {
6558
6559
  var k = o.getAccessTokenCredential(_);
6559
- k && o.credentialMatchesFilter(k, d) && u.push(k);
6560
+ k && o.credentialMatchesFilter(k, u) && d.push(k);
6560
6561
  }
6561
6562
  });
6562
- var f = u.length;
6563
- 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(_) {
6563
+ var f = d.length;
6564
+ 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(_) {
6564
6565
  o.removeAccessToken(_.generateCredentialKey());
6565
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
6566
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), d[0]);
6566
6567
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
6567
6568
  var o = e.toLowerCase();
6568
6569
  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)
@@ -6592,15 +6593,15 @@ var Me = (
6592
6593
  credentialType: H.REFRESH_TOKEN,
6593
6594
  clientId: this.clientId,
6594
6595
  familyId: i
6595
- }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, d = [];
6596
- s.forEach(function(u) {
6597
- if (o.refreshTokenKeyMatchesFilter(u, a)) {
6598
- var f = o.getRefreshTokenCredential(u);
6599
- f && o.credentialMatchesFilter(f, a) && d.push(f);
6596
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
6597
+ s.forEach(function(d) {
6598
+ if (o.refreshTokenKeyMatchesFilter(d, a)) {
6599
+ var f = o.getRefreshTokenCredential(d);
6600
+ f && o.credentialMatchesFilter(f, a) && u.push(f);
6600
6601
  }
6601
6602
  });
6602
- var p = d.length;
6603
- return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), d[0]);
6603
+ var p = u.length;
6604
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), u[0]);
6604
6605
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
6605
6606
  var r = e.toLowerCase();
6606
6607
  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);
@@ -6665,7 +6666,7 @@ var Me = (
6665
6666
  ), yi = (
6666
6667
  /** @class */
6667
6668
  function(n) {
6668
- Ue(e, n);
6669
+ ze(e, n);
6669
6670
  function e() {
6670
6671
  return n !== null && n.apply(this, arguments) || this;
6671
6672
  }
@@ -6795,7 +6796,7 @@ var ki = 300, no = {
6795
6796
  }
6796
6797
  };
6797
6798
  function Ai(n) {
6798
- 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 = ee(ee({}, wi), r);
6799
+ 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 = ee(ee({}, wi), r);
6799
6800
  return {
6800
6801
  authOptions: Ri(e),
6801
6802
  systemOptions: ee(ee({}, no), t),
@@ -6804,9 +6805,9 @@ function Ai(n) {
6804
6805
  storageInterface: i || new yi(e.clientId, _n, new er(E)),
6805
6806
  networkInterface: a || Ci,
6806
6807
  cryptoInterface: s || _n,
6807
- clientCredentials: d || Ti,
6808
+ clientCredentials: u || Ti,
6808
6809
  libraryInfo: ee(ee({}, Ei), p),
6809
- telemetry: ee(ee({}, Si), u),
6810
+ telemetry: ee(ee({}, Si), d),
6810
6811
  serverTelemetryManager: f || null,
6811
6812
  persistencePlugin: _ || null,
6812
6813
  serializableCache: k || null
@@ -6819,7 +6820,7 @@ function Ri(n) {
6819
6820
  var bt = (
6820
6821
  /** @class */
6821
6822
  function(n) {
6822
- Ue(e, n);
6823
+ ze(e, n);
6823
6824
  function e(t, r, o) {
6824
6825
  var i = n.call(this, t, r, o) || this;
6825
6826
  return i.name = "ServerError", Object.setPrototypeOf(i, e.prototype), i;
@@ -6847,7 +6848,7 @@ var yn = (
6847
6848
  }, n.postProcess = function(e, t, r) {
6848
6849
  if (n.checkResponseStatus(r) || n.checkResponseForRetryAfter(r)) {
6849
6850
  var o = {
6850
- throttleTime: n.calculateThrottleTime(parseInt(r.headers[De.RETRY_AFTER])),
6851
+ throttleTime: n.calculateThrottleTime(parseInt(r.headers[Be.RETRY_AFTER])),
6851
6852
  error: r.body.error,
6852
6853
  errorCodes: r.body.error_codes,
6853
6854
  errorMessage: r.body.error_description,
@@ -6858,7 +6859,7 @@ var yn = (
6858
6859
  }, n.checkResponseStatus = function(e) {
6859
6860
  return e.status === 429 || e.status >= 500 && e.status < 600;
6860
6861
  }, n.checkResponseForRetryAfter = function(e) {
6861
- return e.headers ? e.headers.hasOwnProperty(De.RETRY_AFTER) && (e.status < 200 || e.status >= 300) : !1;
6862
+ return e.headers ? e.headers.hasOwnProperty(Be.RETRY_AFTER) && (e.status < 200 || e.status >= 300) : !1;
6862
6863
  }, n.calculateThrottleTime = function(e) {
6863
6864
  var t = e <= 0 ? 0 : e, r = Date.now() / 1e3;
6864
6865
  return Math.floor(Math.min(r + (t || Jt.DEFAULT_THROTTLE_TIME_SECONDS), r + Jt.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1e3);
@@ -6908,10 +6909,10 @@ var Pi = (
6908
6909
  }()
6909
6910
  );
6910
6911
  /*! @azure/msal-common v13.3.1 2023-10-27 */
6911
- var Be;
6912
+ var xe;
6912
6913
  (function(n) {
6913
6914
  n.HOME_ACCOUNT_ID = "home_account_id", n.UPN = "UPN";
6914
- })(Be || (Be = {}));
6915
+ })(xe || (xe = {}));
6915
6916
  /*! @azure/msal-common v13.3.1 2023-10-27 */
6916
6917
  var ft = (
6917
6918
  /** @class */
@@ -6985,9 +6986,9 @@ var Zt = (
6985
6986
  }, n.prototype.addLoginHint = function(e) {
6986
6987
  this.parameters.set(Yt.LOGIN_HINT, encodeURIComponent(e));
6987
6988
  }, n.prototype.addCcsUpn = function(e) {
6988
- this.parameters.set(De.CCS_HEADER, encodeURIComponent("UPN:" + e));
6989
+ this.parameters.set(Be.CCS_HEADER, encodeURIComponent("UPN:" + e));
6989
6990
  }, n.prototype.addCcsOid = function(e) {
6990
- this.parameters.set(De.CCS_HEADER, encodeURIComponent("Oid:" + e.uid + "@" + e.utid));
6991
+ this.parameters.set(Be.CCS_HEADER, encodeURIComponent("Oid:" + e.uid + "@" + e.utid));
6991
6992
  }, n.prototype.addSid = function(e) {
6992
6993
  this.parameters.set(Yt.SID, encodeURIComponent(e));
6993
6994
  }, n.prototype.addClaims = function(e, t) {
@@ -7081,18 +7082,18 @@ var nr = (
7081
7082
  }
7082
7083
  return n.prototype.createTokenRequestHeaders = function(e) {
7083
7084
  var t = {};
7084
- if (t[De.CONTENT_TYPE] = g.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
7085
+ if (t[Be.CONTENT_TYPE] = g.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
7085
7086
  switch (e.type) {
7086
- case Be.HOME_ACCOUNT_ID:
7087
+ case xe.HOME_ACCOUNT_ID:
7087
7088
  try {
7088
7089
  var r = Pt(e.credential);
7089
- t[De.CCS_HEADER] = "Oid:" + r.uid + "@" + r.utid;
7090
+ t[Be.CCS_HEADER] = "Oid:" + r.uid + "@" + r.utid;
7090
7091
  } catch (o) {
7091
7092
  this.logger.verbose("Could not parse home account ID for CCS Header: " + o);
7092
7093
  }
7093
7094
  break;
7094
- case Be.UPN:
7095
- t[De.CCS_HEADER] = "UPN: " + e.credential;
7095
+ case xe.UPN:
7096
+ t[Be.CCS_HEADER] = "UPN: " + e.credential;
7096
7097
  break;
7097
7098
  }
7098
7099
  return t;
@@ -7144,15 +7145,15 @@ var rr = (
7144
7145
  default:
7145
7146
  throw O.createUnexpectedCredentialTypeError();
7146
7147
  }
7147
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, d, p) {
7148
- var u = [
7148
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
7149
+ var d = [
7149
7150
  this.generateAccountIdForCacheKey(e, t),
7150
7151
  this.generateCredentialIdForCacheKey(r, o, i, s),
7151
7152
  this.generateTargetForCacheKey(a),
7152
7153
  this.generateClaimsHashForCacheKey(p),
7153
- this.generateSchemeForCacheKey(d)
7154
+ this.generateSchemeForCacheKey(u)
7154
7155
  ];
7155
- return u.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7156
+ return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7156
7157
  }, n.generateAccountIdForCacheKey = function(e, t) {
7157
7158
  var r = [e, t];
7158
7159
  return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -7176,7 +7177,7 @@ var rr = (
7176
7177
  var gt = (
7177
7178
  /** @class */
7178
7179
  function(n) {
7179
- Ue(e, n);
7180
+ ze(e, n);
7180
7181
  function e() {
7181
7182
  return n !== null && n.apply(this, arguments) || this;
7182
7183
  }
@@ -7215,21 +7216,21 @@ var Ke = (
7215
7216
  var _t = (
7216
7217
  /** @class */
7217
7218
  function(n) {
7218
- Ue(e, n);
7219
+ ze(e, n);
7219
7220
  function e() {
7220
7221
  return n !== null && n.apply(this, arguments) || this;
7221
7222
  }
7222
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, d, p, u, f, _, k, E, N, Q) {
7223
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
7223
7224
  var X, G, $ = new e();
7224
7225
  $.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
7225
7226
  var Ae = Ke.nowSeconds();
7226
- 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(_) ? ne.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== ne.BEARER.toLowerCase())
7227
+ if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? ne.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== ne.BEARER.toLowerCase())
7227
7228
  switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
7228
7229
  case ne.POP:
7229
- var xe = rt.extractTokenClaims(o, u);
7230
- if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
7230
+ var Ue = rt.extractTokenClaims(o, d);
7231
+ if (!(!((G = Ue == null ? void 0 : Ue.cnf) === null || G === void 0) && G.kid))
7231
7232
  throw O.createTokenClaimsRequiredError();
7232
- $.keyId = xe.cnf.kid;
7233
+ $.keyId = Ue.cnf.kid;
7233
7234
  break;
7234
7235
  case ne.SSH:
7235
7236
  $.keyId = E;
@@ -7244,13 +7245,13 @@ var _t = (
7244
7245
  var Mt = (
7245
7246
  /** @class */
7246
7247
  function(n) {
7247
- Ue(e, n);
7248
+ ze(e, n);
7248
7249
  function e() {
7249
7250
  return n !== null && n.apply(this, arguments) || this;
7250
7251
  }
7251
7252
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
7252
- var d = new e();
7253
- 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;
7253
+ var u = new e();
7254
+ 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;
7254
7255
  }, e.isRefreshTokenEntity = function(t) {
7255
7256
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
7256
7257
  }, e;
@@ -7279,14 +7280,14 @@ var Ir = [
7279
7280
  }, Ye = (
7280
7281
  /** @class */
7281
7282
  function(n) {
7282
- Ue(e, n);
7283
- function e(t, r, o, i, a, s, d) {
7283
+ ze(e, n);
7284
+ function e(t, r, o, i, a, s, u) {
7284
7285
  var p = n.call(this, t, r, o) || this;
7285
- 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;
7286
+ return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = u || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7286
7287
  }
7287
7288
  return e.isInteractionRequiredError = function(t, r, o) {
7288
- var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(d) {
7289
- return r.indexOf(d) > -1;
7289
+ var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
7290
+ return r.indexOf(u) > -1;
7290
7291
  });
7291
7292
  return i || s || a;
7292
7293
  }, e.createNoTokensFoundError = function() {
@@ -7335,8 +7336,8 @@ var st = (
7335
7336
  userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
7336
7337
  libraryState: s
7337
7338
  };
7338
- } catch (d) {
7339
- throw O.createInvalidStateError(t, d);
7339
+ } catch (u) {
7340
+ throw O.createInvalidStateError(t, u);
7340
7341
  }
7341
7342
  }, n;
7342
7343
  }()
@@ -7509,11 +7510,11 @@ var xt = (
7509
7510
  });
7510
7511
  }, n.prototype.signPayload = function(e, t, r, o) {
7511
7512
  return j(this, void 0, void 0, function() {
7512
- var i, a, s, d, p, u;
7513
+ var i, a, s, u, p, d;
7513
7514
  return K(this, function(f) {
7514
7515
  switch (f.label) {
7515
7516
  case 0:
7516
- 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(ee({ 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)];
7517
+ 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(ee({ 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)];
7517
7518
  case 1:
7518
7519
  return [2, f.sent()];
7519
7520
  }
@@ -7595,14 +7596,14 @@ var wn = (
7595
7596
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
7596
7597
  throw new bt(e.error, t, e.suberror);
7597
7598
  }
7598
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, d, p) {
7599
- var u;
7599
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
7600
+ var d;
7600
7601
  return j(this, void 0, void 0, function() {
7601
7602
  var f, _, k, E, N, Q, X;
7602
7603
  return K(this, function(G) {
7603
7604
  switch (G.label) {
7604
7605
  case 0:
7605
- if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7606
+ if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7606
7607
  if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
7607
7608
  throw O.createNonceMismatchError();
7608
7609
  if (o.maxAge || o.maxAge === 0) {
@@ -7617,7 +7618,7 @@ var wn = (
7617
7618
  case 2:
7618
7619
  G.sent(), G.label = 3;
7619
7620
  case 3:
7620
- 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)];
7621
+ 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)];
7621
7622
  case 4:
7622
7623
  return G.sent(), [3, 8];
7623
7624
  case 5:
@@ -7635,20 +7636,20 @@ var wn = (
7635
7636
  });
7636
7637
  });
7637
7638
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
7638
- var d = t.getPreferredCache();
7639
- if (L.isEmpty(d))
7639
+ var u = t.getPreferredCache();
7640
+ if (L.isEmpty(u))
7640
7641
  throw O.createInvalidCacheEnvironmentError();
7641
- var p, u;
7642
- !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));
7642
+ var p, d;
7643
+ !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), d = this.generateAccountEntity(e, i, t, s));
7643
7644
  var f = null;
7644
7645
  if (!L.isEmpty(e.access_token)) {
7645
7646
  var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, N = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = N && N > 0 ? r + N : void 0;
7646
- 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);
7647
+ f = _t.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
7647
7648
  }
7648
7649
  var $ = null;
7649
- L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, d, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7650
+ L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7650
7651
  var Ae = null;
7651
- return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, d, e.foci)), new en(u, p, f, $, Ae);
7652
+ return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new en(d, p, f, $, Ae);
7652
7653
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
7653
7654
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
7654
7655
  if (i === Se.Adfs)
@@ -7656,10 +7657,10 @@ var wn = (
7656
7657
  if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
7657
7658
  throw O.createClientInfoEmptyError();
7658
7659
  return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
7659
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, d, p) {
7660
- var u, f, _;
7660
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
7661
+ var d, f, _;
7661
7662
  return j(this, void 0, void 0, function() {
7662
- var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
7663
+ var k, E, N, Q, X, G, $, Ae, Ue, Ve, Ct;
7663
7664
  return K(this, function(ce) {
7664
7665
  switch (ce.label) {
7665
7666
  case 0:
@@ -7667,9 +7668,9 @@ var wn = (
7667
7668
  return [3, 4];
7668
7669
  if (r.accessToken.tokenType !== ne.POP)
7669
7670
  return [3, 2];
7670
- if (G = new xt(e), $ = r.accessToken, Ae = $.secret, xe = $.keyId, !xe)
7671
+ if (G = new xt(e), $ = r.accessToken, Ae = $.secret, Ue = $.keyId, !Ue)
7671
7672
  throw O.createKeyIdMissingError();
7672
- return [4, G.signPopToken(Ae, xe, i)];
7673
+ return [4, G.signPopToken(Ae, Ue, i)];
7673
7674
  case 1:
7674
7675
  return k = ce.sent(), [3, 3];
7675
7676
  case 2:
@@ -7677,7 +7678,7 @@ var wn = (
7677
7678
  case 3:
7678
7679
  E = Ee.fromString(r.accessToken.target).asArray(), N = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
7679
7680
  case 4:
7680
- return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, d != null && d.spa_accountid && r.account && (r.account.nativeAccountId = d == null ? void 0 : d.spa_accountid), [2, {
7681
+ return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
7681
7682
  authority: t.canonicalAuthority,
7682
7683
  uniqueId: Ve,
7683
7684
  tenantId: Ct,
@@ -7692,11 +7693,11 @@ var wn = (
7692
7693
  requestId: p || g.EMPTY_STRING,
7693
7694
  extExpiresOn: Q,
7694
7695
  familyId: X,
7695
- tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || g.EMPTY_STRING,
7696
+ tokenType: ((d = r.accessToken) === null || d === void 0 ? void 0 : d.tokenType) || g.EMPTY_STRING,
7696
7697
  state: s ? s.userRequestState : g.EMPTY_STRING,
7697
7698
  cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
7698
7699
  msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
7699
- code: d == null ? void 0 : d.spa_code,
7700
+ code: u == null ? void 0 : u.spa_code,
7700
7701
  fromNativeBroker: !1
7701
7702
  }];
7702
7703
  }
@@ -7709,7 +7710,7 @@ var wn = (
7709
7710
  var ro = (
7710
7711
  /** @class */
7711
7712
  function(n) {
7712
- Ue(e, n);
7713
+ ze(e, n);
7713
7714
  function e(t, r) {
7714
7715
  var o = n.call(this, t, r) || this;
7715
7716
  return o.includeRedirectUri = !0, o;
@@ -7728,24 +7729,24 @@ var ro = (
7728
7729
  });
7729
7730
  });
7730
7731
  }, e.prototype.acquireToken = function(t, r) {
7731
- var o, i, a, s, d, p;
7732
+ var o, i, a, s, u, p;
7732
7733
  return j(this, void 0, void 0, function() {
7733
- var u, f, _, k, E, N, Q = this;
7734
+ var d, f, _, k, E, N, Q = this;
7734
7735
  return K(this, function(X) {
7735
7736
  switch (X.label) {
7736
7737
  case 0:
7737
7738
  if (!t || !t.code)
7738
7739
  throw O.createTokenRequestCannotBeMadeError();
7739
- 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)];
7740
+ 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)];
7740
7741
  case 1:
7741
- 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({
7742
+ return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[Be.X_MS_REQUEST_ID], E = (u = _.headers) === null || u === void 0 ? void 0 : u[Be.X_MS_HTTP_VERSION], E && (d == null || d.addStaticFields({
7742
7743
  httpVerAuthority: E
7743
7744
  })), N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
7744
- return u == null || u.endMeasurement({
7745
+ return d == null || d.endMeasurement({
7745
7746
  success: !0
7746
7747
  }), G;
7747
7748
  }).catch(function(G) {
7748
- throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
7749
+ throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), d == null || d.endMeasurement({
7749
7750
  errorCode: G.errorCode,
7750
7751
  subErrorCode: G.subError,
7751
7752
  success: !1
@@ -7770,17 +7771,17 @@ var ro = (
7770
7771
  }, e.prototype.executeTokenRequest = function(t, r) {
7771
7772
  var o, i;
7772
7773
  return j(this, void 0, void 0, function() {
7773
- var a, s, d, p, u, f, _;
7774
+ var a, s, u, p, d, f, _;
7774
7775
  return K(this, function(k) {
7775
7776
  switch (k.label) {
7776
7777
  case 0:
7777
7778
  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)];
7778
7779
  case 1:
7779
- if (d = k.sent(), p = void 0, r.clientInfo)
7780
+ if (u = k.sent(), p = void 0, r.clientInfo)
7780
7781
  try {
7781
- u = vn(r.clientInfo, this.cryptoUtils), p = {
7782
- credential: "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid,
7783
- type: Be.HOME_ACCOUNT_ID
7782
+ d = vn(r.clientInfo, this.cryptoUtils), p = {
7783
+ credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
7784
+ type: xe.HOME_ACCOUNT_ID
7784
7785
  };
7785
7786
  } catch (E) {
7786
7787
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
@@ -7795,20 +7796,20 @@ var ro = (
7795
7796
  resourceRequestUri: r.resourceRequestUri,
7796
7797
  shrClaims: r.shrClaims,
7797
7798
  sshKid: r.sshKid
7798
- }, [2, this.executePostToTokenEndpoint(s, d, f, _)];
7799
+ }, [2, this.executePostToTokenEndpoint(s, u, f, _)];
7799
7800
  }
7800
7801
  });
7801
7802
  });
7802
7803
  }, e.prototype.createTokenRequestBody = function(t) {
7803
7804
  var r, o;
7804
7805
  return j(this, void 0, void 0, function() {
7805
- var i, a, s, d, p, u, f, f, _;
7806
+ var i, a, s, u, p, d, f, f, _;
7806
7807
  return K(this, function(k) {
7807
7808
  switch (k.label) {
7808
7809
  case 0:
7809
7810
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.AuthClientCreateTokenRequestBody, t.correlationId), i = new Zt(), 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 !== ne.POP ? [3, 2] : (s = new xt(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
7810
7811
  case 1:
7811
- return d = k.sent(), i.addPopToken(d.reqCnfString), [3, 3];
7812
+ return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
7812
7813
  case 2:
7813
7814
  if (t.authenticationScheme === ne.SSH)
7814
7815
  if (t.sshJwk)
@@ -7817,28 +7818,28 @@ var ro = (
7817
7818
  throw ie.createMissingSshJwkError();
7818
7819
  k.label = 3;
7819
7820
  case 3:
7820
- 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)
7821
+ 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)
7821
7822
  try {
7822
- f = vn(t.clientInfo, this.cryptoUtils), u = {
7823
+ f = vn(t.clientInfo, this.cryptoUtils), d = {
7823
7824
  credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
7824
- type: Be.HOME_ACCOUNT_ID
7825
+ type: xe.HOME_ACCOUNT_ID
7825
7826
  };
7826
7827
  } catch (E) {
7827
7828
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
7828
7829
  }
7829
7830
  else
7830
- u = t.ccsCredential;
7831
- if (this.config.systemOptions.preventCorsPreflight && u)
7832
- switch (u.type) {
7833
- case Be.HOME_ACCOUNT_ID:
7831
+ d = t.ccsCredential;
7832
+ if (this.config.systemOptions.preventCorsPreflight && d)
7833
+ switch (d.type) {
7834
+ case xe.HOME_ACCOUNT_ID:
7834
7835
  try {
7835
- f = Pt(u.credential), i.addCcsOid(f);
7836
+ f = Pt(d.credential), i.addCcsOid(f);
7836
7837
  } catch (E) {
7837
7838
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
7838
7839
  }
7839
7840
  break;
7840
- case Be.UPN:
7841
- i.addCcsUpn(u.credential);
7841
+ case xe.UPN:
7842
+ i.addCcsUpn(d.credential);
7842
7843
  break;
7843
7844
  }
7844
7845
  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()];
@@ -7848,7 +7849,7 @@ var ro = (
7848
7849
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
7849
7850
  var r;
7850
7851
  return j(this, void 0, void 0, function() {
7851
- var o, i, a, s, d, p, p, p, u, f;
7852
+ var o, i, a, s, u, p, p, p, d, f;
7852
7853
  return K(this, function(_) {
7853
7854
  switch (_.label) {
7854
7855
  case 0:
@@ -7856,8 +7857,8 @@ var ro = (
7856
7857
  if (t.sid && t.prompt === Te.NONE)
7857
7858
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
7858
7859
  else if (t.account) {
7859
- if (s = this.extractAccountSid(t.account), d = this.extractLoginHint(t.account), d) {
7860
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(d);
7860
+ if (s = this.extractAccountSid(t.account), u = this.extractLoginHint(t.account), u) {
7861
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(u);
7861
7862
  try {
7862
7863
  p = Pt(t.account.homeAccountId), o.addCcsOid(p);
7863
7864
  } catch {
@@ -7884,7 +7885,7 @@ var ro = (
7884
7885
  t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
7885
7886
  else
7886
7887
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
7887
- 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 !== ne.POP ? [3, 2] : (u = new xt(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
7888
+ 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 !== ne.POP ? [3, 2] : (d = new xt(this.cryptoUtils), [4, d.generateCnf(t)])) : [3, 2];
7888
7889
  case 1:
7889
7890
  f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
7890
7891
  case 2:
@@ -7908,29 +7909,29 @@ var ro = (
7908
7909
  var oo = (
7909
7910
  /** @class */
7910
7911
  function(n) {
7911
- Ue(e, n);
7912
+ ze(e, n);
7912
7913
  function e(t, r) {
7913
7914
  return n.call(this, t, r) || this;
7914
7915
  }
7915
7916
  return e.prototype.acquireToken = function(t) {
7916
- var r, o, i, a, s, d, p;
7917
+ var r, o, i, a, s, u, p;
7917
7918
  return j(this, void 0, void 0, function() {
7918
- var u, f, _, k, E, N, Q = this;
7919
+ var d, f, _, k, E, N, Q = this;
7919
7920
  return K(this, function(X) {
7920
7921
  switch (X.label) {
7921
7922
  case 0:
7922
- 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)];
7923
+ 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)];
7923
7924
  case 1:
7924
- return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
7925
+ return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[Be.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
7925
7926
  refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
7926
- }), k && (u == null || u.addStaticFields({
7927
+ }), k && (d == null || d.addStaticFields({
7927
7928
  httpVerToken: k
7928
- })), 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) {
7929
- return u == null || u.endMeasurement({
7929
+ })), E = (u = _.headers) === null || u === void 0 ? void 0 : u[Be.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) {
7930
+ return d == null || d.endMeasurement({
7930
7931
  success: !0
7931
7932
  }), G;
7932
7933
  }).catch(function(G) {
7933
- throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
7934
+ throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), d == null || d.endMeasurement({
7934
7935
  errorCode: G.errorCode,
7935
7936
  subErrorCode: G.subError,
7936
7937
  success: !1
@@ -7942,8 +7943,8 @@ var oo = (
7942
7943
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
7943
7944
  var r, o, i, a;
7944
7945
  return j(this, void 0, void 0, function() {
7945
- var s, d, p;
7946
- return K(this, function(u) {
7946
+ var s, u, p;
7947
+ return K(this, function(d) {
7947
7948
  if (!t)
7948
7949
  throw ie.createEmptyTokenRequestError();
7949
7950
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -7952,7 +7953,7 @@ var oo = (
7952
7953
  try {
7953
7954
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
7954
7955
  } catch (f) {
7955
- if (d = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, d || p)
7956
+ if (u = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
7956
7957
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
7957
7958
  throw f;
7958
7959
  }
@@ -7962,28 +7963,28 @@ var oo = (
7962
7963
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
7963
7964
  var o, i, a;
7964
7965
  return j(this, void 0, void 0, function() {
7965
- var s, d, p;
7966
- return K(this, function(u) {
7967
- 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)
7966
+ var s, u, p;
7967
+ return K(this, function(d) {
7968
+ 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)
7968
7969
  throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
7969
7970
  return s == null || s.endMeasurement({
7970
7971
  success: !0
7971
- }), p = ee(ee({}, t), { refreshToken: d.secret, authenticationScheme: t.authenticationScheme || ne.BEARER, ccsCredential: {
7972
+ }), p = ee(ee({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || ne.BEARER, ccsCredential: {
7972
7973
  credential: t.account.homeAccountId,
7973
- type: Be.HOME_ACCOUNT_ID
7974
+ type: xe.HOME_ACCOUNT_ID
7974
7975
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
7975
7976
  });
7976
7977
  });
7977
7978
  }, e.prototype.executeTokenRequest = function(t, r) {
7978
7979
  var o, i, a;
7979
7980
  return j(this, void 0, void 0, function() {
7980
- var s, d, p, u, f, _;
7981
+ var s, u, p, d, f, _;
7981
7982
  return K(this, function(k) {
7982
7983
  switch (k.label) {
7983
7984
  case 0:
7984
- 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)];
7985
+ 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)];
7985
7986
  case 1:
7986
- return u = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7987
+ return d = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7987
7988
  clientId: this.config.authOptions.clientId,
7988
7989
  authority: r.canonicalAuthority,
7989
7990
  scopes: t.scopes,
@@ -7993,7 +7994,7 @@ var oo = (
7993
7994
  resourceRequestUri: t.resourceRequestUri,
7994
7995
  shrClaims: t.shrClaims,
7995
7996
  sshKid: t.sshKid
7996
- }, [2, this.executePostToTokenEndpoint(p, u, f, _).then(function(E) {
7997
+ }, [2, this.executePostToTokenEndpoint(p, d, f, _).then(function(E) {
7997
7998
  return s == null || s.endMeasurement({
7998
7999
  success: !0
7999
8000
  }), E;
@@ -8008,39 +8009,39 @@ var oo = (
8008
8009
  }, e.prototype.createTokenRequestBody = function(t) {
8009
8010
  var r, o, i;
8010
8011
  return j(this, void 0, void 0, function() {
8011
- var a, s, d, p, u, f, _;
8012
+ var a, s, u, p, d, f, _;
8012
8013
  return K(this, function(k) {
8013
8014
  switch (k.label) {
8014
8015
  case 0:
8015
- 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 Zt(), 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 !== ne.POP ? [3, 2] : (u = new xt(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
8016
+ 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 Zt(), 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 !== ne.POP ? [3, 2] : (d = new xt(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.PopTokenGenerateCnf, t.correlationId), [4, d.generateCnf(t)]);
8016
8017
  case 1:
8017
- return f = k.sent(), d.addPopToken(f.reqCnfString), [3, 3];
8018
+ return f = k.sent(), u.addPopToken(f.reqCnfString), [3, 3];
8018
8019
  case 2:
8019
8020
  if (t.authenticationScheme === ne.SSH)
8020
8021
  if (t.sshJwk)
8021
- d.addSshJwk(t.sshJwk);
8022
+ u.addSshJwk(t.sshJwk);
8022
8023
  else
8023
8024
  throw s == null || s.endMeasurement({
8024
8025
  success: !1
8025
8026
  }), ie.createMissingSshJwkError();
8026
8027
  k.label = 3;
8027
8028
  case 3:
8028
- 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)
8029
+ 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)
8029
8030
  switch (t.ccsCredential.type) {
8030
- case Be.HOME_ACCOUNT_ID:
8031
+ case xe.HOME_ACCOUNT_ID:
8031
8032
  try {
8032
- _ = Pt(t.ccsCredential.credential), d.addCcsOid(_);
8033
+ _ = Pt(t.ccsCredential.credential), u.addCcsOid(_);
8033
8034
  } catch (E) {
8034
8035
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
8035
8036
  }
8036
8037
  break;
8037
- case Be.UPN:
8038
- d.addCcsUpn(t.ccsCredential.credential);
8038
+ case xe.UPN:
8039
+ u.addCcsUpn(t.ccsCredential.credential);
8039
8040
  break;
8040
8041
  }
8041
8042
  return s == null || s.endMeasurement({
8042
8043
  success: !0
8043
- }), [2, d.createQueryString()];
8044
+ }), [2, u.createQueryString()];
8044
8045
  }
8045
8046
  });
8046
8047
  });
@@ -8051,7 +8052,7 @@ var oo = (
8051
8052
  var Oi = (
8052
8053
  /** @class */
8053
8054
  function(n) {
8054
- Ue(e, n);
8055
+ ze(e, n);
8055
8056
  function e(t, r) {
8056
8057
  return n.call(this, t, r) || this;
8057
8058
  }
@@ -8079,9 +8080,9 @@ var Oi = (
8079
8080
  }, e.prototype.acquireCachedToken = function(t) {
8080
8081
  var r, o, i, a, s;
8081
8082
  return j(this, void 0, void 0, function() {
8082
- var d, p;
8083
- return K(this, function(u) {
8084
- switch (u.label) {
8083
+ var u, p;
8084
+ return K(this, function(d) {
8085
+ switch (d.label) {
8085
8086
  case 0:
8086
8087
  if (!t)
8087
8088
  throw ie.createEmptyTokenRequestError();
@@ -8091,7 +8092,7 @@ var Oi = (
8091
8092
  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();
8092
8093
  if (!t.account)
8093
8094
  throw O.createNoAccountInSilentRequestError();
8094
- if (d = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, d), p.accessToken) {
8095
+ if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
8095
8096
  if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
8096
8097
  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();
8097
8098
  if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -8100,7 +8101,7 @@ var Oi = (
8100
8101
  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();
8101
8102
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
8102
8103
  case 1:
8103
- return [2, u.sent()];
8104
+ return [2, d.sent()];
8104
8105
  }
8105
8106
  });
8106
8107
  });
@@ -8175,31 +8176,31 @@ var Bi = (
8175
8176
  return n.prototype.detectRegion = function(e, t) {
8176
8177
  var r, o, i, a;
8177
8178
  return j(this, void 0, void 0, function() {
8178
- var s, d, p, u, f;
8179
+ var s, u, p, d, f;
8179
8180
  return K(this, function(_) {
8180
8181
  switch (_.label) {
8181
8182
  case 0:
8182
8183
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
8183
8184
  return [3, 8];
8184
- d = n.IMDS_OPTIONS, _.label = 1;
8185
+ u = n.IMDS_OPTIONS, _.label = 1;
8185
8186
  case 1:
8186
- 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)];
8187
+ 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)];
8187
8188
  case 2:
8188
- return p = _.sent(), p.status === Rt.httpSuccess && (s = p.body, t.region_source = ut.IMDS), p.status !== Rt.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(d)]);
8189
+ return p = _.sent(), p.status === Rt.httpSuccess && (s = p.body, t.region_source = dt.IMDS), p.status !== Rt.httpBadRequest ? [3, 5] : ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RegionDiscoveryGetCurrentVersion, this.correlationId), [4, this.getCurrentVersion(u)]);
8189
8190
  case 3:
8190
- 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]);
8191
+ 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]);
8191
8192
  case 4:
8192
- f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source = ut.IMDS), _.label = 5;
8193
+ f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source = dt.IMDS), _.label = 5;
8193
8194
  case 5:
8194
8195
  return [3, 7];
8195
8196
  case 6:
8196
- return _.sent(), t.region_source = ut.FAILED_AUTO_DETECTION, [2, null];
8197
+ return _.sent(), t.region_source = dt.FAILED_AUTO_DETECTION, [2, null];
8197
8198
  case 7:
8198
8199
  return [3, 9];
8199
8200
  case 8:
8200
- t.region_source = ut.ENVIRONMENT_VARIABLE, _.label = 9;
8201
+ t.region_source = dt.ENVIRONMENT_VARIABLE, _.label = 9;
8201
8202
  case 9:
8202
- return s || (t.region_source = ut.FAILED_AUTO_DETECTION), [2, s || null];
8203
+ return s || (t.region_source = dt.FAILED_AUTO_DETECTION), [2, s || null];
8203
8204
  }
8204
8205
  });
8205
8206
  });
@@ -8397,13 +8398,13 @@ var on = (
8397
8398
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
8398
8399
  }, n.prototype.replacePath = function(e) {
8399
8400
  var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
8400
- return s.forEach(function(d, p) {
8401
- var u = a[p];
8401
+ return s.forEach(function(u, p) {
8402
+ var d = a[p];
8402
8403
  if (p === 0 && t.canReplaceTenant(i)) {
8403
8404
  var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
8404
- u !== f && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + f), u = f);
8405
+ d !== f && (t.logger.verbose("Replacing tenant domain name " + d + " with id " + f), d = f);
8405
8406
  }
8406
- d !== u && (r = r.replace("/" + u + "/", "/" + d + "/"));
8407
+ u !== d && (r = r.replace("/" + d + "/", "/" + u + "/"));
8407
8408
  }), this.replaceTenant(r);
8408
8409
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
8409
8410
  /**
@@ -8420,14 +8421,14 @@ var on = (
8420
8421
  var e, t, r;
8421
8422
  return j(this, void 0, void 0, function() {
8422
8423
  var o, i, a, s;
8423
- return K(this, function(d) {
8424
- switch (d.label) {
8424
+ return K(this, function(u) {
8425
+ switch (u.label) {
8425
8426
  case 0:
8426
8427
  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)];
8427
8428
  case 1:
8428
- 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)];
8429
+ 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)];
8429
8430
  case 2:
8430
- 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, [
8431
+ 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, [
8431
8432
  2
8432
8433
  /*return*/
8433
8434
  ];
@@ -8437,21 +8438,21 @@ var on = (
8437
8438
  }, n.prototype.updateEndpointMetadata = function(e) {
8438
8439
  var t, r, o, i, a, s;
8439
8440
  return j(this, void 0, void 0, function() {
8440
- var d, p;
8441
- return K(this, function(u) {
8442
- switch (u.label) {
8441
+ var u, p;
8442
+ return K(this, function(d) {
8443
+ switch (d.label) {
8443
8444
  case 0:
8444
- 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()]);
8445
+ 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()]);
8445
8446
  case 1:
8446
- 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];
8447
+ 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];
8447
8448
  case 2:
8448
- d = u.sent(), u.label = 3;
8449
+ u = d.sent(), d.label = 3;
8449
8450
  case 3:
8450
- return e.updateEndpointMetadata(d, !0), [2, Fe.NETWORK];
8451
+ return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
8451
8452
  case 4:
8452
8453
  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];
8453
8454
  case 5:
8454
- p = u.sent(), u.label = 6;
8455
+ p = d.sent(), d.label = 6;
8455
8456
  case 6:
8456
8457
  return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
8457
8458
  case 7:
@@ -8498,14 +8499,14 @@ var on = (
8498
8499
  var t, r, o, i;
8499
8500
  return j(this, void 0, void 0, function() {
8500
8501
  var a, s;
8501
- return K(this, function(d) {
8502
- switch (d.label) {
8502
+ return K(this, function(u) {
8503
+ switch (u.label) {
8503
8504
  case 0:
8504
8505
  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 = Xt.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];
8505
8506
  case 1:
8506
- if (s = d.sent(), s)
8507
+ if (s = u.sent(), s)
8507
8508
  return this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
8508
- this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED, d.label = 2;
8509
+ this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
8509
8510
  case 2:
8510
8511
  return [2, e];
8511
8512
  }
@@ -8547,15 +8548,15 @@ var on = (
8547
8548
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
8548
8549
  var e;
8549
8550
  return j(this, void 0, void 0, function() {
8550
- var t, r, o, i, a, s, d, p;
8551
- return K(this, function(u) {
8552
- switch (u.label) {
8551
+ var t, r, o, i, a, s, u, p;
8552
+ return K(this, function(d) {
8553
+ switch (d.label) {
8553
8554
  case 0:
8554
- (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;
8555
+ (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;
8555
8556
  case 1:
8556
- return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8557
+ return d.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8557
8558
  case 2:
8558
- if (i = u.sent(), a = void 0, s = void 0, Ui(i.body))
8559
+ if (i = d.sent(), a = void 0, s = void 0, Ui(i.body))
8559
8560
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
8560
8561
  else if (xi(i.body)) {
8561
8562
  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)
@@ -8565,9 +8566,9 @@ var on = (
8565
8566
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
8566
8567
  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];
8567
8568
  case 3:
8568
- return d = u.sent(), d instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8569
- Error: ` + d.errorCode + `
8570
- Error Description: ` + d.errorMessage) : (p = d, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8569
+ return u = d.sent(), u instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8570
+ Error: ` + u.errorCode + `
8571
+ Error Description: ` + u.errorMessage) : (p = u, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8571
8572
  Error: ` + p.name + `
8572
8573
  Error Description: ` + p.message)), [2, null];
8573
8574
  case 4:
@@ -8643,17 +8644,17 @@ var bn = (
8643
8644
  }
8644
8645
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
8645
8646
  return j(this, void 0, void 0, function() {
8646
- var d, p, u;
8647
+ var u, p, d;
8647
8648
  return K(this, function(f) {
8648
8649
  switch (f.label) {
8649
8650
  case 0:
8650
- a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), d = on.transformCIAMAuthority(e), p = n.createInstance(d, t, r, o, i, a, s), f.label = 1;
8651
+ a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), u = on.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), f.label = 1;
8651
8652
  case 1:
8652
8653
  return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
8653
8654
  case 2:
8654
8655
  return f.sent(), [2, p];
8655
8656
  case 3:
8656
- throw u = f.sent(), O.createEndpointDiscoveryIncompleteError(u);
8657
+ throw d = f.sent(), O.createEndpointDiscoveryIncompleteError(d);
8657
8658
  case 4:
8658
8659
  return [
8659
8660
  2
@@ -8708,7 +8709,7 @@ var Di = {
8708
8709
  }
8709
8710
  };
8710
8711
  /*! @azure/msal-common v13.3.1 2023-10-27 */
8711
- var dn = {
8712
+ var un = {
8712
8713
  missingKidError: {
8713
8714
  code: "missing_kid_error",
8714
8715
  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."
@@ -8720,15 +8721,15 @@ var dn = {
8720
8721
  }, Pr = (
8721
8722
  /** @class */
8722
8723
  function(n) {
8723
- Ue(e, n);
8724
+ ze(e, n);
8724
8725
  function e(t, r) {
8725
8726
  var o = n.call(this, t, r) || this;
8726
8727
  return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
8727
8728
  }
8728
8729
  return e.createMissingKidError = function() {
8729
- return new e(dn.missingKidError.code, dn.missingKidError.desc);
8730
+ return new e(un.missingKidError.code, un.missingKidError.desc);
8730
8731
  }, e.createMissingAlgError = function() {
8731
- return new e(dn.missingAlgError.code, dn.missingAlgError.desc);
8732
+ return new e(un.missingAlgError.code, un.missingAlgError.desc);
8732
8733
  }, e;
8733
8734
  }(D)
8734
8735
  );
@@ -8787,8 +8788,8 @@ var qi = (
8787
8788
  }, n.maxErrorsToSend = function(e) {
8788
8789
  var t, r = 0, o = 0, i = e.errors.length;
8789
8790
  for (t = 0; t < i; t++) {
8790
- 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;
8791
- if (o += a.toString().length + s.toString().length + d.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8791
+ 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;
8792
+ if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8792
8793
  r += 1;
8793
8794
  else
8794
8795
  break;
@@ -8856,7 +8857,7 @@ var ao = (
8856
8857
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
8857
8858
  var s = this.startPerformanceMeasuremeant(e, a);
8858
8859
  s.startMeasurement();
8859
- var d = {
8860
+ var u = {
8860
8861
  eventId: this.generateId(),
8861
8862
  status: kn.InProgress,
8862
8863
  authority: this.authority,
@@ -8869,41 +8870,41 @@ var ao = (
8869
8870
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
8870
8871
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
8871
8872
  };
8872
- return this.cacheEventByCorrelationId(d), {
8873
+ return this.cacheEventByCorrelationId(u), {
8873
8874
  endMeasurement: function(p) {
8874
- return r.endMeasurement(ee(ee({}, d), p), s);
8875
+ return r.endMeasurement(ee(ee({}, u), p), s);
8875
8876
  },
8876
8877
  discardMeasurement: function() {
8877
- return r.discardMeasurements(d.correlationId);
8878
+ return r.discardMeasurements(u.correlationId);
8878
8879
  },
8879
8880
  addStaticFields: function(p) {
8880
- return r.addStaticFields(p, d.correlationId);
8881
+ return r.addStaticFields(p, u.correlationId);
8881
8882
  },
8882
8883
  increment: function(p) {
8883
- return r.increment(p, d.correlationId);
8884
+ return r.increment(p, u.correlationId);
8884
8885
  },
8885
8886
  measurement: s,
8886
- event: d
8887
+ event: u
8887
8888
  };
8888
8889
  }, n.prototype.endMeasurement = function(e, t) {
8889
8890
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
8890
8891
  if (!a)
8891
8892
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
8892
- var s = e.eventId === a.eventId, d = {
8893
+ var s = e.eventId === a.eventId, u = {
8893
8894
  totalQueueTime: 0,
8894
8895
  totalQueueCount: 0,
8895
8896
  manuallyCompletedCount: 0
8896
8897
  };
8897
- 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();
8898
+ 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();
8898
8899
  var p = t == null ? void 0 : t.flushMeasurement();
8899
8900
  if (!p)
8900
8901
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
8901
8902
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
8902
8903
  return a[e.name + "DurationMs"] = Math.floor(p), ee({}, a);
8903
- var u = ee(ee({}, a), e), f = 0;
8904
- return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8905
- r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, u.correlationId), f++;
8906
- }), u.incompleteSubMeasurements = void 0, u = ee(ee({}, 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;
8904
+ var d = ee(ee({}, a), e), f = 0;
8905
+ return (i = d.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8906
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, d.correlationId), f++;
8907
+ }), d.incompleteSubMeasurements = void 0, d = ee(ee({}, 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;
8907
8908
  }, n.prototype.addStaticFields = function(e, t) {
8908
8909
  this.logger.trace("PerformanceClient: Updating static fields");
8909
8910
  var r = this.eventsByCorrelationId.get(t);
@@ -8967,7 +8968,7 @@ var Mr = (
8967
8968
  ), Fi = (
8968
8969
  /** @class */
8969
8970
  function(n) {
8970
- Ue(e, n);
8971
+ ze(e, n);
8971
8972
  function e() {
8972
8973
  return n !== null && n.apply(this, arguments) || this;
8973
8974
  }
@@ -9516,7 +9517,7 @@ var $n = (
9516
9517
  return this.internalStorage;
9517
9518
  }
9518
9519
  }, e.prototype.migrateCacheEntries = function() {
9519
- 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];
9520
+ 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];
9520
9521
  _.forEach(function(k, E) {
9521
9522
  return t.migrateCacheEntry(k, f[E]);
9522
9523
  });
@@ -9535,33 +9536,33 @@ var $n = (
9535
9536
  if (t.isCredentialKey(a)) {
9536
9537
  var s = t.getItem(a);
9537
9538
  if (s) {
9538
- var d = t.validateAndParseJson(s);
9539
- if (d && d.hasOwnProperty("credentialType"))
9540
- switch (d.credentialType) {
9539
+ var u = t.validateAndParseJson(s);
9540
+ if (u && u.hasOwnProperty("credentialType"))
9541
+ switch (u.credentialType) {
9541
9542
  case H.ID_TOKEN:
9542
- if (gt.isIdTokenEntity(d)) {
9543
+ if (gt.isIdTokenEntity(u)) {
9543
9544
  t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + a + " found, saving key to token key map");
9544
- var p = Me.toObject(new gt(), d), u = t.updateCredentialCacheKey(a, p);
9545
- t.addTokenKey(u, H.ID_TOKEN);
9545
+ var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9546
+ t.addTokenKey(d, H.ID_TOKEN);
9546
9547
  return;
9547
9548
  } else
9548
9549
  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);
9549
9550
  break;
9550
9551
  case H.ACCESS_TOKEN:
9551
9552
  case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
9552
- if (_t.isAccessTokenEntity(d)) {
9553
+ if (_t.isAccessTokenEntity(u)) {
9553
9554
  t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
9554
- var f = Me.toObject(new _t(), d), u = t.updateCredentialCacheKey(a, f);
9555
- t.addTokenKey(u, H.ACCESS_TOKEN);
9555
+ var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9556
+ t.addTokenKey(d, H.ACCESS_TOKEN);
9556
9557
  return;
9557
9558
  } else
9558
9559
  t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + a);
9559
9560
  break;
9560
9561
  case H.REFRESH_TOKEN:
9561
- if (Mt.isRefreshTokenEntity(d)) {
9562
+ if (Mt.isRefreshTokenEntity(u)) {
9562
9563
  t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + a + " found, saving key to token key map");
9563
- var _ = Me.toObject(new Mt(), d), u = t.updateCredentialCacheKey(a, _);
9564
- t.addTokenKey(u, H.REFRESH_TOKEN);
9564
+ var _ = Me.toObject(new Mt(), u), d = t.updateCredentialCacheKey(a, _);
9565
+ t.addTokenKey(d, H.REFRESH_TOKEN);
9565
9566
  return;
9566
9567
  } else
9567
9568
  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);
@@ -9922,21 +9923,21 @@ var $n = (
9922
9923
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
9923
9924
  var s = this.generateStateKey(t);
9924
9925
  this.setTemporaryCache(s, t, !1);
9925
- var d = this.generateNonceKey(t);
9926
- this.setTemporaryCache(d, r, !1);
9926
+ var u = this.generateNonceKey(t);
9927
+ this.setTemporaryCache(u, r, !1);
9927
9928
  var p = this.generateAuthorityKey(t);
9928
9929
  if (this.setTemporaryCache(p, o, !1), a) {
9929
- var u = {
9930
+ var d = {
9930
9931
  credential: a.homeAccountId,
9931
- type: Be.HOME_ACCOUNT_ID
9932
+ type: xe.HOME_ACCOUNT_ID
9932
9933
  };
9933
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9934
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9934
9935
  } else if (!L.isEmpty(i)) {
9935
- var u = {
9936
+ var d = {
9936
9937
  credential: i,
9937
- type: Be.UPN
9938
+ type: xe.UPN
9938
9939
  };
9939
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9940
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9940
9941
  }
9941
9942
  }, e.prototype.resetRequestCache = function(t) {
9942
9943
  var r = this;
@@ -10158,9 +10159,9 @@ var Qi = (
10158
10159
  ), o.setXhrHeaders(s, r), s.onload = function() {
10159
10160
  (s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)));
10160
10161
  try {
10161
- var d = JSON.parse(s.responseText), p = {
10162
+ var u = JSON.parse(s.responseText), p = {
10162
10163
  headers: o.getHeaderDict(s),
10163
- body: d,
10164
+ body: u,
10164
10165
  status: s.status
10165
10166
  };
10166
10167
  i(p);
@@ -10186,14 +10187,14 @@ var Qi = (
10186
10187
  }, n.prototype.getHeaderDict = function(e) {
10187
10188
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
10188
10189
  return r.forEach(function(i) {
10189
- var a = i.split(": "), s = a.shift(), d = a.join(": ");
10190
- s && d && (o[s] = d);
10190
+ var a = i.split(": "), s = a.shift(), u = a.join(": ");
10191
+ s && u && (o[s] = u);
10191
10192
  }), o;
10192
10193
  }, n;
10193
10194
  }()
10194
10195
  );
10195
10196
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
10196
- var ue = (
10197
+ var de = (
10197
10198
  /** @class */
10198
10199
  function() {
10199
10200
  function n() {
@@ -10241,8 +10242,8 @@ var ue = (
10241
10242
  var co = (
10242
10243
  /** @class */
10243
10244
  function() {
10244
- function n(e, t, r, o, i, a, s, d, p) {
10245
- 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, tn, this.correlationId), this.performanceClient = s;
10245
+ function n(e, t, r, o, i, a, s, u, p) {
10246
+ 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, tn, this.correlationId), this.performanceClient = s;
10246
10247
  }
10247
10248
  return n.prototype.clearCacheOnLogout = function(e) {
10248
10249
  return T(this, void 0, void 0, function() {
@@ -10311,8 +10312,8 @@ var co = (
10311
10312
  });
10312
10313
  }, n.prototype.getRedirectUri = function(e) {
10313
10314
  this.logger.verbose("getRedirectUri called");
10314
- var t = e || this.config.auth.redirectUri || ue.getCurrentUri();
10315
- return W.getAbsoluteUrl(t, ue.getCurrentUri());
10315
+ var t = e || this.config.auth.redirectUri || de.getCurrentUri();
10316
+ return W.getAbsoluteUrl(t, de.getCurrentUri());
10316
10317
  }, n.prototype.validateRequestAuthority = function(e, t) {
10317
10318
  return T(this, void 0, void 0, function() {
10318
10319
  var r;
@@ -10398,7 +10399,7 @@ var jt = (
10398
10399
  this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
10399
10400
  else
10400
10401
  this.logger.verbose("logoutHint will not be set since no logout request was configured");
10401
- 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;
10402
+ 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;
10402
10403
  }, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
10403
10404
  var r = t.idTokenClaims;
10404
10405
  if (r) {
@@ -10474,7 +10475,7 @@ var jt = (
10474
10475
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
10475
10476
  var o;
10476
10477
  return T(this, void 0, void 0, function() {
10477
- var i, a, s, d;
10478
+ var i, a, s, u;
10478
10479
  return I(this, function(p) {
10479
10480
  switch (p.label) {
10480
10481
  case 0:
@@ -10484,16 +10485,16 @@ var jt = (
10484
10485
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
10485
10486
  authorityMetadata: this.config.auth.authorityMetadata,
10486
10487
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
10487
- }, s = t || this.config.auth.authority, d = on.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) {
10488
+ }, s = t || this.config.auth.authority, u = on.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) {
10488
10489
  return i.endMeasurement({
10489
10490
  success: !0
10490
- }), u;
10491
- }).catch(function(u) {
10491
+ }), d;
10492
+ }).catch(function(d) {
10492
10493
  throw i.endMeasurement({
10493
- errorCode: u.errorCode,
10494
- subErrorCode: u.subError,
10494
+ errorCode: d.errorCode,
10495
+ subErrorCode: d.subError,
10495
10496
  success: !1
10496
- }), u;
10497
+ }), d;
10497
10498
  })];
10498
10499
  case 1:
10499
10500
  return [2, p.sent()];
@@ -10502,15 +10503,15 @@ var jt = (
10502
10503
  });
10503
10504
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
10504
10505
  return T(this, void 0, void 0, function() {
10505
- var o, i, a, s, d, p, u;
10506
+ var o, i, a, s, u, p, d;
10506
10507
  return I(this, function(f) {
10507
10508
  switch (f.label) {
10508
10509
  case 0:
10509
10510
  return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
10510
10511
  interactionType: r
10511
- }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), d = [{}], [4, this.initializeBaseRequest(t)];
10512
+ }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
10512
10513
  case 1:
10513
- 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];
10514
+ 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];
10514
10515
  }
10515
10516
  });
10516
10517
  });
@@ -10527,7 +10528,7 @@ var or = (
10527
10528
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
10528
10529
  return T(this, void 0, void 0, function() {
10529
10530
  var i, a, s;
10530
- return I(this, function(d) {
10531
+ return I(this, function(u) {
10531
10532
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
10532
10533
  throw M.createEmptyHashError(e);
10533
10534
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -10542,17 +10543,17 @@ var or = (
10542
10543
  });
10543
10544
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
10544
10545
  return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
10545
- var a, s, d, p, u, f;
10546
+ var a, s, u, p, d, f;
10546
10547
  return I(this, function(_) {
10547
10548
  switch (_.label) {
10548
10549
  case 0:
10549
10550
  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)
10550
10551
  throw O.createStateNotFoundError("Cached State");
10551
- 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];
10552
+ 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];
10552
10553
  case 1:
10553
10554
  _.sent(), _.label = 2;
10554
10555
  case 2:
10555
- 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)];
10556
+ 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)];
10556
10557
  case 3:
10557
10558
  return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
10558
10559
  }
@@ -10591,8 +10592,8 @@ var Ur = (
10591
10592
  function(n) {
10592
10593
  be(e, n);
10593
10594
  function e(t, r, o, i, a, s) {
10594
- var d = n.call(this, t, r, o, i, s) || this;
10595
- return d.browserCrypto = a, d;
10595
+ var u = n.call(this, t, r, o, i, s) || this;
10596
+ return u.browserCrypto = a, u;
10596
10597
  }
10597
10598
  return e.prototype.initiateAuthRequest = function(t, r) {
10598
10599
  return T(this, void 0, void 0, function() {
@@ -10638,7 +10639,7 @@ var Ur = (
10638
10639
  });
10639
10640
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
10640
10641
  return T(this, void 0, void 0, function() {
10641
- var a, s, d, p, u, f, _;
10642
+ var a, s, u, p, d, f, _;
10642
10643
  return I(this, function(k) {
10643
10644
  switch (k.label) {
10644
10645
  case 0:
@@ -10647,15 +10648,15 @@ var Ur = (
10647
10648
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
10648
10649
  throw O.createStateNotFoundError("Cached State");
10649
10650
  try {
10650
- d = this.authModule.handleFragmentResponse(t, s);
10651
+ u = this.authModule.handleFragmentResponse(t, s);
10651
10652
  } catch (E) {
10652
10653
  throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
10653
10654
  }
10654
- 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];
10655
+ return p = this.browserStorage.generateNonceKey(s), d = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
10655
10656
  case 1:
10656
10657
  k.sent(), k.label = 2;
10657
10658
  case 2:
10658
- 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)];
10659
+ 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)];
10659
10660
  case 3:
10660
10661
  return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
10661
10662
  }
@@ -10734,21 +10735,21 @@ var lo = (
10734
10735
  return e.prototype.acquireToken = function(t) {
10735
10736
  return T(this, void 0, void 0, function() {
10736
10737
  var r, o, i, a, s;
10737
- return I(this, function(d) {
10738
- switch (d.label) {
10738
+ return I(this, function(u) {
10739
+ switch (u.label) {
10739
10740
  case 0:
10740
10741
  return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
10741
10742
  case 1:
10742
- i = d.sent(), this.logger.verbose("Silent auth client created"), d.label = 2;
10743
+ i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
10743
10744
  case 2:
10744
- return d.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10745
+ return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10745
10746
  case 3:
10746
- return a = d.sent(), r.endMeasurement({
10747
+ return a = u.sent(), r.endMeasurement({
10747
10748
  success: !0,
10748
10749
  fromCache: !0
10749
10750
  }), [2, a];
10750
10751
  case 4:
10751
- 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({
10752
+ throw s = u.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
10752
10753
  errorCode: s instanceof D && s.errorCode || void 0,
10753
10754
  subErrorCode: s instanceof D && s.subError || void 0,
10754
10755
  success: !1
@@ -10795,36 +10796,36 @@ var zt = (
10795
10796
  /** @class */
10796
10797
  function(n) {
10797
10798
  be(e, n);
10798
- function e(t, r, o, i, a, s, d, p, u, f, _, k) {
10799
- var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
10800
- 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;
10799
+ function e(t, r, o, i, a, s, u, p, d, f, _, k) {
10800
+ var E = n.call(this, t, r, o, i, a, s, p, d, k) || this;
10801
+ 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;
10801
10802
  }
10802
10803
  return e.prototype.acquireToken = function(t) {
10803
10804
  return T(this, void 0, void 0, function() {
10804
- var r, o, i, a, s, d, p;
10805
- return I(this, function(u) {
10806
- switch (u.label) {
10805
+ var r, o, i, a, s, u, p;
10806
+ return I(this, function(d) {
10807
+ switch (d.label) {
10807
10808
  case 0:
10808
10809
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
10809
10810
  case 1:
10810
- i = u.sent(), u.label = 2;
10811
+ i = d.sent(), d.label = 2;
10811
10812
  case 2:
10812
- return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10813
+ return d.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10813
10814
  case 3:
10814
- return a = u.sent(), r.endMeasurement({
10815
+ return a = d.sent(), r.endMeasurement({
10815
10816
  success: !0,
10816
10817
  isNativeBroker: !1,
10817
10818
  fromCache: !0
10818
10819
  }), [2, a];
10819
10820
  case 4:
10820
- return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10821
+ return d.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10821
10822
  case 5:
10822
10823
  return s = {
10823
10824
  method: at.GetToken,
10824
10825
  request: i
10825
10826
  }, [4, this.nativeMessageHandler.sendMessage(s)];
10826
10827
  case 6:
10827
- return d = u.sent(), p = this.validateNativeResponse(d), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10828
+ return u = d.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10828
10829
  return r.endMeasurement({
10829
10830
  success: !0,
10830
10831
  isNativeBroker: !0,
@@ -10852,20 +10853,20 @@ var zt = (
10852
10853
  }, e.prototype.acquireTokensFromCache = function(t, r) {
10853
10854
  return T(this, void 0, void 0, function() {
10854
10855
  var o, i, a, s;
10855
- return I(this, function(d) {
10856
- switch (d.label) {
10856
+ return I(this, function(u) {
10857
+ switch (u.label) {
10857
10858
  case 0:
10858
10859
  if (!t)
10859
10860
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
10860
10861
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
10861
10862
  throw O.createNoAccountFoundError();
10862
- d.label = 1;
10863
+ u.label = 1;
10863
10864
  case 1:
10864
- return d.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10865
+ return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10865
10866
  case 2:
10866
- return a = d.sent(), [2, a];
10867
+ return a = u.sent(), [2, a];
10867
10868
  case 3:
10868
- throw s = d.sent(), s;
10869
+ throw s = u.sent(), s;
10869
10870
  case 4:
10870
10871
  return [
10871
10872
  2
@@ -10876,7 +10877,7 @@ var zt = (
10876
10877
  });
10877
10878
  }, e.prototype.acquireTokenRedirect = function(t) {
10878
10879
  return T(this, void 0, void 0, function() {
10879
- var r, o, i, a, s, d;
10880
+ var r, o, i, a, s, u;
10880
10881
  return I(this, function(p) {
10881
10882
  switch (p.label) {
10882
10883
  case 0:
@@ -10899,7 +10900,7 @@ var zt = (
10899
10900
  apiId: oe.acquireTokenRedirect,
10900
10901
  timeout: this.config.system.redirectNavigationTimeout,
10901
10902
  noHistory: !1
10902
- }, d = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(d, s)];
10903
+ }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
10903
10904
  case 6:
10904
10905
  return p.sent(), [
10905
10906
  2
@@ -10910,9 +10911,9 @@ var zt = (
10910
10911
  });
10911
10912
  }, e.prototype.handleRedirectPromise = function() {
10912
10913
  return T(this, void 0, void 0, function() {
10913
- var t, r, o, i, a, s, d, p;
10914
- return I(this, function(u) {
10915
- switch (u.label) {
10914
+ var t, r, o, i, a, s, u, p;
10915
+ return I(this, function(d) {
10916
+ switch (d.label) {
10916
10917
  case 0:
10917
10918
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
10918
10919
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -10921,13 +10922,13 @@ var zt = (
10921
10922
  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 = {
10922
10923
  method: at.GetToken,
10923
10924
  request: o
10924
- }, a = Ke.nowSeconds(), u.label = 1;
10925
+ }, a = Ke.nowSeconds(), d.label = 1;
10925
10926
  case 1:
10926
- return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10927
+ return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10927
10928
  case 2:
10928
- return s = u.sent(), this.validateNativeResponse(s), d = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, d];
10929
+ return s = d.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
10929
10930
  case 3:
10930
- throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10931
+ throw p = d.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10931
10932
  case 4:
10932
10933
  return [
10933
10934
  2
@@ -10940,7 +10941,7 @@ var zt = (
10940
10941
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
10941
10942
  }, e.prototype.handleNativeResponse = function(t, r, o) {
10942
10943
  return T(this, void 0, void 0, function() {
10943
- var i, a, s, d, p, u;
10944
+ var i, a, s, u, p, d;
10944
10945
  return I(this, function(f) {
10945
10946
  switch (f.label) {
10946
10947
  case 0:
@@ -10948,9 +10949,9 @@ var zt = (
10948
10949
  throw tt.createUserSwitchError();
10949
10950
  return [4, this.getDiscoveredAuthority(r.authority)];
10950
10951
  case 1:
10951
- 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)];
10952
+ 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)];
10952
10953
  case 2:
10953
- return u = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, d, p, s, u.accessToken, u.tenantId, o), [2, u];
10954
+ return d = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, d.accessToken, d.tenantId, o), [2, d];
10954
10955
  }
10955
10956
  });
10956
10957
  });
@@ -10990,11 +10991,11 @@ var zt = (
10990
10991
  });
10991
10992
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
10992
10993
  return T(this, void 0, void 0, function() {
10993
- var d, p, u, f, _, k, E, N;
10994
+ var u, p, d, f, _, k, E, N;
10994
10995
  return I(this, function(Q) {
10995
10996
  switch (Q.label) {
10996
10997
  case 0:
10997
- 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)];
10998
+ return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), d = t.account.properties || {}, f = d.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = d.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
10998
10999
  case 1:
10999
11000
  return k = Q.sent(), E = r.tokenType === ne.POP ? ne.POP : ne.BEARER, N = {
11000
11001
  authority: a,
@@ -11005,7 +11006,7 @@ var zt = (
11005
11006
  idToken: t.id_token,
11006
11007
  idTokenClaims: o.claims,
11007
11008
  accessToken: k,
11008
- fromCache: d ? this.isResponseFromCache(d) : !1,
11009
+ fromCache: u ? this.isResponseFromCache(u) : !1,
11009
11010
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
11010
11011
  tokenType: E,
11011
11012
  correlationId: this.correlationId,
@@ -11020,8 +11021,8 @@ var zt = (
11020
11021
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
11021
11022
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
11022
11023
  });
11023
- }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, d, p) {
11024
- var u = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === ne.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 en(i, u, E);
11024
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
11025
+ var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === ne.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), N = new en(i, d, E);
11025
11026
  this.nativeStorageManager.saveCacheRecord(N);
11026
11027
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
11027
11028
  var r = this.getMATSFromResponse(t);
@@ -11058,7 +11059,7 @@ var zt = (
11058
11059
  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;
11059
11060
  }, e.prototype.initializeNativeRequest = function(t) {
11060
11061
  return T(this, void 0, void 0, function() {
11061
- var r, o, i, a, s, d, p, u, f, _, k = this;
11062
+ var r, o, i, a, s, u, p, d, f, _, k = this;
11062
11063
  return I(this, function(E) {
11063
11064
  switch (E.label) {
11064
11065
  case 0:
@@ -11066,7 +11067,7 @@ var zt = (
11066
11067
  case 1:
11067
11068
  E.sent(), E.label = 2;
11068
11069
  case 2:
11069
- return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an), d = function() {
11070
+ return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an), u = function() {
11070
11071
  switch (k.apiId) {
11071
11072
  case oe.ssoSilent:
11072
11073
  case oe.acquireTokenSilent_silentFlow:
@@ -11090,19 +11091,19 @@ var zt = (
11090
11091
  authority: o.urlString,
11091
11092
  scope: s.printScopes(),
11092
11093
  redirectUri: this.getRedirectUri(t.redirectUri),
11093
- prompt: d(),
11094
+ prompt: u(),
11094
11095
  correlationId: this.correlationId,
11095
11096
  tokenType: t.authenticationScheme,
11096
11097
  windowTitleSubstring: document.title,
11097
11098
  extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Vt.MATS_TELEMETRY }),
11098
11099
  extendedExpiryToken: !1
11099
11100
  // Make this configurable?
11100
- }), t.authenticationScheme !== ne.POP ? [3, 4] : (u = {
11101
+ }), t.authenticationScheme !== ne.POP ? [3, 4] : (d = {
11101
11102
  resourceRequestUri: t.resourceRequestUri,
11102
11103
  resourceRequestMethod: t.resourceRequestMethod,
11103
11104
  shrClaims: t.shrClaims,
11104
11105
  shrNonce: t.shrNonce
11105
- }, f = new xt(this.browserCrypto), [4, f.generateCnf(u)]);
11106
+ }, f = new xt(this.browserCrypto), [4, f.generateCnf(d)]);
11106
11107
  case 3:
11107
11108
  _ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
11108
11109
  case 4:
@@ -11239,13 +11240,13 @@ var Yi = (
11239
11240
  /** @class */
11240
11241
  function(n) {
11241
11242
  be(e, n);
11242
- function e(t, r, o, i, a, s, d, p, u, f) {
11243
- var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11243
+ function e(t, r, o, i, a, s, u, p, d, f) {
11244
+ var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11244
11245
  return _.nativeStorage = p, _;
11245
11246
  }
11246
11247
  return e.prototype.acquireToken = function(t) {
11247
11248
  return T(this, void 0, void 0, function() {
11248
- var r, o, i, a, s, d, p, u, f, _ = this;
11249
+ var r, o, i, a, s, u, p, d, f, _ = this;
11249
11250
  return I(this, function(k) {
11250
11251
  switch (k.label) {
11251
11252
  case 0:
@@ -11259,12 +11260,12 @@ var Yi = (
11259
11260
  case 3:
11260
11261
  return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
11261
11262
  case 4:
11262
- 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) }))];
11263
+ 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) }))];
11263
11264
  case 5:
11264
- return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, d.initiateAuthRequest(p, {
11265
+ return p = k.sent(), d = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + d), window.addEventListener("pageshow", i), [4, u.initiateAuthRequest(p, {
11265
11266
  navigationClient: this.navigationClient,
11266
11267
  redirectTimeout: this.config.system.redirectNavigationTimeout,
11267
- redirectStartPage: u,
11268
+ redirectStartPage: d,
11268
11269
  onRedirectNavigate: t.onRedirectNavigate
11269
11270
  })];
11270
11271
  case 6:
@@ -11281,7 +11282,7 @@ var Yi = (
11281
11282
  });
11282
11283
  }, e.prototype.handleRedirectPromise = function(t) {
11283
11284
  return T(this, void 0, void 0, function() {
11284
- var r, o, i, a, s, d, p, u, f, _, k, E;
11285
+ var r, o, i, a, s, u, p, d, f, _, k, E;
11285
11286
  return I(this, function(N) {
11286
11287
  switch (N.label) {
11287
11288
  case 0:
@@ -11297,17 +11298,17 @@ var Yi = (
11297
11298
  } catch (Q) {
11298
11299
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
11299
11300
  }
11300
- 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];
11301
+ return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, u = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), u === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11301
11302
  case 2:
11302
- return u = N.sent(), s.indexOf("#") > -1 && ue.replaceHash(s), [2, u];
11303
+ return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11303
11304
  case 3:
11304
11305
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
11305
11306
  case 4:
11306
- return !ue.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11307
+ return !de.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11307
11308
  apiId: oe.handleRedirectPromise,
11308
11309
  timeout: this.config.system.redirectNavigationTimeout,
11309
11310
  noHistory: !0
11310
- }, _ = !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];
11311
+ }, _ = !0, !s || s === "null" ? (k = de.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
11311
11312
  case 5:
11312
11313
  return _ = N.sent(), [3, 8];
11313
11314
  case 6:
@@ -11334,20 +11335,20 @@ var Yi = (
11334
11335
  this.logger.verbose("getRedirectResponseHash called");
11335
11336
  var r = W.hashContainsKnownProperties(t);
11336
11337
  if (r)
11337
- return ue.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11338
+ return de.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11338
11339
  var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
11339
11340
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
11340
11341
  }, e.prototype.handleHash = function(t, r, o) {
11341
11342
  return T(this, void 0, void 0, function() {
11342
- var i, a, s, d, p, u, f, _ = this;
11343
+ var i, a, s, u, p, d, f, _ = this;
11343
11344
  return I(this, function(k) {
11344
11345
  switch (k.label) {
11345
11346
  case 0:
11346
11347
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
11347
11348
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11348
11349
  throw M.createNativeConnectionNotEstablishedError();
11349
- return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), d = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11350
- state: d,
11350
+ return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11351
+ state: u,
11351
11352
  prompt: void 0
11352
11353
  // Server should handle the prompt, ideally native broker can do this part silently
11353
11354
  })).finally(function() {
@@ -11358,7 +11359,7 @@ var Yi = (
11358
11359
  throw M.createNoCachedAuthorityError();
11359
11360
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
11360
11361
  case 1:
11361
- 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)];
11362
+ return d = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(d, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, d.authority, this.networkClient)];
11362
11363
  case 2:
11363
11364
  return [2, k.sent()];
11364
11365
  }
@@ -11366,41 +11367,41 @@ var Yi = (
11366
11367
  });
11367
11368
  }, e.prototype.logout = function(t) {
11368
11369
  return T(this, void 0, void 0, function() {
11369
- var r, o, i, a, s, d, p;
11370
- return I(this, function(u) {
11371
- switch (u.label) {
11370
+ var r, o, i, a, s, u, p;
11371
+ return I(this, function(d) {
11372
+ switch (d.label) {
11372
11373
  case 0:
11373
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), u.label = 1;
11374
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), d.label = 1;
11374
11375
  case 1:
11375
- return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11376
+ return d.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11376
11377
  case 2:
11377
- return u.sent(), i = {
11378
+ return d.sent(), i = {
11378
11379
  apiId: oe.logout,
11379
11380
  timeout: this.config.system.redirectNavigationTimeout,
11380
11381
  noHistory: !1
11381
11382
  }, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
11382
11383
  case 3:
11383
- 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];
11384
+ 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];
11384
11385
  case 4:
11385
- return u.sent(), [
11386
+ return d.sent(), [
11386
11387
  2
11387
11388
  /*return*/
11388
11389
  ];
11389
11390
  case 5:
11390
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
11391
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), d.label = 6;
11391
11392
  case 6:
11392
11393
  return [3, 9];
11393
11394
  case 7:
11394
11395
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
11395
11396
  case 8:
11396
- return u.sent(), [
11397
+ return d.sent(), [
11397
11398
  2
11398
11399
  /*return*/
11399
11400
  ];
11400
11401
  case 9:
11401
11402
  return [3, 11];
11402
11403
  case 10:
11403
- 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;
11404
+ 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;
11404
11405
  case 11:
11405
11406
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
11406
11407
  2
@@ -11411,7 +11412,7 @@ var Yi = (
11411
11412
  });
11412
11413
  }, e.prototype.getRedirectStartPage = function(t) {
11413
11414
  var r = t || window.location.href;
11414
- return W.getAbsoluteUrl(r, ue.getCurrentUri());
11415
+ return W.getAbsoluteUrl(r, de.getCurrentUri());
11415
11416
  }, e;
11416
11417
  }(jt)
11417
11418
  );
@@ -11420,8 +11421,8 @@ var Wi = (
11420
11421
  /** @class */
11421
11422
  function(n) {
11422
11423
  be(e, n);
11423
- function e(t, r, o, i, a, s, d, p, u, f) {
11424
- var _ = n.call(this, t, r, o, i, a, s, d, u, f) || this;
11424
+ function e(t, r, o, i, a, s, u, p, d, f) {
11425
+ var _ = n.call(this, t, r, o, i, a, s, u, d, f) || this;
11425
11426
  return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
11426
11427
  }
11427
11428
  return e.prototype.acquireToken = function(t) {
@@ -11442,14 +11443,14 @@ var Wi = (
11442
11443
  if (this.config.system.asyncPopups)
11443
11444
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
11444
11445
  this.logger.verbose("asyncPopup set to false, opening popup");
11445
- var d = this.openSizedPopup("about:blank", o, s);
11446
- return this.logoutPopupAsync(r, o, s, i, d, a);
11446
+ var u = this.openSizedPopup("about:blank", o, s);
11447
+ return this.logoutPopupAsync(r, o, s, i, u, a);
11447
11448
  } catch (p) {
11448
11449
  return Promise.reject(p);
11449
11450
  }
11450
11451
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
11451
11452
  return T(this, void 0, void 0, function() {
11452
- var a, s, d, p, u, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
11453
+ var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, Ue, Ve, Ct = this;
11453
11454
  return I(this, function(ce) {
11454
11455
  switch (ce.label) {
11455
11456
  case 0:
@@ -11459,17 +11460,17 @@ var Wi = (
11459
11460
  case 2:
11460
11461
  return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
11461
11462
  case 3:
11462
- return d = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11463
+ return u = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11463
11464
  case 4:
11464
- 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 }))];
11465
+ 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 }))];
11465
11466
  case 5:
11466
- return _ = ce.sent(), k = new or(p, this.browserStorage, d, this.logger, this.performanceClient), E = {
11467
+ return _ = ce.sent(), k = new or(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
11467
11468
  popup: i,
11468
11469
  popupName: r,
11469
11470
  popupWindowAttributes: o
11470
11471
  }, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
11471
11472
  case 6:
11472
- 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) {
11473
+ if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, u), X.accountId) {
11473
11474
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
11474
11475
  success: !0,
11475
11476
  isNativeBroker: !0
@@ -11485,7 +11486,7 @@ var Wi = (
11485
11486
  }
11486
11487
  return [4, k.handleCodeResponseFromHash(Q, G, p.authority, this.networkClient)];
11487
11488
  case 7:
11488
- return xe = ce.sent(), [2, xe];
11489
+ return Ue = ce.sent(), [2, Ue];
11489
11490
  case 8:
11490
11491
  throw Ve = ce.sent(), i && i.close(), Ve instanceof D && Ve.setCorrelationId(this.correlationId), a.cacheFailedRequest(Ve), this.browserStorage.cleanRequestByState(s.state), Ve;
11491
11492
  case 9:
@@ -11498,25 +11499,25 @@ var Wi = (
11498
11499
  });
11499
11500
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
11500
11501
  return T(this, void 0, void 0, function() {
11501
- var d, p, u, f, _, k, E;
11502
+ var u, p, d, f, _, k, E;
11502
11503
  return I(this, function(N) {
11503
11504
  switch (N.label) {
11504
11505
  case 0:
11505
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), d = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11506
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11506
11507
  case 1:
11507
11508
  return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11508
11509
  case 2:
11509
- return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(d, i)];
11510
+ return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11510
11511
  case 3:
11511
- 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)];
11512
+ return p = N.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
11512
11513
  case 4:
11513
11514
  return N.sent(), s ? (_ = {
11514
11515
  apiId: oe.logoutPopup,
11515
11516
  timeout: this.config.system.redirectNavigationTimeout,
11516
11517
  noHistory: !1
11517
- }, 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];
11518
+ }, k = W.getAbsoluteUrl(s, de.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
11518
11519
  case 5:
11519
- 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;
11520
+ throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
11520
11521
  case 6:
11521
11522
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
11522
11523
  2
@@ -11534,17 +11535,17 @@ var Wi = (
11534
11535
  return new Promise(function(o, i) {
11535
11536
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
11536
11537
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
11537
- var d = setInterval(function() {
11538
+ var u = setInterval(function() {
11538
11539
  if (t.closed) {
11539
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(d), i(M.createUserCancelledError());
11540
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
11540
11541
  return;
11541
11542
  }
11542
- var p = g.EMPTY_STRING, u = g.EMPTY_STRING;
11543
+ var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
11543
11544
  try {
11544
- p = t.location.href, u = t.location.hash;
11545
+ p = t.location.href, d = t.location.hash;
11545
11546
  } catch {
11546
11547
  }
11547
- 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())));
11548
+ L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(M.createMonitorPopupTimeoutError())));
11548
11549
  }, r.config.system.pollIntervalMilliseconds);
11549
11550
  });
11550
11551
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -11571,8 +11572,8 @@ var Wi = (
11571
11572
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
11572
11573
  }
11573
11574
  }, e.prototype.openSizedPopup = function(t, r, o) {
11574
- 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;
11575
- 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");
11575
+ var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
11576
+ return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
11576
11577
  }, e.prototype.unloadWindow = function(t) {
11577
11578
  this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
11578
11579
  }, e.prototype.cleanPopup = function(t) {
@@ -11631,21 +11632,21 @@ function ea(n, e) {
11631
11632
  // 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
11632
11633
  cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
11633
11634
  claimsBasedCachingEnabled: !0
11634
- }, d = {
11635
+ }, u = {
11635
11636
  // eslint-disable-next-line @typescript-eslint/no-empty-function
11636
11637
  loggerCallback: function() {
11637
11638
  },
11638
11639
  logLevel: ve.Info,
11639
11640
  piiLoggingEnabled: !1
11640
11641
  }, p = B(B({}, no), {
11641
- loggerOptions: d,
11642
- networkClient: e ? ue.getBrowserNetworkClient() : Di,
11642
+ loggerOptions: u,
11643
+ networkClient: e ? de.getBrowserNetworkClient() : Di,
11643
11644
  navigationClient: new $i(),
11644
11645
  loadFrameTimeout: 0,
11645
11646
  // If loadFrameTimeout is provided, use that as default.
11646
11647
  windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
11647
11648
  iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
11648
- navigateFrameWait: e && ue.detectIEOrEdge() ? 500 : 0,
11649
+ navigateFrameWait: e && de.detectIEOrEdge() ? 500 : 0,
11649
11650
  redirectNavigationTimeout: Xi,
11650
11651
  asyncPopups: !1,
11651
11652
  allowRedirectInIframe: !1,
@@ -11656,7 +11657,7 @@ function ea(n, e) {
11656
11657
  useMsrCrypto: !1,
11657
11658
  entropy: void 0
11658
11659
  }
11659
- }), u = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || d }), f = {
11660
+ }), d = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), f = {
11660
11661
  application: {
11661
11662
  appName: g.EMPTY_STRING,
11662
11663
  appVersion: g.EMPTY_STRING
@@ -11664,7 +11665,7 @@ function ea(n, e) {
11664
11665
  }, _ = {
11665
11666
  auth: B(B({}, a), t),
11666
11667
  cache: B(B({}, s), r),
11667
- system: B(B({}, p), u),
11668
+ system: B(B({}, p), d),
11668
11669
  telemetry: B(B({}, f), i)
11669
11670
  };
11670
11671
  return _;
@@ -11675,8 +11676,8 @@ var uo = (
11675
11676
  function(n) {
11676
11677
  be(e, n);
11677
11678
  function e(t, r, o, i, a, s) {
11678
- var d = n.call(this, t, r, o, i, s) || this;
11679
- return d.navigateFrameWait = a.navigateFrameWait, d.pollIntervalMilliseconds = a.pollIntervalMilliseconds, d;
11679
+ var u = n.call(this, t, r, o, i, s) || this;
11680
+ return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
11680
11681
  }
11681
11682
  return e.prototype.initiateAuthRequest = function(t) {
11682
11683
  return T(this, void 0, void 0, function() {
@@ -11697,17 +11698,17 @@ var uo = (
11697
11698
  var o = this;
11698
11699
  return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
11699
11700
  r < Jn && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + Jn + "ms). This may result in timeouts.");
11700
- var s = window.performance.now(), d = s + r, p = setInterval(function() {
11701
- if (window.performance.now() > d) {
11701
+ var s = window.performance.now(), u = s + r, p = setInterval(function() {
11702
+ if (window.performance.now() > u) {
11702
11703
  o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
11703
11704
  return;
11704
11705
  }
11705
- var u = g.EMPTY_STRING, f = t.contentWindow;
11706
+ var d = g.EMPTY_STRING, f = t.contentWindow;
11706
11707
  try {
11707
- u = f ? f.location.href : g.EMPTY_STRING;
11708
+ d = f ? f.location.href : g.EMPTY_STRING;
11708
11709
  } catch {
11709
11710
  }
11710
- if (!L.isEmpty(u)) {
11711
+ if (!L.isEmpty(d)) {
11711
11712
  var _ = f ? f.location.hash : g.EMPTY_STRING;
11712
11713
  if (W.hashContainsKnownProperties(_)) {
11713
11714
  o.removeHiddenIframe(t), clearInterval(p), i(_);
@@ -11744,15 +11745,15 @@ var ta = (
11744
11745
  /** @class */
11745
11746
  function(n) {
11746
11747
  be(e, n);
11747
- function e(t, r, o, i, a, s, d, p, u, f, _) {
11748
+ function e(t, r, o, i, a, s, u, p, d, f, _) {
11748
11749
  var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
11749
- return k.apiId = d, k.nativeStorage = u, k;
11750
+ return k.apiId = u, k.nativeStorage = d, k;
11750
11751
  }
11751
11752
  return e.prototype.acquireToken = function(t) {
11752
11753
  return T(this, void 0, void 0, function() {
11753
11754
  var r, o, i, a, s;
11754
- return I(this, function(d) {
11755
- switch (d.label) {
11755
+ return I(this, function(u) {
11756
+ switch (u.label) {
11756
11757
  case 0:
11757
11758
  if (this.performanceClient.addQueueMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), L.isEmpty(t.loginHint) && L.isEmpty(t.sid) && (!t.account || L.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Te.NONE && t.prompt !== Te.NO_SESSION)
11758
11759
  throw r.endMeasurement({
@@ -11760,11 +11761,11 @@ var ta = (
11760
11761
  }), M.createSilentPromptValueError(t.prompt);
11761
11762
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
11762
11763
  case 1:
11763
- 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;
11764
+ o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
11764
11765
  case 2:
11765
- return d.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11766
+ return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11766
11767
  case 3:
11767
- 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) {
11768
+ 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) {
11768
11769
  return r.endMeasurement({
11769
11770
  success: !0,
11770
11771
  fromCache: !1,
@@ -11772,9 +11773,9 @@ var ta = (
11772
11773
  }), p;
11773
11774
  })];
11774
11775
  case 4:
11775
- return [2, d.sent()];
11776
+ return [2, u.sent()];
11776
11777
  case 5:
11777
- throw s = d.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11778
+ throw s = u.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11778
11779
  errorCode: s instanceof D && s.errorCode || void 0,
11779
11780
  subErrorCode: s instanceof D && s.subError || void 0,
11780
11781
  success: !1
@@ -11791,7 +11792,7 @@ var ta = (
11791
11792
  return Promise.reject(M.createSilentLogoutUnsupportedError());
11792
11793
  }, e.prototype.silentTokenHelper = function(t, r) {
11793
11794
  return T(this, void 0, void 0, function() {
11794
- var o, i, a, s, d, p, u, f, _, k = this;
11795
+ var o, i, a, s, u, p, d, f, _, k = this;
11795
11796
  return I(this, function(E) {
11796
11797
  switch (E.label) {
11797
11798
  case 0:
@@ -11803,14 +11804,14 @@ var ta = (
11803
11804
  case 3:
11804
11805
  return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
11805
11806
  case 4:
11806
- if (d = E.sent(), p = W.getDeserializedHash(d), u = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11807
+ if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11807
11808
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11808
11809
  throw M.createNativeConnectionNotEstablishedError();
11809
- return f = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, u).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11810
- k.browserStorage.cleanRequestByState(u);
11810
+ return f = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, d).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
11811
+ k.browserStorage.cleanRequestByState(d);
11811
11812
  })];
11812
11813
  }
11813
- return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(d, u, t.authority, this.networkClient)];
11814
+ return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, d, t.authority, this.networkClient)];
11814
11815
  }
11815
11816
  });
11816
11817
  });
@@ -11827,7 +11828,7 @@ var na = (
11827
11828
  }
11828
11829
  return e.prototype.acquireToken = function(t) {
11829
11830
  return T(this, void 0, void 0, function() {
11830
- var r, o, i, a, s, d = this;
11831
+ var r, o, i, a, s, u = this;
11831
11832
  return I(this, function(p) {
11832
11833
  switch (p.label) {
11833
11834
  case 0:
@@ -11835,18 +11836,18 @@ var na = (
11835
11836
  case 1:
11836
11837
  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)];
11837
11838
  case 2:
11838
- 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) {
11839
+ 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) {
11839
11840
  return i.endMeasurement({
11840
11841
  success: !0,
11841
- fromCache: u.fromCache,
11842
- requestId: u.requestId
11843
- }), u;
11844
- }).catch(function(u) {
11845
- throw u instanceof D && u.setCorrelationId(d.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
11846
- errorCode: u.errorCode,
11847
- subErrorCode: u.subError,
11842
+ fromCache: d.fromCache,
11843
+ requestId: d.requestId
11844
+ }), d;
11845
+ }).catch(function(d) {
11846
+ throw d instanceof D && d.setCorrelationId(u.correlationId), a.cacheFailedRequest(d), i.endMeasurement({
11847
+ errorCode: d.errorCode,
11848
+ subErrorCode: d.subError,
11848
11849
  success: !1
11849
- }), u;
11850
+ }), d;
11850
11851
  })];
11851
11852
  }
11852
11853
  });
@@ -11897,8 +11898,8 @@ var ra = (
11897
11898
  error: o || null,
11898
11899
  timestamp: Date.now()
11899
11900
  };
11900
- this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, d) {
11901
- i.logger.verbose("Emitting event to callback " + d + ": " + e), s.apply(null, [a]);
11901
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, u) {
11902
+ i.logger.verbose("Emitting event to callback " + u + ": " + e), s.apply(null, [a]);
11902
11903
  });
11903
11904
  }
11904
11905
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -11961,8 +11962,8 @@ var ct = (
11961
11962
  return n.stringToUtf8Arr = function(e) {
11962
11963
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
11963
11964
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
11964
- for (var a = new Uint8Array(r), s = 0, d = 0; s < r; d++)
11965
- 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));
11965
+ for (var a = new Uint8Array(r), s = 0, u = 0; s < r; u++)
11966
+ 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));
11966
11967
  return a;
11967
11968
  }, n.stringToArrayBuffer = function(e) {
11968
11969
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -12042,10 +12043,10 @@ var oa = (
12042
12043
  var r = this.base64DecToArr(t);
12043
12044
  return ct.utf8ArrToString(r);
12044
12045
  }, n.prototype.base64DecToArr = function(e, t) {
12045
- 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++)
12046
- if (d = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * d, d === 3 || o - f === 1) {
12047
- for (s = 0; s < 3 && u < i; s++, u++)
12048
- a[u] = p >>> (16 >>> s & 24) & 255;
12046
+ 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++)
12047
+ if (u = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * u, u === 3 || o - f === 1) {
12048
+ for (s = 0; s < 3 && d < i; s++, d++)
12049
+ a[d] = p >>> (16 >>> s & 24) & 255;
12049
12050
  p = 0;
12050
12051
  }
12051
12052
  return a;
@@ -12204,10 +12205,10 @@ var la = (
12204
12205
  return I(this, function(o) {
12205
12206
  return [2, new Promise(function(i, a) {
12206
12207
  var s = window.msCrypto.subtle.generateKey(e, t, r);
12207
- s.addEventListener("complete", function(d) {
12208
- i(d.target.result);
12209
- }), s.addEventListener("error", function(d) {
12210
- a(d);
12208
+ s.addEventListener("complete", function(u) {
12209
+ i(u.target.result);
12210
+ }), s.addEventListener("error", function(u) {
12211
+ a(u);
12211
12212
  });
12212
12213
  })];
12213
12214
  });
@@ -12218,9 +12219,9 @@ var la = (
12218
12219
  return [2, new Promise(function(r, o) {
12219
12220
  var i = window.msCrypto.subtle.exportKey(Bt, e);
12220
12221
  i.addEventListener("complete", function(a) {
12221
- 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);
12222
+ 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);
12222
12223
  try {
12223
- r(JSON.parse(d));
12224
+ r(JSON.parse(u));
12224
12225
  } catch (p) {
12225
12226
  o(p);
12226
12227
  }
@@ -12234,11 +12235,11 @@ var la = (
12234
12235
  return T(this, void 0, void 0, function() {
12235
12236
  var i, a;
12236
12237
  return I(this, function(s) {
12237
- return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(d, p) {
12238
- var u = window.msCrypto.subtle.importKey(Bt, a, t, r, o);
12239
- u.addEventListener("complete", function(f) {
12240
- d(f.target.result);
12241
- }), u.addEventListener("error", function(f) {
12238
+ return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
12239
+ var d = window.msCrypto.subtle.importKey(Bt, a, t, r, o);
12240
+ d.addEventListener("complete", function(f) {
12241
+ u(f.target.result);
12242
+ }), d.addEventListener("error", function(f) {
12242
12243
  p(f);
12243
12244
  });
12244
12245
  })];
@@ -12249,10 +12250,10 @@ var la = (
12249
12250
  return I(this, function(o) {
12250
12251
  return [2, new Promise(function(i, a) {
12251
12252
  var s = window.msCrypto.subtle.sign(e, t, r);
12252
- s.addEventListener("complete", function(d) {
12253
- i(d.target.result);
12254
- }), s.addEventListener("error", function(d) {
12255
- a(d);
12253
+ s.addEventListener("complete", function(u) {
12254
+ i(u.target.result);
12255
+ }), s.addEventListener("error", function(u) {
12256
+ a(u);
12256
12257
  });
12257
12258
  })];
12258
12259
  });
@@ -12274,7 +12275,7 @@ var la = (
12274
12275
  }()
12275
12276
  );
12276
12277
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12277
- var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12278
+ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12278
12279
  /** @class */
12279
12280
  function() {
12280
12281
  function n(e, t) {
@@ -12293,9 +12294,9 @@ var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1,
12293
12294
  this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
12294
12295
  }
12295
12296
  this.keygenAlgorithmOptions = {
12296
- name: da,
12297
+ name: ua,
12297
12298
  hash: xr,
12298
- modulusLength: ua,
12299
+ modulusLength: da,
12299
12300
  publicExponent: pa
12300
12301
  };
12301
12302
  }
@@ -12396,11 +12397,11 @@ var ha = (
12396
12397
  return r.sent(), [2, new Promise(function(o, i) {
12397
12398
  if (!t.db)
12398
12399
  return i(M.createDatabaseNotOpenError());
12399
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.get(e);
12400
- d.addEventListener("success", function(p) {
12401
- var u = p;
12402
- t.closeConnection(), o(u.target.result);
12403
- }), d.addEventListener("error", function(p) {
12400
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
12401
+ u.addEventListener("success", function(p) {
12402
+ var d = p;
12403
+ t.closeConnection(), o(d.target.result);
12404
+ }), u.addEventListener("error", function(p) {
12404
12405
  t.closeConnection(), i(p);
12405
12406
  });
12406
12407
  })];
@@ -12418,11 +12419,11 @@ var ha = (
12418
12419
  return o.sent(), [2, new Promise(function(i, a) {
12419
12420
  if (!r.db)
12420
12421
  return a(M.createDatabaseNotOpenError());
12421
- var s = r.db.transaction([r.tableName], "readwrite"), d = s.objectStore(r.tableName), p = d.put(t, e);
12422
+ var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
12422
12423
  p.addEventListener("success", function() {
12423
12424
  r.closeConnection(), i();
12424
- }), p.addEventListener("error", function(u) {
12425
- r.closeConnection(), a(u);
12425
+ }), p.addEventListener("error", function(d) {
12426
+ r.closeConnection(), a(d);
12426
12427
  });
12427
12428
  })];
12428
12429
  }
@@ -12439,10 +12440,10 @@ var ha = (
12439
12440
  return r.sent(), [2, new Promise(function(o, i) {
12440
12441
  if (!t.db)
12441
12442
  return i(M.createDatabaseNotOpenError());
12442
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), d = s.delete(e);
12443
- d.addEventListener("success", function() {
12443
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
12444
+ u.addEventListener("success", function() {
12444
12445
  t.closeConnection(), o();
12445
- }), d.addEventListener("error", function(p) {
12446
+ }), u.addEventListener("error", function(p) {
12446
12447
  t.closeConnection(), i(p);
12447
12448
  });
12448
12449
  })];
@@ -12461,11 +12462,11 @@ var ha = (
12461
12462
  if (!e.db)
12462
12463
  return o(M.createDatabaseNotOpenError());
12463
12464
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
12464
- s.addEventListener("success", function(d) {
12465
- var p = d;
12465
+ s.addEventListener("success", function(u) {
12466
+ var p = u;
12466
12467
  e.closeConnection(), r(p.target.result);
12467
- }), s.addEventListener("error", function(d) {
12468
- e.closeConnection(), o(d);
12468
+ }), s.addEventListener("error", function(u) {
12469
+ e.closeConnection(), o(u);
12469
12470
  });
12470
12471
  })];
12471
12472
  }
@@ -12482,11 +12483,11 @@ var ha = (
12482
12483
  return r.sent(), [2, new Promise(function(o, i) {
12483
12484
  if (!t.db)
12484
12485
  return i(M.createDatabaseNotOpenError());
12485
- var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), d = s.count(e);
12486
- d.addEventListener("success", function(p) {
12487
- var u = p;
12488
- t.closeConnection(), o(u.target.result === 1);
12489
- }), d.addEventListener("error", function(p) {
12486
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
12487
+ u.addEventListener("success", function(p) {
12488
+ var d = p;
12489
+ t.closeConnection(), o(d.target.result === 1);
12490
+ }), u.addEventListener("error", function(p) {
12490
12491
  t.closeConnection(), i(p);
12491
12492
  });
12492
12493
  })];
@@ -12706,7 +12707,7 @@ var fa = (
12706
12707
  }, n.prototype.getPublicKeyThumbprint = function(e) {
12707
12708
  var t;
12708
12709
  return T(this, void 0, void 0, function() {
12709
- var r, o, i, a, s, d, p, u;
12710
+ var r, o, i, a, s, u, p, d;
12710
12711
  return I(this, function(f) {
12711
12712
  switch (f.label) {
12712
12713
  case 0:
@@ -12720,12 +12721,12 @@ var fa = (
12720
12721
  n: i.n
12721
12722
  }, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
12722
12723
  case 3:
12723
- return d = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12724
+ return u = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12724
12725
  case 4:
12725
12726
  return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
12726
12727
  case 5:
12727
- return u = f.sent(), [4, this.cache.asymmetricKeys.setItem(d, {
12728
- privateKey: u,
12728
+ return d = f.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
12729
+ privateKey: d,
12729
12730
  publicKey: o.publicKey,
12730
12731
  requestMethod: e.resourceRequestMethod,
12731
12732
  requestUri: e.resourceRequestUri
@@ -12733,7 +12734,7 @@ var fa = (
12733
12734
  case 6:
12734
12735
  return f.sent(), r && r.endMeasurement({
12735
12736
  success: !0
12736
- }), [2, d];
12737
+ }), [2, u];
12737
12738
  }
12738
12739
  });
12739
12740
  });
@@ -12765,7 +12766,7 @@ var fa = (
12765
12766
  }, n.prototype.signJwt = function(e, t, r) {
12766
12767
  var o;
12767
12768
  return T(this, void 0, void 0, function() {
12768
- var i, a, s, d, p, u, f, _, k, E, N, Q, X;
12769
+ var i, a, s, u, p, d, f, _, k, E, N, Q, X;
12769
12770
  return I(this, function(G) {
12770
12771
  switch (G.label) {
12771
12772
  case 0:
@@ -12775,8 +12776,8 @@ var fa = (
12775
12776
  throw M.createSigningKeyNotFoundInStorageError(t);
12776
12777
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
12777
12778
  case 2:
12778
- 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 = {
12779
- jwk: JSON.parse(d)
12779
+ return s = G.sent(), u = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), d = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(d), e.cnf = {
12780
+ jwk: JSON.parse(u)
12780
12781
  }, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
12781
12782
  case 3:
12782
12783
  return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
@@ -12855,9 +12856,9 @@ var ga = (
12855
12856
  /** @class */
12856
12857
  function(n) {
12857
12858
  be(e, n);
12858
- function e(t, r, o, i, a, s, d) {
12859
+ function e(t, r, o, i, a, s, u) {
12859
12860
  var p = n.call(this, t, r, o, i, a, s) || this;
12860
- return p.browserCrypto = new mo(p.logger, d), p.guidGenerator = new po(p.browserCrypto), p;
12861
+ return p.browserCrypto = new mo(p.logger, u), p.guidGenerator = new po(p.browserCrypto), p;
12861
12862
  }
12862
12863
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
12863
12864
  return new Dr(t, r);
@@ -12876,8 +12877,8 @@ var ga = (
12876
12877
  }, e.prototype.startMeasurement = function(t, r) {
12877
12878
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
12878
12879
  return B(B({}, a), { endMeasurement: function(s) {
12879
- var d = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12880
- return o.deleteIncompleteSubMeasurements(a), d;
12880
+ var u = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12881
+ return o.deleteIncompleteSubMeasurements(a), u;
12881
12882
  }, discardMeasurement: function() {
12882
12883
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
12883
12884
  } });
@@ -12903,8 +12904,8 @@ var ga = (
12903
12904
  }
12904
12905
  var a = n.prototype.getPreQueueTime.call(this, t, r);
12905
12906
  if (a) {
12906
- var s = window.performance.now(), d = o || n.prototype.calculateQueuedTime.call(this, a, s);
12907
- return n.prototype.addQueueMeasurement.call(this, t, r, d, i);
12907
+ var s = window.performance.now(), u = o || n.prototype.calculateQueuedTime.call(this, a, s);
12908
+ return n.prototype.addQueueMeasurement.call(this, t, r, u, i);
12908
12909
  }
12909
12910
  }, e;
12910
12911
  }(ao)
@@ -12924,14 +12925,14 @@ var _a = (
12924
12925
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
12925
12926
  i = new en(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));
12926
12927
  } else if (e.authority) {
12927
- var d = on.generateAuthority(e.authority, e.azureCloudOptions), p = {
12928
+ var u = on.generateAuthority(e.authority, e.azureCloudOptions), p = {
12928
12929
  protocolMode: this.config.auth.protocolMode,
12929
12930
  knownAuthorities: this.config.auth.knownAuthorities,
12930
12931
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
12931
12932
  authorityMetadata: this.config.auth.authorityMetadata,
12932
12933
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
12933
12934
  };
12934
- if (a = new on(d, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12935
+ if (a = new on(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12935
12936
  this.logger.trace("TokenCache - homeAccountId from options");
12936
12937
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
12937
12938
  i = new en(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
@@ -12964,9 +12965,9 @@ var _a = (
12964
12965
  throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12965
12966
  if (!a.extendedExpiresOn)
12966
12967
  throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
12967
- 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);
12968
+ var s = new Ee(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, d = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
12968
12969
  if (this.isBrowserEnvironment)
12969
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
12970
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
12970
12971
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12971
12972
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
12972
12973
  if (!t.refresh_token)
@@ -12976,8 +12977,8 @@ var _a = (
12976
12977
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
12977
12978
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12978
12979
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
12979
- var i, a, s, d = g.EMPTY_STRING, p = [], u = null, f;
12980
- 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));
12980
+ var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
12981
+ r != null && r.accessToken && (u = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), d = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
12981
12982
  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;
12982
12983
  return {
12983
12984
  authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
@@ -12987,9 +12988,9 @@ var _a = (
12987
12988
  account: r != null && r.account ? r.account.getAccountInfo() : null,
12988
12989
  idToken: t ? t.rawToken : g.EMPTY_STRING,
12989
12990
  idTokenClaims: t ? t.claims : {},
12990
- accessToken: d,
12991
+ accessToken: u,
12991
12992
  fromCache: !0,
12992
- expiresOn: u,
12993
+ expiresOn: d,
12993
12994
  correlationId: e.correlationId || g.EMPTY_STRING,
12994
12995
  requestId: g.EMPTY_STRING,
12995
12996
  extExpiresOn: f,
@@ -13021,32 +13022,32 @@ var ya = (
13021
13022
  /** @class */
13022
13023
  function(n) {
13023
13024
  be(e, n);
13024
- function e(t, r, o, i, a, s, d, p, u, f) {
13025
- var _ = n.call(this, t, r, o, i, a, s, p, u, f) || this;
13026
- return _.apiId = d, _;
13025
+ function e(t, r, o, i, a, s, u, p, d, f) {
13026
+ var _ = n.call(this, t, r, o, i, a, s, p, d, f) || this;
13027
+ return _.apiId = u, _;
13027
13028
  }
13028
13029
  return e.prototype.acquireToken = function(t) {
13029
13030
  return T(this, void 0, void 0, function() {
13030
- var r, o, i, a, s, d, p;
13031
- return I(this, function(u) {
13032
- switch (u.label) {
13031
+ var r, o, i, a, s, u, p;
13032
+ return I(this, function(d) {
13033
+ switch (d.label) {
13033
13034
  case 0:
13034
13035
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
13035
13036
  throw M.createAuthCodeRequiredError();
13036
13037
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
13037
13038
  case 1:
13038
- 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;
13039
+ r = d.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
13039
13040
  case 2:
13040
- 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)];
13041
+ 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)];
13041
13042
  case 3:
13042
- 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({
13043
+ 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({
13043
13044
  code: t.code,
13044
13045
  msgraph_host: t.msGraphHost,
13045
13046
  cloud_graph_host_name: t.cloudGraphHostName,
13046
13047
  cloud_instance_host_name: t.cloudInstanceHostName
13047
13048
  }, r.state, s.authority, this.networkClient, !1)];
13048
13049
  case 4:
13049
- throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13050
+ throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13050
13051
  case 5:
13051
13052
  return [
13052
13053
  2
@@ -13110,32 +13111,32 @@ var ka = (
13110
13111
  });
13111
13112
  }, n.prototype.handleRedirectPromise = function(e) {
13112
13113
  return T(this, void 0, void 0, function() {
13113
- var t, r, o, i, a, s, d, p, u = this;
13114
+ var t, r, o, i, a, s, u, p, d = this;
13114
13115
  return I(this, function(f) {
13115
- 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 zt(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(_) {
13116
+ 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 zt(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(_) {
13116
13117
  if (_) {
13117
- var k = t.length < u.getAllAccounts().length;
13118
- 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"));
13118
+ var k = t.length < d.getAllAccounts().length;
13119
+ 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"));
13119
13120
  }
13120
- return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13121
+ return d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13121
13122
  }).catch(function(_) {
13122
- 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), _;
13123
+ 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), _;
13123
13124
  }), 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]);
13124
13125
  });
13125
13126
  });
13126
13127
  }, n.prototype.acquireTokenRedirect = function(e) {
13127
13128
  return T(this, void 0, void 0, function() {
13128
13129
  var t, r, o, i, a, s = this;
13129
- return I(this, function(d) {
13130
+ return I(this, function(u) {
13130
13131
  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 zt(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) {
13131
13132
  if (p instanceof tt && p.isFatal()) {
13132
13133
  s.nativeExtensionProvider = void 0;
13133
- var u = s.createRedirectClient(e.correlationId);
13134
- return u.acquireToken(e);
13134
+ var d = s.createRedirectClient(e.correlationId);
13135
+ return d.acquireToken(e);
13135
13136
  } else if (p instanceof Ye) {
13136
13137
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
13137
- var u = s.createRedirectClient(e.correlationId);
13138
- return u.acquireToken(e);
13138
+ var d = s.createRedirectClient(e.correlationId);
13139
+ return d.acquireToken(e);
13139
13140
  }
13140
13141
  throw s.browserStorage.setInteractionInProgress(!1), p;
13141
13142
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -13147,50 +13148,50 @@ var ka = (
13147
13148
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
13148
13149
  try {
13149
13150
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
13150
- } catch (d) {
13151
- return Promise.reject(d);
13151
+ } catch (u) {
13152
+ return Promise.reject(u);
13152
13153
  }
13153
13154
  var i = this.getAllAccounts();
13154
13155
  i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
13155
13156
  var a;
13156
13157
  if (this.canUseNative(e))
13157
- a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(d) {
13158
+ a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(u) {
13158
13159
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
13159
13160
  success: !0,
13160
13161
  isNativeBroker: !0,
13161
- requestId: d.requestId
13162
- }), d;
13163
- }).catch(function(d) {
13164
- if (d instanceof tt && d.isFatal()) {
13162
+ requestId: u.requestId
13163
+ }), u;
13164
+ }).catch(function(u) {
13165
+ if (u instanceof tt && u.isFatal()) {
13165
13166
  t.nativeExtensionProvider = void 0;
13166
13167
  var p = t.createPopupClient(e.correlationId);
13167
13168
  return p.acquireToken(e);
13168
- } else if (d instanceof Ye) {
13169
+ } else if (u instanceof Ye) {
13169
13170
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
13170
13171
  var p = t.createPopupClient(e.correlationId);
13171
13172
  return p.acquireToken(e);
13172
13173
  }
13173
- throw t.browserStorage.setInteractionInProgress(!1), d;
13174
+ throw t.browserStorage.setInteractionInProgress(!1), u;
13174
13175
  });
13175
13176
  else {
13176
13177
  var s = this.createPopupClient(e.correlationId);
13177
13178
  a = s.acquireToken(e);
13178
13179
  }
13179
- return a.then(function(d) {
13180
+ return a.then(function(u) {
13180
13181
  var p = i.length < t.getAllAccounts().length;
13181
- return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, d) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, d), o.addStaticFields({
13182
- accessTokenSize: d.accessToken.length,
13183
- idTokenSize: d.idToken.length
13182
+ return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, u) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, u), o.addStaticFields({
13183
+ accessTokenSize: u.accessToken.length,
13184
+ idTokenSize: u.idToken.length
13184
13185
  }), o.endMeasurement({
13185
13186
  success: !0,
13186
- requestId: d.requestId
13187
- }), d;
13188
- }).catch(function(d) {
13189
- 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({
13190
- errorCode: d.errorCode,
13191
- subErrorCode: d.subError,
13187
+ requestId: u.requestId
13188
+ }), u;
13189
+ }).catch(function(u) {
13190
+ 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({
13191
+ errorCode: u.errorCode,
13192
+ subErrorCode: u.subError,
13192
13193
  success: !1
13193
- }), Promise.reject(d);
13194
+ }), Promise.reject(u);
13194
13195
  });
13195
13196
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
13196
13197
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -13201,7 +13202,7 @@ var ka = (
13201
13202
  var t;
13202
13203
  return T(this, void 0, void 0, function() {
13203
13204
  var r, o, i, a, s = this;
13204
- return I(this, function(d) {
13205
+ return I(this, function(u) {
13205
13206
  return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
13206
13207
  // will be PromptValue.NONE or PromptValue.NO_SESSION
13207
13208
  prompt: e.prompt,
@@ -13211,13 +13212,13 @@ var ka = (
13211
13212
  }), 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) {
13212
13213
  if (p instanceof tt && p.isFatal()) {
13213
13214
  s.nativeExtensionProvider = void 0;
13214
- var u = s.createSilentIframeClient(o.correlationId);
13215
- return u.acquireToken(o);
13215
+ var d = s.createSilentIframeClient(o.correlationId);
13216
+ return d.acquireToken(o);
13216
13217
  }
13217
13218
  throw p;
13218
13219
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
13219
- var u, f;
13220
- return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
13220
+ var d, f;
13221
+ return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.addStaticFields({
13221
13222
  accessTokenSize: p.accessToken.length,
13222
13223
  idTokenSize: p.idToken.length
13223
13224
  }), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
@@ -13226,8 +13227,8 @@ var ka = (
13226
13227
  requestId: p.requestId
13227
13228
  }), p;
13228
13229
  }).catch(function(p) {
13229
- var u;
13230
- throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
13230
+ var d;
13231
+ throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (d = s.ssoSilentMeasurement) === null || d === void 0 || d.endMeasurement({
13231
13232
  errorCode: p.errorCode,
13232
13233
  subErrorCode: p.subError,
13233
13234
  success: !1
@@ -13246,36 +13247,36 @@ var ka = (
13246
13247
  if (e.code && e.nativeAccountId)
13247
13248
  throw M.createSpaCodeAndNativeAccountIdPresentError();
13248
13249
  if (e.code)
13249
- 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) {
13250
- return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, d), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13251
- accessTokenSize: d.accessToken.length,
13252
- idTokenSize: d.idToken.length
13250
+ return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(u) {
13251
+ return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13252
+ accessTokenSize: u.accessToken.length,
13253
+ idTokenSize: u.idToken.length
13253
13254
  }), r.endMeasurement({
13254
13255
  success: !0,
13255
- isNativeBroker: d.fromNativeBroker,
13256
- requestId: d.requestId
13257
- }), d;
13258
- }).catch(function(d) {
13259
- throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13260
- errorCode: d.errorCode,
13261
- subErrorCode: d.subError,
13256
+ isNativeBroker: u.fromNativeBroker,
13257
+ requestId: u.requestId
13258
+ }), u;
13259
+ }).catch(function(u) {
13260
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13261
+ errorCode: u.errorCode,
13262
+ subErrorCode: u.subError,
13262
13263
  success: !1
13263
- }), d;
13264
+ }), u;
13264
13265
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
13265
13266
  if (e.nativeAccountId) {
13266
13267
  if (this.canUseNative(e, e.nativeAccountId))
13267
- return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(d) {
13268
- throw d instanceof tt && d.isFatal() && (a.nativeExtensionProvider = void 0), d;
13268
+ return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
13269
+ throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
13269
13270
  })];
13270
13271
  throw M.createUnableToAcquireTokenFromNativePlatformError();
13271
13272
  } else
13272
13273
  throw M.createAuthCodeOrNativeAccountIdRequiredError();
13273
- } catch (d) {
13274
- throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, d), r.endMeasurement({
13275
- errorCode: d instanceof D && d.errorCode || void 0,
13276
- subErrorCode: d instanceof D && d.subError || void 0,
13274
+ } catch (u) {
13275
+ throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
13276
+ errorCode: u instanceof D && u.errorCode || void 0,
13277
+ subErrorCode: u instanceof D && u.subError || void 0,
13277
13278
  success: !1
13278
- }), d;
13279
+ }), u;
13279
13280
  }
13280
13281
  return [
13281
13282
  2
@@ -13293,16 +13294,16 @@ var ka = (
13293
13294
  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({
13294
13295
  visibilityChangeCount: 0
13295
13296
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
13296
- var d;
13297
- return (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13297
+ var u;
13298
+ return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13298
13299
  success: !0,
13299
13300
  fromCache: s.fromCache,
13300
13301
  isNativeBroker: s.fromNativeBroker,
13301
13302
  requestId: s.requestId
13302
13303
  }), s;
13303
13304
  }).catch(function(s) {
13304
- var d;
13305
- throw (d = i.acquireTokenByCodeAsyncMeasurement) === null || d === void 0 || d.endMeasurement({
13305
+ var u;
13306
+ throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13306
13307
  errorCode: s.errorCode,
13307
13308
  subErrorCode: s.subError,
13308
13309
  success: !1
@@ -13403,11 +13404,11 @@ var ka = (
13403
13404
  }, n.prototype.getActiveAccount = function() {
13404
13405
  return this.browserStorage.getActiveAccount();
13405
13406
  }, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
13406
- 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)
13407
+ 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)
13407
13408
  throw En.createInMemoryRedirectUnavailableError();
13408
13409
  (e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
13409
13410
  }, n.prototype.preflightInteractiveRequest = function(e) {
13410
- this.logger.verbose("preflightInteractiveRequest called, validating app environment"), ue.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13411
+ this.logger.verbose("preflightInteractiveRequest called, validating app environment"), de.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13411
13412
  }, n.prototype.acquireTokenNative = function(e, t, r) {
13412
13413
  return T(this, void 0, void 0, function() {
13413
13414
  var o;
@@ -13496,7 +13497,7 @@ var wa = (
13496
13497
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
13497
13498
  }, e.prototype.acquireTokenSilent = function(t) {
13498
13499
  return T(this, void 0, void 0, function() {
13499
- var r, o, i, a, s, d, p, u = this;
13500
+ var r, o, i, a, s, u, p, d = this;
13500
13501
  return I(this, function(f) {
13501
13502
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
13502
13503
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -13513,8 +13514,8 @@ var wa = (
13513
13514
  resourceRequestUri: t.resourceRequestUri,
13514
13515
  shrClaims: t.shrClaims,
13515
13516
  sshKid: t.sshKid
13516
- }, 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(_) {
13517
- return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
13517
+ }, 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(_) {
13518
+ return d.activeSilentTokenRequests.delete(s), o.addStaticFields({
13518
13519
  accessTokenSize: _.accessToken.length,
13519
13520
  idTokenSize: _.idToken.length
13520
13521
  }), o.endMeasurement({
@@ -13525,12 +13526,12 @@ var wa = (
13525
13526
  requestId: _.requestId
13526
13527
  }), _;
13527
13528
  }).catch(function(_) {
13528
- throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
13529
+ throw d.activeSilentTokenRequests.delete(s), o.endMeasurement({
13529
13530
  errorCode: _.errorCode,
13530
13531
  subErrorCode: _.subError,
13531
13532
  success: !1
13532
13533
  }), _;
13533
- }), 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]);
13534
+ }), 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]);
13534
13535
  });
13535
13536
  });
13536
13537
  }, e.prototype.trackPageVisibility = function() {
@@ -13540,14 +13541,14 @@ var wa = (
13540
13541
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
13541
13542
  var o;
13542
13543
  return T(this, void 0, void 0, function() {
13543
- var i, a, s, d, p, u = this;
13544
+ var i, a, s, u, p, d = this;
13544
13545
  return I(this, function(f) {
13545
13546
  switch (f.label) {
13546
13547
  case 0:
13547
13548
  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({
13548
13549
  visibilityChangeCount: 0
13549
13550
  }), 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(_) {
13550
- return T(u, void 0, void 0, function() {
13551
+ return T(d, void 0, void 0, function() {
13551
13552
  var k;
13552
13553
  return I(this, function(E) {
13553
13554
  if (_ instanceof tt && _.isFatal())
@@ -13559,23 +13560,23 @@ var wa = (
13559
13560
  case 1:
13560
13561
  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)];
13561
13562
  case 2:
13562
- d = f.sent(), p = B(B({}, t), {
13563
+ u = f.sent(), p = B(B({}, t), {
13563
13564
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
13564
13565
  cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
13565
- }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, d.correlationId), i = this.acquireTokenFromCache(s, d, p).catch(function(_) {
13566
+ }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(_) {
13566
13567
  if (p.cacheLookupPolicy === Le.AccessToken)
13567
13568
  throw _;
13568
- 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) {
13569
+ return de.blockReloadInHiddenIframes(), d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, u), d.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, u.correlationId), d.acquireTokenByRefreshToken(u, p).catch(function(k) {
13569
13570
  var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Nt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13570
13571
  if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13571
13572
  throw k;
13572
- 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);
13573
+ return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), d.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, u.correlationId), d.acquireTokenBySilentIframe(u);
13573
13574
  });
13574
13575
  }), f.label = 3;
13575
13576
  case 3:
13576
13577
  return [2, i.then(function(_) {
13577
13578
  var k;
13578
- return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13579
+ return d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13579
13580
  success: !0,
13580
13581
  fromCache: _.fromCache,
13581
13582
  isNativeBroker: _.fromNativeBroker,
@@ -13583,13 +13584,13 @@ var wa = (
13583
13584
  }), _;
13584
13585
  }).catch(function(_) {
13585
13586
  var k;
13586
- throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13587
+ throw d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13587
13588
  errorCode: _.errorCode,
13588
13589
  subErrorCode: _.subError,
13589
13590
  success: !1
13590
13591
  }), _;
13591
13592
  }).finally(function() {
13592
- document.removeEventListener("visibilitychange", u.trackPageVisibility);
13593
+ document.removeEventListener("visibilitychange", d.trackPageVisibility);
13593
13594
  })];
13594
13595
  }
13595
13596
  });
@@ -13682,18 +13683,18 @@ const An = {
13682
13683
  if (t)
13683
13684
  return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
13684
13685
  if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
13685
- const [s, d] = await Z(
13686
+ const [s, u] = await Z(
13686
13687
  Ne.microsoftSDK(r, this.$storage)
13687
13688
  );
13688
13689
  if (s)
13689
13690
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13690
- if (d.data.success) {
13691
+ if (u.data.success) {
13691
13692
  if (this.display === "popup")
13692
13693
  return (a = window.parent) == null ? void 0 : a.postMessage(
13693
- { code: d.data.auth_code, state: this.$route.query.state },
13694
+ { code: u.data.auth_code, state: this.$route.query.state },
13694
13695
  "*"
13695
13696
  );
13696
- await this.loginSetup(d), await this.getLoggedInAccounts(), this.loginSuccess({ ...d, isModal: this.isModal }), setTimeout(() => {
13697
+ await this.loginSetup(u), await this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
13697
13698
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
13698
13699
  }, 1e3);
13699
13700
  } else
@@ -13720,7 +13721,7 @@ const An = {
13720
13721
  },
13721
13722
  compareLangKeys() {
13722
13723
  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);
13723
- 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();
13724
+ 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();
13724
13725
  },
13725
13726
  base64ImageToBlob(n) {
13726
13727
  const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
@@ -13754,8 +13755,8 @@ const An = {
13754
13755
  cropCardScan(n, e) {
13755
13756
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
13756
13757
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
13757
- const i = t.width, a = t.width / 1.65, s = 0, d = t.height / 2 - a / 2, p = i, u = a;
13758
- r.width = p, r.height = u, o.drawImage(t, s, d, i, a, 0, 0, p, u);
13758
+ const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, d = a;
13759
+ r.width = p, r.height = d, o.drawImage(t, s, u, i, a, 0, 0, p, d);
13759
13760
  const f = r.toDataURL();
13760
13761
  return e(f), f;
13761
13762
  };
@@ -13781,7 +13782,7 @@ const An = {
13781
13782
  },
13782
13783
  async decryptAES(n, e, t) {
13783
13784
  try {
13784
- const r = (d) => Uint8Array.from(atob(d), (p) => p.charCodeAt(0));
13785
+ const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
13785
13786
  t = t.replace(/ /g, "+");
13786
13787
  const o = new TextEncoder(), i = new TextDecoder();
13787
13788
  n = o.encode(n), e = o.encode(e), t = r(t, storage);
@@ -13831,11 +13832,11 @@ const An = {
13831
13832
  localStorage.setItem("pkce_code_verifier", r);
13832
13833
  let o = await Ut.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
13833
13834
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
13834
- 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;
13835
- window.addEventListener("message", async (u) => {
13836
- if (!this.allowedOrigins.includes(u.origin))
13835
+ 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;
13836
+ window.addEventListener("message", async (d) => {
13837
+ if (!this.allowedOrigins.includes(d.origin))
13837
13838
  return console.log("Origin is not allowed!");
13838
- u.data.type === "okta" && (p = u.data.code, await d.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13839
+ d.data.type === "okta" && (p = d.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13839
13840
  }, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
13840
13841
  },
13841
13842
  async handleOktaRedirect() {
@@ -13875,10 +13876,10 @@ function Aa(n, e, t) {
13875
13876
  return (e + t) * 3 / 4 - t;
13876
13877
  }
13877
13878
  function Ra(n) {
13878
- 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;
13879
- for (d = 0; d < s; d += 4)
13880
- 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;
13881
- 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;
13879
+ 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;
13880
+ for (u = 0; u < s; u += 4)
13881
+ 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;
13882
+ 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;
13882
13883
  }
13883
13884
  function Pa(n) {
13884
13885
  return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
@@ -13900,23 +13901,23 @@ function Na(n) {
13900
13901
  var ir = {};
13901
13902
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13902
13903
  ir.read = function(n, e, t, r, o) {
13903
- 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];
13904
- for (f += _, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + f], f += _, u -= 8)
13904
+ 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];
13905
+ for (f += _, i = k & (1 << -d) - 1, k >>= -d, d += s; d > 0; i = i * 256 + n[e + f], f += _, d -= 8)
13905
13906
  ;
13906
- for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += _, u -= 8)
13907
+ for (a = i & (1 << -d) - 1, i >>= -d, d += r; d > 0; a = a * 256 + n[e + f], f += _, d -= 8)
13907
13908
  ;
13908
13909
  if (i === 0)
13909
13910
  i = 1 - p;
13910
13911
  else {
13911
- if (i === d)
13912
+ if (i === u)
13912
13913
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
13913
13914
  a = a + Math.pow(2, r), i = i - p;
13914
13915
  }
13915
13916
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
13916
13917
  };
13917
13918
  ir.write = function(n, e, t, r, o, i) {
13918
- 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;
13919
- 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)
13919
+ var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
13920
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = d) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + f >= 1 ? e += _ / u : e += _ * Math.pow(2, 1 - f), e * u >= 2 && (a++, u /= 2), a + f >= d ? (s = 0, a = d) : a + f >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
13920
13921
  ;
13921
13922
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
13922
13923
  ;
@@ -13930,14 +13931,14 @@ ir.write = function(n, e, t, r, o, i) {
13930
13931
  */
13931
13932
  (function(n) {
13932
13933
  const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
13933
- n.Buffer = u, n.SlowBuffer = xe, n.INSPECT_MAX_BYTES = 50;
13934
+ n.Buffer = d, n.SlowBuffer = Ue, n.INSPECT_MAX_BYTES = 50;
13934
13935
  const o = 2147483647;
13935
13936
  n.kMaxLength = o;
13936
13937
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
13937
- u.TYPED_ARRAY_SUPPORT = d(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13938
+ d.TYPED_ARRAY_SUPPORT = u(), !d.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13938
13939
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
13939
13940
  );
13940
- function d() {
13941
+ function u() {
13941
13942
  try {
13942
13943
  const h = new i(1), c = { foo: function() {
13943
13944
  return 42;
@@ -13947,16 +13948,16 @@ ir.write = function(n, e, t, r, o, i) {
13947
13948
  return !1;
13948
13949
  }
13949
13950
  }
13950
- Object.defineProperty(u.prototype, "parent", {
13951
+ Object.defineProperty(d.prototype, "parent", {
13951
13952
  enumerable: !0,
13952
13953
  get: function() {
13953
- if (u.isBuffer(this))
13954
+ if (d.isBuffer(this))
13954
13955
  return this.buffer;
13955
13956
  }
13956
- }), Object.defineProperty(u.prototype, "offset", {
13957
+ }), Object.defineProperty(d.prototype, "offset", {
13957
13958
  enumerable: !0,
13958
13959
  get: function() {
13959
- if (u.isBuffer(this))
13960
+ if (d.isBuffer(this))
13960
13961
  return this.byteOffset;
13961
13962
  }
13962
13963
  });
@@ -13964,9 +13965,9 @@ ir.write = function(n, e, t, r, o, i) {
13964
13965
  if (h > o)
13965
13966
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
13966
13967
  const c = new i(h);
13967
- return Object.setPrototypeOf(c, u.prototype), c;
13968
+ return Object.setPrototypeOf(c, d.prototype), c;
13968
13969
  }
13969
- function u(h, c, l) {
13970
+ function d(h, c, l) {
13970
13971
  if (typeof h == "number") {
13971
13972
  if (typeof c == "string")
13972
13973
  throw new TypeError(
@@ -13976,7 +13977,7 @@ ir.write = function(n, e, t, r, o, i) {
13976
13977
  }
13977
13978
  return f(h, c, l);
13978
13979
  }
13979
- u.poolSize = 8192;
13980
+ d.poolSize = 8192;
13980
13981
  function f(h, c, l) {
13981
13982
  if (typeof h == "string")
13982
13983
  return N(h, c);
@@ -13994,19 +13995,19 @@ ir.write = function(n, e, t, r, o, i) {
13994
13995
  );
13995
13996
  const m = h.valueOf && h.valueOf();
13996
13997
  if (m != null && m !== h)
13997
- return u.from(m, c, l);
13998
+ return d.from(m, c, l);
13998
13999
  const v = $(h);
13999
14000
  if (v)
14000
14001
  return v;
14001
14002
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
14002
- return u.from(h[Symbol.toPrimitive]("string"), c, l);
14003
+ return d.from(h[Symbol.toPrimitive]("string"), c, l);
14003
14004
  throw new TypeError(
14004
14005
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
14005
14006
  );
14006
14007
  }
14007
- u.from = function(h, c, l) {
14008
+ d.from = function(h, c, l) {
14008
14009
  return f(h, c, l);
14009
- }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
14010
+ }, Object.setPrototypeOf(d.prototype, i.prototype), Object.setPrototypeOf(d, i);
14010
14011
  function _(h) {
14011
14012
  if (typeof h != "number")
14012
14013
  throw new TypeError('"size" argument must be of type number');
@@ -14016,19 +14017,19 @@ ir.write = function(n, e, t, r, o, i) {
14016
14017
  function k(h, c, l) {
14017
14018
  return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof l == "string" ? p(h).fill(c, l) : p(h).fill(c) : p(h);
14018
14019
  }
14019
- u.alloc = function(h, c, l) {
14020
+ d.alloc = function(h, c, l) {
14020
14021
  return k(h, c, l);
14021
14022
  };
14022
14023
  function E(h) {
14023
14024
  return _(h), p(h < 0 ? 0 : Ae(h) | 0);
14024
14025
  }
14025
- u.allocUnsafe = function(h) {
14026
+ d.allocUnsafe = function(h) {
14026
14027
  return E(h);
14027
- }, u.allocUnsafeSlow = function(h) {
14028
+ }, d.allocUnsafeSlow = function(h) {
14028
14029
  return E(h);
14029
14030
  };
14030
14031
  function N(h, c) {
14031
- if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
14032
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
14032
14033
  throw new TypeError("Unknown encoding: " + c);
14033
14034
  const l = Ve(h, c) | 0;
14034
14035
  let m = p(l);
@@ -14054,10 +14055,10 @@ ir.write = function(n, e, t, r, o, i) {
14054
14055
  if (h.byteLength < c + (l || 0))
14055
14056
  throw new RangeError('"length" is outside of buffer bounds');
14056
14057
  let m;
14057
- 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;
14058
+ 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;
14058
14059
  }
14059
14060
  function $(h) {
14060
- if (u.isBuffer(h)) {
14061
+ if (d.isBuffer(h)) {
14061
14062
  const c = Ae(h.length) | 0, l = p(c);
14062
14063
  return l.length === 0 || h.copy(l, 0, 0, c), l;
14063
14064
  }
@@ -14071,13 +14072,13 @@ ir.write = function(n, e, t, r, o, i) {
14071
14072
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + " bytes");
14072
14073
  return h | 0;
14073
14074
  }
14074
- function xe(h) {
14075
- return +h != h && (h = 0), u.alloc(+h);
14075
+ function Ue(h) {
14076
+ return +h != h && (h = 0), d.alloc(+h);
14076
14077
  }
14077
- u.isBuffer = function(c) {
14078
- return c != null && c._isBuffer === !0 && c !== u.prototype;
14079
- }, u.compare = function(c, l) {
14080
- 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))
14078
+ d.isBuffer = function(c) {
14079
+ return c != null && c._isBuffer === !0 && c !== d.prototype;
14080
+ }, d.compare = function(c, l) {
14081
+ 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))
14081
14082
  throw new TypeError(
14082
14083
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
14083
14084
  );
@@ -14090,7 +14091,7 @@ ir.write = function(n, e, t, r, o, i) {
14090
14091
  break;
14091
14092
  }
14092
14093
  return m < v ? -1 : v < m ? 1 : 0;
14093
- }, u.isEncoding = function(c) {
14094
+ }, d.isEncoding = function(c) {
14094
14095
  switch (String(c).toLowerCase()) {
14095
14096
  case "hex":
14096
14097
  case "utf8":
@@ -14107,26 +14108,26 @@ ir.write = function(n, e, t, r, o, i) {
14107
14108
  default:
14108
14109
  return !1;
14109
14110
  }
14110
- }, u.concat = function(c, l) {
14111
+ }, d.concat = function(c, l) {
14111
14112
  if (!Array.isArray(c))
14112
14113
  throw new TypeError('"list" argument must be an Array of Buffers');
14113
14114
  if (c.length === 0)
14114
- return u.alloc(0);
14115
+ return d.alloc(0);
14115
14116
  let m;
14116
14117
  if (l === void 0)
14117
14118
  for (l = 0, m = 0; m < c.length; ++m)
14118
14119
  l += c[m].length;
14119
- const v = u.allocUnsafe(l);
14120
+ const v = d.allocUnsafe(l);
14120
14121
  let w = 0;
14121
14122
  for (m = 0; m < c.length; ++m) {
14122
14123
  let C = c[m];
14123
14124
  if ($e(C, i))
14124
- w + C.length > v.length ? (u.isBuffer(C) || (C = u.from(C)), C.copy(v, w)) : i.prototype.set.call(
14125
+ w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
14125
14126
  v,
14126
14127
  C,
14127
14128
  w
14128
14129
  );
14129
- else if (u.isBuffer(C))
14130
+ else if (d.isBuffer(C))
14130
14131
  C.copy(v, w);
14131
14132
  else
14132
14133
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -14135,7 +14136,7 @@ ir.write = function(n, e, t, r, o, i) {
14135
14136
  return v;
14136
14137
  };
14137
14138
  function Ve(h, c) {
14138
- if (u.isBuffer(h))
14139
+ if (d.isBuffer(h))
14139
14140
  return h.length;
14140
14141
  if (a.isView(h) || $e(h, a))
14141
14142
  return h.byteLength;
@@ -14171,7 +14172,7 @@ ir.write = function(n, e, t, r, o, i) {
14171
14172
  c = ("" + c).toLowerCase(), v = !0;
14172
14173
  }
14173
14174
  }
14174
- u.byteLength = Ve;
14175
+ d.byteLength = Ve;
14175
14176
  function Ct(h, c, l) {
14176
14177
  let m = !1;
14177
14178
  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))
@@ -14201,45 +14202,45 @@ ir.write = function(n, e, t, r, o, i) {
14201
14202
  h = (h + "").toLowerCase(), m = !0;
14202
14203
  }
14203
14204
  }
14204
- u.prototype._isBuffer = !0;
14205
+ d.prototype._isBuffer = !0;
14205
14206
  function ce(h, c, l) {
14206
14207
  const m = h[c];
14207
14208
  h[c] = h[l], h[l] = m;
14208
14209
  }
14209
- u.prototype.swap16 = function() {
14210
+ d.prototype.swap16 = function() {
14210
14211
  const c = this.length;
14211
14212
  if (c % 2 !== 0)
14212
14213
  throw new RangeError("Buffer size must be a multiple of 16-bits");
14213
14214
  for (let l = 0; l < c; l += 2)
14214
14215
  ce(this, l, l + 1);
14215
14216
  return this;
14216
- }, u.prototype.swap32 = function() {
14217
+ }, d.prototype.swap32 = function() {
14217
14218
  const c = this.length;
14218
14219
  if (c % 4 !== 0)
14219
14220
  throw new RangeError("Buffer size must be a multiple of 32-bits");
14220
14221
  for (let l = 0; l < c; l += 4)
14221
14222
  ce(this, l, l + 3), ce(this, l + 1, l + 2);
14222
14223
  return this;
14223
- }, u.prototype.swap64 = function() {
14224
+ }, d.prototype.swap64 = function() {
14224
14225
  const c = this.length;
14225
14226
  if (c % 8 !== 0)
14226
14227
  throw new RangeError("Buffer size must be a multiple of 64-bits");
14227
14228
  for (let l = 0; l < c; l += 8)
14228
14229
  ce(this, l, l + 7), ce(this, l + 1, l + 6), ce(this, l + 2, l + 5), ce(this, l + 3, l + 4);
14229
14230
  return this;
14230
- }, u.prototype.toString = function() {
14231
+ }, d.prototype.toString = function() {
14231
14232
  const c = this.length;
14232
14233
  return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
14233
- }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
14234
- if (!u.isBuffer(c))
14234
+ }, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(c) {
14235
+ if (!d.isBuffer(c))
14235
14236
  throw new TypeError("Argument must be a Buffer");
14236
- return this === c ? !0 : u.compare(this, c) === 0;
14237
- }, u.prototype.inspect = function() {
14237
+ return this === c ? !0 : d.compare(this, c) === 0;
14238
+ }, d.prototype.inspect = function() {
14238
14239
  let c = "";
14239
14240
  const l = n.INSPECT_MAX_BYTES;
14240
14241
  return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
14241
- }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, l, m, v, w) {
14242
- if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
14242
+ }, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
14243
+ if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
14243
14244
  throw new TypeError(
14244
14245
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
14245
14246
  );
@@ -14254,10 +14255,10 @@ ir.write = function(n, e, t, r, o, i) {
14254
14255
  if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
14255
14256
  return 0;
14256
14257
  let C = w - v, Y = m - l;
14257
- const le = Math.min(C, Y), ae = this.slice(v, w), de = c.slice(l, m);
14258
+ const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
14258
14259
  for (let re = 0; re < le; ++re)
14259
- if (ae[re] !== de[re]) {
14260
- C = ae[re], Y = de[re];
14260
+ if (ae[re] !== ue[re]) {
14261
+ C = ae[re], Y = ue[re];
14261
14262
  break;
14262
14263
  }
14263
14264
  return C < Y ? -1 : Y < C ? 1 : 0;
@@ -14274,7 +14275,7 @@ ir.write = function(n, e, t, r, o, i) {
14274
14275
  l = 0;
14275
14276
  else
14276
14277
  return -1;
14277
- if (typeof c == "string" && (c = u.from(c, m)), u.isBuffer(c))
14278
+ if (typeof c == "string" && (c = d.from(c, m)), d.isBuffer(c))
14278
14279
  return c.length === 0 ? -1 : sr(h, c, l, m, v);
14279
14280
  if (typeof c == "number")
14280
14281
  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);
@@ -14287,36 +14288,36 @@ ir.write = function(n, e, t, r, o, i) {
14287
14288
  return -1;
14288
14289
  w = 2, C /= 2, Y /= 2, l /= 2;
14289
14290
  }
14290
- function le(de, re) {
14291
- return w === 1 ? de[re] : de.readUInt16BE(re * w);
14291
+ function le(ue, re) {
14292
+ return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
14292
14293
  }
14293
14294
  let ae;
14294
14295
  if (v) {
14295
- let de = -1;
14296
+ let ue = -1;
14296
14297
  for (ae = l; ae < C; ae++)
14297
- if (le(h, ae) === le(c, de === -1 ? 0 : ae - de)) {
14298
- if (de === -1 && (de = ae), ae - de + 1 === Y)
14299
- return de * w;
14298
+ if (le(h, ae) === le(c, ue === -1 ? 0 : ae - ue)) {
14299
+ if (ue === -1 && (ue = ae), ae - ue + 1 === Y)
14300
+ return ue * w;
14300
14301
  } else
14301
- de !== -1 && (ae -= ae - de), de = -1;
14302
+ ue !== -1 && (ae -= ae - ue), ue = -1;
14302
14303
  } else
14303
14304
  for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
14304
- let de = !0;
14305
+ let ue = !0;
14305
14306
  for (let re = 0; re < Y; re++)
14306
14307
  if (le(h, ae + re) !== le(c, re)) {
14307
- de = !1;
14308
+ ue = !1;
14308
14309
  break;
14309
14310
  }
14310
- if (de)
14311
+ if (ue)
14311
14312
  return ae;
14312
14313
  }
14313
14314
  return -1;
14314
14315
  }
14315
- u.prototype.includes = function(c, l, m) {
14316
+ d.prototype.includes = function(c, l, m) {
14316
14317
  return this.indexOf(c, l, m) !== -1;
14317
- }, u.prototype.indexOf = function(c, l, m) {
14318
+ }, d.prototype.indexOf = function(c, l, m) {
14318
14319
  return ar(this, c, l, m, !0);
14319
- }, u.prototype.lastIndexOf = function(c, l, m) {
14320
+ }, d.prototype.lastIndexOf = function(c, l, m) {
14320
14321
  return ar(this, c, l, m, !1);
14321
14322
  };
14322
14323
  function Io(h, c, l, m) {
@@ -14346,7 +14347,7 @@ ir.write = function(n, e, t, r, o, i) {
14346
14347
  function Po(h, c, l, m) {
14347
14348
  return sn(qo(c, h.length - l), h, l, m);
14348
14349
  }
14349
- u.prototype.write = function(c, l, m, v) {
14350
+ d.prototype.write = function(c, l, m, v) {
14350
14351
  if (l === void 0)
14351
14352
  v = "utf8", m = this.length, l = 0;
14352
14353
  else if (m === void 0 && typeof l == "string")
@@ -14385,7 +14386,7 @@ ir.write = function(n, e, t, r, o, i) {
14385
14386
  throw new TypeError("Unknown encoding: " + v);
14386
14387
  v = ("" + v).toLowerCase(), C = !0;
14387
14388
  }
14388
- }, u.prototype.toJSON = function() {
14389
+ }, d.prototype.toJSON = function() {
14389
14390
  return {
14390
14391
  type: "Buffer",
14391
14392
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -14402,7 +14403,7 @@ ir.write = function(n, e, t, r, o, i) {
14402
14403
  const w = h[v];
14403
14404
  let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
14404
14405
  if (v + Y <= l) {
14405
- let le, ae, de, re;
14406
+ let le, ae, ue, re;
14406
14407
  switch (Y) {
14407
14408
  case 1:
14408
14409
  w < 128 && (C = w);
@@ -14414,7 +14415,7 @@ ir.write = function(n, e, t, r, o, i) {
14414
14415
  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));
14415
14416
  break;
14416
14417
  case 4:
14417
- 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));
14418
+ 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));
14418
14419
  }
14419
14420
  }
14420
14421
  C === null ? (C = 65533, Y = 1) : C > 65535 && (C -= 65536, m.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), m.push(C), v += Y;
@@ -14463,11 +14464,11 @@ ir.write = function(n, e, t, r, o, i) {
14463
14464
  v += String.fromCharCode(m[w] + m[w + 1] * 256);
14464
14465
  return v;
14465
14466
  }
14466
- u.prototype.slice = function(c, l) {
14467
+ d.prototype.slice = function(c, l) {
14467
14468
  const m = this.length;
14468
14469
  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);
14469
14470
  const v = this.subarray(c, l);
14470
- return Object.setPrototypeOf(v, u.prototype), v;
14471
+ return Object.setPrototypeOf(v, d.prototype), v;
14471
14472
  };
14472
14473
  function ge(h, c, l) {
14473
14474
  if (h % 1 !== 0 || h < 0)
@@ -14475,97 +14476,97 @@ ir.write = function(n, e, t, r, o, i) {
14475
14476
  if (h + c > l)
14476
14477
  throw new RangeError("Trying to access beyond buffer length");
14477
14478
  }
14478
- u.prototype.readUintLE = u.prototype.readUIntLE = function(c, l, m) {
14479
+ d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
14479
14480
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14480
14481
  let v = this[c], w = 1, C = 0;
14481
14482
  for (; ++C < l && (w *= 256); )
14482
14483
  v += this[c + C] * w;
14483
14484
  return v;
14484
- }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, l, m) {
14485
+ }, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
14485
14486
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14486
14487
  let v = this[c + --l], w = 1;
14487
14488
  for (; l > 0 && (w *= 256); )
14488
14489
  v += this[c + --l] * w;
14489
14490
  return v;
14490
- }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, l) {
14491
+ }, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
14491
14492
  return c = c >>> 0, l || ge(c, 1, this.length), this[c];
14492
- }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, l) {
14493
+ }, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
14493
14494
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
14494
- }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, l) {
14495
+ }, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
14495
14496
  return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
14496
- }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, l) {
14497
+ }, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
14497
14498
  return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
14498
- }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, l) {
14499
+ }, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
14499
14500
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
14500
- }, u.prototype.readBigUInt64LE = dt(function(c) {
14501
+ }, d.prototype.readBigUInt64LE = ut(function(c) {
14501
14502
  c = c >>> 0, Tt(c, "offset");
14502
14503
  const l = this[c], m = this[c + 7];
14503
14504
  (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14504
14505
  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;
14505
14506
  return BigInt(v) + (BigInt(w) << BigInt(32));
14506
- }), u.prototype.readBigUInt64BE = dt(function(c) {
14507
+ }), d.prototype.readBigUInt64BE = ut(function(c) {
14507
14508
  c = c >>> 0, Tt(c, "offset");
14508
14509
  const l = this[c], m = this[c + 7];
14509
14510
  (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14510
14511
  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;
14511
14512
  return (BigInt(v) << BigInt(32)) + BigInt(w);
14512
- }), u.prototype.readIntLE = function(c, l, m) {
14513
+ }), d.prototype.readIntLE = function(c, l, m) {
14513
14514
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14514
14515
  let v = this[c], w = 1, C = 0;
14515
14516
  for (; ++C < l && (w *= 256); )
14516
14517
  v += this[c + C] * w;
14517
14518
  return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
14518
- }, u.prototype.readIntBE = function(c, l, m) {
14519
+ }, d.prototype.readIntBE = function(c, l, m) {
14519
14520
  c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14520
14521
  let v = l, w = 1, C = this[c + --v];
14521
14522
  for (; v > 0 && (w *= 256); )
14522
14523
  C += this[c + --v] * w;
14523
14524
  return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
14524
- }, u.prototype.readInt8 = function(c, l) {
14525
+ }, d.prototype.readInt8 = function(c, l) {
14525
14526
  return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
14526
- }, u.prototype.readInt16LE = function(c, l) {
14527
+ }, d.prototype.readInt16LE = function(c, l) {
14527
14528
  c = c >>> 0, l || ge(c, 2, this.length);
14528
14529
  const m = this[c] | this[c + 1] << 8;
14529
14530
  return m & 32768 ? m | 4294901760 : m;
14530
- }, u.prototype.readInt16BE = function(c, l) {
14531
+ }, d.prototype.readInt16BE = function(c, l) {
14531
14532
  c = c >>> 0, l || ge(c, 2, this.length);
14532
14533
  const m = this[c + 1] | this[c] << 8;
14533
14534
  return m & 32768 ? m | 4294901760 : m;
14534
- }, u.prototype.readInt32LE = function(c, l) {
14535
+ }, d.prototype.readInt32LE = function(c, l) {
14535
14536
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
14536
- }, u.prototype.readInt32BE = function(c, l) {
14537
+ }, d.prototype.readInt32BE = function(c, l) {
14537
14538
  return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
14538
- }, u.prototype.readBigInt64LE = dt(function(c) {
14539
+ }, d.prototype.readBigInt64LE = ut(function(c) {
14539
14540
  c = c >>> 0, Tt(c, "offset");
14540
14541
  const l = this[c], m = this[c + 7];
14541
14542
  (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14542
14543
  const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
14543
14544
  return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
14544
- }), u.prototype.readBigInt64BE = dt(function(c) {
14545
+ }), d.prototype.readBigInt64BE = ut(function(c) {
14545
14546
  c = c >>> 0, Tt(c, "offset");
14546
14547
  const l = this[c], m = this[c + 7];
14547
14548
  (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14548
14549
  const v = (l << 24) + // Overflow
14549
14550
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
14550
14551
  return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
14551
- }), u.prototype.readFloatLE = function(c, l) {
14552
+ }), d.prototype.readFloatLE = function(c, l) {
14552
14553
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
14553
- }, u.prototype.readFloatBE = function(c, l) {
14554
+ }, d.prototype.readFloatBE = function(c, l) {
14554
14555
  return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
14555
- }, u.prototype.readDoubleLE = function(c, l) {
14556
+ }, d.prototype.readDoubleLE = function(c, l) {
14556
14557
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
14557
- }, u.prototype.readDoubleBE = function(c, l) {
14558
+ }, d.prototype.readDoubleBE = function(c, l) {
14558
14559
  return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
14559
14560
  };
14560
14561
  function Re(h, c, l, m, v, w) {
14561
- if (!u.isBuffer(h))
14562
+ if (!d.isBuffer(h))
14562
14563
  throw new TypeError('"buffer" argument must be a Buffer instance');
14563
14564
  if (c > v || c < w)
14564
14565
  throw new RangeError('"value" argument is out of bounds');
14565
14566
  if (l + m > h.length)
14566
14567
  throw new RangeError("Index out of range");
14567
14568
  }
14568
- u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, l, m, v) {
14569
+ d.prototype.writeUintLE = d.prototype.writeUIntLE = function(c, l, m, v) {
14569
14570
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14570
14571
  const Y = Math.pow(2, 8 * m) - 1;
14571
14572
  Re(this, c, l, m, Y, 0);
@@ -14574,7 +14575,7 @@ ir.write = function(n, e, t, r, o, i) {
14574
14575
  for (this[l] = c & 255; ++C < m && (w *= 256); )
14575
14576
  this[l + C] = c / w & 255;
14576
14577
  return l + m;
14577
- }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, l, m, v) {
14578
+ }, d.prototype.writeUintBE = d.prototype.writeUIntBE = function(c, l, m, v) {
14578
14579
  if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14579
14580
  const Y = Math.pow(2, 8 * m) - 1;
14580
14581
  Re(this, c, l, m, Y, 0);
@@ -14583,36 +14584,36 @@ ir.write = function(n, e, t, r, o, i) {
14583
14584
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14584
14585
  this[l + w] = c / C & 255;
14585
14586
  return l + m;
14586
- }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, l, m) {
14587
+ }, d.prototype.writeUint8 = d.prototype.writeUInt8 = function(c, l, m) {
14587
14588
  return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
14588
- }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, l, m) {
14589
+ }, d.prototype.writeUint16LE = d.prototype.writeUInt16LE = function(c, l, m) {
14589
14590
  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;
14590
- }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, l, m) {
14591
+ }, d.prototype.writeUint16BE = d.prototype.writeUInt16BE = function(c, l, m) {
14591
14592
  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;
14592
- }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, l, m) {
14593
+ }, d.prototype.writeUint32LE = d.prototype.writeUInt32LE = function(c, l, m) {
14593
14594
  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;
14594
- }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, l, m) {
14595
+ }, d.prototype.writeUint32BE = d.prototype.writeUInt32BE = function(c, l, m) {
14595
14596
  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;
14596
14597
  };
14597
- function dr(h, c, l, m, v) {
14598
+ function ur(h, c, l, m, v) {
14598
14599
  gr(c, m, v, h, l, 7);
14599
14600
  let w = Number(c & BigInt(4294967295));
14600
14601
  h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
14601
14602
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14602
14603
  return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
14603
14604
  }
14604
- function ur(h, c, l, m, v) {
14605
+ function dr(h, c, l, m, v) {
14605
14606
  gr(c, m, v, h, l, 7);
14606
14607
  let w = Number(c & BigInt(4294967295));
14607
14608
  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;
14608
14609
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14609
14610
  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;
14610
14611
  }
14611
- u.prototype.writeBigUInt64LE = dt(function(c, l = 0) {
14612
- return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14613
- }), u.prototype.writeBigUInt64BE = dt(function(c, l = 0) {
14612
+ d.prototype.writeBigUInt64LE = ut(function(c, l = 0) {
14614
14613
  return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14615
- }), u.prototype.writeIntLE = function(c, l, m, v) {
14614
+ }), d.prototype.writeBigUInt64BE = ut(function(c, l = 0) {
14615
+ return dr(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
14616
+ }), d.prototype.writeIntLE = function(c, l, m, v) {
14616
14617
  if (c = +c, l = l >>> 0, !v) {
14617
14618
  const le = Math.pow(2, 8 * m - 1);
14618
14619
  Re(this, c, l, m, le - 1, -le);
@@ -14621,7 +14622,7 @@ ir.write = function(n, e, t, r, o, i) {
14621
14622
  for (this[l] = c & 255; ++w < m && (C *= 256); )
14622
14623
  c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14623
14624
  return l + m;
14624
- }, u.prototype.writeIntBE = function(c, l, m, v) {
14625
+ }, d.prototype.writeIntBE = function(c, l, m, v) {
14625
14626
  if (c = +c, l = l >>> 0, !v) {
14626
14627
  const le = Math.pow(2, 8 * m - 1);
14627
14628
  Re(this, c, l, m, le - 1, -le);
@@ -14630,20 +14631,20 @@ ir.write = function(n, e, t, r, o, i) {
14630
14631
  for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14631
14632
  c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14632
14633
  return l + m;
14633
- }, u.prototype.writeInt8 = function(c, l, m) {
14634
+ }, d.prototype.writeInt8 = function(c, l, m) {
14634
14635
  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;
14635
- }, u.prototype.writeInt16LE = function(c, l, m) {
14636
+ }, d.prototype.writeInt16LE = function(c, l, m) {
14636
14637
  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;
14637
- }, u.prototype.writeInt16BE = function(c, l, m) {
14638
+ }, d.prototype.writeInt16BE = function(c, l, m) {
14638
14639
  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;
14639
- }, u.prototype.writeInt32LE = function(c, l, m) {
14640
+ }, d.prototype.writeInt32LE = function(c, l, m) {
14640
14641
  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;
14641
- }, u.prototype.writeInt32BE = function(c, l, m) {
14642
+ }, d.prototype.writeInt32BE = function(c, l, m) {
14642
14643
  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;
14643
- }, u.prototype.writeBigInt64LE = dt(function(c, l = 0) {
14644
- return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14645
- }), u.prototype.writeBigInt64BE = dt(function(c, l = 0) {
14644
+ }, d.prototype.writeBigInt64LE = ut(function(c, l = 0) {
14646
14645
  return ur(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14646
+ }), d.prototype.writeBigInt64BE = ut(function(c, l = 0) {
14647
+ return dr(this, c, l, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14647
14648
  });
14648
14649
  function pr(h, c, l, m, v, w) {
14649
14650
  if (l + m > h.length)
@@ -14654,20 +14655,20 @@ ir.write = function(n, e, t, r, o, i) {
14654
14655
  function hr(h, c, l, m, v) {
14655
14656
  return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
14656
14657
  }
14657
- u.prototype.writeFloatLE = function(c, l, m) {
14658
+ d.prototype.writeFloatLE = function(c, l, m) {
14658
14659
  return hr(this, c, l, !0, m);
14659
- }, u.prototype.writeFloatBE = function(c, l, m) {
14660
+ }, d.prototype.writeFloatBE = function(c, l, m) {
14660
14661
  return hr(this, c, l, !1, m);
14661
14662
  };
14662
14663
  function mr(h, c, l, m, v) {
14663
14664
  return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
14664
14665
  }
14665
- u.prototype.writeDoubleLE = function(c, l, m) {
14666
+ d.prototype.writeDoubleLE = function(c, l, m) {
14666
14667
  return mr(this, c, l, !0, m);
14667
- }, u.prototype.writeDoubleBE = function(c, l, m) {
14668
+ }, d.prototype.writeDoubleBE = function(c, l, m) {
14668
14669
  return mr(this, c, l, !1, m);
14669
- }, u.prototype.copy = function(c, l, m, v) {
14670
- if (!u.isBuffer(c))
14670
+ }, d.prototype.copy = function(c, l, m, v) {
14671
+ if (!d.isBuffer(c))
14671
14672
  throw new TypeError("argument should be a Buffer");
14672
14673
  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)
14673
14674
  return 0;
@@ -14684,11 +14685,11 @@ ir.write = function(n, e, t, r, o, i) {
14684
14685
  this.subarray(m, v),
14685
14686
  l
14686
14687
  ), w;
14687
- }, u.prototype.fill = function(c, l, m, v) {
14688
+ }, d.prototype.fill = function(c, l, m, v) {
14688
14689
  if (typeof c == "string") {
14689
14690
  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")
14690
14691
  throw new TypeError("encoding must be a string");
14691
- if (typeof v == "string" && !u.isEncoding(v))
14692
+ if (typeof v == "string" && !d.isEncoding(v))
14692
14693
  throw new TypeError("Unknown encoding: " + v);
14693
14694
  if (c.length === 1) {
14694
14695
  const C = c.charCodeAt(0);
@@ -14706,7 +14707,7 @@ ir.write = function(n, e, t, r, o, i) {
14706
14707
  for (w = l; w < m; ++w)
14707
14708
  this[w] = c;
14708
14709
  else {
14709
- const C = u.isBuffer(c) ? c : u.from(c, v), Y = C.length;
14710
+ const C = d.isBuffer(c) ? c : d.from(c, v), Y = C.length;
14710
14711
  if (Y === 0)
14711
14712
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
14712
14713
  for (w = 0; w < m - l; ++w)
@@ -14893,7 +14894,7 @@ ir.write = function(n, e, t, r, o, i) {
14893
14894
  }
14894
14895
  return c;
14895
14896
  }();
14896
- function dt(h) {
14897
+ function ut(h) {
14897
14898
  return typeof BigInt > "u" ? jo : h;
14898
14899
  }
14899
14900
  function jo() {
@@ -15026,7 +15027,7 @@ const La = fo.Buffer, Mn = {
15026
15027
  }
15027
15028
  }, za = {
15028
15029
  name: "AuthLogin",
15029
- mixins: [Xr, Zr, eo, An, Rn, Mn, ze, Oa],
15030
+ mixins: [Xr, Zr, eo, An, Rn, Mn, De, Oa],
15030
15031
  props: {
15031
15032
  isModal: {
15032
15033
  type: Boolean,
@@ -15158,7 +15159,7 @@ const La = fo.Buffer, Mn = {
15158
15159
  }, ls = /* @__PURE__ */ y("img", {
15159
15160
  src: "https://cdn.tapni.co/icons/outlook.png",
15160
15161
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
15161
- }, null, -1), ds = { key: 0 }, us = {
15162
+ }, null, -1), us = { key: 0 }, ds = {
15162
15163
  key: 1,
15163
15164
  class: "button--loading-black button__loader"
15164
15165
  }, ps = /* @__PURE__ */ y("img", {
@@ -15228,7 +15229,7 @@ function Ps(n, e, t, r, o, i) {
15228
15229
  required: "",
15229
15230
  minlength: "8"
15230
15231
  }, null, 8, Qa), [
15231
- [un, o.password]
15232
+ [dn, o.password]
15232
15233
  ]),
15233
15234
  y("em", {
15234
15235
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
@@ -15277,7 +15278,7 @@ function Ps(n, e, t, r, o, i) {
15277
15278
  class: "button-center button button-90 google-button pointer"
15278
15279
  }, [
15279
15280
  ls,
15280
- n.microsoftLoad ? (S(), P("span", us)) : (S(), P("span", ds, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15281
+ n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15281
15282
  ])),
15282
15283
  n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
15283
15284
  key: 6,
@@ -15350,7 +15351,7 @@ function Ps(n, e, t, r, o, i) {
15350
15351
  }
15351
15352
  const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15352
15353
  name: "AuthRegister",
15353
- mixins: [Xr, Zr, eo, An, ze],
15354
+ mixins: [Xr, Zr, eo, An, De],
15354
15355
  props: {
15355
15356
  isModal: {
15356
15357
  type: Boolean,
@@ -15471,10 +15472,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15471
15472
  }, cc = /* @__PURE__ */ y("img", {
15472
15473
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
15473
15474
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
15474
- }, null, -1), lc = { key: 0 }, dc = {
15475
+ }, null, -1), lc = { key: 0 }, uc = {
15475
15476
  key: 1,
15476
15477
  class: "button--loading button__loader"
15477
- }, uc = /* @__PURE__ */ y("img", {
15478
+ }, dc = /* @__PURE__ */ y("img", {
15478
15479
  src: "https://cdn.tapni.co/icons/mail.png",
15479
15480
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
15480
15481
  }, 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 = {
@@ -15551,7 +15552,7 @@ function Cc(n, e, t, r, o, i) {
15551
15552
  required: "",
15552
15553
  minlength: "8"
15553
15554
  }, null, 8, Ws), [
15554
- [un, o.password]
15555
+ [dn, o.password]
15555
15556
  ]),
15556
15557
  y("em", {
15557
15558
  onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
@@ -15591,14 +15592,14 @@ function Cc(n, e, t, r, o, i) {
15591
15592
  class: "button-center button button-90 google-button pointer"
15592
15593
  }, [
15593
15594
  cc,
15594
- n.facebookLoad ? (S(), P("span", dc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15595
+ n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15595
15596
  ])) : te("", !0),
15596
15597
  o.emailLogin ? te("", !0) : (S(), P("a", {
15597
15598
  key: 4,
15598
15599
  onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
15599
15600
  class: "button-center button button-90 google-button pointer"
15600
15601
  }, [
15601
- uc,
15602
+ dc,
15602
15603
  y("span", null, z(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15603
15604
  ])),
15604
15605
  pc,
@@ -15646,7 +15647,7 @@ function Cc(n, e, t, r, o, i) {
15646
15647
  }
15647
15648
  const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15648
15649
  name: "AuthVerify",
15649
- mixins: [ze],
15650
+ mixins: [De],
15650
15651
  props: {
15651
15652
  isModal: {
15652
15653
  type: Boolean,
@@ -15835,7 +15836,7 @@ function $c(n, e, t, r, o, i) {
15835
15836
  }
15836
15837
  const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f02"]]), Jc = {
15837
15838
  name: "AuthReset",
15838
- mixins: [ze],
15839
+ mixins: [De],
15839
15840
  data() {
15840
15841
  return {
15841
15842
  loading: !0,
@@ -15905,7 +15906,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15905
15906
  }, al = {
15906
15907
  key: 1,
15907
15908
  class: "button--loading button__loader"
15908
- }, 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 = {
15909
+ }, 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 = {
15909
15910
  class: "bold no-bottom center-text",
15910
15911
  style: { "margin-top": "63px" }
15911
15912
  }, 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" } }, [
@@ -15959,7 +15960,7 @@ function Ll(n, e, t, r, o, i) {
15959
15960
  placeholder: n.ssoLang[this.appLanguage].password,
15960
15961
  required: ""
15961
15962
  }, null, 8, vl), [
15962
- [un, o.password]
15963
+ [dn, o.password]
15963
15964
  ]),
15964
15965
  y("em", {
15965
15966
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
@@ -15980,7 +15981,7 @@ function Ll(n, e, t, r, o, i) {
15980
15981
  placeholder: n.ssoLang[this.appLanguage].password_repeat,
15981
15982
  required: ""
15982
15983
  }, null, 8, Cl), [
15983
- [un, o.passwordRepeat]
15984
+ [dn, o.passwordRepeat]
15984
15985
  ]),
15985
15986
  y("em", {
15986
15987
  onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
@@ -16039,9 +16040,9 @@ function Ll(n, e, t, r, o, i) {
16039
16040
  }, null, 8, ll),
16040
16041
  y("a", {
16041
16042
  href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
16042
- }, " support@tapni.com", 8, dl)
16043
+ }, " support@tapni.com", 8, ul)
16043
16044
  ]),
16044
- ul,
16045
+ dl,
16045
16046
  y("div", pl, [
16046
16047
  ke(a, {
16047
16048
  class: "create float-right",
@@ -16067,7 +16068,7 @@ function Ll(n, e, t, r, o, i) {
16067
16068
  }
16068
16069
  const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89a"]]), Ol = {
16069
16070
  name: "AuthCallback",
16070
- mixins: [Rn, Mn, ze],
16071
+ mixins: [Rn, Mn, De],
16071
16072
  data() {
16072
16073
  return {};
16073
16074
  },
@@ -16108,7 +16109,7 @@ function Dl(n, e, t, r, o, i) {
16108
16109
  }
16109
16110
  const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
16110
16111
  name: "ModalOverlay",
16111
- mixins: [ze],
16112
+ mixins: [De],
16112
16113
  data() {
16113
16114
  return {
16114
16115
  toggle: !1
@@ -16139,7 +16140,7 @@ function ql(n, e, t, r, o, i) {
16139
16140
  }
16140
16141
  const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2fa"]]), Fl = {
16141
16142
  name: "SSO",
16142
- mixins: [An, Rn, Mn, ze],
16143
+ mixins: [An, Rn, Mn, De],
16143
16144
  data() {
16144
16145
  return {
16145
16146
  toggle: !1,
@@ -16233,7 +16234,7 @@ function Jl(n, e, t, r, o, i) {
16233
16234
  }
16234
16235
  const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a09"]]), Xl = {
16235
16236
  name: "SSOPick",
16236
- mixins: [An, Rn, Mn, ze],
16237
+ mixins: [An, Rn, Mn, De],
16237
16238
  data() {
16238
16239
  return {
16239
16240
  toggle: !1,
@@ -16272,29 +16273,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16272
16273
  class: "responsive-image",
16273
16274
  style: { width: "45%" }
16274
16275
  })
16275
- ], -1)), ed = [
16276
+ ], -1)), eu = [
16276
16277
  Zl
16277
- ], td = { class: "bold center-text color-black half-top half-bottom" }, nd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16278
+ ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16278
16279
  src: "https://cdn.tapni.co/icons/azure.png",
16279
16280
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16280
- }, null, -1)), rd = { key: 0 }, od = {
16281
+ }, null, -1)), ru = { key: 0 }, ou = {
16281
16282
  key: 1,
16282
16283
  class: "button--loading button__loader"
16283
- }, id = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16284
+ }, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16284
16285
  src: "https://cdn.tapni.co/icons/okta.png",
16285
16286
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16286
- }, null, -1)), ad = { key: 0 }, sd = {
16287
+ }, null, -1)), au = { key: 0 }, su = {
16287
16288
  key: 1,
16288
16289
  class: "button--loading button__loader"
16289
- }, cd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16290
+ }, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16290
16291
  src: "https://cdn.tapni.co/icons/saml.png",
16291
16292
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16292
- }, null, -1)), ld = { key: 0 }, dd = {
16293
+ }, null, -1)), lu = { key: 0 }, uu = {
16293
16294
  key: 1,
16294
16295
  class: "button--loading button__loader"
16295
16296
  };
16296
- function ud(n, e, t, r, o, i) {
16297
- var a, s, d;
16297
+ function du(n, e, t, r, o, i) {
16298
+ var a, s, u;
16298
16299
  return S(), P("form", {
16299
16300
  onSubmit: e[4] || (e[4] = Oe(() => {
16300
16301
  }, ["prevent"])),
@@ -16305,37 +16306,37 @@ function ud(n, e, t, r, o, i) {
16305
16306
  onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
16306
16307
  class: "color-black pull-right pointer",
16307
16308
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16308
- }, ed),
16309
- y("h3", td, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16309
+ }, eu),
16310
+ y("h3", tu, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16310
16311
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16311
16312
  key: 0,
16312
16313
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16313
16314
  class: "button-center button black-button button-90 google-button pointer"
16314
16315
  }, [
16315
- nd,
16316
- o.azureLoad ? (S(), P("span", od)) : (S(), P("span", rd, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16316
+ nu,
16317
+ o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16317
16318
  ])) : te("", !0),
16318
16319
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16319
16320
  key: 1,
16320
16321
  onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
16321
16322
  class: "button-center button black-button button-90 google-button pointer"
16322
16323
  }, [
16323
- id,
16324
- o.oktaLoad ? (S(), P("span", sd)) : (S(), P("span", ad, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16324
+ iu,
16325
+ o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16325
16326
  ])) : te("", !0),
16326
- (d = o.sso) != null && d.saml ? (S(), P("a", {
16327
+ (u = o.sso) != null && u.saml ? (S(), P("a", {
16327
16328
  key: 2,
16328
16329
  onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
16329
16330
  class: "button-center button black-button button-90 google-button pointer"
16330
16331
  }, [
16331
- cd,
16332
- o.samlLoad ? (S(), P("span", dd)) : (S(), P("span", ld, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16332
+ cu,
16333
+ o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16333
16334
  ])) : te("", !0)
16334
16335
  ], 34);
16335
16336
  }
16336
- const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f65"]]), pd = {
16337
+ const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
16337
16338
  name: "LinkIcon",
16338
- mixins: [ze],
16339
+ mixins: [De],
16339
16340
  props: {
16340
16341
  linkAdding: {
16341
16342
  type: Boolean,
@@ -16405,8 +16406,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f6
16405
16406
  }
16406
16407
  },
16407
16408
  methods: {}
16408
- }, hd = ["src", "alt"], md = ["src", "alt"], fd = ["src", "alt"], gd = ["src", "alt"];
16409
- function _d(n, e, t, r, o, i) {
16409
+ }, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
16410
+ function _u(n, e, t, r, o, i) {
16410
16411
  var a, s;
16411
16412
  return S(), P("a", {
16412
16413
  class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
@@ -16427,31 +16428,31 @@ function _d(n, e, t, r, o, i) {
16427
16428
  src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
16428
16429
  class: "responsive-image",
16429
16430
  alt: t.data.text,
16430
- onLoad: e[0] || (e[0] = (d) => n.$emit("loaded")),
16431
- onError: e[1] || (e[1] = (d) => n.$emit("loaded"))
16432
- }, null, 40, hd)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16431
+ onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
16432
+ onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
16433
+ }, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16433
16434
  key: 1,
16434
16435
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
16435
16436
  class: "responsive-image",
16436
16437
  alt: t.data.text,
16437
- onLoad: e[2] || (e[2] = (d) => n.$emit("loaded")),
16438
- onError: e[3] || (e[3] = (d) => n.$emit("loaded"))
16439
- }, null, 40, md)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16438
+ onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
16439
+ onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
16440
+ }, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16440
16441
  key: 2,
16441
16442
  src: "https://cdn.tapni.co/icons/customlink.png",
16442
16443
  class: "responsive-image",
16443
16444
  alt: t.data.text,
16444
- onLoad: e[4] || (e[4] = (d) => n.$emit("loaded")),
16445
- onError: e[5] || (e[5] = (d) => n.$emit("loaded"))
16446
- }, null, 40, fd)) : (S(), P("img", {
16445
+ onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
16446
+ onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
16447
+ }, null, 40, fu)) : (S(), P("img", {
16447
16448
  key: 3,
16448
16449
  src: t.data.style.custom_icon,
16449
16450
  style: { "border-radius": "22.46%" },
16450
16451
  class: "responsive-image",
16451
16452
  alt: t.data.text,
16452
- onLoad: e[6] || (e[6] = (d) => n.$emit("loaded")),
16453
- onError: e[7] || (e[7] = (d) => n.$emit("loaded"))
16454
- }, null, 40, gd))
16453
+ onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
16454
+ onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
16455
+ }, null, 40, gu))
16455
16456
  ], 6),
16456
16457
  y("span", {
16457
16458
  class: "link-text link-drag color-black",
@@ -16459,17 +16460,17 @@ function _d(n, e, t, r, o, i) {
16459
16460
  }, z(i.linkText), 5)
16460
16461
  ], 6);
16461
16462
  }
16462
- const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16463
+ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16463
16464
  ANDROID_VERSION: "5.6",
16464
16465
  IOS_VERSION: "5.6",
16465
16466
  WEB_VERSION: "5.6.0",
16466
16467
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
16467
16468
  METAPIXEL_ID: "1203678696914368",
16468
16469
  GOOGLE_ANALYTICS_ID: ""
16469
- }, kd = {
16470
+ }, ku = {
16470
16471
  name: "Language",
16471
- mixins: [ze],
16472
- components: { LinkIcon: vd },
16472
+ mixins: [De],
16473
+ components: { LinkIcon: vu },
16473
16474
  data() {
16474
16475
  return {
16475
16476
  toggle: !1
@@ -16480,7 +16481,7 @@ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16480
16481
  this.toggle = !1;
16481
16482
  });
16482
16483
  let n = this.isNative ? await pn.getLanguageCode() : Ut.getFirstBrowserLanguage();
16483
- n && yd.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16484
+ n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16484
16485
  },
16485
16486
  beforeDestroy() {
16486
16487
  U._events.toggleLanguageModal.pop();
@@ -16499,16 +16500,16 @@ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16499
16500
  this.toggle = !this.toggle;
16500
16501
  }
16501
16502
  }
16502
- }, wd = (n) => (Ht("data-v-34a6b7b2"), n = n(), qt(), n), bd = /* @__PURE__ */ wd(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16503
+ }, wu = (n) => (Ht("data-v-34a6b7b2"), n = n(), qt(), n), bu = /* @__PURE__ */ wu(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16503
16504
  /* @__PURE__ */ y("img", {
16504
16505
  src: "https://cdn.tapni.co/icons/down-arrow.png",
16505
16506
  class: "fa responsive-image",
16506
16507
  style: { width: "45%" }
16507
16508
  })
16508
- ], -1)), Cd = [
16509
- bd
16510
- ], Ed = { class: "bold center-text color-black small-bottom" };
16511
- function Td(n, e, t, r, o, i) {
16509
+ ], -1)), Cu = [
16510
+ bu
16511
+ ], Eu = { class: "bold center-text color-black small-bottom" };
16512
+ function Tu(n, e, t, r, o, i) {
16512
16513
  const a = Dt("LinkIcon");
16513
16514
  return S(), P("div", {
16514
16515
  class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
@@ -16518,8 +16519,8 @@ function Td(n, e, t, r, o, i) {
16518
16519
  onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
16519
16520
  class: "color-black pull-right pointer",
16520
16521
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16521
- }, Cd),
16522
- y("h3", Ed, z(n.ssoLang[n.appLanguage].app_language), 1),
16522
+ }, Cu),
16523
+ y("h3", Eu, z(n.ssoLang[n.appLanguage].app_language), 1),
16523
16524
  ke(a, {
16524
16525
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16525
16526
  "link-style": "link-grid",
@@ -16578,40 +16579,40 @@ function Td(n, e, t, r, o, i) {
16578
16579
  }, null, 8, ["data"])
16579
16580
  ], 2);
16580
16581
  }
16581
- const To = /* @__PURE__ */ We(kd, [["render", Td], ["__scopeId", "data-v-34a6b7b2"]]);
16582
- 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 };
16583
- const Sd = { id: "ssoapp" }, Ad = {
16582
+ const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-34a6b7b2"]]);
16583
+ 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 };
16584
+ const Su = { id: "ssoapp" }, Au = {
16584
16585
  key: 0,
16585
16586
  href: "/",
16586
16587
  class: "header-logo"
16587
- }, Rd = /* @__PURE__ */ y("img", {
16588
+ }, Ru = /* @__PURE__ */ y("img", {
16588
16589
  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",
16589
16590
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
16590
16591
  class: "header-logo-img"
16591
- }, null, -1), Pd = [
16592
- Rd
16593
- ], Md = { class: "lang-icon" }, Nd = {
16592
+ }, null, -1), Pu = [
16593
+ Ru
16594
+ ], Mu = { class: "lang-icon" }, Nu = {
16594
16595
  class: "snackbar snackbar-boxed",
16595
16596
  id: "snackbar"
16596
- }, Ld = {
16597
+ }, Lu = {
16597
16598
  class: "snack-body",
16598
16599
  id: "errorSnack"
16599
- }, Od = { id: "errorMessage" }, zd = /* @__PURE__ */ y("img", {
16600
+ }, Ou = { id: "errorMessage" }, zu = /* @__PURE__ */ y("img", {
16600
16601
  src: "https://cdn.tapni.co/icons/notification-close.png",
16601
16602
  style: { width: "100%" }
16602
- }, null, -1), Ud = [
16603
- zd
16604
- ], xd = {
16603
+ }, null, -1), Uu = [
16604
+ zu
16605
+ ], xu = {
16605
16606
  class: "snack-body",
16606
16607
  id: "successSnack"
16607
- }, Bd = { id: "successMessage" }, Dd = /* @__PURE__ */ y("img", {
16608
+ }, Bu = { id: "successMessage" }, Du = /* @__PURE__ */ y("img", {
16608
16609
  src: "https://cdn.tapni.co/icons/notification-close.png",
16609
16610
  style: { width: "100%" }
16610
- }, null, -1), Hd = [
16611
- Dd
16612
- ], qd = {
16611
+ }, null, -1), Hu = [
16612
+ Du
16613
+ ], qu = {
16613
16614
  name: "TapniAuth",
16614
- mixins: [ze],
16615
+ mixins: [De],
16615
16616
  data() {
16616
16617
  return {
16617
16618
  isSetup: !1
@@ -16653,7 +16654,7 @@ const Sd = { id: "ssoapp" }, Ad = {
16653
16654
  return;
16654
16655
  this.isSetup = !0, this.setToken(this.$storage.token);
16655
16656
  const n = this.getRefreshTokens();
16656
- this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
16657
+ console.log({ refreshTokens: n }), this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
16657
16658
  },
16658
16659
  ssoOutgoingEvent(n) {
16659
16660
  this.$emit("ssoEvent", n);
@@ -16673,23 +16674,25 @@ const Sd = { id: "ssoapp" }, Ad = {
16673
16674
  this.applyBgStyle();
16674
16675
  },
16675
16676
  "$storageReady.value"(n) {
16676
- n && this.display === "npm" && this.init();
16677
+ n && this.display === "npm" && this.$nextTick(() => {
16678
+ this.init();
16679
+ });
16677
16680
  }
16678
16681
  }
16679
- }, Hr = /* @__PURE__ */ Object.assign(qd, {
16682
+ }, Hr = /* @__PURE__ */ Object.assign(qu, {
16680
16683
  setup(n) {
16681
16684
  return document.addEventListener("DOMContentLoaded", function() {
16682
16685
  const e = document.createElement("script");
16683
- e.src = `https://www.google.com/recaptcha/api.js?render=${Id.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16684
- }), (e, t) => (S(), P("div", Sd, [
16685
- e.display === "redirect" ? (S(), P("a", Ad, Pd)) : te("", !0),
16686
+ e.src = `https://www.google.com/recaptcha/api.js?render=${Iu.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16687
+ }), (e, t) => (S(), P("div", Su, [
16688
+ e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Au, Pu)) : te("", !0),
16686
16689
  e.display === "redirect" ? (S(), P("a", {
16687
16690
  key: 1,
16688
16691
  onClick: t[0] || (t[0] = (...r) => e.toggleLanguageModal && e.toggleLanguageModal(...r)),
16689
16692
  class: "font-18 no-border pointer color-black",
16690
16693
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16691
16694
  }, [
16692
- y("span", Md, z(e.appLanguage.toUpperCase()), 1)
16695
+ y("span", Mu, z(e.appLanguage.toUpperCase()), 1)
16693
16696
  ])) : te("", !0),
16694
16697
  ke(bo),
16695
16698
  n.isModal ? te("", !0) : (S(), qe(To, { key: 2 })),
@@ -16705,31 +16708,31 @@ const Sd = { id: "ssoapp" }, Ad = {
16705
16708
  key: 8,
16706
16709
  isModal: n.isModal
16707
16710
  }, 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 })) : te("", !0),
16708
- y("div", Nd, [
16709
- y("p", Ld, [
16710
- y("span", Od, z(e.ssoLang[e.appLanguage].error), 1),
16711
+ y("div", Nu, [
16712
+ y("p", Lu, [
16713
+ y("span", Ou, z(e.ssoLang[e.appLanguage].error), 1),
16711
16714
  y("a", {
16712
16715
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16713
16716
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16714
- }, Ud)
16717
+ }, Uu)
16715
16718
  ]),
16716
- y("p", xd, [
16717
- y("span", Bd, z(e.ssoLang[e.appLanguage].success), 1),
16719
+ y("p", xu, [
16720
+ y("span", Bu, z(e.ssoLang[e.appLanguage].success), 1),
16718
16721
  y("a", {
16719
16722
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16720
16723
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16721
- }, Hd)
16724
+ }, Hu)
16722
16725
  ])
16723
16726
  ])
16724
16727
  ]));
16725
16728
  }
16726
- }), Zd = {
16729
+ }), Zu = {
16727
16730
  TapniAuth: Hr,
16728
- AuthMixin: ze,
16731
+ AuthMixin: De,
16729
16732
  install: (n, e) => {
16730
16733
  e && e.API_ROOT && Ft.setApiRootFromOptions(e.API_ROOT), n.component("TapniAuth", Hr);
16731
16734
  }
16732
16735
  };
16733
16736
  export {
16734
- Zd as default
16737
+ Zu as default
16735
16738
  };