@sesamy/sesamy-js 1.13.4 → 1.13.6

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.
@@ -327,7 +327,7 @@ var Dr = Lt(Ut(function(t, e) {
327
327
  }();
328
328
  e.default = f;
329
329
  }));
330
- const Mr = { timeoutInSeconds: 60 }, Kn = { name: "auth0-spa-js", version: "2.1.3" }, Wn = () => Date.now();
330
+ const Mr = { timeoutInSeconds: 60 }, Zn = { name: "auth0-spa-js", version: "2.1.3" }, Kn = () => Date.now();
331
331
  let Y = class _t extends Error {
332
332
  constructor(e, n) {
333
333
  super(n), this.error = e, this.error_description = n, Object.setPrototypeOf(this, _t.prototype);
@@ -335,42 +335,42 @@ let Y = class _t extends Error {
335
335
  static fromPayload({ error: e, error_description: n }) {
336
336
  return new _t(e, n);
337
337
  }
338
- }, Zr = class Fn extends Y {
338
+ }, Zr = class Wn extends Y {
339
339
  constructor(e, n, r, i = null) {
340
- super(e, n), this.state = r, this.appState = i, Object.setPrototypeOf(this, Fn.prototype);
340
+ super(e, n), this.state = r, this.appState = i, Object.setPrototypeOf(this, Wn.prototype);
341
341
  }
342
- }, Et = class Hn extends Y {
342
+ }, Et = class Fn extends Y {
343
343
  constructor() {
344
- super("timeout", "Timeout"), Object.setPrototypeOf(this, Hn.prototype);
344
+ super("timeout", "Timeout"), Object.setPrototypeOf(this, Fn.prototype);
345
345
  }
346
- }, Kr = class Jn extends Et {
346
+ }, Kr = class Hn extends Et {
347
347
  constructor(e) {
348
- super(), this.popup = e, Object.setPrototypeOf(this, Jn.prototype);
348
+ super(), this.popup = e, Object.setPrototypeOf(this, Hn.prototype);
349
349
  }
350
- }, Wr = class Xn extends Y {
350
+ }, Wr = class Jn extends Y {
351
351
  constructor(e) {
352
- super("cancelled", "Popup closed"), this.popup = e, Object.setPrototypeOf(this, Xn.prototype);
352
+ super("cancelled", "Popup closed"), this.popup = e, Object.setPrototypeOf(this, Jn.prototype);
353
353
  }
354
- }, Fr = class Vn extends Y {
354
+ }, Fr = class Xn extends Y {
355
355
  constructor(e, n, r) {
356
- super(e, n), this.mfa_token = r, Object.setPrototypeOf(this, Vn.prototype);
356
+ super(e, n), this.mfa_token = r, Object.setPrototypeOf(this, Xn.prototype);
357
357
  }
358
- }, Yn = class Gn extends Y {
358
+ }, Vn = class Yn extends Y {
359
359
  constructor(e, n) {
360
- super("missing_refresh_token", `Missing Refresh Token (audience: '${Vt(e, ["default"])}', scope: '${Vt(n)}')`), this.audience = e, this.scope = n, Object.setPrototypeOf(this, Gn.prototype);
360
+ super("missing_refresh_token", `Missing Refresh Token (audience: '${Xt(e, ["default"])}', scope: '${Xt(n)}')`), this.audience = e, this.scope = n, Object.setPrototypeOf(this, Yn.prototype);
361
361
  }
362
362
  };
363
- function Vt(t, e = []) {
363
+ function Xt(t, e = []) {
364
364
  return t && !e.includes(t) ? t : "";
365
365
  }
366
366
  const nt = () => window.crypto, pt = () => {
367
367
  const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";
368
368
  let e = "";
369
369
  return Array.from(nt().getRandomValues(new Uint8Array(43))).forEach((n) => e += t[n % t.length]), e;
370
- }, Yt = (t) => btoa(t), Pt = (t) => {
370
+ }, Vt = (t) => btoa(t), Pt = (t) => {
371
371
  var { clientId: e } = t, n = te(t, ["clientId"]);
372
372
  return new URLSearchParams(((r) => Object.keys(r).filter((i) => r[i] !== void 0).reduce((i, o) => Object.assign(Object.assign({}, i), { [o]: r[o] }), {}))(Object.assign({ client_id: e }, n))).toString();
373
- }, Gt = (t) => ((e) => decodeURIComponent(atob(e).split("").map((n) => "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g, "/").replace(/-/g, "+")), Hr = async (t, e) => {
373
+ }, Yt = (t) => ((e) => decodeURIComponent(atob(e).split("").map((n) => "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g, "/").replace(/-/g, "+")), Hr = async (t, e) => {
374
374
  const n = await fetch(t, e);
375
375
  return { ok: n.ok, json: await n.json() };
376
376
  }, Jr = async (t, e, n) => {
@@ -409,12 +409,12 @@ async function Yr(t, e) {
409
409
  const v = P.json, { error: l, error_description: k } = v, T = te(v, ["error", "error_description"]), { ok: O } = P;
410
410
  if (!O) {
411
411
  const C = k || `HTTP error. Unable to fetch ${u}`;
412
- throw l === "mfa_required" ? new Fr(l, C, T.mfa_token) : l === "missing_refresh_token" ? new Yn(p, d) : new Y(l || "request_error", C);
412
+ throw l === "mfa_required" ? new Fr(l, C, T.mfa_token) : l === "missing_refresh_token" ? new Vn(p, d) : new Y(l || "request_error", C);
413
413
  }
414
414
  return T;
415
- }(`${n}/oauth/token`, r, i || "default", o, { method: "POST", body: f, headers: { "Content-Type": s ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(a || Kn)) } }, e, s);
415
+ }(`${n}/oauth/token`, r, i || "default", o, { method: "POST", body: f, headers: { "Content-Type": s ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(a || Zn)) } }, e, s);
416
416
  }
417
- const Xe = (...t) => {
417
+ const Ve = (...t) => {
418
418
  return (e = t.filter(Boolean).join(" ").trim().split(/\s+/), Array.from(new Set(e))).join(" ");
419
419
  var e;
420
420
  };
@@ -452,7 +452,7 @@ let me = class Tt {
452
452
  allKeys() {
453
453
  return Object.keys(window.localStorage).filter((e) => e.startsWith("@@auth0spajs@@"));
454
454
  }
455
- }, Bn = class {
455
+ }, Gn = class {
456
456
  constructor() {
457
457
  this.enclosedCache = /* @__PURE__ */ function() {
458
458
  let e = {};
@@ -469,7 +469,7 @@ let me = class Tt {
469
469
  }
470
470
  }, Br = class {
471
471
  constructor(e, n, r) {
472
- this.cache = e, this.keyManifest = n, this.nowProvider = r || Wn;
472
+ this.cache = e, this.keyManifest = n, this.nowProvider = r || Kn;
473
473
  }
474
474
  async setIdToken(e, n, r) {
475
475
  var i;
@@ -551,10 +551,10 @@ const Ne = (t) => typeof t == "number", Qr = ["iss", "aud", "exp", "nbf", "iat",
551
551
  const a = o.split("."), [s, h, f] = a;
552
552
  if (a.length !== 3 || !s || !h || !f)
553
553
  throw new Error("ID token could not be decoded");
554
- const u = JSON.parse(Gt(h)), c = { __raw: o }, p = {};
554
+ const u = JSON.parse(Yt(h)), c = { __raw: o }, p = {};
555
555
  return Object.keys(u).forEach((d) => {
556
556
  c[d] = u[d], Qr.includes(d) || (p[d] = u[d]);
557
- }), { encoded: { header: s, payload: h, signature: f }, header: JSON.parse(Gt(s)), claims: c, user: p };
557
+ }), { encoded: { header: s, payload: h, signature: f }, header: JSON.parse(Yt(s)), claims: c, user: p };
558
558
  })(t.id_token);
559
559
  if (!e.claims.iss)
560
560
  throw new Error("Issuer (iss) claim must be a string present in the ID token");
@@ -668,25 +668,25 @@ var ge = Ut(function(t, e) {
668
668
  };
669
669
  });
670
670
  Lt(ge), ge.encode, ge.parse, ge.getAll;
671
- var ti = ge.get, qn = ge.set, Qn = ge.remove;
671
+ var ti = ge.get, Bn = ge.set, qn = ge.remove;
672
672
  const Se = { get(t) {
673
673
  const e = ti(t);
674
674
  if (e !== void 0)
675
675
  return JSON.parse(e);
676
676
  }, save(t, e, n) {
677
677
  let r = {};
678
- window.location.protocol === "https:" && (r = { secure: !0, sameSite: "none" }), n != null && n.daysUntilExpire && (r.expires = n.daysUntilExpire), n != null && n.cookieDomain && (r.domain = n.cookieDomain), qn(t, JSON.stringify(e), r);
678
+ window.location.protocol === "https:" && (r = { secure: !0, sameSite: "none" }), n != null && n.daysUntilExpire && (r.expires = n.daysUntilExpire), n != null && n.cookieDomain && (r.domain = n.cookieDomain), Bn(t, JSON.stringify(e), r);
679
679
  }, remove(t, e) {
680
680
  let n = {};
681
- e != null && e.cookieDomain && (n.domain = e.cookieDomain), Qn(t, n);
681
+ e != null && e.cookieDomain && (n.domain = e.cookieDomain), qn(t, n);
682
682
  } }, ni = { get(t) {
683
683
  return Se.get(t) || Se.get(`_legacy_${t}`);
684
684
  }, save(t, e, n) {
685
685
  let r = {};
686
- window.location.protocol === "https:" && (r = { secure: !0 }), n != null && n.daysUntilExpire && (r.expires = n.daysUntilExpire), n != null && n.cookieDomain && (r.domain = n.cookieDomain), qn(`_legacy_${t}`, JSON.stringify(e), r), Se.save(t, e, n);
686
+ window.location.protocol === "https:" && (r = { secure: !0 }), n != null && n.daysUntilExpire && (r.expires = n.daysUntilExpire), n != null && n.cookieDomain && (r.domain = n.cookieDomain), Bn(`_legacy_${t}`, JSON.stringify(e), r), Se.save(t, e, n);
687
687
  }, remove(t, e) {
688
688
  let n = {};
689
- e != null && e.cookieDomain && (n.domain = e.cookieDomain), Qn(t, n), Se.remove(t, e), Se.remove(`_legacy_${t}`, e);
689
+ e != null && e.cookieDomain && (n.domain = e.cookieDomain), qn(t, n), Se.remove(t, e), Se.remove(`_legacy_${t}`, e);
690
690
  } }, ri = { get(t) {
691
691
  if (typeof sessionStorage > "u")
692
692
  return;
@@ -710,8 +710,8 @@ function ii(t, e, n) {
710
710
  `, 10) + 1, a = i.substring(o) + (r ? "//# sourceMappingURL=" + r : ""), s = new Blob([a], { type: "application/javascript" });
711
711
  return URL.createObjectURL(s);
712
712
  }
713
- var Bt, qt, Qt, mt, oi = (Bt = "Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29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VjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=", Bt = null, qt = !1, function(t) {
714
+ return mt = mt || ii(Gt, Bt, qt), new Worker(mt, t);
715
715
  });
716
716
  const gt = {};
717
717
  let ai = class {
@@ -740,14 +740,14 @@ let ai = class {
740
740
  return `@@auth0spajs@@::${e}`;
741
741
  }
742
742
  };
743
- const si = { memory: () => new Bn().enclosedCache, localstorage: () => new Gr() }, en = (t) => si[t], tn = (t) => {
743
+ const si = { memory: () => new Gn().enclosedCache, localstorage: () => new Gr() }, Qt = (t) => si[t], en = (t) => {
744
744
  const { openUrl: e, onRedirect: n } = t, r = te(t, ["openUrl", "onRedirect"]);
745
745
  return Object.assign(Object.assign({}, r), { openUrl: e === !1 || e ? e : n });
746
746
  }, yt = new Dr();
747
747
  let ci = class {
748
748
  constructor(e) {
749
749
  let n, r;
750
- if (this.userCache = new Bn().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
750
+ if (this.userCache = new Gn().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
751
751
  await yt.releaseLock("auth0.lock.getTokenSilently"), window.removeEventListener("pagehide", this._releaseLockOnPageHide);
752
752
  }, this.options = Object.assign(Object.assign(Object.assign({}, this.defaultOptions), e), { authorizationParams: Object.assign(Object.assign({}, this.defaultOptions.authorizationParams), e.authorizationParams) }), typeof window < "u" && (() => {
753
753
  if (!nt())
@@ -759,17 +759,17 @@ let ci = class {
759
759
  })(), e.cache && e.cacheLocation && console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."), e.cache)
760
760
  r = e.cache;
761
761
  else {
762
- if (n = e.cacheLocation || "memory", !en(n))
762
+ if (n = e.cacheLocation || "memory", !Qt(n))
763
763
  throw new Error(`Invalid cache location "${n}"`);
764
- r = en(n)();
764
+ r = Qt(n)();
765
765
  }
766
766
  this.httpTimeoutMs = e.httpTimeoutInSeconds ? 1e3 * e.httpTimeoutInSeconds : 1e4, this.cookieStorage = e.legacySameSiteCookie === !1 ? Se : ni, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((a) => `auth0.${a}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = e.sessionCheckExpiryDays || 1;
767
767
  const i = e.useCookiesForTransactions ? this.cookieStorage : ri;
768
768
  var o;
769
- this.scope = Xe("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new qr(i, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Wn, this.cacheManager = new Br(r, r.allKeys ? void 0 : new ai(r, this.options.clientId), this.nowProvider), this.domainUrl = (o = this.options.domain, /^https?:\/\//.test(o) ? o : `https://${o}`), this.tokenIssuer = ((a, s) => a ? a.startsWith("https://") ? a : `https://${a}/` : `${s}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.options.workerUrl ? this.worker = new Worker(this.options.workerUrl) : this.worker = new oi());
769
+ this.scope = Ve("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new qr(i, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Kn, this.cacheManager = new Br(r, r.allKeys ? void 0 : new ai(r, this.options.clientId), this.nowProvider), this.domainUrl = (o = this.options.domain, /^https?:\/\//.test(o) ? o : `https://${o}`), this.tokenIssuer = ((a, s) => a ? a.startsWith("https://") ? a : `https://${a}/` : `${s}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.options.workerUrl ? this.worker = new Worker(this.options.workerUrl) : this.worker = new oi());
770
770
  }
771
771
  _url(e) {
772
- const n = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || Kn)));
772
+ const n = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || Zn)));
773
773
  return `${this.domainUrl}${e}&auth0Client=${n}`;
774
774
  }
775
775
  _authorizeUrl(e) {
@@ -784,13 +784,13 @@ let ci = class {
784
784
  e ? this.cookieStorage.save(this.orgHintCookieName, e, { daysUntilExpire: this.sessionCheckExpiryDays, cookieDomain: this.options.cookieDomain }) : this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain });
785
785
  }
786
786
  async _prepareAuthorizeUrl(e, n, r) {
787
- const i = Yt(pt()), o = Yt(pt()), a = pt(), s = ((u) => {
787
+ const i = Vt(pt()), o = Vt(pt()), a = pt(), s = ((u) => {
788
788
  const c = new Uint8Array(u);
789
789
  return ((p) => {
790
790
  const d = { "+": "-", "/": "_", "=": "" };
791
791
  return p.replace(/[+/=]/g, (b) => d[b]);
792
792
  })(window.btoa(String.fromCharCode(...Array.from(c))));
793
- })(await (async (u) => await nt().subtle.digest({ name: "SHA-256" }, new TextEncoder().encode(u)))(a)), h = ((u, c, p, d, b, S, w, P) => Object.assign(Object.assign(Object.assign({ client_id: u.clientId }, u.authorizationParams), p), { scope: Xe(c, p.scope), response_type: "code", response_mode: P || "query", state: d, nonce: b, redirect_uri: w || u.authorizationParams.redirect_uri, code_challenge: S, code_challenge_method: "S256" }))(this.options, this.scope, e, i, o, s, e.redirect_uri || this.options.authorizationParams.redirect_uri || r, n == null ? void 0 : n.response_mode), f = this._authorizeUrl(h);
793
+ })(await (async (u) => await nt().subtle.digest({ name: "SHA-256" }, new TextEncoder().encode(u)))(a)), h = ((u, c, p, d, b, S, w, P) => Object.assign(Object.assign(Object.assign({ client_id: u.clientId }, u.authorizationParams), p), { scope: Ve(c, p.scope), response_type: "code", response_mode: P || "query", state: d, nonce: b, redirect_uri: w || u.authorizationParams.redirect_uri, code_challenge: S, code_challenge_method: "S256" }))(this.options, this.scope, e, i, o, s, e.redirect_uri || this.options.authorizationParams.redirect_uri || r, n == null ? void 0 : n.response_mode), f = this._authorizeUrl(h);
794
794
  return { nonce: o, code_verifier: a, scope: h.scope, audience: h.audience || "default", redirect_uri: h.redirect_uri, state: i, url: f };
795
795
  }
796
796
  async loginWithPopup(e, n) {
@@ -834,7 +834,7 @@ let ci = class {
834
834
  }
835
835
  async loginWithRedirect(e = {}) {
836
836
  var n;
837
- const r = tn(e), { openUrl: i, fragment: o, appState: a } = r, s = te(r, ["openUrl", "fragment", "appState"]), h = ((n = s.authorizationParams) === null || n === void 0 ? void 0 : n.organization) || this.options.authorizationParams.organization, f = await this._prepareAuthorizeUrl(s.authorizationParams || {}), { url: u } = f, c = te(f, ["url"]);
837
+ const r = en(e), { openUrl: i, fragment: o, appState: a } = r, s = te(r, ["openUrl", "fragment", "appState"]), h = ((n = s.authorizationParams) === null || n === void 0 ? void 0 : n.organization) || this.options.authorizationParams.organization, f = await this._prepareAuthorizeUrl(s.authorizationParams || {}), { url: u } = f, c = te(f, ["url"]);
838
838
  this.transactionManager.create(Object.assign(Object.assign(Object.assign({}, c), { appState: a }), h && { organization: h }));
839
839
  const p = o ? `${u}#${o}` : u;
840
840
  i ? await i(p) : window.location.assign(p);
@@ -870,7 +870,7 @@ let ci = class {
870
870
  }
871
871
  async getTokenSilently(e = {}) {
872
872
  var n;
873
- const r = Object.assign(Object.assign({ cacheMode: "on" }, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: Xe(this.scope, (n = e.authorizationParams) === null || n === void 0 ? void 0 : n.scope) }) }), i = await ((o, a) => {
873
+ const r = Object.assign(Object.assign({ cacheMode: "on" }, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: Ve(this.scope, (n = e.authorizationParams) === null || n === void 0 ? void 0 : n.scope) }) }), i = await ((o, a) => {
874
874
  let s = gt[a];
875
875
  return s || (s = o().finally(() => {
876
876
  delete gt[a], s = null;
@@ -908,7 +908,7 @@ let ci = class {
908
908
  }
909
909
  async getTokenWithPopup(e = {}, n = {}) {
910
910
  var r;
911
- const i = Object.assign(Object.assign({}, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: Xe(this.scope, (r = e.authorizationParams) === null || r === void 0 ? void 0 : r.scope) }) });
911
+ const i = Object.assign(Object.assign({}, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: Ve(this.scope, (r = e.authorizationParams) === null || r === void 0 ? void 0 : r.scope) }) });
912
912
  return n = Object.assign(Object.assign({}, Mr), n), await this.loginWithPopup(i, n), (await this.cacheManager.get(new me({ scope: i.authorizationParams.scope, audience: i.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
913
913
  }
914
914
  async isAuthenticated() {
@@ -920,7 +920,7 @@ let ci = class {
920
920
  return this._url(`/v2/logout?${Pt(Object.assign({ clientId: e.clientId }, i))}`) + o;
921
921
  }
922
922
  async logout(e = {}) {
923
- const n = tn(e), { openUrl: r } = n, i = te(n, ["openUrl"]);
923
+ const n = en(e), { openUrl: r } = n, i = te(n, ["openUrl"]);
924
924
  e.clientId === null ? await this.cacheManager.clear() : await this.cacheManager.clear(e.clientId || this.options.clientId), this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain }), this.cookieStorage.remove(this.isAuthenticatedCookieName, { cookieDomain: this.options.cookieDomain }), this.userCache.remove("@@user@@");
925
925
  const o = this._buildLogoutUrl(i);
926
926
  r ? await r(o) : r !== !1 && window.location.assign(o);
@@ -962,7 +962,7 @@ let ci = class {
962
962
  if (!(n && n.refresh_token || this.worker)) {
963
963
  if (this.options.useRefreshTokensFallback)
964
964
  return await this._getTokenFromIFrame(e);
965
- throw new Yn(e.authorizationParams.audience || "default", e.authorizationParams.scope);
965
+ throw new Vn(e.authorizationParams.audience || "default", e.authorizationParams.scope);
966
966
  }
967
967
  const r = e.authorizationParams.redirect_uri || this.options.authorizationParams.redirect_uri || window.location.origin, i = typeof e.timeoutInSeconds == "number" ? 1e3 * e.timeoutInSeconds : null;
968
968
  try {
@@ -999,15 +999,15 @@ async function ui(t) {
999
999
  return await e.checkSession(), e;
1000
1000
  }
1001
1001
  const fe = "sesamy.com", li = "https://sesa.my", di = "https://logs.sesamy.com/events", Ot = "sesamyCacheTimestamp";
1002
- var q = /* @__PURE__ */ ((t) => (t.READY = "sesamyJsReady", t.AUTHENTICATED = "sesamyJsAuthenticated", t.LOGOUT = "sesamyJsLogout", t.CLEAR_CACHE = "sesamyJsClearCache", t.USER_ATTRIBUTE_CHANGED = "sesamyUserAttributeChanged", t.PURCHASE = "sesamyJsPurchase", t))(q || {});
1003
- let G, er;
1004
- const We = "sesamyAccessToken";
1002
+ var Q = /* @__PURE__ */ ((t) => (t.READY = "sesamyJsReady", t.AUTHENTICATED = "sesamyJsAuthenticated", t.LOGOUT = "sesamyJsLogout", t.CLEAR_CACHE = "sesamyJsClearCache", t.USER_ATTRIBUTE_CHANGED = "sesamyUserAttributeChanged", t.PURCHASE = "sesamyJsPurchase", t))(Q || {});
1003
+ let G, Qn;
1004
+ const Fe = "sesamyAccessToken";
1005
1005
  function Nt() {
1006
- const t = localStorage.getItem(We);
1006
+ const t = localStorage.getItem(Fe);
1007
1007
  if (!t)
1008
1008
  return null;
1009
1009
  const e = tr(t);
1010
- return (!e || !e.exp || e.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3) && localStorage.removeItem(We), t;
1010
+ return (!e || !e.exp || e.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3) && localStorage.removeItem(Fe), t;
1011
1011
  }
1012
1012
  function hi(t) {
1013
1013
  try {
@@ -1020,7 +1020,7 @@ function hi(t) {
1020
1020
  async function fi(t) {
1021
1021
  if (t.enabled === !1)
1022
1022
  return;
1023
- er = t.organization;
1023
+ Qn = t.organization;
1024
1024
  const e = {
1025
1025
  domain: t.endpoint || `token.${fe}`,
1026
1026
  clientId: t.clientId
@@ -1029,14 +1029,14 @@ async function fi(t) {
1029
1029
  try {
1030
1030
  await G.handleRedirectCallback();
1031
1031
  const n = await G.getUser();
1032
- ue(q.AUTHENTICATED, n);
1032
+ ue(Q.AUTHENTICATED, n);
1033
1033
  const r = new URL(location.href), i = r.searchParams;
1034
1034
  i.delete("code"), i.delete("state"), r.search = i.toString(), window.history.replaceState({}, document.title, r.toString());
1035
1035
  } catch (n) {
1036
1036
  console.error(n);
1037
1037
  }
1038
1038
  }
1039
- async function Rt() {
1039
+ async function er() {
1040
1040
  return Nt() ? !0 : G ? G.isAuthenticated() : !1;
1041
1041
  }
1042
1042
  async function pi() {
@@ -1045,16 +1045,16 @@ async function pi() {
1045
1045
  name: "Local User"
1046
1046
  } : G ? G.getUser() : null;
1047
1047
  }
1048
- function zt(t) {
1049
- if (localStorage.removeItem(We), !G)
1048
+ function Rt(t) {
1049
+ if (localStorage.removeItem(Fe), !G)
1050
1050
  throw new Error("Auth0 client not initialized");
1051
1051
  const e = (t == null ? void 0 : t.authorizationParams) || {};
1052
1052
  return G.loginWithRedirect({
1053
1053
  ...t,
1054
- authorizationParams: { organization: er, redirect_uri: window.location.href, ...e }
1054
+ authorizationParams: { organization: Qn, redirect_uri: window.location.href, ...e }
1055
1055
  });
1056
1056
  }
1057
- async function Ve(t = !0) {
1057
+ async function Re(t = !0) {
1058
1058
  const e = Nt();
1059
1059
  if (e)
1060
1060
  return e;
@@ -1067,7 +1067,7 @@ async function Ve(t = !0) {
1067
1067
  }
1068
1068
  }
1069
1069
  async function mi(t = {}) {
1070
- if (localStorage.removeItem(We), ue(q.LOGOUT, {}), !!G)
1070
+ if (localStorage.removeItem(Fe), ue(Q.LOGOUT, {}), !!G)
1071
1071
  return G.logout({
1072
1072
  ...t,
1073
1073
  // Default to the current URL if no returnTo is specified
@@ -1089,9 +1089,9 @@ async function nr(t) {
1089
1089
  const e = tr(t);
1090
1090
  if (!e || !e.exp || e.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3)
1091
1091
  throw new Error("Invalid token");
1092
- localStorage.setItem(We, t), ue(q.AUTHENTICATED, e);
1092
+ localStorage.setItem(Fe, t), ue(Q.AUTHENTICATED, e);
1093
1093
  }
1094
- const gi = (t, e) => e.skipDedupe || e.method !== "GET", yi = (t, e) => e.method + "@" + t, vi = (t) => t.clone(), nn = ({ skip: t = gi, key: e = yi, resolver: n = vi } = {}) => {
1094
+ const gi = (t, e) => e.skipDedupe || e.method !== "GET", yi = (t, e) => e.method + "@" + t, vi = (t) => t.clone(), tn = ({ skip: t = gi, key: e = yi, resolver: n = vi } = {}) => {
1095
1095
  const r = /* @__PURE__ */ new Map();
1096
1096
  return (i) => (o, a) => {
1097
1097
  if (t(o, a))
@@ -1111,7 +1111,7 @@ const gi = (t, e) => e.skipDedupe || e.method !== "GET", yi = (t, e) => e.method
1111
1111
  return r.delete(s), Promise.reject(h);
1112
1112
  }
1113
1113
  };
1114
- }, wi = (t, e) => t * e, bi = (t) => t && t.ok, rn = ({ delayTimer: t = 500, delayRamp: e = wi, maxAttempts: n = 10, until: r = bi, onRetry: i = null, retryOnNetworkError: o = !1, resolveWithLatestResponse: a = !1, skip: s } = {}) => (h) => (f, u) => {
1114
+ }, wi = (t, e) => t * e, bi = (t) => t && t.ok, nn = ({ delayTimer: t = 500, delayRamp: e = wi, maxAttempts: n = 10, until: r = bi, onRetry: i = null, retryOnNetworkError: o = !1, resolveWithLatestResponse: a = !1, skip: s } = {}) => (h) => (f, u) => {
1115
1115
  let c = 0;
1116
1116
  if (s && s(f, u))
1117
1117
  return h(f, u);
@@ -1139,11 +1139,11 @@ const gi = (t, e) => e.skipDedupe || e.method !== "GET", yi = (t, e) => e.method
1139
1139
  return p(null, d);
1140
1140
  });
1141
1141
  }, ki = "application/json", rr = "Content-Type", Ie = Symbol(), ir = Symbol();
1142
- function on(t = {}) {
1142
+ function rn(t = {}) {
1143
1143
  var e;
1144
1144
  return (e = Object.entries(t).find(([n]) => n.toLowerCase() === rr.toLowerCase())) === null || e === void 0 ? void 0 : e[1];
1145
1145
  }
1146
- function an(t) {
1146
+ function on(t) {
1147
1147
  return /^application\/.*json.*/.test(t);
1148
1148
  }
1149
1149
  const ye = function(t, e, n = !1) {
@@ -1335,7 +1335,7 @@ CAUSE: ` + d.stack, l.response = v, l.url = c, v.type === "opaque")
1335
1335
  },
1336
1336
  fetch(t = this._options.method, e = "", n = null) {
1337
1337
  let r = this.url(e).options({ method: t });
1338
- const i = on(r._options.headers), o = this._config.polyfill("FormData", !1), a = typeof n == "object" && !(o && n instanceof o) && (!r._options.headers || !i || an(i));
1338
+ const i = rn(r._options.headers), o = this._config.polyfill("FormData", !1), a = typeof n == "object" && !(o && n instanceof o) && (!r._options.headers || !i || on(i));
1339
1339
  return r = n ? a ? r.json(n, i) : r.body(n) : r, Pi(r._deferred.reduce((s, h) => h(s, s._url, s._options), r));
1340
1340
  },
1341
1341
  get(t = "") {
@@ -1363,8 +1363,8 @@ CAUSE: ` + d.stack, l.response = v, l.url = c, v.type === "opaque")
1363
1363
  return { ...this, _options: { ...this._options, body: t } };
1364
1364
  },
1365
1365
  json(t, e) {
1366
- const n = on(this._options.headers);
1367
- return this.content(e || an(n) && n || ki).body(JSON.stringify(t));
1366
+ const n = rn(this._options.headers);
1367
+ return this.content(e || on(n) && n || ki).body(JSON.stringify(t));
1368
1368
  }
1369
1369
  };
1370
1370
  function ie(t = "", e = {}) {
@@ -1375,8 +1375,8 @@ ie.options = Ii;
1375
1375
  ie.errorType = _i;
1376
1376
  ie.polyfills = Si;
1377
1377
  ie.WretchError = or;
1378
- function ee() {
1379
- sessionStorage.removeItem(Ot), ue(q.CLEAR_CACHE, {});
1378
+ function q() {
1379
+ sessionStorage.removeItem(Ot), ue(Q.CLEAR_CACHE, {});
1380
1380
  }
1381
1381
  function Oi(t) {
1382
1382
  const e = t.endpoint || `https://api2.${fe}`, n = (g) => async (I, E) => {
@@ -1390,9 +1390,9 @@ function Oi(t) {
1390
1390
  }
1391
1391
  };
1392
1392
  return g(I, Z);
1393
- }, r = (g = !1) => (I) => async (E, L) => {
1393
+ }, r = (g = !0) => (I) => async (E, L) => {
1394
1394
  let Z = null;
1395
- if (Z = await Ve(g), !Z) {
1395
+ if (Z = await Re(g), !Z) {
1396
1396
  if (g)
1397
1397
  throw new Error("No access token available");
1398
1398
  return I(E, L);
@@ -1419,8 +1419,8 @@ function Oi(t) {
1419
1419
  }, o = ie(e).headers({ "Content-Type": "application/json" }).middlewares([
1420
1420
  n,
1421
1421
  r(),
1422
- nn(),
1423
- rn({
1422
+ tn(),
1423
+ nn({
1424
1424
  delayTimer: 1e3,
1425
1425
  delayRamp: (g, I) => g * I,
1426
1426
  maxAttempts: 3,
@@ -1431,8 +1431,8 @@ function Oi(t) {
1431
1431
  n,
1432
1432
  r(!1),
1433
1433
  i,
1434
- nn(),
1435
- rn({
1434
+ tn(),
1435
+ nn({
1436
1436
  delayTimer: 1e3,
1437
1437
  delayRamp: (g, I) => g * I,
1438
1438
  maxAttempts: 3,
@@ -1469,11 +1469,11 @@ function Oi(t) {
1469
1469
  }
1470
1470
  async function S(g, I) {
1471
1471
  const E = await o.url(`/user-metadata/${g}`).put(I).json();
1472
- return ue(q.USER_ATTRIBUTE_CHANGED, {}), ee(), E;
1472
+ return ue(Q.USER_ATTRIBUTE_CHANGED, {}), q(), E;
1473
1473
  }
1474
1474
  async function w(g) {
1475
1475
  const I = await o.url(`/user-metadata/${g}`).delete().res();
1476
- return ee(), I.ok;
1476
+ return q(), I.ok;
1477
1477
  }
1478
1478
  async function P(g) {
1479
1479
  return (await o.url(`/user-metadata/${g}`).get().json())[g];
@@ -1486,11 +1486,11 @@ function Oi(t) {
1486
1486
  }
1487
1487
  async function l(g) {
1488
1488
  const I = await o.url(`/tags/${g}`).delete().res();
1489
- return ee(), I.ok;
1489
+ return q(), I.ok;
1490
1490
  }
1491
1491
  async function k(g) {
1492
1492
  const I = await o.url("/tags").post(g).res();
1493
- return ue(q.USER_ATTRIBUTE_CHANGED, {}), ee(), I.ok;
1493
+ return ue(Q.USER_ATTRIBUTE_CHANGED, {}), q(), I.ok;
1494
1494
  }
1495
1495
  async function T(g) {
1496
1496
  return (await a.url("/tallies").get().json())[g];
@@ -1500,7 +1500,7 @@ function Oi(t) {
1500
1500
  }
1501
1501
  async function C(g) {
1502
1502
  const I = await a.url(`/tallies/${g}`).delete().res();
1503
- return ee(), I.ok;
1503
+ return q(), I.ok;
1504
1504
  }
1505
1505
  async function R(g, I) {
1506
1506
  return await a.url(`/tallies/${g}/push`).post(I).json();
@@ -1509,11 +1509,11 @@ function Oi(t) {
1509
1509
  return await o.url(`/products/${g}`).get().json();
1510
1510
  }
1511
1511
  async function K() {
1512
- return await Rt() ? await o.url("/profile").get().json() : null;
1512
+ return await Re(!1) ? await o.url("/profile").get().json() : null;
1513
1513
  }
1514
1514
  async function $(g) {
1515
1515
  const I = await o.url("/profile").patch(g).res();
1516
- return ee(), I.ok;
1516
+ return q(), I.ok;
1517
1517
  }
1518
1518
  async function U() {
1519
1519
  return await o.url("/payment-issues").get().json();
@@ -1525,7 +1525,7 @@ function Oi(t) {
1525
1525
  return (await o.url("/profile/unlink-spotify").post().res()).ok;
1526
1526
  }
1527
1527
  async function W(g) {
1528
- const I = await Ve(!1);
1528
+ const I = await Re(!1);
1529
1529
  if (!I)
1530
1530
  throw new Error("No access token available");
1531
1531
  const E = new URL(`https://spotify-oas.${fe}/sesamy-callback`);
@@ -1533,14 +1533,14 @@ function Oi(t) {
1533
1533
  }
1534
1534
  async function J(g) {
1535
1535
  const I = await o.url(`/products/${g}/auto-onboard`).post().json();
1536
- return I.length && ee(), I;
1536
+ return I.length && q(), I;
1537
1537
  }
1538
1538
  async function le(g, I = 3600) {
1539
1539
  const { shortlink: E } = await ie(li).post({ url: g, ttl: I }).json();
1540
1540
  return E;
1541
1541
  }
1542
1542
  async function m(g) {
1543
- const I = await Ve(!1);
1543
+ const I = await Re(!1);
1544
1544
  let E;
1545
1545
  switch (g.target) {
1546
1546
  case "account":
@@ -1555,7 +1555,7 @@ function Oi(t) {
1555
1555
  return I && (E.hash = `#access_token=${I}`), g.shorten ? le(E.href, g.ttl) : E.href;
1556
1556
  }
1557
1557
  async function y() {
1558
- const g = await Ve(!1), I = new URL(`https://account.${fe}/subscriptions/${t.clientId}`);
1558
+ const g = await Re(!1), I = new URL(`https://account.${fe}/subscriptions/${t.clientId}`);
1559
1559
  g && (I.hash = `#access_token=${g}`), window.location.href = I.toString();
1560
1560
  }
1561
1561
  return {
@@ -1590,13 +1590,13 @@ function Oi(t) {
1590
1590
  openHostedAccountPage: y
1591
1591
  };
1592
1592
  }
1593
- const ar = "@sesamy/sesamy-js", Dt = "1.13.2";
1594
- function sn(t, e, n, r, i) {
1593
+ const ar = "@sesamy/sesamy-js", zt = "1.13.2";
1594
+ function an(t, e, n, r, i) {
1595
1595
  for (e = e.split ? e.split(".") : e, r = 0; r < e.length; r++)
1596
1596
  t = t ? t[e[r]] : i;
1597
1597
  return t === i ? n : t;
1598
1598
  }
1599
- var Ye = "undefined", cn = "object", jt = function() {
1599
+ var Ye = "undefined", sn = "object", jt = function() {
1600
1600
  }, sr = "any", cr = "*", we = "__", it = typeof process < "u" ? process : {};
1601
1601
  it.env && it.env.NODE_ENV;
1602
1602
  var H = typeof document < "u";
@@ -1615,11 +1615,11 @@ function ot(t, e) {
1615
1615
  var n = xi(t);
1616
1616
  return e ? Ci(n) : n;
1617
1617
  }
1618
- function He(t, e) {
1618
+ function Je(t, e) {
1619
1619
  return typeof e === t;
1620
1620
  }
1621
- var V = He.bind(null, "function"), se = He.bind(null, "string"), _e = He.bind(null, "undefined"), Ai = He.bind(null, "boolean");
1622
- He.bind(null, "symbol");
1621
+ var V = Je.bind(null, "function"), se = Je.bind(null, "string"), _e = Je.bind(null, "undefined"), Ai = Je.bind(null, "boolean");
1622
+ Je.bind(null, "symbol");
1623
1623
  function lr(t) {
1624
1624
  return t === null;
1625
1625
  }
@@ -1681,7 +1681,7 @@ ut(ct, "select");
1681
1681
  function zi(t) {
1682
1682
  return t ? dr(t) ? t : [t] : [];
1683
1683
  }
1684
- function un(t) {
1684
+ function cn(t) {
1685
1685
  try {
1686
1686
  return decodeURIComponent(t.replace(/\+/g, " "));
1687
1687
  } catch {
@@ -1703,7 +1703,7 @@ function Mi() {
1703
1703
  function Zi(t) {
1704
1704
  return function(e) {
1705
1705
  for (var n, r = /* @__PURE__ */ Object.create(null), i = /([^&=]+)=?([^&]*)/g; n = i.exec(e); ) {
1706
- var o = un(n[1]), a = un(n[2]);
1706
+ var o = cn(n[1]), a = cn(n[2]);
1707
1707
  o.substring(o.length - 2) === "[]" ? (r[o = o.substring(0, o.length - 2)] || (r[o] = [])).push(a) : r[o] = a === "" || a;
1708
1708
  }
1709
1709
  for (var s in r) {
@@ -1744,7 +1744,7 @@ function Wi(t, e) {
1744
1744
  return n = this, r = arguments, f <= 0 ? (clearTimeout(o), o = null, a = h, i = t.apply(n, r)) : o || (o = setTimeout(s, f)), i;
1745
1745
  };
1746
1746
  }
1747
- var De = "global", Ce = we + "global" + we, xe = typeof self === cn && self.self === self && self || typeof global === cn && global.global === global && global || void 0;
1747
+ var Me = "global", Ce = we + "global" + we, xe = typeof self === sn && self.self === self && self || typeof global === sn && global.global === global && global || void 0;
1748
1748
  function be(t) {
1749
1749
  return xe[Ce][t];
1750
1750
  }
@@ -1757,7 +1757,7 @@ function $e(t) {
1757
1757
  function Le(t, e, n) {
1758
1758
  var r;
1759
1759
  try {
1760
- if (Mt(t)) {
1760
+ if (Dt(t)) {
1761
1761
  var i = window[t];
1762
1762
  r = i[e].bind(i);
1763
1763
  }
@@ -1767,7 +1767,7 @@ function Le(t, e, n) {
1767
1767
  }
1768
1768
  xe[Ce] || (xe[Ce] = {});
1769
1769
  var Ge = {};
1770
- function Mt(t) {
1770
+ function Dt(t) {
1771
1771
  if (typeof Ge[t] !== Ye)
1772
1772
  return Ge[t];
1773
1773
  try {
@@ -1788,7 +1788,7 @@ function A() {
1788
1788
  return t;
1789
1789
  }, A.apply(this, arguments);
1790
1790
  }
1791
- var ae = "function", re = "undefined", Fi = "@@redux/" + Math.random().toString(36), ln = /* @__PURE__ */ function() {
1791
+ var ae = "function", re = "undefined", Fi = "@@redux/" + Math.random().toString(36), un = /* @__PURE__ */ function() {
1792
1792
  return typeof Symbol === ae && Symbol.observable || "@@observable";
1793
1793
  }(), Be = " != " + ae;
1794
1794
  function fr(t, e, n) {
@@ -1839,7 +1839,7 @@ function fr(t, e, n) {
1839
1839
  if (typeof d !== ae)
1840
1840
  throw new Error("next reducer" + Be);
1841
1841
  i = d, p({ type: "@@redux/INIT" });
1842
- } })[ln] = function() {
1842
+ } })[un] = function() {
1843
1843
  var d, b = c;
1844
1844
  return (d = { subscribe: function(S) {
1845
1845
  if (typeof S != "object")
@@ -1848,7 +1848,7 @@ function fr(t, e, n) {
1848
1848
  S.next && S.next(u());
1849
1849
  }
1850
1850
  return w(), { unsubscribe: b(w) };
1851
- } })[ln] = function() {
1851
+ } })[un] = function() {
1852
1852
  return this;
1853
1853
  }, d;
1854
1854
  }, r;
@@ -1886,7 +1886,7 @@ var ce = we + "anon_id", ve = we + "user_id", Pe = we + "user_traits", oe = "use
1886
1886
  return "registerPlugin:" + t;
1887
1887
  }, pluginReadyType: function(t) {
1888
1888
  return "ready:" + t;
1889
- } }), dn = /^utm_/, hn = /^an_prop_/, fn = /^an_trait_/;
1889
+ } }), ln = /^utm_/, dn = /^an_prop_/, hn = /^an_trait_/;
1890
1890
  function Xi(t) {
1891
1891
  var e = t.storage.setItem;
1892
1892
  return function(n) {
@@ -1898,11 +1898,11 @@ function Xi(t) {
1898
1898
  var u = Object.keys(i.params);
1899
1899
  if (u.length) {
1900
1900
  var c = o.an_uid, p = o.an_event, d = u.reduce(function(b, S) {
1901
- if (S.match(dn) || S.match(/^(d|g)clid/)) {
1902
- var w = S.replace(dn, "");
1901
+ if (S.match(ln) || S.match(/^(d|g)clid/)) {
1902
+ var w = S.replace(ln, "");
1903
1903
  b.campaign[w === "campaign" ? "name" : w] = o[S];
1904
1904
  }
1905
- return S.match(hn) && (b.props[S.replace(hn, "")] = o[S]), S.match(fn) && (b.traits[S.replace(fn, "")] = o[S]), b;
1905
+ return S.match(dn) && (b.props[S.replace(dn, "")] = o[S]), S.match(hn) && (b.traits[S.replace(hn, "")] = o[S]), b;
1906
1906
  }, { campaign: {}, props: {}, traits: {} });
1907
1907
  n.dispatch(A({ type: x.params, raw: o }, d, c ? { userId: c } : {})), c && setTimeout(function() {
1908
1908
  return t.identify(c, d.traits);
@@ -1936,7 +1936,7 @@ function Vi(t) {
1936
1936
  }
1937
1937
  };
1938
1938
  }
1939
- function pn(t) {
1939
+ function fn(t) {
1940
1940
  return { userId: t.getItem(ve), anonymousId: t.getItem(ce), traits: t.getItem(Pe) };
1941
1941
  }
1942
1942
  var xt = function(t) {
@@ -1962,9 +1962,9 @@ function Yi(t) {
1962
1962
  };
1963
1963
  };
1964
1964
  }
1965
- var ze = {};
1966
- function mn(t, e) {
1967
- ze[t] && V(ze[t]) && (ze[t](e), delete ze[t]);
1965
+ var De = {};
1966
+ function pn(t, e) {
1967
+ De[t] && V(De[t]) && (De[t](e), delete De[t]);
1968
1968
  }
1969
1969
  function pr(t, e, n) {
1970
1970
  return new Promise(function(r, i) {
@@ -2023,8 +2023,8 @@ var vt = function(t) {
2023
2023
  l && (O = l.event);
2024
2024
  var C = _.type.match(Te) ? /* @__PURE__ */ function(R, z, K, $, U) {
2025
2025
  return function(M, j) {
2026
- var W = $ ? $.name : R, J = j && Fe(j) ? j : K;
2027
- if ($ && (!(J = j && Fe(j) ? j : [R]).includes(R) || J.length !== 1))
2026
+ var W = $ ? $.name : R, J = j && He(j) ? j : K;
2027
+ if ($ && (!(J = j && He(j) ? j : [R]).includes(R) || J.length !== 1))
2028
2028
  throw new Error("Method " + z + " can only abort " + R + " plugin. " + JSON.stringify(J) + " input valid");
2029
2029
  return A({}, U, { abort: { reason: M, plugins: J, caller: z, _: W } });
2030
2030
  };
@@ -2052,15 +2052,15 @@ var vt = function(t) {
2052
2052
  try {
2053
2053
  return Promise.resolve(O).then(function(z) {
2054
2054
  return C.method && V(C.method) ? (function(M, j) {
2055
- var W = In(M);
2055
+ var W = kn(M);
2056
2056
  if (W && W.name === j) {
2057
- var J = In(W.method);
2057
+ var J = kn(W.method);
2058
2058
  throw new Error([j + " plugin is calling method " + M, "Plugins cant call self", "Use " + W.method + " " + (J ? "or " + J.method : "") + " in " + j + " plugin insteadof " + M].join(`
2059
2059
  `));
2060
2060
  }
2061
2061
  }(C.methodName, C.pluginName), Promise.resolve(C.method({ payload: z, instance: r, abort: (K = z, $ = v, U = C.pluginName, function(M, j) {
2062
2062
  return A({}, K, { abort: { reason: M, plugins: j || [$], caller: c, from: U || $ } });
2063
- }), config: vn(C.pluginName, f, o), plugins: f })).then(function(M) {
2063
+ }), config: yn(C.pluginName, f, o), plugins: f })).then(function(M) {
2064
2064
  var j = X(M) ? M : {};
2065
2065
  return Promise.resolve(A({}, z, j));
2066
2066
  })) : z;
@@ -2092,13 +2092,13 @@ var vt = function(t) {
2092
2092
  if (S.hasOwnProperty(k) && S[k] === !0)
2093
2093
  return s.dispatch({ type: "queue", plugin: k, payload: C, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(O);
2094
2094
  var R = b(w[k], o[k]);
2095
- return Promise.resolve(T[c]({ abort: R.abort, payload: C, instance: r, config: vn(k, f, o), plugins: f })).then(function(z) {
2095
+ return Promise.resolve(T[c]({ abort: R.abort, payload: C, instance: r, config: yn(k, f, o), plugins: f })).then(function(z) {
2096
2096
  var K = X(z) ? z : {}, $ = A({}, O, K), U = w[k];
2097
2097
  if (bt(U, k))
2098
2098
  wt({ data: U, method: c, instance: r, pluginName: k, store: s });
2099
2099
  else {
2100
2100
  var M = c + ":" + k;
2101
- (M.match(/:/g) || []).length < 2 && !c.match(gn) && !c.match(yn) && r.dispatch(A({}, p ? $ : C, { type: M, _: { called: M, from: "submethod" } }));
2101
+ (M.match(/:/g) || []).length < 2 && !c.match(mn) && !c.match(gn) && r.dispatch(A({}, p ? $ : C, { type: M, _: { called: M, from: "submethod" } }));
2102
2102
  }
2103
2103
  return Promise.resolve($);
2104
2104
  });
@@ -2107,7 +2107,7 @@ var vt = function(t) {
2107
2107
  return Promise.reject(O);
2108
2108
  }
2109
2109
  }, Promise.resolve(n))).then(function(P) {
2110
- if (!(c.match(Te) || c.match(/^registerPlugin/) || c.match(yn) || c.match(gn) || c.match(/^params/) || c.match(/^userIdChanged/))) {
2110
+ if (!(c.match(Te) || c.match(/^registerPlugin/) || c.match(gn) || c.match(mn) || c.match(/^params/) || c.match(/^userIdChanged/))) {
2111
2111
  if (h.plugins.includes(c), P._ && P._.originalAction === c)
2112
2112
  return P;
2113
2113
  var _ = A({}, P, { _: { originalAction: P.type, called: P.type, from: "engineEnd" } });
@@ -2119,27 +2119,27 @@ var vt = function(t) {
2119
2119
  } catch (w) {
2120
2120
  return Promise.reject(w);
2121
2121
  }
2122
- }, Te = /Start$/, gn = /^bootstrap/, yn = /^ready/;
2122
+ }, Te = /Start$/, mn = /^bootstrap/, gn = /^ready/;
2123
2123
  function wt(t) {
2124
2124
  var e = t.pluginName, n = t.method + "Aborted" + (e ? ":" + e : "");
2125
2125
  t.store.dispatch(A({}, t.data, { type: n, _: { called: n, from: "abort" } }));
2126
2126
  }
2127
- function vn(t, e, n) {
2127
+ function yn(t, e, n) {
2128
2128
  var r = e[t] || n[t];
2129
2129
  return r && r.config ? r.config : {};
2130
2130
  }
2131
- function wn(t, e) {
2131
+ function vn(t, e) {
2132
2132
  return e.reduce(function(n, r) {
2133
2133
  return r[t] ? n.concat({ methodName: t, pluginName: r.name, method: r[t] }) : n;
2134
2134
  }, []);
2135
2135
  }
2136
- function bn(t, e) {
2136
+ function wn(t, e) {
2137
2137
  var n = t.replace(Te, ""), r = e ? ":" + e : "";
2138
2138
  return ["" + t + r, "" + n + r, n + "End" + r];
2139
2139
  }
2140
2140
  function bt(t, e) {
2141
2141
  var n = t.abort;
2142
- return !!n && (n === !0 || kn(n, e) || n && kn(n.plugins, e));
2142
+ return !!n && (n === !0 || bn(n, e) || n && bn(n.plugins, e));
2143
2143
  }
2144
2144
  function gr(t, e) {
2145
2145
  var n = t.abort;
@@ -2148,15 +2148,15 @@ function gr(t, e) {
2148
2148
  if (n === !0 || se(n))
2149
2149
  return !0;
2150
2150
  var r = n.plugins;
2151
- return Fe(n) && n.length === e || Fe(r) && r.length === e;
2151
+ return He(n) && n.length === e || He(r) && r.length === e;
2152
2152
  }
2153
- function Fe(t) {
2153
+ function He(t) {
2154
2154
  return Array.isArray(t);
2155
2155
  }
2156
- function kn(t, e) {
2157
- return !(!t || !Fe(t)) && t.includes(e);
2156
+ function bn(t, e) {
2157
+ return !(!t || !He(t)) && t.includes(e);
2158
2158
  }
2159
- function In(t) {
2159
+ function kn(t) {
2160
2160
  var e = t.match(/(.*):(.*)/);
2161
2161
  return !!e && { method: e[1], name: e[2] };
2162
2162
  }
@@ -2177,7 +2177,7 @@ function qi(t, e, n) {
2177
2177
  if (a.abort)
2178
2178
  return Promise.resolve(o(a));
2179
2179
  if (f === x.enablePlugin && i.dispatch({ type: x.initializeStart, plugins: u, disabled: [], fromEnable: !0, meta: a.meta }), f === x.disablePlugin && setTimeout(function() {
2180
- return mn(a.meta.rid, { payload: a });
2180
+ return pn(a.meta.rid, { payload: a });
2181
2181
  }, 0), f === x.initializeEnd) {
2182
2182
  var p = e(), d = Object.keys(p), b = d.filter(function(l) {
2183
2183
  return u.includes(l);
@@ -2228,14 +2228,14 @@ function qi(t, e, n) {
2228
2228
  var M = U.map(function(m) {
2229
2229
  return m.name;
2230
2230
  }), j = function(m, y, g) {
2231
- var I = bn(m).map(function(E) {
2232
- return wn(E, y);
2231
+ var I = wn(m).map(function(E) {
2232
+ return vn(E, y);
2233
2233
  });
2234
2234
  return y.reduce(function(E, L) {
2235
- var Z = L.name, N = bn(m, Z).map(function(Ue) {
2236
- return wn(Ue, y);
2237
- }), F = N[0], D = N[1], Q = N[2];
2238
- return F.length && (E.beforeNS[Z] = F), D.length && (E.duringNS[Z] = D), Q.length && (E.afterNS[Z] = Q), E;
2235
+ var Z = L.name, N = wn(m, Z).map(function(Ue) {
2236
+ return vn(Ue, y);
2237
+ }), F = N[0], D = N[1], ee = N[2];
2238
+ return F.length && (E.beforeNS[Z] = F), D.length && (E.duringNS[Z] = D), ee.length && (E.afterNS[Z] = ee), E;
2239
2239
  }, { before: I[0], beforeNS: {}, during: I[1], duringNS: {}, after: I[2], afterNS: {} });
2240
2240
  }(z, U);
2241
2241
  return Promise.resolve(vt({ action: l, data: { exact: j.before, namespaced: j.beforeNS }, state: $, allPlugins: R, allMatches: j, instance: T, store: O, EVENTS: C })).then(function(m) {
@@ -2243,7 +2243,7 @@ function qi(t, e, n) {
2243
2243
  var E = function() {
2244
2244
  if (z.match(Te))
2245
2245
  return Promise.resolve(vt({ action: A({}, g, { type: K + "End" }), data: { exact: j.after, namespaced: j.afterNS }, state: $, allPlugins: R, allMatches: j, instance: T, store: O, EVENTS: C })).then(function(L) {
2246
- L.meta && L.meta.hasCallback && mn(L.meta.rid, { payload: L });
2246
+ L.meta && L.meta.hasCallback && pn(L.meta.rid, { payload: L });
2247
2247
  });
2248
2248
  }();
2249
2249
  return E && E.then ? E.then(function() {
@@ -2323,32 +2323,32 @@ function to(t) {
2323
2323
  if (n.type === "initialize:aborted")
2324
2324
  return e;
2325
2325
  if (/^registerPlugin:([^:]*)$/.test(n.type)) {
2326
- var i = Sn(n.type, "registerPlugin"), o = t()[i];
2326
+ var i = In(n.type, "registerPlugin"), o = t()[i];
2327
2327
  if (!o || !i)
2328
2328
  return e;
2329
2329
  var a = n.enabled, s = o.config;
2330
2330
  return r[i] = { enabled: a, initialized: !!a && !o.initialize, loaded: !!a && !!o.loaded({ config: s }), config: s }, A({}, e, r);
2331
2331
  }
2332
2332
  if (/^initialize:([^:]*)$/.test(n.type)) {
2333
- var h = Sn(n.type, x.initialize), f = t()[h];
2333
+ var h = In(n.type, x.initialize), f = t()[h];
2334
2334
  return f && h ? (r[h] = A({}, e[h], { initialized: !0, loaded: !!f.loaded({ config: f.config }) }), A({}, e, r)) : e;
2335
2335
  }
2336
2336
  if (/^ready:([^:]*)$/.test(n.type))
2337
2337
  return r[n.name] = A({}, e[n.name], { loaded: !0 }), A({}, e, r);
2338
2338
  switch (n.type) {
2339
2339
  case x.disablePlugin:
2340
- return A({}, e, _n(n.plugins, !1, e));
2340
+ return A({}, e, Sn(n.plugins, !1, e));
2341
2341
  case x.enablePlugin:
2342
- return A({}, e, _n(n.plugins, !0, e));
2342
+ return A({}, e, Sn(n.plugins, !0, e));
2343
2343
  default:
2344
2344
  return e;
2345
2345
  }
2346
2346
  };
2347
2347
  }
2348
- function Sn(t, e) {
2348
+ function In(t, e) {
2349
2349
  return t.substring(e.length + 1, t.length);
2350
2350
  }
2351
- function _n(t, e, n) {
2351
+ function Sn(t, e, n) {
2352
2352
  return t.reduce(function(r, i) {
2353
2353
  return r[i] = A({}, n[i], { enabled: e }), r;
2354
2354
  }, n);
@@ -2419,9 +2419,9 @@ wr = function() {
2419
2419
  var t = navigator.appVersion;
2420
2420
  return ~t.indexOf("Win") ? "Windows" : ~t.indexOf("Mac") ? "MacOS" : ~t.indexOf("X11") ? "UNIX" : ~t.indexOf("Linux") ? "Linux" : "Unknown OS";
2421
2421
  }(), br = H ? document.referrer : null, kr = Di(), Ir = Mi();
2422
- var En = { initialized: !1, sessionId: lt(), app: null, version: null, debug: !1, offline: !!H && !navigator.onLine, os: { name: wr }, userAgent: H ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.7" }, timezone: Ir, locale: kr, campaign: {}, referrer: br };
2422
+ var _n = { initialized: !1, sessionId: lt(), app: null, version: null, debug: !1, offline: !!H && !navigator.onLine, os: { name: wr }, userAgent: H ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.7" }, timezone: Ir, locale: kr, campaign: {}, referrer: br };
2423
2423
  function lo(t, e) {
2424
- t === void 0 && (t = En);
2424
+ t === void 0 && (t = _n);
2425
2425
  var n = t.initialized, r = e.campaign;
2426
2426
  switch (e.type) {
2427
2427
  case x.campaign:
@@ -2431,7 +2431,7 @@ function lo(t, e) {
2431
2431
  case x.online:
2432
2432
  return A({}, t, { offline: !1 });
2433
2433
  default:
2434
- return n ? t : A({}, En, t, { initialized: !0 });
2434
+ return n ? t : A({}, _n, t, { initialized: !0 });
2435
2435
  }
2436
2436
  }
2437
2437
  var ho = ["plugins", "reducers", "storage"];
@@ -2461,7 +2461,7 @@ function Sr() {
2461
2461
  };
2462
2462
  };
2463
2463
  }
2464
- function Pn(t) {
2464
+ function En(t) {
2465
2465
  return function() {
2466
2466
  return Ae(Ae.apply(null, arguments), Sr());
2467
2467
  };
@@ -2469,10 +2469,10 @@ function Pn(t) {
2469
2469
  function kt(t) {
2470
2470
  return t ? dr(t) ? t : [t] : [];
2471
2471
  }
2472
- function Tn(t, e, n) {
2472
+ function Pn(t, e, n) {
2473
2473
  t === void 0 && (t = {});
2474
2474
  var r, i, o = lt();
2475
- return e && (ze[o] = (r = e, i = function(a) {
2475
+ return e && (De[o] = (r = e, i = function(a) {
2476
2476
  for (var s, h = a || Array.prototype.slice.call(arguments), f = 0; f < h.length; f++)
2477
2477
  if (V(h[f])) {
2478
2478
  s = h[f];
@@ -2497,8 +2497,8 @@ function mo(t) {
2497
2497
  m.pluginEnabled[y.name] = !(y.enabled === !1 || y.config.enabled === !1), delete y.enabled, y.methods && (m.methods[y.name] = Object.keys(y.methods).reduce(function(L, Z) {
2498
2498
  var N;
2499
2499
  return L[Z] = (N = y.methods[Z], function() {
2500
- for (var F = Array.prototype.slice.call(arguments), D = new Array(N.length), Q = 0; Q < F.length; Q++)
2501
- D[Q] = F[Q];
2500
+ for (var F = Array.prototype.slice.call(arguments), D = new Array(N.length), ee = 0; ee < F.length; ee++)
2501
+ D[ee] = F[ee];
2502
2502
  return D[D.length] = k, N.apply({ instance: k }, D);
2503
2503
  }), L;
2504
2504
  }, {}), delete y.methods);
@@ -2510,7 +2510,7 @@ function mo(t) {
2510
2510
  }), m;
2511
2511
  }, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), i = t.storage ? t.storage : { getItem: be, setItem: ke, removeItem: $e }, o = /* @__PURE__ */ function(m) {
2512
2512
  return function(y, g, I) {
2513
- return g.getState("user")[y] || (I && X(I) && I[y] ? I[y] : pn(m)[y] || be(xt(y)) || null);
2513
+ return g.getState("user")[y] || (I && X(I) && I[y] ? I[y] : fn(m)[y] || be(xt(y)) || null);
2514
2514
  };
2515
2515
  }(i), a = r.plugins, s = r.events.filter(function(m) {
2516
2516
  return !Ct.includes(m);
@@ -2520,7 +2520,7 @@ function mo(t) {
2520
2520
  return a;
2521
2521
  }, c = new eo(), p = c.addMiddleware, d = c.removeMiddleware, b = c.dynamicMiddlewares, S = function() {
2522
2522
  throw new Error("Abort disabled inListener");
2523
- }, w = Zi(), P = pn(i), _ = A({}, P, n, w.an_uid ? { userId: w.an_uid } : {}, w.an_aid ? { anonymousId: w.an_aid } : {});
2523
+ }, w = Zi(), P = fn(i), _ = A({}, P, n, w.an_uid ? { userId: w.an_uid } : {}, w.an_aid ? { anonymousId: w.an_aid } : {});
2524
2524
  _.anonymousId || (_.anonymousId = lt());
2525
2525
  var v = A({ enable: function(m, y) {
2526
2526
  return new Promise(function(g) {
@@ -2568,7 +2568,7 @@ function mo(t) {
2568
2568
  if (m === Ee || m === "anonId")
2569
2569
  return o(Ee, k);
2570
2570
  var y = k.getState("user");
2571
- return m ? sn(y, m) : y;
2571
+ return m ? an(y, m) : y;
2572
2572
  }, reset: function(m) {
2573
2573
  return new Promise(function(y) {
2574
2574
  j.dispatch({ type: x.resetStart }, y, m);
@@ -2622,7 +2622,7 @@ function mo(t) {
2622
2622
  return g;
2623
2623
  }, getState: function(m) {
2624
2624
  var y = j.getState();
2625
- return m ? sn(y, m) : Object.assign({}, y);
2625
+ return m ? an(y, m) : Object.assign({}, y);
2626
2626
  }, dispatch: function(m) {
2627
2627
  var y = se(m) ? { type: m } : m;
2628
2628
  if (rt.includes(y.type))
@@ -2638,14 +2638,14 @@ function mo(t) {
2638
2638
  }, events: { core: rt, plugins: s } }, T = r.middlewares.concat([function(m) {
2639
2639
  return function(y) {
2640
2640
  return function(g) {
2641
- return g.meta || (g.meta = Tn()), y(g);
2641
+ return g.meta || (g.meta = Pn()), y(g);
2642
2642
  };
2643
2643
  };
2644
2644
  }, b(qe), qi(k, u, { all: f, plugins: s }), Qi(i), Xi(k), Yi(k), b(Qe)]), O = { context: lo, user: Vi(i), page: uo, track: ro, plugins: to(u), queue: oo }, C = Ae, R = Ae;
2645
2645
  if (H && t.debug) {
2646
2646
  var z = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
2647
2647
  z && (C = z({ trace: !0, traceLimit: 25 })), R = function() {
2648
- return arguments.length === 0 ? Sr() : X(typeof arguments[0]) ? Pn() : Pn().apply(null, arguments);
2648
+ return arguments.length === 0 ? Sr() : X(typeof arguments[0]) ? En() : En().apply(null, arguments);
2649
2649
  };
2650
2650
  }
2651
2651
  var K, $ = function(m) {
@@ -2675,19 +2675,19 @@ function mo(t) {
2675
2675
  return function(N, F) {
2676
2676
  if (N === void 0 && (N = {}), L)
2677
2677
  throw L;
2678
- for (var D = !1, Q = {}, Ue = 0; Ue < Z.length; Ue++) {
2679
- var Je = Z[Ue], Xt = N[Je], ft = (0, g[Je])(Xt, F);
2678
+ for (var D = !1, ee = {}, Ue = 0; Ue < Z.length; Ue++) {
2679
+ var Xe = Z[Ue], Jt = N[Xe], ft = (0, g[Xe])(Jt, F);
2680
2680
  if (typeof ft === re) {
2681
- var Nr = Hi(Je, F);
2681
+ var Nr = Hi(Xe, F);
2682
2682
  throw new Error(Nr);
2683
2683
  }
2684
- Q[Je] = ft, D = D || ft !== Xt;
2684
+ ee[Xe] = ft, D = D || ft !== Jt;
2685
2685
  }
2686
- return D ? Q : N;
2686
+ return D ? ee : N;
2687
2687
  };
2688
2688
  }(A({}, O, e)), M, R(C(Ji.apply(void 0, T))));
2689
2689
  j.dispatch = (K = j.dispatch, function(m, y, g) {
2690
- var I = A({}, m, { meta: Tn(m.meta, y, kt(g)) });
2690
+ var I = A({}, m, { meta: Pn(m.meta, y, kt(g)) });
2691
2691
  return K.apply(null, [I]);
2692
2692
  });
2693
2693
  var W = Object.keys(a);
@@ -2708,7 +2708,7 @@ function mo(t) {
2708
2708
  }, 3e3);
2709
2709
  }(j, u, k), k;
2710
2710
  }
2711
- var qe = "before", Qe = "after", Me = "cookie", pe = Pr(), _r = dt, go = dt;
2711
+ var qe = "before", Qe = "after", Ze = "cookie", pe = Pr(), _r = dt, go = dt;
2712
2712
  function Er(t) {
2713
2713
  return pe ? dt(t, "", -1) : $e(t);
2714
2714
  }
@@ -2729,11 +2729,11 @@ function dt(t, e, n, r, i, o) {
2729
2729
  return pe === !1 && (a ? ke(t, e) : be(t)), a ? document.cookie = t + "=" + encodeURIComponent(e) + (n ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * n).toUTCString() + (r ? "; path=" + r : "") + (i ? "; domain=" + i : "") + (o ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + t + "=")[1] || "").split(";")[0]);
2730
2730
  }
2731
2731
  }
2732
- var Ze = "localStorage", yo = Mt.bind(null, "localStorage");
2732
+ var Ke = "localStorage", yo = Dt.bind(null, "localStorage");
2733
2733
  Le("localStorage", "getItem", be);
2734
2734
  Le("localStorage", "setItem", ke);
2735
2735
  Le("localStorage", "removeItem", $e);
2736
- var Ke = "sessionStorage", vo = Mt.bind(null, "sessionStorage");
2736
+ var We = "sessionStorage", vo = Dt.bind(null, "sessionStorage");
2737
2737
  Le("sessionStorage", "getItem", be);
2738
2738
  Le("sessionStorage", "setItem", ke);
2739
2739
  Le("sessionStorage", "removeItem", $e);
@@ -2755,13 +2755,13 @@ function Oe(t) {
2755
2755
  var wo = yo(), bo = vo(), ko = Pr();
2756
2756
  function Tr(t, e) {
2757
2757
  if (t) {
2758
- var n = Zt(e), r = !Ht(n), i = Kt(n) ? Oe(localStorage.getItem(t)) : void 0;
2758
+ var n = Mt(e), r = !Ft(n), i = Zt(n) ? Oe(localStorage.getItem(t)) : void 0;
2759
2759
  if (r && !_e(i))
2760
2760
  return i;
2761
- var o = Wt(n) ? Oe(_r(t)) : void 0;
2761
+ var o = Kt(n) ? Oe(_r(t)) : void 0;
2762
2762
  if (r && o)
2763
2763
  return o;
2764
- var a = Ft(n) ? Oe(sessionStorage.getItem(t)) : void 0;
2764
+ var a = Wt(n) ? Oe(sessionStorage.getItem(t)) : void 0;
2765
2765
  if (r && a)
2766
2766
  return a;
2767
2767
  var s = be(t);
@@ -2770,33 +2770,33 @@ function Tr(t, e) {
2770
2770
  }
2771
2771
  function Io(t, e, n) {
2772
2772
  if (t && !_e(e)) {
2773
- var r = {}, i = Zt(n), o = JSON.stringify(e), a = !Ht(i);
2774
- return Kt(i) && (r[Ze] = et(Ze, e, Oe(localStorage.getItem(t))), localStorage.setItem(t, o), a) ? r[Ze] : Wt(i) && (r[Me] = et(Me, e, Oe(_r(t))), go(t, o), a) ? r[Me] : Ft(i) && (r[Ke] = et(Ke, e, Oe(sessionStorage.getItem(t))), sessionStorage.setItem(t, o), a) ? r[Ke] : (r[De] = et(De, e, be(t)), ke(t, e), a ? r[De] : r);
2773
+ var r = {}, i = Mt(n), o = JSON.stringify(e), a = !Ft(i);
2774
+ return Zt(i) && (r[Ke] = et(Ke, e, Oe(localStorage.getItem(t))), localStorage.setItem(t, o), a) ? r[Ke] : Kt(i) && (r[Ze] = et(Ze, e, Oe(_r(t))), go(t, o), a) ? r[Ze] : Wt(i) && (r[We] = et(We, e, Oe(sessionStorage.getItem(t))), sessionStorage.setItem(t, o), a) ? r[We] : (r[Me] = et(Me, e, be(t)), ke(t, e), a ? r[Me] : r);
2775
2775
  }
2776
2776
  }
2777
2777
  function So(t, e) {
2778
2778
  if (t) {
2779
- var n = Zt(e), r = Tr(t, cr), i = {};
2780
- return !_e(r.localStorage) && Kt(n) && (localStorage.removeItem(t), i[Ze] = r.localStorage), !_e(r.cookie) && Wt(n) && (Er(t), i[Me] = r.cookie), !_e(r.sessionStorage) && Ft(n) && (sessionStorage.removeItem(t), i[Ke] = r.sessionStorage), !_e(r.global) && ht(n, De) && ($e(t), i[De] = r.global), i;
2779
+ var n = Mt(e), r = Tr(t, cr), i = {};
2780
+ return !_e(r.localStorage) && Zt(n) && (localStorage.removeItem(t), i[Ke] = r.localStorage), !_e(r.cookie) && Kt(n) && (Er(t), i[Ze] = r.cookie), !_e(r.sessionStorage) && Wt(n) && (sessionStorage.removeItem(t), i[We] = r.sessionStorage), !_e(r.global) && ht(n, Me) && ($e(t), i[Me] = r.global), i;
2781
2781
  }
2782
2782
  }
2783
- function Zt(t) {
2783
+ function Mt(t) {
2784
2784
  return t ? se(t) ? t : t.storage : sr;
2785
2785
  }
2786
+ function Zt(t) {
2787
+ return wo && ht(t, Ke);
2788
+ }
2786
2789
  function Kt(t) {
2787
- return wo && ht(t, Ze);
2790
+ return ko && ht(t, Ze);
2788
2791
  }
2789
2792
  function Wt(t) {
2790
- return ko && ht(t, Me);
2793
+ return bo && ht(t, We);
2791
2794
  }
2792
2795
  function Ft(t) {
2793
- return bo && ht(t, Ke);
2794
- }
2795
- function Ht(t) {
2796
2796
  return t === cr || t === "all";
2797
2797
  }
2798
2798
  function ht(t, e) {
2799
- return t === sr || t === e || Ht(t);
2799
+ return t === sr || t === e || Ft(t);
2800
2800
  }
2801
2801
  function et(t, e, n) {
2802
2802
  return { location: t, current: e, previous: n };
@@ -2810,7 +2810,7 @@ function Eo(t, e, n) {
2810
2810
  writable: !0
2811
2811
  }) : t[e] = n, t;
2812
2812
  }
2813
- function On(t, e) {
2813
+ function Tn(t, e) {
2814
2814
  var n = Object.keys(t);
2815
2815
  if (Object.getOwnPropertySymbols) {
2816
2816
  var r = Object.getOwnPropertySymbols(t);
@@ -2820,12 +2820,12 @@ function On(t, e) {
2820
2820
  }
2821
2821
  return n;
2822
2822
  }
2823
- function jn(t) {
2823
+ function On(t) {
2824
2824
  for (var e = 1; e < arguments.length; e++) {
2825
2825
  var n = arguments[e] != null ? arguments[e] : {};
2826
- e % 2 ? On(Object(n), !0).forEach(function(r) {
2826
+ e % 2 ? Tn(Object(n), !0).forEach(function(r) {
2827
2827
  Eo(t, r, n[r]);
2828
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : On(Object(n)).forEach(function(r) {
2828
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Tn(Object(n)).forEach(function(r) {
2829
2829
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
2830
2830
  });
2831
2831
  }
@@ -2835,7 +2835,7 @@ function Po() {
2835
2835
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
2836
2836
  storage: _o
2837
2837
  };
2838
- return mo(jn(jn({}, e), t));
2838
+ return mo(On(On({}, e), t));
2839
2839
  }
2840
2840
  function To(t, e) {
2841
2841
  e = e || {};
@@ -2891,17 +2891,17 @@ function xo() {
2891
2891
  function Ao(t) {
2892
2892
  if (t === void 0 && (t = {}), !H)
2893
2893
  return jt;
2894
- var e = xn(), n = At(), r = Cn(), i = tt(r, e), o = tt(n, e), a = [], s = [], h = [], f = r, u = i, c = o, p = Object.keys(t);
2894
+ var e = Cn(), n = At(), r = jn(), i = tt(r, e), o = tt(n, e), a = [], s = [], h = [], f = r, u = i, c = o, p = Object.keys(t);
2895
2895
  if (!p.length)
2896
2896
  return jt;
2897
2897
  var d = p.map(function(S) {
2898
2898
  return Number(S);
2899
2899
  }), b = Wi(function() {
2900
- var S = xn(), w = function($, U) {
2900
+ var S = Cn(), w = function($, U) {
2901
2901
  return U.map(function(M) {
2902
2902
  return M === 100 ? $ - 5 : $ * (M / 100);
2903
2903
  });
2904
- }(S, d), P = At(), _ = Cn(), v = tt(_, S), l = tt(P, S);
2904
+ }(S, d), P = At(), _ = jn(), v = tt(_, S), l = tt(P, S);
2905
2905
  if (u = v > u ? v : u, c = l < c ? l : c, !(a.length >= d.length)) {
2906
2906
  var k = f === _, T = "up";
2907
2907
  k ? T = "initial" : f <= _ && (T = "down");
@@ -2931,10 +2931,10 @@ function At() {
2931
2931
  function $o() {
2932
2932
  return H ? window.innerHeight || document.documentElement.clientHeight : 0;
2933
2933
  }
2934
- function Cn() {
2934
+ function jn() {
2935
2935
  return Math.round(At() + $o());
2936
2936
  }
2937
- function xn() {
2937
+ function Cn() {
2938
2938
  if (!H)
2939
2939
  return 0;
2940
2940
  var t = document.body, e = document.documentElement;
@@ -2943,7 +2943,7 @@ function xn() {
2943
2943
  function tt(t, e) {
2944
2944
  return Math.round(t / e * 100);
2945
2945
  }
2946
- var An = "EventListener";
2946
+ var xn = "EventListener";
2947
2947
  function Lo(t) {
2948
2948
  return function(e, n, r, i) {
2949
2949
  var o = r || jt, a = i || !1;
@@ -2957,7 +2957,7 @@ function Lo(t) {
2957
2957
  var f = [];
2958
2958
  return function u(c) {
2959
2959
  c && (f = []);
2960
- for (var p = c ? "add" + An : "remove" + An, d = 0; d < h.length; d++) {
2960
+ for (var p = c ? "add" + xn : "remove" + xn, d = 0; d < h.length; d++) {
2961
2961
  var b = h[d];
2962
2962
  f[d] = c ? a && a.once ? Uo(o) : o : f[d] || o;
2963
2963
  for (var S = 0; S < s.length; S++)
@@ -2998,7 +2998,7 @@ function Or(t, e) {
2998
2998
  }
2999
2999
  Or.bind(null, "onerror");
3000
3000
  Or.bind(null, "onload");
3001
- var jr = typeof window > "u", $n = "hidden";
3001
+ var jr = typeof window > "u", An = "hidden";
3002
3002
  function No(t) {
3003
3003
  if (jr)
3004
3004
  return !1;
@@ -3013,7 +3013,7 @@ function No(t) {
3013
3013
  }
3014
3014
  function Ro() {
3015
3015
  var t = ["webkit", "moz", "ms", "o"];
3016
- return jr || $n in document ? $n : t.reduce(function(e, n) {
3016
+ return jr || An in document ? An : t.reduce(function(e, n) {
3017
3017
  var r = n + "Hidden";
3018
3018
  return !e && r in document ? r : e;
3019
3019
  }, null);
@@ -3051,8 +3051,8 @@ function Mo(t) {
3051
3051
  return clearTimeout(e);
3052
3052
  };
3053
3053
  function b(w) {
3054
- d(), o && !u && o(Re(p), w), i && u && (u = !1, i(Re(n), w), p = /* @__PURE__ */ new Date()), e = setTimeout(function() {
3055
- u = !0, r && (n = /* @__PURE__ */ new Date(), r(Re(p), w));
3054
+ d(), o && !u && o(ze(p), w), i && u && (u = !1, i(ze(n), w), p = /* @__PURE__ */ new Date()), e = setTimeout(function() {
3055
+ u = !0, r && (n = /* @__PURE__ */ new Date(), r(ze(p), w));
3056
3056
  }, s);
3057
3057
  }
3058
3058
  var S = Do(b, { throttle: f });
@@ -3063,13 +3063,13 @@ function Mo(t) {
3063
3063
  return c = !1, p = /* @__PURE__ */ new Date(), b({ type: "load" }), w();
3064
3064
  };
3065
3065
  }, getStatus: function() {
3066
- return { isIdle: u, isDisabled: c, active: u ? 0 : Re(p, c), idle: u ? Re(n, c) : 0 };
3066
+ return { isIdle: u, isDisabled: c, active: u ? 0 : ze(p, c), idle: u ? ze(n, c) : 0 };
3067
3067
  } };
3068
3068
  }
3069
- function Re(t, e) {
3069
+ function ze(t, e) {
3070
3070
  return e ? 0 : Math.round((/* @__PURE__ */ new Date() - t) / 1e3);
3071
3071
  }
3072
- const Ln = 5e3;
3072
+ const $n = 5e3;
3073
3073
  class Zo {
3074
3074
  constructor(e) {
3075
3075
  B(this, "element");
@@ -3095,7 +3095,7 @@ class Zo {
3095
3095
  ), this.observer.observe(this.element), Mo({
3096
3096
  onIdle: (n) => this.handleAwake(!1, n),
3097
3097
  onWakeUp: (n) => this.handleAwake(!0, n),
3098
- timeout: Ln
3098
+ timeout: $n
3099
3099
  }), Ao({
3100
3100
  25: this.handleScroll.bind(this),
3101
3101
  50: this.handleScroll.bind(this),
@@ -3114,7 +3114,7 @@ class Zo {
3114
3114
  e ? (this.isAwake = !0, this.trackInViewport()) : this.handleAwake(!1), this.isInViewport = e;
3115
3115
  }
3116
3116
  handleAwake(e, n = Math.round((Date.now() - this.lastEventAt) / 1e3)) {
3117
- this.isAwake = e, this.lastEventAt = e ? Date.now() - n * Ln : Date.now(), this.isInViewport && this.trackAwake(e, n);
3117
+ this.isAwake = e, this.lastEventAt = e ? Date.now() - n * $n : Date.now(), this.isInViewport && this.trackAwake(e, n);
3118
3118
  }
3119
3119
  handleScroll(e) {
3120
3120
  this.scrollCallback && this.scrollCallback(e);
@@ -3131,14 +3131,14 @@ class Zo {
3131
3131
  this.registeredView || (this.registeredView = !0, this.viewCallback && this.viewCallback());
3132
3132
  }
3133
3133
  }
3134
- const Un = "sesamy_session_id";
3134
+ const Ln = "sesamy_session_id";
3135
3135
  function Ko() {
3136
- let t = sessionStorage.getItem(Un);
3137
- return t || (t = Math.random().toString(36).slice(2, 9), sessionStorage.setItem(Un, t)), t;
3136
+ let t = sessionStorage.getItem(Ln);
3137
+ return t || (t = Math.random().toString(36).slice(2, 9), sessionStorage.setItem(Ln, t)), t;
3138
3138
  }
3139
- let Cr = !1, $t, Nn, st;
3139
+ let Cr = !1, $t, Un, st;
3140
3140
  function Wo({ clientId: t, enabled: e = !0, endpoint: n = di }) {
3141
- if ($t = t, Nn = e, st = n, !Nn)
3141
+ if ($t = t, Un = e, st = n, !Un)
3142
3142
  return;
3143
3143
  xo();
3144
3144
  const r = new Zo({
@@ -3170,11 +3170,11 @@ function Wo({ clientId: t, enabled: e = !0, endpoint: n = di }) {
3170
3170
  r.flush();
3171
3171
  }), Xo(document.body, () => {
3172
3172
  r.handleVisibilityChange();
3173
- }), window.addEventListener(q.AUTHENTICATED, async (i) => {
3173
+ }), window.addEventListener(Q.AUTHENTICATED, async (i) => {
3174
3174
  const o = i;
3175
3175
  await ne.identify(o.detail.sub);
3176
- }), window.addEventListener(q.LOGOUT, async () => {
3177
- await ne.track("logout", {}), Jt.flush(), await ne.reset();
3176
+ }), window.addEventListener(Q.LOGOUT, async () => {
3177
+ await ne.track("logout", {}), Ht.flush(), await ne.reset();
3178
3178
  });
3179
3179
  }
3180
3180
  function xr(t) {
@@ -3185,7 +3185,7 @@ function xr(t) {
3185
3185
  requestId: Math.random().toString(36).slice(2, 9),
3186
3186
  sessionId: Ko(),
3187
3187
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
3188
- version: Dt,
3188
+ version: zt,
3189
3189
  event: e.event,
3190
3190
  context: {
3191
3191
  page: {
@@ -3203,7 +3203,7 @@ function xr(t) {
3203
3203
  }))
3204
3204
  );
3205
3205
  }
3206
- const Jt = To(
3206
+ const Ht = To(
3207
3207
  async (t) => {
3208
3208
  if (t.length > 0) {
3209
3209
  const e = xr(t);
@@ -3230,11 +3230,11 @@ function St(t) {
3230
3230
  const n = { ...t };
3231
3231
  delete n.properties.flushing, navigator.sendBeacon(st, xr([n]));
3232
3232
  } else
3233
- Jt.push(t);
3233
+ Ht.push(t);
3234
3234
  }
3235
3235
  const ne = Po({
3236
3236
  app: ar,
3237
- version: Dt,
3237
+ version: zt,
3238
3238
  plugins: [
3239
3239
  {
3240
3240
  name: "custom-analytics-plugin",
@@ -3274,7 +3274,7 @@ function Fo(t, e) {
3274
3274
  ne.track(t, e);
3275
3275
  }
3276
3276
  function Ho() {
3277
- return Cr = !0, Jt.flush();
3277
+ return Cr = !0, Ht.flush();
3278
3278
  }
3279
3279
  const Ar = /* @__PURE__ */ new Map();
3280
3280
  function Jo(t, e) {
@@ -3337,8 +3337,8 @@ function Yo(t) {
3337
3337
  } = Oi(t), M = {
3338
3338
  auth: {
3339
3339
  getUser: f,
3340
- isAuthenticated: Rt,
3341
- loginWithRedirect: zt,
3340
+ isAuthenticated: er,
3341
+ loginWithRedirect: Rt,
3342
3342
  logout: mi,
3343
3343
  setToken: nr
3344
3344
  },
@@ -3394,12 +3394,12 @@ function Yo(t) {
3394
3394
  getVersion: Go,
3395
3395
  getPaymentIssues: O,
3396
3396
  generateLink: U,
3397
- clearCache: ee
3397
+ clearCache: q
3398
3398
  };
3399
3399
  return t.namespace && (window[t.namespace] = M), M;
3400
3400
  }
3401
3401
  function Go() {
3402
- return Dt;
3402
+ return zt;
3403
3403
  }
3404
3404
  function Bo() {
3405
3405
  const t = new URLSearchParams(window.location.hash.substring(1)), e = t.get("access_token");
@@ -3409,12 +3409,12 @@ function Bo() {
3409
3409
  t.delete("access_token"), n.hash = t.toString(), window.history.replaceState(null, "", n);
3410
3410
  }
3411
3411
  }
3412
- const Rn = "sesamy-refresh", zn = "force-refetch-entitlements";
3412
+ const Nn = "sesamy-refresh", Rn = "force-refetch-entitlements";
3413
3413
  function qo() {
3414
- const t = new URLSearchParams(window.location.search), e = t.get(zn), n = t.get(Rn);
3414
+ const t = new URLSearchParams(window.location.search), e = t.get(Rn), n = t.get(Nn);
3415
3415
  if (e !== null || n !== null) {
3416
3416
  const r = new URL(window.location.href);
3417
- t.delete(zn), t.delete(Rn), r.search = t.toString(), ee(), window.history.replaceState(null, "", r);
3417
+ t.delete(Rn), t.delete(Nn), r.search = t.toString(), q(), window.history.replaceState(null, "", r);
3418
3418
  }
3419
3419
  }
3420
3420
  function Qo() {
@@ -3433,31 +3433,31 @@ function Qo() {
3433
3433
  const i = new URL(window.location.href);
3434
3434
  i.searchParams.delete("ss"), i.searchParams.delete("se"), i.searchParams.delete("sp"), i.searchParams.delete("so"), i.searchParams.delete("token"), window.history.replaceState(null, "", i);
3435
3435
  }
3436
- const Dn = "sesamy-user";
3436
+ const zn = "sesamy-user";
3437
3437
  async function ea() {
3438
- const e = new URLSearchParams(window.location.search).get(Dn);
3438
+ const e = new URLSearchParams(window.location.search).get(zn);
3439
3439
  if (!e)
3440
3440
  return;
3441
3441
  const n = await pi();
3442
- (n == null ? void 0 : n.email) !== e && zt({ authorizationParams: { email_hint: e } });
3442
+ (n == null ? void 0 : n.email) !== e && (q(), Rt({ authorizationParams: { email_hint: e, login_hint: e } }));
3443
3443
  const r = new URL(window.location.href);
3444
- r.searchParams.delete(Dn), window.history.replaceState(null, "", r);
3444
+ r.searchParams.delete(zn), window.history.replaceState(null, "", r);
3445
3445
  }
3446
- const Mn = "sesamy-purchase";
3446
+ const Dn = "sesamy-purchase";
3447
3447
  function ta() {
3448
- const t = new URLSearchParams(window.location.search), e = t.get(Mn);
3448
+ const t = new URLSearchParams(window.location.search), e = t.get(Dn);
3449
3449
  if (e !== null) {
3450
3450
  const n = new URL(window.location.href);
3451
- t.delete(Mn), n.search = t.toString(), ue(q.PURCHASE, { itemSrc: e }), ee(), window.history.replaceState(null, "", n);
3451
+ t.delete(Dn), n.search = t.toString(), ue(Q.PURCHASE, { itemSrc: e }), q(), window.history.replaceState(null, "", n);
3452
3452
  }
3453
3453
  }
3454
- const Zn = "sesamy-login";
3454
+ const Mn = "sesamy-login";
3455
3455
  async function na() {
3456
- if (!new URLSearchParams(window.location.search).get(Zn))
3456
+ if (!new URLSearchParams(window.location.search).get(Mn))
3457
3457
  return;
3458
- await Rt() || zt();
3458
+ await er() || Rt();
3459
3459
  const r = new URL(window.location.href);
3460
- r.searchParams.delete(Zn), window.history.replaceState(null, "", r);
3460
+ r.searchParams.delete(Mn), window.history.replaceState(null, "", r);
3461
3461
  }
3462
3462
  async function ra(t) {
3463
3463
  Wo({
@@ -3471,7 +3471,7 @@ async function ra(t) {
3471
3471
  ...t.auth
3472
3472
  });
3473
3473
  const e = Yo({ clientId: t.clientId, ...t.api });
3474
- return ue(q.READY, {}), Bo(), qo(), Qo(), await na(), await ea(), ta(), e;
3474
+ return ue(Q.READY, {}), Bo(), qo(), Qo(), await na(), await ea(), ta(), e;
3475
3475
  }
3476
3476
  if (typeof document < "u") {
3477
3477
  const t = document.getElementById("sesamy-js");