@tapni/auth 1.0.6-3.dev → 1.0.6-4.dev

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,7 +1,7 @@
1
1
  import { reactive as qr, readonly as xi, resolveComponent as rn, openBlock as L, createElementBlock as U, createElementVNode as _, toDisplayString as B, createCommentVNode as le, createVNode as lt, withCtx as $e, createTextVNode as Ee, createStaticVNode as Ui, nextTick as So, withModifiers as Ze, normalizeStyle as or, withDirectives as _e, withKeys as fn, vModelText as ct, vModelDynamic as mr, vShow as kt, createBlock as ze, normalizeClass as mn, vModelCheckbox as Io, defineComponent as ei, mergeModels as Ao, useModel as Bi, ref as wn, computed as Ro, watch as io, onMounted as Di, onBeforeUnmount as ji, renderSlot as Wt, Fragment as Hr, renderList as Fr, Teleport as qi, unref as Hi } from "vue";
2
2
  import { createRouter as Fi, createWebHistory as Ki, RouterView as Gi } from "vue-router";
3
3
  import { createNamespacedHelpers as Vi, createStore as Qi } from "vuex";
4
- import { Capacitor as Vn, registerPlugin as Ar, WebPlugin as $i } from "@capacitor/core";
4
+ import { Capacitor as Gn, registerPlugin as Ar, WebPlugin as $i } from "@capacitor/core";
5
5
  import we from "await-to-js";
6
6
  import ao from "axios";
7
7
  import { jwtDecode as ti } from "jwt-decode";
@@ -583,7 +583,7 @@ co.write = function(n, e, t, r, o, i) {
583
583
  }, u.prototype.lastIndexOf = function(c, d, g) {
584
584
  return te(this, c, d, g, !1);
585
585
  };
586
- function ne(h, c, d, g) {
586
+ function re(h, c, d, g) {
587
587
  d = Number(d) || 0;
588
588
  const w = h.length - d;
589
589
  g ? (g = Number(g), g > w && (g = w)) : g = w;
@@ -628,7 +628,7 @@ co.write = function(n, e, t, r, o, i) {
628
628
  for (; ; )
629
629
  switch (w) {
630
630
  case "hex":
631
- return ne(this, c, d, g);
631
+ return re(this, c, d, g);
632
632
  case "utf8":
633
633
  case "utf-8":
634
634
  return Ce(this, c, d, g);
@@ -1144,7 +1144,7 @@ co.write = function(n, e, t, r, o, i) {
1144
1144
  throw new Error("BigInt not supported");
1145
1145
  }
1146
1146
  })(so);
1147
- const bn = so.Buffer, la = so.Buffer, ur = qr(/* @__PURE__ */ new Map()), re = {
1147
+ const bn = so.Buffer, la = so.Buffer, ur = qr(/* @__PURE__ */ new Map()), ne = {
1148
1148
  $on(n, e) {
1149
1149
  let t = ur.get(n);
1150
1150
  t || (t = /* @__PURE__ */ new Set(), ur.set(n, t)), t.add(e);
@@ -1160,14 +1160,14 @@ const bn = so.Buffer, la = so.Buffer, ur = qr(/* @__PURE__ */ new Map()), re = {
1160
1160
  t && t.delete(e);
1161
1161
  }
1162
1162
  };
1163
- xi(re);
1163
+ xi(ne);
1164
1164
  const ua = {
1165
1165
  computed: {
1166
1166
  home() {
1167
- return this.$storex && this.$storex.token && this.$storex.username ? "/account" : "/welcome";
1167
+ return this.$storex && this.$storex.token && this.$storex.username ? "/" + this.$storex.username : "/welcome";
1168
1168
  },
1169
1169
  isAndroid() {
1170
- return /Android/i.test(navigator.userAgent) || Vn.getPlatform() === "android";
1170
+ return /Android/i.test(navigator.userAgent) || Gn.getPlatform() === "android";
1171
1171
  },
1172
1172
  isiOS() {
1173
1173
  return [
@@ -1177,10 +1177,10 @@ const ua = {
1177
1177
  "iPad",
1178
1178
  "iPhone",
1179
1179
  "iPod"
1180
- ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || Vn.getPlatform() === "ios";
1180
+ ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || Gn.getPlatform() === "ios";
1181
1181
  },
1182
1182
  isNative() {
1183
- return Vn.isNativePlatform();
1183
+ return Gn.isNativePlatform();
1184
1184
  }
1185
1185
  },
1186
1186
  methods: {
@@ -1350,7 +1350,7 @@ const ua = {
1350
1350
  console.error("Play was interrupted:", e);
1351
1351
  }
1352
1352
  }), setTimeout(() => {
1353
- this.$storex && this.$storex.token ? location.href = this.home : re.$emit("ssoEvent", { name: "setLoading", data: !1 });
1353
+ this.$storex && this.$storex.token ? this.$router.push(this.home) : ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
1354
1354
  }, 500);
1355
1355
  },
1356
1356
  methods: {}
@@ -1411,7 +1411,7 @@ function ka(n, e, t, r, o, i) {
1411
1411
  const lo = /* @__PURE__ */ an(ma, [["render", ka], ["__scopeId", "data-v-465df13a"]]), Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1412
1412
  __proto__: null,
1413
1413
  default: lo
1414
- }, Symbol.toStringTag, { value: "Module" })), Kn = {
1414
+ }, Symbol.toStringTag, { value: "Module" })), Fn = {
1415
1415
  getMe() {
1416
1416
  return pe().get("/users/me");
1417
1417
  },
@@ -6846,7 +6846,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
6846
6846
  app_region: "Região",
6847
6847
  app_region_p: "Selecione sua região para experiência de faturamento e suporte personalizada"
6848
6848
  }
6849
- }, Mo = () => Promise.resolve().then(() => Ca), Ia = () => Promise.resolve().then(() => Mc), Aa = () => Promise.resolve().then(() => Ll), Ra = () => Promise.resolve().then(() => up), Pa = () => Promise.resolve().then(() => al), Ma = () => Promise.resolve().then(() => $l), Na = () => Promise.resolve().then(() => gp), La = () => import("./QR-Bvqb60-E.js"), Oa = () => Promise.resolve().then(() => $u), za = () => import("./Apps-XNA4_3B4.js"), xa = () => import("./Billing-Br0-fHed.js"), Ua = () => import("./CustomApp-CrlbYDOm.js"), Ba = () => Promise.resolve().then(() => zd), Da = [
6849
+ }, Mo = () => Promise.resolve().then(() => Ca), Ia = () => Promise.resolve().then(() => Mc), Aa = () => Promise.resolve().then(() => Ll), Ra = () => Promise.resolve().then(() => up), Pa = () => Promise.resolve().then(() => al), Ma = () => Promise.resolve().then(() => $l), Na = () => Promise.resolve().then(() => gp), La = () => import("./QR-ByY4IUiV.js"), Oa = () => Promise.resolve().then(() => $u), za = () => import("./Apps-DRhdYq0_.js"), xa = () => import("./Billing-DkXdzGvS.js"), Ua = () => import("./CustomApp-Dw80xmqU.js"), Ba = () => Promise.resolve().then(() => zd), Da = [
6850
6850
  {
6851
6851
  path: "/welcome",
6852
6852
  name: "AuthWelcome",
@@ -6947,8 +6947,8 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
6947
6947
  pt: Sa.state,
6948
6948
  ja: Ta.state
6949
6949
  },
6950
- display: "redirect",
6951
- redirect_uri: "https://tapni.com/app/callback/auth",
6950
+ display: "npm",
6951
+ redirect_uri: "undefined/app/callback/auth",
6952
6952
  response_type: "token",
6953
6953
  state: "",
6954
6954
  allowedOriginsAuth: ["https://business.tapni.com", "https://business-dev.tapni.com", "https://tapni.com", "https://tapni.co", "https://t.link", "https://my.tapni.com", "https://my.tapni.co", "https://dev.tapni.co", "https://dev.tapni.com", "https://auth.tapni.com", "https://auth.tapni.co", "https://dev.mailsign.link", "https://mailsign.link", "https://sign.tapni.com", "https://qrcodetoolkit.com", "https://qr.tapni.com", "https://designer.tapni.com", "https://designer-dev.tapni.com", "http://localhost:8080", "https://localhost:8080", "http://localhost:8081", "http://localhost:7777", "https://localhost:7777", "http://localhost:8086", "https://localhost:8085", "http://localhost:8085", "http://localhost", "https://localhost", "https://bigeye.tapni.com", "https://bigeye-dev.tapni.com"]
@@ -7027,7 +7027,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7027
7027
  if (e.response.data.error === "ACCESS_DENIED")
7028
7028
  return n("logout");
7029
7029
  if (e.response.data.error === "OTP_REQUIRED")
7030
- return re.$emit("toggleOTPField", !0);
7030
+ return ne.$emit("toggleOTPField", !0);
7031
7031
  !e.response.data.error.includes("Network Error") && !e.response.data.error.includes("TOKEN_EXPIRED") && !e.response.data.error.includes("Cannot read properties") && n("errorSnack", e.response.data.error);
7032
7032
  }
7033
7033
  return e;
@@ -7048,7 +7048,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7048
7048
  document.getElementById("snackbar").classList.remove("show-snack"), document.getElementById("successSnack").classList.remove("active-snack"), document.getElementById("errorSnack").classList.remove("active-snack");
7049
7049
  },
7050
7050
  async eventLog({ commit: n, dispatch: e }, t) {
7051
- const [r, o] = await we(Kn.eventLog(t));
7051
+ const [r, o] = await we(Fn.eventLog(t));
7052
7052
  return r ? e("errorHandler", r) : o;
7053
7053
  },
7054
7054
  async maintenance({ commit: n }) {
@@ -7079,7 +7079,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7079
7079
  username: r,
7080
7080
  UserId: t.loggedInAccounts[r].id,
7081
7081
  localUser: t.loggedInAccounts[r]
7082
- }), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])), re.$emit("ssoEvent", { name: "switchAccount", data: { username: r } });
7082
+ }), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])), ne.$emit("ssoEvent", { name: "switchAccount", data: { username: r } });
7083
7083
  },
7084
7084
  async refreshTokenAction({ dispatch: n, commit: e, state: t, getters: r }, o) {
7085
7085
  if (t.refreshing)
@@ -7092,7 +7092,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7092
7092
  refreshTokenAction: !0
7093
7093
  })
7094
7094
  );
7095
- i && i.response && i.response.data.error === "ACCESS_DENIED" && (n("logout", { refreshToken: r.refreshTokens[0] }), setTimeout(() => location.reload(), 1500)), a && a.data && (e("setToken", a.data.token), re.$emit("ssoEvent", { name: "setStorage", data: t.$storex })), t.refreshing = !1;
7095
+ i && i.response && i.response.data.error === "ACCESS_DENIED" && (n("logout", { refreshToken: r.refreshTokens[0] }), setTimeout(() => location.reload(), 1500)), a && a.data && (e("setToken", a.data.token), ne.$emit("ssoEvent", { name: "setStorage", data: t.$storex })), t.refreshing = !1;
7096
7096
  },
