@tapni/auth 0.0.91 → 0.0.93

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 dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
1
+ import { reactive as Ko, readonly as Go, resolveComponent as 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";
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.91";
11
+ const Xo = "0.0.93";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
15
15
  Un = n;
16
16
  },
17
- instance(n, e = null) {
17
+ instance(n, e) {
18
18
  const t = Xo;
19
19
  let r = "https://api.tapni.co/v1/";
20
20
  Un && (r = Un);
@@ -26,29 +26,30 @@ const Ft = {
26
26
  "X-Client-Version": t.version
27
27
  }
28
28
  });
29
- return o.interceptors.request.use(async function(i) {
30
- if (["post", "put", "delete"].includes(i.method.toLowerCase()) ? i.data = {
31
- ...i.data,
29
+ const i = async function(a) {
30
+ if (["post", "put", "delete"].includes(a.method.toLowerCase()) ? a.data = {
31
+ ...a.data,
32
32
  ...n ? {
33
33
  lang: n.appLanguage,
34
34
  realm: n.realm || "app"
35
35
  } : {}
36
- } : i.method.toLowerCase() === "get" && (i.params = {
37
- ...i.params,
36
+ } : a.method.toLowerCase() === "get" && (a.params = {
37
+ ...a.params,
38
38
  ...n ? {
39
39
  lang: n.appLanguage,
40
40
  realm: n.realm || "app"
41
41
  } : {}
42
- }), n && n.token && e !== null) {
43
- const a = qr(n.token);
44
- if (a.exp - 30 < Math.floor(Date.now() / 1e3))
45
- return e(a).then((s) => (i.headers = {
46
- ...i.headers,
47
- Authorization: `Bearer ${s}`
48
- }, i));
42
+ }), n && n.token && e !== void 0) {
43
+ const s = qr(n.token);
44
+ if (s.exp - 30 < Math.floor(Date.now() / 1e3))
45
+ return e(s).then((l) => (a.headers = {
46
+ ...a.headers,
47
+ Authorization: `Bearer ${l}`
48
+ }, a));
49
49
  }
50
- return i;
51
- }), o;
50
+ return a;
51
+ };
52
+ return o.interceptors.request.use(i), o;
52
53
  }
53
54
  }, Je = Ft.instance, It = {
54
55
  getMe() {
@@ -4477,7 +4478,7 @@ const De = {
4477
4478
  Ne.refreshToken({
4478
4479
  id: n.id,
4479
4480
  refreshToken: this.refreshToken,
4480
- refreshTokenAction: async () => await this.refreshTokenAction
4481
+ refreshTokenAction: () => this.refreshTokenAction
4481
4482
  }, this.$storage)
4482
4483
  );
4483
4484
  if (r && r.response && r.response.data.error === "ACCESS_DENIED")
@@ -4682,7 +4683,7 @@ const De = {
4682
4683
  type: "video/mp4"
4683
4684
  }, null, -1)), ai = [
4684
4685
  ii
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 = {
4686
+ ], 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 = {
4686
4687
  key: 2,
4687
4688
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4688
4689
  }, 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 = [
@@ -4722,9 +4723,9 @@ function mi(n, e, t, r, o, i) {
4722
4723
  ]),
4723
4724
  _: 1
4724
4725
  }),
4725
- ui
4726
+ di
4726
4727
  ]),
4727
- this.isNative ? te("", !0) : (S(), P("div", di, hi))
4728
+ this.isNative ? te("", !0) : (S(), P("div", ui, hi))
4728
4729
  ]);
4729
4730
  }
4730
4731
  const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
@@ -4922,22 +4923,22 @@ function T(n, e, t, r) {
4922
4923
  });
4923
4924
  }
4924
4925
  return new (t || (t = Promise))(function(i, a) {
4925
- function s(d) {
4926
+ function s(u) {
4926
4927
  try {
4927
- p(r.next(d));
4928
+ p(r.next(u));
4928
4929
  } catch (f) {
4929
4930
  a(f);
4930
4931
  }
4931
4932
  }
4932
- function u(d) {
4933
+ function l(u) {
4933
4934
  try {
4934
- p(r.throw(d));
4935
+ p(r.throw(u));
4935
4936
  } catch (f) {
4936
4937
  a(f);
4937
4938
  }
4938
4939
  }
4939
- function p(d) {
4940
- d.done ? i(d.value) : o(d.value).then(s, u);
4940
+ function p(u) {
4941
+ u.done ? i(u.value) : o(u.value).then(s, l);
4941
4942
  }
4942
4943
  p((r = r.apply(n, e || [])).next());
4943
4944
  });
@@ -4952,11 +4953,11 @@ function I(n, e) {
4952
4953
  return this;
4953
4954
  }), a;
4954
4955
  function s(p) {
4955
- return function(d) {
4956
- return u([p, d]);
4956
+ return function(u) {
4957
+ return l([p, u]);
4957
4958
  };
4958
4959
  }
4959
- function u(p) {
4960
+ function l(p) {
4960
4961
  if (r)
4961
4962
  throw new TypeError("Generator is already executing.");
4962
4963
  for (; t; )
@@ -4997,8 +4998,8 @@ function I(n, e) {
4997
4998
  continue;
4998
4999
  }
4999
5000
  p = e.call(n, t);
5000
- } catch (d) {
5001
- p = [6, d], o = 0;
5001
+ } catch (u) {
5002
+ p = [6, u], o = 0;
5002
5003
  } finally {
5003
5004
  r = i = 0;
5004
5005
  }
@@ -5079,22 +5080,22 @@ function j(n, e, t, r) {
5079
5080
  });
5080
5081
  }
5081
5082
  return new (t || (t = Promise))(function(i, a) {
5082
- function s(d) {
5083
+ function s(u) {
5083
5084
  try {
5084
- p(r.next(d));
5085
+ p(r.next(u));
5085
5086
  } catch (f) {
5086
5087
  a(f);
5087
5088
  }
5088
5089
  }
5089
- function u(d) {
5090
+ function l(u) {
5090
5091
  try {
5091
- p(r.throw(d));
5092
+ p(r.throw(u));
5092
5093
  } catch (f) {
5093
5094
  a(f);
5094
5095
  }
5095
5096
  }
5096
- function p(d) {
5097
- d.done ? i(d.value) : o(d.value).then(s, u);
5097
+ function p(u) {
5098
+ u.done ? i(u.value) : o(u.value).then(s, l);
5098
5099
  }
5099
5100
  p((r = r.apply(n, e || [])).next());
5100
5101
  });
@@ -5109,11 +5110,11 @@ function K(n, e) {
5109
5110
  return this;
5110
5111
  }), a;
5111
5112
  function s(p) {
5112
- return function(d) {
5113
- return u([p, d]);
5113
+ return function(u) {
5114
+ return l([p, u]);
5114
5115
  };
5115
5116
  }
5116
- function u(p) {
5117
+ function l(p) {
5117
5118
  if (r)
5118
5119
  throw new TypeError("Generator is already executing.");
5119
5120
  for (; t; )
@@ -5154,8 +5155,8 @@ function K(n, e) {
5154
5155
  continue;
5155
5156
  }
5156
5157
  p = e.call(n, t);
5157
- } catch (d) {
5158
- p = [6, d], o = 0;
5158
+ } catch (u) {
5159
+ p = [6, u], o = 0;
5159
5160
  } finally {
5160
5161
  r = i = 0;
5161
5162
  }
@@ -5333,10 +5334,10 @@ var Rt;
5333
5334
  (function(n) {
5334
5335
  n[n.httpSuccess = 200] = "httpSuccess", n[n.httpBadRequest = 400] = "httpBadRequest";
5335
5336
  })(Rt || (Rt = {}));
5336
- var dt;
5337
+ var ut;
5337
5338
  (function(n) {
5338
5339
  n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
5339
- })(dt || (dt = {}));
5340
+ })(ut || (ut = {}));
5340
5341
  var Xt;
5341
5342
  (function(n) {
5342
5343
  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";
@@ -5782,8 +5783,8 @@ var L = (
5782
5783
  };
5783
5784
  return r.forEach(function(i) {
5784
5785
  if (i.trim()) {
5785
- var a = i.split(/=(.+)/g, 2), s = a[0], u = a[1];
5786
- s && u && (t[o(s)] = o(u));
5786
+ var a = i.split(/=(.+)/g, 2), s = a[0], l = a[1];
5787
+ s && l && (t[o(s)] = o(l));
5787
5788
  }
5788
5789
  }), t;
5789
5790
  }, n.trimArrayEntries = function(e) {
@@ -6223,34 +6224,34 @@ var we = (
6223
6224
  e.tenantId || g.EMPTY_STRING
6224
6225
  ];
6225
6226
  return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
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;
6227
+ }, n.createAccount = function(e, t, r, o, i, a, s, l) {
6228
+ var p, u, f, _, k, E, N = new n();
6229
+ N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = l;
6229
6230
  var Q = s || o && o.getPreferredCache();
6230
6231
  if (!Q)
6231
6232
  throw O.createInvalidCacheEnvironmentError();
6232
6233
  if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
6233
- N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
6234
+ 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;
6234
6235
  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;
6235
6236
  N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
6236
6237
  }
6237
6238
  return N.cloudGraphHostName = i, N.msGraphHost = a, N;
6238
6239
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
6239
- var s, u, p, d, f = new n();
6240
+ var s, l, p, u, f = new n();
6240
6241
  f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
6241
6242
  var _ = a || r && r.getPreferredCache();
6242
6243
  if (!_)
6243
6244
  throw O.createInvalidCacheEnvironmentError();
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;
6245
+ return t && (f.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.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;
6245
6246
  }, n.generateHomeAccountId = function(e, t, r, o, i) {
6246
6247
  var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : g.EMPTY_STRING;
6247
6248
  if (t === Se.Adfs || t === Se.Dsts)
6248
6249
  return s;
6249
6250
  if (e)
6250
6251
  try {
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;
6252
+ var l = vn(e, o);
6253
+ if (!L.isEmpty(l.uid) && !L.isEmpty(l.utid))
6254
+ return "" + l.uid + fe.CLIENT_INFO_SEPARATOR + l.utid;
6254
6255
  } catch {
6255
6256
  }
6256
6257
  return r.verbose("No client info in response"), s;
@@ -6351,12 +6352,12 @@ var Me = (
6351
6352
  realm: e.realm,
6352
6353
  tokenType: e.tokenType,
6353
6354
  requestedClaimsHash: e.requestedClaimsHash
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);
6355
+ }, r = this.getTokenKeys(), o = Ee.fromString(e.target), i = [], r.accessToken.forEach(function(l) {
6356
+ if (a.accessTokenKeyMatchesFilter(l, t, !1)) {
6357
+ var p = a.getAccessTokenCredential(l);
6357
6358
  if (p && a.credentialMatchesFilter(p, t)) {
6358
- var d = Ee.fromString(p.target);
6359
- d.intersectingScopeSets(o) && i.push(a.removeAccessToken(u));
6359
+ var u = Ee.fromString(p.target);
6360
+ u.intersectingScopeSets(o) && i.push(a.removeAccessToken(l));
6360
6361
  }
6361
6362
  }
6362
6363
  }), [4, Promise.all(i)];
@@ -6501,12 +6502,12 @@ var Me = (
6501
6502
  e.isAppMetadata(r) && e.removeItem(r);
6502
6503
  }), !0;
6503
6504
  }, n.prototype.readCacheRecord = function(e, t, 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);
6505
+ var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), l = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
6505
6506
  return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
6506
6507
  account: i,
6507
6508
  idToken: a,
6508
6509
  accessToken: s,
6509
- refreshToken: u,
6510
+ refreshToken: l,
6510
6511
  appMetadata: p
6511
6512
  };
6512
6513
  }, n.prototype.readAccountFromCache = function(e) {
@@ -6543,7 +6544,7 @@ var Me = (
6543
6544
  }, n.prototype.getAccessToken = function(e, t, r) {
6544
6545
  var o = this;
6545
6546
  this.commonLogger.trace("CacheManager - getAccessToken called");
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 = {
6547
+ 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, l = {
6547
6548
  homeAccountId: e.homeAccountId,
6548
6549
  environment: e.environment,
6549
6550
  credentialType: s,
@@ -6553,17 +6554,17 @@ var Me = (
6553
6554
  tokenType: a,
6554
6555
  keyId: t.sshKid,
6555
6556
  requestedClaimsHash: t.requestedClaimsHash
6556
- }, p = r && r.accessToken || this.getTokenKeys().accessToken, d = [];
6557
+ }, p = r && r.accessToken || this.getTokenKeys().accessToken, u = [];
6557
6558
  p.forEach(function(_) {
6558
- if (o.accessTokenKeyMatchesFilter(_, u, !0)) {
6559
+ if (o.accessTokenKeyMatchesFilter(_, l, !0)) {
6559
6560
  var k = o.getAccessTokenCredential(_);
6560
- k && o.credentialMatchesFilter(k, u) && d.push(k);
6561
+ k && o.credentialMatchesFilter(k, l) && u.push(k);
6561
6562
  }
6562
6563
  });
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
+ var f = u.length;
6565
+ 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(_) {
6565
6566
  o.removeAccessToken(_.generateCredentialKey());
6566
- }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), d[0]);
6567
+ }), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), u[0]);
6567
6568
  }, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
6568
6569
  var o = e.toLowerCase();
6569
6570
  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)
@@ -6593,15 +6594,15 @@ var Me = (
6593
6594
  credentialType: H.REFRESH_TOKEN,
6594
6595
  clientId: this.clientId,
6595
6596
  familyId: i
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);
6597
+ }, s = r && r.refreshToken || this.getTokenKeys().refreshToken, l = [];
6598
+ s.forEach(function(u) {
6599
+ if (o.refreshTokenKeyMatchesFilter(u, a)) {
6600
+ var f = o.getRefreshTokenCredential(u);
6601
+ f && o.credentialMatchesFilter(f, a) && l.push(f);
6601
6602
  }
6602
6603
  });
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
+ var p = l.length;
6605
+ return p < 1 ? (this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."), null) : (this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"), l[0]);
6605
6606
  }, n.prototype.refreshTokenKeyMatchesFilter = function(e, t) {
6606
6607
  var r = e.toLowerCase();
6607
6608
  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);
@@ -6796,7 +6797,7 @@ var ki = 300, no = {
6796
6797
  }
6797
6798
  };
6798
6799
  function Ai(n) {
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);
6800
+ var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, l = n.clientCredentials, p = n.libraryInfo, u = n.telemetry, f = n.serverTelemetryManager, _ = n.persistencePlugin, k = n.serializableCache, E = ee(ee({}, wi), r);
6800
6801
  return {
6801
6802
  authOptions: Ri(e),
6802
6803
  systemOptions: ee(ee({}, no), t),
@@ -6805,9 +6806,9 @@ function Ai(n) {
6805
6806
  storageInterface: i || new yi(e.clientId, _n, new er(E)),
6806
6807
  networkInterface: a || Ci,
6807
6808
  cryptoInterface: s || _n,
6808
- clientCredentials: u || Ti,
6809
+ clientCredentials: l || Ti,
6809
6810
  libraryInfo: ee(ee({}, Ei), p),
6810
- telemetry: ee(ee({}, Si), d),
6811
+ telemetry: ee(ee({}, Si), u),
6811
6812
  serverTelemetryManager: f || null,
6812
6813
  persistencePlugin: _ || null,
6813
6814
  serializableCache: k || null
@@ -7145,15 +7146,15 @@ var rr = (
7145
7146
  default:
7146
7147
  throw O.createUnexpectedCredentialTypeError();
7147
7148
  }
7148
- }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, u, p) {
7149
- var d = [
7149
+ }, n.generateCredentialCacheKey = function(e, t, r, o, i, a, s, l, p) {
7150
+ var u = [
7150
7151
  this.generateAccountIdForCacheKey(e, t),
7151
7152
  this.generateCredentialIdForCacheKey(r, o, i, s),
7152
7153
  this.generateTargetForCacheKey(a),
7153
7154
  this.generateClaimsHashForCacheKey(p),
7154
- this.generateSchemeForCacheKey(u)
7155
+ this.generateSchemeForCacheKey(l)
7155
7156
  ];
7156
- return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7157
+ return u.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
7157
7158
  }, n.generateAccountIdForCacheKey = function(e, t) {
7158
7159
  var r = [e, t];
7159
7160
  return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
@@ -7220,14 +7221,14 @@ var _t = (
7220
7221
  function e() {
7221
7222
  return n !== null && n.apply(this, arguments) || this;
7222
7223
  }
7223
- return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
7224
+ return e.createAccessTokenEntity = function(t, r, o, i, a, s, l, p, u, f, _, k, E, N, Q) {
7224
7225
  var X, G, $ = new e();
7225
7226
  $.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
7226
7227
  var Ae = Ke.nowSeconds();
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())
7228
+ if ($.cachedAt = Ae.toString(), $.expiresOn = l.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())
7228
7229
  switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
7229
7230
  case ne.POP:
7230
- var Ue = rt.extractTokenClaims(o, d);
7231
+ var Ue = rt.extractTokenClaims(o, u);
7231
7232
  if (!(!((G = Ue == null ? void 0 : Ue.cnf) === null || G === void 0) && G.kid))
7232
7233
  throw O.createTokenClaimsRequiredError();
7233
7234
  $.keyId = Ue.cnf.kid;
@@ -7250,8 +7251,8 @@ var Mt = (
7250
7251
  return n !== null && n.apply(this, arguments) || this;
7251
7252
  }
7252
7253
  return e.createRefreshTokenEntity = function(t, r, o, i, a, s) {
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
+ var l = new e();
7255
+ return l.clientId = i, l.credentialType = H.REFRESH_TOKEN, l.environment = r, l.homeAccountId = t, l.secret = o, l.userAssertionHash = s, a && (l.familyId = a), l;
7255
7256
  }, e.isRefreshTokenEntity = function(t) {
7256
7257
  return t ? t.hasOwnProperty("homeAccountId") && t.hasOwnProperty("environment") && t.hasOwnProperty("credentialType") && t.hasOwnProperty("clientId") && t.hasOwnProperty("secret") && t.credentialType === H.REFRESH_TOKEN : !1;
7257
7258
  }, e;
@@ -7281,13 +7282,13 @@ var Ir = [
7281
7282
  /** @class */
7282
7283
  function(n) {
7283
7284
  ze(e, n);
7284
- function e(t, r, o, i, a, s, u) {
7285
+ function e(t, r, o, i, a, s, l) {
7285
7286
  var p = n.call(this, t, r, o) || this;
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;
7287
+ 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 = l || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
7287
7288
  }
7288
7289
  return e.isInteractionRequiredError = function(t, r, o) {
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
+ var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(l) {
7291
+ return r.indexOf(l) > -1;
7291
7292
  });
7292
7293
  return i || s || a;
7293
7294
  }, e.createNoTokensFoundError = function() {
@@ -7336,8 +7337,8 @@ var st = (
7336
7337
  userRequestState: L.isEmpty(i) ? g.EMPTY_STRING : i,
7337
7338
  libraryState: s
7338
7339
  };
7339
- } catch (u) {
7340
- throw O.createInvalidStateError(t, u);
7340
+ } catch (l) {
7341
+ throw O.createInvalidStateError(t, l);
7341
7342
  }
7342
7343
  }, n;
7343
7344
  }()
@@ -7510,11 +7511,11 @@ var xt = (
7510
7511
  });
7511
7512
  }, n.prototype.signPayload = function(e, t, r, o) {
7512
7513
  return j(this, void 0, void 0, function() {
7513
- var i, a, s, u, p, d;
7514
+ var i, a, s, l, p, u;
7514
7515
  return K(this, function(f) {
7515
7516
  switch (f.label) {
7516
7517
  case 0:
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)];
7518
+ return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, l = 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: l || 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)];
7518
7519
  case 1:
7519
7520
  return [2, f.sent()];
7520
7521
  }
@@ -7596,14 +7597,14 @@ var wn = (
7596
7597
  var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
7597
7598
  throw new bt(e.error, t, e.suberror);
7598
7599
  }
7599
- }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
7600
- var d;
7600
+ }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, l, p) {
7601
+ var u;
7601
7602
  return j(this, void 0, void 0, function() {
7602
7603
  var f, _, k, E, N, Q, X;
7603
7604
  return K(this, function(G) {
7604
7605
  switch (G.label) {
7605
7606
  case 0:
7606
- if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7607
+ if ((u = this.performanceClient) === null || u === void 0 || u.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
7607
7608
  if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
7608
7609
  throw O.createNonceMismatchError();
7609
7610
  if (o.maxAge || o.maxAge === 0) {
@@ -7618,7 +7619,7 @@ var wn = (
7618
7619
  case 2:
7619
7620
  G.sent(), G.label = 3;
7620
7621
  case 3:
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)];
7622
+ return s && !l && 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)];
7622
7623
  case 4:
7623
7624
  return G.sent(), [3, 8];
7624
7625
  case 5:
@@ -7636,20 +7637,20 @@ var wn = (
7636
7637
  });
7637
7638
  });
7638
7639
  }, n.prototype.generateCacheRecord = function(e, t, r, o, i, a, s) {
7639
- var u = t.getPreferredCache();
7640
- if (L.isEmpty(u))
7640
+ var l = t.getPreferredCache();
7641
+ if (L.isEmpty(l))
7641
7642
  throw O.createInvalidCacheEnvironmentError();
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
+ var p, u;
7644
+ !L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, l, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), u = this.generateAccountEntity(e, i, t, s));
7644
7645
  var f = null;
7645
7646
  if (!L.isEmpty(e.access_token)) {
7646
7647
  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;
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);
7648
+ f = _t.createAccessTokenEntity(this.homeAccountIdentifier, l, 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);
7648
7649
  }
7649
7650
  var $ = null;
7650
- L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7651
+ L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, l, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
7651
7652
  var Ae = null;
7652
- return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new en(d, p, f, $, Ae);
7653
+ return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, l, e.foci)), new en(u, p, f, $, Ae);
7653
7654
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
7654
7655
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : g.EMPTY_STRING, s = o ? o.msgraph_host : g.EMPTY_STRING;
7655
7656
  if (i === Se.Adfs)