7097
7097
  async login({ commit: n, state: e, dispatch: t }, r) {
7098
7098
  const [o, i] = await we(nt.login(r));
@@ -7106,7 +7106,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7106
7106
  e.display === "popup" ? e.allowedOriginsAuth.forEach((i) => {
7107
7107
  var a;
7108
7108
  (a = window.parent) == null || a.postMessage({ code: o.data.auth_code, state: e.state }, i);
7109
- }) : e.display === "npm" && (re.$emit("ssoEvent", { name: "setLoading", data: !0 }), re.$emit("ssoEvent", { name: "setStorage", data: e.$storex }), re.$emit("ssoEvent", { name: "getUser", data: { username: o.data.data.username } }), t("setLoggedInAccounts", [
7109
+ }) : e.display === "npm" && (ne.$emit("ssoEvent", { name: "setLoading", data: !0 }), ne.$emit("ssoEvent", { name: "setStorage", data: e.$storex }), ne.$emit("ssoEvent", { name: "getUser", data: { username: o.data.data.username } }), t("setLoggedInAccounts", [
7110
7110
  {
7111
7111
  id: o.data.data.id,
7112
7112
  username: o.data.data.username,
@@ -7116,7 +7116,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7116
7116
  }
7117
7117
  ]), o.isModal && (t("successSnack", e.ssoLang[r.appLanguage].success_login), setTimeout(() => {
7118
7118
  location.reload();
7119
- }, 1500)), re.$emit("ssoEvent", { name: "redirect", data: "/" + o.data.data.username + "#edit" }));
7119
+ }, 1500)), ne.$emit("ssoEvent", { name: "redirect", data: "/" + o.data.data.username + "#edit" }));
7120
7120
  },
7121
7121
  async register({ commit: n, dispatch: e }, t) {
7122
7122
  const [r, o] = await we(nt.register(t));
@@ -7141,11 +7141,11 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7141
7141
  return r ? e("errorHandler", r) : o.data.success;
7142
7142
  },
7143
7143
  async newPassword({ commit: n, dispatch: e }, t) {
7144
- const [r, o] = await we(Kn.newPassword(t));
7144
+ const [r, o] = await we(Fn.newPassword(t));
7145
7145
  return r ? e("errorHandler", r) : o.data.success;
7146
7146
  },
7147
7147
  async deleteAccount({ commit: n, dispatch: e }, t) {
7148
- const [r, o] = await we(Kn.deleteAccount(t));
7148
+ const [r, o] = await we(Fn.deleteAccount(t));
7149
7149
  return r ? e("errorHandler", r) : o.data.success;
7150
7150
  },
7151
7151
  async registerDevice({ commit: n, dispatch: e }) {
@@ -7183,13 +7183,13 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7183
7183
  UserId: t.loggedInAccounts[a].id,
7184
7184
  localUser: t.loggedInAccounts[a]
7185
7185
  }), n("setRefreshToken", i[0]), n("setLoggedInUserId", t.loggedInAccounts[a].id), e("refreshTokenAction", t.loggedInAccounts[a]).then(() => {
7186
- re.$emit("ssoEvent", { name: "switchAccount", data: { username: a } });
7186
+ ne.$emit("ssoEvent", { name: "switchAccount", data: { username: a } });
7187
7187
  }));
7188
7188
  });
7189
7189
  else {
7190
7190
  if (t.display === "redirect")
7191
7191
  return No.push("/welcome");
7192
- t.display === "npm" && re.$emit("ssoEvent", { name: "redirect", data: "/welcome" });
7192
+ t.display === "npm" && ne.$emit("ssoEvent", { name: "redirect", data: "/welcome" });
7193
7193
  }
7194
7194
  },
7195
7195
  async getCompanyBySSOEmail({ commit: n, dispatch: e }, t) {
@@ -7206,11 +7206,11 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7206
7206
  }
7207
7207
  },
7208
7208
  async loginUsingQR({ commit: n, dispatch: e }, t) {
7209
- const [r, o] = await we(Kn.loginUsingQR(t));
7209
+ const [r, o] = await we(Fn.loginUsingQR(t));
7210
7210
  return r ? e("errorHandler", r) : o.data.success;
7211
7211
  },
7212
7212
  setLoggedInAccounts({ commit: n }, e) {
7213
- n("setLoggedInAccounts", e), re.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
7213
+ n("setLoggedInAccounts", e), ne.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
7214
7214
  },
7215
7215
  setLoggedInUserId({ commit: n }, e) {
7216
7216
  n("setLoggedInUserId", e);
@@ -7265,7 +7265,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
7265
7265
  }
7266
7266
  }), pe = (n = null, e = "v1") => {
7267
7267
  const t = e;
7268
- let r = "http://localhost:8888/" + e + "/";
7268
+ let r = "https://api-dev.tapni.com/" + e + "/";
7269
7269
  At.getters["auth/apiRoot"] && (r = At.getters["auth/apiRoot"] + "/" + e + "/");
7270
7270
  let o = ao.create({
7271
7271
  baseURL: r,
@@ -7392,7 +7392,7 @@ const nt = {
7392
7392
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
7393
7393
  const [r, o] = await we(nt.googleSDK(e, this.$storex));
7394
7394
  if (r)
7395
- return this.googleLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
7395
+ return this.googleLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
7396
7396
  if (o.data.success) {
7397
7397
  if (this.display === "popup")
7398
7398
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -7401,7 +7401,7 @@ const nt = {
7401
7401
  }, 1e3);
7402
7402
  } else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
7403
7403
  } else
7404
- this.googleLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 });
7404
+ this.googleLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
7405
7405
  }
7406
7406
  }
7407
7407
  }, ja = Ar("SignInWithApple", {
@@ -7433,7 +7433,7 @@ const nt = {
7433
7433
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
7434
7434
  const [r, o] = await we(nt.appleSDK(e.response, this.$storex));
7435
7435
  if (r)
7436
- return this.appleLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
7436
+ return this.appleLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
7437
7437
  if (o.data.success) {
7438
7438
  if (this.display === "popup")
7439
7439
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -7442,7 +7442,7 @@ const nt = {
7442
7442
  }, 1e3);
7443
7443
  } else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
7444
7444
  } else
7445
- this.appleLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 });
7445
+ this.appleLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
7446
7446
  }
7447
7447
  }
7448
7448
  };