@@ -7657,8 +7658,8 @@ var wn = (
7657
7658
  if (L.isEmpty(e.client_info) && r.protocolMode === "AAD")
7658
7659
  throw O.createClientInfoEmptyError();
7659
7660
  return e.client_info ? we.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : we.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
7660
- }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
7661
- var d, f, _;
7661
+ }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, l, p) {
7662
+ var u, f, _;
7662
7663
  return j(this, void 0, void 0, function() {
7663
7664
  var k, E, N, Q, X, G, $, Ae, Ue, Ve, Ct;
7664
7665
  return K(this, function(ce) {
@@ -7678,7 +7679,7 @@ var wn = (
7678
7679
  case 3:
7679
7680
  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;
7680
7681
  case 4:
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, {
7682
+ 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, l != null && l.spa_accountid && r.account && (r.account.nativeAccountId = l == null ? void 0 : l.spa_accountid), [2, {
7682
7683
  authority: t.canonicalAuthority,
7683
7684
  uniqueId: Ve,
7684
7685
  tenantId: Ct,
@@ -7693,11 +7694,11 @@ var wn = (
7693
7694
  requestId: p || g.EMPTY_STRING,
7694
7695
  extExpiresOn: Q,
7695
7696
  familyId: X,
7696
- tokenType: ((d = r.accessToken) === null || d === void 0 ? void 0 : d.tokenType) || g.EMPTY_STRING,
7697
+ tokenType: ((u = r.accessToken) === null || u === void 0 ? void 0 : u.tokenType) || g.EMPTY_STRING,
7697
7698
  state: s ? s.userRequestState : g.EMPTY_STRING,
7698
7699
  cloudGraphHostName: ((f = r.account) === null || f === void 0 ? void 0 : f.cloudGraphHostName) || g.EMPTY_STRING,
7699
7700
  msGraphHost: ((_ = r.account) === null || _ === void 0 ? void 0 : _.msGraphHost) || g.EMPTY_STRING,
7700
- code: u == null ? void 0 : u.spa_code,
7701
+ code: l == null ? void 0 : l.spa_code,
7701
7702
  fromNativeBroker: !1
7702
7703
  }];
7703
7704
  }
@@ -7729,24 +7730,24 @@ var ro = (
7729
7730
  });
7730
7731
  });
7731
7732
  }, e.prototype.acquireToken = function(t, r) {
7732
- var o, i, a, s, u, p;
7733
+ var o, i, a, s, l, p;
7733
7734
  return j(this, void 0, void 0, function() {
7734
- var d, f, _, k, E, N, Q = this;
7735
+ var u, f, _, k, E, N, Q = this;
7735
7736
  return K(this, function(X) {
7736
7737
  switch (X.label) {
7737
7738
  case 0:
7738
7739
  if (!t || !t.code)
7739
7740
  throw O.createTokenRequestCannotBeMadeError();
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)];
7741
+ 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)];
7741
7742
  case 1:
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({
7743
+ return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[Be.X_MS_REQUEST_ID], E = (l = _.headers) === null || l === void 0 ? void 0 : l[Be.X_MS_HTTP_VERSION], E && (u == null || u.addStaticFields({
7743
7744
  httpVerAuthority: E
7744
7745
  })), 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) {
7745
- return d == null || d.endMeasurement({
7746
+ return u == null || u.endMeasurement({
7746
7747
  success: !0
7747
7748
  }), G;
7748
7749
  }).catch(function(G) {
7749
- throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), d == null || d.endMeasurement({
7750
+ throw Q.logger.verbose("Error in fetching token in ACC", t.correlationId), u == null || u.endMeasurement({
7750
7751
  errorCode: G.errorCode,
7751
7752
  subErrorCode: G.subError,
7752
7753
  success: !1
@@ -7771,16 +7772,16 @@ var ro = (
7771
7772
  }, e.prototype.executeTokenRequest = function(t, r) {
7772
7773
  var o, i;
7773
7774
  return j(this, void 0, void 0, function() {
7774
- var a, s, u, p, d, f, _;
7775
+ var a, s, l, p, u, f, _;
7775
7776
  return K(this, function(k) {
7776
7777
  switch (k.label) {
7777
7778
  case 0:
7778
7779
  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)];
7779
7780
  case 1:
7780
- if (u = k.sent(), p = void 0, r.clientInfo)
7781
+ if (l = k.sent(), p = void 0, r.clientInfo)
7781
7782
  try {
7782
- d = vn(r.clientInfo, this.cryptoUtils), p = {
7783
- credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
7783
+ u = vn(r.clientInfo, this.cryptoUtils), p = {
7784
+ credential: "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid,
7784
7785
  type: xe.HOME_ACCOUNT_ID
7785
7786
  };
7786
7787
  } catch (E) {
@@ -7796,20 +7797,20 @@ var ro = (
7796
7797
  resourceRequestUri: r.resourceRequestUri,
7797
7798
  shrClaims: r.shrClaims,
7798
7799
  sshKid: r.sshKid
7799
- }, [2, this.executePostToTokenEndpoint(s, u, f, _)];
7800
+ }, [2, this.executePostToTokenEndpoint(s, l, f, _)];
7800
7801
  }
7801
7802
  });
7802
7803
  });
7803
7804
  }, e.prototype.createTokenRequestBody = function(t) {
7804
7805
  var r, o;
7805
7806
  return j(this, void 0, void 0, function() {
7806
- var i, a, s, u, p, d, f, f, _;
7807
+ var i, a, s, l, p, u, f, f, _;
7807
7808
  return K(this, function(k) {
7808
7809
  switch (k.label) {
7809
7810
  case 0:
7810
7811
  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)]);
7811
7812
  case 1:
7812
- return u = k.sent(), i.addPopToken(u.reqCnfString), [3, 3];
7813
+ return l = k.sent(), i.addPopToken(l.reqCnfString), [3, 3];
7813
7814
  case 2:
7814
7815
  if (t.authenticationScheme === ne.SSH)
7815
7816
  if (t.sshJwk)
@@ -7818,9 +7819,9 @@ var ro = (
7818
7819
  throw ie.createMissingSshJwkError();
7819
7820
  k.label = 3;
7820
7821
  case 3:
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)
7822
+ 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)
7822
7823
  try {
7823
- f = vn(t.clientInfo, this.cryptoUtils), d = {
7824
+ f = vn(t.clientInfo, this.cryptoUtils), u = {
7824
7825
  credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
7825
7826
  type: xe.HOME_ACCOUNT_ID
7826
7827
  };
@@ -7828,18 +7829,18 @@ var ro = (
7828
7829
  this.logger.verbose("Could not parse client info for CCS Header: " + E);
7829
7830
  }
7830
7831
  else
7831
- d = t.ccsCredential;
7832
- if (this.config.systemOptions.preventCorsPreflight && d)
7833
- switch (d.type) {
7832
+ u = t.ccsCredential;
7833
+ if (this.config.systemOptions.preventCorsPreflight && u)
7834
+ switch (u.type) {
7834
7835
  case xe.HOME_ACCOUNT_ID:
7835
7836
  try {
7836
- f = Pt(d.credential), i.addCcsOid(f);
7837
+ f = Pt(u.credential), i.addCcsOid(f);
7837
7838
  } catch (E) {
7838
7839
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
7839
7840
  }
7840
7841
  break;
7841
7842
  case xe.UPN:
7842
- i.addCcsUpn(d.credential);
7843
+ i.addCcsUpn(u.credential);
7843
7844
  break;
7844
7845
  }
7845
7846
  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()];
@@ -7849,7 +7850,7 @@ var ro = (
7849
7850
  }, e.prototype.createAuthCodeUrlQueryString = function(t) {
7850
7851
  var r;
7851
7852
  return j(this, void 0, void 0, function() {
7852
- var o, i, a, s, u, p, p, p, d, f;
7853
+ var o, i, a, s, l, p, p, p, u, f;
7853
7854
  return K(this, function(_) {
7854
7855
  switch (_.label) {
7855
7856
  case 0:
@@ -7857,8 +7858,8 @@ var ro = (
7857
7858
  if (t.sid && t.prompt === Te.NONE)
7858
7859
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
7859
7860
  else if (t.account) {
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
+ if (s = this.extractAccountSid(t.account), l = this.extractLoginHint(t.account), l) {
7862
+ this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"), o.addLoginHint(l);
7862
7863
  try {
7863
7864
  p = Pt(t.account.homeAccountId), o.addCcsOid(p);
7864
7865
  } catch {
@@ -7885,7 +7886,7 @@ var ro = (
7885
7886
  t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
7886
7887
  else
7887
7888
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
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];
7889
+ 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];
7889
7890
  case 1:
7890
7891
  f = _.sent(), o.addPopToken(f.reqCnfString), _.label = 2;
7891
7892
  case 2:
@@ -7914,24 +7915,24 @@ var oo = (
7914
7915
  return n.call(this, t, r) || this;
7915
7916
  }
7916
7917
  return e.prototype.acquireToken = function(t) {
7917
- var r, o, i, a, s, u, p;
7918
+ var r, o, i, a, s, l, p;
7918
7919
  return j(this, void 0, void 0, function() {
7919
- var d, f, _, k, E, N, Q = this;
7920
+ var u, f, _, k, E, N, Q = this;
7920
7921
  return K(this, function(X) {
7921
7922
  switch (X.label) {
7922
7923
  case 0:
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)];
7924
+ 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)];
7924
7925
  case 1:
7925
- return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[Be.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
7926
+ return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[Be.X_MS_HTTP_VERSION], u == null || u.addStaticFields({
7926
7927
  refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
7927
- }), k && (d == null || d.addStaticFields({
7928
+ }), k && (u == null || u.addStaticFields({
7928
7929
  httpVerToken: k
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
+ })), E = (l = _.headers) === null || l === void 0 ? void 0 : l[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) {
7931
+ return u == null || u.endMeasurement({
7931
7932
  success: !0
7932
7933
  }), G;
7933
7934
  }).catch(function(G) {
7934
- throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), d == null || d.endMeasurement({
7935
+ throw Q.logger.verbose("Error in fetching refresh token", t.correlationId), u == null || u.endMeasurement({
7935
7936
  errorCode: G.errorCode,
7936
7937
  subErrorCode: G.subError,
7937
7938
  success: !1
@@ -7943,8 +7944,8 @@ var oo = (
7943
7944
  }, e.prototype.acquireTokenByRefreshToken = function(t) {
7944
7945
  var r, o, i, a;
7945
7946
  return j(this, void 0, void 0, function() {
7946
- var s, u, p;
7947
- return K(this, function(d) {
7947
+ var s, l, p;
7948
+ return K(this, function(u) {
7948
7949
  if (!t)
7949
7950
  throw ie.createEmptyTokenRequestError();
7950
7951
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireTokenByRefreshToken, t.correlationId), !t.account)
@@ -7953,7 +7954,7 @@ var oo = (
7953
7954
  try {
7954
7955
  return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
7955
7956
  } catch (f) {
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)
7957
+ if (l = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, l || p)
7957
7958
  return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
7958
7959
  throw f;
7959
7960
  }
@@ -7963,13 +7964,13 @@ var oo = (
7963
7964
  }, e.prototype.acquireTokenWithCachedRefreshToken = function(t, r) {
7964
7965
  var o, i, a;
7965
7966
  return j(this, void 0, void 0, function() {
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)
7967
+ var s, l, p;
7968
+ return K(this, function(u) {
7969
+ 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), l = this.cacheManager.getRefreshToken(t.account, r), !l)
7969
7970
  throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
7970
7971
  return s == null || s.endMeasurement({
7971
7972
  success: !0
7972
- }), p = ee(ee({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || ne.BEARER, ccsCredential: {
7973
+ }), p = ee(ee({}, t), { refreshToken: l.secret, authenticationScheme: t.authenticationScheme || ne.BEARER, ccsCredential: {
7973
7974
  credential: t.account.homeAccountId,
7974
7975
  type: xe.HOME_ACCOUNT_ID
7975
7976
  } }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
@@ -7978,13 +7979,13 @@ var oo = (
7978
7979
  }, e.prototype.executeTokenRequest = function(t, r) {
7979
7980
  var o, i, a;
7980
7981
  return j(this, void 0, void 0, function() {
7981
- var s, u, p, d, f, _;
7982
+ var s, l, p, u, f, _;
7982
7983
  return K(this, function(k) {
7983
7984
  switch (k.label) {
7984
7985
  case 0:
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)];
7986
+ 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), l = this.createTokenQueryParameters(t), p = W.appendQueryString(r.tokenEndpoint, l), [4, this.createTokenRequestBody(t)];
7986
7987
  case 1:
7987
- return d = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7988
+ return u = k.sent(), f = this.createTokenRequestHeaders(t.ccsCredential), _ = {
7988
7989
  clientId: this.config.authOptions.clientId,
7989
7990
  authority: r.canonicalAuthority,
7990
7991
  scopes: t.scopes,
@@ -7994,7 +7995,7 @@ var oo = (
7994
7995
  resourceRequestUri: t.resourceRequestUri,
7995
7996
  shrClaims: t.shrClaims,
7996
7997
  sshKid: t.sshKid
7997
- }, [2, this.executePostToTokenEndpoint(p, d, f, _).then(function(E) {
7998
+ }, [2, this.executePostToTokenEndpoint(p, u, f, _).then(function(E) {
7998
7999
  return s == null || s.endMeasurement({
7999
8000
  success: !0
8000
8001
  }), E;
@@ -8009,39 +8010,39 @@ var oo = (
8009
8010
  }, e.prototype.createTokenRequestBody = function(t) {
8010
8011
  var r, o, i;
8011
8012
  return j(this, void 0, void 0, function() {
8012
- var a, s, u, p, d, f, _;
8013
+ var a, s, l, p, u, f, _;
8013
8014
  return K(this, function(k) {
8014
8015
  switch (k.label) {
8015
8016
  case 0:
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)]);
8017
+ 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), l = new Zt(), l.addClientId(this.config.authOptions.clientId), l.addScopes(t.scopes), l.addGrantType(fn.REFRESH_TOKEN_GRANT), l.addClientInfo(), l.addLibraryInfo(this.config.libraryInfo), l.addApplicationTelemetry(this.config.telemetry.application), l.addThrottling(), this.serverTelemetryManager && l.addServerTelemetry(this.serverTelemetryManager), l.addCorrelationId(a), l.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && l.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, l.addClientAssertion(p.assertion), l.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)]);
8017
8018
  case 1:
8018
- return f = k.sent(), u.addPopToken(f.reqCnfString), [3, 3];
8019
+ return f = k.sent(), l.addPopToken(f.reqCnfString), [3, 3];
8019
8020
  case 2:
8020
8021
  if (t.authenticationScheme === ne.SSH)
8021
8022
  if (t.sshJwk)
8022
- u.addSshJwk(t.sshJwk);
8023
+ l.addSshJwk(t.sshJwk);
8023
8024
  else
8024
8025
  throw s == null || s.endMeasurement({
8025
8026
  success: !1
8026
8027
  }), ie.createMissingSshJwkError();
8027
8028
  k.label = 3;
8028
8029
  case 3:
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)
8030
+ if ((!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && l.addClaims(t.claims, this.config.authOptions.clientCapabilities), this.config.systemOptions.preventCorsPreflight && t.ccsCredential)
8030
8031
  switch (t.ccsCredential.type) {
8031
8032
  case xe.HOME_ACCOUNT_ID:
8032
8033
  try {
8033
- _ = Pt(t.ccsCredential.credential), u.addCcsOid(_);
8034
+ _ = Pt(t.ccsCredential.credential), l.addCcsOid(_);
8034
8035
  } catch (E) {
8035
8036
  this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
8036
8037
  }
8037
8038
  break;
8038
8039
  case xe.UPN:
8039
- u.addCcsUpn(t.ccsCredential.credential);
8040
+ l.addCcsUpn(t.ccsCredential.credential);
8040
8041
  break;
8041
8042
  }
8042
8043
  return s == null || s.endMeasurement({
8043
8044
  success: !0
8044
- }), [2, u.createQueryString()];
8045
+ }), [2, l.createQueryString()];
8045
8046
  }
8046
8047
  });
8047
8048
  });
@@ -8080,9 +8081,9 @@ var Oi = (
8080
8081
  }, e.prototype.acquireCachedToken = function(t) {
8081
8082
  var r, o, i, a, s;
8082
8083
  return j(this, void 0, void 0, function() {
8083
- var u, p;
8084
- return K(this, function(d) {
8085
- switch (d.label) {
8084
+ var l, p;
8085
+ return K(this, function(u) {
8086
+ switch (u.label) {
8086
8087
  case 0:
8087
8088
  if (!t)
8088
8089
  throw ie.createEmptyTokenRequestError();
@@ -8092,7 +8093,7 @@ var Oi = (
8092
8093
  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();
8093
8094
  if (!t.account)
8094
8095
  throw O.createNoAccountInSilentRequestError();
8095
- if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
8096
+ if (l = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, l), p.accessToken) {
8096
8097
  if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
8097
8098
  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();
8098
8099
  if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
@@ -8101,7 +8102,7 @@ var Oi = (
8101
8102
  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();
8102
8103
  return this.config.serverTelemetryManager && this.config.serverTelemetryManager.incrementCacheHits(), [4, this.generateResultFromCacheRecord(p, t)];
8103
8104
  case 1:
8104
- return [2, d.sent()];
8105
+ return [2, u.sent()];
8105
8106
  }
8106
8107
  });
8107
8108
  });
@@ -8176,31 +8177,31 @@ var Bi = (
8176
8177
  return n.prototype.detectRegion = function(e, t) {
8177
8178
  var r, o, i, a;
8178
8179
  return j(this, void 0, void 0, function() {
8179
- var s, u, p, d, f;
8180
+ var s, l, p, u, f;
8180
8181
  return K(this, function(_) {
8181
8182
  switch (_.label) {
8182
8183
  case 0:
8183
8184
  if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RegionDiscoveryDetectRegion, this.correlationId), s = e, s)
8184
8185
  return [3, 8];
8185
- u = n.IMDS_OPTIONS, _.label = 1;
8186
+ l = n.IMDS_OPTIONS, _.label = 1;
8186
8187
  case 1:
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)];
8188
+ 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, l)];
8188
8189
  case 2:
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)]);
8190
+ 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(l)]);
8190
8191
  case 3:
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]);
8192
+ return u = _.sent(), u ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(u, l)]) : (t.region_source = ut.FAILED_AUTO_DETECTION, [2, null]);
8192
8193
  case 4:
8193
- f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source = dt.IMDS), _.label = 5;
8194
+ f = _.sent(), f.status === Rt.httpSuccess && (s = f.body, t.region_source = ut.IMDS), _.label = 5;
8194
8195
  case 5:
8195
8196
  return [3, 7];
8196
8197
  case 6:
8197
- return _.sent(), t.region_source = dt.FAILED_AUTO_DETECTION, [2, null];
8198
+ return _.sent(), t.region_source = ut.FAILED_AUTO_DETECTION, [2, null];
8198
8199
  case 7:
8199
8200
  return [3, 9];
8200
8201
  case 8:
8201
- t.region_source = dt.ENVIRONMENT_VARIABLE, _.label = 9;
8202
+ t.region_source = ut.ENVIRONMENT_VARIABLE, _.label = 9;
8202
8203
  case 9:
8203
- return s || (t.region_source = dt.FAILED_AUTO_DETECTION), [2, s || null];
8204
+ return s || (t.region_source = ut.FAILED_AUTO_DETECTION), [2, s || null];
8204
8205
  }
8205
8206
  });
8206
8207
  });
@@ -8398,13 +8399,13 @@ var on = (
8398
8399
  return e.replace(/{tenant}|{tenantid}/g, this.tenant);
8399
8400
  }, n.prototype.replacePath = function(e) {
8400
8401
  var t = this, r = e, o = new W(this.metadata.canonical_authority), i = o.getUrlComponents(), a = i.PathSegments, s = this.canonicalAuthorityUrlComponents.PathSegments;
8401
- return s.forEach(function(u, p) {
8402
- var d = a[p];
8402
+ return s.forEach(function(l, p) {
8403
+ var u = a[p];
8403
8404
  if (p === 0 && t.canReplaceTenant(i)) {
8404
8405
  var f = new W(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
8405
- d !== f && (t.logger.verbose("Replacing tenant domain name " + d + " with id " + f), d = f);
8406
+ u !== f && (t.logger.verbose("Replacing tenant domain name " + u + " with id " + f), u = f);
8406
8407
  }
8407
- u !== d && (r = r.replace("/" + d + "/", "/" + u + "/"));
8408
+ l !== u && (r = r.replace("/" + u + "/", "/" + l + "/"));
8408
8409
  }), this.replaceTenant(r);
8409
8410
  }, Object.defineProperty(n.prototype, "defaultOpenIdConfigurationEndpoint", {
8410
8411
  /**
@@ -8421,14 +8422,14 @@ var on = (
8421
8422
  var e, t, r;
8422
8423
  return j(this, void 0, void 0, function() {
8423
8424
  var o, i, a, s;
8424
- return K(this, function(u) {
8425
- switch (u.label) {
8425
+ return K(this, function(l) {
8426
+ switch (l.label) {
8426
8427
  case 0:
8427
8428
  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)];
8428
8429
  case 1:
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)];
8430
+ return i = l.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)];
8430
8431
  case 2:
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, [
8432
+ return a = l.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, [
8432
8433
  2
8433
8434
  /*return*/
8434
8435
  ];
@@ -8438,21 +8439,21 @@ var on = (
8438
8439
  }, n.prototype.updateEndpointMetadata = function(e) {
8439
8440
  var t, r, o, i, a, s;
8440
8441
  return j(this, void 0, void 0, function() {
8441
- var u, p;
8442
- return K(this, function(d) {
8443
- switch (d.label) {
8442
+ var l, p;
8443
+ return K(this, function(u) {
8444
+ switch (u.label) {
8444
8445
  case 0:
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()]);
8446
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), l = this.getEndpointMetadataFromConfig(), l ? (e.updateEndpointMetadata(l, !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()]);
8446
8447
  case 1:
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];
8448
+ return l = u.sent(), l ? !((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(l)]) : [3, 3] : [3, 4];
8448
8449
  case 2:
8449
- u = d.sent(), d.label = 3;
8450
+ l = u.sent(), u.label = 3;
8450
8451
  case 3:
8451
- return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
8452
+ return e.updateEndpointMetadata(l, !0), [2, Fe.NETWORK];
8452
8453
  case 4:
8453
8454
  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];
8454
8455
  case 5:
8455
- p = d.sent(), d.label = 6;
8456
+ p = u.sent(), u.label = 6;
8456
8457
  case 6:
8457
8458
  return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
8458
8459
  case 7:
@@ -8499,14 +8500,14 @@ var on = (
8499
8500
  var t, r, o, i;
8500
8501
  return j(this, void 0, void 0, function() {
8501
8502
  var a, s;
8502
- return K(this, function(u) {
8503
- switch (u.label) {
8503
+ return K(this, function(l) {
8504
+ switch (l.label) {
8504
8505
  case 0:
8505
8506
  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];
8506
8507
  case 1:
8507
- if (s = u.sent(), s)
8508
+ if (s = l.sent(), s)
8508
8509
  return this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
8509
- this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED, u.label = 2;
8510
+ this.regionDiscoveryMetadata.region_outcome = Xt.AUTO_DETECTION_REQUESTED_FAILED, l.label = 2;
8510
8511
  case 2:
8511
8512
  return [2, e];
8512
8513
  }
@@ -8548,15 +8549,15 @@ var on = (
8548
8549
  }, n.prototype.getCloudDiscoveryMetadataFromNetwork = function() {
8549
8550
  var e;
8550
8551
  return j(this, void 0, void 0, function() {
8551
- var t, r, o, i, a, s, u, p;
8552
- return K(this, function(d) {
8553
- switch (d.label) {
8552
+ var t, r, o, i, a, s, l, p;
8553
+ return K(this, function(u) {
8554
+ switch (u.label) {
8554
8555
  case 0:
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;
8556
+ (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;
8556
8557
  case 1:
8557
- return d.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8558
+ return u.trys.push([1, 3, , 4]), [4, this.networkInterface.sendGetRequestAsync(t, r)];
8558
8559
  case 2:
8559
- if (i = d.sent(), a = void 0, s = void 0, Ui(i.body))
8560
+ if (i = u.sent(), a = void 0, s = void 0, Ui(i.body))
8560
8561
  a = i.body, s = a.metadata, this.logger.verbosePii("tenant_discovery_endpoint is: " + a.tenant_discovery_endpoint);
8561
8562
  else if (xi(i.body)) {
8562
8563
  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)
@@ -8566,9 +8567,9 @@ var on = (
8566
8567
  return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"), [2, null];
8567
8568
  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];
8568
8569
  case 3:
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.
8570
+ return l = u.sent(), l instanceof D ? this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
8571
+ Error: ` + l.errorCode + `
8572
+ Error Description: ` + l.errorMessage) : (p = l, this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
8572
8573
  Error: ` + p.name + `
8573
8574
  Error Description: ` + p.message)), [2, null];
8574
8575
  case 4:
@@ -8644,17 +8645,17 @@ var bn = (
8644
8645
  }
8645
8646
  return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
8646
8647
  return j(this, void 0, void 0, function() {
8647
- var u, p, d;
8648
+ var l, p, u;
8648
8649
  return K(this, function(f) {
8649
8650
  switch (f.label) {
8650
8651
  case 0:
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;
8652
+ a == null || a.addQueueMeasurement(b.AuthorityFactoryCreateDiscoveredInstance, s), l = on.transformCIAMAuthority(e), p = n.createInstance(l, t, r, o, i, a, s), f.label = 1;
8652
8653
  case 1:
8653
8654
  return f.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(b.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
8654
8655
  case 2:
8655
8656
  return f.sent(), [2, p];
8656
8657
  case 3:
8657
- throw d = f.sent(), O.createEndpointDiscoveryIncompleteError(d);
8658
+ throw u = f.sent(), O.createEndpointDiscoveryIncompleteError(u);
8658
8659
  case 4:
8659
8660
  return [
8660
8661
  2
@@ -8709,7 +8710,7 @@ var Di = {
8709
8710
  }
8710
8711
  };
8711
8712
  /*! @azure/msal-common v13.3.1 2023-10-27 */
8712
- var un = {
8713
+ var dn = {
8713
8714
  missingKidError: {
8714
8715
  code: "missing_kid_error",
8715
8716
  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."
@@ -8727,9 +8728,9 @@ var un = {
8727
8728
  return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
8728
8729
  }
8729
8730
  return e.createMissingKidError = function() {
8730
- return new e(un.missingKidError.code, un.missingKidError.desc);
8731
+ return new e(dn.missingKidError.code, dn.missingKidError.desc);
8731
8732
  }, e.createMissingAlgError = function() {
8732
- return new e(un.missingAlgError.code, un.missingAlgError.desc);
8733
+ return new e(dn.missingAlgError.code, dn.missingAlgError.desc);
8733
8734
  }, e;
8734
8735
  }(D)
8735
8736
  );
@@ -8788,8 +8789,8 @@ var qi = (
8788
8789
  }, n.maxErrorsToSend = function(e) {
8789
8790
  var t, r = 0, o = 0, i = e.errors.length;
8790
8791
  for (t = 0; t < i; t++) {
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
+ var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, l = e.errors[t] || g.EMPTY_STRING;
8793
+ if (o += a.toString().length + s.toString().length + l.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
8793
8794
  r += 1;
8794
8795
  else
8795
8796
  break;
@@ -8857,7 +8858,7 @@ var ao = (
8857
8858
  t || this.logger.info("PerformanceClient: No correlation id provided for " + e + ", generating", a), this.logger.trace("PerformanceClient: Performance measurement started for " + e, a);
8858
8859
  var s = this.startPerformanceMeasuremeant(e, a);
8859
8860
  s.startMeasurement();
8860
- var u = {
8861
+ var l = {
8861
8862
  eventId: this.generateId(),
8862
8863
  status: kn.InProgress,
8863
8864
  authority: this.authority,
@@ -8870,41 +8871,41 @@ var ao = (
8870
8871
  appName: (o = this.applicationTelemetry) === null || o === void 0 ? void 0 : o.appName,
8871
8872
  appVersion: (i = this.applicationTelemetry) === null || i === void 0 ? void 0 : i.appVersion
8872
8873
  };
8873
- return this.cacheEventByCorrelationId(u), {
8874
+ return this.cacheEventByCorrelationId(l), {
8874
8875
  endMeasurement: function(p) {
8875
- return r.endMeasurement(ee(ee({}, u), p), s);
8876
+ return r.endMeasurement(ee(ee({}, l), p), s);
8876
8877
  },
8877
8878
  discardMeasurement: function() {
8878
- return r.discardMeasurements(u.correlationId);
8879
+ return r.discardMeasurements(l.correlationId);
8879
8880
  },
8880
8881
  addStaticFields: function(p) {
8881
- return r.addStaticFields(p, u.correlationId);
8882
+ return r.addStaticFields(p, l.correlationId);
8882
8883
  },
8883
8884
  increment: function(p) {
8884
- return r.increment(p, u.correlationId);
8885
+ return r.increment(p, l.correlationId);
8885
8886
  },
8886
8887
  measurement: s,
8887
- event: u
8888
+ event: l
8888
8889
  };
8889
8890
  }, n.prototype.endMeasurement = function(e, t) {
8890
8891
  var r = this, o, i, a = this.eventsByCorrelationId.get(e.correlationId);
8891
8892
  if (!a)
8892
8893
  return this.logger.trace("PerformanceClient: Measurement not found for " + e.eventId, e.correlationId), null;
8893
- var s = e.eventId === a.eventId, u = {
8894
+ var s = e.eventId === a.eventId, l = {
8894
8895
  totalQueueTime: 0,
8895
8896
  totalQueueCount: 0,
8896
8897
  manuallyCompletedCount: 0
8897
8898
  };
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();
8899
+ s ? (l = this.getQueueInfo(e.correlationId), this.discardCache(a.correlationId)) : (o = a.incompleteSubMeasurements) === null || o === void 0 || o.delete(e.eventId), t == null || t.endMeasurement();
8899
8900
  var p = t == null ? void 0 : t.flushMeasurement();
8900
8901
  if (!p)
8901
8902
  return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
8902
8903
  if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
8903
8904
  return a[e.name + "DurationMs"] = Math.floor(p), ee({}, a);
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;
8905
+ var u = ee(ee({}, a), e), f = 0;
8906
+ return (i = u.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(_) {
8907
+ r.logger.trace("PerformanceClient: Incomplete submeasurement " + _.name + " found for " + e.name, u.correlationId), f++;
8908
+ }), u.incompleteSubMeasurements = void 0, u = ee(ee({}, u), { durationMs: Math.round(p), queuedTimeMs: l.totalQueueTime, queuedCount: l.totalQueueCount, queuedManuallyCompletedCount: l.manuallyCompletedCount, status: kn.Completed, incompleteSubsCount: f }), this.truncateIntegralFields(u, this.getIntFields()), this.emitEvents([u], e.correlationId), u;
8908
8909
  }, n.prototype.addStaticFields = function(e, t) {
8909
8910
  this.logger.trace("PerformanceClient: Updating static fields");
8910
8911
  var r = this.eventsByCorrelationId.get(t);
@@ -9517,7 +9518,7 @@ var $n = (
9517
9518
  return this.internalStorage;
9518
9519
  }
9519
9520
  }, e.prototype.migrateCacheEntries = function() {
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];
9521
+ 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), l = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), u = this.browserStorage.getItem(a), f = [s, l, p, u], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
9521
9522
  _.forEach(function(k, E) {
9522
9523
  return t.migrateCacheEntry(k, f[E]);
9523
9524
  });
@@ -9536,33 +9537,33 @@ var $n = (
9536
9537
  if (t.isCredentialKey(a)) {
9537
9538
  var s = t.getItem(a);
9538
9539
  if (s) {
9539
- var u = t.validateAndParseJson(s);
9540
- if (u && u.hasOwnProperty("credentialType"))
9541
- switch (u.credentialType) {
9540
+ var l = t.validateAndParseJson(s);
9541
+ if (l && l.hasOwnProperty("credentialType"))
9542
+ switch (l.credentialType) {
9542
9543
  case H.ID_TOKEN:
9543
- if (gt.isIdTokenEntity(u)) {
9544
+ if (gt.isIdTokenEntity(l)) {
9544
9545
  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");
9545
- var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
9546
- t.addTokenKey(d, H.ID_TOKEN);
9546
+ var p = Me.toObject(new gt(), l), u = t.updateCredentialCacheKey(a, p);
9547
+ t.addTokenKey(u, H.ID_TOKEN);
9547
9548
  return;
9548
9549
  } else
9549
9550
  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);
9550
9551
  break;
9551
9552
  case H.ACCESS_TOKEN:
9552
9553
  case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
9553
- if (_t.isAccessTokenEntity(u)) {
9554
+ if (_t.isAccessTokenEntity(l)) {
9554
9555
  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");
9555
- var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
9556
- t.addTokenKey(d, H.ACCESS_TOKEN);
9556
+ var f = Me.toObject(new _t(), l), u = t.updateCredentialCacheKey(a, f);
9557
+ t.addTokenKey(u, H.ACCESS_TOKEN);
9557
9558
  return;
9558
9559
  } else
9559
9560
  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);
9560
9561
  break;
9561
9562
  case H.REFRESH_TOKEN:
9562
- if (Mt.isRefreshTokenEntity(u)) {
9563
+ if (Mt.isRefreshTokenEntity(l)) {
9563
9564
  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");
9564
- var _ = Me.toObject(new Mt(), u), d = t.updateCredentialCacheKey(a, _);
9565
- t.addTokenKey(d, H.REFRESH_TOKEN);
9565
+ var _ = Me.toObject(new Mt(), l), u = t.updateCredentialCacheKey(a, _);
9566
+ t.addTokenKey(u, H.REFRESH_TOKEN);
9566
9567
  return;
9567
9568
  } else
9568
9569
  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);
@@ -9923,21 +9924,21 @@ var $n = (
9923
9924
  this.logger.trace("BrowserCacheManager.updateCacheEntries called");
9924
9925
  var s = this.generateStateKey(t);
9925
9926
  this.setTemporaryCache(s, t, !1);
9926
- var u = this.generateNonceKey(t);
9927
- this.setTemporaryCache(u, r, !1);
9927
+ var l = this.generateNonceKey(t);
9928
+ this.setTemporaryCache(l, r, !1);
9928
9929
  var p = this.generateAuthorityKey(t);
9929
9930
  if (this.setTemporaryCache(p, o, !1), a) {
9930
- var d = {
9931
+ var u = {
9931
9932
  credential: a.homeAccountId,
9932
9933
  type: xe.HOME_ACCOUNT_ID
9933
9934
  };
9934
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9935
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9935
9936
  } else if (!L.isEmpty(i)) {
9936
- var d = {
9937
+ var u = {
9937
9938
  credential: i,
9938
9939
  type: xe.UPN
9939
9940
  };
9940
- this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(d), !0);
9941
+ this.setTemporaryCache(J.CCS_CREDENTIAL, JSON.stringify(u), !0);
9941
9942
  }
9942
9943
  }, e.prototype.resetRequestCache = function(t) {
9943
9944
  var r = this;
@@ -10159,9 +10160,9 @@ var Qi = (
10159
10160
  ), o.setXhrHeaders(s, r), s.onload = function() {
10160
10161
  (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)));
10161
10162
  try {
10162
- var u = JSON.parse(s.responseText), p = {
10163
+ var l = JSON.parse(s.responseText), p = {
10163
10164
  headers: o.getHeaderDict(s),
10164
- body: u,
10165
+ body: l,
10165
10166
  status: s.status
10166
10167
  };
10167
10168
  i(p);
@@ -10187,14 +10188,14 @@ var Qi = (
10187
10188
  }, n.prototype.getHeaderDict = function(e) {
10188
10189
  var t = e.getAllResponseHeaders(), r = t.trim().split(/[\r\n]+/), o = {};
10189
10190
  return r.forEach(function(i) {
10190
- var a = i.split(": "), s = a.shift(), u = a.join(": ");
10191
- s && u && (o[s] = u);
10191
+ var a = i.split(": "), s = a.shift(), l = a.join(": ");
10192
+ s && l && (o[s] = l);
10192
10193
  }), o;
10193
10194
  }, n;
10194
10195
  }()
10195
10196
  );
10196
10197
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
10197
- var de = (
10198
+ var ue = (
10198
10199
  /** @class */
10199
10200
  function() {
10200
10201
  function n() {
@@ -10242,8 +10243,8 @@ var de = (
10242
10243
  var co = (
10243
10244
  /** @class */
10244
10245
  function() {
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
+ function n(e, t, r, o, i, a, s, l, p) {
10247
+ this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = l, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, tn, this.correlationId), this.performanceClient = s;
10247
10248
  }
10248
10249
  return n.prototype.clearCacheOnLogout = function(e) {
10249
10250
  return T(this, void 0, void 0, function() {
@@ -10312,8 +10313,8 @@ var co = (
10312
10313
  });
10313
10314
  }, n.prototype.getRedirectUri = function(e) {
10314
10315
  this.logger.verbose("getRedirectUri called");
10315
- var t = e || this.config.auth.redirectUri || de.getCurrentUri();
10316
- return W.getAbsoluteUrl(t, de.getCurrentUri());
10316
+ var t = e || this.config.auth.redirectUri || ue.getCurrentUri();
10317
+ return W.getAbsoluteUrl(t, ue.getCurrentUri());
10317
10318
  }, n.prototype.validateRequestAuthority = function(e, t) {
10318
10319
  return T(this, void 0, void 0, function() {
10319
10320
  var r;
@@ -10399,7 +10400,7 @@ var jt = (
10399
10400
  this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");
10400
10401
  else
10401
10402
  this.logger.verbose("logoutHint will not be set since no logout request was configured");
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;
10403
+ 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;
10403
10404
  }, e.prototype.getLogoutHintFromIdTokenClaims = function(t) {
10404
10405
  var r = t.idTokenClaims;
10405
10406
  if (r) {
@@ -10475,7 +10476,7 @@ var jt = (
10475
10476
  }, e.prototype.getDiscoveredAuthority = function(t, r) {
10476
10477
  var o;
10477
10478
  return T(this, void 0, void 0, function() {
10478
- var i, a, s, u;
10479
+ var i, a, s, l;
10479
10480
  return I(this, function(p) {
10480
10481
  switch (p.label) {
10481
10482
  case 0:
@@ -10485,16 +10486,16 @@ var jt = (
10485
10486
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
10486
10487
  authorityMetadata: this.config.auth.authorityMetadata,
10487
10488
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
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) {
10489
+ }, s = t || this.config.auth.authority, l = 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(l, this.config.system.networkClient, this.browserStorage, a, this.logger, this.performanceClient, this.correlationId).then(function(u) {
10489
10490
  return i.endMeasurement({
10490
10491
  success: !0
10491
- }), d;
10492
- }).catch(function(d) {
10492
+ }), u;
10493
+ }).catch(function(u) {
10493
10494
  throw i.endMeasurement({
10494
- errorCode: d.errorCode,
10495
- subErrorCode: d.subError,
10495
+ errorCode: u.errorCode,
10496
+ subErrorCode: u.subError,
10496
10497
  success: !1
10497
- }), d;
10498
+ }), u;
10498
10499
  })];
10499
10500
  case 1:
10500
10501
  return [2, p.sent()];
@@ -10503,15 +10504,15 @@ var jt = (
10503
10504
  });
10504
10505
  }, e.prototype.initializeAuthorizationRequest = function(t, r) {
10505
10506
  return T(this, void 0, void 0, function() {
10506
- var o, i, a, s, u, p, d;
10507
+ var o, i, a, s, l, p, u;
10507
10508
  return I(this, function(f) {
10508
10509
  switch (f.label) {
10509
10510
  case 0:
10510
10511
  return this.performanceClient.addQueueMeasurement(b.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
10511
10512
  interactionType: r
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)];
10513
+ }, a = st.setRequestState(this.browserCrypto, t && t.state || g.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(b.InitializeBaseRequest, this.correlationId), l = [{}], [4, this.initializeBaseRequest(t)];
10513
10514
  case 1:
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];
10515
+ return s = B.apply(void 0, [B.apply(void 0, l.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];
10515
10516
  }
10516
10517
  });
10517
10518
  });
@@ -10528,7 +10529,7 @@ var or = (
10528
10529
  return n.prototype.handleCodeResponseFromHash = function(e, t, r, o) {
10529
10530
  return T(this, void 0, void 0, function() {
10530
10531
  var i, a, s;
10531
- return I(this, function(u) {
10532
+ return I(this, function(l) {
10532
10533
  if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
10533
10534
  throw M.createEmptyHashError(e);
10534
10535
  if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
@@ -10543,17 +10544,17 @@ var or = (
10543
10544
  });
10544
10545
  }, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
10545
10546
  return i === void 0 && (i = !0), T(this, void 0, void 0, function() {
10546
- var a, s, u, p, d, f;
10547
+ var a, s, l, p, u, f;
10547
10548
  return I(this, function(_) {
10548
10549
  switch (_.label) {
10549
10550
  case 0:
10550
10551
  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)
10551
10552
  throw O.createStateNotFoundError("Cached State");
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];
10553
+ return l = this.browserStorage.generateNonceKey(s), p = this.browserStorage.getTemporaryCache(l), 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];
10553
10554
  case 1:
10554
10555
  _.sent(), _.label = 2;
10555
10556
  case 2:
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)];
10557
+ 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)];
10557
10558
  case 3:
10558
10559
  return f = _.sent(), this.browserStorage.cleanRequestByState(t), [2, f];
10559
10560
  }
@@ -10592,8 +10593,8 @@ var Ur = (
10592
10593
  function(n) {
10593
10594
  be(e, n);
10594
10595
  function e(t, r, o, i, a, s) {
10595
- var u = n.call(this, t, r, o, i, s) || this;
10596
- return u.browserCrypto = a, u;
10596
+ var l = n.call(this, t, r, o, i, s) || this;
10597
+ return l.browserCrypto = a, l;
10597
10598
  }
10598
10599
  return e.prototype.initiateAuthRequest = function(t, r) {
10599
10600
  return T(this, void 0, void 0, function() {
@@ -10639,7 +10640,7 @@ var Ur = (
10639
10640
  });
10640
10641
  }, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
10641
10642
  return T(this, void 0, void 0, function() {
10642
- var a, s, u, p, d, f, _;
10643
+ var a, s, l, p, u, f, _;
10643
10644
  return I(this, function(k) {
10644
10645
  switch (k.label) {
10645
10646
  case 0:
@@ -10648,15 +10649,15 @@ var Ur = (
10648
10649
  if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
10649
10650
  throw O.createStateNotFoundError("Cached State");
10650
10651
  try {
10651
- u = this.authModule.handleFragmentResponse(t, s);
10652
+ l = this.authModule.handleFragmentResponse(t, s);
10652
10653
  } catch (E) {
10653
10654
  throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
10654
10655
  }
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];
10656
+ return p = this.browserStorage.generateNonceKey(s), u = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = l.code, l.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(l.cloud_instance_host_name, o, i)] : [3, 2];
10656
10657
  case 1:
10657
10658
  k.sent(), k.label = 2;
10658
10659
  case 2:
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)];
10660
+ return l.nonce = u || void 0, l.state = s, l.client_info ? this.authCodeRequest.clientInfo = l.client_info : (f = this.checkCcsCredentials(), f && (this.authCodeRequest.ccsCredential = f)), [4, this.authModule.acquireToken(this.authCodeRequest, l)];
10660
10661
  case 3:
10661
10662
  return _ = k.sent(), this.browserStorage.cleanRequestByState(r), [2, _];
10662
10663
  }
@@ -10735,21 +10736,21 @@ var lo = (
10735
10736
  return e.prototype.acquireToken = function(t) {
10736
10737
  return T(this, void 0, void 0, function() {
10737
10738
  var r, o, i, a, s;
10738
- return I(this, function(u) {
10739
- switch (u.label) {
10739
+ return I(this, function(l) {
10740
+ switch (l.label) {
10740
10741
  case 0:
10741
10742
  return r = this.performanceClient.startMeasurement(b.SilentCacheClientAcquireToken, t.correlationId), o = this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow), [4, this.createSilentFlowClient(o, t.authority, t.azureCloudOptions)];
10742
10743
  case 1:
10743
- i = u.sent(), this.logger.verbose("Silent auth client created"), u.label = 2;
10744
+ i = l.sent(), this.logger.verbose("Silent auth client created"), l.label = 2;
10744
10745
  case 2:
10745
- return u.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10746
+ return l.trys.push([2, 4, , 5]), [4, i.acquireCachedToken(t)];
10746
10747
  case 3:
10747
- return a = u.sent(), r.endMeasurement({
10748
+ return a = l.sent(), r.endMeasurement({
10748
10749
  success: !0,
10749
10750
  fromCache: !0
10750
10751
  }), [2, a];
10751
10752
  case 4:
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({
10753
+ throw s = l.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({
10753
10754
  errorCode: s instanceof D && s.errorCode || void 0,
10754
10755
  subErrorCode: s instanceof D && s.subError || void 0,
10755
10756
  success: !1
@@ -10796,36 +10797,36 @@ var zt = (
10796
10797
  /** @class */
10797
10798
  function(n) {
10798
10799
  be(e, n);
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;
10800
+ function e(t, r, o, i, a, s, l, p, u, f, _, k) {
10801
+ var E = n.call(this, t, r, o, i, a, s, p, u, k) || this;
10802
+ return E.apiId = l, E.accountId = f, E.nativeMessageHandler = u, E.nativeStorageManager = _, E.silentCacheClient = new lo(t, E.nativeStorageManager, o, i, a, s, p, u, k), E;
10802
10803
  }
10803
10804
  return e.prototype.acquireToken = function(t) {
10804
10805
  return T(this, void 0, void 0, function() {
10805
- var r, o, i, a, s, u, p;
10806
- return I(this, function(d) {
10807
- switch (d.label) {
10806
+ var r, o, i, a, s, l, p;
10807
+ return I(this, function(u) {
10808
+ switch (u.label) {
10808
10809
  case 0:
10809
10810
  return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
10810
10811
  case 1:
10811
- i = d.sent(), d.label = 2;
10812
+ i = u.sent(), u.label = 2;
10812
10813
  case 2:
10813
- return d.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10814
+ return u.trys.push([2, 4, , 5]), [4, this.acquireTokensFromCache(this.accountId, i)];
10814
10815
  case 3:
10815
- return a = d.sent(), r.endMeasurement({
10816
+ return a = u.sent(), r.endMeasurement({
10816
10817
  success: !0,
10817
10818
  isNativeBroker: !1,
10818
10819
  fromCache: !0
10819
10820
  }), [2, a];
10820
10821
  case 4:
10821
- return d.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10822
+ return u.sent(), this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"), [3, 5];
10822
10823
  case 5:
10823
10824
  return s = {
10824
10825
  method: at.GetToken,
10825
10826
  request: i
10826
10827
  }, [4, this.nativeMessageHandler.sendMessage(s)];
10827
10828
  case 6:
10828
- return u = d.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10829
+ return l = u.sent(), p = this.validateNativeResponse(l), [2, this.handleNativeResponse(p, i, o).then(function(f) {
10829
10830
  return r.endMeasurement({
10830
10831
  success: !0,
10831
10832
  isNativeBroker: !0,
@@ -10853,20 +10854,20 @@ var zt = (
10853
10854
  }, e.prototype.acquireTokensFromCache = function(t, r) {
10854
10855
  return T(this, void 0, void 0, function() {
10855
10856
  var o, i, a, s;
10856
- return I(this, function(u) {
10857
- switch (u.label) {
10857
+ return I(this, function(l) {
10858
+ switch (l.label) {
10858
10859
  case 0:
10859
10860
  if (!t)
10860
10861
  throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"), O.createNoAccountFoundError();
10861
10862
  if (o = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: t }), !o)
10862
10863
  throw O.createNoAccountFoundError();
10863
- u.label = 1;
10864
+ l.label = 1;
10864
10865
  case 1:
10865
- return u.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10866
+ return l.trys.push([1, 3, , 4]), i = this.createSilentCacheRequest(r, o), [4, this.silentCacheClient.acquireToken(i)];
10866
10867
  case 2:
10867
- return a = u.sent(), [2, a];
10868
+ return a = l.sent(), [2, a];
10868
10869
  case 3:
10869
- throw s = u.sent(), s;
10870
+ throw s = l.sent(), s;
10870
10871
  case 4:
10871
10872
  return [
10872
10873
  2
@@ -10877,7 +10878,7 @@ var zt = (
10877
10878
  });
10878
10879
  }, e.prototype.acquireTokenRedirect = function(t) {
10879
10880
  return T(this, void 0, void 0, function() {
10880
- var r, o, i, a, s, u;
10881
+ var r, o, i, a, s, l;
10881
10882
  return I(this, function(p) {
10882
10883
  switch (p.label) {
10883
10884
  case 0:
@@ -10900,7 +10901,7 @@ var zt = (
10900
10901
  apiId: oe.acquireTokenRedirect,
10901
10902
  timeout: this.config.system.redirectNavigationTimeout,
10902
10903
  noHistory: !1
10903
- }, u = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(u, s)];
10904
+ }, l = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(t.redirectUri), [4, this.navigationClient.navigateExternal(l, s)];
10904
10905
  case 6:
10905
10906
  return p.sent(), [
10906
10907
  2
@@ -10911,9 +10912,9 @@ var zt = (
10911
10912
  });
10912
10913
  }, e.prototype.handleRedirectPromise = function() {
10913
10914
  return T(this, void 0, void 0, function() {
10914
- var t, r, o, i, a, s, u, p;
10915
- return I(this, function(d) {
10916
- switch (d.label) {
10915
+ var t, r, o, i, a, s, l, p;
10916
+ return I(this, function(u) {
10917
+ switch (u.label) {
10917
10918
  case 0:
10918
10919
  if (this.logger.trace("NativeInteractionClient - handleRedirectPromise called."), !this.browserStorage.isInteractionInProgress(!0))
10919
10920
  return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
@@ -10922,13 +10923,13 @@ var zt = (
10922
10923
  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 = {
10923
10924
  method: at.GetToken,
10924
10925
  request: o
10925
- }, a = Ke.nowSeconds(), d.label = 1;
10926
+ }, a = Ke.nowSeconds(), u.label = 1;
10926
10927
  case 1:
10927
- return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10928
+ return u.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
10928
10929
  case 2:
10929
- return s = d.sent(), this.validateNativeResponse(s), u = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, u];
10930
+ return s = u.sent(), this.validateNativeResponse(s), l = this.handleNativeResponse(s, o, a), this.browserStorage.setInteractionInProgress(!1), [2, l];
10930
10931
  case 3:
10931
- throw p = d.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10932
+ throw p = u.sent(), this.browserStorage.setInteractionInProgress(!1), p;
10932
10933
  case 4:
10933
10934
  return [
10934
10935
  2
@@ -10941,7 +10942,7 @@ var zt = (
10941
10942
  return this.logger.trace("NativeInteractionClient - logout called."), Promise.reject("Logout not implemented yet");
10942
10943
  }, e.prototype.handleNativeResponse = function(t, r, o) {
10943
10944
  return T(this, void 0, void 0, function() {
10944
- var i, a, s, u, p, d;
10945
+ var i, a, s, l, p, u;
10945
10946
  return I(this, function(f) {
10946
10947
  switch (f.label) {
10947
10948
  case 0:
@@ -10949,9 +10950,9 @@ var zt = (
10949
10950
  throw tt.createUserSwitchError();
10950
10951
  return [4, this.getDiscoveredAuthority(r.authority)];
10951
10952
  case 1:
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)];
10953
+ return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), l = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, l, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
10953
10954
  case 2:
10954
- return d = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, d.accessToken, d.tenantId, o), [2, d];
10955
+ return u = f.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, l, p, s, u.accessToken, u.tenantId, o), [2, u];
10955
10956
  }
10956
10957
  });
10957
10958
  });
@@ -10991,11 +10992,11 @@ var zt = (
10991
10992
  });
10992
10993
  }, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
10993
10994
  return T(this, void 0, void 0, function() {
10994
- var u, p, d, f, _, k, E, N;
10995
+ var l, p, u, f, _, k, E, N;
10995
10996
  return I(this, function(Q) {
10996
10997
  switch (Q.label) {
10997
10998
  case 0:
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)];
10999
+ return l = 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)];
10999
11000
  case 1:
11000
11001
  return k = Q.sent(), E = r.tokenType === ne.POP ? ne.POP : ne.BEARER, N = {
11001
11002
  authority: a,
@@ -11006,7 +11007,7 @@ var zt = (
11006
11007
  idToken: t.id_token,
11007
11008
  idTokenClaims: o.claims,
11008
11009
  accessToken: k,
11009
- fromCache: u ? this.isResponseFromCache(u) : !1,
11010
+ fromCache: l ? this.isResponseFromCache(l) : !1,
11010
11011
  expiresOn: new Date(Number(s + t.expires_in) * 1e3),
11011
11012
  tokenType: E,
11012
11013
  correlationId: this.correlationId,
@@ -11021,8 +11022,8 @@ var zt = (
11021
11022
  this.browserStorage.setAccount(t), this.browserStorage.removeAccountContext(t).catch(function(o) {
11022
11023
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
11023
11024
  });
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
+ }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, l, p) {
11026
+ 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 : l, k.printScopes(), _, 0, this.browserCrypto), N = new en(i, u, E);
11026
11027
  this.nativeStorageManager.saveCacheRecord(N);
11027
11028
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
11028
11029
  var r = this.getMATSFromResponse(t);
@@ -11059,7 +11060,7 @@ var zt = (
11059
11060
  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;
11060
11061
  }, e.prototype.initializeNativeRequest = function(t) {
11061
11062
  return T(this, void 0, void 0, function() {
11062
- var r, o, i, a, s, u, p, d, f, _, k = this;
11063
+ var r, o, i, a, s, l, p, u, f, _, k = this;
11063
11064
  return I(this, function(E) {
11064
11065
  switch (E.label) {
11065
11066
  case 0:
@@ -11067,7 +11068,7 @@ var zt = (
11067
11068
  case 1:
11068
11069
  E.sent(), E.label = 2;
11069
11070
  case 2:
11070
- return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an), u = function() {
11071
+ return o = new W(r), o.validateAsUri(), i = t.scopes, a = br(t, ["scopes"]), s = new Ee(i || []), s.appendScopes(an), l = function() {
11071
11072
  switch (k.apiId) {
11072
11073
  case oe.ssoSilent:
11073
11074
  case oe.acquireTokenSilent_silentFlow:
@@ -11091,19 +11092,19 @@ var zt = (
11091
11092
  authority: o.urlString,
11092
11093
  scope: s.printScopes(),
11093
11094
  redirectUri: this.getRedirectUri(t.redirectUri),
11094
- prompt: u(),
11095
+ prompt: l(),
11095
11096
  correlationId: this.correlationId,
11096
11097
  tokenType: t.authenticationScheme,
11097
11098
  windowTitleSubstring: document.title,
11098
11099
  extraParameters: B(B(B({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Vt.MATS_TELEMETRY }),
11099
11100
  extendedExpiryToken: !1
11100
11101
  // Make this configurable?
11101
- }), t.authenticationScheme !== ne.POP ? [3, 4] : (d = {
11102
+ }), t.authenticationScheme !== ne.POP ? [3, 4] : (u = {
11102
11103
  resourceRequestUri: t.resourceRequestUri,
11103
11104
  resourceRequestMethod: t.resourceRequestMethod,
11104
11105
  shrClaims: t.shrClaims,
11105
11106
  shrNonce: t.shrNonce
11106
- }, f = new xt(this.browserCrypto), [4, f.generateCnf(d)]);
11107
+ }, f = new xt(this.browserCrypto), [4, f.generateCnf(u)]);
11107
11108
  case 3:
11108
11109
  _ = E.sent(), p.reqCnf = _.reqCnfString, p.keyId = _.kid, E.label = 4;
11109
11110
  case 4:
@@ -11240,13 +11241,13 @@ var Yi = (
11240
11241
  /** @class */
11241
11242
  function(n) {
11242
11243
  be(e, n);
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
+ function e(t, r, o, i, a, s, l, p, u, f) {
11245
+ var _ = n.call(this, t, r, o, i, a, s, l, u, f) || this;
11245
11246
  return _.nativeStorage = p, _;
11246
11247
  }
11247
11248
  return e.prototype.acquireToken = function(t) {
11248
11249
  return T(this, void 0, void 0, function() {
11249
- var r, o, i, a, s, u, p, d, f, _ = this;
11250
+ var r, o, i, a, s, l, p, u, f, _ = this;
11250
11251
  return I(this, function(k) {
11251
11252
  switch (k.label) {
11252
11253
  case 0:
@@ -11260,12 +11261,12 @@ var Yi = (
11260
11261
  case 3:
11261
11262
  return a = k.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(o, r.authority, r.azureCloudOptions)];
11262
11263
  case 4:
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) }))];
11264
+ return s = k.sent(), this.logger.verbose("Auth code client created"), l = 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) }))];
11264
11265
  case 5:
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, {
11266
+ return p = k.sent(), u = this.getRedirectStartPage(t.redirectStartPage), this.logger.verbosePii("Redirect start page: " + u), window.addEventListener("pageshow", i), [4, l.initiateAuthRequest(p, {
11266
11267
  navigationClient: this.navigationClient,
11267
11268
  redirectTimeout: this.config.system.redirectNavigationTimeout,
11268
- redirectStartPage: d,
11269
+ redirectStartPage: u,
11269
11270
  onRedirectNavigate: t.onRedirectNavigate
11270
11271
  })];
11271
11272
  case 6:
@@ -11282,7 +11283,7 @@ var Yi = (
11282
11283
  });
11283
11284
  }, e.prototype.handleRedirectPromise = function(t) {
11284
11285
  return T(this, void 0, void 0, function() {
11285
- var r, o, i, a, s, u, p, d, f, _, k, E;
11286
+ var r, o, i, a, s, l, p, u, f, _, k, E;
11286
11287
  return I(this, function(N) {
11287
11288
  switch (N.label) {
11288
11289
  case 0:
@@ -11298,17 +11299,17 @@ var Yi = (
11298
11299
  } catch (Q) {
11299
11300
  return this.logger.info("handleRedirectPromise was unable to extract state due to: " + Q), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
11300
11301
  }
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];
11302
+ return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, l = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), l === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
11302
11303
  case 2:
11303
- return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
11304
+ return u = N.sent(), s.indexOf("#") > -1 && ue.replaceHash(s), [2, u];
11304
11305
  case 3:
11305
11306
  return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
11306
11307
  case 4:
11307
- return !de.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11308
+ return !ue.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(J.URL_HASH, o, !0), f = {
11308
11309
  apiId: oe.handleRedirectPromise,
11309
11310
  timeout: this.config.system.redirectNavigationTimeout,
11310
11311
  noHistory: !0
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];
11312
+ }, _ = !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];
11312
11313
  case 5:
11313
11314
  return _ = N.sent(), [3, 8];
11314
11315
  case 6:
@@ -11335,20 +11336,20 @@ var Yi = (
11335
11336
  this.logger.verbose("getRedirectResponseHash called");
11336
11337
  var r = W.hashContainsKnownProperties(t);
11337
11338
  if (r)
11338
- return de.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11339
+ return ue.clearHash(window), this.logger.verbose("Hash contains known properties, returning response hash"), t;
11339
11340
  var o = this.browserStorage.getTemporaryCache(J.URL_HASH, !0);
11340
11341
  return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
11341
11342
  }, e.prototype.handleHash = function(t, r, o) {
11342
11343
  return T(this, void 0, void 0, function() {
11343
- var i, a, s, u, p, d, f, _ = this;
11344
+ var i, a, s, l, p, u, f, _ = this;
11344
11345
  return I(this, function(k) {
11345
11346
  switch (k.label) {
11346
11347
  case 0:
11347
11348
  if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
11348
11349
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11349
11350
  throw M.createNativeConnectionNotEstablishedError();
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
+ 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), l = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
11352
+ state: l,
11352
11353
  prompt: void 0
11353
11354
  // Server should handle the prompt, ideally native broker can do this part silently
11354
11355
  })).finally(function() {
@@ -11359,7 +11360,7 @@ var Yi = (
11359
11360
  throw M.createNoCachedAuthorityError();
11360
11361
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
11361
11362
  case 1:
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)];
11363
+ 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)];
11363
11364
  case 2:
11364
11365
  return [2, k.sent()];
11365
11366
  }
@@ -11367,41 +11368,41 @@ var Yi = (
11367
11368
  });
11368
11369
  }, e.prototype.logout = function(t) {
11369
11370
  return T(this, void 0, void 0, function() {
11370
- var r, o, i, a, s, u, p;
11371
- return I(this, function(d) {
11372
- switch (d.label) {
11371
+ var r, o, i, a, s, l, p;
11372
+ return I(this, function(u) {
11373
+ switch (u.label) {
11373
11374
  case 0:
11374
- this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), d.label = 1;
11375
+ this.logger.verbose("logoutRedirect called"), r = this.initializeLogoutRequest(t), o = this.initializeServerTelemetryManager(oe.logout), u.label = 1;
11375
11376
  case 1:
11376
- return d.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11377
+ return u.trys.push([1, 10, , 11]), this.eventHandler.emitEvent(q.LOGOUT_START, x.Redirect, t), [4, this.clearCacheOnLogout(r.account)];
11377
11378
  case 2:
11378
- return d.sent(), i = {
11379
+ return u.sent(), i = {
11379
11380
  apiId: oe.logout,
11380
11381
  timeout: this.config.system.redirectNavigationTimeout,
11381
11382
  noHistory: !1
11382
11383
  }, this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, r.correlationId), [4, this.createAuthCodeClient(o, t && t.authority)];
11383
11384
  case 3:
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];
11385
+ 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" ? (l = t.onRedirectNavigate(s), l === !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];
11385
11386
  case 4:
11386
- return d.sent(), [
11387
+ return u.sent(), [
11387
11388
  2
11388
11389
  /*return*/
11389
11390
  ];
11390
11391
  case 5:
11391
- this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), d.label = 6;
11392
+ this.browserStorage.setInteractionInProgress(!1), this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"), u.label = 6;
11392
11393
  case 6:
11393
11394
  return [3, 9];
11394
11395
  case 7:
11395
11396
  return this.browserStorage.getInteractionInProgress() || this.browserStorage.setInteractionInProgress(!0), [4, this.navigationClient.navigateExternal(s, i)];
11396
11397
  case 8:
11397
- return d.sent(), [
11398
+ return u.sent(), [
11398
11399
  2
11399
11400
  /*return*/
11400
11401
  ];
11401
11402
  case 9:
11402
11403
  return [3, 11];
11403
11404
  case 10:
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;
11405
+ 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;
11405
11406
  case 11:
11406
11407
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Redirect), [
11407
11408
  2
@@ -11412,7 +11413,7 @@ var Yi = (
11412
11413
  });
11413
11414
  }, e.prototype.getRedirectStartPage = function(t) {
11414
11415
  var r = t || window.location.href;
11415
- return W.getAbsoluteUrl(r, de.getCurrentUri());
11416
+ return W.getAbsoluteUrl(r, ue.getCurrentUri());
11416
11417
  }, e;
11417
11418
  }(jt)
11418
11419
  );
@@ -11421,8 +11422,8 @@ var Wi = (
11421
11422
  /** @class */
11422
11423
  function(n) {
11423
11424
  be(e, n);
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
+ function e(t, r, o, i, a, s, l, p, u, f) {
11426
+ var _ = n.call(this, t, r, o, i, a, s, l, u, f) || this;
11426
11427
  return _.unloadWindow = _.unloadWindow.bind(_), _.nativeStorage = p, _;
11427
11428
  }
11428
11429
  return e.prototype.acquireToken = function(t) {
@@ -11443,14 +11444,14 @@ var Wi = (
11443
11444
  if (this.config.system.asyncPopups)
11444
11445
  return this.logger.verbose("asyncPopups set to true"), this.logoutPopupAsync(r, o, s, i, void 0, a);
11445
11446
  this.logger.verbose("asyncPopup set to false, opening popup");
11446
- var u = this.openSizedPopup("about:blank", o, s);
11447
- return this.logoutPopupAsync(r, o, s, i, u, a);
11447
+ var l = this.openSizedPopup("about:blank", o, s);
11448
+ return this.logoutPopupAsync(r, o, s, i, l, a);
11448
11449
  } catch (p) {
11449
11450
  return Promise.reject(p);
11450
11451
  }
11451
11452
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
11452
11453
  return T(this, void 0, void 0, function() {
11453
- var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, Ue, Ve, Ct = this;
11454
+ var a, s, l, p, u, f, _, k, E, N, Q, X, G, $, Ae, Ue, Ve, Ct = this;
11454
11455
  return I(this, function(ce) {
11455
11456
  switch (ce.label) {
11456
11457
  case 0:
@@ -11460,17 +11461,17 @@ var Wi = (
11460
11461
  case 2:
11461
11462
  return ce.trys.push([2, 8, , 9]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationCodeRequest, t.correlationId), [4, this.initializeAuthorizationCodeRequest(s)];
11462
11463
  case 3:
11463
- return u = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11464
+ return l = ce.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
11464
11465
  case 4:
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 }))];
11466
+ 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 }))];
11466
11467
  case 5:
11467
- return _ = ce.sent(), k = new or(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
11468
+ return _ = ce.sent(), k = new or(p, this.browserStorage, l, this.logger, this.performanceClient), E = {
11468
11469
  popup: i,
11469
11470
  popupName: r,
11470
11471
  popupWindowAttributes: o
11471
11472
  }, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
11472
11473
  case 6:
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) {
11474
+ if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, l), X.accountId) {
11474
11475
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
11475
11476
  success: !0,
11476
11477
  isNativeBroker: !0
@@ -11499,25 +11500,25 @@ var Wi = (
11499
11500
  });
11500
11501
  }, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
11501
11502
  return T(this, void 0, void 0, function() {
11502
- var u, p, d, f, _, k, E;
11503
+ var l, p, u, f, _, k, E;
11503
11504
  return I(this, function(N) {
11504
11505
  switch (N.label) {
11505
11506
  case 0:
11506
- this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11507
+ this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), l = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
11507
11508
  case 1:
11508
11509
  return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
11509
11510
  case 2:
11510
- return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
11511
+ return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(l, i)];
11511
11512
  case 3:
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)];
11513
+ 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)];
11513
11514
  case 4:
11514
11515
  return N.sent(), s ? (_ = {
11515
11516
  apiId: oe.logoutPopup,
11516
11517
  timeout: this.config.system.redirectNavigationTimeout,
11517
11518
  noHistory: !1
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];
11519
+ }, 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];
11519
11520
  case 5:
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;
11521
+ 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), l.cacheFailedRequest(E), E;
11521
11522
  case 6:
11522
11523
  return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
11523
11524
  2
@@ -11535,17 +11536,17 @@ var Wi = (
11535
11536
  return new Promise(function(o, i) {
11536
11537
  var a = r.config.system.windowHashTimeout / r.config.system.pollIntervalMilliseconds, s = 0;
11537
11538
  r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
11538
- var u = setInterval(function() {
11539
+ var l = setInterval(function() {
11539
11540
  if (t.closed) {
11540
- r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
11541
+ r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(l), i(M.createUserCancelledError());
11541
11542
  return;
11542
11543
  }
11543
- var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
11544
+ var p = g.EMPTY_STRING, u = g.EMPTY_STRING;
11544
11545
  try {
11545
- p = t.location.href, d = t.location.hash;
11546
+ p = t.location.href, u = t.location.hash;
11546
11547
  } catch {
11547
11548
  }
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())));
11549
+ 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(l), 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(l), i(M.createMonitorPopupTimeoutError())));
11549
11550
  }, r.config.system.pollIntervalMilliseconds);
11550
11551
  });
11551
11552
  }, e.prototype.waitForLogoutPopup = function(t) {
@@ -11572,8 +11573,8 @@ var Wi = (
11572
11573
  throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
11573
11574
  }
11574
11575
  }, e.prototype.openSizedPopup = function(t, r, o) {
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
+ var i, a, s, l, 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 = (l = o.popupPosition) === null || l === void 0 ? void 0 : l.left;
11577
+ 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");
11577
11578
  }, e.prototype.unloadWindow = function(t) {
11578
11579
  this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
11579
11580
  }, e.prototype.cleanPopup = function(t) {
@@ -11632,21 +11633,21 @@ function ea(n, e) {
11632
11633
  // 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
11633
11634
  cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
11634
11635
  claimsBasedCachingEnabled: !0
11635
- }, u = {
11636
+ }, l = {
11636
11637
  // eslint-disable-next-line @typescript-eslint/no-empty-function
11637
11638
  loggerCallback: function() {
11638
11639
  },
11639
11640
  logLevel: ve.Info,
11640
11641
  piiLoggingEnabled: !1
11641
11642
  }, p = B(B({}, no), {
11642
- loggerOptions: u,
11643
- networkClient: e ? de.getBrowserNetworkClient() : Di,
11643
+ loggerOptions: l,
11644
+ networkClient: e ? ue.getBrowserNetworkClient() : Di,
11644
11645
  navigationClient: new $i(),
11645
11646
  loadFrameTimeout: 0,
11646
11647
  // If loadFrameTimeout is provided, use that as default.
11647
11648
  windowHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Ji,
11648
11649
  iframeHashTimeout: (o == null ? void 0 : o.loadFrameTimeout) || Jn,
11649
- navigateFrameWait: e && de.detectIEOrEdge() ? 500 : 0,
11650
+ navigateFrameWait: e && ue.detectIEOrEdge() ? 500 : 0,
11650
11651
  redirectNavigationTimeout: Xi,
11651
11652
  asyncPopups: !1,
11652
11653
  allowRedirectInIframe: !1,
@@ -11657,7 +11658,7 @@ function ea(n, e) {
11657
11658
  useMsrCrypto: !1,
11658
11659
  entropy: void 0
11659
11660
  }
11660
- }), d = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), f = {
11661
+ }), u = B(B({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || l }), f = {
11661
11662
  application: {
11662
11663
  appName: g.EMPTY_STRING,
11663
11664
  appVersion: g.EMPTY_STRING
@@ -11665,7 +11666,7 @@ function ea(n, e) {
11665
11666
  }, _ = {
11666
11667
  auth: B(B({}, a), t),
11667
11668
  cache: B(B({}, s), r),
11668
- system: B(B({}, p), d),
11669
+ system: B(B({}, p), u),
11669
11670
  telemetry: B(B({}, f), i)
11670
11671
  };
11671
11672
  return _;
@@ -11676,8 +11677,8 @@ var uo = (
11676
11677
  function(n) {
11677
11678
  be(e, n);
11678
11679
  function e(t, r, o, i, a, s) {
11679
- var u = n.call(this, t, r, o, i, s) || this;
11680
- return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
11680
+ var l = n.call(this, t, r, o, i, s) || this;
11681
+ return l.navigateFrameWait = a.navigateFrameWait, l.pollIntervalMilliseconds = a.pollIntervalMilliseconds, l;
11681
11682
  }
11682
11683
  return e.prototype.initiateAuthRequest = function(t) {
11683
11684
  return T(this, void 0, void 0, function() {
@@ -11698,17 +11699,17 @@ var uo = (
11698
11699
  var o = this;
11699
11700
  return this.performanceClient.addQueueMeasurement(b.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId), new Promise(function(i, a) {
11700
11701
  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.");
11701
- var s = window.performance.now(), u = s + r, p = setInterval(function() {
11702
- if (window.performance.now() > u) {
11702
+ var s = window.performance.now(), l = s + r, p = setInterval(function() {
11703
+ if (window.performance.now() > l) {
11703
11704
  o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
11704
11705
  return;
11705
11706
  }
11706
- var d = g.EMPTY_STRING, f = t.contentWindow;
11707
+ var u = g.EMPTY_STRING, f = t.contentWindow;
11707
11708
  try {
11708
- d = f ? f.location.href : g.EMPTY_STRING;
11709
+ u = f ? f.location.href : g.EMPTY_STRING;
11709
11710
  } catch {
11710
11711
  }
11711
- if (!L.isEmpty(d)) {
11712
+ if (!L.isEmpty(u)) {
11712
11713
  var _ = f ? f.location.hash : g.EMPTY_STRING;
11713
11714
  if (W.hashContainsKnownProperties(_)) {
11714
11715
  o.removeHiddenIframe(t), clearInterval(p), i(_);
@@ -11745,15 +11746,15 @@ var ta = (
11745
11746
  /** @class */
11746
11747
  function(n) {
11747
11748
  be(e, n);
11748
- function e(t, r, o, i, a, s, u, p, d, f, _) {
11749
+ function e(t, r, o, i, a, s, l, p, u, f, _) {
11749
11750
  var k = n.call(this, t, r, o, i, a, s, p, f, _) || this;
11750
- return k.apiId = u, k.nativeStorage = d, k;
11751
+ return k.apiId = l, k.nativeStorage = u, k;
11751
11752
  }
11752
11753
  return e.prototype.acquireToken = function(t) {
11753
11754
  return T(this, void 0, void 0, function() {
11754
11755
  var r, o, i, a, s;
11755
- return I(this, function(u) {
11756
- switch (u.label) {
11756
+ return I(this, function(l) {
11757
+ switch (l.label) {
11757
11758
  case 0:
11758
11759
  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)
11759
11760
  throw r.endMeasurement({
@@ -11761,11 +11762,11 @@ var ta = (
11761
11762
  }), M.createSilentPromptValueError(t.prompt);
11762
11763
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
11763
11764
  case 1:
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;
11765
+ o = l.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
11765
11766
  case 2:
11766
- return u.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11767
+ return l.trys.push([2, 5, , 6]), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(i, o.authority, o.azureCloudOptions)];
11767
11768
  case 3:
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) {
11769
+ return a = l.sent(), this.logger.verbose("Auth code client created"), this.performanceClient.setPreQueueTime(b.SilentIframeClientTokenHelper, t.correlationId), [4, this.silentTokenHelper(a, o).then(function(p) {
11769
11770
  return r.endMeasurement({
11770
11771
  success: !0,
11771
11772
  fromCache: !1,
@@ -11773,9 +11774,9 @@ var ta = (
11773
11774
  }), p;
11774
11775
  })];
11775
11776
  case 4:
11776
- return [2, u.sent()];
11777
+ return [2, l.sent()];
11777
11778
  case 5:
11778
- throw s = u.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11779
+ throw s = l.sent(), s instanceof D && s.setCorrelationId(this.correlationId), i.cacheFailedRequest(s), this.browserStorage.cleanRequestByState(o.state), r.endMeasurement({
11779
11780
  errorCode: s instanceof D && s.errorCode || void 0,
11780
11781
  subErrorCode: s instanceof D && s.subError || void 0,
11781
11782
  success: !1
@@ -11792,7 +11793,7 @@ var ta = (
11792
11793
  return Promise.reject(M.createSilentLogoutUnsupportedError());
11793
11794
  }, e.prototype.silentTokenHelper = function(t, r) {
11794
11795
  return T(this, void 0, void 0, function() {
11795
- var o, i, a, s, u, p, d, f, _, k = this;
11796
+ var o, i, a, s, l, p, u, f, _, k = this;
11796
11797
  return I(this, function(E) {
11797
11798
  switch (E.label) {
11798
11799
  case 0:
@@ -11804,14 +11805,14 @@ var ta = (
11804
11805
  case 3:
11805
11806
  return s = E.sent(), this.performanceClient.setPreQueueTime(b.SilentHandlerMonitorIframeForHash, r.correlationId), [4, a.monitorIframeForHash(s, this.config.system.iframeHashTimeout)];
11806
11807
  case 4:
11807
- if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11808
+ if (l = E.sent(), p = W.getDeserializedHash(l), u = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
11808
11809
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
11809
11810
  throw M.createNativeConnectionNotEstablishedError();
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
+ 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() {
11812
+ k.browserStorage.cleanRequestByState(u);
11812
11813
  })];
11813
11814
  }
11814
- return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(u, d, t.authority, this.networkClient)];
11815
+ return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromHash, r.correlationId), [2, a.handleCodeResponseFromHash(l, u, t.authority, this.networkClient)];
11815
11816
  }
11816
11817
  });
11817
11818
  });
@@ -11828,7 +11829,7 @@ var na = (
11828
11829
  }
11829
11830
  return e.prototype.acquireToken = function(t) {
11830
11831
  return T(this, void 0, void 0, function() {
11831
- var r, o, i, a, s, u = this;
11832
+ var r, o, i, a, s, l = this;
11832
11833
  return I(this, function(p) {
11833
11834
  switch (p.label) {
11834
11835
  case 0:
@@ -11836,18 +11837,18 @@ var na = (
11836
11837
  case 1:
11837
11838
  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)];
11838
11839
  case 2:
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) {
11840
+ 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) {
11840
11841
  return i.endMeasurement({
11841
11842
  success: !0,
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,
11843
+ fromCache: u.fromCache,
11844
+ requestId: u.requestId
11845
+ }), u;
11846
+ }).catch(function(u) {
11847
+ throw u instanceof D && u.setCorrelationId(l.correlationId), a.cacheFailedRequest(u), i.endMeasurement({
11848
+ errorCode: u.errorCode,
11849
+ subErrorCode: u.subError,
11849
11850
  success: !1
11850
- }), d;
11851
+ }), u;
11851
11852
  })];
11852
11853
  }
11853
11854
  });
@@ -11898,8 +11899,8 @@ var ra = (
11898
11899
  error: o || null,
11899
11900
  timestamp: Date.now()
11900
11901
  };
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
+ this.logger.info("Emitting event: " + e), this.eventCallbacks.forEach(function(s, l) {
11903
+ i.logger.verbose("Emitting event to callback " + l + ": " + e), s.apply(null, [a]);
11903
11904
  });
11904
11905
  }
11905
11906
  }, n.prototype.handleAccountCacheChange = function(e) {
@@ -11962,8 +11963,8 @@ var ct = (
11962
11963
  return n.stringToUtf8Arr = function(e) {
11963
11964
  for (var t, r = 0, o = e.length, i = 0; i < o; i++)
11964
11965
  t = e.charCodeAt(i), r += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : t < 2097152 ? 4 : t < 67108864 ? 5 : 6;
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
+ for (var a = new Uint8Array(r), s = 0, l = 0; s < r; l++)
11967
+ t = e.charCodeAt(l), 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));
11967
11968
  return a;
11968
11969
  }, n.stringToArrayBuffer = function(e) {
11969
11970
  for (var t = new ArrayBuffer(e.length), r = new Uint8Array(t), o = 0; o < e.length; o++)
@@ -12043,10 +12044,10 @@ var oa = (
12043
12044
  var r = this.base64DecToArr(t);
12044
12045
  return ct.utf8ArrToString(r);
12045
12046
  }, n.prototype.base64DecToArr = function(e, t) {
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;
12047
+ 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, l = void 0, p = 0, u = 0, f = 0; f < o; f++)
12048
+ if (l = f & 3, p |= this.b64ToUint6(r.charCodeAt(f)) << 18 - 6 * l, l === 3 || o - f === 1) {
12049
+ for (s = 0; s < 3 && u < i; s++, u++)
12050
+ a[u] = p >>> (16 >>> s & 24) & 255;
12050
12051
  p = 0;
12051
12052
  }
12052
12053
  return a;
@@ -12205,10 +12206,10 @@ var la = (
12205
12206
  return I(this, function(o) {
12206
12207
  return [2, new Promise(function(i, a) {
12207
12208
  var s = window.msCrypto.subtle.generateKey(e, t, r);
12208
- s.addEventListener("complete", function(u) {
12209
- i(u.target.result);
12210
- }), s.addEventListener("error", function(u) {
12211
- a(u);
12209
+ s.addEventListener("complete", function(l) {
12210
+ i(l.target.result);
12211
+ }), s.addEventListener("error", function(l) {
12212
+ a(l);
12212
12213
  });
12213
12214
  })];
12214
12215
  });
@@ -12219,9 +12220,9 @@ var la = (
12219
12220
  return [2, new Promise(function(r, o) {
12220
12221
  var i = window.msCrypto.subtle.exportKey(Bt, e);
12221
12222
  i.addEventListener("complete", function(a) {
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);
12223
+ var s = a.target.result, l = 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);
12223
12224
  try {
12224
- r(JSON.parse(u));
12225
+ r(JSON.parse(l));
12225
12226
  } catch (p) {
12226
12227
  o(p);
12227
12228
  }
@@ -12235,11 +12236,11 @@ var la = (
12235
12236
  return T(this, void 0, void 0, function() {
12236
12237
  var i, a;
12237
12238
  return I(this, function(s) {
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) {
12239
+ return i = ct.getSortedObjectString(e), a = ct.stringToArrayBuffer(i), [2, new Promise(function(l, p) {
12240
+ var u = window.msCrypto.subtle.importKey(Bt, a, t, r, o);
12241
+ u.addEventListener("complete", function(f) {
12242
+ l(f.target.result);
12243
+ }), u.addEventListener("error", function(f) {
12243
12244
  p(f);
12244
12245
  });
12245
12246
  })];
@@ -12250,10 +12251,10 @@ var la = (
12250
12251
  return I(this, function(o) {
12251
12252
  return [2, new Promise(function(i, a) {
12252
12253
  var s = window.msCrypto.subtle.sign(e, t, r);
12253
- s.addEventListener("complete", function(u) {
12254
- i(u.target.result);
12255
- }), s.addEventListener("error", function(u) {
12256
- a(u);
12254
+ s.addEventListener("complete", function(l) {
12255
+ i(l.target.result);
12256
+ }), s.addEventListener("error", function(l) {
12257
+ a(l);
12257
12258
  });
12258
12259
  })];
12259
12260
  });
@@ -12275,7 +12276,7 @@ var la = (
12275
12276
  }()
12276
12277
  );
12277
12278
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12278
- var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12279
+ var da = "RSASSA-PKCS1-v1_5", xr = "SHA-256", ua = 2048, pa = new Uint8Array([1, 0, 1]), mo = (
12279
12280
  /** @class */
12280
12281
  function() {
12281
12282
  function n(e, t) {
@@ -12294,9 +12295,9 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
12294
12295
  this.logger.verbose("BrowserCrypto: Entropy provided"), this.subtleCrypto.initPrng(this.cryptoOptions.entropy);
12295
12296
  }
12296
12297
  this.keygenAlgorithmOptions = {
12297
- name: ua,
12298
+ name: da,
12298
12299
  hash: xr,
12299
- modulusLength: da,
12300
+ modulusLength: ua,
12300
12301
  publicExponent: pa
12301
12302
  };
12302
12303
  }
@@ -12397,11 +12398,11 @@ var ha = (
12397
12398
  return r.sent(), [2, new Promise(function(o, i) {
12398
12399
  if (!t.db)
12399
12400
  return i(M.createDatabaseNotOpenError());
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) {
12401
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.get(e);
12402
+ l.addEventListener("success", function(p) {
12403
+ var u = p;
12404
+ t.closeConnection(), o(u.target.result);
12405
+ }), l.addEventListener("error", function(p) {
12405
12406
  t.closeConnection(), i(p);
12406
12407
  });
12407
12408
  })];
@@ -12419,11 +12420,11 @@ var ha = (
12419
12420
  return o.sent(), [2, new Promise(function(i, a) {
12420
12421
  if (!r.db)
12421
12422
  return a(M.createDatabaseNotOpenError());
12422
- var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
12423
+ var s = r.db.transaction([r.tableName], "readwrite"), l = s.objectStore(r.tableName), p = l.put(t, e);
12423
12424
  p.addEventListener("success", function() {
12424
12425
  r.closeConnection(), i();
12425
- }), p.addEventListener("error", function(d) {
12426
- r.closeConnection(), a(d);
12426
+ }), p.addEventListener("error", function(u) {
12427
+ r.closeConnection(), a(u);
12427
12428
  });
12428
12429
  })];
12429
12430
  }
@@ -12440,10 +12441,10 @@ var ha = (
12440
12441
  return r.sent(), [2, new Promise(function(o, i) {
12441
12442
  if (!t.db)
12442
12443
  return i(M.createDatabaseNotOpenError());
12443
- var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
12444
- u.addEventListener("success", function() {
12444
+ var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), l = s.delete(e);
12445
+ l.addEventListener("success", function() {
12445
12446
  t.closeConnection(), o();
12446
- }), u.addEventListener("error", function(p) {
12447
+ }), l.addEventListener("error", function(p) {
12447
12448
  t.closeConnection(), i(p);
12448
12449
  });
12449
12450
  })];
@@ -12462,11 +12463,11 @@ var ha = (
12462
12463
  if (!e.db)
12463
12464
  return o(M.createDatabaseNotOpenError());
12464
12465
  var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
12465
- s.addEventListener("success", function(u) {
12466
- var p = u;
12466
+ s.addEventListener("success", function(l) {
12467
+ var p = l;
12467
12468
  e.closeConnection(), r(p.target.result);
12468
- }), s.addEventListener("error", function(u) {
12469
- e.closeConnection(), o(u);
12469
+ }), s.addEventListener("error", function(l) {
12470
+ e.closeConnection(), o(l);
12470
12471
  });
12471
12472
  })];
12472
12473
  }
@@ -12483,11 +12484,11 @@ var ha = (
12483
12484
  return r.sent(), [2, new Promise(function(o, i) {
12484
12485
  if (!t.db)
12485
12486
  return i(M.createDatabaseNotOpenError());
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) {
12487
+ var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), l = s.count(e);
12488
+ l.addEventListener("success", function(p) {
12489
+ var u = p;
12490
+ t.closeConnection(), o(u.target.result === 1);
12491
+ }), l.addEventListener("error", function(p) {
12491
12492
  t.closeConnection(), i(p);
12492
12493
  });
12493
12494
  })];
@@ -12707,7 +12708,7 @@ var fa = (
12707
12708
  }, n.prototype.getPublicKeyThumbprint = function(e) {
12708
12709
  var t;
12709
12710
  return T(this, void 0, void 0, function() {
12710
- var r, o, i, a, s, u, p, d;
12711
+ var r, o, i, a, s, l, p, u;
12711
12712
  return I(this, function(f) {
12712
12713
  switch (f.label) {
12713
12714
  case 0:
@@ -12721,12 +12722,12 @@ var fa = (
12721
12722
  n: i.n
12722
12723
  }, s = ct.getSortedObjectString(a), [4, this.hashString(s)];
12723
12724
  case 3:
12724
- return u = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12725
+ return l = f.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
12725
12726
  case 4:
12726
12727
  return p = f.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
12727
12728
  case 5:
12728
- return d = f.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
12729
- privateKey: d,
12729
+ return u = f.sent(), [4, this.cache.asymmetricKeys.setItem(l, {
12730
+ privateKey: u,
12730
12731
  publicKey: o.publicKey,
12731
12732
  requestMethod: e.resourceRequestMethod,
12732
12733
  requestUri: e.resourceRequestUri
@@ -12734,7 +12735,7 @@ var fa = (
12734
12735
  case 6:
12735
12736
  return f.sent(), r && r.endMeasurement({
12736
12737
  success: !0
12737
- }), [2, u];
12738
+ }), [2, l];
12738
12739
  }
12739
12740
  });
12740
12741
  });
@@ -12766,7 +12767,7 @@ var fa = (
12766
12767
  }, n.prototype.signJwt = function(e, t, r) {
12767
12768
  var o;
12768
12769
  return T(this, void 0, void 0, function() {
12769
- var i, a, s, u, p, d, f, _, k, E, N, Q, X;
12770
+ var i, a, s, l, p, u, f, _, k, E, N, Q, X;
12770
12771
  return I(this, function(G) {
12771
12772
  switch (G.label) {
12772
12773
  case 0:
@@ -12776,8 +12777,8 @@ var fa = (
12776
12777
  throw M.createSigningKeyNotFoundInStorageError(t);
12777
12778
  return [4, this.browserCrypto.exportJwk(a.publicKey)];
12778
12779
  case 2:
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
+ return s = G.sent(), l = 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 = {
12781
+ jwk: JSON.parse(l)
12781
12782
  }, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
12782
12783
  case 3:
12783
12784
  return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
@@ -12856,9 +12857,9 @@ var ga = (
12856
12857
  /** @class */
12857
12858
  function(n) {
12858
12859
  be(e, n);
12859
- function e(t, r, o, i, a, s, u) {
12860
+ function e(t, r, o, i, a, s, l) {
12860
12861
  var p = n.call(this, t, r, o, i, a, s) || this;
12861
- return p.browserCrypto = new mo(p.logger, u), p.guidGenerator = new po(p.browserCrypto), p;
12862
+ return p.browserCrypto = new mo(p.logger, l), p.guidGenerator = new po(p.browserCrypto), p;
12862
12863
  }
12863
12864
  return e.prototype.startPerformanceMeasuremeant = function(t, r) {
12864
12865
  return new Dr(t, r);
@@ -12877,8 +12878,8 @@ var ga = (
12877
12878
  }, e.prototype.startMeasurement = function(t, r) {
12878
12879
  var o = this, i = this.getPageVisibility(), a = n.prototype.startMeasurement.call(this, t, r);
12879
12880
  return B(B({}, a), { endMeasurement: function(s) {
12880
- var u = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12881
- return o.deleteIncompleteSubMeasurements(a), u;
12881
+ var l = a.endMeasurement(B({ startPageVisibility: i, endPageVisibility: o.getPageVisibility() }, s));
12882
+ return o.deleteIncompleteSubMeasurements(a), l;
12882
12883
  }, discardMeasurement: function() {
12883
12884
  a.discardMeasurement(), o.deleteIncompleteSubMeasurements(a), a.measurement.flushMeasurement();
12884
12885
  } });
@@ -12904,8 +12905,8 @@ var ga = (
12904
12905
  }
12905
12906
  var a = n.prototype.getPreQueueTime.call(this, t, r);
12906
12907
  if (a) {
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
+ var s = window.performance.now(), l = o || n.prototype.calculateQueuedTime.call(this, a, s);
12909
+ return n.prototype.addQueueMeasurement.call(this, t, r, l, i);
12909
12910
  }
12910
12911
  }, e;
12911
12912
  }(ao)
@@ -12925,14 +12926,14 @@ var _a = (
12925
12926
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
12926
12927
  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));
12927
12928
  } else if (e.authority) {
12928
- var u = on.generateAuthority(e.authority, e.azureCloudOptions), p = {
12929
+ var l = on.generateAuthority(e.authority, e.azureCloudOptions), p = {
12929
12930
  protocolMode: this.config.auth.protocolMode,
12930
12931
  knownAuthorities: this.config.auth.knownAuthorities,
12931
12932
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
12932
12933
  authorityMetadata: this.config.auth.authorityMetadata,
12933
12934
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
12934
12935
  };
12935
- if (a = new on(u, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12936
+ if (a = new on(l, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
12936
12937
  this.logger.trace("TokenCache - homeAccountId from options");
12937
12938
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
12938
12939
  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));
@@ -12965,9 +12966,9 @@ var _a = (
12965
12966
  throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
12966
12967
  if (!a.extendedExpiresOn)
12967
12968
  throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
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);
12969
+ var s = new Ee(e.scopes).printScopes(), l = 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, l, p, this.cryptoObj);
12969
12970
  if (this.isBrowserEnvironment)
12970
- return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
12971
+ return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(u), u;
12971
12972
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12972
12973
  }, n.prototype.loadRefreshToken = function(e, t, r, o) {
12973
12974
  if (!t.refresh_token)
@@ -12977,8 +12978,8 @@ var _a = (
12977
12978
  return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
12978
12979
  throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
12979
12980
  }, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
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
+ var i, a, s, l = g.EMPTY_STRING, p = [], u = null, f;
12982
+ r != null && r.accessToken && (l = 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));
12982
12983
  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;
12983
12984
  return {
12984
12985
  authority: o ? o.canonicalAuthority : g.EMPTY_STRING,
@@ -12988,9 +12989,9 @@ var _a = (
12988
12989
  account: r != null && r.account ? r.account.getAccountInfo() : null,
12989
12990
  idToken: t ? t.rawToken : g.EMPTY_STRING,
12990
12991
  idTokenClaims: t ? t.claims : {},
12991
- accessToken: u,
12992
+ accessToken: l,
12992
12993
  fromCache: !0,
12993
- expiresOn: d,
12994
+ expiresOn: u,
12994
12995
  correlationId: e.correlationId || g.EMPTY_STRING,
12995
12996
  requestId: g.EMPTY_STRING,
12996
12997
  extExpiresOn: f,
@@ -13022,32 +13023,32 @@ var ya = (
13022
13023
  /** @class */
13023
13024
  function(n) {
13024
13025
  be(e, n);
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, _;
13026
+ function e(t, r, o, i, a, s, l, p, u, f) {
13027
+ var _ = n.call(this, t, r, o, i, a, s, p, u, f) || this;
13028
+ return _.apiId = l, _;
13028
13029
  }
13029
13030
  return e.prototype.acquireToken = function(t) {
13030
13031
  return T(this, void 0, void 0, function() {
13031
- var r, o, i, a, s, u, p;
13032
- return I(this, function(d) {
13033
- switch (d.label) {
13032
+ var r, o, i, a, s, l, p;
13033
+ return I(this, function(u) {
13034
+ switch (u.label) {
13034
13035
  case 0:
13035
13036
  if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
13036
13037
  throw M.createAuthCodeRequiredError();
13037
13038
  return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
13038
13039
  case 1:
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;
13040
+ 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;
13040
13041
  case 2:
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)];
13042
+ 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)];
13042
13043
  case 3:
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({
13044
+ return a = u.sent(), s = new va(a), this.logger.verbose("Auth code client created"), l = new uo(s, this.browserStorage, i, this.logger, this.config.system, this.performanceClient), [2, l.handleCodeResponseFromServer({
13044
13045
  code: t.code,
13045
13046
  msgraph_host: t.msGraphHost,
13046
13047
  cloud_graph_host_name: t.cloudGraphHostName,
13047
13048
  cloud_instance_host_name: t.cloudInstanceHostName
13048
13049
  }, r.state, s.authority, this.networkClient, !1)];
13049
13050
  case 4:
13050
- throw p = d.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13051
+ throw p = u.sent(), p instanceof D && p.setCorrelationId(this.correlationId), o.cacheFailedRequest(p), this.browserStorage.cleanRequestByState(r.state), p;
13051
13052
  case 5:
13052
13053
  return [
13053
13054
  2
@@ -13111,32 +13112,32 @@ var ka = (
13111
13112
  });
13112
13113
  }, n.prototype.handleRedirectPromise = function(e) {
13113
13114
  return T(this, void 0, void 0, function() {
13114
- var t, r, o, i, a, s, u, p, d = this;
13115
+ var t, r, o, i, a, s, l, p, u = this;
13115
13116
  return I(this, function(f) {
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(_) {
13117
+ 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"), l = this.browserStorage.getTemporaryCache(J.CORRELATION_ID, !0) || g.EMPTY_STRING, p = this.createRedirectClient(l), a = p.handleRedirectPromise(e)), o = a.then(function(_) {
13117
13118
  if (_) {
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
+ var k = t.length < u.getAllAccounts().length;
13120
+ 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"));
13120
13121
  }
13121
- return d.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13122
+ return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END, x.Redirect), _;
13122
13123
  }).catch(function(_) {
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), _;
13124
+ 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), _;
13124
13125
  }), 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]);
13125
13126
  });
13126
13127
  });
13127
13128
  }, n.prototype.acquireTokenRedirect = function(e) {
13128
13129
  return T(this, void 0, void 0, function() {
13129
13130
  var t, r, o, i, a, s = this;
13130
- return I(this, function(u) {
13131
+ return I(this, function(l) {
13131
13132
  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) {
13132
13133
  if (p instanceof tt && p.isFatal()) {
13133
13134
  s.nativeExtensionProvider = void 0;
13134
- var d = s.createRedirectClient(e.correlationId);
13135
- return d.acquireToken(e);
13135
+ var u = s.createRedirectClient(e.correlationId);
13136
+ return u.acquireToken(e);
13136
13137
  } else if (p instanceof Ye) {
13137
13138
  s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
13138
- var d = s.createRedirectClient(e.correlationId);
13139
- return d.acquireToken(e);
13139
+ var u = s.createRedirectClient(e.correlationId);
13140
+ return u.acquireToken(e);
13140
13141
  }
13141
13142
  throw s.browserStorage.setInteractionInProgress(!1), p;
13142
13143
  })) : (a = this.createRedirectClient(e.correlationId), o = a.acquireToken(e)), [2, o.catch(function(p) {
@@ -13148,50 +13149,50 @@ var ka = (
13148
13149
  var t = this, r = this.getRequestCorrelationId(e), o = this.performanceClient.startMeasurement(b.AcquireTokenPopup, r);
13149
13150
  try {
13150
13151
  this.logger.verbose("acquireTokenPopup called", r), this.preflightBrowserEnvironmentCheck(x.Popup);
13151
- } catch (u) {
13152
- return Promise.reject(u);
13152
+ } catch (l) {
13153
+ return Promise.reject(l);
13153
13154
  }
13154
13155
  var i = this.getAllAccounts();
13155
13156
  i.length > 0 ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Popup, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Popup, e);
13156
13157
  var a;
13157
13158
  if (this.canUseNative(e))
13158
- a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(u) {
13159
+ a = this.acquireTokenNative(e, oe.acquireTokenPopup).then(function(l) {
13159
13160
  return t.browserStorage.setInteractionInProgress(!1), o.endMeasurement({
13160
13161
  success: !0,
13161
13162
  isNativeBroker: !0,
13162
- requestId: u.requestId
13163
- }), u;
13164
- }).catch(function(u) {
13165
- if (u instanceof tt && u.isFatal()) {
13163
+ requestId: l.requestId
13164
+ }), l;
13165
+ }).catch(function(l) {
13166
+ if (l instanceof tt && l.isFatal()) {
13166
13167
  t.nativeExtensionProvider = void 0;
13167
13168
  var p = t.createPopupClient(e.correlationId);
13168
13169
  return p.acquireToken(e);
13169
- } else if (u instanceof Ye) {
13170
+ } else if (l instanceof Ye) {
13170
13171
  t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
13171
13172
  var p = t.createPopupClient(e.correlationId);
13172
13173
  return p.acquireToken(e);
13173
13174
  }
13174
- throw t.browserStorage.setInteractionInProgress(!1), u;
13175
+ throw t.browserStorage.setInteractionInProgress(!1), l;
13175
13176
  });
13176
13177
  else {
13177
13178
  var s = this.createPopupClient(e.correlationId);
13178
13179
  a = s.acquireToken(e);
13179
13180
  }
13180
- return a.then(function(u) {
13181
+ return a.then(function(l) {
13181
13182
  var p = i.length < t.getAllAccounts().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
13183
+ return p ? t.eventHandler.emitEvent(q.LOGIN_SUCCESS, x.Popup, l) : t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Popup, l), o.addStaticFields({
13184
+ accessTokenSize: l.accessToken.length,
13185
+ idTokenSize: l.idToken.length
13185
13186
  }), o.endMeasurement({
13186
13187
  success: !0,
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,
13188
+ requestId: l.requestId
13189
+ }), l;
13190
+ }).catch(function(l) {
13191
+ return i.length > 0 ? t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Popup, null, l) : t.eventHandler.emitEvent(q.LOGIN_FAILURE, x.Popup, null, l), o.endMeasurement({
13192
+ errorCode: l.errorCode,
13193
+ subErrorCode: l.subError,
13193
13194
  success: !1
13194
- }), Promise.reject(u);
13195
+ }), Promise.reject(l);
13195
13196
  });
13196
13197
  }, n.prototype.trackPageVisibilityWithMeasurement = function() {
13197
13198
  var e = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;
@@ -13202,7 +13203,7 @@ var ka = (
13202
13203
  var t;
13203
13204
  return T(this, void 0, void 0, function() {
13204
13205
  var r, o, i, a, s = this;
13205
- return I(this, function(u) {
13206
+ return I(this, function(l) {
13206
13207
  return r = this.getRequestCorrelationId(e), o = B(B({}, e), {
13207
13208
  // will be PromptValue.NONE or PromptValue.NO_SESSION
13208
13209
  prompt: e.prompt,
@@ -13212,13 +13213,13 @@ var ka = (
13212
13213
  }), 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) {
13213
13214
  if (p instanceof tt && p.isFatal()) {
13214
13215
  s.nativeExtensionProvider = void 0;
13215
- var d = s.createSilentIframeClient(o.correlationId);
13216
- return d.acquireToken(o);
13216
+ var u = s.createSilentIframeClient(o.correlationId);
13217
+ return u.acquireToken(o);
13217
13218
  }
13218
13219
  throw p;
13219
13220
  }) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
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
+ var u, f;
13222
+ return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS, x.Silent, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.addStaticFields({
13222
13223
  accessTokenSize: p.accessToken.length,
13223
13224
  idTokenSize: p.idToken.length
13224
13225
  }), (f = s.ssoSilentMeasurement) === null || f === void 0 || f.endMeasurement({
@@ -13227,8 +13228,8 @@ var ka = (
13227
13228
  requestId: p.requestId
13228
13229
  }), p;
13229
13230
  }).catch(function(p) {
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
+ var u;
13232
+ throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE, x.Silent, null, p), (u = s.ssoSilentMeasurement) === null || u === void 0 || u.endMeasurement({
13232
13233
  errorCode: p.errorCode,
13233
13234
  subErrorCode: p.subError,
13234
13235
  success: !1
@@ -13247,36 +13248,36 @@ var ka = (
13247
13248
  if (e.code && e.nativeAccountId)
13248
13249
  throw M.createSpaCodeAndNativeAccountIdPresentError();
13249
13250
  if (e.code)
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
13251
+ 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(l) {
13252
+ return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, l), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
13253
+ accessTokenSize: l.accessToken.length,
13254
+ idTokenSize: l.idToken.length
13254
13255
  }), r.endMeasurement({
13255
13256
  success: !0,
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,
13257
+ isNativeBroker: l.fromNativeBroker,
13258
+ requestId: l.requestId
13259
+ }), l;
13260
+ }).catch(function(l) {
13261
+ throw a.hybridAuthCodeResponses.delete(o), a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, l), r.endMeasurement({
13262
+ errorCode: l.errorCode,
13263
+ subErrorCode: l.subError,
13263
13264
  success: !1
13264
- }), u;
13265
+ }), l;
13265
13266
  }), this.hybridAuthCodeResponses.set(o, i)), [2, i];
13266
13267
  if (e.nativeAccountId) {
13267
13268
  if (this.canUseNative(e, e.nativeAccountId))
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
+ return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(l) {
13270
+ throw l instanceof tt && l.isFatal() && (a.nativeExtensionProvider = void 0), l;
13270
13271
  })];
13271
13272
  throw M.createUnableToAcquireTokenFromNativePlatformError();
13272
13273
  } else
13273
13274
  throw M.createAuthCodeOrNativeAccountIdRequiredError();
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,
13275
+ } catch (l) {
13276
+ throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, l), r.endMeasurement({
13277
+ errorCode: l instanceof D && l.errorCode || void 0,
13278
+ subErrorCode: l instanceof D && l.subError || void 0,
13278
13279
  success: !1
13279
- }), u;
13280
+ }), l;
13280
13281
  }
13281
13282
  return [
13282
13283
  2
@@ -13294,16 +13295,16 @@ var ka = (
13294
13295
  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({
13295
13296
  visibilityChangeCount: 0
13296
13297
  }), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), r = this.createSilentAuthCodeClient(e.correlationId), [4, r.acquireToken(e).then(function(s) {
13297
- var u;
13298
- return (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13298
+ var l;
13299
+ return (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
13299
13300
  success: !0,
13300
13301
  fromCache: s.fromCache,
13301
13302
  isNativeBroker: s.fromNativeBroker,
13302
13303
  requestId: s.requestId
13303
13304
  }), s;
13304
13305
  }).catch(function(s) {
13305
- var u;
13306
- throw (u = i.acquireTokenByCodeAsyncMeasurement) === null || u === void 0 || u.endMeasurement({
13306
+ var l;
13307
+ throw (l = i.acquireTokenByCodeAsyncMeasurement) === null || l === void 0 || l.endMeasurement({
13307
13308
  errorCode: s.errorCode,
13308
13309
  subErrorCode: s.subError,
13309
13310
  success: !1
@@ -13404,11 +13405,11 @@ var ka = (
13404
13405
  }, n.prototype.getActiveAccount = function() {
13405
13406
  return this.browserStorage.getActiveAccount();
13406
13407
  }, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
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)
13408
+ 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)
13408
13409
  throw En.createInMemoryRedirectUnavailableError();
13409
13410
  (e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
13410
13411
  }, n.prototype.preflightInteractiveRequest = function(e) {
13411
- this.logger.verbose("preflightInteractiveRequest called, validating app environment"), de.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13412
+ this.logger.verbose("preflightInteractiveRequest called, validating app environment"), ue.blockReloadInHiddenIframes(), e && this.browserStorage.setInteractionInProgress(!0);
13412
13413
  }, n.prototype.acquireTokenNative = function(e, t, r) {
13413
13414
  return T(this, void 0, void 0, function() {
13414
13415
  var o;
@@ -13497,7 +13498,7 @@ var wa = (
13497
13498
  return this.logger.verbose("loginPopup called", r), this.acquireTokenPopup(B({ correlationId: r }, t || Lr));
13498
13499
  }, e.prototype.acquireTokenSilent = function(t) {
13499
13500
  return T(this, void 0, void 0, function() {
13500
- var r, o, i, a, s, u, p, d = this;
13501
+ var r, o, i, a, s, l, p, u = this;
13501
13502
  return I(this, function(f) {
13502
13503
  if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
13503
13504
  cacheLookupPolicy: t.cacheLookupPolicy
@@ -13514,8 +13515,8 @@ var wa = (
13514
13515
  resourceRequestUri: t.resourceRequestUri,
13515
13516
  shrClaims: t.shrClaims,
13516
13517
  sshKid: t.sshKid
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
+ }, s = JSON.stringify(a), l = this.activeSilentTokenRequests.get(s), typeof l > "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(_) {
13519
+ return u.activeSilentTokenRequests.delete(s), o.addStaticFields({
13519
13520
  accessTokenSize: _.accessToken.length,
13520
13521
  idTokenSize: _.idToken.length
13521
13522
  }), o.endMeasurement({
@@ -13526,12 +13527,12 @@ var wa = (
13526
13527
  requestId: _.requestId
13527
13528
  }), _;
13528
13529
  }).catch(function(_) {
13529
- throw d.activeSilentTokenRequests.delete(s), o.endMeasurement({
13530
+ throw u.activeSilentTokenRequests.delete(s), o.endMeasurement({
13530
13531
  errorCode: _.errorCode,
13531
13532
  subErrorCode: _.subError,
13532
13533
  success: !1
13533
13534
  }), _;
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]);
13535
+ }), 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, l]);
13535
13536
  });
13536
13537
  });
13537
13538
  }, e.prototype.trackPageVisibility = function() {
@@ -13541,14 +13542,14 @@ var wa = (
13541
13542
  }, e.prototype.acquireTokenSilentAsync = function(t, r) {
13542
13543
  var o;
13543
13544
  return T(this, void 0, void 0, function() {
13544
- var i, a, s, u, p, d = this;
13545
+ var i, a, s, l, p, u = this;
13545
13546
  return I(this, function(f) {
13546
13547
  switch (f.label) {
13547
13548
  case 0:
13548
13549
  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({
13549
13550
  visibilityChangeCount: 0
13550
13551
  }), 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(_) {
13551
- return T(d, void 0, void 0, function() {
13552
+ return T(u, void 0, void 0, function() {
13552
13553
  var k;
13553
13554
  return I(this, function(E) {
13554
13555
  if (_ instanceof tt && _.isFatal())
@@ -13560,23 +13561,23 @@ var wa = (
13560
13561
  case 1:
13561
13562
  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)];
13562
13563
  case 2:
13563
- u = f.sent(), p = B(B({}, t), {
13564
+ l = f.sent(), p = B(B({}, t), {
13564
13565
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
13565
13566
  cacheLookupPolicy: t.cacheLookupPolicy || Le.Default
13566
- }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(_) {
13567
+ }), this.performanceClient.setPreQueueTime(b.AcquireTokenFromCache, l.correlationId), i = this.acquireTokenFromCache(s, l, p).catch(function(_) {
13567
13568
  if (p.cacheLookupPolicy === Le.AccessToken)
13568
13569
  throw _;
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) {
13570
+ return ue.blockReloadInHiddenIframes(), u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, l), u.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, l.correlationId), u.acquireTokenByRefreshToken(l, p).catch(function(k) {
13570
13571
  var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Nt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
13571
13572
  if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
13572
13573
  throw k;
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);
13574
+ 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, l.correlationId), u.acquireTokenBySilentIframe(l);
13574
13575
  });
13575
13576
  }), f.label = 3;
13576
13577
  case 3:
13577
13578
  return [2, i.then(function(_) {
13578
13579
  var k;
13579
- return d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13580
+ return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS, x.Silent, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13580
13581
  success: !0,
13581
13582
  fromCache: _.fromCache,
13582
13583
  isNativeBroker: _.fromNativeBroker,
@@ -13584,13 +13585,13 @@ var wa = (
13584
13585
  }), _;
13585
13586
  }).catch(function(_) {
13586
13587
  var k;
13587
- throw d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = d.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13588
+ throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE, x.Silent, null, _), (k = u.astsAsyncMeasurement) === null || k === void 0 || k.endMeasurement({
13588
13589
  errorCode: _.errorCode,
13589
13590
  subErrorCode: _.subError,
13590
13591
  success: !1
13591
13592
  }), _;
13592
13593
  }).finally(function() {
13593
- document.removeEventListener("visibilitychange", d.trackPageVisibility);
13594
+ document.removeEventListener("visibilitychange", u.trackPageVisibility);
13594
13595
  })];
13595
13596
  }
13596
13597
  });
@@ -13683,18 +13684,18 @@ const An = {
13683
13684
  if (t)
13684
13685
  return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
13685
13686
  if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
13686
- const [s, u] = await Z(
13687
+ const [s, l] = await Z(
13687
13688
  Ne.microsoftSDK(r, this.$storage)
13688
13689
  );
13689
13690
  if (s)
13690
13691
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13691
- if (u.data.success) {
13692
+ if (l.data.success) {
13692
13693
  if (this.display === "popup")
13693
13694
  return (a = window.parent) == null ? void 0 : a.postMessage(
13694
- { code: u.data.auth_code, state: this.$route.query.state },
13695
+ { code: l.data.auth_code, state: this.$route.query.state },
13695
13696
  "*"
13696
13697
  );
13697
- await this.loginSetup(u), await this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
13698
+ await this.loginSetup(l), await this.getLoggedInAccounts(), this.loginSuccess({ ...l, isModal: this.isModal }), setTimeout(() => {
13698
13699
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
13699
13700
  }, 1e3);
13700
13701
  } else
@@ -13721,7 +13722,7 @@ const An = {
13721
13722
  },
13722
13723
  compareLangKeys() {
13723
13724
  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);
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();
13725
+ console.log("In en but not in de", n.filter((l) => !e.includes(l))), console.log("In de but not in en", e.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in es", n.filter((l) => !t.includes(l))), console.log("In es but not in en", t.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in kr", n.filter((l) => !r.includes(l))), console.log("In kr but not in en", r.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in it", n.filter((l) => !o.includes(l))), console.log("In it but not in en", o.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in fr", n.filter((l) => !i.includes(l))), console.log("In fr but not in en", i.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in sr", n.filter((l) => !a.includes(l))), console.log("In sr but not in en", a.filter((l) => !n.includes(l))), console.log(), console.log("In en but not in tr", n.filter((l) => !s.includes(l))), console.log("In tr but not in en", s.filter((l) => !n.includes(l))), console.log();
13725
13726
  },
13726
13727
  base64ImageToBlob(n) {
13727
13728
  const e = n.split(";base64,"), t = e[0].split(":")[1], r = window.atob(e[1]), o = new Uint8Array(r.length);
@@ -13755,8 +13756,8 @@ const An = {
13755
13756
  cropCardScan(n, e) {
13756
13757
  const t = new window.Image(), r = document.createElement("canvas"), o = r.getContext("2d");
13757
13758
  t.src = "data:image/jpeg;base64," + n, t.onload = () => {
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
+ const i = t.width, a = t.width / 1.65, s = 0, l = t.height / 2 - a / 2, p = i, u = a;
13760
+ r.width = p, r.height = u, o.drawImage(t, s, l, i, a, 0, 0, p, u);
13760
13761
  const f = r.toDataURL();
13761
13762
  return e(f), f;
13762
13763
  };
@@ -13782,7 +13783,7 @@ const An = {
13782
13783
  },
13783
13784
  async decryptAES(n, e, t) {
13784
13785
  try {
13785
- const r = (u) => Uint8Array.from(atob(u), (p) => p.charCodeAt(0));
13786
+ const r = (l) => Uint8Array.from(atob(l), (p) => p.charCodeAt(0));
13786
13787
  t = t.replace(/ /g, "+");
13787
13788
  const o = new TextEncoder(), i = new TextDecoder();
13788
13789
  n = o.encode(n), e = o.encode(e), t = r(t, storage);
@@ -13832,11 +13833,11 @@ const An = {
13832
13833
  localStorage.setItem("pkce_code_verifier", r);
13833
13834
  let o = await Ut.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
13834
13835
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
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))
13836
+ 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", l = this, p;
13837
+ window.addEventListener("message", async (u) => {
13838
+ if (!this.allowedOrigins.includes(u.origin))
13838
13839
  return console.log("Origin is not allowed!");
13839
- d.data.type === "okta" && (p = d.data.code, await u.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13840
+ u.data.type === "okta" && (p = u.data.code, await l.exchangeCode({ domain: n.domain, code: p, clientID: n.clientID }));
13840
13841
  }, { once: !0 }), this.isNative ? await hn.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
13841
13842
  },
13842
13843
  async handleOktaRedirect() {
@@ -13876,10 +13877,10 @@ function Aa(n, e, t) {
13876
13877
  return (e + t) * 3 / 4 - t;
13877
13878
  }
13878
13879
  function Ra(n) {
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;
13880
+ 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, l;
13881
+ for (l = 0; l < s; l += 4)
13882
+ e = je[n.charCodeAt(l)] << 18 | je[n.charCodeAt(l + 1)] << 12 | je[n.charCodeAt(l + 2)] << 6 | je[n.charCodeAt(l + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
13883
+ return o === 2 && (e = je[n.charCodeAt(l)] << 2 | je[n.charCodeAt(l + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(l)] << 10 | je[n.charCodeAt(l + 1)] << 4 | je[n.charCodeAt(l + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
13883
13884
  }
13884
13885
  function Pa(n) {
13885
13886
  return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
@@ -13901,23 +13902,23 @@ function Na(n) {
13901
13902
  var ir = {};
13902
13903
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
13903
13904
  ir.read = function(n, e, t, r, o) {
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
+ var i, a, s = o * 8 - r - 1, l = (1 << s) - 1, p = l >> 1, u = -7, f = t ? o - 1 : 0, _ = t ? -1 : 1, k = n[e + f];
13906
+ for (f += _, i = k & (1 << -u) - 1, k >>= -u, u += s; u > 0; i = i * 256 + n[e + f], f += _, u -= 8)
13906
13907
  ;
13907
- for (a = i & (1 << -d) - 1, i >>= -d, d += r; d > 0; a = a * 256 + n[e + f], f += _, d -= 8)
13908
+ for (a = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; a = a * 256 + n[e + f], f += _, u -= 8)
13908
13909
  ;
13909
13910
  if (i === 0)
13910
13911
  i = 1 - p;
13911
13912
  else {
13912
- if (i === u)
13913
+ if (i === l)
13913
13914
  return a ? NaN : (k ? -1 : 1) * (1 / 0);
13914
13915
  a = a + Math.pow(2, r), i = i - p;
13915
13916
  }
13916
13917
  return (k ? -1 : 1) * a * Math.pow(2, i - r);
13917
13918
  };
13918
13919
  ir.write = function(n, e, t, r, o, i) {
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
+ var a, s, l, 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;
13921
+ 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 * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), a + f >= 1 ? e += _ / l : e += _ * Math.pow(2, 1 - f), e * l >= 2 && (a++, l /= 2), a + f >= u ? (s = 0, a = u) : a + f >= 1 ? (s = (e * l - 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)
13921
13922
  ;
13922
13923
  for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
13923
13924
  ;
@@ -13931,14 +13932,14 @@ ir.write = function(n, e, t, r, o, i) {
13931
13932
  */
13932
13933
  (function(n) {
13933
13934
  const e = Pn, t = ir, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
13934
- n.Buffer = d, n.SlowBuffer = Ue, n.INSPECT_MAX_BYTES = 50;
13935
+ n.Buffer = u, n.SlowBuffer = Ue, n.INSPECT_MAX_BYTES = 50;
13935
13936
  const o = 2147483647;
13936
13937
  n.kMaxLength = o;
13937
13938
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
13938
- d.TYPED_ARRAY_SUPPORT = u(), !d.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13939
+ u.TYPED_ARRAY_SUPPORT = l(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
13939
13940
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
13940
13941
  );
13941
- function u() {
13942
+ function l() {
13942
13943
  try {
13943
13944
  const h = new i(1), c = { foo: function() {
13944
13945
  return 42;
@@ -13948,16 +13949,16 @@ ir.write = function(n, e, t, r, o, i) {
13948
13949
  return !1;
13949
13950
  }
13950
13951
  }
13951
- Object.defineProperty(d.prototype, "parent", {
13952
+ Object.defineProperty(u.prototype, "parent", {
13952
13953
  enumerable: !0,
13953
13954
  get: function() {
13954
- if (d.isBuffer(this))
13955
+ if (u.isBuffer(this))
13955
13956
  return this.buffer;
13956
13957
  }
13957
- }), Object.defineProperty(d.prototype, "offset", {
13958
+ }), Object.defineProperty(u.prototype, "offset", {
13958
13959
  enumerable: !0,
13959
13960
  get: function() {
13960
- if (d.isBuffer(this))
13961
+ if (u.isBuffer(this))
13961
13962
  return this.byteOffset;
13962
13963
  }
13963
13964
  });
@@ -13965,9 +13966,9 @@ ir.write = function(n, e, t, r, o, i) {
13965
13966
  if (h > o)
13966
13967
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
13967
13968
  const c = new i(h);
13968
- return Object.setPrototypeOf(c, d.prototype), c;
13969
+ return Object.setPrototypeOf(c, u.prototype), c;
13969
13970
  }
13970
- function d(h, c, l) {
13971
+ function u(h, c, d) {
13971
13972
  if (typeof h == "number") {
13972
13973
  if (typeof c == "string")
13973
13974
  throw new TypeError(
@@ -13975,10 +13976,10 @@ ir.write = function(n, e, t, r, o, i) {
13975
13976
  );
13976
13977
  return E(h);
13977
13978
  }
13978
- return f(h, c, l);
13979
+ return f(h, c, d);
13979
13980
  }
13980
- d.poolSize = 8192;
13981
- function f(h, c, l) {
13981
+ u.poolSize = 8192;
13982
+ function f(h, c, d) {
13982
13983
  if (typeof h == "string")
13983
13984
  return N(h, c);
13984
13985
  if (a.isView(h))
@@ -13988,59 +13989,59 @@ ir.write = function(n, e, t, r, o, i) {
13988
13989
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
13989
13990
  );
13990
13991
  if ($e(h, a) || h && $e(h.buffer, a) || typeof s < "u" && ($e(h, s) || h && $e(h.buffer, s)))
13991
- return G(h, c, l);
13992
+ return G(h, c, d);
13992
13993
  if (typeof h == "number")
13993
13994
  throw new TypeError(
13994
13995
  'The "value" argument must not be of type number. Received type number'
13995
13996
  );
13996
13997
  const m = h.valueOf && h.valueOf();
13997
13998
  if (m != null && m !== h)
13998
- return d.from(m, c, l);
13999
+ return u.from(m, c, d);
13999
14000
  const v = $(h);
14000
14001
  if (v)
14001
14002
  return v;
14002
14003
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof h[Symbol.toPrimitive] == "function")
14003
- return d.from(h[Symbol.toPrimitive]("string"), c, l);
14004
+ return u.from(h[Symbol.toPrimitive]("string"), c, d);
14004
14005
  throw new TypeError(
14005
14006
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
14006
14007
  );
14007
14008
  }
14008
- d.from = function(h, c, l) {
14009
- return f(h, c, l);
14010
- }, Object.setPrototypeOf(d.prototype, i.prototype), Object.setPrototypeOf(d, i);
14009
+ u.from = function(h, c, d) {
14010
+ return f(h, c, d);
14011
+ }, Object.setPrototypeOf(u.prototype, i.prototype), Object.setPrototypeOf(u, i);
14011
14012
  function _(h) {
14012
14013
  if (typeof h != "number")
14013
14014
  throw new TypeError('"size" argument must be of type number');
14014
14015
  if (h < 0)
14015
14016
  throw new RangeError('The value "' + h + '" is invalid for option "size"');
14016
14017
  }
14017
- function k(h, c, l) {
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
+ function k(h, c, d) {
14019
+ return _(h), h <= 0 ? p(h) : c !== void 0 ? typeof d == "string" ? p(h).fill(c, d) : p(h).fill(c) : p(h);
14019
14020
  }
14020
- d.alloc = function(h, c, l) {
14021
- return k(h, c, l);
14021
+ u.alloc = function(h, c, d) {
14022
+ return k(h, c, d);
14022
14023
  };
14023
14024
  function E(h) {
14024
14025
  return _(h), p(h < 0 ? 0 : Ae(h) | 0);
14025
14026
  }
14026
- d.allocUnsafe = function(h) {
14027
+ u.allocUnsafe = function(h) {
14027
14028
  return E(h);
14028
- }, d.allocUnsafeSlow = function(h) {
14029
+ }, u.allocUnsafeSlow = function(h) {
14029
14030
  return E(h);
14030
14031
  };
14031
14032
  function N(h, c) {
14032
- if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
14033
+ if ((typeof c != "string" || c === "") && (c = "utf8"), !u.isEncoding(c))
14033
14034
  throw new TypeError("Unknown encoding: " + c);
14034
- const l = Ve(h, c) | 0;
14035
- let m = p(l);
14035
+ const d = Ve(h, c) | 0;
14036
+ let m = p(d);
14036
14037
  const v = m.write(h, c);
14037
- return v !== l && (m = m.slice(0, v)), m;
14038
+ return v !== d && (m = m.slice(0, v)), m;
14038
14039
  }
14039
14040
  function Q(h) {
14040
- const c = h.length < 0 ? 0 : Ae(h.length) | 0, l = p(c);
14041
+ const c = h.length < 0 ? 0 : Ae(h.length) | 0, d = p(c);
14041
14042
  for (let m = 0; m < c; m += 1)
14042
- l[m] = h[m] & 255;
14043
- return l;
14043
+ d[m] = h[m] & 255;
14044
+ return d;
14044
14045
  }
14045
14046
  function X(h) {
14046
14047
  if ($e(h, i)) {
@@ -14049,18 +14050,18 @@ ir.write = function(n, e, t, r, o, i) {
14049
14050
  }
14050
14051
  return Q(h);
14051
14052
  }
14052
- function G(h, c, l) {
14053
+ function G(h, c, d) {
14053
14054
  if (c < 0 || h.byteLength < c)
14054
14055
  throw new RangeError('"offset" is outside of buffer bounds');
14055
- if (h.byteLength < c + (l || 0))
14056
+ if (h.byteLength < c + (d || 0))
14056
14057
  throw new RangeError('"length" is outside of buffer bounds');
14057
14058
  let 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;
14059
+ return c === void 0 && d === void 0 ? m = new i(h) : d === void 0 ? m = new i(h, c) : m = new i(h, c, d), Object.setPrototypeOf(m, u.prototype), m;
14059
14060
  }
14060
14061
  function $(h) {
14061
- if (d.isBuffer(h)) {
14062
- const c = Ae(h.length) | 0, l = p(c);
14063
- return l.length === 0 || h.copy(l, 0, 0, c), l;
14062
+ if (u.isBuffer(h)) {
14063
+ const c = Ae(h.length) | 0, d = p(c);
14064
+ return d.length === 0 || h.copy(d, 0, 0, c), d;
14064
14065
  }
14065
14066
  if (h.length !== void 0)
14066
14067
  return typeof h.length != "number" || zn(h.length) ? p(0) : Q(h);
@@ -14073,25 +14074,25 @@ ir.write = function(n, e, t, r, o, i) {
14073
14074
  return h | 0;
14074
14075
  }
14075
14076
  function Ue(h) {
14076
- return +h != h && (h = 0), d.alloc(+h);
14077
+ return +h != h && (h = 0), u.alloc(+h);
14077
14078
  }
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))
14079
+ u.isBuffer = function(c) {
14080
+ return c != null && c._isBuffer === !0 && c !== u.prototype;
14081
+ }, u.compare = function(c, d) {
14082
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), $e(d, i) && (d = u.from(d, d.offset, d.byteLength)), !u.isBuffer(c) || !u.isBuffer(d))
14082
14083
  throw new TypeError(
14083
14084
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
14084
14085
  );
14085
- if (c === l)
14086
+ if (c === d)
14086
14087
  return 0;
14087
- let m = c.length, v = l.length;
14088
+ let m = c.length, v = d.length;
14088
14089
  for (let w = 0, C = Math.min(m, v); w < C; ++w)
14089
- if (c[w] !== l[w]) {
14090
- m = c[w], v = l[w];
14090
+ if (c[w] !== d[w]) {
14091
+ m = c[w], v = d[w];
14091
14092
  break;
14092
14093
  }
14093
14094
  return m < v ? -1 : v < m ? 1 : 0;
14094
- }, d.isEncoding = function(c) {
14095
+ }, u.isEncoding = function(c) {
14095
14096
  switch (String(c).toLowerCase()) {
14096
14097
  case "hex":
14097
14098
  case "utf8":
@@ -14108,26 +14109,26 @@ ir.write = function(n, e, t, r, o, i) {
14108
14109
  default:
14109
14110
  return !1;
14110
14111
  }
14111
- }, d.concat = function(c, l) {
14112
+ }, u.concat = function(c, d) {
14112
14113
  if (!Array.isArray(c))
14113
14114
  throw new TypeError('"list" argument must be an Array of Buffers');
14114
14115
  if (c.length === 0)
14115
- return d.alloc(0);
14116
+ return u.alloc(0);
14116
14117
  let m;
14117
- if (l === void 0)
14118
- for (l = 0, m = 0; m < c.length; ++m)
14119
- l += c[m].length;
14120
- const v = d.allocUnsafe(l);
14118
+ if (d === void 0)
14119
+ for (d = 0, m = 0; m < c.length; ++m)
14120
+ d += c[m].length;
14121
+ const v = u.allocUnsafe(d);
14121
14122
  let w = 0;
14122
14123
  for (m = 0; m < c.length; ++m) {
14123
14124
  let C = c[m];
14124
14125
  if ($e(C, i))
14125
- w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
14126
+ w + C.length > v.length ? (u.isBuffer(C) || (C = u.from(C)), C.copy(v, w)) : i.prototype.set.call(
14126
14127
  v,
14127
14128
  C,
14128
14129
  w
14129
14130
  );
14130
- else if (d.isBuffer(C))
14131
+ else if (u.isBuffer(C))
14131
14132
  C.copy(v, w);
14132
14133
  else
14133
14134
  throw new TypeError('"list" argument must be an Array of Buffers');
@@ -14136,7 +14137,7 @@ ir.write = function(n, e, t, r, o, i) {
14136
14137
  return v;
14137
14138
  };
14138
14139
  function Ve(h, c) {
14139
- if (d.isBuffer(h))
14140
+ if (u.isBuffer(h))
14140
14141
  return h.length;
14141
14142
  if (a.isView(h) || $e(h, a))
14142
14143
  return h.byteLength;
@@ -14144,8 +14145,8 @@ ir.write = function(n, e, t, r, o, i) {
14144
14145
  throw new TypeError(
14145
14146
  'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof h
14146
14147
  );
14147
- const l = h.length, m = arguments.length > 2 && arguments[2] === !0;
14148
- if (!m && l === 0)
14148
+ const d = h.length, m = arguments.length > 2 && arguments[2] === !0;
14149
+ if (!m && d === 0)
14149
14150
  return 0;
14150
14151
  let v = !1;
14151
14152
  for (; ; )
@@ -14153,7 +14154,7 @@ ir.write = function(n, e, t, r, o, i) {
14153
14154
  case "ascii":
14154
14155
  case "latin1":
14155
14156
  case "binary":
14156
- return l;
14157
+ return d;
14157
14158
  case "utf8":
14158
14159
  case "utf-8":
14159
14160
  return On(h).length;
@@ -14161,9 +14162,9 @@ ir.write = function(n, e, t, r, o, i) {
14161
14162
  case "ucs-2":
14162
14163
  case "utf16le":
14163
14164
  case "utf-16le":
14164
- return l * 2;
14165
+ return d * 2;
14165
14166
  case "hex":
14166
- return l >>> 1;
14167
+ return d >>> 1;
14167
14168
  case "base64":
14168
14169
  return _r(h).length;
14169
14170
  default:
@@ -14172,157 +14173,157 @@ ir.write = function(n, e, t, r, o, i) {
14172
14173
  c = ("" + c).toLowerCase(), v = !0;
14173
14174
  }
14174
14175
  }
14175
- d.byteLength = Ve;
14176
- function Ct(h, c, l) {
14176
+ u.byteLength = Ve;
14177
+ function Ct(h, c, d) {
14177
14178
  let m = !1;
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))
14179
+ if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((d === void 0 || d > this.length) && (d = this.length), d <= 0) || (d >>>= 0, c >>>= 0, d <= c))
14179
14180
  return "";
14180
14181
  for (h || (h = "utf8"); ; )
14181
14182
  switch (h) {
14182
14183
  case "hex":
14183
- return zo(this, c, l);
14184
+ return zo(this, c, d);
14184
14185
  case "utf8":
14185
14186
  case "utf-8":
14186
- return cr(this, c, l);
14187
+ return cr(this, c, d);
14187
14188
  case "ascii":
14188
- return Lo(this, c, l);
14189
+ return Lo(this, c, d);
14189
14190
  case "latin1":
14190
14191
  case "binary":
14191
- return Oo(this, c, l);
14192
+ return Oo(this, c, d);
14192
14193
  case "base64":
14193
- return Mo(this, c, l);
14194
+ return Mo(this, c, d);
14194
14195
  case "ucs2":
14195
14196
  case "ucs-2":
14196
14197
  case "utf16le":
14197
14198
  case "utf-16le":
14198
- return Uo(this, c, l);
14199
+ return Uo(this, c, d);
14199
14200
  default:
14200
14201
  if (m)
14201
14202
  throw new TypeError("Unknown encoding: " + h);
14202
14203
  h = (h + "").toLowerCase(), m = !0;
14203
14204
  }
14204
14205
  }
14205
- d.prototype._isBuffer = !0;
14206
- function ce(h, c, l) {
14206
+ u.prototype._isBuffer = !0;
14207
+ function ce(h, c, d) {
14207
14208
  const m = h[c];
14208
- h[c] = h[l], h[l] = m;
14209
+ h[c] = h[d], h[d] = m;
14209
14210
  }
14210
- d.prototype.swap16 = function() {
14211
+ u.prototype.swap16 = function() {
14211
14212
  const c = this.length;
14212
14213
  if (c % 2 !== 0)
14213
14214
  throw new RangeError("Buffer size must be a multiple of 16-bits");
14214
- for (let l = 0; l < c; l += 2)
14215
- ce(this, l, l + 1);
14215
+ for (let d = 0; d < c; d += 2)
14216
+ ce(this, d, d + 1);
14216
14217
  return this;
14217
- }, d.prototype.swap32 = function() {
14218
+ }, u.prototype.swap32 = function() {
14218
14219
  const c = this.length;
14219
14220
  if (c % 4 !== 0)
14220
14221
  throw new RangeError("Buffer size must be a multiple of 32-bits");
14221
- for (let l = 0; l < c; l += 4)
14222
- ce(this, l, l + 3), ce(this, l + 1, l + 2);
14222
+ for (let d = 0; d < c; d += 4)
14223
+ ce(this, d, d + 3), ce(this, d + 1, d + 2);
14223
14224
  return this;
14224
- }, d.prototype.swap64 = function() {
14225
+ }, u.prototype.swap64 = function() {
14225
14226
  const c = this.length;
14226
14227
  if (c % 8 !== 0)
14227
14228
  throw new RangeError("Buffer size must be a multiple of 64-bits");
14228
- for (let l = 0; l < c; l += 8)
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
+ for (let d = 0; d < c; d += 8)
14230
+ ce(this, d, d + 7), ce(this, d + 1, d + 6), ce(this, d + 2, d + 5), ce(this, d + 3, d + 4);
14230
14231
  return this;
14231
- }, d.prototype.toString = function() {
14232
+ }, u.prototype.toString = function() {
14232
14233
  const c = this.length;
14233
14234
  return c === 0 ? "" : arguments.length === 0 ? cr(this, 0, c) : Ct.apply(this, arguments);
14234
- }, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(c) {
14235
- if (!d.isBuffer(c))
14235
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(c) {
14236
+ if (!u.isBuffer(c))
14236
14237
  throw new TypeError("Argument must be a Buffer");
14237
- return this === c ? !0 : d.compare(this, c) === 0;
14238
- }, d.prototype.inspect = function() {
14238
+ return this === c ? !0 : u.compare(this, c) === 0;
14239
+ }, u.prototype.inspect = function() {
14239
14240
  let c = "";
14240
- const l = n.INSPECT_MAX_BYTES;
14241
- return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + 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))
14241
+ const d = n.INSPECT_MAX_BYTES;
14242
+ return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
14243
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(c, d, m, v, w) {
14244
+ if ($e(c, i) && (c = u.from(c, c.offset, c.byteLength)), !u.isBuffer(c))
14244
14245
  throw new TypeError(
14245
14246
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
14246
14247
  );
14247
- if (l === void 0 && (l = 0), m === void 0 && (m = c ? c.length : 0), v === void 0 && (v = 0), w === void 0 && (w = this.length), l < 0 || m > c.length || v < 0 || w > this.length)
14248
+ if (d === void 0 && (d = 0), m === void 0 && (m = c ? c.length : 0), v === void 0 && (v = 0), w === void 0 && (w = this.length), d < 0 || m > c.length || v < 0 || w > this.length)
14248
14249
  throw new RangeError("out of range index");
14249
- if (v >= w && l >= m)
14250
+ if (v >= w && d >= m)
14250
14251
  return 0;
14251
14252
  if (v >= w)
14252
14253
  return -1;
14253
- if (l >= m)
14254
+ if (d >= m)
14254
14255
  return 1;
14255
- if (l >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
14256
+ if (d >>>= 0, m >>>= 0, v >>>= 0, w >>>= 0, this === c)
14256
14257
  return 0;
14257
- let C = w - v, Y = m - l;
14258
- const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
14258
+ let C = w - v, Y = m - d;
14259
+ const le = Math.min(C, Y), ae = this.slice(v, w), de = c.slice(d, m);
14259
14260
  for (let re = 0; re < le; ++re)
14260
- if (ae[re] !== ue[re]) {
14261
- C = ae[re], Y = ue[re];
14261
+ if (ae[re] !== de[re]) {
14262
+ C = ae[re], Y = de[re];
14262
14263
  break;
14263
14264
  }
14264
14265
  return C < Y ? -1 : Y < C ? 1 : 0;
14265
14266
  };
14266
- function ar(h, c, l, m, v) {
14267
+ function ar(h, c, d, m, v) {
14267
14268
  if (h.length === 0)
14268
14269
  return -1;
14269
- if (typeof l == "string" ? (m = l, l = 0) : l > 2147483647 ? l = 2147483647 : l < -2147483648 && (l = -2147483648), l = +l, zn(l) && (l = v ? 0 : h.length - 1), l < 0 && (l = h.length + l), l >= h.length) {
14270
+ if (typeof d == "string" ? (m = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, zn(d) && (d = v ? 0 : h.length - 1), d < 0 && (d = h.length + d), d >= h.length) {
14270
14271
  if (v)
14271
14272
  return -1;
14272
- l = h.length - 1;
14273
- } else if (l < 0)
14273
+ d = h.length - 1;
14274
+ } else if (d < 0)
14274
14275
  if (v)
14275
- l = 0;
14276
+ d = 0;
14276
14277
  else
14277
14278
  return -1;
14278
- if (typeof c == "string" && (c = d.from(c, m)), d.isBuffer(c))
14279
- return c.length === 0 ? -1 : sr(h, c, l, m, v);
14279
+ if (typeof c == "string" && (c = u.from(c, m)), u.isBuffer(c))
14280
+ return c.length === 0 ? -1 : sr(h, c, d, m, v);
14280
14281
  if (typeof c == "number")
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);
14282
+ return c = c & 255, typeof i.prototype.indexOf == "function" ? v ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : sr(h, [c], d, m, v);
14282
14283
  throw new TypeError("val must be string, number or Buffer");
14283
14284
  }
14284
- function sr(h, c, l, m, v) {
14285
+ function sr(h, c, d, m, v) {
14285
14286
  let w = 1, C = h.length, Y = c.length;
14286
14287
  if (m !== void 0 && (m = String(m).toLowerCase(), m === "ucs2" || m === "ucs-2" || m === "utf16le" || m === "utf-16le")) {
14287
14288
  if (h.length < 2 || c.length < 2)
14288
14289
  return -1;
14289
- w = 2, C /= 2, Y /= 2, l /= 2;
14290
+ w = 2, C /= 2, Y /= 2, d /= 2;
14290
14291
  }
14291
- function le(ue, re) {
14292
- return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
14292
+ function le(de, re) {
14293
+ return w === 1 ? de[re] : de.readUInt16BE(re * w);
14293
14294
  }
14294
14295
  let ae;
14295
14296
  if (v) {
14296
- let ue = -1;
14297
- for (ae = l; ae < C; ae++)
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;
14297
+ let de = -1;
14298
+ for (ae = d; ae < C; ae++)
14299
+ if (le(h, ae) === le(c, de === -1 ? 0 : ae - de)) {
14300
+ if (de === -1 && (de = ae), ae - de + 1 === Y)
14301
+ return de * w;
14301
14302
  } else
14302
- ue !== -1 && (ae -= ae - ue), ue = -1;
14303
+ de !== -1 && (ae -= ae - de), de = -1;
14303
14304
  } else
14304
- for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
14305
- let ue = !0;
14305
+ for (d + Y > C && (d = C - Y), ae = d; ae >= 0; ae--) {
14306
+ let de = !0;
14306
14307
  for (let re = 0; re < Y; re++)
14307
14308
  if (le(h, ae + re) !== le(c, re)) {
14308
- ue = !1;
14309
+ de = !1;
14309
14310
  break;
14310
14311
  }
14311
- if (ue)
14312
+ if (de)
14312
14313
  return ae;
14313
14314
  }
14314
14315
  return -1;
14315
14316
  }
14316
- d.prototype.includes = function(c, l, m) {
14317
- return this.indexOf(c, l, m) !== -1;
14318
- }, d.prototype.indexOf = function(c, l, m) {
14319
- return ar(this, c, l, m, !0);
14320
- }, d.prototype.lastIndexOf = function(c, l, m) {
14321
- return ar(this, c, l, m, !1);
14317
+ u.prototype.includes = function(c, d, m) {
14318
+ return this.indexOf(c, d, m) !== -1;
14319
+ }, u.prototype.indexOf = function(c, d, m) {
14320
+ return ar(this, c, d, m, !0);
14321
+ }, u.prototype.lastIndexOf = function(c, d, m) {
14322
+ return ar(this, c, d, m, !1);
14322
14323
  };
14323
- function Io(h, c, l, m) {
14324
- l = Number(l) || 0;
14325
- const v = h.length - l;
14324
+ function Io(h, c, d, m) {
14325
+ d = Number(d) || 0;
14326
+ const v = h.length - d;
14326
14327
  m ? (m = Number(m), m > v && (m = v)) : m = v;
14327
14328
  const w = c.length;
14328
14329
  m > w / 2 && (m = w / 2);
@@ -14331,79 +14332,79 @@ ir.write = function(n, e, t, r, o, i) {
14331
14332
  const Y = parseInt(c.substr(C * 2, 2), 16);
14332
14333
  if (zn(Y))
14333
14334
  return C;
14334
- h[l + C] = Y;
14335
+ h[d + C] = Y;
14335
14336
  }
14336
14337
  return C;
14337
14338
  }
14338
- function So(h, c, l, m) {
14339
- return sn(On(c, h.length - l), h, l, m);
14339
+ function So(h, c, d, m) {
14340
+ return sn(On(c, h.length - d), h, d, m);
14340
14341
  }
14341
- function Ao(h, c, l, m) {
14342
- return sn(Ho(c), h, l, m);
14342
+ function Ao(h, c, d, m) {
14343
+ return sn(Ho(c), h, d, m);
14343
14344
  }
14344
- function Ro(h, c, l, m) {
14345
- return sn(_r(c), h, l, m);
14345
+ function Ro(h, c, d, m) {
14346
+ return sn(_r(c), h, d, m);
14346
14347
  }
14347
- function Po(h, c, l, m) {
14348
- return sn(qo(c, h.length - l), h, l, m);
14348
+ function Po(h, c, d, m) {
14349
+ return sn(qo(c, h.length - d), h, d, m);
14349
14350
  }
14350
- d.prototype.write = function(c, l, m, v) {
14351
- if (l === void 0)
14352
- v = "utf8", m = this.length, l = 0;
14353
- else if (m === void 0 && typeof l == "string")
14354
- v = l, m = this.length, l = 0;
14355
- else if (isFinite(l))
14356
- l = l >>> 0, isFinite(m) ? (m = m >>> 0, v === void 0 && (v = "utf8")) : (v = m, m = void 0);
14351
+ u.prototype.write = function(c, d, m, v) {
14352
+ if (d === void 0)
14353
+ v = "utf8", m = this.length, d = 0;
14354
+ else if (m === void 0 && typeof d == "string")
14355
+ v = d, m = this.length, d = 0;
14356
+ else if (isFinite(d))
14357
+ d = d >>> 0, isFinite(m) ? (m = m >>> 0, v === void 0 && (v = "utf8")) : (v = m, m = void 0);
14357
14358
  else
14358
14359
  throw new Error(
14359
14360
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
14360
14361
  );
14361
- const w = this.length - l;
14362
- if ((m === void 0 || m > w) && (m = w), c.length > 0 && (m < 0 || l < 0) || l > this.length)
14362
+ const w = this.length - d;
14363
+ if ((m === void 0 || m > w) && (m = w), c.length > 0 && (m < 0 || d < 0) || d > this.length)
14363
14364
  throw new RangeError("Attempt to write outside buffer bounds");
14364
14365
  v || (v = "utf8");
14365
14366
  let C = !1;
14366
14367
  for (; ; )
14367
14368
  switch (v) {
14368
14369
  case "hex":
14369
- return Io(this, c, l, m);
14370
+ return Io(this, c, d, m);
14370
14371
  case "utf8":
14371
14372
  case "utf-8":
14372
- return So(this, c, l, m);
14373
+ return So(this, c, d, m);
14373
14374
  case "ascii":
14374
14375
  case "latin1":
14375
14376
  case "binary":
14376
- return Ao(this, c, l, m);
14377
+ return Ao(this, c, d, m);
14377
14378
  case "base64":
14378
- return Ro(this, c, l, m);
14379
+ return Ro(this, c, d, m);
14379
14380
  case "ucs2":
14380
14381
  case "ucs-2":
14381
14382
  case "utf16le":
14382
14383
  case "utf-16le":
14383
- return Po(this, c, l, m);
14384
+ return Po(this, c, d, m);
14384
14385
  default:
14385
14386
  if (C)
14386
14387
  throw new TypeError("Unknown encoding: " + v);
14387
14388
  v = ("" + v).toLowerCase(), C = !0;
14388
14389
  }
14389
- }, d.prototype.toJSON = function() {
14390
+ }, u.prototype.toJSON = function() {
14390
14391
  return {
14391
14392
  type: "Buffer",
14392
14393
  data: Array.prototype.slice.call(this._arr || this, 0)
14393
14394
  };
14394
14395
  };
14395
- function Mo(h, c, l) {
14396
- return c === 0 && l === h.length ? e.fromByteArray(h) : e.fromByteArray(h.slice(c, l));
14396
+ function Mo(h, c, d) {
14397
+ return c === 0 && d === h.length ? e.fromByteArray(h) : e.fromByteArray(h.slice(c, d));
14397
14398
  }
14398
- function cr(h, c, l) {
14399
- l = Math.min(h.length, l);
14399
+ function cr(h, c, d) {
14400
+ d = Math.min(h.length, d);
14400
14401
  const m = [];
14401
14402
  let v = c;
14402
- for (; v < l; ) {
14403
+ for (; v < d; ) {
14403
14404
  const w = h[v];
14404
14405
  let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
14405
- if (v + Y <= l) {
14406
- let le, ae, ue, re;
14406
+ if (v + Y <= d) {
14407
+ let le, ae, de, re;
14407
14408
  switch (Y) {
14408
14409
  case 1:
14409
14410
  w < 128 && (C = w);
@@ -14415,7 +14416,7 @@ ir.write = function(n, e, t, r, o, i) {
14415
14416
  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));
14416
14417
  break;
14417
14418
  case 4:
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));
14419
+ 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));
14419
14420
  }
14420
14421
  }
14421
14422
  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;
@@ -14427,269 +14428,269 @@ ir.write = function(n, e, t, r, o, i) {
14427
14428
  const c = h.length;
14428
14429
  if (c <= lr)
14429
14430
  return String.fromCharCode.apply(String, h);
14430
- let l = "", m = 0;
14431
+ let d = "", m = 0;
14431
14432
  for (; m < c; )
14432
- l += String.fromCharCode.apply(
14433
+ d += String.fromCharCode.apply(
14433
14434
  String,
14434
14435
  h.slice(m, m += lr)
14435
14436
  );
14436
- return l;
14437
+ return d;
14437
14438
  }
14438
- function Lo(h, c, l) {
14439
+ function Lo(h, c, d) {
14439
14440
  let m = "";
14440
- l = Math.min(h.length, l);
14441
- for (let v = c; v < l; ++v)
14441
+ d = Math.min(h.length, d);
14442
+ for (let v = c; v < d; ++v)
14442
14443
  m += String.fromCharCode(h[v] & 127);
14443
14444
  return m;
14444
14445
  }
14445
- function Oo(h, c, l) {
14446
+ function Oo(h, c, d) {
14446
14447
  let m = "";
14447
- l = Math.min(h.length, l);
14448
- for (let v = c; v < l; ++v)
14448
+ d = Math.min(h.length, d);
14449
+ for (let v = c; v < d; ++v)
14449
14450
  m += String.fromCharCode(h[v]);
14450
14451
  return m;
14451
14452
  }
14452
- function zo(h, c, l) {
14453
+ function zo(h, c, d) {
14453
14454
  const m = h.length;
14454
- (!c || c < 0) && (c = 0), (!l || l < 0 || l > m) && (l = m);
14455
+ (!c || c < 0) && (c = 0), (!d || d < 0 || d > m) && (d = m);
14455
14456
  let v = "";
14456
- for (let w = c; w < l; ++w)
14457
+ for (let w = c; w < d; ++w)
14457
14458
  v += Fo[h[w]];
14458
14459
  return v;
14459
14460
  }
14460
- function Uo(h, c, l) {
14461
- const m = h.slice(c, l);
14461
+ function Uo(h, c, d) {
14462
+ const m = h.slice(c, d);
14462
14463
  let v = "";
14463
14464
  for (let w = 0; w < m.length - 1; w += 2)
14464
14465
  v += String.fromCharCode(m[w] + m[w + 1] * 256);
14465
14466
  return v;
14466
14467
  }
14467
- d.prototype.slice = function(c, l) {
14468
+ u.prototype.slice = function(c, d) {
14468
14469
  const m = this.length;
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);
14470
- const v = this.subarray(c, l);
14471
- return Object.setPrototypeOf(v, d.prototype), v;
14470
+ c = ~~c, d = d === void 0 ? m : ~~d, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), d < 0 ? (d += m, d < 0 && (d = 0)) : d > m && (d = m), d < c && (d = c);
14471
+ const v = this.subarray(c, d);
14472
+ return Object.setPrototypeOf(v, u.prototype), v;
14472
14473
  };
14473
- function ge(h, c, l) {
14474
+ function ge(h, c, d) {
14474
14475
  if (h % 1 !== 0 || h < 0)
14475
14476
  throw new RangeError("offset is not uint");
14476
- if (h + c > l)
14477
+ if (h + c > d)
14477
14478
  throw new RangeError("Trying to access beyond buffer length");
14478
14479
  }
14479
- d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
14480
- c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14480
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(c, d, m) {
14481
+ c = c >>> 0, d = d >>> 0, m || ge(c, d, this.length);
14481
14482
  let v = this[c], w = 1, C = 0;
14482
- for (; ++C < l && (w *= 256); )
14483
+ for (; ++C < d && (w *= 256); )
14483
14484
  v += this[c + C] * w;
14484
14485
  return v;
14485
- }, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
14486
- c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14487
- let v = this[c + --l], w = 1;
14488
- for (; l > 0 && (w *= 256); )
14489
- v += this[c + --l] * w;
14486
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(c, d, m) {
14487
+ c = c >>> 0, d = d >>> 0, m || ge(c, d, this.length);
14488
+ let v = this[c + --d], w = 1;
14489
+ for (; d > 0 && (w *= 256); )
14490
+ v += this[c + --d] * w;
14490
14491
  return v;
14491
- }, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
14492
- return c = c >>> 0, l || ge(c, 1, this.length), this[c];
14493
- }, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
14494
- return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
14495
- }, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
14496
- return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
14497
- }, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
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;
14499
- }, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
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]);
14501
- }, d.prototype.readBigUInt64LE = ut(function(c) {
14492
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(c, d) {
14493
+ return c = c >>> 0, d || ge(c, 1, this.length), this[c];
14494
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(c, d) {
14495
+ return c = c >>> 0, d || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
14496
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(c, d) {
14497
+ return c = c >>> 0, d || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
14498
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(c, d) {
14499
+ return c = c >>> 0, d || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
14500
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(c, d) {
14501
+ return c = c >>> 0, d || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
14502
+ }, u.prototype.readBigUInt64LE = dt(function(c) {
14502
14503
  c = c >>> 0, Tt(c, "offset");
14503
- const l = this[c], m = this[c + 7];
14504
- (l === void 0 || m === void 0) && Kt(c, this.length - 8);
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;
14504
+ const d = this[c], m = this[c + 7];
14505
+ (d === void 0 || m === void 0) && Kt(c, this.length - 8);
14506
+ const v = d + 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;
14506
14507
  return BigInt(v) + (BigInt(w) << BigInt(32));
14507
- }), d.prototype.readBigUInt64BE = ut(function(c) {
14508
+ }), u.prototype.readBigUInt64BE = dt(function(c) {
14508
14509
  c = c >>> 0, Tt(c, "offset");
14509
- const l = this[c], m = this[c + 7];
14510
- (l === void 0 || m === void 0) && Kt(c, this.length - 8);
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;
14510
+ const d = this[c], m = this[c + 7];
14511
+ (d === void 0 || m === void 0) && Kt(c, this.length - 8);
14512
+ const v = d * 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;
14512
14513
  return (BigInt(v) << BigInt(32)) + BigInt(w);
14513
- }), d.prototype.readIntLE = function(c, l, m) {
14514
- c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14514
+ }), u.prototype.readIntLE = function(c, d, m) {
14515
+ c = c >>> 0, d = d >>> 0, m || ge(c, d, this.length);
14515
14516
  let v = this[c], w = 1, C = 0;
14516
- for (; ++C < l && (w *= 256); )
14517
+ for (; ++C < d && (w *= 256); )
14517
14518
  v += this[c + C] * w;
14518
- return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
14519
- }, d.prototype.readIntBE = function(c, l, m) {
14520
- c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
14521
- let v = l, w = 1, C = this[c + --v];
14519
+ return w *= 128, v >= w && (v -= Math.pow(2, 8 * d)), v;
14520
+ }, u.prototype.readIntBE = function(c, d, m) {
14521
+ c = c >>> 0, d = d >>> 0, m || ge(c, d, this.length);
14522
+ let v = d, w = 1, C = this[c + --v];
14522
14523
  for (; v > 0 && (w *= 256); )
14523
14524
  C += this[c + --v] * w;
14524
- return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
14525
- }, d.prototype.readInt8 = function(c, l) {
14526
- return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
14527
- }, d.prototype.readInt16LE = function(c, l) {
14528
- c = c >>> 0, l || ge(c, 2, this.length);
14525
+ return w *= 128, C >= w && (C -= Math.pow(2, 8 * d)), C;
14526
+ }, u.prototype.readInt8 = function(c, d) {
14527
+ return c = c >>> 0, d || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
14528
+ }, u.prototype.readInt16LE = function(c, d) {
14529
+ c = c >>> 0, d || ge(c, 2, this.length);
14529
14530
  const m = this[c] | this[c + 1] << 8;
14530
14531
  return m & 32768 ? m | 4294901760 : m;
14531
- }, d.prototype.readInt16BE = function(c, l) {
14532
- c = c >>> 0, l || ge(c, 2, this.length);
14532
+ }, u.prototype.readInt16BE = function(c, d) {
14533
+ c = c >>> 0, d || ge(c, 2, this.length);
14533
14534
  const m = this[c + 1] | this[c] << 8;
14534
14535
  return m & 32768 ? m | 4294901760 : m;
14535
- }, d.prototype.readInt32LE = function(c, l) {
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;
14537
- }, d.prototype.readInt32BE = function(c, l) {
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];
14539
- }, d.prototype.readBigInt64LE = ut(function(c) {
14536
+ }, u.prototype.readInt32LE = function(c, d) {
14537
+ return c = c >>> 0, d || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
14538
+ }, u.prototype.readInt32BE = function(c, d) {
14539
+ return c = c >>> 0, d || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
14540
+ }, u.prototype.readBigInt64LE = dt(function(c) {
14540
14541
  c = c >>> 0, Tt(c, "offset");
14541
- const l = this[c], m = this[c + 7];
14542
- (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14542
+ const d = this[c], m = this[c + 7];
14543
+ (d === void 0 || m === void 0) && Kt(c, this.length - 8);
14543
14544
  const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
14544
- return (BigInt(v) << BigInt(32)) + BigInt(l + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
14545
- }), d.prototype.readBigInt64BE = ut(function(c) {
14545
+ return (BigInt(v) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
14546
+ }), u.prototype.readBigInt64BE = dt(function(c) {
14546
14547
  c = c >>> 0, Tt(c, "offset");
14547
- const l = this[c], m = this[c + 7];
14548
- (l === void 0 || m === void 0) && Kt(c, this.length - 8);
14549
- const v = (l << 24) + // Overflow
14548
+ const d = this[c], m = this[c + 7];
14549
+ (d === void 0 || m === void 0) && Kt(c, this.length - 8);
14550
+ const v = (d << 24) + // Overflow
14550
14551
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
14551
14552
  return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
14552
- }), d.prototype.readFloatLE = function(c, l) {
14553
- return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
14554
- }, d.prototype.readFloatBE = function(c, l) {
14555
- return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
14556
- }, d.prototype.readDoubleLE = function(c, l) {
14557
- return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
14558
- }, d.prototype.readDoubleBE = function(c, l) {
14559
- return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
14553
+ }), u.prototype.readFloatLE = function(c, d) {
14554
+ return c = c >>> 0, d || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
14555
+ }, u.prototype.readFloatBE = function(c, d) {
14556
+ return c = c >>> 0, d || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
14557
+ }, u.prototype.readDoubleLE = function(c, d) {
14558
+ return c = c >>> 0, d || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
14559
+ }, u.prototype.readDoubleBE = function(c, d) {
14560
+ return c = c >>> 0, d || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
14560
14561
  };
14561
- function Re(h, c, l, m, v, w) {
14562
- if (!d.isBuffer(h))
14562
+ function Re(h, c, d, m, v, w) {
14563
+ if (!u.isBuffer(h))
14563
14564
  throw new TypeError('"buffer" argument must be a Buffer instance');
14564
14565
  if (c > v || c < w)
14565
14566
  throw new RangeError('"value" argument is out of bounds');
14566
- if (l + m > h.length)
14567
+ if (d + m > h.length)
14567
14568
  throw new RangeError("Index out of range");
14568
14569
  }
14569
- d.prototype.writeUintLE = d.prototype.writeUIntLE = function(c, l, m, v) {
14570
- if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14570
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(c, d, m, v) {
14571
+ if (c = +c, d = d >>> 0, m = m >>> 0, !v) {
14571
14572
  const Y = Math.pow(2, 8 * m) - 1;
14572
- Re(this, c, l, m, Y, 0);
14573
+ Re(this, c, d, m, Y, 0);
14573
14574
  }
14574
14575
  let w = 1, C = 0;
14575
- for (this[l] = c & 255; ++C < m && (w *= 256); )
14576
- this[l + C] = c / w & 255;
14577
- return l + m;
14578
- }, d.prototype.writeUintBE = d.prototype.writeUIntBE = function(c, l, m, v) {
14579
- if (c = +c, l = l >>> 0, m = m >>> 0, !v) {
14576
+ for (this[d] = c & 255; ++C < m && (w *= 256); )
14577
+ this[d + C] = c / w & 255;
14578
+ return d + m;
14579
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(c, d, m, v) {
14580
+ if (c = +c, d = d >>> 0, m = m >>> 0, !v) {
14580
14581
  const Y = Math.pow(2, 8 * m) - 1;
14581
- Re(this, c, l, m, Y, 0);
14582
+ Re(this, c, d, m, Y, 0);
14582
14583
  }
14583
14584
  let w = m - 1, C = 1;
14584
- for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14585
- this[l + w] = c / C & 255;
14586
- return l + m;
14587
- }, d.prototype.writeUint8 = d.prototype.writeUInt8 = function(c, l, m) {
14588
- return c = +c, l = l >>> 0, m || Re(this, c, l, 1, 255, 0), this[l] = c & 255, l + 1;
14589
- }, d.prototype.writeUint16LE = d.prototype.writeUInt16LE = function(c, l, m) {
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;
14591
- }, d.prototype.writeUint16BE = d.prototype.writeUInt16BE = function(c, l, m) {
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;
14593
- }, d.prototype.writeUint32LE = d.prototype.writeUInt32LE = function(c, l, m) {
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;
14595
- }, d.prototype.writeUint32BE = d.prototype.writeUInt32BE = function(c, l, m) {
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;
14585
+ for (this[d + w] = c & 255; --w >= 0 && (C *= 256); )
14586
+ this[d + w] = c / C & 255;
14587
+ return d + m;
14588
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(c, d, m) {
14589
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
14590
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(c, d, m) {
14591
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
14592
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(c, d, m) {
14593
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
14594
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(c, d, m) {
14595
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d + 3] = c >>> 24, this[d + 2] = c >>> 16, this[d + 1] = c >>> 8, this[d] = c & 255, d + 4;
14596
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(c, d, m) {
14597
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
14597
14598
  };
14598
- function ur(h, c, l, m, v) {
14599
- gr(c, m, v, h, l, 7);
14599
+ function dr(h, c, d, m, v) {
14600
+ gr(c, m, v, h, d, 7);
14600
14601
  let w = Number(c & BigInt(4294967295));
14601
- h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w, w = w >> 8, h[l++] = w;
14602
+ h[d++] = w, w = w >> 8, h[d++] = w, w = w >> 8, h[d++] = w, w = w >> 8, h[d++] = w;
14602
14603
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
14603
- return h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, C = C >> 8, h[l++] = C, l;
14604
+ return h[d++] = C, C = C >> 8, h[d++] = C, C = C >> 8, h[d++] = C, C = C >> 8, h[d++] = C, d;
14604
14605
  }
14605
- function dr(h, c, l, m, v) {
14606
- gr(c, m, v, h, l, 7);
14606
+ function ur(h, c, d, m, v) {
14607
+ gr(c, m, v, h, d, 7);
14607
14608
  let w = Number(c & BigInt(4294967295));
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;
14609
+ h[d + 7] = w, w = w >> 8, h[d + 6] = w, w = w >> 8, h[d + 5] = w, w = w >> 8, h[d + 4] = w;
14609
14610
  let C = Number(c >> BigInt(32) & BigInt(4294967295));
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;
14611
+ return h[d + 3] = C, C = C >> 8, h[d + 2] = C, C = C >> 8, h[d + 1] = C, C = C >> 8, h[d] = C, d + 8;
14611
14612
  }
14612
- d.prototype.writeBigUInt64LE = ut(function(c, l = 0) {
14613
- return ur(this, c, l, BigInt(0), BigInt("0xffffffffffffffff"));
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) {
14617
- if (c = +c, l = l >>> 0, !v) {
14613
+ u.prototype.writeBigUInt64LE = dt(function(c, d = 0) {
14614
+ return dr(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
14615
+ }), u.prototype.writeBigUInt64BE = dt(function(c, d = 0) {
14616
+ return ur(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
14617
+ }), u.prototype.writeIntLE = function(c, d, m, v) {
14618
+ if (c = +c, d = d >>> 0, !v) {
14618
14619
  const le = Math.pow(2, 8 * m - 1);
14619
- Re(this, c, l, m, le - 1, -le);
14620
+ Re(this, c, d, m, le - 1, -le);
14620
14621
  }
14621
14622
  let w = 0, C = 1, Y = 0;
14622
- for (this[l] = c & 255; ++w < m && (C *= 256); )
14623
- c < 0 && Y === 0 && this[l + w - 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14624
- return l + m;
14625
- }, d.prototype.writeIntBE = function(c, l, m, v) {
14626
- if (c = +c, l = l >>> 0, !v) {
14623
+ for (this[d] = c & 255; ++w < m && (C *= 256); )
14624
+ c < 0 && Y === 0 && this[d + w - 1] !== 0 && (Y = 1), this[d + w] = (c / C >> 0) - Y & 255;
14625
+ return d + m;
14626
+ }, u.prototype.writeIntBE = function(c, d, m, v) {
14627
+ if (c = +c, d = d >>> 0, !v) {
14627
14628
  const le = Math.pow(2, 8 * m - 1);
14628
- Re(this, c, l, m, le - 1, -le);
14629
+ Re(this, c, d, m, le - 1, -le);
14629
14630
  }
14630
14631
  let w = m - 1, C = 1, Y = 0;
14631
- for (this[l + w] = c & 255; --w >= 0 && (C *= 256); )
14632
- c < 0 && Y === 0 && this[l + w + 1] !== 0 && (Y = 1), this[l + w] = (c / C >> 0) - Y & 255;
14633
- return l + m;
14634
- }, d.prototype.writeInt8 = function(c, l, m) {
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;
14636
- }, d.prototype.writeInt16LE = function(c, l, m) {
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;
14638
- }, d.prototype.writeInt16BE = function(c, l, m) {
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;
14640
- }, d.prototype.writeInt32LE = function(c, l, m) {
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;
14642
- }, d.prototype.writeInt32BE = function(c, l, m) {
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;
14644
- }, d.prototype.writeBigInt64LE = ut(function(c, l = 0) {
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"));
14632
+ for (this[d + w] = c & 255; --w >= 0 && (C *= 256); )
14633
+ c < 0 && Y === 0 && this[d + w + 1] !== 0 && (Y = 1), this[d + w] = (c / C >> 0) - Y & 255;
14634
+ return d + m;
14635
+ }, u.prototype.writeInt8 = function(c, d, m) {
14636
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
14637
+ }, u.prototype.writeInt16LE = function(c, d, m) {
14638
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
14639
+ }, u.prototype.writeInt16BE = function(c, d, m) {
14640
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
14641
+ }, u.prototype.writeInt32LE = function(c, d, m) {
14642
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), this[d] = c & 255, this[d + 1] = c >>> 8, this[d + 2] = c >>> 16, this[d + 3] = c >>> 24, d + 4;
14643
+ }, u.prototype.writeInt32BE = function(c, d, m) {
14644
+ return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
14645
+ }, u.prototype.writeBigInt64LE = dt(function(c, d = 0) {
14646
+ return dr(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14647
+ }), u.prototype.writeBigInt64BE = dt(function(c, d = 0) {
14648
+ return ur(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
14648
14649
  });
14649
- function pr(h, c, l, m, v, w) {
14650
- if (l + m > h.length)
14650
+ function pr(h, c, d, m, v, w) {
14651
+ if (d + m > h.length)
14651
14652
  throw new RangeError("Index out of range");
14652
- if (l < 0)
14653
+ if (d < 0)
14653
14654
  throw new RangeError("Index out of range");
14654
14655
  }
14655
- function hr(h, c, l, m, v) {
14656
- return c = +c, l = l >>> 0, v || pr(h, c, l, 4), t.write(h, c, l, m, 23, 4), l + 4;
14656
+ function hr(h, c, d, m, v) {
14657
+ return c = +c, d = d >>> 0, v || pr(h, c, d, 4), t.write(h, c, d, m, 23, 4), d + 4;
14657
14658
  }
14658
- d.prototype.writeFloatLE = function(c, l, m) {
14659
- return hr(this, c, l, !0, m);
14660
- }, d.prototype.writeFloatBE = function(c, l, m) {
14661
- return hr(this, c, l, !1, m);
14659
+ u.prototype.writeFloatLE = function(c, d, m) {
14660
+ return hr(this, c, d, !0, m);
14661
+ }, u.prototype.writeFloatBE = function(c, d, m) {
14662
+ return hr(this, c, d, !1, m);
14662
14663
  };
14663
- function mr(h, c, l, m, v) {
14664
- return c = +c, l = l >>> 0, v || pr(h, c, l, 8), t.write(h, c, l, m, 52, 8), l + 8;
14664
+ function mr(h, c, d, m, v) {
14665
+ return c = +c, d = d >>> 0, v || pr(h, c, d, 8), t.write(h, c, d, m, 52, 8), d + 8;
14665
14666
  }
14666
- d.prototype.writeDoubleLE = function(c, l, m) {
14667
- return mr(this, c, l, !0, m);
14668
- }, d.prototype.writeDoubleBE = function(c, l, m) {
14669
- return mr(this, c, l, !1, m);
14670
- }, d.prototype.copy = function(c, l, m, v) {
14671
- if (!d.isBuffer(c))
14667
+ u.prototype.writeDoubleLE = function(c, d, m) {
14668
+ return mr(this, c, d, !0, m);
14669
+ }, u.prototype.writeDoubleBE = function(c, d, m) {
14670
+ return mr(this, c, d, !1, m);
14671
+ }, u.prototype.copy = function(c, d, m, v) {
14672
+ if (!u.isBuffer(c))
14672
14673
  throw new TypeError("argument should be a Buffer");
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)
14674
+ if (m || (m = 0), !v && v !== 0 && (v = this.length), d >= c.length && (d = c.length), d || (d = 0), v > 0 && v < m && (v = m), v === m || c.length === 0 || this.length === 0)
14674
14675
  return 0;
14675
- if (l < 0)
14676
+ if (d < 0)
14676
14677
  throw new RangeError("targetStart out of bounds");
14677
14678
  if (m < 0 || m >= this.length)
14678
14679
  throw new RangeError("Index out of range");
14679
14680
  if (v < 0)
14680
14681
  throw new RangeError("sourceEnd out of bounds");
14681
- v > this.length && (v = this.length), c.length - l < v - m && (v = c.length - l + m);
14682
+ v > this.length && (v = this.length), c.length - d < v - m && (v = c.length - d + m);
14682
14683
  const w = v - m;
14683
- return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(l, m, v) : i.prototype.set.call(
14684
+ return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(d, m, v) : i.prototype.set.call(
14684
14685
  c,
14685
14686
  this.subarray(m, v),
14686
- l
14687
+ d
14687
14688
  ), w;
14688
- }, d.prototype.fill = function(c, l, m, v) {
14689
+ }, u.prototype.fill = function(c, d, m, v) {
14689
14690
  if (typeof c == "string") {
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")
14691
+ if (typeof d == "string" ? (v = d, d = 0, m = this.length) : typeof m == "string" && (v = m, m = this.length), v !== void 0 && typeof v != "string")
14691
14692
  throw new TypeError("encoding must be a string");
14692
- if (typeof v == "string" && !d.isEncoding(v))
14693
+ if (typeof v == "string" && !u.isEncoding(v))
14693
14694
  throw new TypeError("Unknown encoding: " + v);
14694
14695
  if (c.length === 1) {
14695
14696
  const C = c.charCodeAt(0);
@@ -14697,27 +14698,27 @@ ir.write = function(n, e, t, r, o, i) {
14697
14698
  }
14698
14699
  } else
14699
14700
  typeof c == "number" ? c = c & 255 : typeof c == "boolean" && (c = Number(c));
14700
- if (l < 0 || this.length < l || this.length < m)
14701
+ if (d < 0 || this.length < d || this.length < m)
14701
14702
  throw new RangeError("Out of range index");
14702
- if (m <= l)
14703
+ if (m <= d)
14703
14704
  return this;
14704
- l = l >>> 0, m = m === void 0 ? this.length : m >>> 0, c || (c = 0);
14705
+ d = d >>> 0, m = m === void 0 ? this.length : m >>> 0, c || (c = 0);
14705
14706
  let w;
14706
14707
  if (typeof c == "number")
14707
- for (w = l; w < m; ++w)
14708
+ for (w = d; w < m; ++w)
14708
14709
  this[w] = c;
14709
14710
  else {
14710
- const C = d.isBuffer(c) ? c : d.from(c, v), Y = C.length;
14711
+ const C = u.isBuffer(c) ? c : u.from(c, v), Y = C.length;
14711
14712
  if (Y === 0)
14712
14713
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
14713
- for (w = 0; w < m - l; ++w)
14714
- this[w + l] = C[w % Y];
14714
+ for (w = 0; w < m - d; ++w)
14715
+ this[w + d] = C[w % Y];
14715
14716
  }
14716
14717
  return this;
14717
14718
  };
14718
14719
  const Et = {};
14719
- function Ln(h, c, l) {
14720
- Et[h] = class extends l {
14720
+ function Ln(h, c, d) {
14721
+ Et[h] = class extends d {
14721
14722
  constructor() {
14722
14723
  super(), Object.defineProperty(this, "message", {
14723
14724
  value: c.apply(this, arguments),
@@ -14755,27 +14756,27 @@ ir.write = function(n, e, t, r, o, i) {
14755
14756
  TypeError
14756
14757
  ), Ln(
14757
14758
  "ERR_OUT_OF_RANGE",
14758
- function(h, c, l) {
14759
- let m = `The value of "${h}" is out of range.`, v = l;
14760
- return Number.isInteger(l) && Math.abs(l) > 2 ** 32 ? v = fr(String(l)) : typeof l == "bigint" && (v = String(l), (l > BigInt(2) ** BigInt(32) || l < -(BigInt(2) ** BigInt(32))) && (v = fr(v)), v += "n"), m += ` It must be ${c}. Received ${v}`, m;
14759
+ function(h, c, d) {
14760
+ let m = `The value of "${h}" is out of range.`, v = d;
14761
+ return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? v = fr(String(d)) : typeof d == "bigint" && (v = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (v = fr(v)), v += "n"), m += ` It must be ${c}. Received ${v}`, m;
14761
14762
  },
14762
14763
  RangeError
14763
14764
  );
14764
14765
  function fr(h) {
14765
- let c = "", l = h.length;
14766
+ let c = "", d = h.length;
14766
14767
  const m = h[0] === "-" ? 1 : 0;
14767
- for (; l >= m + 4; l -= 3)
14768
- c = `_${h.slice(l - 3, l)}${c}`;
14769
- return `${h.slice(0, l)}${c}`;
14768
+ for (; d >= m + 4; d -= 3)
14769
+ c = `_${h.slice(d - 3, d)}${c}`;
14770
+ return `${h.slice(0, d)}${c}`;
14770
14771
  }
14771
- function xo(h, c, l) {
14772
- Tt(c, "offset"), (h[c] === void 0 || h[c + l] === void 0) && Kt(c, h.length - (l + 1));
14772
+ function xo(h, c, d) {
14773
+ Tt(c, "offset"), (h[c] === void 0 || h[c + d] === void 0) && Kt(c, h.length - (d + 1));
14773
14774
  }
14774
- function gr(h, c, l, m, v, w) {
14775
- if (h > l || h < c) {
14775
+ function gr(h, c, d, m, v, w) {
14776
+ if (h > d || h < c) {
14776
14777
  const C = typeof c == "bigint" ? "n" : "";
14777
14778
  let Y;
14778
- throw w > 3 ? c === 0 || c === BigInt(0) ? Y = `>= 0${C} and < 2${C} ** ${(w + 1) * 8}${C}` : Y = `>= -(2${C} ** ${(w + 1) * 8 - 1}${C}) and < 2 ** ${(w + 1) * 8 - 1}${C}` : Y = `>= ${c}${C} and <= ${l}${C}`, new Et.ERR_OUT_OF_RANGE("value", Y, h);
14779
+ throw w > 3 ? c === 0 || c === BigInt(0) ? Y = `>= 0${C} and < 2${C} ** ${(w + 1) * 8}${C}` : Y = `>= -(2${C} ** ${(w + 1) * 8 - 1}${C}) and < 2 ** ${(w + 1) * 8 - 1}${C}` : Y = `>= ${c}${C} and <= ${d}${C}`, new Et.ERR_OUT_OF_RANGE("value", Y, h);
14779
14780
  }
14780
14781
  xo(m, v, w);
14781
14782
  }
@@ -14783,10 +14784,10 @@ ir.write = function(n, e, t, r, o, i) {
14783
14784
  if (typeof h != "number")
14784
14785
  throw new Et.ERR_INVALID_ARG_TYPE(c, "number", h);
14785
14786
  }
14786
- function Kt(h, c, l) {
14787
- throw Math.floor(h) !== h ? (Tt(h, l), new Et.ERR_OUT_OF_RANGE(l || "offset", "an integer", h)) : c < 0 ? new Et.ERR_BUFFER_OUT_OF_BOUNDS() : new Et.ERR_OUT_OF_RANGE(
14788
- l || "offset",
14789
- `>= ${l ? 1 : 0} and <= ${c}`,
14787
+ function Kt(h, c, d) {
14788
+ throw Math.floor(h) !== h ? (Tt(h, d), new Et.ERR_OUT_OF_RANGE(d || "offset", "an integer", h)) : c < 0 ? new Et.ERR_BUFFER_OUT_OF_BOUNDS() : new Et.ERR_OUT_OF_RANGE(
14789
+ d || "offset",
14790
+ `>= ${d ? 1 : 0} and <= ${c}`,
14790
14791
  h
14791
14792
  );
14792
14793
  }
@@ -14800,57 +14801,57 @@ ir.write = function(n, e, t, r, o, i) {
14800
14801
  }
14801
14802
  function On(h, c) {
14802
14803
  c = c || 1 / 0;
14803
- let l;
14804
+ let d;
14804
14805
  const m = h.length;
14805
14806
  let v = null;
14806
14807
  const w = [];
14807
14808
  for (let C = 0; C < m; ++C) {
14808
- if (l = h.charCodeAt(C), l > 55295 && l < 57344) {
14809
+ if (d = h.charCodeAt(C), d > 55295 && d < 57344) {
14809
14810
  if (!v) {
14810
- if (l > 56319) {
14811
+ if (d > 56319) {
14811
14812
  (c -= 3) > -1 && w.push(239, 191, 189);
14812
14813
  continue;
14813
14814
  } else if (C + 1 === m) {
14814
14815
  (c -= 3) > -1 && w.push(239, 191, 189);
14815
14816
  continue;
14816
14817
  }
14817
- v = l;
14818
+ v = d;
14818
14819
  continue;
14819
14820
  }
14820
- if (l < 56320) {
14821
- (c -= 3) > -1 && w.push(239, 191, 189), v = l;
14821
+ if (d < 56320) {
14822
+ (c -= 3) > -1 && w.push(239, 191, 189), v = d;
14822
14823
  continue;
14823
14824
  }
14824
- l = (v - 55296 << 10 | l - 56320) + 65536;
14825
+ d = (v - 55296 << 10 | d - 56320) + 65536;
14825
14826
  } else
14826
14827
  v && (c -= 3) > -1 && w.push(239, 191, 189);
14827
- if (v = null, l < 128) {
14828
+ if (v = null, d < 128) {
14828
14829
  if ((c -= 1) < 0)
14829
14830
  break;
14830
- w.push(l);
14831
- } else if (l < 2048) {
14831
+ w.push(d);
14832
+ } else if (d < 2048) {
14832
14833
  if ((c -= 2) < 0)
14833
14834
  break;
14834
14835
  w.push(
14835
- l >> 6 | 192,
14836
- l & 63 | 128
14836
+ d >> 6 | 192,
14837
+ d & 63 | 128
14837
14838
  );
14838
- } else if (l < 65536) {
14839
+ } else if (d < 65536) {
14839
14840
  if ((c -= 3) < 0)
14840
14841
  break;
14841
14842
  w.push(
14842
- l >> 12 | 224,
14843
- l >> 6 & 63 | 128,
14844
- l & 63 | 128
14843
+ d >> 12 | 224,
14844
+ d >> 6 & 63 | 128,
14845
+ d & 63 | 128
14845
14846
  );
14846
- } else if (l < 1114112) {
14847
+ } else if (d < 1114112) {
14847
14848
  if ((c -= 4) < 0)
14848
14849
  break;
14849
14850
  w.push(
14850
- l >> 18 | 240,
14851
- l >> 12 & 63 | 128,
14852
- l >> 6 & 63 | 128,
14853
- l & 63 | 128
14851
+ d >> 18 | 240,
14852
+ d >> 12 & 63 | 128,
14853
+ d >> 6 & 63 | 128,
14854
+ d & 63 | 128
14854
14855
  );
14855
14856
  } else
14856
14857
  throw new Error("Invalid code point");
@@ -14859,24 +14860,24 @@ ir.write = function(n, e, t, r, o, i) {
14859
14860
  }
14860
14861
  function Ho(h) {
14861
14862
  const c = [];
14862
- for (let l = 0; l < h.length; ++l)
14863
- c.push(h.charCodeAt(l) & 255);
14863
+ for (let d = 0; d < h.length; ++d)
14864
+ c.push(h.charCodeAt(d) & 255);
14864
14865
  return c;
14865
14866
  }
14866
14867
  function qo(h, c) {
14867
- let l, m, v;
14868
+ let d, m, v;
14868
14869
  const w = [];
14869
14870
  for (let C = 0; C < h.length && !((c -= 2) < 0); ++C)
14870
- l = h.charCodeAt(C), m = l >> 8, v = l % 256, w.push(v), w.push(m);
14871
+ d = h.charCodeAt(C), m = d >> 8, v = d % 256, w.push(v), w.push(m);
14871
14872
  return w;
14872
14873
  }
14873
14874
  function _r(h) {
14874
14875
  return e.toByteArray(Do(h));
14875
14876
  }
14876
- function sn(h, c, l, m) {
14877
+ function sn(h, c, d, m) {
14877
14878
  let v;
14878
- for (v = 0; v < m && !(v + l >= c.length || v >= h.length); ++v)
14879
- c[v + l] = h[v];
14879
+ for (v = 0; v < m && !(v + d >= c.length || v >= h.length); ++v)
14880
+ c[v + d] = h[v];
14880
14881
  return v;
14881
14882
  }
14882
14883
  function $e(h, c) {
@@ -14887,14 +14888,14 @@ ir.write = function(n, e, t, r, o, i) {
14887
14888
  }
14888
14889
  const Fo = function() {
14889
14890
  const h = "0123456789abcdef", c = new Array(256);
14890
- for (let l = 0; l < 16; ++l) {
14891
- const m = l * 16;
14891
+ for (let d = 0; d < 16; ++d) {
14892
+ const m = d * 16;
14892
14893
  for (let v = 0; v < 16; ++v)
14893
- c[m + v] = h[l] + h[v];
14894
+ c[m + v] = h[d] + h[v];
14894
14895
  }
14895
14896
  return c;
14896
14897
  }();
14897
- function ut(h) {
14898
+ function dt(h) {
14898
14899
  return typeof BigInt > "u" ? jo : h;
14899
14900
  }
14900
14901
  function jo() {
@@ -15159,7 +15160,7 @@ const La = fo.Buffer, Mn = {
15159
15160
  }, ls = /* @__PURE__ */ y("img", {
15160
15161
  src: "https://cdn.tapni.co/icons/outlook.png",
15161
15162
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
15162
- }, null, -1), us = { key: 0 }, ds = {
15163
+ }, null, -1), ds = { key: 0 }, us = {
15163
15164
  key: 1,
15164
15165
  class: "button--loading-black button__loader"
15165
15166
  }, ps = /* @__PURE__ */ y("img", {
@@ -15229,7 +15230,7 @@ function Ps(n, e, t, r, o, i) {
15229
15230
  required: "",
15230
15231
  minlength: "8"
15231
15232
  }, null, 8, Qa), [
15232
- [dn, o.password]
15233
+ [un, o.password]
15233
15234
  ]),
15234
15235
  y("em", {
15235
15236
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
@@ -15278,7 +15279,7 @@ function Ps(n, e, t, r, o, i) {
15278
15279
  class: "button-center button button-90 google-button pointer"
15279
15280
  }, [
15280
15281
  ls,
15281
- n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15282
+ n.microsoftLoad ? (S(), P("span", us)) : (S(), P("span", ds, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15282
15283
  ])),
15283
15284
  n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
15284
15285
  key: 6,
@@ -15472,10 +15473,10 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15472
15473
  }, cc = /* @__PURE__ */ y("img", {
15473
15474
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
15474
15475
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
15475
- }, null, -1), lc = { key: 0 }, uc = {
15476
+ }, null, -1), lc = { key: 0 }, dc = {
15476
15477
  key: 1,
15477
15478
  class: "button--loading button__loader"
15478
- }, dc = /* @__PURE__ */ y("img", {
15479
+ }, uc = /* @__PURE__ */ y("img", {
15479
15480
  src: "https://cdn.tapni.co/icons/mail.png",
15480
15481
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
15481
15482
  }, 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 = {
@@ -15552,7 +15553,7 @@ function Cc(n, e, t, r, o, i) {
15552
15553
  required: "",
15553
15554
  minlength: "8"
15554
15555
  }, null, 8, Ws), [
15555
- [dn, o.password]
15556
+ [un, o.password]
15556
15557
  ]),
15557
15558
  y("em", {
15558
15559
  onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
@@ -15592,14 +15593,14 @@ function Cc(n, e, t, r, o, i) {
15592
15593
  class: "button-center button button-90 google-button pointer"
15593
15594
  }, [
15594
15595
  cc,
15595
- n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15596
+ n.facebookLoad ? (S(), P("span", dc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15596
15597
  ])) : te("", !0),
15597
15598
  o.emailLogin ? te("", !0) : (S(), P("a", {
15598
15599
  key: 4,
15599
15600
  onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
15600
15601
  class: "button-center button button-90 google-button pointer"
15601
15602
  }, [
15602
- dc,
15603
+ uc,
15603
15604
  y("span", null, z(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15604
15605
  ])),
15605
15606
  pc,
@@ -15906,7 +15907,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15906
15907
  }, al = {
15907
15908
  key: 1,
15908
15909
  class: "button--loading button__loader"
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 = {
15910
+ }, 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 = {
15910
15911
  class: "bold no-bottom center-text",
15911
15912
  style: { "margin-top": "63px" }
15912
15913
  }, 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" } }, [
@@ -15960,7 +15961,7 @@ function Ll(n, e, t, r, o, i) {
15960
15961
  placeholder: n.ssoLang[this.appLanguage].password,
15961
15962
  required: ""
15962
15963
  }, null, 8, vl), [
15963
- [dn, o.password]
15964
+ [un, o.password]
15964
15965
  ]),
15965
15966
  y("em", {
15966
15967
  onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
@@ -15981,7 +15982,7 @@ function Ll(n, e, t, r, o, i) {
15981
15982
  placeholder: n.ssoLang[this.appLanguage].password_repeat,
15982
15983
  required: ""
15983
15984
  }, null, 8, Cl), [
15984
- [dn, o.passwordRepeat]
15985
+ [un, o.passwordRepeat]
15985
15986
  ]),
15986
15987
  y("em", {
15987
15988
  onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
@@ -16040,9 +16041,9 @@ function Ll(n, e, t, r, o, i) {
16040
16041
  }, null, 8, ll),
16041
16042
  y("a", {
16042
16043
  href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
16043
- }, " support@tapni.com", 8, ul)
16044
+ }, " support@tapni.com", 8, dl)
16044
16045
  ]),
16045
- dl,
16046
+ ul,
16046
16047
  y("div", pl, [
16047
16048
  ke(a, {
16048
16049
  class: "create float-right",
@@ -16273,29 +16274,29 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16273
16274
  class: "responsive-image",
16274
16275
  style: { width: "45%" }
16275
16276
  })
16276
- ], -1)), eu = [
16277
+ ], -1)), ed = [
16277
16278
  Zl
16278
- ], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16279
+ ], td = { class: "bold center-text color-black half-top half-bottom" }, nd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16279
16280
  src: "https://cdn.tapni.co/icons/azure.png",
16280
16281
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16281
- }, null, -1)), ru = { key: 0 }, ou = {
16282
+ }, null, -1)), rd = { key: 0 }, od = {
16282
16283
  key: 1,
16283
16284
  class: "button--loading button__loader"
16284
- }, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16285
+ }, id = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16285
16286
  src: "https://cdn.tapni.co/icons/okta.png",
16286
16287
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16287
- }, null, -1)), au = { key: 0 }, su = {
16288
+ }, null, -1)), ad = { key: 0 }, sd = {
16288
16289
  key: 1,
16289
16290
  class: "button--loading button__loader"
16290
- }, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16291
+ }, cd = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
16291
16292
  src: "https://cdn.tapni.co/icons/saml.png",
16292
16293
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
16293
- }, null, -1)), lu = { key: 0 }, uu = {
16294
+ }, null, -1)), ld = { key: 0 }, dd = {
16294
16295
  key: 1,
16295
16296
  class: "button--loading button__loader"
16296
16297
  };
16297
- function du(n, e, t, r, o, i) {
16298
- var a, s, u;
16298
+ function ud(n, e, t, r, o, i) {
16299
+ var a, s, l;
16299
16300
  return S(), P("form", {
16300
16301
  onSubmit: e[4] || (e[4] = Oe(() => {
16301
16302
  }, ["prevent"])),
@@ -16306,35 +16307,35 @@ function du(n, e, t, r, o, i) {
16306
16307
  onClick: e[0] || (e[0] = (...p) => i.forceClose && i.forceClose(...p)),
16307
16308
  class: "color-black pull-right pointer",
16308
16309
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16309
- }, eu),
16310
- y("h3", tu, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16310
+ }, ed),
16311
+ y("h3", td, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16311
16312
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16312
16313
  key: 0,
16313
16314
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16314
16315
  class: "button-center button black-button button-90 google-button pointer"
16315
16316
  }, [
16316
- nu,
16317
- o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16317
+ nd,
16318
+ o.azureLoad ? (S(), P("span", od)) : (S(), P("span", rd, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16318
16319
  ])) : te("", !0),
16319
16320
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16320
16321
  key: 1,
16321
16322
  onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
16322
16323
  class: "button-center button black-button button-90 google-button pointer"
16323
16324
  }, [
16324
- iu,
16325
- o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16325
+ id,
16326
+ o.oktaLoad ? (S(), P("span", sd)) : (S(), P("span", ad, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16326
16327
  ])) : te("", !0),
16327
- (u = o.sso) != null && u.saml ? (S(), P("a", {
16328
+ (l = o.sso) != null && l.saml ? (S(), P("a", {
16328
16329
  key: 2,
16329
16330
  onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
16330
16331
  class: "button-center button black-button button-90 google-button pointer"
16331
16332
  }, [
16332
- cu,
16333
- o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16333
+ cd,
16334
+ o.samlLoad ? (S(), P("span", dd)) : (S(), P("span", ld, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16334
16335
  ])) : te("", !0)
16335
16336
  ], 34);
16336
16337
  }
16337
- const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
16338
+ const Eo = /* @__PURE__ */ We(Xl, [["render", ud], ["__scopeId", "data-v-4f821f65"]]), pd = {
16338
16339
  name: "LinkIcon",
16339
16340
  mixins: [De],
16340
16341
  props: {
@@ -16406,8 +16407,8 @@ const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
16406
16407
  }
16407
16408
  },
16408
16409
  methods: {}
16409
- }, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
16410
- function _u(n, e, t, r, o, i) {
16410
+ }, hd = ["src", "alt"], md = ["src", "alt"], fd = ["src", "alt"], gd = ["src", "alt"];
16411
+ function _d(n, e, t, r, o, i) {
16411
16412
  var a, s;
16412
16413
  return S(), P("a", {
16413
16414
  class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
@@ -16428,31 +16429,31 @@ function _u(n, e, t, r, o, i) {
16428
16429
  src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
16429
16430
  class: "responsive-image",
16430
16431
  alt: t.data.text,
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", {
16432
+ onLoad: e[0] || (e[0] = (l) => n.$emit("loaded")),
16433
+ onError: e[1] || (e[1] = (l) => n.$emit("loaded"))
16434
+ }, null, 40, hd)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
16434
16435
  key: 1,
16435
16436
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
16436
16437
  class: "responsive-image",
16437
16438
  alt: t.data.text,
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", {
16439
+ onLoad: e[2] || (e[2] = (l) => n.$emit("loaded")),
16440
+ onError: e[3] || (e[3] = (l) => n.$emit("loaded"))
16441
+ }, null, 40, md)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
16441
16442
  key: 2,
16442
16443
  src: "https://cdn.tapni.co/icons/customlink.png",
16443
16444
  class: "responsive-image",
16444
16445
  alt: t.data.text,
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", {
16446
+ onLoad: e[4] || (e[4] = (l) => n.$emit("loaded")),
16447
+ onError: e[5] || (e[5] = (l) => n.$emit("loaded"))
16448
+ }, null, 40, fd)) : (S(), P("img", {
16448
16449
  key: 3,
16449
16450
  src: t.data.style.custom_icon,
16450
16451
  style: { "border-radius": "22.46%" },
16451
16452
  class: "responsive-image",
16452
16453
  alt: t.data.text,
16453
- onLoad: e[6] || (e[6] = (u) => n.$emit("loaded")),
16454
- onError: e[7] || (e[7] = (u) => n.$emit("loaded"))
16455
- }, null, 40, gu))
16454
+ onLoad: e[6] || (e[6] = (l) => n.$emit("loaded")),
16455
+ onError: e[7] || (e[7] = (l) => n.$emit("loaded"))
16456
+ }, null, 40, gd))
16456
16457
  ], 6),
16457
16458
  y("span", {
16458
16459
  class: "link-text link-drag color-black",
@@ -16460,17 +16461,17 @@ function _u(n, e, t, r, o, i) {
16460
16461
  }, z(i.linkText), 5)
16461
16462
  ], 6);
16462
16463
  }
16463
- const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16464
+ const vd = /* @__PURE__ */ We(pd, [["render", _d]]), yd = {
16464
16465
  ANDROID_VERSION: "5.6",
16465
16466
  IOS_VERSION: "5.6",
16466
16467
  WEB_VERSION: "5.6.0",
16467
16468
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
16468
16469
  METAPIXEL_ID: "1203678696914368",
16469
16470
  GOOGLE_ANALYTICS_ID: ""
16470
- }, ku = {
16471
+ }, kd = {
16471
16472
  name: "Language",
16472
16473
  mixins: [De],
16473
- components: { LinkIcon: vu },
16474
+ components: { LinkIcon: vd },
16474
16475
  data() {
16475
16476
  return {
16476
16477
  toggle: !1
@@ -16481,7 +16482,7 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16481
16482
  this.toggle = !1;
16482
16483
  });
16483
16484
  let n = this.isNative ? await pn.getLanguageCode() : Ut.getFirstBrowserLanguage();
16484
- n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16485
+ n && yd.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16485
16486
  },
16486
16487
  beforeDestroy() {
16487
16488
  U._events.toggleLanguageModal.pop();
@@ -16500,16 +16501,16 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16500
16501
  this.toggle = !this.toggle;
16501
16502
  }
16502
16503
  }
16503
- }, wu = (n) => (Ht("data-v-34a6b7b2"), n = n(), qt(), n), bu = /* @__PURE__ */ wu(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16504
+ }, wd = (n) => (Ht("data-v-34a6b7b2"), n = n(), qt(), n), bd = /* @__PURE__ */ wd(() => /* @__PURE__ */ y("i", { class: "font-17 fa color-black" }, [
16504
16505
  /* @__PURE__ */ y("img", {
16505
16506
  src: "https://cdn.tapni.co/icons/down-arrow.png",
16506
16507
  class: "fa responsive-image",
16507
16508
  style: { width: "45%" }
16508
16509
  })
16509
- ], -1)), Cu = [
16510
- bu
16511
- ], Eu = { class: "bold center-text color-black small-bottom" };
16512
- function Tu(n, e, t, r, o, i) {
16510
+ ], -1)), Cd = [
16511
+ bd
16512
+ ], Ed = { class: "bold center-text color-black small-bottom" };
16513
+ function Td(n, e, t, r, o, i) {
16513
16514
  const a = Dt("LinkIcon");
16514
16515
  return S(), P("div", {
16515
16516
  class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
@@ -16519,8 +16520,8 @@ function Tu(n, e, t, r, o, i) {
16519
16520
  onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
16520
16521
  class: "color-black pull-right pointer",
16521
16522
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16522
- }, Cu),
16523
- y("h3", Eu, z(n.ssoLang[n.appLanguage].app_language), 1),
16523
+ }, Cd),
16524
+ y("h3", Ed, z(n.ssoLang[n.appLanguage].app_language), 1),
16524
16525
  ke(a, {
16525
16526
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16526
16527
  "link-style": "link-grid",
@@ -16579,38 +16580,38 @@ function Tu(n, e, t, r, o, i) {
16579
16580
  }, null, 8, ["data"])
16580
16581
  ], 2);
16581
16582
  }
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 = {
16583
+ const To = /* @__PURE__ */ We(kd, [["render", Td], ["__scopeId", "data-v-34a6b7b2"]]);
16584
+ 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 };
16585
+ const Sd = { id: "ssoapp" }, Ad = {
16585
16586
  key: 0,
16586
16587
  href: "/",
16587
16588
  class: "header-logo"
16588
- }, Ru = /* @__PURE__ */ y("img", {
16589
+ }, Rd = /* @__PURE__ */ y("img", {
16589
16590
  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",
16590
16591
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
16591
16592
  class: "header-logo-img"
16592
- }, null, -1), Pu = [
16593
- Ru
16594
- ], Mu = { class: "lang-icon" }, Nu = {
16593
+ }, null, -1), Pd = [
16594
+ Rd
16595
+ ], Md = { class: "lang-icon" }, Nd = {
16595
16596
  class: "snackbar snackbar-boxed",
16596
16597
  id: "snackbar"
16597
- }, Lu = {
16598
+ }, Ld = {
16598
16599
  class: "snack-body",
16599
16600
  id: "errorSnack"
16600
- }, Ou = { id: "errorMessage" }, zu = /* @__PURE__ */ y("img", {
16601
+ }, Od = { id: "errorMessage" }, zd = /* @__PURE__ */ y("img", {
16601
16602
  src: "https://cdn.tapni.co/icons/notification-close.png",
16602
16603
  style: { width: "100%" }
16603
- }, null, -1), Uu = [
16604
- zu
16605
- ], xu = {
16604
+ }, null, -1), Ud = [
16605
+ zd
16606
+ ], xd = {
16606
16607
  class: "snack-body",
16607
16608
  id: "successSnack"
16608
- }, Bu = { id: "successMessage" }, Du = /* @__PURE__ */ y("img", {
16609
+ }, Bd = { id: "successMessage" }, Dd = /* @__PURE__ */ y("img", {
16609
16610
  src: "https://cdn.tapni.co/icons/notification-close.png",
16610
16611
  style: { width: "100%" }
16611
- }, null, -1), Hu = [
16612
- Du
16613
- ], qu = {
16612
+ }, null, -1), Hd = [
16613
+ Dd
16614
+ ], qd = {
16614
16615
  name: "TapniAuth",
16615
16616
  mixins: [De],
16616
16617
  data() {
@@ -16679,20 +16680,20 @@ const Su = { id: "ssoapp" }, Au = {
16679
16680
  });
16680
16681
  }
16681
16682
  }
16682
- }, Hr = /* @__PURE__ */ Object.assign(qu, {
16683
+ }, Hr = /* @__PURE__ */ Object.assign(qd, {
16683
16684
  setup(n) {
16684
16685
  return document.addEventListener("DOMContentLoaded", function() {
16685
16686
  const e = document.createElement("script");
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),
16687
+ e.src = `https://www.google.com/recaptcha/api.js?render=${Id.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
16688
+ }), (e, t) => (S(), P("div", Sd, [
16689
+ e.display === "redirect" || e.renderView.includes("Auth") ? (S(), P("a", Ad, Pd)) : te("", !0),
16689
16690
  e.display === "redirect" ? (S(), P("a", {
16690
16691
  key: 1,
16691
16692
  onClick: t[0] || (t[0] = (...r) => e.toggleLanguageModal && e.toggleLanguageModal(...r)),
16692
16693
  class: "font-18 no-border pointer color-black",
16693
16694
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16694
16695
  }, [
16695
- y("span", Mu, z(e.appLanguage.toUpperCase()), 1)
16696
+ y("span", Md, z(e.appLanguage.toUpperCase()), 1)
16696
16697
  ])) : te("", !0),
16697
16698
  ke(bo),
16698
16699
  n.isModal ? te("", !0) : (S(), qe(To, { key: 2 })),
@@ -16708,25 +16709,25 @@ const Su = { id: "ssoapp" }, Au = {
16708
16709
  key: 8,
16709
16710
  isModal: n.isModal
16710
16711
  }, 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),
16711
- y("div", Nu, [
16712
- y("p", Lu, [
16713
- y("span", Ou, z(e.ssoLang[e.appLanguage].error), 1),
16712
+ y("div", Nd, [
16713
+ y("p", Ld, [
16714
+ y("span", Od, z(e.ssoLang[e.appLanguage].error), 1),
16714
16715
  y("a", {
16715
16716
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16716
16717
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16717
- }, Uu)
16718
+ }, Ud)
16718
16719
  ]),
16719
- y("p", xu, [
16720
- y("span", Bu, z(e.ssoLang[e.appLanguage].success), 1),
16720
+ y("p", xd, [
16721
+ y("span", Bd, z(e.ssoLang[e.appLanguage].success), 1),
16721
16722
  y("a", {
16722
16723
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16723
16724
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16724
- }, Hu)
16725
+ }, Hd)
16725
16726
  ])
16726
16727
  ])
16727
16728
  ]));
16728
16729
  }
16729
- }), Zu = {
16730
+ }), Zd = {
16730
16731
  TapniAuth: Hr,
16731
16732
  AuthMixin: De,
16732
16733
  install: (n, e) => {
@@ -16734,5 +16735,5 @@ const Su = { id: "ssoapp" }, Au = {
16734
16735
  }
16735
16736
  };
16736
16737
  export {
16737
- Zu as default
16738
+ Zd as default
16738
16739
  };