@@ -7820,10 +7820,10 @@ var et = {
7820
7820
  NONE: "none",
7821
7821
  CREATE: "create",
7822
7822
  NO_SESSION: "no_session"
7823
- }, Qn;
7823
+ }, Vn;
7824
7824
  (function(n) {
7825
7825
  n.ACCOUNT = "account", n.SID = "sid", n.LOGIN_HINT = "login_hint", n.ID_TOKEN = "id_token", n.DOMAIN_HINT = "domain_hint", n.ORGANIZATIONS = "organizations", n.CONSUMERS = "consumers", n.ACCOUNT_ID = "accountIdentifier", n.HOMEACCOUNT_ID = "homeAccountIdentifier";
7826
- })(Qn || (Qn = {}));
7826
+ })(Vn || (Vn = {}));
7827
7827
  var xo = {
7828
7828
  PLAIN: "plain",
7829
7829
  S256: "S256"
@@ -7851,7 +7851,7 @@ var Zt;
7851
7851
  (function(n) {
7852
7852
  n[n.ADFS = 1001] = "ADFS", n[n.MSA = 1002] = "MSA", n[n.MSSTS = 1003] = "MSSTS", n[n.GENERIC = 1004] = "GENERIC", n[n.ACCESS_TOKEN = 2001] = "ACCESS_TOKEN", n[n.REFRESH_TOKEN = 2002] = "REFRESH_TOKEN", n[n.ID_TOKEN = 2003] = "ID_TOKEN", n[n.APP_METADATA = 3001] = "APP_METADATA", n[n.UNDEFINED = 9999] = "UNDEFINED";
7853
7853
  })(Zt || (Zt = {}));
7854
- var Wr = "appmetadata", Ha = "client_info", $n = "1", Yn = {
7854
+ var Wr = "appmetadata", Ha = "client_info", Qn = "1", $n = {
7855
7855
  CACHE_KEY: "authority-metadata",
7856
7856
  REFRESH_TIME_SECONDS: 3600 * 24
7857
7857
  // 24 Hours
@@ -7874,7 +7874,7 @@ var Ve = {
7874
7874
  (function(n) {
7875
7875
  n.BEARER = "Bearer", n.POP = "pop", n.SSH = "ssh-cert";
7876
7876
  })(ke || (ke = {}));
7877
- var Wn = {
7877
+ var Yn = {
7878
7878
  // Default time to throttle RequestThumbprint in seconds
7879
7879
  DEFAULT_THROTTLE_TIME_SECONDS: 60,
7880
7880
  // Default maximum time to throttle in seconds, overrides what the server sends back
@@ -7898,10 +7898,10 @@ var dn;
7898
7898
  (function(n) {
7899
7899
  n.FAILED_AUTO_DETECTION = "1", n.INTERNAL_CACHE = "2", n.ENVIRONMENT_VARIABLE = "3", n.IMDS = "4";
7900
7900
  })(dn || (dn = {}));
7901
- var Jn;
7901
+ var Wn;
7902
7902
  (function(n) {
7903
7903
  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";
7904
- })(Jn || (Jn = {}));
7904
+ })(Wn || (Wn = {}));
7905
7905
  var hn;
7906
7906
  (function(n) {
7907
7907
  n.NO_CACHE_HIT = "0", n.FORCE_REFRESH = "1", n.NO_CACHED_ACCESS_TOKEN = "2", n.CACHED_ACCESS_TOKEN_EXPIRED = "3", n.REFRESH_CACHED_ACCESS_TOKEN = "4", n.CLAIMS_REQUESTED_CACHE_SKIPPED = "5";
@@ -8946,7 +8946,7 @@ var at = (
8946
8946
  if (t.indexOf(ee.ID_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 && t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) === -1)
8947
8947
  return !1;
8948
8948
  if (t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) > -1) {
8949
- var r = "" + ee.REFRESH_TOKEN + qe.CACHE_KEY_SEPARATOR + this.clientId + qe.CACHE_KEY_SEPARATOR, o = "" + ee.REFRESH_TOKEN + qe.CACHE_KEY_SEPARATOR + $n + qe.CACHE_KEY_SEPARATOR;
8949
+ var r = "" + ee.REFRESH_TOKEN + qe.CACHE_KEY_SEPARATOR + this.clientId + qe.CACHE_KEY_SEPARATOR, o = "" + ee.REFRESH_TOKEN + qe.CACHE_KEY_SEPARATOR + Qn + qe.CACHE_KEY_SEPARATOR;
8950
8950
  if (t.indexOf(r.toLowerCase()) === -1 && t.indexOf(o.toLowerCase()) === -1)
8951
8951
  return !1;
8952
8952
  } else if (t.indexOf(this.clientId.toLowerCase()) === -1)
@@ -9145,7 +9145,7 @@ var at = (
9145
9145
  }, n.prototype.getRefreshToken = function(e, t, r) {
9146
9146
  var o = this;
9147
9147
  this.commonLogger.trace("CacheManager - getRefreshToken called");
9148
- var i = t ? $n : void 0, a = {
9148
+ var i = t ? Qn : void 0, a = {
9149
9149
  homeAccountId: e.homeAccountId,
9150
9150
  environment: e.environment,
9151
9151
  credentialType: ee.REFRESH_TOKEN,
@@ -9177,7 +9177,7 @@ var at = (
9177
9177
  return o[0];
9178
9178
  }, n.prototype.isAppMetadataFOCI = function(e) {
9179
9179
  var t = this.readAppMetadataFromCache(e);
9180
- return !!(t && t.familyId === $n);
9180
+ return !!(t && t.familyId === Qn);
9181
9181
  }, n.prototype.matchHomeAccountId = function(e, t) {
9182
9182
  return typeof e.homeAccountId == "string" && t === e.homeAccountId;
9183
9183
  }, n.prototype.matchLocalAccountId = function(e, t) {
@@ -9212,9 +9212,9 @@ var at = (
9212
9212
  }, n.prototype.isAppMetadata = function(e) {
9213
9213
  return e.indexOf(Wr) !== -1;
9214
9214
  }, n.prototype.isAuthorityMetadata = function(e) {
9215
- return e.indexOf(Yn.CACHE_KEY) !== -1;
9215
+ return e.indexOf($n.CACHE_KEY) !== -1;
9216
9216
  }, n.prototype.generateAuthorityMetadataCacheKey = function(e) {
9217
- return Yn.CACHE_KEY + "-" + this.clientId + "-" + e;
9217
+ return $n.CACHE_KEY + "-" + this.clientId + "-" + e;
9218
9218
  }, n.toObject = function(e, t) {
9219
9219
  for (var r in t)
9220
9220
  e[r] = t[r];
@@ -9393,7 +9393,7 @@ var wr = (
9393
9393
  function n() {
9394
9394
  }
9395
9395
  return n.generateThrottlingStorageKey = function(e) {
9396
- return Wn.THROTTLING_PREFIX + "." + JSON.stringify(e);
9396
+ return Yn.THROTTLING_PREFIX + "." + JSON.stringify(e);
9397
9397
  }, n.preProcess = function(e, t) {
9398
9398
  var r, o = n.generateThrottlingStorageKey(t), i = e.getThrottlingCache(o);
9399
9399
  if (i) {
@@ -9420,7 +9420,7 @@ var wr = (
9420
9420
  return e.headers ? e.headers.hasOwnProperty(_t.RETRY_AFTER) && (e.status < 200 || e.status >= 300) : !1;
9421
9421
  }, n.calculateThrottleTime = function(e) {
9422
9422
  var t = e <= 0 ? 0 : e, r = Date.now() / 1e3;
9423
- return Math.floor(Math.min(r + (t || Wn.DEFAULT_THROTTLE_TIME_SECONDS), r + Wn.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1e3);
9423
+ return Math.floor(Math.min(r + (t || Yn.DEFAULT_THROTTLE_TIME_SECONDS), r + Yn.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1e3);
9424
9424
  }, n.removeThrottle = function(e, t, r, o) {
9425
9425
  var i = {
9426
9426
  clientId: t,
@@ -9513,7 +9513,7 @@ var kn = (
9513
9513
  }()
9514
9514
  );
9515
9515
  /*! @azure/msal-common v13.3.1 2023-10-27 */
9516
- var Xn = (
9516
+ var Jn = (
9517
9517
  /** @class */
9518
9518
  function() {
9519
9519
  function n() {
@@ -9540,15 +9540,15 @@ var Xn = (
9540
9540
  }, n.prototype.addIdTokenHint = function(e) {
9541
9541
  this.parameters.set(ce.ID_TOKEN_HINT, encodeURIComponent(e));
9542
9542
  }, n.prototype.addDomainHint = function(e) {
9543
- this.parameters.set(Qn.DOMAIN_HINT, encodeURIComponent(e));
9543
+ this.parameters.set(Vn.DOMAIN_HINT, encodeURIComponent(e));
9544
9544
  }, n.prototype.addLoginHint = function(e) {
9545
- this.parameters.set(Qn.LOGIN_HINT, encodeURIComponent(e));
9545
+ this.parameters.set(Vn.LOGIN_HINT, encodeURIComponent(e));
9546
9546
  }, n.prototype.addCcsUpn = function(e) {
9547
9547
  this.parameters.set(_t.CCS_HEADER, encodeURIComponent("UPN:" + e));
9548
9548
  }, n.prototype.addCcsOid = function(e) {
9549
9549
  this.parameters.set(_t.CCS_HEADER, encodeURIComponent("Oid:" + e.uid + "@" + e.utid));
9550
9550
  }, n.prototype.addSid = function(e) {
9551
- this.parameters.set(Qn.SID, encodeURIComponent(e));
9551
+ this.parameters.set(Vn.SID, encodeURIComponent(e));
9552
9552
  }, n.prototype.addClaims = function(e, t) {
9553
9553
  var r = this.addClientCapabilitiesToClaims(e, t);
9554
9554
  kn.validateClaims(r), this.parameters.set(ce.CLAIMS, encodeURIComponent(r));
@@ -9620,7 +9620,7 @@ var Xn = (
9620
9620
  }, n.prototype.addServerTelemetry = function(e) {
9621
9621
  this.parameters.set(ce.X_CLIENT_CURR_TELEM, e.generateCurrentRequestHeaderValue()), this.parameters.set(ce.X_CLIENT_LAST_TELEM, e.generateLastRequestHeaderValue());
9622
9622
  }, n.prototype.addThrottling = function() {
9623
- this.parameters.set(ce.X_MS_LIB_CAPABILITY, Wn.X_MS_LIB_CAPABILITY_VALUE);
9623
+ this.parameters.set(ce.X_MS_LIB_CAPABILITY, Yn.X_MS_LIB_CAPABILITY_VALUE);
9624
9624
  }, n.prototype.addLogoutHint = function(e) {
9625
9625
  this.parameters.set(ce.LOGOUT_HINT, encodeURIComponent(e));
9626
9626
  }, n.prototype.createQueryString = function() {
@@ -9672,7 +9672,7 @@ var fo = (
9672
9672
  throw $.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");
9673
9673
  this.authority = e;
9674
9674
  }, n.prototype.createTokenQueryParameters = function(e) {
9675
- var t = new Xn();
9675
+ var t = new Jn();
9676
9676
  return e.tokenQueryParameters && t.addExtraQueryParameters(e.tokenQueryParameters), t.createQueryString();
9677
9677
  }, n;
9678
9678
  }()
@@ -9856,7 +9856,7 @@ var Bo = [
9856
9856
  }(X)
9857
9857
  );
9858
9858
  /*! @azure/msal-common v13.3.1 2023-10-27 */
9859
- var Zn = (
9859
+ var Xn = (
9860
9860
  /** @class */
9861
9861
  /* @__PURE__ */ function() {
9862
9862
  function n(e, t, r, o, i) {
@@ -10020,7 +10020,7 @@ var Xr;
10020
10020
  (function(n) {
10021
10021
  n.SW = "sw", n.UHW = "uhw";
10022
10022
  })(Xr || (Xr = {}));
10023
- var jn = (
10023
+ var Dn = (
10024
10024
  /** @class */
10025
10025
  function() {
10026
10026
  function n(e, t) {
@@ -10207,7 +10207,7 @@ var Cr = (
10207
10207
  var T = null;
10208
10208
  Q.isEmpty(e.refresh_token) || (T = On.createRefreshTokenEntity(this.homeAccountIdentifier, l, e.refresh_token || b.EMPTY_STRING, this.clientId, e.foci, a));
10209
10209
  var q = null;
10210
- return Q.isEmpty(e.foci) || (q = Zr.createAppMetadataEntity(this.clientId, l, e.foci)), new Zn(u, p, f, T, q);
10210
+ return Q.isEmpty(e.foci) || (q = Zr.createAppMetadataEntity(this.clientId, l, e.foci)), new Xn(u, p, f, T, q);
10211
10211
  }, n.prototype.generateAccountEntity = function(e, t, r, o) {
10212
10212
  var i = r.authorityType, a = o ? o.cloud_graph_host_name : b.EMPTY_STRING, s = o ? o.msgraph_host : b.EMPTY_STRING;
10213
10213
  if (i === rt.Adfs)
@@ -10224,7 +10224,7 @@ var Cr = (
10224
10224
  case 0:
10225
10225
  if (k = b.EMPTY_STRING, E = [], P = null, G = b.EMPTY_STRING, !r.accessToken) return [3, 4];
10226
10226
  if (r.accessToken.tokenType !== ke.POP) return [3, 2];
10227
- if (x = new jn(e), T = r.accessToken, q = T.secret, V = T.keyId, !V)
10227
+ if (x = new Dn(e), T = r.accessToken, q = T.secret, V = T.keyId, !V)
10228
10228
  throw $.createKeyIdMissingError();
10229
10229
  return [4, x.signPopToken(q, V, i)];
10230
10230
  case 1:
@@ -10234,7 +10234,7 @@ var Cr = (
10234
10234
  case 3:
10235
10235
  E = Xe.fromString(r.accessToken.target).asArray(), P = new Date(Number(r.accessToken.expiresOn) * 1e3), H = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), I.label = 4;
10236
10236
  case 4:
10237
- return r.appMetadata && (G = r.appMetadata.familyId === $n ? $n : b.EMPTY_STRING), W = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || b.EMPTY_STRING, Z = (a == null ? void 0 : a.claims.tid) || b.EMPTY_STRING, l != null && l.spa_accountid && r.account && (r.account.nativeAccountId = l == null ? void 0 : l.spa_accountid), [2, {
10237
+ return r.appMetadata && (G = r.appMetadata.familyId === Qn ? Qn : b.EMPTY_STRING), W = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || b.EMPTY_STRING, Z = (a == null ? void 0 : a.claims.tid) || b.EMPTY_STRING, l != null && l.spa_accountid && r.account && (r.account.nativeAccountId = l == null ? void 0 : l.spa_accountid), [2, {
10238
10238
  authority: t.canonicalAuthority,
10239
10239
  uniqueId: W,
10240
10240
  tenantId: Z,
@@ -10363,7 +10363,7 @@ var wi = (
10363
10363
  return se(this, function(k) {
10364
10364
  switch (k.label) {
10365
10365
  case 0:
10366
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.AuthClientCreateTokenRequestBody, t.correlationId), i = new Xn(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : kn.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(_r.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== ke.POP ? [3, 2] : (s = new jn(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
10366
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.AuthClientCreateTokenRequestBody, t.correlationId), i = new Jn(), i.addClientId(this.config.authOptions.clientId), this.includeRedirectUri ? i.addRedirectUri(t.redirectUri) : kn.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(_r.AUTHORIZATION_CODE_GRANT), i.addClientInfo(), t.authenticationScheme !== ke.POP ? [3, 2] : (s = new Dn(this.cryptoUtils, this.performanceClient), (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, s.generateCnf(t)]);
10367
10367
  case 1:
10368
10368
  return l = k.sent(), i.addPopToken(l.reqCnfString), [3, 3];
10369
10369
  case 2:
@@ -10409,7 +10409,7 @@ var wi = (
10409
10409
  return se(this, function(m) {
10410
10410
  switch (m.label) {
10411
10411
  case 0:
10412
- if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.AuthClientCreateQueryString, t.correlationId), o = new Xn(), o.addClientId(this.config.authOptions.clientId), i = Pr(t.scopes || [], t.extraScopesToConsent || []), o.addScopes(i), o.addRedirectUri(t.redirectUri), a = t.correlationId || this.config.cryptoInterface.createNewGuid(), o.addCorrelationId(a), o.addResponseMode(t.responseMode), o.addResponseTypeCode(), o.addLibraryInfo(this.config.libraryInfo), o.addApplicationTelemetry(this.config.telemetry.application), o.addClientInfo(), t.codeChallenge && t.codeChallengeMethod && o.addCodeChallengeParams(t.codeChallenge, t.codeChallengeMethod), t.prompt && o.addPrompt(t.prompt), t.domainHint && o.addDomainHint(t.domainHint), t.prompt !== et.SELECT_ACCOUNT)
10412
+ if ((r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.AuthClientCreateQueryString, t.correlationId), o = new Jn(), o.addClientId(this.config.authOptions.clientId), i = Pr(t.scopes || [], t.extraScopesToConsent || []), o.addScopes(i), o.addRedirectUri(t.redirectUri), a = t.correlationId || this.config.cryptoInterface.createNewGuid(), o.addCorrelationId(a), o.addResponseMode(t.responseMode), o.addResponseTypeCode(), o.addLibraryInfo(this.config.libraryInfo), o.addApplicationTelemetry(this.config.telemetry.application), o.addClientInfo(), t.codeChallenge && t.codeChallengeMethod && o.addCodeChallengeParams(t.codeChallenge, t.codeChallengeMethod), t.prompt && o.addPrompt(t.prompt), t.domainHint && o.addDomainHint(t.domainHint), t.prompt !== et.SELECT_ACCOUNT)
10413
10413
  if (t.sid && t.prompt === et.NONE)
10414
10414
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"), o.addSid(t.sid);
10415
10415
  else if (t.account) {
@@ -10440,7 +10440,7 @@ var wi = (
10440
10440
  } else t.loginHint && (this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"), o.addLoginHint(t.loginHint), o.addCcsUpn(t.loginHint));
10441
10441
  else
10442
10442
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
10443
- return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!Q.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 !== ke.POP ? [3, 2] : (u = new jn(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
10443
+ return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!Q.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 !== ke.POP ? [3, 2] : (u = new Dn(this.cryptoUtils), [4, u.generateCnf(t)])) : [3, 2];
10444
10444
  case 1:
10445
10445
  f = m.sent(), o.addPopToken(f.reqCnfString), m.label = 2;
10446
10446
  case 2:
@@ -10449,7 +10449,7 @@ var wi = (
10449
10449
  });
10450
10450
  });
10451
10451
  }, e.prototype.createLogoutUrlQueryString = function(t) {
10452
- var r = new Xn();
10452
+ var r = new Jn();
10453
10453
  return t.postLogoutRedirectUri && r.addPostLogoutRedirectUri(t.postLogoutRedirectUri), t.correlationId && r.addCorrelationId(t.correlationId), t.idTokenHint && r.addIdTokenHint(t.idTokenHint), t.state && r.addState(t.state), t.logoutHint && r.addLogoutHint(t.logoutHint), t.extraQueryParameters && r.addExtraQueryParameters(t.extraQueryParameters), r.createQueryString();
10454
10454
  }, e.prototype.extractAccountSid = function(t) {
10455
10455
  var r;
@@ -10568,7 +10568,7 @@ var ki = (
10568
10568
  return se(this, function(k) {
10569
10569
  switch (k.label) {
10570
10570
  case 0:
10571
- return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.BaseClientCreateTokenRequestHeaders, a), l = new Xn(), l.addClientId(this.config.authOptions.clientId), l.addScopes(t.scopes), l.addGrantType(_r.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 !== ke.POP ? [3, 2] : (u = new jn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
10571
+ return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(R.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(R.BaseClientCreateTokenRequestHeaders, a), l = new Jn(), l.addClientId(this.config.authOptions.clientId), l.addScopes(t.scopes), l.addGrantType(_r.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 !== ke.POP ? [3, 2] : (u = new Dn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(R.PopTokenGenerateCnf, t.correlationId), [4, u.generateCnf(t)]);
10572
10572
  case 1:
10573
10573
  return f = k.sent(), l.addPopToken(f.reqCnfString), [3, 3];
10574
10574
  case 2:
@@ -10695,7 +10695,7 @@ var eo = (
10695
10695
  /** @class */
10696
10696
  function() {
10697
10697
  function n() {
10698
- this.expiresAt = Ct.nowSeconds() + Yn.REFRESH_TIME_SECONDS;
10698
+ this.expiresAt = Ct.nowSeconds() + $n.REFRESH_TIME_SECONDS;
10699
10699
  }
10700
10700
  return n.prototype.updateCloudDiscoveryMetadata = function(e, t) {
10701
10701
  this.aliases = e.aliases, this.preferred_cache = e.preferred_cache, this.preferred_network = e.preferred_network, this.aliasesFromNetwork = t;
@@ -10704,11 +10704,11 @@ var eo = (
10704
10704
  }, n.prototype.updateCanonicalAuthority = function(e) {
10705
10705
  this.canonical_authority = e;
10706
10706
  }, n.prototype.resetExpiresAt = function() {
10707
- this.expiresAt = Ct.nowSeconds() + Yn.REFRESH_TIME_SECONDS;
10707
+ this.expiresAt = Ct.nowSeconds() + $n.REFRESH_TIME_SECONDS;
10708
10708
  }, n.prototype.isExpired = function() {
10709
10709
  return this.expiresAt <= Ct.nowSeconds();
10710
10710
  }, n.isAuthorityMetadataEntity = function(e, t) {
10711
- return t ? e.indexOf(Yn.CACHE_KEY) === 0 && t.hasOwnProperty("aliases") && t.hasOwnProperty("preferred_cache") && t.hasOwnProperty("preferred_network") && t.hasOwnProperty("canonical_authority") && t.hasOwnProperty("authorization_endpoint") && t.hasOwnProperty("token_endpoint") && t.hasOwnProperty("issuer") && t.hasOwnProperty("aliasesFromNetwork") && t.hasOwnProperty("endpointsFromNetwork") && t.hasOwnProperty("expiresAt") && t.hasOwnProperty("jwks_uri") : !1;
10711
+ return t ? e.indexOf($n.CACHE_KEY) === 0 && t.hasOwnProperty("aliases") && t.hasOwnProperty("preferred_cache") && t.hasOwnProperty("preferred_network") && t.hasOwnProperty("canonical_authority") && t.hasOwnProperty("authorization_endpoint") && t.hasOwnProperty("token_endpoint") && t.hasOwnProperty("issuer") && t.hasOwnProperty("aliasesFromNetwork") && t.hasOwnProperty("endpointsFromNetwork") && t.hasOwnProperty("expiresAt") && t.hasOwnProperty("jwks_uri") : !1;
10712
10712
  }, n;
10713
10713
  }()
10714
10714
  );
@@ -11055,11 +11055,11 @@ var rr = (
11055
11055
  return se(this, function(l) {
11056
11056
  switch (l.label) {
11057
11057
  case 0:
11058
- return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== b.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Jn.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
11058
+ return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(R.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), a = (r = this.authorityOptions.azureRegionConfiguration) === null || r === void 0 ? void 0 : r.azureRegion, a ? a !== b.AZURE_REGION_AUTO_DISCOVER_FLAG ? (this.regionDiscoveryMetadata.region_outcome = Wn.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = a, [2, n.replaceWithRegionalInformation(e, a)]) : ((o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(R.RegionDiscoveryDetectRegion, this.correlationId), [4, this.regionDiscovery.detectRegion((i = this.authorityOptions.azureRegionConfiguration) === null || i === void 0 ? void 0 : i.environmentRegion, this.regionDiscoveryMetadata)]) : [3, 2];
11059
11059
  case 1:
11060
11060
  if (s = l.sent(), s)
11061
- return this.regionDiscoveryMetadata.region_outcome = Jn.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
11062
- this.regionDiscoveryMetadata.region_outcome = Jn.AUTO_DETECTION_REQUESTED_FAILED, l.label = 2;
11061
+ return this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_SUCCESSFUL, this.regionDiscoveryMetadata.region_used = s, [2, n.replaceWithRegionalInformation(e, s)];
11062
+ this.regionDiscoveryMetadata.region_outcome = Wn.AUTO_DETECTION_REQUESTED_FAILED, l.label = 2;
11063
11063
  case 2:
11064
11064
  return [2, e];
11065
11065
  }
@@ -11244,7 +11244,7 @@ var qo = (
11244
11244
  }
11245
11245
  return n.isThrottlingEntity = function(e, t) {
11246
11246
  var r = !1;
11247
- e && (r = e.indexOf(Wn.THROTTLING_PREFIX) === 0);
11247
+ e && (r = e.indexOf(Yn.THROTTLING_PREFIX) === 0);
11248
11248
  var o = !0;
11249
11249
  return t && (o = t.hasOwnProperty("throttleTime")), r && o;
11250
11250
  }, n;
@@ -11852,7 +11852,7 @@ var Pt = {
11852
11852
  * Msal-browser SKU
11853
11853
  */
11854
11854
  MSAL_SKU: "msal.js.browser"
11855
- }, Gn = {
11855
+ }, Kn = {
11856
11856
  CHANNEL_ID: "53ee284d-920a-4b59-9d30-a60315b26836",
11857
11857
  PREFERRED_EXTENSION_ID: "ppnbnpeolgkicgegkbkbjmhlideopiji",
11858
11858
  MATS_TELEMETRY: "MATS"
@@ -11894,7 +11894,7 @@ var Ko;
11894
11894
  })(Ko || (Ko = {}));
11895
11895
  var Go = {
11896
11896
  scopes: ir
11897
- }, qn = "jwk", Vo;
11897
+ }, jn = "jwk", Vo;
11898
11898
  (function(n) {
11899
11899
  n.React = "@azure/msal-react", n.Angular = "@azure/msal-angular";
11900
11900
  })(Vo || (Vo = {}));
@@ -12595,7 +12595,7 @@ var ro = (
12595
12595
  return new ro(n, t, yr, e);
12596
12596
  };
12597
12597
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12598
- var Dr = "@azure/msal-browser", er = "2.38.3";
12598
+ var Dr = "@azure/msal-browser", Zn = "2.38.3";
12599
12599
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12600
12600
  var gs = (
12601
12601
  /** @class */
@@ -12795,7 +12795,7 @@ var Si = (
12795
12795
  /** @class */
12796
12796
  function() {
12797
12797
  function n(e, t, r, o, i, a, s, l, p) {
12798
- 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(Pt.MSAL_SKU, er, this.correlationId), this.performanceClient = s;
12798
+ 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(Pt.MSAL_SKU, Zn, this.correlationId), this.performanceClient = s;
12799
12799
  }
12800
12800
  return n.prototype.clearCacheOnLogout = function(e) {
12801
12801
  return O(this, void 0, void 0, function() {
@@ -12918,7 +12918,7 @@ var Si = (
12918
12918
  }()
12919
12919
  );
12920
12920
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
12921
- var Hn = (
12921
+ var qn = (
12922
12922
  /** @class */
12923
12923
  function(n) {
12924
12924
  Ye(e, n);
@@ -13005,7 +13005,7 @@ var Hn = (
13005
13005
  serverTelemetryManager: t,
13006
13006
  libraryInfo: {
13007
13007
  sku: Pt.MSAL_SKU,
13008
- version: er,
13008
+ version: Zn,
13009
13009
  cpu: b.EMPTY_STRING,
13010
13010
  os: b.EMPTY_STRING
13011
13011
  },
@@ -13226,7 +13226,7 @@ var pn;
13226
13226
  (function(n) {
13227
13227
  n.USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED", n.USER_CANCEL = "USER_CANCEL", n.NO_NETWORK = "NO_NETWORK", n.TRANSIENT_ERROR = "TRANSIENT_ERROR", n.PERSISTENT_ERROR = "PERSISTENT_ERROR", n.DISABLED = "DISABLED", n.ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
13228
13228
  })(pn || (pn = {}));
13229
- var Fn = {
13229
+ var Hn = {
13230
13230
  extensionError: {
13231
13231
  code: "ContentError"
13232
13232
  },
@@ -13250,7 +13250,7 @@ var Fn = {
13250
13250
  if (this.ext && this.ext.status && (this.ext.status === pn.PERSISTENT_ERROR || this.ext.status === pn.DISABLED))
13251
13251
  return !0;
13252
13252
  switch (this.errorCode) {
13253
- case Fn.extensionError.code:
13253
+ case Hn.extensionError.code:
13254
13254
  return !0;
13255
13255
  default:
13256
13256
  return !1;
@@ -13269,9 +13269,9 @@ var Fn = {
13269
13269
  }
13270
13270
  return new e(t, r, o);
13271
13271
  }, e.createUserSwitchError = function() {
13272
- return new e(Fn.userSwitch.code, Fn.userSwitch.desc);
13272
+ return new e(Hn.userSwitch.code, Hn.userSwitch.desc);
13273
13273
  }, e.createTokensNotFoundInCacheError = function() {
13274
- return new e(Fn.tokensNotFoundInCache.code, Fn.tokensNotFoundInCache.desc);
13274
+ return new e(Hn.tokensNotFoundInCache.code, Hn.tokensNotFoundInCache.desc);
13275
13275
  }, e;
13276
13276
  }(X)
13277
13277
  );
@@ -13340,7 +13340,7 @@ var Ii = (
13340
13340
  });
13341
13341
  });
13342
13342
  }, e;
13343
- }(Hn)
13343
+ }(qn)
13344
13344
  );
13345
13345
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
13346
13346
  var Bn = (
@@ -13524,7 +13524,7 @@ var Bn = (
13524
13524
  if (r.tokenType !== ke.POP) return [3, 2];
13525
13525
  if (t.shr)
13526
13526
  return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"), [2, t.shr];
13527
- if (o = new jn(this.browserCrypto), i = {
13527
+ if (o = new Dn(this.browserCrypto), i = {
13528
13528
  resourceRequestMethod: r.resourceRequestMethod,
13529
13529
  resourceRequestUri: r.resourceRequestUri,
13530
13530
  shrClaims: r.shrClaims,
@@ -13572,7 +13572,7 @@ var Bn = (
13572
13572
  r.logger.error("Error occurred while removing account context from browser storage. " + o);
13573
13573
  });
13574
13574
  }, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, l, p) {
13575
- var u = En.createIdTokenEntity(o, r.authority, t.id_token || b.EMPTY_STRING, r.clientId, a.claims.tid || b.EMPTY_STRING), f = r.tokenType === ke.POP ? b.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, m = p + f, k = this.generateScopes(t, r), E = Tn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || b.EMPTY_STRING : l, k.printScopes(), m, 0, this.browserCrypto), P = new Zn(i, u, E);
13575
+ var u = En.createIdTokenEntity(o, r.authority, t.id_token || b.EMPTY_STRING, r.clientId, a.claims.tid || b.EMPTY_STRING), f = r.tokenType === ke.POP ? b.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, m = p + f, k = this.generateScopes(t, r), E = Tn.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || b.EMPTY_STRING : l, k.printScopes(), m, 0, this.browserCrypto), P = new Xn(i, u, E);
13576
13576
  this.nativeStorageManager.saveCacheRecord(P);
13577
13577
  }, e.prototype.addTelemetryFromNativeResponse = function(t) {
13578
13578
  var r = this.getMATSFromResponse(t);
@@ -13645,7 +13645,7 @@ var Bn = (
13645
13645
  correlationId: this.correlationId,
13646
13646
  tokenType: t.authenticationScheme,
13647
13647
  windowTitleSubstring: document.title,
13648
- extraParameters: J(J(J({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Gn.MATS_TELEMETRY }),
13648
+ extraParameters: J(J(J({}, t.extraQueryParameters), t.tokenQueryParameters), { telemetry: Kn.MATS_TELEMETRY }),
13649
13649
  extendedExpiryToken: !1
13650
13650
  // Make this configurable?
13651
13651
  }), t.authenticationScheme !== ke.POP ? [3, 4] : (u = {
@@ -13653,7 +13653,7 @@ var Bn = (
13653
13653
  resourceRequestMethod: t.resourceRequestMethod,
13654
13654
  shrClaims: t.shrClaims,
13655
13655
  shrNonce: t.shrNonce
13656
- }, f = new jn(this.browserCrypto), [4, f.generateCnf(u)]);
13656
+ }, f = new Dn(this.browserCrypto), [4, f.generateCnf(u)]);
13657
13657
  case 3:
13658
13658
  m = E.sent(), p.reqCnf = m.reqCnfString, p.keyId = m.kid, E.label = 4;
13659
13659
  case 4:
@@ -13676,7 +13676,7 @@ var In = (
13676
13676
  var t, r = this;
13677
13677
  return z(this, function(o) {
13678
13678
  return this.logger.trace("NativeMessageHandler - sendMessage called."), t = {
13679
- channel: Gn.CHANNEL_ID,
13679
+ channel: Kn.CHANNEL_ID,
13680
13680
  extensionId: this.extensionId,
13681
13681
  responseId: this.responseId++,
13682
13682
  body: e
@@ -13693,7 +13693,7 @@ var In = (
13693
13693
  case 0:
13694
13694
  e.trace("NativeMessageHandler - createProvider called."), a.label = 1;
13695
13695
  case 1:
13696
- return a.trys.push([1, 3, , 5]), o = new n(e, t, r, Gn.PREFERRED_EXTENSION_ID), [4, o.sendHandshakeRequest()];
13696
+ return a.trys.push([1, 3, , 5]), o = new n(e, t, r, Kn.PREFERRED_EXTENSION_ID), [4, o.sendHandshakeRequest()];
13697
13697
  case 2:
13698
13698
  return a.sent(), [2, o];
13699
13699
  case 3:
@@ -13713,7 +13713,7 @@ var In = (
13713
13713
  var e, t = this;
13714
13714
  return z(this, function(r) {
13715
13715
  return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."), window.addEventListener("message", this.windowListener, !1), e = {
13716
- channel: Gn.CHANNEL_ID,
13716
+ channel: Kn.CHANNEL_ID,
13717
13717
  extensionId: this.extensionId,
13718
13718
  responseId: this.responseId++,
13719
13719
  body: {
@@ -13734,7 +13734,7 @@ var In = (
13734
13734
  }, n.prototype.onWindowMessage = function(e) {
13735
13735
  if (this.logger.trace("NativeMessageHandler - onWindowMessage called"), e.source === window) {
13736
13736
  var t = e.data;
13737
- if (!(!t.channel || t.channel !== Gn.CHANNEL_ID) && !(t.extensionId && t.extensionId !== this.extensionId) && t.body.method === en.HandshakeRequest) {
13737
+ if (!(!t.channel || t.channel !== Kn.CHANNEL_ID) && !(t.extensionId && t.extensionId !== this.extensionId) && t.body.method === en.HandshakeRequest) {
13738
13738
  this.logger.verbose(t.extensionId ? "Extension with id: " + t.extensionId + " not installed" : "No extension installed"), clearTimeout(this.timeoutId), this.messageChannel.port1.close(), this.messageChannel.port2.close(), window.removeEventListener("message", this.windowListener, !1);
13739
13739
  var r = this.handshakeResolvers.get(t.responseId);
13740
13740
  r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(K.createNativeExtensionNotInstalledError()));
@@ -13964,7 +13964,7 @@ var vs = (
13964
13964
  var r = t || window.location.href;
13965
13965
  return he.getAbsoluteUrl(r, Pe.getCurrentUri());
13966
13966
  }, e;
13967
- }(Hn)
13967
+ }(qn)
13968
13968
  );
13969
13969
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
13970
13970
  var ys = (
@@ -14134,7 +14134,7 @@ var ys = (
14134
14134
  var r = t.account && t.account.homeAccountId;
14135
14135
  return Pt.POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + r + "." + this.correlationId;
14136
14136
  }, e;
14137
- }(Hn)
14137
+ }(qn)
14138
14138
  );
14139
14139
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
14140
14140
  var bs = (
@@ -14366,7 +14366,7 @@ var Ts = (
14366
14366
  });
14367
14367
  });
14368
14368
  }, e;
14369
- }(Hn)
14369
+ }(qn)
14370
14370
  );
14371
14371
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
14372
14372
  var Ss = (
@@ -14417,7 +14417,7 @@ var Ss = (
14417
14417
  });
14418
14418
  });
14419
14419
  }, e;
14420
- }(Hn)
14420
+ }(qn)
14421
14421
  );
14422
14422
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
14423
14423
  var Is = (
@@ -14675,13 +14675,13 @@ var Ms = (
14675
14675
  }, n.prototype.exportKey = function(e) {
14676
14676
  return O(this, void 0, void 0, function() {
14677
14677
  return z(this, function(t) {
14678
- return [2, window.crypto.subtle.exportKey(qn, e)];
14678
+ return [2, window.crypto.subtle.exportKey(jn, e)];
14679
14679
  });
14680
14680
  });
14681
14681
  }, n.prototype.importKey = function(e, t, r, o) {
14682
14682
  return O(this, void 0, void 0, function() {
14683
14683
  return z(this, function(i) {
14684
- return [2, window.crypto.subtle.importKey(qn, e, t, r, o)];
14684
+ return [2, window.crypto.subtle.importKey(jn, e, t, r, o)];
14685
14685
  });
14686
14686
  });
14687
14687
  }, n.prototype.sign = function(e, t, r) {
@@ -14718,13 +14718,13 @@ var Ns = (
14718
14718
  }, n.prototype.exportKey = function(e) {
14719
14719
  return O(this, void 0, void 0, function() {
14720
14720
  return z(this, function(t) {
14721
- return [2, window.msrCrypto.subtle.exportKey(qn, e)];
14721
+ return [2, window.msrCrypto.subtle.exportKey(jn, e)];
14722
14722
  });
14723
14723
  });
14724
14724
  }, n.prototype.importKey = function(e, t, r, o) {
14725
14725
  return O(this, void 0, void 0, function() {
14726
14726
  return z(this, function(i) {
14727
- return [2, window.msrCrypto.subtle.importKey(qn, e, t, r, o)];
14727
+ return [2, window.msrCrypto.subtle.importKey(jn, e, t, r, o)];
14728
14728
  });
14729
14729
  });
14730
14730
  }, n.prototype.sign = function(e, t, r) {
@@ -14767,7 +14767,7 @@ var Ls = (
14767
14767
  return O(this, void 0, void 0, function() {
14768
14768
  return z(this, function(t) {
14769
14769
  return [2, new Promise(function(r, o) {
14770
- var i = window.msCrypto.subtle.exportKey(qn, e);
14770
+ var i = window.msCrypto.subtle.exportKey(jn, e);
14771
14771
  i.addEventListener("complete", function(a) {
14772
14772
  var s = a.target.result, l = nn.utf8ArrToString(new Uint8Array(s)).replace(/\r/g, b.EMPTY_STRING).replace(/\n/g, b.EMPTY_STRING).replace(/\t/g, b.EMPTY_STRING).split(" ").join(b.EMPTY_STRING).replace("\0", b.EMPTY_STRING);
14773
14773
  try {
@@ -14786,7 +14786,7 @@ var Ls = (
14786
14786
  var i, a;
14787
14787
  return z(this, function(s) {
14788
14788
  return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(l, p) {
14789
- var u = window.msCrypto.subtle.importKey(qn, a, t, r, o);
14789
+ var u = window.msCrypto.subtle.importKey(jn, a, t, r, o);
14790
14790
  u.addEventListener("complete", function(f) {
14791
14791
  l(f.target.result);
14792
14792
  }), u.addEventListener("error", function(f) {
@@ -15470,7 +15470,7 @@ var qs = (
15470
15470
  var o = new Vt(t.id_token, this.cryptoObj), i, a;
15471
15471
  if (e.account) {
15472
15472
  var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
15473
- i = new Zn(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));
15473
+ i = new Xn(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));
15474
15474
  } else if (e.authority) {
15475
15475
  var l = rr.generateAuthority(e.authority, e.azureCloudOptions), p = {
15476
15476
  protocolMode: this.config.auth.protocolMode,
@@ -15482,11 +15482,11 @@ var qs = (
15482
15482
  if (a = new rr(l, this.config.system.networkClient, this.storage, p, this.logger), r.clientInfo) {
15483
15483
  this.logger.trace("TokenCache - homeAccountId from options");
15484
15484
  var s = this.loadAccount(o, a.hostnameAndPort, r.clientInfo, a.authorityType);
15485
- i = new Zn(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));
15485
+ i = new Xn(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));
15486
15486
  } else if (t.client_info) {
15487
15487
  this.logger.trace("TokenCache - homeAccountId from response");
15488
15488
  var s = this.loadAccount(o, a.hostnameAndPort, t.client_info, a.authorityType);
15489
- i = new Zn(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));
15489
+ i = new Xn(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));
15490
15490
  } else
15491
15491
  throw K.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");
15492
15492
  } else
@@ -15606,14 +15606,14 @@ var Fs = (
15606
15606
  }, e.prototype.logout = function() {
15607
15607
  return Promise.reject(K.createSilentLogoutUnsupportedError());
15608
15608
  }, e;
15609
- }(Hn)
15609
+ }(qn)
15610
15610
  );
15611
15611
  /*! @azure/msal-browser v2.38.3 2023-10-27 */
15612
15612
  var Ks = (
15613
15613
  /** @class */
15614
15614
  function() {
15615
15615
  function n(e) {
15616
- this.isBrowserEnvironment = typeof window < "u", this.config = Es(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new ho(this.config.system.loggerOptions, Dr, er), this.networkClient = this.config.system.networkClient, this.navigationClient = this.config.system.navigationClient, this.redirectResponse = /* @__PURE__ */ new Map(), this.hybridAuthCodeResponses = /* @__PURE__ */ new Map(), this.performanceClient = this.isBrowserEnvironment ? new js(this.config.auth.clientId, this.config.auth.authority, this.logger, Dr, er, this.config.telemetry.application, this.config.system.cryptoOptions) : new ps(this.config.auth.clientId, this.config.auth.authority, this.logger, Dr, er, this.config.telemetry.application), this.browserCrypto = this.isBrowserEnvironment ? new Ds(this.logger, this.performanceClient, this.config.system.cryptoOptions) : yr, this.eventHandler = new Is(this.logger, this.browserCrypto), this.browserStorage = this.isBrowserEnvironment ? new ro(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : fs(this.config.auth.clientId, this.logger);
15616
+ this.isBrowserEnvironment = typeof window < "u", this.config = Es(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new ho(this.config.system.loggerOptions, Dr, Zn), this.networkClient = this.config.system.networkClient, this.navigationClient = this.config.system.navigationClient, this.redirectResponse = /* @__PURE__ */ new Map(), this.hybridAuthCodeResponses = /* @__PURE__ */ new Map(), this.performanceClient = this.isBrowserEnvironment ? new js(this.config.auth.clientId, this.config.auth.authority, this.logger, Dr, Zn, this.config.telemetry.application, this.config.system.cryptoOptions) : new ps(this.config.auth.clientId, this.config.auth.authority, this.logger, Dr, Zn, this.config.telemetry.application), this.browserCrypto = this.isBrowserEnvironment ? new Ds(this.logger, this.performanceClient, this.config.system.cryptoOptions) : yr, this.eventHandler = new Is(this.logger, this.browserCrypto), this.browserStorage = this.isBrowserEnvironment ? new ro(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : fs(this.config.auth.clientId, this.logger);
15617
15617
  var t = {
15618
15618
  cacheLocation: xe.MemoryStorage,
15619
15619
  temporaryCacheLocation: xe.MemoryStorage,
@@ -16230,7 +16230,7 @@ const Qs = Ar("MsAuthPlugin", {
16230
16230
  nt.microsoftSDK(r, this.$storex)
16231
16231
  );
16232
16232
  if (i)
16233
- return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
16233
+ return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
16234
16234
  if (a.data.success) {
16235
16235
  if (this.display === "popup")
16236
16236
  return (o = window.parent) == null ? void 0 : o.postMessage(
@@ -16242,7 +16242,7 @@ const Qs = Ar("MsAuthPlugin", {
16242
16242
  }, 1e3);
16243
16243
  } else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
16244
16244
  } else
16245
- this.microsoftLoad = !1, this.microsoftSSOLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 });
16245
+ this.microsoftLoad = !1, this.microsoftSSOLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
16246
16246
  }
16247
16247
  }
16248
16248
  }, $s = (n) => {
@@ -16272,7 +16272,7 @@ const Qs = Ar("MsAuthPlugin", {
16272
16272
  } catch {
16273
16273
  throw new Error("Decryption not supported in this environment");
16274
16274
  }
16275
- }, Dn = {
16275
+ }, er = {
16276
16276
  getFirstBrowserLanguage() {
16277
16277
  let n = window.navigator, e = ["language", "browserLanguage", "systemLanguage", "userLanguage"], t, r;
16278
16278
  if (Array.isArray(n.languages)) {
@@ -16432,20 +16432,20 @@ const Qs = Ar("MsAuthPlugin", {
16432
16432
  localStorage.removeItem("pkce_code_verifier");
16433
16433
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
16434
16434
  if (this.display === "popup" && (r.response_type = "code"), [e, t] = await we(nt.oktaSDK(r, this.$storex)), e)
16435
- return this.oktaLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
16435
+ return this.oktaLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
16436
16436
  if (t.data.success) {
16437
16437
  if (this.display === "popup")
16438
16438
  return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
16439
16439
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
16440
- this.appleLoad = !1, re.$emit("ssoEvent", { name: "setLoading", data: !1 });
16440
+ this.appleLoad = !1, ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
16441
16441
  }, 1e3);
16442
16442
  } else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
16443
16443
  },
16444
16444
  async oktaLogin(n) {
16445
- const e = Vn.getPlatform() || "web";
16446
- let t = btoa("domain=" + n.domain + "&client_id=" + n.clientID + "&platform=" + e + "&rand=" + Dn.generateRandomString(28)), r = Dn.generateRandomString(28);
16445
+ const e = Gn.getPlatform() || "web";
16446
+ let t = btoa("domain=" + n.domain + "&client_id=" + n.clientID + "&platform=" + e + "&rand=" + er.generateRandomString(28)), r = er.generateRandomString(28);
16447
16447
  localStorage.setItem("pkce_code_verifier", r);
16448
- let o = await Dn.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
16448
+ let o = await er.pkceChallengeFromVerifier(r), i = n.domain + "/v1/authorize", a;
16449
16449
  this.isNative ? a = "tapni://t.link/callback/okta" : a = location.origin + "/callback/okta";
16450
16450
  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;
16451
16451
  window.addEventListener("message", async (u) => {
@@ -16460,7 +16460,7 @@ const Qs = Ar("MsAuthPlugin", {
16460
16460
  const a = new URLSearchParams(e);
16461
16461
  t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
16462
16462
  }
16463
- window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isiOS && await fr.close(), re.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), re.$emit("ssoEvent", { name: "setLoading", data: !1 }));
16463
+ window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isiOS && await fr.close(), ne.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), ne.$emit("ssoEvent", { name: "setLoading", data: !1 }));
16464
16464
  }
16465
16465
  }
16466
16466
  }, Oi = {
@@ -16487,8 +16487,8 @@ const Qs = Ar("MsAuthPlugin", {
16487
16487
  }
16488
16488
  },
16489
16489
  async samlLogin(n) {
16490
- this.code_verifier = Dn.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await Dn.pkceChallengeFromVerifier(this.code_verifier);
16491
- const e = Vn.getPlatform();
16490
+ this.code_verifier = er.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await er.pkceChallengeFromVerifier(this.code_verifier);
16491
+ const e = Gn.getPlatform();
16492
16492
  let t = `code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin + (this.display === "npm" ? "/app" : "") + "/callback/saml"}&realm=${this.realm}&display=${this.display}`, r = btoa(t);
16493
16493
  n = `${n}&RelayState=${r}`;
16494
16494
  let o = this;
@@ -16517,11 +16517,11 @@ const Qs = Ar("MsAuthPlugin", {
16517
16517
  if (this.$route.query.code && (n = this.$route.query.code), window.opener)
16518
16518
  window.opener.postMessage({ type: "saml", code: n }, "*"), this.closeWindow();
16519
16519
  else {
16520
- if (this.isNative && this.isiOS && await fr.close(), re.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && ((this.display === "popup" || this.display === "npm") && (localStorage.setItem("auth_code", n), this.shouldCloseWindow = !0, (e = window.parent) == null || e.postMessage({ code: n, state: this.$route.query.state }, "*"), this.closeWindow()), this.display === "redirect" || location.host === "auth.tapni.com")) {
16520
+ if (this.isNative && this.isiOS && await fr.close(), ne.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && ((this.display === "popup" || this.display === "npm") && (localStorage.setItem("auth_code", n), this.shouldCloseWindow = !0, (e = window.parent) == null || e.postMessage({ code: n, state: this.$route.query.state }, "*"), this.closeWindow()), this.display === "redirect" || location.host === "auth.tapni.com")) {
16521
16521
  let t = "https://auth.tapni.com/callback/auth";
16522
16522
  return this.realm === "dashboard" && (t = "https://business.tapni.com/login"), location.href = t + "?code=" + n + "&code_verifier=" + localStorage.getItem("pkce_code_verifier");
16523
16523
  }
16524
- re.$emit("ssoEvent", { name: "setLoading", data: !1 });
16524
+ ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
16525
16525
  }
16526
16526
  }
16527
16527
  }
@@ -16643,10 +16643,10 @@ const Qs = Ar("MsAuthPlugin", {
16643
16643
  if (this.$route.path === "/login/callback/okta") return await this.handleOktaRedirect();
16644
16644
  if (this.$route.path === "/login/callback/saml") return await this.handleSamlRedirect();
16645
16645
  this.$route.query.qrLogin && this.changeLoginToQr(), setTimeout(() => {
16646
- this.$storex && this.$storex.token ? location.href = this.home : re.$emit("ssoEvent", { name: "setLoading", data: !1 });
16646
+ this.$storex && this.$storex.token ? this.$router.push(this.home) : ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
16647
16647
  }, 2500);
16648
16648
  }
16649
- re.$on("toggleOTPField", () => {
16649
+ ne.$on("toggleOTPField", () => {
16650
16650
  this.showOTP = !this.showOTP;
16651
16651
  });
16652
16652
  },
@@ -16679,10 +16679,10 @@ const Qs = Ar("MsAuthPlugin", {
16679
16679
  t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
16680
16680
  },
16681
16681
  close() {
16682
- re.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
16682
+ ne.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
16683
16683
  },
16684
16684
  createAccountModal() {
16685
- re.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16685
+ ne.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16686
16686
  }
16687
16687
  },
16688
16688
  watch: {
@@ -17013,7 +17013,7 @@ const vo = /* @__PURE__ */ an(Zs, [["render", Pc]]), Mc = /* @__PURE__ */ Object
17013
17013
  switchAccount(n) {
17014
17014
  },
17015
17015
  toggleLanguageModal() {
17016
- re.$emit("toggleSSOLanguageModal");
17016
+ ne.$emit("toggleSSOLanguageModal");
17017
17017
  },
17018
17018
  logoutAccount() {
17019
17019
  this.logout({ refreshToken: this.refreshTokens[0], sendRequest: !0 });
@@ -17176,7 +17176,7 @@ const yo = /* @__PURE__ */ an(Lc, [["render", il]]), al = /* @__PURE__ */ Object
17176
17176
  };
17177
17177
  },
17178
17178
  mounted() {
17179
- this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storex.referral && (this.referral = this.$storex.referral));
17179
+ this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storex.referral && (this.referral = this.$storex.referral));
17180
17180
  },
17181
17181
  methods: {
17182
17182
  async submit() {
@@ -17195,13 +17195,13 @@ const yo = /* @__PURE__ */ an(Lc, [["render", il]]), al = /* @__PURE__ */ Object
17195
17195
  captchaToken: await this.getCaptchaToken("account_verify"),
17196
17196
  ref: this.referral
17197
17197
  }, e = await this.register(n);
17198
- this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? re.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : e.data.message === "SUCCESS_LOGIN" && (this.display !== "popup" && (await this.loginSetup({ ...e, isModal: n.isModal }), await this.getLoggedInAccounts()), await this.loginSuccess({ ...e, isModal: n.isModal })));
17198
+ this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? ne.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : e.data.message === "SUCCESS_LOGIN" && (this.display !== "popup" && (await this.loginSetup({ ...e, isModal: n.isModal }), await this.getLoggedInAccounts()), await this.loginSuccess({ ...e, isModal: n.isModal })));
17199
17199
  },
17200
17200
  close() {
17201
- re.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
17201
+ ne.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
17202
17202
  },
17203
17203
  loginAccountModal() {
17204
- re.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
17204
+ ne.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
17205
17205
  }
17206
17206
  },
17207
17207
  watch: {
@@ -17455,7 +17455,7 @@ const bo = /* @__PURE__ */ an(sl, [["render", Nl]]), Ll = /* @__PURE__ */ Object
17455
17455
  },
17456
17456
  methods: {
17457
17457
  init() {
17458
- this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), re.$emit("ssoEvent", { name: "setLoading", data: !1 });
17458
+ this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
17459
17459
  },
17460
17460
  async submit() {
17461
17461
  if (this.code.length !== 6)
@@ -17469,13 +17469,13 @@ const bo = /* @__PURE__ */ an(sl, [["render", Nl]]), Ll = /* @__PURE__ */ Object
17469
17469
  if (this.submitted) return !1;
17470
17470
  this.submitted = !0;
17471
17471
  let e = await this.verify(n);
17472
- this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", re.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storex.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
17472
+ this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", ne.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storex.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
17473
17473
  },
17474
17474
  registerAccountModal() {
17475
- re.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
17475
+ ne.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
17476
17476
  },
17477
17477
  close() {
17478
- re.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
17478
+ ne.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
17479
17479
  }
17480
17480
  },
17481
17481
  watch: {
@@ -17700,9 +17700,9 @@ var zi = { exports: {} };
17700
17700
  }, random: function(T) {
17701
17701
  for (var q, V = [], W = function(te) {
17702
17702
  te = te;
17703
- var me = 987654321, ne = 4294967295;
17703
+ var me = 987654321, re = 4294967295;
17704
17704
  return function() {
17705
- var Ce = ((me = 36969 * (65535 & me) + (me >> 16) & ne) << 16) + (te = 18e3 * (65535 & te) + (te >> 16) & ne) & ne;
17705
+ var Ce = ((me = 36969 * (65535 & me) + (me >> 16) & re) << 16) + (te = 18e3 * (65535 & te) + (te >> 16) & re) & re;
17706
17706
  return Ce /= 4294967296, (Ce += 0.5) * (a.random() > 0.5 ? 1 : -1);
17707
17707
  };
17708
17708
  }, Z = 0; Z < T; Z += 4) {
@@ -17743,7 +17743,7 @@ var zi = { exports: {} };
17743
17743
  }, _process: function(T) {
17744
17744
  var q = this._data, V = q.words, W = q.sigBytes, Z = this.blockSize, I = W / (4 * Z), te = (I = T ? a.ceil(I) : a.max((0 | I) - this._minBufferSize, 0)) * Z, me = a.min(4 * te, W);
17745
17745
  if (te) {
17746
- for (var ne = 0; ne < te; ne += Z) this._doProcessBlock(V, ne);
17746
+ for (var re = 0; re < te; re += Z) this._doProcessBlock(V, re);
17747
17747
  var Ce = V.splice(0, te);
17748
17748
  q.sigBytes -= me;
17749
17749
  }
@@ -17900,13 +17900,13 @@ var zi = { exports: {} };
17900
17900
  var E = [], P = f.SHA256 = u.extend({ _doReset: function() {
17901
17901
  this._hash = new p.init(m.slice(0));
17902
17902
  }, _doProcessBlock: function(H, G) {
17903
- for (var x = this._hash.words, T = x[0], q = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], me = x[7], ne = 0; ne < 64; ne++) {
17904
- if (ne < 16) E[ne] = 0 | H[G + ne];
17903
+ for (var x = this._hash.words, T = x[0], q = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], me = x[7], re = 0; re < 64; re++) {
17904
+ if (re < 16) E[re] = 0 | H[G + re];
17905
17905
  else {
17906
- var Ce = E[ne - 15], Oe = (Ce << 25 | Ce >>> 7) ^ (Ce << 14 | Ce >>> 18) ^ Ce >>> 3, de = E[ne - 2], Ue = (de << 15 | de >>> 17) ^ (de << 13 | de >>> 19) ^ de >>> 10;
17907
- E[ne] = Oe + E[ne - 7] + Ue + E[ne - 16];
17906
+ var Ce = E[re - 15], Oe = (Ce << 25 | Ce >>> 7) ^ (Ce << 14 | Ce >>> 18) ^ Ce >>> 3, de = E[re - 2], Ue = (de << 15 | de >>> 17) ^ (de << 13 | de >>> 19) ^ de >>> 10;
17907
+ E[re] = Oe + E[re - 7] + Ue + E[re - 16];
17908
17908
  }
17909
- var Et = T & q ^ T & V ^ q & V, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), dt = me + ((Z << 26 | Z >>> 6) ^ (Z << 21 | Z >>> 11) ^ (Z << 7 | Z >>> 25)) + (Z & I ^ ~Z & te) + k[ne] + E[ne];
17909
+ var Et = T & q ^ T & V ^ q & V, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), dt = me + ((Z << 26 | Z >>> 6) ^ (Z << 21 | Z >>> 11) ^ (Z << 7 | Z >>> 25)) + (Z & I ^ ~Z & te) + k[re] + E[re];
17910
17910
  me = te, te = I, I = Z, Z = W + dt | 0, W = V, V = q, q = T, T = dt + (Nt + Et) | 0;
17911
17911
  }
17912
17912
  x[0] = x[0] + T | 0, x[1] = x[1] + q | 0, x[2] = x[2] + V | 0, x[3] = x[3] + W | 0, x[4] = x[4] + Z | 0, x[5] = x[5] + I | 0, x[6] = x[6] + te | 0, x[7] = x[7] + me | 0;
@@ -17933,7 +17933,7 @@ var zi = { exports: {} };
17933
17933
  var P = f.SHA512 = s.extend({ _doReset: function() {
17934
17934
  this._hash = new u.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
17935
17935
  }, _doProcessBlock: function(H, G) {
17936
- for (var x = this._hash.words, T = x[0], q = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], me = x[7], ne = T.high, Ce = T.low, Oe = q.high, de = q.low, Ue = V.high, Et = V.low, Nt = W.high, dt = W.low, gn = Z.high, sn = Z.low, _n = I.high, cn = I.low, Rn = te.high, Re = te.low, Me = me.high, $t = me.low, Fe = ne, Be = Ce, Lt = Oe, Tt = de, tt = Ue, pt = Et, Yt = Nt, Ot = dt, We = gn, Ne = sn, ht = _n, zt = cn, xt = Rn, vt = Re, vn = Me, St = $t, Ke = 0; Ke < 80; Ke++) {
17936
+ for (var x = this._hash.words, T = x[0], q = x[1], V = x[2], W = x[3], Z = x[4], I = x[5], te = x[6], me = x[7], re = T.high, Ce = T.low, Oe = q.high, de = q.low, Ue = V.high, Et = V.low, Nt = W.high, dt = W.low, gn = Z.high, sn = Z.low, _n = I.high, cn = I.low, Rn = te.high, Re = te.low, Me = me.high, $t = me.low, Fe = re, Be = Ce, Lt = Oe, Tt = de, tt = Ue, pt = Et, Yt = Nt, Ot = dt, We = gn, Ne = sn, ht = _n, zt = cn, xt = Rn, vt = Re, vn = Me, St = $t, Ke = 0; Ke < 80; Ke++) {
17937
17937
  var yt = E[Ke];
17938
17938
  if (Ke < 16) var De = yt.high = 0 | H[G + 2 * Ke], mt = yt.low = 0 | H[G + 2 * Ke + 1];
17939
17939
  else {
@@ -17943,7 +17943,7 @@ var zi = { exports: {} };
17943
17943
  var It, Nr = We & ht ^ ~We & xt, sr = Ne & zt ^ ~Ne & vt, Lr = Fe & Lt ^ Fe & tt ^ Lt & tt, Or = Be & Tt ^ Be & pt ^ Tt & pt, cr = (Fe >>> 28 | Be << 4) ^ (Fe << 30 | Be >>> 2) ^ (Fe << 25 | Be >>> 7), lr = (Be >>> 28 | Fe << 4) ^ (Be << 30 | Fe >>> 2) ^ (Be << 25 | Fe >>> 7), zr = (We >>> 14 | Ne << 18) ^ (We >>> 18 | Ne << 14) ^ (We << 23 | Ne >>> 9), xr = (Ne >>> 14 | We << 18) ^ (Ne >>> 18 | We << 14) ^ (Ne << 23 | We >>> 9), v = k[Ke], y = v.high, C = v.low, A = vn + zr + ((It = St + xr) >>> 0 < St >>> 0 ? 1 : 0), N = lr + Or;
17944
17944
  vn = xt, St = vt, xt = ht, vt = zt, ht = We, zt = Ne, We = Yt + (A = (A = (A = A + Nr + ((It += sr) >>> 0 < sr >>> 0 ? 1 : 0)) + y + ((It += C) >>> 0 < C >>> 0 ? 1 : 0)) + De + ((It += mt) >>> 0 < mt >>> 0 ? 1 : 0)) + ((Ne = Ot + It | 0) >>> 0 < Ot >>> 0 ? 1 : 0) | 0, Yt = tt, Ot = pt, tt = Lt, pt = Tt, Lt = Fe, Tt = Be, Fe = A + (cr + Lr + (N >>> 0 < lr >>> 0 ? 1 : 0)) + ((Be = It + N | 0) >>> 0 < It >>> 0 ? 1 : 0) | 0;
17945
17945
  }
17946
- Ce = T.low = Ce + Be, T.high = ne + Fe + (Ce >>> 0 < Be >>> 0 ? 1 : 0), de = q.low = de + Tt, q.high = Oe + Lt + (de >>> 0 < Tt >>> 0 ? 1 : 0), Et = V.low = Et + pt, V.high = Ue + tt + (Et >>> 0 < pt >>> 0 ? 1 : 0), dt = W.low = dt + Ot, W.high = Nt + Yt + (dt >>> 0 < Ot >>> 0 ? 1 : 0), sn = Z.low = sn + Ne, Z.high = gn + We + (sn >>> 0 < Ne >>> 0 ? 1 : 0), cn = I.low = cn + zt, I.high = _n + ht + (cn >>> 0 < zt >>> 0 ? 1 : 0), Re = te.low = Re + vt, te.high = Rn + xt + (Re >>> 0 < vt >>> 0 ? 1 : 0), $t = me.low = $t + St, me.high = Me + vn + ($t >>> 0 < St >>> 0 ? 1 : 0);
17946
+ Ce = T.low = Ce + Be, T.high = re + Fe + (Ce >>> 0 < Be >>> 0 ? 1 : 0), de = q.low = de + Tt, q.high = Oe + Lt + (de >>> 0 < Tt >>> 0 ? 1 : 0), Et = V.low = Et + pt, V.high = Ue + tt + (Et >>> 0 < pt >>> 0 ? 1 : 0), dt = W.low = dt + Ot, W.high = Nt + Yt + (dt >>> 0 < Ot >>> 0 ? 1 : 0), sn = Z.low = sn + Ne, Z.high = gn + We + (sn >>> 0 < Ne >>> 0 ? 1 : 0), cn = I.low = cn + zt, I.high = _n + ht + (cn >>> 0 < zt >>> 0 ? 1 : 0), Re = te.low = Re + vt, te.high = Rn + xt + (Re >>> 0 < vt >>> 0 ? 1 : 0), $t = me.low = $t + St, me.high = Me + vn + ($t >>> 0 < St >>> 0 ? 1 : 0);
17947
17947
  }, _doFinalize: function() {
17948
17948
  var H = this._data, G = H.words, x = 8 * this._nDataBytes, T = 8 * H.sigBytes;
17949
17949
  return G[T >>> 5] |= 128 << 24 - T % 32, G[30 + (T + 128 >>> 10 << 5)] = Math.floor(x / 4294967296), G[31 + (T + 128 >>> 10 << 5)] = x, H.sigBytes = 4 * G.length, this._process(), this._hash.toX32();
@@ -18005,7 +18005,7 @@ var zi = { exports: {} };
18005
18005
  var te = q(Z), me = function() {
18006
18006
  throw new Error("Please provide an options.createDigest implementation.");
18007
18007
  };
18008
- function ne(v) {
18008
+ function re(v) {
18009
18009
  return /^(\d+)$/.test(v);
18010
18010
  }
18011
18011
  function Ce(v, y, C) {
@@ -18122,7 +18122,7 @@ var zi = { exports: {} };
18122
18122
  return Me(N, F, this.allOptions());
18123
18123
  } }, { key: "check", value: function(N, F, ge) {
18124
18124
  return function(ot, Bt, ln, Ur) {
18125
- return !!ne(ot) && ot === Me(Bt, ln, Ur);
18125
+ return !!re(ot) && ot === Me(Bt, ln, Ur);
18126
18126
  }(N, F, ge, this.allOptions());
18127
18127
  } }, { key: "verify", value: function(N) {
18128
18128
  if (de(N) !== "object") throw new Error("Expecting argument 0 of verify to be an object");
@@ -18279,7 +18279,7 @@ var zi = { exports: {} };
18279
18279
  return N;
18280
18280
  }
18281
18281
  function yt(v, y, C) {
18282
- return !!ne(v) && v === St(y, C);
18282
+ return !!re(v) && v === St(y, C);
18283
18283
  }
18284
18284
  function De(v, y, C, A) {
18285
18285
  var N = null;
@@ -18502,7 +18502,7 @@ const Yl = {
18502
18502
  },
18503
18503
  methods: {
18504
18504
  close() {
18505
- re.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
18505
+ ne.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
18506
18506
  },
18507
18507
  async deleteAccountSubmit() {
18508
18508
  await this.deleteAccount() === !0 && (this.successSnack(this.ssoLang[this.appLanguage].profile_delete_account_success), setTimeout(this.$store.dispatch("logout"), 1e3));
@@ -18523,7 +18523,7 @@ const Yl = {
18523
18523
  }
18524
18524
  },
18525
18525
  async cancelMFA() {
18526
- this.$router.push("/account");
18526
+ ne.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
18527
18527
  },
18528
18528
  async validateMFA() {
18529
18529
  if (!this.otp || this.otp.length !== 6)
@@ -18537,7 +18537,7 @@ const Yl = {
18537
18537
  this.mfaEnable || delete n.otpSecret;
18538
18538
  const [e, t] = await we(nt.setMfa(n, this.$storex));
18539
18539
  if (e)
18540
- return re.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
18540
+ return ne.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
18541
18541
  t.data.success && (this.getAccountSettings(), this.successSnack(t.data.message)), this.loading = !1;
18542
18542
  },
18543
18543
  async submitChangePassword() {
@@ -18952,12 +18952,12 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
18952
18952
  setup(n, { emit: e }) {
18953
18953
  const t = n, r = e, o = Bi(n, "modelValue"), i = wn(null), a = wn(null), s = wn(null), l = wn(""), p = wn(!1), u = wn(-1), f = Ro(() => {
18954
18954
  const I = t.displayedOptions || t.options, te = (me) => me.filter(
18955
- (ne) => !o.value.includes(ne.value)
18955
+ (re) => !o.value.includes(re.value)
18956
18956
  );
18957
18957
  if (t.isSearchable && l.value) {
18958
- const me = I.filter((ne) => {
18959
- const Ce = t.isMulti ? t.getMultiValueLabel(ne) : t.getOptionLabel(ne);
18960
- return t.filterBy(ne, Ce, l.value);
18958
+ const me = I.filter((re) => {
18959
+ const Ce = t.isMulti ? t.getMultiValueLabel(re) : t.getOptionLabel(re);
18960
+ return t.filterBy(re, Ce, l.value);
18961
18961
  });
18962
18962
  return t.isMulti ? te(me) : me;
18963
18963
  }
@@ -18987,27 +18987,27 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
18987
18987
  const te = u.value;
18988
18988
  if (I.key === "ArrowDown") {
18989
18989
  I.preventDefault();
18990
- const ne = f.value.findIndex((Oe, de) => !Oe.disabled && de > te), Ce = f.value.findIndex((Oe) => !Oe.disabled);
18991
- u.value = ne === -1 ? Ce : ne;
18990
+ const re = f.value.findIndex((Oe, de) => !Oe.disabled && de > te), Ce = f.value.findIndex((Oe) => !Oe.disabled);
18991
+ u.value = re === -1 ? Ce : re;
18992
18992
  }
18993
18993
  if (I.key === "ArrowUp") {
18994
18994
  I.preventDefault();
18995
- const ne = f.value.reduce(
18995
+ const re = f.value.reduce(
18996
18996
  (Oe, de, Ue) => !de.disabled && Ue < te ? Ue : Oe,
18997
18997
  -1
18998
18998
  ), Ce = f.value.reduce(
18999
18999
  (Oe, de, Ue) => de.disabled ? Oe : Ue,
19000
19000
  -1
19001
19001
  );
19002
- u.value = ne === -1 ? Ce : ne;
19002
+ u.value = re === -1 ? Ce : re;
19003
19003
  }
19004
19004
  if (I.key === "Enter") {
19005
- const ne = f.value[te];
19006
- I.preventDefault(), ne && H(ne);
19005
+ const re = f.value[te];
19006
+ I.preventDefault(), re && H(re);
19007
19007
  }
19008
19008
  if (I.code === "Space" && l.value.length === 0) {
19009
- const ne = f.value[te];
19010
- I.preventDefault(), ne && H(ne);
19009
+ const re = f.value[te];
19010
+ I.preventDefault(), re && H(re);
19011
19011
  }
19012
19012
  I.key === "Escape" && (I.preventDefault(), p.value = !1, l.value = "");
19013
19013
  const me = t.isMulti ? o.value.length > 0 : !!o.value;
@@ -19039,7 +19039,7 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
19039
19039
  }), ji(() => {
19040
19040
  document.removeEventListener("click", W), document.removeEventListener("keydown", T);
19041
19041
  }), (I, te) => {
19042
- var me, ne, Ce, Oe;
19042
+ var me, re, Ce, Oe;
19043
19043
  return L(), U("div", {
19044
19044
  ref_key: "container",
19045
19045
  ref: i,
@@ -19057,7 +19057,7 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
19057
19057
  "aria-description": I.placeholder,
19058
19058
  "aria-labelledby": (me = I.aria) == null ? void 0 : me.labelledby,
19059
19059
  "aria-label": m.value.length ? m.value.map(I.isMulti ? I.getMultiValueLabel : I.getOptionLabel).join(", ") : "",
19060
- "aria-required": (ne = I.aria) == null ? void 0 : ne.required
19060
+ "aria-required": (re = I.aria) == null ? void 0 : re.required
19061
19061
  }, [
19062
19062
  !t.isMulti && m.value[0] ? (L(), U("div", {
19063
19063
  key: 0,
@@ -19217,7 +19217,7 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
19217
19217
  },
19218
19218
  methods: {
19219
19219
  close() {
19220
- re.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
19220
+ ne.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
19221
19221
  },
19222
19222
  async submitGeneralUpdate() {
19223
19223
  this.loading = !0, console.log(this.account);
@@ -19228,7 +19228,7 @@ const sd = /* @__PURE__ */ Mr(od, [["render", ad], ["__scopeId", "data-v-ed86631
19228
19228
  billing: this.account.billing ? {
19229
19229
  region: this.account.billing.region
19230
19230
  } : void 0
19231
- }, [e, t] = await we(Kn.updateAccount(n));
19231
+ }, [e, t] = await we(Fn.updateAccount(n));
19232
19232
  e ? this.errorHandler(e) : t.data.success && (this.successSnack(this.ssoLang[this.appLanguage].profile_update_success), await this.getAccountSettings()), this.loading = !1;
19233
19233
  }
19234
19234
  }
@@ -19387,7 +19387,7 @@ const Co = /* @__PURE__ */ an(vd, [["render", Od]]), zd = /* @__PURE__ */ Object
19387
19387
  };
19388
19388
  },
19389
19389
  mounted() {
19390
- this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), re.$emit("ssoEvent", { name: "setLoading", data: !1 });
19390
+ this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), ne.$emit("ssoEvent", { name: "setLoading", data: !1 });
19391
19391
  },
19392
19392
  methods: {
19393
19393
  async resetEmail() {
@@ -19843,7 +19843,7 @@ const To = /* @__PURE__ */ an(dp, [["render", fp]]), gp = /* @__PURE__ */ Object
19843
19843
  }
19844
19844
  },
19845
19845
  async mounted() {
19846
- this.checkAndClearStorage(), this.applyBgStyle(), this.setView(this.viewProp), this.updateMetadata(), re.$on("ssoEvent", this.ssoOutgoingEvent), re.$on("ssoLogout", (n) => this.logout(n)), re.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), re.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), re.$on("switchAccount", (n) => this.switchAccount(n)), re.$on("setToken", (n) => this.setToken(n)), re.$on("setStorageItem", (n) => this.setStorageItem(n)), Dn.compareLangKeys(), this.isNative && this.$store.auth.state.allowedOriginsAuth.push("capacitor://localhost");
19846
+ this.checkAndClearStorage(), this.applyBgStyle(), this.setView(this.viewProp), this.updateMetadata(), ne.$on("ssoEvent", this.ssoOutgoingEvent), ne.$on("ssoLogout", (n) => this.logout(n)), ne.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), ne.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), ne.$on("switchAccount", (n) => this.switchAccount(n)), ne.$on("setToken", (n) => this.setToken(n)), ne.$on("setStorageItem", (n) => this.setStorageItem(n)), this.isNative && this.$store.auth.state.allowedOriginsAuth.push("capacitor://localhost");
19847
19847
  },
19848
19848
  methods: {
19849
19849
  checkAndClearStorage() {
@@ -19861,7 +19861,7 @@ const To = /* @__PURE__ */ an(dp, [["render", fp]]), gp = /* @__PURE__ */ Object
19861
19861
  this.$emit("ssoEvent", n);
19862
19862
  },
19863
19863
  ssoIncomingEvent(n) {
19864
- re.$emit(n.name, n.data);
19864
+ ne.$emit(n.name, n.data);
19865
19865
  },
19866
19866
  updateMetadata() {
19867
19867
  if (!(typeof window > "u"))
@@ -19980,7 +19980,7 @@ const To = /* @__PURE__ */ an(dp, [["render", fp]]), gp = /* @__PURE__ */ Object
19980
19980
  };
19981
19981
  export {
19982
19982
  Qt as A,
19983
- re as E,
19983
+ ne as E,
19984
19984
  Xs as Q,
19985
19985
  an as _,
19986
19986
  pe as a,