@hotosm/hanko-auth 0.4.9 → 0.5.0

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.
@@ -45,7 +45,7 @@ const Ki = (n) => new ui(typeof n == "string" ? n : n + "", void 0, Xn), Vi = (n
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Zi, defineProperty: Ji, getOwnPropertyDescriptor: Yi, getOwnPropertyNames: Qi, getOwnPropertySymbols: Gi, getPrototypeOf: Xi } = Object, st = globalThis, Ao = st.trustedTypes, er = Ao ? Ao.emptyScript : "", Dn = st.reactiveElementPolyfillSupport, Tt = (n, e) => n, gn = { toAttribute(n, e) {
48
+ const { is: Zi, defineProperty: Ji, getOwnPropertyDescriptor: Yi, getOwnPropertyNames: Qi, getOwnPropertySymbols: Gi, getPrototypeOf: Xi } = Object, st = globalThis, Ao = st.trustedTypes, er = Ao ? Ao.emptyScript : "", Dn = st.reactiveElementPolyfillSupport, Ut = (n, e) => n, gn = { toAttribute(n, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
51
  n = n ? er : null;
@@ -103,13 +103,13 @@ let pt = class extends HTMLElement {
103
103
  return this.elementProperties.get(e) ?? Co;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(Tt("elementProperties"))) return;
106
+ if (this.hasOwnProperty(Ut("elementProperties"))) return;
107
107
  const e = Xi(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(Tt("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Tt("properties"))) {
111
+ if (this.hasOwnProperty(Ut("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ut("properties"))) {
113
113
  const t = this.properties, o = [...Qi(t), ...Gi(t)];
114
114
  for (const i of o) this.createProperty(i, t[i]);
115
115
  }
@@ -278,15 +278,15 @@ let pt = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Tt("elementProperties")] = /* @__PURE__ */ new Map(), pt[Tt("finalized")] = /* @__PURE__ */ new Map(), Dn == null || Dn({ ReactiveElement: pt }), (st.reactiveElementVersions ?? (st.reactiveElementVersions = [])).push("2.1.2");
281
+ pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Ut("elementProperties")] = /* @__PURE__ */ new Map(), pt[Ut("finalized")] = /* @__PURE__ */ new Map(), Dn == null || Dn({ ReactiveElement: pt }), (st.reactiveElementVersions ?? (st.reactiveElementVersions = [])).push("2.1.2");
282
282
  /**
283
283
  * @license
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const Nt = globalThis, Po = (n) => n, vn = Nt.trustedTypes, Oo = vn ? vn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, hi = "$lit$", at = `lit$${Math.random().toFixed(9).slice(2)}$`, pi = "?" + at, tr = `<${pi}>`, ht = document, Rt = () => ht.createComment(""), qt = (n) => n === null || typeof n != "object" && typeof n != "function", to = Array.isArray, nr = (n) => to(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", $n = `[
288
- \f\r]`, _t = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Eo = /-->/g, Io = />/g, ct = RegExp(`>|${$n}(?:([^\\s"'>=/]+)(${$n}*=${$n}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, $o = /"/g, mi = /^(?:script|style|textarea|title)$/i, or = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), _e = or(1), gt = Symbol.for("lit-noChange"), Le = Symbol.for("lit-nothing"), jo = /* @__PURE__ */ new WeakMap(), dt = ht.createTreeWalker(ht, 129);
287
+ const Nt = globalThis, Po = (n) => n, vn = Nt.trustedTypes, Oo = vn ? vn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, hi = "$lit$", at = `lit$${Math.random().toFixed(9).slice(2)}$`, pi = "?" + at, tr = `<${pi}>`, ht = document, Rt = () => ht.createComment(""), qt = (n) => n === null || typeof n != "object" && typeof n != "function", to = Array.isArray, nr = (n) => to(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jn = `[
288
+ \f\r]`, _t = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Eo = /-->/g, Io = />/g, ct = RegExp(`>|${jn}(?:([^\\s"'>=/]+)(${jn}*=${jn}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, jo = /"/g, mi = /^(?:script|style|textarea|title)$/i, or = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), _e = or(1), gt = Symbol.for("lit-noChange"), Le = Symbol.for("lit-nothing"), $o = /* @__PURE__ */ new WeakMap(), dt = ht.createTreeWalker(ht, 129);
290
290
  function fi(n, e) {
291
291
  if (!to(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return Oo !== void 0 ? Oo.createHTML(e) : e;
@@ -296,8 +296,8 @@ const ir = (n, e) => {
296
296
  let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = _t;
297
297
  for (let c = 0; c < t; c++) {
298
298
  const d = n[c];
299
- let l, u, h = -1, g = 0;
300
- for (; g < d.length && (s.lastIndex = g, u = s.exec(d), u !== null); ) g = s.lastIndex, s === _t ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (mi.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? _t, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? $o : Do) : s === $o || s === Do ? s = ct : s === Eo || s === Io ? s = _t : (s = ct, i = void 0);
299
+ let l, u, h = -1, f = 0;
300
+ for (; f < d.length && (s.lastIndex = f, u = s.exec(d), u !== null); ) f = s.lastIndex, s === _t ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (mi.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? _t, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = _t : (s = ct, i = void 0);
301
301
  const m = s === ct && n[c + 1].startsWith("/>") ? " " : "";
302
302
  r += s === _t ? d + tr : h >= 0 ? (o.push(l), d.slice(0, h) + hi + d.slice(h) + at + m) : d + at + (h === -2 ? c : m);
303
303
  }
@@ -316,15 +316,15 @@ let Bn = class gi {
316
316
  for (; (i = dt.nextNode()) !== null && d.length < c; ) {
317
317
  if (i.nodeType === 1) {
318
318
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(hi)) {
319
- const g = u[s++], m = i.getAttribute(h).split(at), x = /([.?@])?(.*)/.exec(g);
319
+ const f = u[s++], m = i.getAttribute(h).split(at), x = /([.?@])?(.*)/.exec(f);
320
320
  d.push({ type: 1, index: r, name: x[2], strings: m, ctor: x[1] === "." ? ar : x[1] === "?" ? sr : x[1] === "@" ? lr : kn }), i.removeAttribute(h);
321
321
  } else h.startsWith(at) && (d.push({ type: 6, index: r }), i.removeAttribute(h));
322
322
  if (mi.test(i.tagName)) {
323
- const h = i.textContent.split(at), g = h.length - 1;
324
- if (g > 0) {
323
+ const h = i.textContent.split(at), f = h.length - 1;
324
+ if (f > 0) {
325
325
  i.textContent = vn ? vn.emptyScript : "";
326
- for (let m = 0; m < g; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++r });
327
- i.append(h[g], Rt());
326
+ for (let m = 0; m < f; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++r });
327
+ i.append(h[f], Rt());
328
328
  }
329
329
  }
330
330
  } else if (i.nodeType === 8) if (i.data === pi) d.push({ type: 2, index: r });
@@ -415,8 +415,8 @@ let rr = class {
415
415
  }
416
416
  }
417
417
  _$AC(e) {
418
- let t = jo.get(e.strings);
419
- return t === void 0 && jo.set(e.strings, t = new Bn(e)), t;
418
+ let t = $o.get(e.strings);
419
+ return t === void 0 && $o.set(e.strings, t = new Bn(e)), t;
420
420
  }
421
421
  k(e) {
422
422
  to(this._$AH) || (this._$AH = [], this._$AR());
@@ -498,8 +498,8 @@ let rr = class {
498
498
  vt(this, e);
499
499
  }
500
500
  };
501
- const jn = Nt.litHtmlPolyfillSupport;
502
- jn == null || jn(Bn, no), (Nt.litHtmlVersions ?? (Nt.litHtmlVersions = [])).push("3.3.2");
501
+ const $n = Nt.litHtmlPolyfillSupport;
502
+ $n == null || $n(Bn, no), (Nt.litHtmlVersions ?? (Nt.litHtmlVersions = [])).push("3.3.2");
503
503
  const dr = (n, e, t) => {
504
504
  const o = (t == null ? void 0 : t.renderBefore) ?? e;
505
505
  let i = o._$litPart$;
@@ -581,7 +581,7 @@ const hr = { attribute: !0, type: String, converter: gn, reflect: !1, hasChanged
581
581
  }
582
582
  throw Error("Unsupported decorator location: " + o);
583
583
  };
584
- function Ue(n) {
584
+ function Te(n) {
585
585
  return (e, t) => typeof t == "object" ? pr(n, e, t) : ((o, i, r) => {
586
586
  const s = i.hasOwnProperty(r);
587
587
  return i.constructor.createProperty(r, o), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
@@ -593,7 +593,7 @@ function Ue(n) {
593
593
  * SPDX-License-Identifier: BSD-3-Clause
594
594
  */
595
595
  function Ze(n) {
596
- return Ue({ ...n, state: !0, attribute: !1 });
596
+ return Te({ ...n, state: !0, attribute: !1 });
597
597
  }
598
598
  /**
599
599
  * @license
@@ -651,19 +651,19 @@ var _r = { 7: function(n, e, t) {
651
651
  function c(x, P) {
652
652
  var A = typeof Symbol == "function" && x[Symbol.iterator];
653
653
  if (!A) return x;
654
- var S, O, $ = A.call(x), T = [];
654
+ var S, O, j = A.call(x), U = [];
655
655
  try {
656
- for (; (P === void 0 || P-- > 0) && !(S = $.next()).done; ) T.push(S.value);
656
+ for (; (P === void 0 || P-- > 0) && !(S = j.next()).done; ) U.push(S.value);
657
657
  } catch (N) {
658
658
  O = { error: N };
659
659
  } finally {
660
660
  try {
661
- S && !S.done && (A = $.return) && A.call($);
661
+ S && !S.done && (A = j.return) && A.call(j);
662
662
  } finally {
663
663
  if (O) throw O.error;
664
664
  }
665
665
  }
666
- return T;
666
+ return U;
667
667
  }
668
668
  function d(x, P) {
669
669
  return [x, !x || x.endsWith("/") ? "" : "/", P, ".json"].join("");
@@ -671,28 +671,28 @@ var _r = { 7: function(n, e, t) {
671
671
  function l(x, P) {
672
672
  var A = x;
673
673
  return P && Object.keys(P).forEach(function(S) {
674
- var O = P[S], $ = new RegExp("{".concat(S, "}"), "gm");
675
- A = A.replace($, O.toString());
674
+ var O = P[S], j = new RegExp("{".concat(S, "}"), "gm");
675
+ A = A.replace(j, O.toString());
676
676
  }), A;
677
677
  }
678
678
  function u(x, P, A) {
679
679
  var S = x[P];
680
680
  if (!S) return A;
681
- var O = A.split("."), $ = "";
681
+ var O = A.split("."), j = "";
682
682
  do {
683
- var T = S[$ += O.shift()];
684
- T === void 0 || typeof T != "object" && O.length ? O.length ? $ += "." : S = A : (S = T, $ = "");
683
+ var U = S[j += O.shift()];
684
+ U === void 0 || typeof U != "object" && O.length ? O.length ? j += "." : S = A : (S = U, j = "");
685
685
  } while (O.length);
686
686
  return S;
687
687
  }
688
- var h = {}, g = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
688
+ var h = {}, f = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
689
689
  o.TranslateContext = m, o.TranslateProvider = function(x) {
690
- var P = function(T, N) {
691
- T = Object.assign({}, g, T), h = N || h;
692
- var ae = c(r.useState(T.lang), 2), ke = ae[0], se = ae[1], Se = c(r.useState(h), 2), M = Se[0], H = Se[1], ye = c(r.useState(!1), 2), Te = ye[0], Ie = ye[1], Ne = function(le) {
690
+ var P = function(U, N) {
691
+ U = Object.assign({}, f, U), h = N || h;
692
+ var ae = c(r.useState(U.lang), 2), ke = ae[0], se = ae[1], Se = c(r.useState(h), 2), M = Se[0], H = Se[1], ye = c(r.useState(!1), 2), Ue = ye[0], Ie = ye[1], Ne = function(le) {
693
693
  if (!M.hasOwnProperty(le)) {
694
694
  Ie(!1);
695
- var ce = d(T.root, le);
695
+ var ce = d(U.root, le);
696
696
  fetch(ce).then(function(me) {
697
697
  return me.json();
698
698
  }).then(function(me) {
@@ -703,14 +703,14 @@ var _r = { 7: function(n, e, t) {
703
703
  }
704
704
  };
705
705
  return r.useEffect(function() {
706
- Ne(T.fallbackLang), Ne(ke);
706
+ Ne(U.fallbackLang), Ne(ke);
707
707
  }, [ke]), { lang: ke, setLang: se, t: function(le, ce) {
708
708
  if (!M.hasOwnProperty(ke)) return le;
709
709
  var me = u(M, ke, le);
710
- return me === le && ke !== T.fallbackLang && (me = u(M, T.fallbackLang, le)), l(me, ce);
711
- }, isReady: Te };
712
- }({ root: x.root || "assets", lang: x.lang || "en", fallbackLang: x.fallbackLang || "en" }, x.translations), A = P.t, S = P.setLang, O = P.lang, $ = P.isReady;
713
- return i.h(m.Provider, { value: { t: A, setLang: S, lang: O, isReady: $ } }, x.children);
710
+ return me === le && ke !== U.fallbackLang && (me = u(M, U.fallbackLang, le)), l(me, ce);
711
+ }, isReady: Ue };
712
+ }({ root: x.root || "assets", lang: x.lang || "en", fallbackLang: x.fallbackLang || "en" }, x.translations), A = P.t, S = P.setLang, O = P.lang, j = P.isReady;
713
+ return i.h(m.Provider, { value: { t: A, setLang: S, lang: O, isReady: j } }, x.children);
714
714
  }, o.format = l, o.getResourceUrl = d, o.getValue = u, Object.defineProperty(o, "__esModule", { value: !0 });
715
715
  })(e, t(616), t(78));
716
716
  }, 633: (n, e) => {
@@ -809,8 +809,8 @@ var _r = { 7: function(n, e, t) {
809
809
  u != null && (d[u] = !0);
810
810
  }
811
811
  for (var h = 0; h < o.length; h++) {
812
- var g = [].concat(o[h]);
813
- r && d[g[0]] || (c !== void 0 && (g[5] === void 0 || (g[1] = "@layer".concat(g[5].length > 0 ? " ".concat(g[5]) : "", " {").concat(g[1], "}")), g[5] = c), i && (g[2] && (g[1] = "@media ".concat(g[2], " {").concat(g[1], "}")), g[2] = i), s && (g[4] ? (g[1] = "@supports (".concat(g[4], ") {").concat(g[1], "}"), g[4] = s) : g[4] = "".concat(s)), t.push(g));
812
+ var f = [].concat(o[h]);
813
+ r && d[f[0]] || (c !== void 0 && (f[5] === void 0 || (f[1] = "@layer".concat(f[5].length > 0 ? " ".concat(f[5]) : "", " {").concat(f[1], "}")), f[5] = c), i && (f[2] && (f[1] = "@media ".concat(f[2], " {").concat(f[1], "}")), f[2] = i), s && (f[4] ? (f[1] = "@supports (".concat(f[4], ") {").concat(f[1], "}"), f[4] = s) : f[4] = "".concat(s)), t.push(f));
814
814
  }
815
815
  }, t;
816
816
  };
@@ -819,61 +819,61 @@ var _r = { 7: function(n, e, t) {
819
819
  return e[1];
820
820
  };
821
821
  }, 616: (n, e, t) => {
822
- t.r(e), t.d(e, { Component: () => N, Fragment: () => T, cloneElement: () => We, createContext: () => Fe, createElement: () => S, createRef: () => $, h: () => S, hydrate: () => He, isValidElement: () => s, options: () => i, render: () => fe, toChildArray: () => ye });
823
- var o, i, r, s, c, d, l, u, h, g = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
- function P(f, v) {
825
- for (var b in v) f[b] = v[b];
826
- return f;
827
- }
828
- function A(f) {
829
- var v = f.parentNode;
830
- v && v.removeChild(f);
831
- }
832
- function S(f, v, b) {
833
- var D, U, I, z = {};
834
- for (I in v) I == "key" ? D = v[I] : I == "ref" ? U = v[I] : z[I] = v[I];
835
- if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof f == "function" && f.defaultProps != null) for (I in f.defaultProps) z[I] === void 0 && (z[I] = f.defaultProps[I]);
836
- return O(f, z, D, U, null);
837
- }
838
- function O(f, v, b, D, U) {
839
- var I = { type: f, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: U ?? ++r };
840
- return U == null && i.vnode != null && i.vnode(I), I;
841
- }
842
- function $() {
822
+ t.r(e), t.d(e, { Component: () => N, Fragment: () => U, cloneElement: () => We, createContext: () => Fe, createElement: () => S, createRef: () => j, h: () => S, hydrate: () => He, isValidElement: () => s, options: () => i, render: () => fe, toChildArray: () => ye });
823
+ var o, i, r, s, c, d, l, u, h, f = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
+ function P(g, v) {
825
+ for (var b in v) g[b] = v[b];
826
+ return g;
827
+ }
828
+ function A(g) {
829
+ var v = g.parentNode;
830
+ v && v.removeChild(g);
831
+ }
832
+ function S(g, v, b) {
833
+ var D, T, I, z = {};
834
+ for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
835
+ if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof g == "function" && g.defaultProps != null) for (I in g.defaultProps) z[I] === void 0 && (z[I] = g.defaultProps[I]);
836
+ return O(g, z, D, T, null);
837
+ }
838
+ function O(g, v, b, D, T) {
839
+ var I = { type: g, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: T ?? ++r };
840
+ return T == null && i.vnode != null && i.vnode(I), I;
841
+ }
842
+ function j() {
843
843
  return { current: null };
844
844
  }
845
- function T(f) {
846
- return f.children;
845
+ function U(g) {
846
+ return g.children;
847
847
  }
848
- function N(f, v) {
849
- this.props = f, this.context = v;
848
+ function N(g, v) {
849
+ this.props = g, this.context = v;
850
850
  }
851
- function ae(f, v) {
852
- if (v == null) return f.__ ? ae(f.__, f.__.__k.indexOf(f) + 1) : null;
853
- for (var b; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) return b.__e;
854
- return typeof f.type == "function" ? ae(f) : null;
851
+ function ae(g, v) {
852
+ if (v == null) return g.__ ? ae(g.__, g.__.__k.indexOf(g) + 1) : null;
853
+ for (var b; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) return b.__e;
854
+ return typeof g.type == "function" ? ae(g) : null;
855
855
  }
856
- function ke(f) {
856
+ function ke(g) {
857
857
  var v, b;
858
- if ((f = f.__) != null && f.__c != null) {
859
- for (f.__e = f.__c.base = null, v = 0; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) {
860
- f.__e = f.__c.base = b.__e;
858
+ if ((g = g.__) != null && g.__c != null) {
859
+ for (g.__e = g.__c.base = null, v = 0; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) {
860
+ g.__e = g.__c.base = b.__e;
861
861
  break;
862
862
  }
863
- return ke(f);
863
+ return ke(g);
864
864
  }
865
865
  }
866
- function se(f) {
867
- (!f.__d && (f.__d = !0) && c.push(f) && !Se.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(Se);
866
+ function se(g) {
867
+ (!g.__d && (g.__d = !0) && c.push(g) && !Se.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(Se);
868
868
  }
869
869
  function Se() {
870
- var f, v, b, D, U, I, z, ee;
871
- for (c.sort(u); f = c.shift(); ) f.__d && (v = c.length, D = void 0, U = void 0, z = (I = (b = f).__v).__e, (ee = b.__P) && (D = [], (U = P({}, I)).__v = I.__v + 1, De(ee, I, U, b.__n, ee.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && ke(I)), c.length > v && c.sort(u));
870
+ var g, v, b, D, T, I, z, ee;
871
+ for (c.sort(u); g = c.shift(); ) g.__d && (v = c.length, D = void 0, T = void 0, z = (I = (b = g).__v).__e, (ee = b.__P) && (D = [], (T = P({}, I)).__v = I.__v + 1, De(ee, I, T, b.__n, ee.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && ke(I)), c.length > v && c.sort(u));
872
872
  Se.__r = 0;
873
873
  }
874
- function M(f, v, b, D, U, I, z, ee, G, be) {
874
+ function M(g, v, b, D, T, I, z, ee, G, be) {
875
875
  var w, we, J, R, E, xe, V, F = D && D.__k || m, qe = F.length;
876
- for (b.__k = [], w = 0; w < v.length; w++) if ((R = b.__k[w] = (R = v[w]) == null || typeof R == "boolean" || typeof R == "function" ? null : typeof R == "string" || typeof R == "number" || typeof R == "bigint" ? O(null, R, null, null, R) : Array.isArray(R) ? O(T, { children: R }, null, null, null) : R.__b > 0 ? O(R.type, R.props, R.key, R.ref ? R.ref : null, R.__v) : R) != null) {
876
+ for (b.__k = [], w = 0; w < v.length; w++) if ((R = b.__k[w] = (R = v[w]) == null || typeof R == "boolean" || typeof R == "function" ? null : typeof R == "string" || typeof R == "number" || typeof R == "bigint" ? O(null, R, null, null, R) : Array.isArray(R) ? O(U, { children: R }, null, null, null) : R.__b > 0 ? O(R.type, R.props, R.key, R.ref ? R.ref : null, R.__v) : R) != null) {
877
877
  if (R.__ = b, R.__b = b.__b + 1, (J = F[w]) === null || J && R.key == J.key && R.type === J.type) F[w] = void 0;
878
878
  else for (we = 0; we < qe; we++) {
879
879
  if ((J = F[we]) && R.key == J.key && R.type === J.type) {
@@ -882,66 +882,66 @@ var _r = { 7: function(n, e, t) {
882
882
  }
883
883
  J = null;
884
884
  }
885
- De(f, R, J = J || g, U, I, z, ee, G, be), E = R.__e, (we = R.ref) && J.ref != we && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(we, R.__c || E, R)), E != null ? (xe == null && (xe = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = G = H(R, G, f) : G = Te(f, R, J, F, E, G), typeof b.type == "function" && (b.__d = G)) : G && J.__e == G && G.parentNode != f && (G = ae(J));
885
+ De(g, R, J = J || f, T, I, z, ee, G, be), E = R.__e, (we = R.ref) && J.ref != we && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(we, R.__c || E, R)), E != null ? (xe == null && (xe = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = G = H(R, G, g) : G = Ue(g, R, J, F, E, G), typeof b.type == "function" && (b.__d = G)) : G && J.__e == G && G.parentNode != g && (G = ae(J));
886
886
  }
887
887
  for (b.__e = xe, w = qe; w--; ) F[w] != null && (typeof b.type == "function" && F[w].__e != null && F[w].__e == b.__d && (b.__d = Ie(D).nextSibling), L(F[w], F[w]));
888
888
  if (V) for (w = 0; w < V.length; w++) _(V[w], V[++w], V[++w]);
889
889
  }
890
- function H(f, v, b) {
891
- for (var D, U = f.__k, I = 0; U && I < U.length; I++) (D = U[I]) && (D.__ = f, v = typeof D.type == "function" ? H(D, v, b) : Te(b, D, D, U, D.__e, v));
890
+ function H(g, v, b) {
891
+ for (var D, T = g.__k, I = 0; T && I < T.length; I++) (D = T[I]) && (D.__ = g, v = typeof D.type == "function" ? H(D, v, b) : Ue(b, D, D, T, D.__e, v));
892
892
  return v;
893
893
  }
894
- function ye(f, v) {
895
- return v = v || [], f == null || typeof f == "boolean" || (Array.isArray(f) ? f.some(function(b) {
894
+ function ye(g, v) {
895
+ return v = v || [], g == null || typeof g == "boolean" || (Array.isArray(g) ? g.some(function(b) {
896
896
  ye(b, v);
897
- }) : v.push(f)), v;
897
+ }) : v.push(g)), v;
898
898
  }
899
- function Te(f, v, b, D, U, I) {
899
+ function Ue(g, v, b, D, T, I) {
900
900
  var z, ee, G;
901
901
  if (v.__d !== void 0) z = v.__d, v.__d = void 0;
902
- else if (b == null || U != I || U.parentNode == null) e: if (I == null || I.parentNode !== f) f.appendChild(U), z = null;
902
+ else if (b == null || T != I || T.parentNode == null) e: if (I == null || I.parentNode !== g) g.appendChild(T), z = null;
903
903
  else {
904
- for (ee = I, G = 0; (ee = ee.nextSibling) && G < D.length; G += 1) if (ee == U) break e;
905
- f.insertBefore(U, I), z = I;
904
+ for (ee = I, G = 0; (ee = ee.nextSibling) && G < D.length; G += 1) if (ee == T) break e;
905
+ g.insertBefore(T, I), z = I;
906
906
  }
907
- return z !== void 0 ? z : U.nextSibling;
907
+ return z !== void 0 ? z : T.nextSibling;
908
908
  }
909
- function Ie(f) {
909
+ function Ie(g) {
910
910
  var v, b, D;
911
- if (f.type == null || typeof f.type == "string") return f.__e;
912
- if (f.__k) {
913
- for (v = f.__k.length - 1; v >= 0; v--) if ((b = f.__k[v]) && (D = Ie(b))) return D;
911
+ if (g.type == null || typeof g.type == "string") return g.__e;
912
+ if (g.__k) {
913
+ for (v = g.__k.length - 1; v >= 0; v--) if ((b = g.__k[v]) && (D = Ie(b))) return D;
914
914
  }
915
915
  return null;
916
916
  }
917
- function Ne(f, v, b) {
918
- v[0] === "-" ? f.setProperty(v, b ?? "") : f[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
917
+ function Ne(g, v, b) {
918
+ v[0] === "-" ? g.setProperty(v, b ?? "") : g[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
919
919
  }
920
- function le(f, v, b, D, U) {
920
+ function le(g, v, b, D, T) {
921
921
  var I;
922
- e: if (v === "style") if (typeof b == "string") f.style.cssText = b;
922
+ e: if (v === "style") if (typeof b == "string") g.style.cssText = b;
923
923
  else {
924
- if (typeof D == "string" && (f.style.cssText = D = ""), D) for (v in D) b && v in b || Ne(f.style, v, "");
925
- if (b) for (v in b) D && b[v] === D[v] || Ne(f.style, v, b[v]);
924
+ if (typeof D == "string" && (g.style.cssText = D = ""), D) for (v in D) b && v in b || Ne(g.style, v, "");
925
+ if (b) for (v in b) D && b[v] === D[v] || Ne(g.style, v, b[v]);
926
926
  }
927
- else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in f ? v.toLowerCase().slice(2) : v.slice(2), f.l || (f.l = {}), f.l[v + I] = b, b ? D || f.addEventListener(v, I ? me : ce, I) : f.removeEventListener(v, I ? me : ce, I);
927
+ else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in g ? v.toLowerCase().slice(2) : v.slice(2), g.l || (g.l = {}), g.l[v + I] = b, b ? D || g.addEventListener(v, I ? me : ce, I) : g.removeEventListener(v, I ? me : ce, I);
928
928
  else if (v !== "dangerouslySetInnerHTML") {
929
- if (U) v = v.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
930
- else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in f) try {
931
- f[v] = b ?? "";
929
+ if (T) v = v.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
930
+ else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in g) try {
931
+ g[v] = b ?? "";
932
932
  break e;
933
933
  } catch {
934
934
  }
935
- typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? f.removeAttribute(v) : f.setAttribute(v, b));
935
+ typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? g.removeAttribute(v) : g.setAttribute(v, b));
936
936
  }
937
937
  }
938
- function ce(f) {
939
- return this.l[f.type + !1](i.event ? i.event(f) : f);
938
+ function ce(g) {
939
+ return this.l[g.type + !1](i.event ? i.event(g) : g);
940
940
  }
941
- function me(f) {
942
- return this.l[f.type + !0](i.event ? i.event(f) : f);
941
+ function me(g) {
942
+ return this.l[g.type + !0](i.event ? i.event(g) : g);
943
943
  }
944
- function De(f, v, b, D, U, I, z, ee, G) {
944
+ function De(g, v, b, D, T, I, z, ee, G) {
945
945
  var be, w, we, J, R, E, xe, V, F, qe, it, ge, Vt, rt, q, B = v.type;
946
946
  if (v.constructor !== void 0) return null;
947
947
  b.__h != null && (G = b.__h, ee = v.__e = b.__e, v.__h = null, I = [ee]), (be = i.__b) && be(v);
@@ -960,23 +960,23 @@ var _r = { 7: function(n, e, t) {
960
960
  w.componentDidUpdate(J, R, E);
961
961
  });
962
962
  }
963
- if (w.context = qe, w.props = V, w.__P = f, ge = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
963
+ if (w.context = qe, w.props = V, w.__P = g, ge = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
964
964
  for (w.state = w.__s, w.__d = !1, ge && ge(v), be = w.render(w.props, w.state, w.context), rt = 0; rt < w._sb.length; rt++) w.__h.push(w._sb[rt]);
965
965
  w._sb = [];
966
966
  } else do
967
967
  w.__d = !1, ge && ge(v), be = w.render(w.props, w.state, w.context), w.state = w.__s;
968
968
  while (w.__d && ++Vt < 25);
969
- w.state = w.__s, w.getChildContext != null && (D = P(P({}, D), w.getChildContext())), we || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = be != null && be.type === T && be.key == null ? be.props.children : be, M(f, Array.isArray(q) ? q : [q], v, b, D, U, I, z, ee, G), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), xe && (w.__E = w.__ = null), w.__e = !1;
970
- } else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D, U, I, z, G);
969
+ w.state = w.__s, w.getChildContext != null && (D = P(P({}, D), w.getChildContext())), we || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = be != null && be.type === U && be.key == null ? be.props.children : be, M(g, Array.isArray(q) ? q : [q], v, b, D, T, I, z, ee, G), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), xe && (w.__E = w.__ = null), w.__e = !1;
970
+ } else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D, T, I, z, G);
971
971
  (be = i.diffed) && be(v);
972
972
  } catch (Qe) {
973
973
  v.__v = null, (G || I != null) && (v.__e = ee, v.__h = !!G, I[I.indexOf(ee)] = null), i.__e(Qe, v, b);
974
974
  }
975
975
  }
976
- function k(f, v) {
977
- i.__c && i.__c(v, f), f.some(function(b) {
976
+ function k(g, v) {
977
+ i.__c && i.__c(v, g), g.some(function(b) {
978
978
  try {
979
- f = b.__h, b.__h = [], f.some(function(D) {
979
+ g = b.__h, b.__h = [], g.some(function(D) {
980
980
  D.call(b);
981
981
  });
982
982
  } catch (D) {
@@ -984,110 +984,110 @@ var _r = { 7: function(n, e, t) {
984
984
  }
985
985
  });
986
986
  }
987
- function p(f, v, b, D, U, I, z, ee) {
987
+ function p(g, v, b, D, T, I, z, ee) {
988
988
  var G, be, w, we = b.props, J = v.props, R = v.type, E = 0;
989
- if (R === "svg" && (U = !0), I != null) {
989
+ if (R === "svg" && (T = !0), I != null) {
990
990
  for (; E < I.length; E++) if ((G = I[E]) && "setAttribute" in G == !!R && (R ? G.localName === R : G.nodeType === 3)) {
991
- f = G, I[E] = null;
991
+ g = G, I[E] = null;
992
992
  break;
993
993
  }
994
994
  }
995
- if (f == null) {
995
+ if (g == null) {
996
996
  if (R === null) return document.createTextNode(J);
997
- f = U ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, ee = !1;
997
+ g = T ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, ee = !1;
998
998
  }
999
- if (R === null) we === J || ee && f.data === J || (f.data = J);
999
+ if (R === null) we === J || ee && g.data === J || (g.data = J);
1000
1000
  else {
1001
- if (I = I && o.call(f.childNodes), be = (we = b.props || g).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !ee) {
1002
- if (I != null) for (we = {}, E = 0; E < f.attributes.length; E++) we[f.attributes[E].name] = f.attributes[E].value;
1003
- (w || be) && (w && (be && w.__html == be.__html || w.__html === f.innerHTML) || (f.innerHTML = w && w.__html || ""));
1001
+ if (I = I && o.call(g.childNodes), be = (we = b.props || f).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !ee) {
1002
+ if (I != null) for (we = {}, E = 0; E < g.attributes.length; E++) we[g.attributes[E].name] = g.attributes[E].value;
1003
+ (w || be) && (w && (be && w.__html == be.__html || w.__html === g.innerHTML) || (g.innerHTML = w && w.__html || ""));
1004
1004
  }
1005
1005
  if (function(xe, V, F, qe, it) {
1006
1006
  var ge;
1007
1007
  for (ge in F) ge === "children" || ge === "key" || ge in V || le(xe, ge, null, F[ge], qe);
1008
1008
  for (ge in V) it && typeof V[ge] != "function" || ge === "children" || ge === "key" || ge === "value" || ge === "checked" || F[ge] === V[ge] || le(xe, ge, V[ge], F[ge], qe);
1009
- }(f, J, we, U, ee), w) v.__k = [];
1010
- else if (E = v.props.children, M(f, Array.isArray(E) ? E : [E], v, b, D, U && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), ee), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
- ee || ("value" in J && (E = J.value) !== void 0 && (E !== f.value || R === "progress" && !E || R === "option" && E !== we.value) && le(f, "value", E, we.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== f.checked && le(f, "checked", E, we.checked, !1));
1009
+ }(g, J, we, T, ee), w) v.__k = [];
1010
+ else if (E = v.props.children, M(g, Array.isArray(E) ? E : [E], v, b, D, T && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), ee), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
+ ee || ("value" in J && (E = J.value) !== void 0 && (E !== g.value || R === "progress" && !E || R === "option" && E !== we.value) && le(g, "value", E, we.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== g.checked && le(g, "checked", E, we.checked, !1));
1012
1012
  }
1013
- return f;
1013
+ return g;
1014
1014
  }
1015
- function _(f, v, b) {
1015
+ function _(g, v, b) {
1016
1016
  try {
1017
- typeof f == "function" ? f(v) : f.current = v;
1017
+ typeof g == "function" ? g(v) : g.current = v;
1018
1018
  } catch (D) {
1019
1019
  i.__e(D, b);
1020
1020
  }
1021
1021
  }
1022
- function L(f, v, b) {
1023
- var D, U;
1024
- if (i.unmount && i.unmount(f), (D = f.ref) && (D.current && D.current !== f.__e || _(D, null, v)), (D = f.__c) != null) {
1022
+ function L(g, v, b) {
1023
+ var D, T;
1024
+ if (i.unmount && i.unmount(g), (D = g.ref) && (D.current && D.current !== g.__e || _(D, null, v)), (D = g.__c) != null) {
1025
1025
  if (D.componentWillUnmount) try {
1026
1026
  D.componentWillUnmount();
1027
1027
  } catch (I) {
1028
1028
  i.__e(I, v);
1029
1029
  }
1030
- D.base = D.__P = null, f.__c = void 0;
1030
+ D.base = D.__P = null, g.__c = void 0;
1031
1031
  }
1032
- if (D = f.__k) for (U = 0; U < D.length; U++) D[U] && L(D[U], v, b || typeof f.type != "function");
1033
- b || f.__e == null || A(f.__e), f.__ = f.__e = f.__d = void 0;
1032
+ if (D = g.__k) for (T = 0; T < D.length; T++) D[T] && L(D[T], v, b || typeof g.type != "function");
1033
+ b || g.__e == null || A(g.__e), g.__ = g.__e = g.__d = void 0;
1034
1034
  }
1035
- function K(f, v, b) {
1036
- return this.constructor(f, b);
1035
+ function K(g, v, b) {
1036
+ return this.constructor(g, b);
1037
1037
  }
1038
- function fe(f, v, b) {
1039
- var D, U, I;
1040
- i.__ && i.__(f, v), U = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], De(v, f = (!D && b || v).__k = S(T, null, [f]), U || g, g, v.ownerSVGElement !== void 0, !D && b ? [b] : U ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : U ? U.__e : v.firstChild, D), k(I, f);
1038
+ function fe(g, v, b) {
1039
+ var D, T, I;
1040
+ i.__ && i.__(g, v), T = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], De(v, g = (!D && b || v).__k = S(U, null, [g]), T || f, f, v.ownerSVGElement !== void 0, !D && b ? [b] : T ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : T ? T.__e : v.firstChild, D), k(I, g);
1041
1041
  }
1042
- function He(f, v) {
1043
- fe(f, v, He);
1042
+ function He(g, v) {
1043
+ fe(g, v, He);
1044
1044
  }
1045
- function We(f, v, b) {
1046
- var D, U, I, z = P({}, f.props);
1047
- for (I in v) I == "key" ? D = v[I] : I == "ref" ? U = v[I] : z[I] = v[I];
1048
- return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), O(f.type, z, D || f.key, U || f.ref, null);
1045
+ function We(g, v, b) {
1046
+ var D, T, I, z = P({}, g.props);
1047
+ for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
1048
+ return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), O(g.type, z, D || g.key, T || g.ref, null);
1049
1049
  }
1050
- function Fe(f, v) {
1051
- var b = { __c: v = "__cC" + h++, __: f, Consumer: function(D, U) {
1052
- return D.children(U);
1050
+ function Fe(g, v) {
1051
+ var b = { __c: v = "__cC" + h++, __: g, Consumer: function(D, T) {
1052
+ return D.children(T);
1053
1053
  }, Provider: function(D) {
1054
- var U, I;
1055
- return this.getChildContext || (U = [], (I = {})[v] = this, this.getChildContext = function() {
1054
+ var T, I;
1055
+ return this.getChildContext || (T = [], (I = {})[v] = this, this.getChildContext = function() {
1056
1056
  return I;
1057
1057
  }, this.shouldComponentUpdate = function(z) {
1058
- this.props.value !== z.value && U.some(function(ee) {
1058
+ this.props.value !== z.value && T.some(function(ee) {
1059
1059
  ee.__e = !0, se(ee);
1060
1060
  });
1061
1061
  }, this.sub = function(z) {
1062
- U.push(z);
1062
+ T.push(z);
1063
1063
  var ee = z.componentWillUnmount;
1064
1064
  z.componentWillUnmount = function() {
1065
- U.splice(U.indexOf(z), 1), ee && ee.call(z);
1065
+ T.splice(T.indexOf(z), 1), ee && ee.call(z);
1066
1066
  };
1067
1067
  }), D.children;
1068
1068
  } };
1069
1069
  return b.Provider.__ = b.Consumer.contextType = b;
1070
1070
  }
1071
- o = m.slice, i = { __e: function(f, v, b, D) {
1072
- for (var U, I, z; v = v.__; ) if ((U = v.__c) && !U.__) try {
1073
- if ((I = U.constructor) && I.getDerivedStateFromError != null && (U.setState(I.getDerivedStateFromError(f)), z = U.__d), U.componentDidCatch != null && (U.componentDidCatch(f, D || {}), z = U.__d), z) return U.__E = U;
1071
+ o = m.slice, i = { __e: function(g, v, b, D) {
1072
+ for (var T, I, z; v = v.__; ) if ((T = v.__c) && !T.__) try {
1073
+ if ((I = T.constructor) && I.getDerivedStateFromError != null && (T.setState(I.getDerivedStateFromError(g)), z = T.__d), T.componentDidCatch != null && (T.componentDidCatch(g, D || {}), z = T.__d), z) return T.__E = T;
1074
1074
  } catch (ee) {
1075
- f = ee;
1075
+ g = ee;
1076
1076
  }
1077
- throw f;
1078
- } }, r = 0, s = function(f) {
1079
- return f != null && f.constructor === void 0;
1080
- }, N.prototype.setState = function(f, v) {
1077
+ throw g;
1078
+ } }, r = 0, s = function(g) {
1079
+ return g != null && g.constructor === void 0;
1080
+ }, N.prototype.setState = function(g, v) {
1081
1081
  var b;
1082
- b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = P({}, this.state), typeof f == "function" && (f = f(P({}, b), this.props)), f && P(b, f), f != null && this.__v && (v && this._sb.push(v), se(this));
1083
- }, N.prototype.forceUpdate = function(f) {
1084
- this.__v && (this.__e = !0, f && this.__h.push(f), se(this));
1085
- }, N.prototype.render = T, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(f, v) {
1086
- return f.__v.__b - v.__v.__b;
1082
+ b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = P({}, this.state), typeof g == "function" && (g = g(P({}, b), this.props)), g && P(b, g), g != null && this.__v && (v && this._sb.push(v), se(this));
1083
+ }, N.prototype.forceUpdate = function(g) {
1084
+ this.__v && (this.__e = !0, g && this.__h.push(g), se(this));
1085
+ }, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(g, v) {
1086
+ return g.__v.__b - v.__v.__b;
1087
1087
  }, Se.__r = 0, h = 0;
1088
1088
  }, 78: (n, e, t) => {
1089
- t.r(e), t.d(e, { useCallback: () => se, useContext: () => Se, useDebugValue: () => M, useEffect: () => $, useErrorBoundary: () => H, useId: () => ye, useImperativeHandle: () => ae, useLayoutEffect: () => T, useMemo: () => ke, useReducer: () => O, useRef: () => N, useState: () => S });
1090
- var o, i, r, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, g = c.options.__r, m = c.options.diffed, x = c.options.__c, P = c.options.unmount;
1089
+ t.r(e), t.d(e, { useCallback: () => se, useContext: () => Se, useDebugValue: () => M, useEffect: () => j, useErrorBoundary: () => H, useId: () => ye, useImperativeHandle: () => ae, useLayoutEffect: () => U, useMemo: () => ke, useReducer: () => O, useRef: () => N, useState: () => S });
1090
+ var o, i, r, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, f = c.options.__r, m = c.options.diffed, x = c.options.__c, P = c.options.unmount;
1091
1091
  function A(k, p) {
1092
1092
  c.options.__h && c.options.__h(i, k, d || p), d = 0;
1093
1093
  var _ = i.__H || (i.__H = { __: [], __h: [] });
@@ -1099,42 +1099,42 @@ var _r = { 7: function(n, e, t) {
1099
1099
  function O(k, p, _) {
1100
1100
  var L = A(o++, 2);
1101
1101
  if (L.t = k, !L.__c && (L.__ = [_ ? _(p) : De(void 0, p), function(We) {
1102
- var Fe = L.__N ? L.__N[0] : L.__[0], f = L.t(Fe, We);
1103
- Fe !== f && (L.__N = [f, L.__[1]], L.__c.setState({}));
1102
+ var Fe = L.__N ? L.__N[0] : L.__[0], g = L.t(Fe, We);
1103
+ Fe !== g && (L.__N = [g, L.__[1]], L.__c.setState({}));
1104
1104
  }], L.__c = i, !i.u)) {
1105
- var K = function(We, Fe, f) {
1105
+ var K = function(We, Fe, g) {
1106
1106
  if (!L.__c.__H) return !0;
1107
1107
  var v = L.__c.__H.__.filter(function(D) {
1108
1108
  return D.__c;
1109
1109
  });
1110
1110
  if (v.every(function(D) {
1111
1111
  return !D.__N;
1112
- })) return !fe || fe.call(this, We, Fe, f);
1112
+ })) return !fe || fe.call(this, We, Fe, g);
1113
1113
  var b = !1;
1114
1114
  return v.forEach(function(D) {
1115
1115
  if (D.__N) {
1116
- var U = D.__[0];
1117
- D.__ = D.__N, D.__N = void 0, U !== D.__[0] && (b = !0);
1116
+ var T = D.__[0];
1117
+ D.__ = D.__N, D.__N = void 0, T !== D.__[0] && (b = !0);
1118
1118
  }
1119
- }), !(!b && L.__c.props === We) && (!fe || fe.call(this, We, Fe, f));
1119
+ }), !(!b && L.__c.props === We) && (!fe || fe.call(this, We, Fe, g));
1120
1120
  };
1121
1121
  i.u = !0;
1122
1122
  var fe = i.shouldComponentUpdate, He = i.componentWillUpdate;
1123
- i.componentWillUpdate = function(We, Fe, f) {
1123
+ i.componentWillUpdate = function(We, Fe, g) {
1124
1124
  if (this.__e) {
1125
1125
  var v = fe;
1126
- fe = void 0, K(We, Fe, f), fe = v;
1126
+ fe = void 0, K(We, Fe, g), fe = v;
1127
1127
  }
1128
- He && He.call(this, We, Fe, f);
1128
+ He && He.call(this, We, Fe, g);
1129
1129
  }, i.shouldComponentUpdate = K;
1130
1130
  }
1131
1131
  return L.__N || L.__;
1132
1132
  }
1133
- function $(k, p) {
1133
+ function j(k, p) {
1134
1134
  var _ = A(o++, 3);
1135
1135
  !c.options.__s && me(_.__H, p) && (_.__ = k, _.i = p, i.__H.__h.push(_));
1136
1136
  }
1137
- function T(k, p) {
1137
+ function U(k, p) {
1138
1138
  var _ = A(o++, 4);
1139
1139
  !c.options.__s && me(_.__H, p) && (_.__ = k, _.i = p, i.__h.push(_));
1140
1140
  }
@@ -1144,7 +1144,7 @@ var _r = { 7: function(n, e, t) {
1144
1144
  }, []);
1145
1145
  }
1146
1146
  function ae(k, p, _) {
1147
- d = 6, T(function() {
1147
+ d = 6, U(function() {
1148
1148
  return typeof k == "function" ? (k(p()), function() {
1149
1149
  return k(null);
1150
1150
  }) : k ? (k.current = p(), function() {
@@ -1185,7 +1185,7 @@ var _r = { 7: function(n, e, t) {
1185
1185
  }
1186
1186
  return k.__;
1187
1187
  }
1188
- function Te() {
1188
+ function Ue() {
1189
1189
  for (var k; k = l.shift(); ) if (k.__P && k.__H) try {
1190
1190
  k.__H.__h.forEach(le), k.__H.__h.forEach(ce), k.__H.__h = [];
1191
1191
  } catch (p) {
@@ -1195,7 +1195,7 @@ var _r = { 7: function(n, e, t) {
1195
1195
  c.options.__b = function(k) {
1196
1196
  i = null, h && h(k);
1197
1197
  }, c.options.__r = function(k) {
1198
- g && g(k), o = 0;
1198
+ f && f(k), o = 0;
1199
1199
  var p = (i = k.__c).__H;
1200
1200
  p && (r === i ? (p.__h = [], i.__h = [], p.__.forEach(function(_) {
1201
1201
  _.__N && (_.__ = _.__N), _.__V = u, _.__N = _.i = void 0;
@@ -1203,7 +1203,7 @@ var _r = { 7: function(n, e, t) {
1203
1203
  }, c.options.diffed = function(k) {
1204
1204
  m && m(k);
1205
1205
  var p = k.__c;
1206
- p && p.__H && (p.__H.__h.length && (l.push(p) !== 1 && s === c.options.requestAnimationFrame || ((s = c.options.requestAnimationFrame) || Ne)(Te)), p.__H.__.forEach(function(_) {
1206
+ p && p.__H && (p.__H.__h.length && (l.push(p) !== 1 && s === c.options.requestAnimationFrame || ((s = c.options.requestAnimationFrame) || Ne)(Ue)), p.__H.__.forEach(function(_) {
1207
1207
  _.i && (_.__H = _.i), _.__V !== u && (_.__ = _.__V), _.i = void 0, _.__V = u;
1208
1208
  })), r = i = null;
1209
1209
  }, c.options.__c = function(k, p) {
@@ -1263,8 +1263,8 @@ var _r = { 7: function(n, e, t) {
1263
1263
  }
1264
1264
  function o(r, s) {
1265
1265
  for (var c = {}, d = [], l = 0; l < r.length; l++) {
1266
- var u = r[l], h = s.base ? u[0] + s.base : u[0], g = c[h] || 0, m = "".concat(h, " ").concat(g);
1267
- c[h] = g + 1;
1266
+ var u = r[l], h = s.base ? u[0] + s.base : u[0], f = c[h] || 0, m = "".concat(h, " ").concat(f);
1267
+ c[h] = f + 1;
1268
1268
  var x = t(m), P = { css: u[1], media: u[2], sourceMap: u[3], supports: u[4], layer: u[5] };
1269
1269
  if (x !== -1) e[x].references++, e[x].updater(P);
1270
1270
  else {
@@ -1292,8 +1292,8 @@ var _r = { 7: function(n, e, t) {
1292
1292
  var u = t(c[l]);
1293
1293
  e[u].references--;
1294
1294
  }
1295
- for (var h = o(d, s), g = 0; g < c.length; g++) {
1296
- var m = t(c[g]);
1295
+ for (var h = o(d, s), f = 0; f < c.length; f++) {
1296
+ var m = t(c[f]);
1297
1297
  e[m].references === 0 && (e[m].updater(), e.splice(m, 1));
1298
1298
  }
1299
1299
  c = h;
@@ -1324,8 +1324,8 @@ var _r = { 7: function(n, e, t) {
1324
1324
  }
1325
1325
  if (r.styleSheet) r.styleSheet.cssText = t(s, l);
1326
1326
  else {
1327
- var h = document.createTextNode(l), g = r.childNodes;
1328
- g[s] && r.removeChild(g[s]), g.length ? r.insertBefore(h, g[s]) : r.appendChild(h);
1327
+ var h = document.createTextNode(l), f = r.childNodes;
1328
+ f[s] && r.removeChild(f[s]), f.length ? r.insertBefore(h, f[s]) : r.appendChild(h);
1329
1329
  }
1330
1330
  }
1331
1331
  var i = { singleton: null, singletonCounter: 0 };
@@ -1359,7 +1359,7 @@ X.n = (n) => {
1359
1359
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
1360
1360
  }, X.nc = void 0;
1361
1361
  var re = {};
1362
- X.d(re, { fK: () => wn, tJ: () => Ii, Z7: () => Cn, Q9: () => Li, Lv: () => $i, qQ: () => xn, I4: () => Mi, O8: () => Ce, ku: () => ro, ls: () => io, bO: () => ao, yv: () => An, AT: () => lo, m_: () => Wt, KG: () => so, DH: () => Sn, kf: () => go, oY: () => je, xg: () => Ui, Wg: () => Ye, J: () => Ti, AC: () => co, D_: () => Xe, jx: () => ji, nX: () => uo, Nx: () => oo, Sd: () => ft, kz: () => us, fX: () => ho, qA: () => po, tz: () => fo, gN: () => mo });
1362
+ X.d(re, { fK: () => wn, tJ: () => Ii, Z7: () => Cn, Q9: () => Li, Lv: () => ji, qQ: () => xn, I4: () => Mi, O8: () => Ce, ku: () => ro, ls: () => io, bO: () => ao, yv: () => An, AT: () => lo, m_: () => Wt, KG: () => so, DH: () => Sn, kf: () => go, oY: () => $e, xg: () => Ti, Wg: () => Ye, J: () => Ui, AC: () => co, D_: () => Xe, jx: () => $i, nX: () => uo, Nx: () => oo, Sd: () => ft, kz: () => us, fX: () => ho, qA: () => po, tz: () => fo, gN: () => mo });
1363
1363
  var Zn = {};
1364
1364
  X.r(Zn), X.d(Zn, { apple: () => ca, checkmark: () => da, copy: () => ua, customProvider: () => ha, discord: () => pa, exclamation: () => ma, facebook: () => fa, github: () => ga, google: () => va, linkedin: () => ya, mail: () => _a, microsoft: () => ba, passkey: () => ka, password: () => wa, qrCodeScanner: () => Sa, securityKey: () => xa, spinner: () => Aa });
1365
1365
  var C = X(616), br = 0;
@@ -1410,7 +1410,7 @@ function xr(n, e, t) {
1410
1410
  function Ar() {
1411
1411
  (0, C.render)(this._vdom = null, this._root);
1412
1412
  }
1413
- function Uo(n, e) {
1413
+ function To(n, e) {
1414
1414
  var t = this;
1415
1415
  return (0, C.h)("slot", yn({}, n, { ref: function(o) {
1416
1416
  o ? (t.ref = o, t._listener || (t._listener = function(i) {
@@ -1425,9 +1425,9 @@ function _i(n, e) {
1425
1425
  for (i = r.length; i--; ) r[i].name !== "slot" && (o[r[i].name] = r[i].value, o[yi(r[i].name)] = r[i].value);
1426
1426
  for (i = s.length; i--; ) {
1427
1427
  var c = _i(s[i], null), d = s[i].slot;
1428
- d ? o[d] = (0, C.h)(Uo, { name: d }, c) : t[i] = c;
1428
+ d ? o[d] = (0, C.h)(To, { name: d }, c) : t[i] = c;
1429
1429
  }
1430
- var l = e ? (0, C.h)(Uo, null, t) : t;
1430
+ var l = e ? (0, C.h)(To, null, t) : t;
1431
1431
  return (0, C.h)(e || n.nodeName.toLowerCase(), o, l);
1432
1432
  }
1433
1433
  var Z = X(7), y = X(78);
@@ -1435,7 +1435,7 @@ function bi(n, e) {
1435
1435
  for (var t in e) n[t] = e[t];
1436
1436
  return n;
1437
1437
  }
1438
- function To(n, e) {
1438
+ function Uo(n, e) {
1439
1439
  for (var t in n) if (t !== "__source" && !(t in e)) return !0;
1440
1440
  for (var o in e) if (o !== "__source" && n[o] !== e[o]) return !0;
1441
1441
  return !1;
@@ -1444,7 +1444,7 @@ function No(n) {
1444
1444
  this.props = n;
1445
1445
  }
1446
1446
  (No.prototype = new C.Component()).isPureReactComponent = !0, No.prototype.shouldComponentUpdate = function(n, e) {
1447
- return To(this.props, n) || To(this.state, e);
1447
+ return Uo(this.props, n) || Uo(this.state, e);
1448
1448
  };
1449
1449
  var Mo = C.options.__b;
1450
1450
  C.options.__b = function(n) {
@@ -1470,7 +1470,7 @@ function wi(n, e, t) {
1470
1470
  return wi(o, e, t);
1471
1471
  }), n.__c && n.__c.__P === e && (n.__e && t.insertBefore(n.__e, n.__d), n.__c.__e = !0, n.__c.__P = t)), n;
1472
1472
  }
1473
- function Un() {
1473
+ function Tn() {
1474
1474
  this.__u = 0, this.t = null, this.__b = null;
1475
1475
  }
1476
1476
  function Si(n) {
@@ -1483,7 +1483,7 @@ function Bt() {
1483
1483
  C.options.unmount = function(n) {
1484
1484
  var e = n.__c;
1485
1485
  e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), Ro && Ro(n);
1486
- }, (Un.prototype = new C.Component()).__c = function(n, e) {
1486
+ }, (Tn.prototype = new C.Component()).__c = function(n, e) {
1487
1487
  var t = e.__c, o = this;
1488
1488
  o.t == null && (o.t = []), o.t.push(t);
1489
1489
  var i = Si(o.__v), r = !1, s = function() {
@@ -1501,9 +1501,9 @@ C.options.unmount = function(n) {
1501
1501
  }
1502
1502
  }, d = e.__h === !0;
1503
1503
  o.__u++ || d || o.setState({ __a: o.__b = o.__v.__k[0] }), n.then(s, s);
1504
- }, Un.prototype.componentWillUnmount = function() {
1504
+ }, Tn.prototype.componentWillUnmount = function() {
1505
1505
  this.t = [];
1506
- }, Un.prototype.render = function(n, e) {
1506
+ }, Tn.prototype.render = function(n, e) {
1507
1507
  if (this.__b) {
1508
1508
  if (this.__v.__k) {
1509
1509
  var t = document.createElement("div"), o = this.__v.__k[0].__c;
@@ -1541,7 +1541,7 @@ var qo = function(n, e, t) {
1541
1541
  qo(n, t, e);
1542
1542
  });
1543
1543
  };
1544
- var Or = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Er = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ir = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Dr = /[A-Z0-9]/g, $r = typeof document < "u", jr = function(n) {
1544
+ var Or = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Er = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ir = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Dr = /[A-Z0-9]/g, jr = typeof document < "u", $r = function(n) {
1545
1545
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
1546
1546
  };
1547
1547
  C.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
@@ -1554,14 +1554,14 @@ C.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWi
1554
1554
  var zo = C.options.event;
1555
1555
  function Lr() {
1556
1556
  }
1557
- function Ur() {
1557
+ function Tr() {
1558
1558
  return this.cancelBubble;
1559
1559
  }
1560
- function Tr() {
1560
+ function Ur() {
1561
1561
  return this.defaultPrevented;
1562
1562
  }
1563
1563
  C.options.event = function(n) {
1564
- return zo && (n = zo(n)), n.persist = Lr, n.isPropagationStopped = Ur, n.isDefaultPrevented = Tr, n.nativeEvent = n;
1564
+ return zo && (n = zo(n)), n.persist = Lr, n.isPropagationStopped = Tr, n.isDefaultPrevented = Ur, n.nativeEvent = n;
1565
1565
  };
1566
1566
  var Ho = { configurable: !0, get: function() {
1567
1567
  return this.class;
@@ -1571,9 +1571,9 @@ C.options.vnode = function(n) {
1571
1571
  if (typeof e == "string") {
1572
1572
  for (var i in o = {}, t) {
1573
1573
  var r = t[i];
1574
- if (!(i === "value" && "defaultValue" in t && r == null || $r && i === "children" && e === "noscript")) {
1574
+ if (!(i === "value" && "defaultValue" in t && r == null || jr && i === "children" && e === "noscript")) {
1575
1575
  var s = i.toLowerCase();
1576
- i === "defaultValue" && "value" in t && t.value == null ? i = "value" : i === "download" && r === !0 ? r = "" : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || e !== "input" && e !== "textarea" || jr(t.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : Ir.test(i) ? i = s : e.indexOf("-") === -1 && Er.test(i) ? i = i.replace(Dr, "-$&").toLowerCase() : r === null && (r = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = r;
1576
+ i === "defaultValue" && "value" in t && t.value == null ? i = "value" : i === "download" && r === !0 ? r = "" : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || e !== "input" && e !== "textarea" || $r(t.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : Ir.test(i) ? i = s : e.indexOf("-") === -1 && Er.test(i) ? i = i.replace(Dr, "-$&").toLowerCase() : r === null && (r = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = r;
1577
1577
  }
1578
1578
  }
1579
1579
  e == "select" && o.multiple && Array.isArray(o.value) && (o.value = (0, C.toChildArray)(t.children).forEach(function(c) {
@@ -1665,7 +1665,7 @@ var zr = 0;
1665
1665
  function Ei(n) {
1666
1666
  return "__private_" + zr++ + "_" + n;
1667
1667
  }
1668
- function Tn(n, e) {
1668
+ function Un(n, e) {
1669
1669
  if (!Object.prototype.hasOwnProperty.call(n, e)) throw new TypeError("attempted to use private field on non-instance");
1670
1670
  return n;
1671
1671
  }
@@ -1674,9 +1674,9 @@ class Ce extends Error {
1674
1674
  super(e), this.code = void 0, this.cause = void 0, this.code = t, this.cause = o, Object.setPrototypeOf(this, Ce.prototype);
1675
1675
  }
1676
1676
  }
1677
- class je extends Ce {
1677
+ class $e extends Ce {
1678
1678
  constructor(e) {
1679
- super("Technical error", "somethingWentWrong", e), Object.setPrototypeOf(this, je.prototype);
1679
+ super("Technical error", "somethingWentWrong", e), Object.setPrototypeOf(this, $e.prototype);
1680
1680
  }
1681
1681
  }
1682
1682
  class wn extends Ce {
@@ -1837,7 +1837,7 @@ class Hr {
1837
1837
  const o = { secure: !0, sameSite: this.authCookieSameSite };
1838
1838
  this.authCookieDomain !== void 0 && (o.domain = this.authCookieDomain);
1839
1839
  const i = _n({}, o, t);
1840
- if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new je(new Error("Secure attribute must be set when SameSite=None"));
1840
+ if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new $e(new Error("Secure attribute must be set when SameSite=None"));
1841
1841
  Nn.set(this.authCookieName, e, i);
1842
1842
  }
1843
1843
  removeAuthCookie() {
@@ -1888,7 +1888,7 @@ class Vr {
1888
1888
  o.open(t.method, r, !0), o.setRequestHeader("Accept", "application/json"), o.setRequestHeader("Content-Type", "application/json"), o.setRequestHeader("X-Language", d), c && o.setRequestHeader("Authorization", `Bearer ${c}`), o.timeout = s, o.withCredentials = !0, o.onload = () => {
1889
1889
  i.processHeaders(o), l(new Kr(o));
1890
1890
  }, o.onerror = () => {
1891
- u(new je());
1891
+ u(new $e());
1892
1892
  }, o.ontimeout = () => {
1893
1893
  u(new Sn());
1894
1894
  }, o.send(t.body ? t.body.toString() : null);
@@ -1949,7 +1949,7 @@ class lt {
1949
1949
  this.client = void 0, this.client = new Vr(e, t);
1950
1950
  }
1951
1951
  }
1952
- class $i extends lt {
1952
+ class ji extends lt {
1953
1953
  getDomain(e) {
1954
1954
  if (!e) throw new Ye("somethingWentWrong", new Error("email missing from request"));
1955
1955
  const t = e.split("@");
@@ -1962,7 +1962,7 @@ class $i extends lt {
1962
1962
  const t = this.getDomain(e);
1963
1963
  return this.client.get(`/saml/provider?domain=${t}`).then((o) => {
1964
1964
  if (o.status == 404) throw new Wt(new Error("provider not found"));
1965
- if (!o.ok) throw new je(new Error("unable to fetch provider"));
1965
+ if (!o.ok) throw new $e(new Error("unable to fetch provider"));
1966
1966
  return o.ok;
1967
1967
  });
1968
1968
  }
@@ -1998,63 +1998,63 @@ class $i extends lt {
1998
1998
  }
1999
1999
  }
2000
2000
  }
2001
- class ji extends lt {
2001
+ class $i extends lt {
2002
2002
  async getInfo(e) {
2003
2003
  const t = await this.client.post("/user", { email: e });
2004
2004
  if (t.status === 404) throw new Wt();
2005
- if (!t.ok) throw new je();
2005
+ if (!t.ok) throw new $e();
2006
2006
  return t.json();
2007
2007
  }
2008
2008
  async create(e) {
2009
2009
  const t = await this.client.post("/users", { email: e });
2010
2010
  if (t.status === 409) throw new wn();
2011
2011
  if (t.status === 403) throw new xn();
2012
- if (!t.ok) throw new je();
2012
+ if (!t.ok) throw new $e();
2013
2013
  return t.json();
2014
2014
  }
2015
2015
  async getCurrent() {
2016
2016
  const e = await this.client.get("/me");
2017
2017
  if (e.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
2018
- if (!e.ok) throw new je();
2018
+ if (!e.ok) throw new $e();
2019
2019
  const t = e.json(), o = await this.client.get(`/users/${t.id}`);
2020
2020
  if (o.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
2021
- if (!o.ok) throw new je();
2021
+ if (!o.ok) throw new $e();
2022
2022
  return o.json();
2023
2023
  }
2024
2024
  async delete() {
2025
2025
  const e = await this.client.delete("/user");
2026
2026
  if (e.ok) return this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), void this.client.dispatcher.dispatchUserDeletedEvent();
2027
- throw e.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : new je();
2027
+ throw e.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : new $e();
2028
2028
  }
2029
2029
  async logout() {
2030
2030
  const e = await this.client.post("/logout");
2031
- if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), e.status !== 401 && !e.ok) throw new je();
2031
+ if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), e.status !== 401 && !e.ok) throw new $e();
2032
2032
  }
2033
2033
  }
2034
2034
  class Li extends lt {
2035
2035
  async list() {
2036
2036
  const e = await this.client.get("/emails");
2037
2037
  if (e.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
2038
- if (!e.ok) throw new je();
2038
+ if (!e.ok) throw new $e();
2039
2039
  return e.json();
2040
2040
  }
2041
2041
  async create(e) {
2042
2042
  const t = await this.client.post("/emails", { address: e });
2043
2043
  if (t.ok) return t.json();
2044
- throw t.status === 400 ? new Cn() : t.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : t.status === 409 ? new An() : new je();
2044
+ throw t.status === 400 ? new Cn() : t.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : t.status === 409 ? new An() : new $e();
2045
2045
  }
2046
2046
  async setPrimaryEmail(e) {
2047
2047
  const t = await this.client.post(`/emails/${e}/set_primary`);
2048
2048
  if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
2049
- if (!t.ok) throw new je();
2049
+ if (!t.ok) throw new $e();
2050
2050
  }
2051
2051
  async delete(e) {
2052
2052
  const t = await this.client.delete(`/emails/${e}`);
2053
2053
  if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
2054
- if (!t.ok) throw new je();
2054
+ if (!t.ok) throw new $e();
2055
2055
  }
2056
2056
  }
2057
- class Ui extends lt {
2057
+ class Ti extends lt {
2058
2058
  async auth(e, t) {
2059
2059
  const o = new URL("/thirdparty/auth", this.client.api);
2060
2060
  if (!e) throw new Ye("somethingWentWrong", new Error("provider missing from request"));
@@ -2091,13 +2091,13 @@ class Ui extends lt {
2091
2091
  }
2092
2092
  }
2093
2093
  }
2094
- class Ti extends lt {
2094
+ class Ui extends lt {
2095
2095
  async validate() {
2096
2096
  const e = new URLSearchParams(window.location.search).get("hanko_token");
2097
2097
  if (!e) return;
2098
2098
  window.history.replaceState(null, null, window.location.pathname);
2099
2099
  const t = await this.client.post("/token", { value: e });
2100
- if (!t.ok) throw new je();
2100
+ if (!t.ok) throw new $e();
2101
2101
  return t.json();
2102
2102
  }
2103
2103
  }
@@ -2109,10 +2109,10 @@ class Br {
2109
2109
  l = i === !1 ? 0 : Date.now(), d = null, e.apply(s, c);
2110
2110
  };
2111
2111
  return function(...h) {
2112
- const g = Date.now();
2113
- l || i !== !1 || (l = g);
2114
- const m = t - (g - l);
2115
- s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = g, e.apply(s, c)) : d || r === !1 || (d = window.setTimeout(u, m));
2112
+ const f = Date.now();
2113
+ l || i !== !1 || (l = f);
2114
+ const m = t - (f - l);
2115
+ s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = f, e.apply(s, c)) : d || r === !1 || (d = window.setTimeout(u, m));
2116
2116
  };
2117
2117
  }
2118
2118
  }
@@ -2152,7 +2152,7 @@ class Pn {
2152
2152
  class go extends lt {
2153
2153
  async validate() {
2154
2154
  const e = await this.client.get("/sessions/validate");
2155
- if (!e.ok) throw new je();
2155
+ if (!e.ok) throw new $e();
2156
2156
  return await e.json();
2157
2157
  }
2158
2158
  }
@@ -2163,7 +2163,7 @@ class Zr extends lt {
2163
2163
  const t = this.client._fetch_blocking("/sessions/validate", { method: "GET" });
2164
2164
  e = JSON.parse(t);
2165
2165
  } catch (t) {
2166
- throw new je(t);
2166
+ throw new $e(t);
2167
2167
  }
2168
2168
  return !!e && e.is_valid;
2169
2169
  }
@@ -2293,10 +2293,10 @@ class Xr extends Di {
2293
2293
  var mt, bt = Ei("actionDefinitions"), Mn = Ei("createActionsProxy");
2294
2294
  class Rn {
2295
2295
  toJSON() {
2296
- return { name: this.name, payload: this.payload, error: this.error, status: this.status, csrf_token: this.csrf_token, actions: Tn(this, bt)[bt] };
2296
+ return { name: this.name, payload: this.payload, error: this.error, status: this.status, csrf_token: this.csrf_token, actions: Un(this, bt)[bt] };
2297
2297
  }
2298
2298
  constructor({ name: e, payload: t, error: o, status: i, actions: r, csrf_token: s }, c) {
2299
- Object.defineProperty(this, Mn, { value: ea }), this.name = void 0, this.payload = void 0, this.error = void 0, this.status = void 0, this.csrf_token = void 0, Object.defineProperty(this, bt, { writable: !0, value: void 0 }), this.actions = void 0, this.fetchNextState = void 0, this.name = e, this.payload = t, this.error = o, this.status = i, this.csrf_token = s, Tn(this, bt)[bt] = r, this.actions = Tn(this, Mn)[Mn](r, s), this.fetchNextState = c;
2299
+ Object.defineProperty(this, Mn, { value: ea }), this.name = void 0, this.payload = void 0, this.error = void 0, this.status = void 0, this.csrf_token = void 0, Object.defineProperty(this, bt, { writable: !0, value: void 0 }), this.actions = void 0, this.fetchNextState = void 0, this.name = e, this.payload = t, this.error = o, this.status = i, this.csrf_token = s, Un(this, bt)[bt] = r, this.actions = Un(this, Mn)[Mn](r, s), this.fetchNextState = c;
2300
2300
  }
2301
2301
  runAction(e, t) {
2302
2302
  const o = {};
@@ -2407,7 +2407,7 @@ class Mi extends Pn {
2407
2407
  constructor(e, t) {
2408
2408
  super(), this.api = void 0, this.user = void 0, this.email = void 0, this.thirdParty = void 0, this.enterprise = void 0, this.token = void 0, this.sessionClient = void 0, this.session = void 0, this.relay = void 0, this.flow = void 0;
2409
2409
  const o = { timeout: 13e3, cookieName: "hanko", localStorageKey: "hanko", sessionCheckInterval: 3e4, sessionCheckChannelName: "hanko-session-check", sessionTokenLocation: "cookie" };
2410
- (t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new ji(e, o), this.email = new Li(e, o), this.thirdParty = new Ui(e, o), this.enterprise = new $i(e, o), this.token = new Ti(e, o), this.sessionClient = new go(e, o), this.session = new Zr(e, o), this.relay = new Xr(e, o), this.flow = new ta(e, o);
2410
+ (t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new $i(e, o), this.email = new Li(e, o), this.thirdParty = new Ti(e, o), this.enterprise = new ji(e, o), this.token = new Ui(e, o), this.sessionClient = new go(e, o), this.session = new Zr(e, o), this.relay = new Xr(e, o), this.flow = new ta(e, o);
2411
2411
  }
2412
2412
  setLang(e) {
2413
2413
  this.flow.client.lang = e;
@@ -2447,9 +2447,9 @@ var sn = X(697), wt = {};
2447
2447
  wt.setAttributes = nt(), wt.insert = (n) => {
2448
2448
  window._hankoStyle = n;
2449
2449
  }, wt.domAPI = tt(), wt.insertStyleElement = ot(), et()(sn.A, wt);
2450
- const j = sn.A && sn.A.locals ? sn.A.locals : void 0;
2450
+ const $ = sn.A && sn.A.locals ? sn.A.locals : void 0;
2451
2451
  var la = X(633), Q = X.n(la);
2452
- const ca = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), da = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => a("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Q()(j.checkmark, n && j.secondary, t && j.fadeOut, o && j.disabled) }, { children: a("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), ua = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), ha = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: [a("path", { d: "M0 0h24v24H0z", fill: "none" }), a("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), pa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), ma = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Q()(j.exclamationMark, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) })), fa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [a("defs", Object.assign({ id: "defs13" }, { children: a("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: a("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), a("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: a("g", Object.assign({ id: "g19" }, { children: a("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [a("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: a("path", { className: Q()(j.facebookIcon, t ? j.disabledOutline : j.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), a("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: a("path", { className: Q()(j.facebookIcon, t ? j.disabledLetter : j.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), ga = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: [a("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), va = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: j.googleIcon }, { children: [a("path", { className: Q()(j.googleIcon, e ? j.disabled : j.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), a("path", { className: Q()(j.googleIcon, e ? j.disabled : j.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), a("path", { className: Q()(j.googleIcon, e ? j.disabled : j.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), a("path", { className: Q()(j.googleIcon, e ? j.disabled : j.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), a("path", { d: "M1 1h22v22H1z", fill: "none" })] })), ya = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), _a = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), ba = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: j.microsoftIcon }, { children: [a("rect", { className: Q()(j.microsoftIcon, e ? j.disabled : j.blue), x: "1", y: "1", width: "9", height: "9" }), a("rect", { className: Q()(j.microsoftIcon, e ? j.disabled : j.green), x: "1", y: "11", width: "9", height: "9" }), a("rect", { className: Q()(j.microsoftIcon, e ? j.disabled : j.yellow), x: "11", y: "1", width: "9", height: "9" }), a("rect", { className: Q()(j.microsoftIcon, e ? j.disabled : j.red), x: "11", y: "11", width: "9", height: "9" })] })), ka = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("g", Object.assign({ id: "icon-passkey-all" }, { children: [a("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), a("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), a("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), wa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), Sa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), xa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(j.icon, e && j.secondary, t && j.disabled) }, { children: a("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), Aa = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()(j.loadingSpinner, e && j.disabled) }, { children: [a("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), a("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => a(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), yo = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: r, maxWidth: s }) => a(C.Fragment, { children: a("div", e ? Object.assign({ className: Q()(j.loadingSpinnerWrapper, j.centerContent, s && j.maxWidth) }, { children: a(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Q()(j.loadingSpinnerWrapper, j.centerContent, s && j.maxWidth) }, { children: a(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: r ? j.loadingSpinnerWrapperIcon : j.loadingSpinnerWrapper }, { children: n })) }), Ca = () => {
2452
+ const ca = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), da = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => a("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Q()($.checkmark, n && $.secondary, t && $.fadeOut, o && $.disabled) }, { children: a("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), ua = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), ha = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: [a("path", { d: "M0 0h24v24H0z", fill: "none" }), a("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), pa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), ma = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Q()($.exclamationMark, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) })), fa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [a("defs", Object.assign({ id: "defs13" }, { children: a("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: a("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), a("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: a("g", Object.assign({ id: "g19" }, { children: a("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [a("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: a("path", { className: Q()($.facebookIcon, t ? $.disabledOutline : $.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), a("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: a("path", { className: Q()($.facebookIcon, t ? $.disabledLetter : $.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), ga = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: [a("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), va = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: $.googleIcon }, { children: [a("path", { className: Q()($.googleIcon, e ? $.disabled : $.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), a("path", { className: Q()($.googleIcon, e ? $.disabled : $.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), a("path", { className: Q()($.googleIcon, e ? $.disabled : $.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), a("path", { className: Q()($.googleIcon, e ? $.disabled : $.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), a("path", { d: "M1 1h22v22H1z", fill: "none" })] })), ya = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), _a = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), ba = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: $.microsoftIcon }, { children: [a("rect", { className: Q()($.microsoftIcon, e ? $.disabled : $.blue), x: "1", y: "1", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, e ? $.disabled : $.green), x: "1", y: "11", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, e ? $.disabled : $.yellow), x: "11", y: "1", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, e ? $.disabled : $.red), x: "11", y: "11", width: "9", height: "9" })] })), ka = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("g", Object.assign({ id: "icon-passkey-all" }, { children: [a("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), a("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), a("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), wa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), Sa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), xa = ({ size: n, secondary: e, disabled: t }) => a("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, e && $.secondary, t && $.disabled) }, { children: a("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), Aa = ({ size: n, disabled: e }) => a("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()($.loadingSpinner, e && $.disabled) }, { children: [a("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), a("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => a(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), yo = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: r, maxWidth: s }) => a(C.Fragment, { children: a("div", e ? Object.assign({ className: Q()($.loadingSpinnerWrapper, $.centerContent, s && $.maxWidth) }, { children: a(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Q()($.loadingSpinnerWrapper, $.centerContent, s && $.maxWidth) }, { children: a(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: r ? $.loadingSpinnerWrapperIcon : $.loadingSpinnerWrapper }, { children: n })) }), Ca = () => {
2453
2453
  const { setLoadingAction: n } = (0, y.useContext)(pe);
2454
2454
  return (0, y.useEffect)(() => {
2455
2455
  n(null);
@@ -2469,20 +2469,20 @@ const Pe = ln.A && ln.A.locals ? ln.A.locals : void 0, Pa = () => {
2469
2469
  return a("span", Object.assign({ className: Q()(Pe.lastUsed) }, { children: n("labels.lastUsed") }));
2470
2470
  }, ne = (n) => {
2471
2471
  var { uiAction: e, title: t, children: o, secondary: i, dangerous: r, autofocus: s, showLastUsed: c, onClick: d, icon: l } = n, u = function(S, O) {
2472
- var $ = {};
2473
- for (var T in S) Object.prototype.hasOwnProperty.call(S, T) && O.indexOf(T) < 0 && ($[T] = S[T]);
2472
+ var j = {};
2473
+ for (var U in S) Object.prototype.hasOwnProperty.call(S, U) && O.indexOf(U) < 0 && (j[U] = S[U]);
2474
2474
  if (S != null && typeof Object.getOwnPropertySymbols == "function") {
2475
2475
  var N = 0;
2476
- for (T = Object.getOwnPropertySymbols(S); N < T.length; N++) O.indexOf(T[N]) < 0 && Object.prototype.propertyIsEnumerable.call(S, T[N]) && ($[T[N]] = S[T[N]]);
2476
+ for (U = Object.getOwnPropertySymbols(S); N < U.length; N++) O.indexOf(U[N]) < 0 && Object.prototype.propertyIsEnumerable.call(S, U[N]) && (j[U[N]] = S[U[N]]);
2477
2477
  }
2478
- return $;
2478
+ return j;
2479
2479
  }(n, ["uiAction", "title", "children", "secondary", "dangerous", "autofocus", "showLastUsed", "onClick", "icon"]);
2480
- const h = (0, y.useRef)(null), { uiState: g, isDisabled: m } = (0, y.useContext)(pe);
2480
+ const h = (0, y.useRef)(null), { uiState: f, isDisabled: m } = (0, y.useContext)(pe);
2481
2481
  (0, y.useEffect)(() => {
2482
2482
  const { current: S } = h;
2483
2483
  S && s && S.focus();
2484
2484
  }, [s]);
2485
- const x = (0, y.useMemo)(() => e && g.loadingAction === e || u.isLoading, [u, e, g]), P = (0, y.useMemo)(() => e && g.succeededAction === e || u.isSuccess, [u, e, g]), A = (0, y.useMemo)(() => m || u.disabled, [u, m]);
2485
+ const x = (0, y.useMemo)(() => e && f.loadingAction === e || u.isLoading, [u, e, f]), P = (0, y.useMemo)(() => e && f.succeededAction === e || u.isSuccess, [u, e, f]), A = (0, y.useMemo)(() => m || u.disabled, [u, m]);
2486
2486
  return a("button", Object.assign({ part: r ? "button dangerous-button" : i ? "button secondary-button" : "button primary-button", title: t, ref: h, type: "submit", disabled: A, onClick: d, className: Q()(Pe.button, r ? Pe.dangerous : i ? Pe.secondary : Pe.primary) }, { children: a(yo, Object.assign({ isLoading: x, isSuccess: P, secondary: !0, hasIcon: !!l, maxWidth: !0 }, { children: [l ? a(Ht, { name: l, secondary: i, disabled: A }) : null, a("div", Object.assign({ className: Pe.caption }, { children: [a("span", { children: o }), c ? a(Pa, {}) : null] }))] })) }));
2487
2487
  }, Ve = (n) => {
2488
2488
  var e, t, o, i, r, { label: s } = n, c = function(m, x) {
@@ -2499,17 +2499,17 @@ const Pe = ln.A && ln.A.locals ? ln.A.locals : void 0, Pa = () => {
2499
2499
  const { current: m } = d;
2500
2500
  m && c.autofocus && (m.focus(), m.select());
2501
2501
  }, [c.autofocus]);
2502
- const g = (0, y.useMemo)(() => {
2502
+ const f = (0, y.useMemo)(() => {
2503
2503
  var m;
2504
2504
  return c.markOptional && !(!((m = c.flowInput) === null || m === void 0) && m.required) ? `${c.placeholder} (${u("labels.optional")})` : c.placeholder;
2505
2505
  }, [c.markOptional, c.placeholder, c.flowInput, u]);
2506
- return a("div", Object.assign({ className: Pe.inputWrapper }, { children: a("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": g, placeholder: g, className: Q()(Pe.input, !!(!((r = c.flowInput) === null || r === void 0) && r.error) && c.markError && Pe.error), disabled: h })) }));
2506
+ return a("div", Object.assign({ className: Pe.inputWrapper }, { children: a("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": f, placeholder: f, className: Q()(Pe.input, !!(!((r = c.flowInput) === null || r === void 0) && r.error) && c.markError && Pe.error), disabled: h })) }));
2507
2507
  }, Oe = ({ children: n }) => a("section", Object.assign({ className: zt.content }, { children: n })), oe = ({ onSubmit: n, children: e, hidden: t, maxWidth: o }) => t ? null : a("form", Object.assign({ onSubmit: n, className: Pe.form }, { children: a("ul", Object.assign({ className: Pe.ul }, { children: (0, C.toChildArray)(e).map((i, r) => a("li", Object.assign({ part: "form-item", className: Q()(Pe.li, o ? Pe.maxWidth : null) }, { children: i }), r)) })) }));
2508
2508
  var cn = X(111), xt = {};
2509
2509
  xt.setAttributes = nt(), xt.insert = (n) => {
2510
2510
  window._hankoStyle = n;
2511
2511
  }, xt.domAPI = tt(), xt.insertStyleElement = ot(), et()(cn.A, xt);
2512
- const Ut = cn.A && cn.A.locals ? cn.A.locals : void 0, _o = ({ children: n, hidden: e }) => e ? null : a("section", Object.assign({ part: "divider", className: Ut.divider }, { children: [a("div", { part: "divider-line", className: Ut.line }), n ? a("div", Object.assign({ part: "divider-text", class: Ut.text }, { children: n })) : null, a("div", { part: "divider-line", className: Ut.line })] }));
2512
+ const Tt = cn.A && cn.A.locals ? cn.A.locals : void 0, _o = ({ children: n, hidden: e }) => e ? null : a("section", Object.assign({ part: "divider", className: Tt.divider }, { children: [a("div", { part: "divider-line", className: Tt.line }), n ? a("div", Object.assign({ part: "divider-text", class: Tt.text }, { children: n })) : null, a("div", { part: "divider-line", className: Tt.line })] }));
2513
2513
  var dn = X(905), At = {};
2514
2514
  At.setAttributes = nt(), At.insert = (n) => {
2515
2515
  window._hankoStyle = n;
@@ -2521,9 +2521,9 @@ const Ri = dn.A && dn.A.locals ? dn.A.locals : void 0, Ee = ({ state: n, error:
2521
2521
  var d, l;
2522
2522
  if (((d = n == null ? void 0 : n.error) === null || d === void 0 ? void 0 : d.code) == "form_data_invalid_error") for (const u of Object.values(n == null ? void 0 : n.actions)) {
2523
2523
  const h = u == null ? void 0 : u(null);
2524
- let g = !1;
2525
- for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (g = !0);
2526
- g || c(Object.assign(Object.assign({}, s), { error: n.error }));
2524
+ let f = !1;
2525
+ for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (f = !0);
2526
+ f || c(Object.assign(Object.assign({}, s), { error: n.error }));
2527
2527
  }
2528
2528
  else n != null && n.error && c(Object.assign(Object.assign({}, s), { error: n == null ? void 0 : n.error }));
2529
2529
  }, [n]), a("section", Object.assign({ part: "error", className: Ri.errorBox, hidden: !(!((o = s.error) === null || o === void 0) && o.code) && !(t != null && t.code) && !e }, { children: [a("span", { children: a(Ht, { name: "exclamation", size: 15 }) }), a("span", Object.assign({ id: "errorMessage", part: "error-text" }, { children: r(e ? `errors.${e.code}` : `flowErrors.${((i = s.error) === null || i === void 0 ? void 0 : i.code) || (t == null ? void 0 : t.code)}`) }))] }));
@@ -2538,24 +2538,24 @@ Pt.setAttributes = nt(), Pt.insert = (n) => {
2538
2538
  window._hankoStyle = n;
2539
2539
  }, Pt.domAPI = tt(), Pt.insertStyleElement = ot(), et()(hn.A, Pt);
2540
2540
  const Jt = hn.A && hn.A.locals ? hn.A.locals : void 0, Yn = (n) => {
2541
- var { loadingSpinnerPosition: e, dangerous: t = !1, onClick: o, uiAction: i } = n, r = function(O, $) {
2542
- var T = {};
2543
- for (var N in O) Object.prototype.hasOwnProperty.call(O, N) && $.indexOf(N) < 0 && (T[N] = O[N]);
2541
+ var { loadingSpinnerPosition: e, dangerous: t = !1, onClick: o, uiAction: i } = n, r = function(O, j) {
2542
+ var U = {};
2543
+ for (var N in O) Object.prototype.hasOwnProperty.call(O, N) && j.indexOf(N) < 0 && (U[N] = O[N]);
2544
2544
  if (O != null && typeof Object.getOwnPropertySymbols == "function") {
2545
2545
  var ae = 0;
2546
- for (N = Object.getOwnPropertySymbols(O); ae < N.length; ae++) $.indexOf(N[ae]) < 0 && Object.prototype.propertyIsEnumerable.call(O, N[ae]) && (T[N[ae]] = O[N[ae]]);
2546
+ for (N = Object.getOwnPropertySymbols(O); ae < N.length; ae++) j.indexOf(N[ae]) < 0 && Object.prototype.propertyIsEnumerable.call(O, N[ae]) && (U[N[ae]] = O[N[ae]]);
2547
2547
  }
2548
- return T;
2548
+ return U;
2549
2549
  }(n, ["loadingSpinnerPosition", "dangerous", "onClick", "uiAction"]);
2550
2550
  const { t: s } = (0, y.useContext)(Z.TranslateContext), { uiState: c, isDisabled: d } = (0, y.useContext)(pe), [l, u] = (0, y.useState)();
2551
2551
  let h;
2552
- const g = (O) => {
2552
+ const f = (O) => {
2553
2553
  O.preventDefault(), u(!0);
2554
2554
  }, m = (O) => {
2555
2555
  O.preventDefault(), u(!1);
2556
2556
  }, x = (0, y.useMemo)(() => i && c.loadingAction === i || r.isLoading, [r, i, c]), P = (0, y.useMemo)(() => i && c.succeededAction === i || r.isSuccess, [r, i, c]), A = (0, y.useCallback)((O) => {
2557
2557
  O.preventDefault(), u(!1), o(O);
2558
- }, [o]), S = (0, y.useCallback)(() => a(C.Fragment, { children: [l ? a(C.Fragment, { children: [a(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", a(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, a("button", Object.assign({}, r, { onClick: t ? g : o, disabled: l || r.disabled || d, part: "link", className: Q()(Jt.link, t ? Jt.danger : null) }, { children: r.children }))] }), [l, t, o, A, r, s, d]);
2558
+ }, [o]), S = (0, y.useCallback)(() => a(C.Fragment, { children: [l ? a(C.Fragment, { children: [a(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", a(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, a("button", Object.assign({}, r, { onClick: t ? f : o, disabled: l || r.disabled || d, part: "link", className: Q()(Jt.link, t ? Jt.danger : null) }, { children: r.children }))] }), [l, t, o, A, r, s, d]);
2559
2559
  return a(C.Fragment, { children: a("span", Object.assign({ className: Q()(Jt.linkWrapper, e === "right" ? Jt.reverse : null), hidden: r.hidden, onMouseEnter: () => {
2560
2560
  h && window.clearTimeout(h);
2561
2561
  }, onMouseLeave: () => {
@@ -2574,7 +2574,7 @@ const Jt = hn.A && hn.A.locals ? hn.A.locals : void 0, Yn = (n) => {
2574
2574
  return r;
2575
2575
  }(n, ["label"]);
2576
2576
  return a("div", Object.assign({ className: Pe.inputWrapper }, { children: a("label", Object.assign({ className: Pe.checkboxWrapper }, { children: [a("input", Object.assign({ part: "input checkbox-input", type: "checkbox", "aria-label": e, className: Pe.checkbox }, t)), a("span", Object.assign({ className: Q()(Pe.label, t.disabled ? Pe.disabled : null) }, { children: e }))] })) }));
2577
- }, On = () => a("section", { className: Ut.spacer });
2577
+ }, On = () => a("section", { className: Tt.spacer });
2578
2578
  var Ot = function(n, e, t, o) {
2579
2579
  return new (t || (t = Promise))(function(i, r) {
2580
2580
  function s(l) {
@@ -2602,14 +2602,14 @@ var Ot = function(n, e, t, o) {
2602
2602
  };
2603
2603
  const Oa = (n) => {
2604
2604
  var e, t, o, i, r, s, c, d, l;
2605
- const { t: u } = (0, y.useContext)(Z.TranslateContext), { init: h, hanko: g, initialComponentName: m, setLoadingAction: x, uiState: P, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: O, lastLogin: $ } = (0, y.useContext)(pe), [T, N] = (0, y.useState)(null), [ae, ke] = (0, y.useState)(P.username || P.email), { flowState: se } = Me(n.state), Se = ft.supported(), [M, H] = (0, y.useState)(void 0), [ye, Te] = (0, y.useState)(null), [Ie, Ne] = (0, y.useState)(!1), le = (k) => {
2605
+ const { t: u } = (0, y.useContext)(Z.TranslateContext), { init: h, hanko: f, initialComponentName: m, setLoadingAction: x, uiState: P, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: O, lastLogin: j } = (0, y.useContext)(pe), [U, N] = (0, y.useState)(null), [ae, ke] = (0, y.useState)(P.username || P.email), { flowState: se } = Me(n.state), Se = ft.supported(), [M, H] = (0, y.useState)(void 0), [ye, Ue] = (0, y.useState)(null), [Ie, Ne] = (0, y.useState)(!1), le = (k) => {
2606
2606
  if (k.preventDefault(), k.target instanceof HTMLInputElement) {
2607
2607
  const { value: p } = k.target;
2608
2608
  ke(p), ce(p);
2609
2609
  }
2610
2610
  }, ce = (k) => {
2611
2611
  const p = () => A((L) => Object.assign(Object.assign({}, L), { email: k, username: null })), _ = () => A((L) => Object.assign(Object.assign({}, L), { email: null, username: k }));
2612
- switch (T) {
2612
+ switch (U) {
2613
2613
  case "email":
2614
2614
  p();
2615
2615
  break;
@@ -2636,29 +2636,29 @@ const Oa = (n) => {
2636
2636
  H(_), k.delete("error"), k.delete("error_description"), history.replaceState(null, null, window.location.pathname + (k.size < 1 ? "" : `?${k.toString()}`));
2637
2637
  }, []), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: u("headlines.signIn") }), a(Ee, { state: se, error: M }), De ? a(C.Fragment, { children: [a(oe, Object.assign({ onSubmit: (k) => Ot(void 0, void 0, void 0, function* () {
2638
2638
  k.preventDefault(), x("email-submit");
2639
- const p = yield se.actions.continue_with_login_identifier({ [T]: ae }).run();
2640
- ce(ae), x(null), yield g.flow.run(p, S);
2639
+ const p = yield se.actions.continue_with_login_identifier({ [U]: ae }).run();
2640
+ ce(ae), x(null), yield f.flow.run(p, S);
2641
2641
  }), maxWidth: !0 }, { children: [De.email ? a(Ve, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.email, onInput: le, value: ae, placeholder: u("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : De.username ? a(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.username, onInput: le, value: ae, placeholder: u("labels.username") }) : a(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.identifier, onInput: le, value: ae, placeholder: u("labels.emailOrUsername") }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: u("labels.continue") }))] })), a(_o, Object.assign({ hidden: !me }, { children: u("labels.or") }))] }) : null, !((i = (o = se.actions).webauthn_generate_request_options) === null || i === void 0) && i.call(o, null) && !O ? a(oe, Object.assign({ onSubmit: (k) => ((p) => Ot(void 0, void 0, void 0, function* () {
2642
2642
  p.preventDefault(), x("passkey-submit");
2643
2643
  const _ = yield se.actions.webauthn_generate_request_options(null).run();
2644
- yield g.flow.run(_, S);
2644
+ yield f.flow.run(_, S);
2645
2645
  }))(k) }, { children: a(ne, Object.assign({ uiAction: "passkey-submit", secondary: !0, title: Se ? null : u("labels.webauthnUnsupported"), disabled: !Se, icon: "passkey" }, { children: u("labels.signInPasskey") })) })) : null, !((s = (r = se.actions).thirdparty_oauth) === null || s === void 0) && s.call(r, null) ? (c = se.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || c === void 0 ? void 0 : c.map((k) => a(oe, Object.assign({ onSubmit: (p) => ((_, L) => Ot(void 0, void 0, void 0, function* () {
2646
- _.preventDefault(), Te(L);
2646
+ _.preventDefault(), Ue(L);
2647
2647
  const K = yield se.actions.thirdparty_oauth({ provider: L, redirect_to: window.location.toString() }).run();
2648
- K.error && Te(null), yield g.flow.run(K, S);
2649
- }))(p, k.value) }, { children: a(ne, Object.assign({ isLoading: k.value == ye, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: ($ == null ? void 0 : $.login_method) == "third_party" && ($ == null ? void 0 : $.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d = se.actions).remember_me) === null || l === void 0 ? void 0 : l.call(d, null)) && a(C.Fragment, { children: [a(On, {}), a(bo, { required: !1, type: "checkbox", label: u("labels.staySignedIn"), checked: Ie, onChange: (k) => Ot(void 0, void 0, void 0, function* () {
2648
+ K.error && Ue(null), yield f.flow.run(K, S);
2649
+ }))(p, k.value) }, { children: a(ne, Object.assign({ isLoading: k.value == ye, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: (j == null ? void 0 : j.login_method) == "third_party" && (j == null ? void 0 : j.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d = se.actions).remember_me) === null || l === void 0 ? void 0 : l.call(d, null)) && a(C.Fragment, { children: [a(On, {}), a(bo, { required: !1, type: "checkbox", label: u("labels.staySignedIn"), checked: Ie, onChange: (k) => Ot(void 0, void 0, void 0, function* () {
2650
2650
  const p = yield se.actions.remember_me({ remember_me: !Ie }).run();
2651
- Ne((_) => !_), yield g.flow.run(p, S);
2651
+ Ne((_) => !_), yield f.flow.run(p, S);
2652
2652
  }) })] })] }), a(Re, Object.assign({ hidden: m !== "auth" }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "switch-flow", onClick: (k) => Ot(void 0, void 0, void 0, function* () {
2653
2653
  k.preventDefault(), h("registration");
2654
2654
  }), loadingSpinnerPosition: "left" }, { children: u("labels.dontHaveAnAccount") }))] }))] });
2655
2655
  }, Ea = (n) => {
2656
2656
  var { index: e, focus: t, digit: o = "" } = n, i = function(l, u) {
2657
2657
  var h = {};
2658
- for (var g in l) Object.prototype.hasOwnProperty.call(l, g) && u.indexOf(g) < 0 && (h[g] = l[g]);
2658
+ for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && u.indexOf(f) < 0 && (h[f] = l[f]);
2659
2659
  if (l != null && typeof Object.getOwnPropertySymbols == "function") {
2660
2660
  var m = 0;
2661
- for (g = Object.getOwnPropertySymbols(l); m < g.length; m++) u.indexOf(g[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, g[m]) && (h[g[m]] = l[g[m]]);
2661
+ for (f = Object.getOwnPropertySymbols(l); m < f.length; m++) u.indexOf(f[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, f[m]) && (h[f[m]] = l[f[m]]);
2662
2662
  }
2663
2663
  return h;
2664
2664
  }(n, ["index", "focus", "digit"]);
@@ -2687,12 +2687,12 @@ const Oa = (n) => {
2687
2687
  r(A), t(P);
2688
2688
  }, h = (m) => {
2689
2689
  m.key === "Backspace" ? (m.preventDefault(), l(""), d()) : m.key === "Delete" ? (m.preventDefault(), l("")) : m.key === "ArrowLeft" ? (m.preventDefault(), d()) : m.key === "ArrowRight" ? (m.preventDefault(), c()) : m.key !== " " && m.key !== "Spacebar" && m.key !== "Space" || m.preventDefault();
2690
- }, g = (m) => {
2690
+ }, f = (m) => {
2691
2691
  m.target instanceof HTMLInputElement && l(m.target.value), c();
2692
2692
  };
2693
2693
  return (0, y.useEffect)(() => {
2694
2694
  n.length === 0 && r(0);
2695
- }, [n]), a("div", Object.assign({ className: Pe.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => a(Ea, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: g, onPaste: u, onFocus: () => ((P) => {
2695
+ }, [n]), a("div", Object.assign({ className: Pe.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => a(Ea, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: f, onPaste: u, onFocus: () => ((P) => {
2696
2696
  r(P);
2697
2697
  })(x), disabled: o }, x)) }));
2698
2698
  };
@@ -2728,44 +2728,44 @@ var Yt = function(n, e, t, o) {
2728
2728
  };
2729
2729
  const Da = (n) => {
2730
2730
  var e, t;
2731
- const { t: o } = (0, y.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: r, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, y.useContext)(pe), [h, g] = (0, y.useState)(), [m, x] = (0, y.useState)(i.payload.resend_after), [P, A] = (0, y.useState)([]), S = (0, y.useMemo)(() => {
2732
- var $;
2733
- return (($ = i.error) === null || $ === void 0 ? void 0 : $.code) === "passcode_max_attempts_reached";
2734
- }, [i]), O = (0, y.useCallback)(($) => Yt(void 0, void 0, void 0, function* () {
2731
+ const { t: o } = (0, y.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: r, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, y.useContext)(pe), [h, f] = (0, y.useState)(), [m, x] = (0, y.useState)(i.payload.resend_after), [P, A] = (0, y.useState)([]), S = (0, y.useMemo)(() => {
2732
+ var j;
2733
+ return ((j = i.error) === null || j === void 0 ? void 0 : j.code) === "passcode_max_attempts_reached";
2734
+ }, [i]), O = (0, y.useCallback)((j) => Yt(void 0, void 0, void 0, function* () {
2735
2735
  d("passcode-submit");
2736
- const T = yield i.actions.verify_passcode({ code: $ }).run();
2737
- d(null), yield r.flow.run(T, u);
2736
+ const U = yield i.actions.verify_passcode({ code: j }).run();
2737
+ d(null), yield r.flow.run(U, u);
2738
2738
  }), [r, i, d, u]);
2739
2739
  return (0, y.useEffect)(() => {
2740
2740
  i.payload.passcode_resent && (l("passcode-resend"), setTimeout(() => l(null), 1e3));
2741
2741
  }, [i, l]), (0, y.useEffect)(() => {
2742
2742
  h <= 0 && s.succeededAction;
2743
2743
  }, [s, h]), (0, y.useEffect)(() => {
2744
- const $ = h > 0 && setInterval(() => g(h - 1), 1e3);
2745
- return () => clearInterval($);
2744
+ const j = h > 0 && setInterval(() => f(h - 1), 1e3);
2745
+ return () => clearInterval(j);
2746
2746
  }, [h]), (0, y.useEffect)(() => {
2747
- const $ = m > 0 && setInterval(() => {
2747
+ const j = m > 0 && setInterval(() => {
2748
2748
  x(m - 1);
2749
2749
  }, 1e3);
2750
- return () => clearInterval($);
2750
+ return () => clearInterval(j);
2751
2751
  }, [m]), (0, y.useEffect)(() => {
2752
- var $;
2753
- m == 0 && (($ = i.error) === null || $ === void 0 ? void 0 : $.code) == "rate_limit_exceeded" && c((T) => Object.assign(Object.assign({}, T), { error: null }));
2752
+ var j;
2753
+ m == 0 && ((j = i.error) === null || j === void 0 ? void 0 : j.code) == "rate_limit_exceeded" && c((U) => Object.assign(Object.assign({}, U), { error: null }));
2754
2754
  }, [m]), (0, y.useEffect)(() => {
2755
- var $;
2756
- (($ = i.error) === null || $ === void 0 ? void 0 : $.code) === "passcode_invalid" && A([]), i.payload.resend_after >= 0 && x(i.payload.resend_after);
2757
- }, [i]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: o("headlines.loginPasscode") }), a(Ee, { state: i }), a(W, { children: s.email ? o("texts.enterPasscode", { emailAddress: s.email }) : o("texts.enterPasscodeNoEmail") }), a(oe, Object.assign({ onSubmit: ($) => Yt(void 0, void 0, void 0, function* () {
2758
- return $.preventDefault(), O(P.join(""));
2759
- }) }, { children: [a(ko, { onInput: ($) => {
2760
- if (A($), $.filter((T) => T !== "").length === 6) return O($.join(""));
2761
- }, passcodeDigits: P, numberOfInputs: 6, disabled: h <= 0 || S }), a(ne, Object.assign({ disabled: h <= 0 || S, uiAction: "passcode-submit" }, { children: o("labels.continue") }))] }))] }), a(Re, { children: [a(te, Object.assign({ hidden: !(!((t = (e = i.actions).back) === null || t === void 0) && t.call(e, null)), onClick: ($) => Yt(void 0, void 0, void 0, function* () {
2762
- $.preventDefault(), d("back");
2763
- const T = yield i.actions.back(null).run();
2764
- d(null), yield r.flow.run(T, u);
2765
- }), loadingSpinnerPosition: "right", isLoading: s.loadingAction === "back" }, { children: o("labels.back") })), a(te, Object.assign({ uiAction: "passcode-resend", disabled: m > 0, onClick: ($) => Yt(void 0, void 0, void 0, function* () {
2766
- $.preventDefault(), d("passcode-resend");
2767
- const T = yield i.actions.resend_passcode(null).run();
2768
- d(null), yield r.flow.run(T, u);
2755
+ var j;
2756
+ ((j = i.error) === null || j === void 0 ? void 0 : j.code) === "passcode_invalid" && A([]), i.payload.resend_after >= 0 && x(i.payload.resend_after);
2757
+ }, [i]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: o("headlines.loginPasscode") }), a(Ee, { state: i }), a(W, { children: s.email ? o("texts.enterPasscode", { emailAddress: s.email }) : o("texts.enterPasscodeNoEmail") }), a(oe, Object.assign({ onSubmit: (j) => Yt(void 0, void 0, void 0, function* () {
2758
+ return j.preventDefault(), O(P.join(""));
2759
+ }) }, { children: [a(ko, { onInput: (j) => {
2760
+ if (A(j), j.filter((U) => U !== "").length === 6) return O(j.join(""));
2761
+ }, passcodeDigits: P, numberOfInputs: 6, disabled: h <= 0 || S }), a(ne, Object.assign({ disabled: h <= 0 || S, uiAction: "passcode-submit" }, { children: o("labels.continue") }))] }))] }), a(Re, { children: [a(te, Object.assign({ hidden: !(!((t = (e = i.actions).back) === null || t === void 0) && t.call(e, null)), onClick: (j) => Yt(void 0, void 0, void 0, function* () {
2762
+ j.preventDefault(), d("back");
2763
+ const U = yield i.actions.back(null).run();
2764
+ d(null), yield r.flow.run(U, u);
2765
+ }), loadingSpinnerPosition: "right", isLoading: s.loadingAction === "back" }, { children: o("labels.back") })), a(te, Object.assign({ uiAction: "passcode-resend", disabled: m > 0, onClick: (j) => Yt(void 0, void 0, void 0, function* () {
2766
+ j.preventDefault(), d("passcode-resend");
2767
+ const U = yield i.actions.resend_passcode(null).run();
2768
+ d(null), yield r.flow.run(U, u);
2769
2769
  }), loadingSpinnerPosition: "left" }, { children: m > 0 ? o("labels.passcodeResendAfter", { passcodeResendAfter: m }) : o("labels.sendNewPasscode") }))] })] });
2770
2770
  };
2771
2771
  var qn = function(n, e, t, o) {
@@ -2793,21 +2793,21 @@ var qn = function(n, e, t, o) {
2793
2793
  d((o = o.apply(n, [])).next());
2794
2794
  });
2795
2795
  };
2796
- const $a = (n) => {
2796
+ const ja = (n) => {
2797
2797
  var e, t, o, i, r, s, c, d;
2798
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state);
2798
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state);
2799
2799
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.registerAuthenticator") }), a(Ee, { state: m }), a(W, { children: l("texts.setupPasskey") }), a(oe, Object.assign({ onSubmit: (x) => qn(void 0, void 0, void 0, function* () {
2800
2800
  x.preventDefault(), h("passkey-submit");
2801
2801
  const P = yield m.actions.webauthn_generate_creation_options(null).run();
2802
- yield u.flow.run(P, g);
2802
+ yield u.flow.run(P, f);
2803
2803
  }) }, { children: a(ne, Object.assign({ uiAction: "passkey-submit", autofocus: !0, icon: "passkey" }, { children: l("labels.registerAuthenticator") })) }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = m.actions).skip) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).back) === null || i === void 0) && i.call(o, null)) }, { children: [a(te, Object.assign({ uiAction: "back", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2804
2804
  x.preventDefault(), h("back");
2805
2805
  const P = yield m.actions.back(null).run();
2806
- h(null), yield u.flow.run(P, g);
2806
+ h(null), yield u.flow.run(P, f);
2807
2807
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2808
2808
  x.preventDefault(), h("skip");
2809
2809
  const P = yield m.actions.skip(null).run();
2810
- h(null), yield u.flow.run(P, g);
2810
+ h(null), yield u.flow.run(P, f);
2811
2811
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
2812
2812
  };
2813
2813
  var It = function(n, e, t, o) {
@@ -2835,33 +2835,33 @@ var It = function(n, e, t, o) {
2835
2835
  d((o = o.apply(n, [])).next());
2836
2836
  });
2837
2837
  };
2838
- const ja = (n) => {
2838
+ const $a = (n) => {
2839
2839
  var e, t, o, i;
2840
- const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)(), [g, m] = (0, y.useState)(), x = (O) => It(void 0, void 0, void 0, function* () {
2840
+ const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)(), [f, m] = (0, y.useState)(), x = (O) => It(void 0, void 0, void 0, function* () {
2841
2841
  O.preventDefault(), d("password-recovery");
2842
- const $ = yield l.actions.continue_to_passcode_confirmation_recovery(null).run();
2843
- d(null), yield s.flow.run($, c);
2842
+ const j = yield l.actions.continue_to_passcode_confirmation_recovery(null).run();
2843
+ d(null), yield s.flow.run(j, c);
2844
2844
  }), P = (O) => It(void 0, void 0, void 0, function* () {
2845
2845
  O.preventDefault(), d("choose-login-method");
2846
- const $ = yield l.actions.continue_to_login_method_chooser(null).run();
2847
- d(null), yield s.flow.run($, c);
2846
+ const j = yield l.actions.continue_to_login_method_chooser(null).run();
2847
+ d(null), yield s.flow.run(j, c);
2848
2848
  }), A = (0, y.useMemo)(() => {
2849
- var O, $;
2850
- return a(te, Object.assign({ hidden: !(!(($ = (O = l.actions).continue_to_passcode_confirmation_recovery) === null || $ === void 0) && $.call(O, null)), uiAction: "password-recovery", onClick: x, loadingSpinnerPosition: "left" }, { children: r("labels.forgotYourPassword") }));
2849
+ var O, j;
2850
+ return a(te, Object.assign({ hidden: !(!((j = (O = l.actions).continue_to_passcode_confirmation_recovery) === null || j === void 0) && j.call(O, null)), uiAction: "password-recovery", onClick: x, loadingSpinnerPosition: "left" }, { children: r("labels.forgotYourPassword") }));
2851
2851
  }, [x, r]), S = (0, y.useMemo)(() => a(te, Object.assign({ uiAction: "choose-login-method", onClick: P, loadingSpinnerPosition: "left" }, { children: "Choose another method" })), [P]);
2852
2852
  return (0, y.useEffect)(() => {
2853
- const O = g > 0 && setInterval(() => m(g - 1), 1e3);
2853
+ const O = f > 0 && setInterval(() => m(f - 1), 1e3);
2854
2854
  return () => clearInterval(O);
2855
- }, [g]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.loginPassword") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (O) => It(void 0, void 0, void 0, function* () {
2855
+ }, [f]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.loginPassword") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (O) => It(void 0, void 0, void 0, function* () {
2856
2856
  O.preventDefault(), d("password-submit");
2857
- const $ = yield l.actions.password_login({ password: u }).run();
2858
- d(null), yield s.flow.run($, c);
2857
+ const j = yield l.actions.password_login({ password: u }).run();
2858
+ d(null), yield s.flow.run(j, c);
2859
2859
  }) }, { children: [a(Ve, { type: "password", flowInput: l.actions.password_login(null).inputs.password, autocomplete: "current-password", placeholder: r("labels.password"), onInput: (O) => It(void 0, void 0, void 0, function* () {
2860
2860
  O.target instanceof HTMLInputElement && h(O.target.value);
2861
- }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit", disabled: g > 0 }, { children: g > 0 ? r("labels.passwordRetryAfter", { passwordRetryAfter: g }) : r("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (O) => It(void 0, void 0, void 0, function* () {
2861
+ }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit", disabled: f > 0 }, { children: f > 0 ? r("labels.passwordRetryAfter", { passwordRetryAfter: f }) : r("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (O) => It(void 0, void 0, void 0, function* () {
2862
2862
  O.preventDefault(), d("back");
2863
- const $ = yield l.actions.back(null).run();
2864
- d(null), yield s.flow.run($, c);
2863
+ const j = yield l.actions.back(null).run();
2864
+ d(null), yield s.flow.run(j, c);
2865
2865
  }), loadingSpinnerPosition: "right" }, { children: r("labels.back") })), !((i = (o = l.actions).continue_to_login_method_chooser) === null || i === void 0) && i.call(o, null) ? S : A] })] });
2866
2866
  };
2867
2867
  var Jo = function(n, e, t, o) {
@@ -2924,24 +2924,24 @@ var Qt = function(n, e, t, o) {
2924
2924
  d((o = o.apply(n, [])).next());
2925
2925
  });
2926
2926
  };
2927
- const Ua = (n) => {
2927
+ const Ta = (n) => {
2928
2928
  var e, t, o, i, r, s;
2929
- const { t: c } = (0, y.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, y.useContext)(pe), { flowState: g } = Me(n.state);
2930
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: c("headlines.selectLoginMethod") }), a(Ee, { flowError: g == null ? void 0 : g.error }), a(W, { children: c("texts.howDoYouWantToLogin") }), a(oe, Object.assign({ hidden: !(!((t = (e = g.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2929
+ const { t: c } = (0, y.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, y.useContext)(pe), { flowState: f } = Me(n.state);
2930
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: c("headlines.selectLoginMethod") }), a(Ee, { flowError: f == null ? void 0 : f.error }), a(W, { children: c("texts.howDoYouWantToLogin") }), a(oe, Object.assign({ hidden: !(!((t = (e = f.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2931
2931
  m.preventDefault(), l("passcode-submit");
2932
- const x = yield g.actions.continue_to_passcode_confirmation(null).run();
2932
+ const x = yield f.actions.continue_to_passcode_confirmation(null).run();
2933
2933
  l(null), yield d.flow.run(x, u);
2934
- }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = g.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2934
+ }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = f.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2935
2935
  m.preventDefault(), l("password-submit");
2936
- const x = yield g.actions.continue_to_password_login(null).run();
2936
+ const x = yield f.actions.continue_to_password_login(null).run();
2937
2937
  l(null), yield d.flow.run(x, u);
2938
- }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), a(oe, Object.assign({ hidden: !(!((s = (r = g.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(r, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2938
+ }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), a(oe, Object.assign({ hidden: !(!((s = (r = f.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(r, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2939
2939
  m.preventDefault(), l("passkey-submit");
2940
- const x = yield g.actions.webauthn_generate_request_options(null).run();
2940
+ const x = yield f.actions.webauthn_generate_request_options(null).run();
2941
2941
  l(null), yield d.flow.run(x, u);
2942
2942
  }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passkey-submit", icon: "passkey" }, { children: c("labels.passkey") })) }))] }), a(Re, { children: a(te, Object.assign({ uiAction: "back", onClick: (m) => Qt(void 0, void 0, void 0, function* () {
2943
2943
  m.preventDefault(), l("back");
2944
- const x = yield g.actions.back(null).run();
2944
+ const x = yield f.actions.back(null).run();
2945
2945
  l(null), yield d.flow.run(x, u);
2946
2946
  }), loadingSpinnerPosition: "right" }, { children: c("labels.back") })) })] });
2947
2947
  };
@@ -2970,9 +2970,9 @@ var Gt = function(n, e, t, o) {
2970
2970
  d((o = o.apply(n, [])).next());
2971
2971
  });
2972
2972
  };
2973
- const Ta = (n) => {
2973
+ const Ua = (n) => {
2974
2974
  var e, t, o, i, r, s, c;
2975
- const { t: d } = (0, y.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: g, stateHandler: m, setLoadingAction: x, initialComponentName: P } = (0, y.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, O = !(!(S != null && S.email) || !(S != null && S.username)), [$, T] = (0, y.useState)(void 0), [N, ae] = (0, y.useState)(null), [ke, se] = (0, y.useState)(!1), Se = (0, y.useMemo)(() => {
2975
+ const { t: d } = (0, y.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: f, stateHandler: m, setLoadingAction: x, initialComponentName: P } = (0, y.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, O = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, y.useState)(void 0), [N, ae] = (0, y.useState)(null), [ke, se] = (0, y.useState)(!1), Se = (0, y.useMemo)(() => {
2976
2976
  var M, H;
2977
2977
  return !!(!((H = (M = A.actions).thirdparty_oauth) === null || H === void 0) && H.call(M, null));
2978
2978
  }, [A.actions]);
@@ -2982,24 +2982,24 @@ const Ta = (n) => {
2982
2982
  let H = "";
2983
2983
  H = M.get("error") === "access_denied" ? "thirdPartyAccessDenied" : "somethingWentWrong";
2984
2984
  const ye = { name: H, code: H, message: M.get("error_description") };
2985
- T(ye), M.delete("error"), M.delete("error_description"), history.replaceState(null, null, window.location.pathname + (M.size < 1 ? "" : `?${M.toString()}`));
2986
- }, []), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: d("headlines.signUp") }), a(Ee, { state: A, error: $ }), S ? a(C.Fragment, { children: [a(oe, Object.assign({ onSubmit: (M) => Gt(void 0, void 0, void 0, function* () {
2985
+ U(ye), M.delete("error"), M.delete("error_description"), history.replaceState(null, null, window.location.pathname + (M.size < 1 ? "" : `?${M.toString()}`));
2986
+ }, []), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: d("headlines.signUp") }), a(Ee, { state: A, error: j }), S ? a(C.Fragment, { children: [a(oe, Object.assign({ onSubmit: (M) => Gt(void 0, void 0, void 0, function* () {
2987
2987
  M.preventDefault(), x("email-submit");
2988
2988
  const H = yield A.actions.register_login_identifier({ email: h.email, username: h.username }).run();
2989
2989
  x(null), yield u.flow.run(H, m);
2990
2990
  }), maxWidth: !0 }, { children: [S.username ? a(Ve, { markOptional: O, markError: O, type: "text", autoComplete: "username", autoCorrect: "off", flowInput: S.username, onInput: (M) => {
2991
2991
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2992
2992
  const { value: H } = M.target;
2993
- g((ye) => Object.assign(Object.assign({}, ye), { username: H }));
2993
+ f((ye) => Object.assign(Object.assign({}, ye), { username: H }));
2994
2994
  }
2995
2995
  }, value: h.username, placeholder: d("labels.username") }) : null, S.email ? a(Ve, { markOptional: O, markError: O, type: "email", autoComplete: "email", autoCorrect: "off", flowInput: S.email, onInput: (M) => {
2996
2996
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2997
2997
  const { value: H } = M.target;
2998
- g((ye) => Object.assign(Object.assign({}, ye), { email: H }));
2998
+ f((ye) => Object.assign(Object.assign({}, ye), { email: H }));
2999
2999
  }
3000
- }, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, a(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), a(_o, Object.assign({ hidden: !Se }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (r = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || r === void 0 ? void 0 : r.map((M) => a(oe, Object.assign({ onSubmit: (H) => ((ye, Te) => Gt(void 0, void 0, void 0, function* () {
3001
- ye.preventDefault(), ae(Te);
3002
- const Ie = yield A.actions.thirdparty_oauth({ provider: Te, redirect_to: window.location.toString() }).run();
3000
+ }, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, a(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), a(_o, Object.assign({ hidden: !Se }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (r = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || r === void 0 ? void 0 : r.map((M) => a(oe, Object.assign({ onSubmit: (H) => ((ye, Ue) => Gt(void 0, void 0, void 0, function* () {
3001
+ ye.preventDefault(), ae(Ue);
3002
+ const Ie = yield A.actions.thirdparty_oauth({ provider: Ue, redirect_to: window.location.toString() }).run();
3003
3003
  ae(null), yield u.flow.run(Ie, m);
3004
3004
  }))(H, M.value) }, { children: a(ne, Object.assign({ isLoading: M.value == N, secondary: !0, icon: M.value.startsWith("custom_") ? "customProvider" : M.value }, { children: d("labels.signInWith", { provider: M.name }) })) }), M.value)) : null, ((c = (s = A.actions).remember_me) === null || c === void 0 ? void 0 : c.call(s, null)) && a(C.Fragment, { children: [a(On, {}), a(bo, { required: !1, type: "checkbox", label: d("labels.staySignedIn"), checked: ke, onChange: (M) => Gt(void 0, void 0, void 0, function* () {
3005
3005
  const H = yield A.actions.remember_me({ remember_me: !ke }).run();
@@ -3035,21 +3035,21 @@ var Xt = function(n, e, t, o) {
3035
3035
  };
3036
3036
  const Na = (n) => {
3037
3037
  var e, t, o, i, r, s, c, d;
3038
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), [x, P] = (0, y.useState)();
3038
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), [x, P] = (0, y.useState)();
3039
3039
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.registerPassword") }), a(Ee, { state: m }), a(W, { children: l("texts.passwordFormatHint", { minLength: m.actions.register_password(null).inputs.new_password.min_length, maxLength: 72 }) }), a(oe, Object.assign({ onSubmit: (A) => Xt(void 0, void 0, void 0, function* () {
3040
- A.preventDefault(), g("password-submit");
3040
+ A.preventDefault(), f("password-submit");
3041
3041
  const S = yield m.actions.register_password({ new_password: x }).run();
3042
- g(null), yield u.flow.run(S, h);
3042
+ f(null), yield u.flow.run(S, h);
3043
3043
  }) }, { children: [a(Ve, { type: "password", autocomplete: "new-password", flowInput: m.actions.register_password(null).inputs.new_password, placeholder: l("labels.newPassword"), onInput: (A) => Xt(void 0, void 0, void 0, function* () {
3044
3044
  A.target instanceof HTMLInputElement && P(A.target.value);
3045
3045
  }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: l("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = m.actions).back) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a(te, Object.assign({ uiAction: "back", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3046
- A.preventDefault(), g("back");
3046
+ A.preventDefault(), f("back");
3047
3047
  const S = yield m.actions.back(null).run();
3048
- g(null), yield u.flow.run(S, h);
3048
+ f(null), yield u.flow.run(S, h);
3049
3049
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3050
- A.preventDefault(), g("skip");
3050
+ A.preventDefault(), f("skip");
3051
3051
  const S = yield m.actions.skip(null).run();
3052
- g(null), yield u.flow.run(S, h);
3052
+ f(null), yield u.flow.run(S, h);
3053
3053
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
3054
3054
  };
3055
3055
  var mn = X(21), Dt = {};
@@ -3059,8 +3059,8 @@ Dt.setAttributes = nt(), Dt.insert = (n) => {
3059
3059
  const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n, columnSelector: e, contentSelector: t, data: o, checkedItemID: i, setCheckedItemID: r, dropdown: s = !1 }) {
3060
3060
  const c = (0, y.useCallback)((u) => `${n}-${u}`, [n]), d = (0, y.useCallback)((u) => c(u) === i, [i, c]), l = (u) => {
3061
3061
  if (!(u.target instanceof HTMLInputElement)) return;
3062
- const h = parseInt(u.target.value, 10), g = c(h);
3063
- r(g === i ? null : g);
3062
+ const h = parseInt(u.target.value, 10), f = c(h);
3063
+ r(f === i ? null : f);
3064
3064
  };
3065
3065
  return a("div", Object.assign({ className: Je.accordion }, { children: o.map((u, h) => a("div", Object.assign({ className: Je.accordionItem }, { children: [a("input", { type: "radio", className: Je.accordionInput, id: `${n}-${h}`, name: n, onClick: l, value: h, checked: d(h) }), a("label", Object.assign({ className: Q()(Je.label, s && Je.dropdown), for: `${n}-${h}` }, { children: a("span", Object.assign({ className: Je.labelText }, { children: e(u, h) })) })), a("div", Object.assign({ className: Q()(Je.accordionContent, s && Je.dropdownContent) }, { children: t(u, h) }))] }), h)) }));
3066
3066
  }, ze = ({ children: n }) => a("h2", Object.assign({ part: "headline2", className: Q()(bn.headline, bn.grade2) }, { children: n })), Ma = ({ onEmailDelete: n, onEmailSetPrimary: e, onEmailVerify: t, checkedItemID: o, setCheckedItemID: i, emails: r = [], deletableEmailIDs: s = [] }) => {
@@ -3075,42 +3075,42 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3075
3075
  }, Ra = ({ onCredentialNameSubmit: n, oldName: e, onBack: t, credential: o, credentialType: i }) => {
3076
3076
  const { t: r } = (0, y.useContext)(Z.TranslateContext), [s, c] = (0, y.useState)(e);
3077
3077
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), a(Ee, { flowError: null }), a(W, { children: r(i === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey") }), a(oe, Object.assign({ onSubmit: (d) => n(d, o.id, s) }, { children: [a(Ve, { type: "text", name: i, value: s, minLength: 3, maxLength: 32, required: !0, placeholder: r(i === "security-key" ? "labels.newSecurityKeyName" : "labels.newPasskeyName"), onInput: (d) => {
3078
- return l = void 0, u = void 0, g = function* () {
3078
+ return l = void 0, u = void 0, f = function* () {
3079
3079
  d.target instanceof HTMLInputElement && c(d.target.value);
3080
3080
  }, new ((h = void 0) || (h = Promise))(function(m, x) {
3081
3081
  function P(O) {
3082
3082
  try {
3083
- S(g.next(O));
3084
- } catch ($) {
3085
- x($);
3083
+ S(f.next(O));
3084
+ } catch (j) {
3085
+ x(j);
3086
3086
  }
3087
3087
  }
3088
3088
  function A(O) {
3089
3089
  try {
3090
- S(g.throw(O));
3091
- } catch ($) {
3092
- x($);
3090
+ S(f.throw(O));
3091
+ } catch (j) {
3092
+ x(j);
3093
3093
  }
3094
3094
  }
3095
3095
  function S(O) {
3096
- var $;
3097
- O.done ? m(O.value) : ($ = O.value, $ instanceof h ? $ : new h(function(T) {
3098
- T($);
3096
+ var j;
3097
+ O.done ? m(O.value) : (j = O.value, j instanceof h ? j : new h(function(U) {
3098
+ U(j);
3099
3099
  })).then(P, A);
3100
3100
  }
3101
- S((g = g.apply(l, u || [])).next());
3101
+ S((f = f.apply(l, u || [])).next());
3102
3102
  });
3103
- var l, u, h, g;
3103
+ var l, u, h, f;
3104
3104
  }, autofocus: !0 }), a(ne, Object.assign({ uiAction: "webauthn-credential-rename" }, { children: r("labels.save") }))] }))] }), a(Re, { children: a(te, Object.assign({ onClick: t, loadingSpinnerPosition: "right" }, { children: r("labels.back") })) })] });
3105
3105
  }, Yo = ({ credentials: n = [], checkedItemID: e, setCheckedItemID: t, onBack: o, onCredentialNameSubmit: i, onCredentialDelete: r, allowCredentialDeletion: s, credentialType: c }) => {
3106
- const { t: d } = (0, y.useContext)(Z.TranslateContext), { setPage: l } = (0, y.useContext)(pe), u = (g) => {
3107
- if (g.name) return g.name;
3108
- const m = g.public_key.replace(/[\W_]/g, "");
3106
+ const { t: d } = (0, y.useContext)(Z.TranslateContext), { setPage: l } = (0, y.useContext)(pe), u = (f) => {
3107
+ if (f.name) return f.name;
3108
+ const m = f.public_key.replace(/[\W_]/g, "");
3109
3109
  return `${c === "security-key" ? "SecurityKey" : "Passkey"}-${m.substring(m.length - 7, m.length)}`;
3110
- }, h = (g) => new Date(g).toLocaleString();
3111
- return a(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (g) => u(g), data: n, contentSelector: (g) => a(C.Fragment, { children: [a(W, { children: [a(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), a("br", {}), a(te, Object.assign({ onClick: (m) => ((x, P, A) => {
3110
+ }, h = (f) => new Date(f).toLocaleString();
3111
+ return a(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (f) => u(f), data: n, contentSelector: (f) => a(C.Fragment, { children: [a(W, { children: [a(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), a("br", {}), a(te, Object.assign({ onClick: (m) => ((x, P, A) => {
3112
3112
  x.preventDefault(), l(a(Ra, { oldName: u(P), credential: P, credentialType: A, onBack: o, onCredentialNameSubmit: i }));
3113
- })(m, g, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), a(W, Object.assign({ hidden: !s }, { children: [a(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), a("br", {}), a(te, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => r(m, g.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), a(W, { children: [a(ze, { children: d("headlines.lastUsedAt") }), g.last_used_at ? h(g.last_used_at) : "-"] }), a(W, { children: [a(ze, { children: d("headlines.createdAt") }), h(g.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3113
+ })(m, f, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), a(W, Object.assign({ hidden: !s }, { children: [a(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), a("br", {}), a(te, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => r(m, f.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), a(W, { children: [a(ze, { children: d("headlines.lastUsedAt") }), f.last_used_at ? h(f.last_used_at) : "-"] }), a(W, { children: [a(ze, { children: d("headlines.createdAt") }), h(f.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3114
3114
  }, Ft = ({ name: n, title: e, children: t, checkedItemID: o, setCheckedItemID: i }) => a(En, { dropdown: !0, name: n, columnSelector: () => e, contentSelector: () => a(C.Fragment, { children: t }), setCheckedItemID: i, checkedItemID: o, data: [{}] }), wo = ({ flowError: n }) => {
3115
3115
  const { t: e } = (0, y.useContext)(Z.TranslateContext);
3116
3116
  return a(C.Fragment, { children: n ? a("div", Object.assign({ className: Ri.errorMessage }, { children: e(`flowErrors.${n == null ? void 0 : n.code}`) })) : null });
@@ -3122,10 +3122,10 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3122
3122
  }, value: s, flowInput: n.email }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.save") }))] }))] }));
3123
3123
  }, Qo = ({ inputs: n, checkedItemID: e, setCheckedItemID: t, onPasswordSubmit: o, onPasswordDelete: i, allowPasswordDelete: r, passwordExists: s }) => {
3124
3124
  var c, d, l;
3125
- const { t: u } = (0, y.useContext)(Z.TranslateContext), [h, g] = (0, y.useState)("");
3126
- return a(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [a(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), a(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), a(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => g("")) }, { children: [a(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
- m.preventDefault(), m.target instanceof HTMLInputElement && g(m.target.value);
3128
- }, value: h, flowInput: n.password }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), a(te, Object.assign({ hidden: !r, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => g("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3125
+ const { t: u } = (0, y.useContext)(Z.TranslateContext), [h, f] = (0, y.useState)("");
3126
+ return a(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [a(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), a(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), a(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => f("")) }, { children: [a(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
+ m.preventDefault(), m.target instanceof HTMLInputElement && f(m.target.value);
3128
+ }, value: h, flowInput: n.password }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), a(te, Object.assign({ hidden: !r, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => f("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3129
3129
  }, Go = ({ checkedItemID: n, setCheckedItemID: e, onCredentialSubmit: t, credentialType: o }) => {
3130
3130
  const { t: i } = (0, y.useContext)(Z.TranslateContext), r = ft.supported();
3131
3131
  return a(Ft, Object.assign({ name: o === "security-key" ? "security-key-create-dropdown" : "passkey-create-dropdown", title: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey"), checkedItemID: n, setCheckedItemID: e }, { children: [a(W, { children: i(o === "security-key" ? "texts.securityKeySetUp" : "texts.setupPasskey") }), a(oe, Object.assign({ onSubmit: t }, { children: a(ne, Object.assign({ uiAction: o === "security-key" ? "security-key-submit" : "passkey-submit", title: r ? null : i("labels.webauthnUnsupported") }, { children: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey") })) }))] }));
@@ -3148,7 +3148,7 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3148
3148
  const { t: s } = (0, y.useContext)(Z.TranslateContext), c = a("span", Object.assign({ className: Je.description }, { children: i ? a(C.Fragment, { children: [" -", " ", s("labels.configured")] }) : null })), d = a(C.Fragment, { children: [s("labels.authenticatorAppManage"), " ", c] });
3149
3149
  return a(Ft, Object.assign({ name: "authenticator-app-manage-dropdown", title: d, checkedItemID: n, setCheckedItemID: e }, { children: [a(ze, { children: s(i ? "headlines.authenticatorAppAlreadySetUp" : "headlines.authenticatorAppNotSetUp") }), a(W, { children: [s(i ? "texts.authenticatorAppAlreadySetUp" : "texts.authenticatorAppNotSetUp"), a("br", {}), a(te, i ? Object.assign({ hidden: !r, uiAction: "auth-app-remove", onClick: (l) => t(l), loadingSpinnerPosition: "right", dangerous: !0 }, { children: s("labels.delete") }) : Object.assign({ uiAction: "auth-app-add", onClick: (l) => o(l), loadingSpinnerPosition: "right" }, { children: s("labels.authenticatorAppAdd") }))] })] }));
3150
3150
  };
3151
- var $e = function(n, e, t, o) {
3151
+ var je = function(n, e, t, o) {
3152
3152
  return new (t || (t = Promise))(function(i, r) {
3153
3153
  function s(l) {
3154
3154
  try {
@@ -3174,51 +3174,51 @@ var $e = function(n, e, t, o) {
3174
3174
  });
3175
3175
  };
3176
3176
  const qi = (n) => {
3177
- var e, t, o, i, r, s, c, d, l, u, h, g, m, x, P, A, S, O, $, T, N, ae, ke, se, Se, M, H, ye, Te, Ie, Ne, le, ce, me, De, k, p, _, L, K, fe, He, We, Fe, f, v, b, D, U, I, z, ee;
3178
- const { t: G } = (0, y.useContext)(Z.TranslateContext), { hanko: be, setLoadingAction: w, stateHandler: we, setUIState: J, setPage: R } = (0, y.useContext)(pe), { flowState: E } = Me(n.state), [xe, V] = (0, y.useState)(""), F = (q, B, Qe) => $e(void 0, void 0, void 0, function* () {
3177
+ var e, t, o, i, r, s, c, d, l, u, h, f, m, x, P, A, S, O, j, U, N, ae, ke, se, Se, M, H, ye, Ue, Ie, Ne, le, ce, me, De, k, p, _, L, K, fe, He, We, Fe, g, v, b, D, T, I, z, ee;
3178
+ const { t: G } = (0, y.useContext)(Z.TranslateContext), { hanko: be, setLoadingAction: w, stateHandler: we, setUIState: J, setPage: R } = (0, y.useContext)(pe), { flowState: E } = Me(n.state), [xe, V] = (0, y.useState)(""), F = (q, B, Qe) => je(void 0, void 0, void 0, function* () {
3179
3179
  q.preventDefault(), w(B);
3180
3180
  const In = yield Qe();
3181
3181
  In != null && In.error || (V(null), yield new Promise((Fi) => setTimeout(Fi, 360))), w(null), yield be.flow.run(In, we);
3182
- }), qe = (q) => $e(void 0, void 0, void 0, function* () {
3182
+ }), qe = (q) => je(void 0, void 0, void 0, function* () {
3183
3183
  return F(q, "password-delete", E.actions.password_delete(null).run);
3184
- }), it = (q) => $e(void 0, void 0, void 0, function* () {
3184
+ }), it = (q) => je(void 0, void 0, void 0, function* () {
3185
3185
  return F(q, "username-delete", E.actions.username_delete(null).run);
3186
- }), ge = (q, B, Qe) => $e(void 0, void 0, void 0, function* () {
3186
+ }), ge = (q, B, Qe) => je(void 0, void 0, void 0, function* () {
3187
3187
  return F(q, "webauthn-credential-rename", E.actions.webauthn_credential_rename({ passkey_id: B, passkey_name: Qe }).run);
3188
- }), Vt = (q) => $e(void 0, void 0, void 0, function* () {
3188
+ }), Vt = (q) => je(void 0, void 0, void 0, function* () {
3189
3189
  return F(q, "account_delete", E.actions.account_delete(null).run);
3190
3190
  }), rt = (q) => (q.preventDefault(), R(a(qi, { state: E, enablePasskeys: n.enablePasskeys })), Promise.resolve());
3191
- return a(Oe, { children: [a(Ee, { state: ((e = E == null ? void 0 : E.error) === null || e === void 0 ? void 0 : e.code) !== "form_data_invalid_error" ? E : null }), !((o = (t = E.actions).username_create) === null || o === void 0) && o.call(t, null) || !((r = (i = E.actions).username_update) === null || r === void 0) && r.call(i, null) || !((c = (s = E.actions).username_delete) === null || c === void 0) && c.call(s, null) ? a(C.Fragment, { children: [a(he, { children: G("labels.username") }), E.payload.user.username ? a(W, { children: a("b", { children: E.payload.user.username.username }) }) : null, a(W, { children: [!((l = (d = E.actions).username_create) === null || l === void 0) && l.call(d, null) ? a(Xo, { inputs: E.actions.username_create(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((h = (u = E.actions).username_delete) === null || h === void 0) && h.call(u, null)), onUsernameSubmit: (q, B) => $e(void 0, void 0, void 0, function* () {
3191
+ return a(Oe, { children: [a(Ee, { state: ((e = E == null ? void 0 : E.error) === null || e === void 0 ? void 0 : e.code) !== "form_data_invalid_error" ? E : null }), !((o = (t = E.actions).username_create) === null || o === void 0) && o.call(t, null) || !((r = (i = E.actions).username_update) === null || r === void 0) && r.call(i, null) || !((c = (s = E.actions).username_delete) === null || c === void 0) && c.call(s, null) ? a(C.Fragment, { children: [a(he, { children: G("labels.username") }), E.payload.user.username ? a(W, { children: a("b", { children: E.payload.user.username.username }) }) : null, a(W, { children: [!((l = (d = E.actions).username_create) === null || l === void 0) && l.call(d, null) ? a(Xo, { inputs: E.actions.username_create(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((h = (u = E.actions).username_delete) === null || h === void 0) && h.call(u, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3192
3192
  return F(q, "username-set", E.actions.username_create({ username: B }).run);
3193
- }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null, !((m = (g = E.actions).username_update) === null || m === void 0) && m.call(g, null) ? a(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((P = (x = E.actions).username_delete) === null || P === void 0) && P.call(x, null)), onUsernameSubmit: (q, B) => $e(void 0, void 0, void 0, function* () {
3193
+ }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null, !((m = (f = E.actions).username_update) === null || m === void 0) && m.call(f, null) ? a(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((P = (x = E.actions).username_delete) === null || P === void 0) && P.call(x, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3194
3194
  return F(q, "username-set", E.actions.username_update({ username: B }).run);
3195
- }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !(($ = (O = E.actions).email_create) === null || $ === void 0) && $.call(O, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileEmails") }), a(W, { children: [a(Ma, { emails: E.payload.user.emails, onEmailDelete: (q, B) => $e(void 0, void 0, void 0, function* () {
3195
+ }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !((j = (O = E.actions).email_create) === null || j === void 0) && j.call(O, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileEmails") }), a(W, { children: [a(Ma, { emails: E.payload.user.emails, onEmailDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3196
3196
  return F(q, "email-delete", E.actions.email_delete({ email_id: B }).run);
3197
- }), onEmailSetPrimary: (q, B) => $e(void 0, void 0, void 0, function* () {
3197
+ }), onEmailSetPrimary: (q, B) => je(void 0, void 0, void 0, function* () {
3198
3198
  return F(q, "email-set-primary", E.actions.email_set_primary({ email_id: B }).run);
3199
- }), onEmailVerify: (q, B) => $e(void 0, void 0, void 0, function* () {
3199
+ }), onEmailVerify: (q, B) => je(void 0, void 0, void 0, function* () {
3200
3200
  return F(q, "email-verify", E.actions.email_verify({ email_id: B }).run);
3201
- }), checkedItemID: xe, setCheckedItemID: V, deletableEmailIDs: (ae = (N = (T = E.actions).email_delete) === null || N === void 0 ? void 0 : N.call(T, null).inputs.email_id.allowed_values) === null || ae === void 0 ? void 0 : ae.map((q) => q.value) }), !((se = (ke = E.actions).email_create) === null || se === void 0) && se.call(ke, null) ? a(qa, { inputs: E.actions.email_create(null).inputs, onEmailSubmit: (q, B) => $e(void 0, void 0, void 0, function* () {
3201
+ }), checkedItemID: xe, setCheckedItemID: V, deletableEmailIDs: (ae = (N = (U = E.actions).email_delete) === null || N === void 0 ? void 0 : N.call(U, null).inputs.email_id.allowed_values) === null || ae === void 0 ? void 0 : ae.map((q) => q.value) }), !((se = (ke = E.actions).email_create) === null || se === void 0) && se.call(ke, null) ? a(qa, { inputs: E.actions.email_create(null).inputs, onEmailSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3202
3202
  return J((Qe) => Object.assign(Object.assign({}, Qe), { email: B })), F(q, "email-submit", E.actions.email_create({ email: B }).run);
3203
- }), checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((M = (Se = E.actions).password_create) === null || M === void 0) && M.call(Se, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePassword") }), a(W, { children: a(Qo, { inputs: E.actions.password_create(null).inputs, onPasswordSubmit: (q, B) => $e(void 0, void 0, void 0, function* () {
3203
+ }), checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((M = (Se = E.actions).password_create) === null || M === void 0) && M.call(Se, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePassword") }), a(W, { children: a(Qo, { inputs: E.actions.password_create(null).inputs, onPasswordSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3204
3204
  return F(q, "password-submit", E.actions.password_create({ password: B }).run);
3205
- }), onPasswordDelete: qe, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, !((ye = (H = E.actions).password_update) === null || ye === void 0) && ye.call(H, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePassword") }), a(W, { children: a(Qo, { allowPasswordDelete: !!(!((Ie = (Te = E.actions).password_delete) === null || Ie === void 0) && Ie.call(Te, null)), inputs: E.actions.password_update(null).inputs, onPasswordSubmit: (q, B) => $e(void 0, void 0, void 0, function* () {
3205
+ }), onPasswordDelete: qe, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, !((ye = (H = E.actions).password_update) === null || ye === void 0) && ye.call(H, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePassword") }), a(W, { children: a(Qo, { allowPasswordDelete: !!(!((Ie = (Ue = E.actions).password_delete) === null || Ie === void 0) && Ie.call(Ue, null)), inputs: E.actions.password_update(null).inputs, onPasswordSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3206
3206
  return F(q, "password-submit", E.actions.password_update({ password: B }).run);
3207
- }), onPasswordDelete: qe, checkedItemID: xe, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((le = (Ne = E.payload) === null || Ne === void 0 ? void 0 : Ne.user) === null || le === void 0) && le.passkeys || !((me = (ce = E.actions).webauthn_credential_create) === null || me === void 0) && me.call(ce, null)) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePasskeys") }), a(W, { children: [a(Yo, { onBack: rt, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => $e(void 0, void 0, void 0, function* () {
3207
+ }), onPasswordDelete: qe, checkedItemID: xe, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((le = (Ne = E.payload) === null || Ne === void 0 ? void 0 : Ne.user) === null || le === void 0) && le.passkeys || !((me = (ce = E.actions).webauthn_credential_create) === null || me === void 0) && me.call(ce, null)) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profilePasskeys") }), a(W, { children: [a(Yo, { onBack: rt, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3208
3208
  return F(q, "passkey-delete", E.actions.webauthn_credential_delete({ passkey_id: B }).run);
3209
- }), credentials: E.payload.user.passkeys, setError: null, checkedItemID: xe, setCheckedItemID: V, allowCredentialDeletion: !!(!((k = (De = E.actions).webauthn_credential_delete) === null || k === void 0) && k.call(De, null)), credentialType: "passkey" }), !((_ = (p = E.actions).webauthn_credential_create) === null || _ === void 0) && _.call(p, null) ? a(Go, { credentialType: "passkey", onCredentialSubmit: (q) => $e(void 0, void 0, void 0, function* () {
3209
+ }), credentials: E.payload.user.passkeys, setError: null, checkedItemID: xe, setCheckedItemID: V, allowCredentialDeletion: !!(!((k = (De = E.actions).webauthn_credential_delete) === null || k === void 0) && k.call(De, null)), credentialType: "passkey" }), !((_ = (p = E.actions).webauthn_credential_create) === null || _ === void 0) && _.call(p, null) ? a(Go, { credentialType: "passkey", onCredentialSubmit: (q) => je(void 0, void 0, void 0, function* () {
3210
3210
  return F(q, "passkey-submit", E.actions.webauthn_credential_create(null).run);
3211
- }), setError: null, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((L = E.payload.user.mfa_config) === null || L === void 0) && L.security_keys_enabled ? a(C.Fragment, { children: [a(he, { children: G("headlines.securityKeys") }), a(W, { children: [a(Yo, { onBack: rt, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => $e(void 0, void 0, void 0, function* () {
3211
+ }), setError: null, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((L = E.payload.user.mfa_config) === null || L === void 0) && L.security_keys_enabled ? a(C.Fragment, { children: [a(he, { children: G("headlines.securityKeys") }), a(W, { children: [a(Yo, { onBack: rt, onCredentialNameSubmit: ge, onCredentialDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3212
3212
  return F(q, "security-key-delete", E.actions.security_key_delete({ security_key_id: B }).run);
3213
- }), credentials: E.payload.user.security_keys, setError: null, checkedItemID: xe, setCheckedItemID: V, allowCredentialDeletion: !!(!((fe = (K = E.actions).security_key_delete) === null || fe === void 0) && fe.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? a(Go, { credentialType: "security-key", onCredentialSubmit: (q) => $e(void 0, void 0, void 0, function* () {
3213
+ }), credentials: E.payload.user.security_keys, setError: null, checkedItemID: xe, setCheckedItemID: V, allowCredentialDeletion: !!(!((fe = (K = E.actions).security_key_delete) === null || fe === void 0) && fe.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? a(Go, { credentialType: "security-key", onCredentialSubmit: (q) => je(void 0, void 0, void 0, function* () {
3214
3214
  return F(q, "security-key-submit", E.actions.security_key_create(null).run);
3215
- }), setError: null, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((Fe = E.payload.user.mfa_config) === null || Fe === void 0) && Fe.totp_enabled ? a(C.Fragment, { children: [a(he, { children: G("headlines.authenticatorApp") }), a(W, { children: a(Wa, { onConnect: (q) => $e(void 0, void 0, void 0, function* () {
3215
+ }), setError: null, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((Fe = E.payload.user.mfa_config) === null || Fe === void 0) && Fe.totp_enabled ? a(C.Fragment, { children: [a(he, { children: G("headlines.authenticatorApp") }), a(W, { children: a(Wa, { onConnect: (q) => je(void 0, void 0, void 0, function* () {
3216
3216
  return F(q, "auth-app-add", E.actions.continue_to_otp_secret_creation(null).run);
3217
- }), onDelete: (q) => $e(void 0, void 0, void 0, function* () {
3217
+ }), onDelete: (q) => je(void 0, void 0, void 0, function* () {
3218
3218
  return F(q, "auth-app-remove", E.actions.otp_secret_delete(null).run);
3219
- }), allowDeletion: !!(!((v = (f = E.actions).otp_secret_delete) === null || v === void 0) && v.call(f, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileSessions") }), a(W, { children: a(Ha, { sessions: E.payload.sessions, setError: null, checkedItemID: xe, setCheckedItemID: V, onSessionDelete: (q, B) => $e(void 0, void 0, void 0, function* () {
3219
+ }), allowDeletion: !!(!((v = (g = E.actions).otp_secret_delete) === null || v === void 0) && v.call(g, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileSessions") }), a(W, { children: a(Ha, { sessions: E.payload.sessions, setError: null, checkedItemID: xe, setCheckedItemID: V, onSessionDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3220
3220
  return F(q, "session-delete", E.actions.session_delete({ session_id: B }).run);
3221
- }), deletableSessionIDs: (I = (U = (D = E.actions).session_delete) === null || U === void 0 ? void 0 : U.call(D, null).inputs.session_id.allowed_values) === null || I === void 0 ? void 0 : I.map((q) => q.value) }) })] }) : null, !((ee = (z = E.actions).account_delete) === null || ee === void 0) && ee.call(z, null) ? a(C.Fragment, { children: [a(On, {}), a(W, { children: a(_o, {}) }), a(W, { children: a(oe, Object.assign({ onSubmit: (q) => (q.preventDefault(), R(a(za, { onBack: rt, onAccountDelete: Vt })), Promise.resolve()) }, { children: a(ne, Object.assign({ dangerous: !0 }, { children: G("headlines.deleteAccount") })) })) })] }) : null] });
3221
+ }), deletableSessionIDs: (I = (T = (D = E.actions).session_delete) === null || T === void 0 ? void 0 : T.call(D, null).inputs.session_id.allowed_values) === null || I === void 0 ? void 0 : I.map((q) => q.value) }) })] }) : null, !((ee = (z = E.actions).account_delete) === null || ee === void 0) && ee.call(z, null) ? a(C.Fragment, { children: [a(On, {}), a(W, { children: a(_o, {}) }), a(W, { children: a(oe, Object.assign({ onSubmit: (q) => (q.preventDefault(), R(a(za, { onBack: rt, onAccountDelete: Vt })), Promise.resolve()) }, { children: a(ne, Object.assign({ dangerous: !0 }, { children: G("headlines.deleteAccount") })) })) })] }) : null] });
3222
3222
  }, Fa = qi, ei = ({ state: n, error: e }) => {
3223
3223
  const { t } = (0, y.useContext)(Z.TranslateContext), { init: o, componentName: i } = (0, y.useContext)(pe), r = (0, y.useCallback)(() => o(i), [i, o]);
3224
3224
  return (0, y.useEffect)(() => (addEventListener("hankoAuthSuccess", r), () => {
@@ -3255,14 +3255,14 @@ var zn = function(n, e, t, o) {
3255
3255
  const Ka = (n) => {
3256
3256
  var e, t, o, i;
3257
3257
  const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)();
3258
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createEmail") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (g) => zn(void 0, void 0, void 0, function* () {
3259
- g.preventDefault(), d("email-submit");
3258
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createEmail") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (f) => zn(void 0, void 0, void 0, function* () {
3259
+ f.preventDefault(), d("email-submit");
3260
3260
  const m = yield l.actions.email_address_set({ email: u }).run();
3261
3261
  d(null), yield s.flow.run(m, c);
3262
- }) }, { children: [a(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (g) => zn(void 0, void 0, void 0, function* () {
3263
- g.target instanceof HTMLInputElement && h(g.target.value);
3264
- }), placeholder: r("labels.email"), pattern: "^.*[^0-9]+$", value: u }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (g) => zn(void 0, void 0, void 0, function* () {
3265
- g.preventDefault(), d("skip");
3262
+ }) }, { children: [a(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (f) => zn(void 0, void 0, void 0, function* () {
3263
+ f.target instanceof HTMLInputElement && h(f.target.value);
3264
+ }), placeholder: r("labels.email"), pattern: "^.*[^0-9]+$", value: u }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (f) => zn(void 0, void 0, void 0, function* () {
3265
+ f.preventDefault(), d("skip");
3266
3266
  const m = yield l.actions.skip(null).run();
3267
3267
  d(null), yield s.flow.run(m, c);
3268
3268
  }), loadingSpinnerPosition: "left" }, { children: r("labels.skip") }))] }))] });
@@ -3295,14 +3295,14 @@ var Hn = function(n, e, t, o) {
3295
3295
  const Va = (n) => {
3296
3296
  var e, t, o, i;
3297
3297
  const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)();
3298
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createUsername") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (g) => Hn(void 0, void 0, void 0, function* () {
3299
- g.preventDefault(), d("username-set");
3298
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createUsername") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (f) => Hn(void 0, void 0, void 0, function* () {
3299
+ f.preventDefault(), d("username-set");
3300
3300
  const m = yield l.actions.username_create({ username: u }).run();
3301
3301
  d(null), yield s.flow.run(m, c);
3302
- }) }, { children: [a(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (g) => Hn(void 0, void 0, void 0, function* () {
3303
- g.target instanceof HTMLInputElement && h(g.target.value);
3304
- }), value: u, placeholder: r("labels.username") }), a(ne, Object.assign({ uiAction: "username-set" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (g) => Hn(void 0, void 0, void 0, function* () {
3305
- g.preventDefault(), d("skip");
3302
+ }) }, { children: [a(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (f) => Hn(void 0, void 0, void 0, function* () {
3303
+ f.target instanceof HTMLInputElement && h(f.target.value);
3304
+ }), value: u, placeholder: r("labels.username") }), a(ne, Object.assign({ uiAction: "username-set" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (f) => Hn(void 0, void 0, void 0, function* () {
3305
+ f.preventDefault(), d("skip");
3306
3306
  const m = yield l.actions.skip(null).run();
3307
3307
  d(null), yield s.flow.run(m, c);
3308
3308
  }), loadingSpinnerPosition: "left" }, { children: r("labels.skip") }))] }))] });
@@ -3333,25 +3333,25 @@ var en = function(n, e, t, o) {
3333
3333
  });
3334
3334
  };
3335
3335
  const Ba = (n) => {
3336
- var e, t, o, i, r, s, c, d, l, u, h, g;
3336
+ var e, t, o, i, r, s, c, d, l, u, h, f;
3337
3337
  const { t: m } = (0, y.useContext)(Z.TranslateContext), { hanko: x, setLoadingAction: P, stateHandler: A } = (0, y.useContext)(pe), { flowState: S } = Me(n.state);
3338
3338
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: m("headlines.setupLoginMethod") }), a(Ee, { flowError: S == null ? void 0 : S.error }), a(W, { children: m("texts.selectLoginMethodForFutureLogins") }), a(oe, Object.assign({ hidden: !(!((t = (e = S.actions).continue_to_passkey_registration) === null || t === void 0) && t.call(e, null)), onSubmit: (O) => en(void 0, void 0, void 0, function* () {
3339
3339
  O.preventDefault(), P("passkey-submit");
3340
- const $ = yield S.actions.continue_to_passkey_registration(null).run();
3341
- P(null), yield x.flow.run($, A);
3340
+ const j = yield S.actions.continue_to_passkey_registration(null).run();
3341
+ P(null), yield x.flow.run(j, A);
3342
3342
  }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passkey-submit", icon: "passkey" }, { children: m("labels.passkey") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = S.actions).continue_to_password_registration) === null || i === void 0) && i.call(o, null)), onSubmit: (O) => en(void 0, void 0, void 0, function* () {
3343
3343
  O.preventDefault(), P("password-submit");
3344
- const $ = yield S.actions.continue_to_password_registration(null).run();
3345
- P(null), yield x.flow.run($, A);
3344
+ const j = yield S.actions.continue_to_password_registration(null).run();
3345
+ P(null), yield x.flow.run(j, A);
3346
3346
  }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: m("labels.password") })) }))] }), a(Re, Object.assign({ hidden: !(!((s = (r = S.actions).back) === null || s === void 0) && s.call(r, null)) && !(!((d = (c = S.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: [a(te, Object.assign({ uiAction: "back", onClick: (O) => en(void 0, void 0, void 0, function* () {
3347
3347
  O.preventDefault(), P("back");
3348
- const $ = yield S.actions.back(null).run();
3349
- P(null), yield x.flow.run($, A);
3348
+ const j = yield S.actions.back(null).run();
3349
+ P(null), yield x.flow.run(j, A);
3350
3350
  }), loadingSpinnerPosition: "right", hidden: !(!((u = (l = S.actions).back) === null || u === void 0) && u.call(l, null)) }, { children: m("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (O) => en(void 0, void 0, void 0, function* () {
3351
3351
  O.preventDefault(), P("skip");
3352
- const $ = yield S.actions.skip(null).run();
3353
- P(null), yield x.flow.run($, A);
3354
- }), loadingSpinnerPosition: "left", hidden: !(!((g = (h = S.actions).skip) === null || g === void 0) && g.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3352
+ const j = yield S.actions.skip(null).run();
3353
+ P(null), yield x.flow.run(j, A);
3354
+ }), loadingSpinnerPosition: "left", hidden: !(!((f = (h = S.actions).skip) === null || f === void 0) && f.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3355
3355
  };
3356
3356
  var Wn = function(n, e, t, o) {
3357
3357
  return new (t || (t = Promise))(function(i, r) {
@@ -3380,7 +3380,7 @@ var Wn = function(n, e, t, o) {
3380
3380
  };
3381
3381
  const Za = (n) => {
3382
3382
  var e, t, o, i;
3383
- const { t: r } = (0, y.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, y.useContext)(pe), [u, h] = (0, y.useState)([]), g = (0, y.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3383
+ const { t: r } = (0, y.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, y.useContext)(pe), [u, h] = (0, y.useState)([]), f = (0, y.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3384
3384
  d("passcode-submit");
3385
3385
  const x = yield s.actions.otp_code_validate({ otp_code: m }).run();
3386
3386
  d(null), yield c.flow.run(x, l);
@@ -3389,9 +3389,9 @@ const Za = (n) => {
3389
3389
  var m;
3390
3390
  ((m = s.error) === null || m === void 0 ? void 0 : m.code) === "passcode_invalid" && h([]);
3391
3391
  }, [s]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.otpLogin") }), a(Ee, { state: s }), a(W, { children: r("texts.otpLogin") }), a(oe, Object.assign({ onSubmit: (m) => Wn(void 0, void 0, void 0, function* () {
3392
- return m.preventDefault(), g(u.join(""));
3392
+ return m.preventDefault(), f(u.join(""));
3393
3393
  }) }, { children: [a(ko, { onInput: (m) => {
3394
- if (h(m), m.filter((x) => x !== "").length === 6) return g(m.join(""));
3394
+ if (h(m), m.filter((x) => x !== "").length === 6) return f(m.join(""));
3395
3395
  }, passcodeDigits: u, numberOfInputs: 6 }), a(ne, Object.assign({ uiAction: "passcode-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = s.actions).continue_to_login_security_key) === null || t === void 0) && t.call(e, null)) }, { children: a(te, Object.assign({ uiAction: "skip", onClick: (m) => Wn(void 0, void 0, void 0, function* () {
3396
3396
  m.preventDefault(), d("skip");
3397
3397
  const x = yield s.actions.continue_to_login_security_key(null).run();
@@ -3463,14 +3463,14 @@ var tn = function(n, e, t, o) {
3463
3463
  };
3464
3464
  const Ya = (n) => {
3465
3465
  var e, t, o, i, r, s, c, d;
3466
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3466
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3467
3467
  S.preventDefault(), h("passcode-submit");
3468
3468
  const O = yield m.actions.continue_to_security_key_creation(null).run();
3469
- h(null), yield u.flow.run(O, g);
3469
+ h(null), yield u.flow.run(O, f);
3470
3470
  }), P = (S) => tn(void 0, void 0, void 0, function* () {
3471
3471
  S.preventDefault(), h("password-submit");
3472
3472
  const O = yield m.actions.continue_to_otp_secret_creation(null).run();
3473
- h(null), yield u.flow.run(O, g);
3473
+ h(null), yield u.flow.run(O, f);
3474
3474
  }), A = (0, y.useMemo)(() => {
3475
3475
  const { actions: S } = m;
3476
3476
  return S.continue_to_security_key_creation && !S.continue_to_otp_secret_creation ? x : !S.continue_to_security_key_creation && S.continue_to_otp_secret_creation ? P : void 0;
@@ -3478,17 +3478,17 @@ const Ya = (n) => {
3478
3478
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.mfaSetUp") }), a(Ee, { flowError: m == null ? void 0 : m.error }), a(W, { children: l("texts.mfaSetUp") }), A ? a(oe, Object.assign({ onSubmit: A }, { children: a(ne, Object.assign({ uiAction: "passcode-submit" }, { children: l("labels.continue") })) })) : a(C.Fragment, { children: [a(oe, Object.assign({ hidden: !(!((t = (e = m.actions).continue_to_security_key_creation) === null || t === void 0) && t.call(e, null)), onSubmit: x }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "securityKey" }, { children: l("labels.securityKey") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = m.actions).continue_to_otp_secret_creation) === null || i === void 0) && i.call(o, null)), onSubmit: P }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "qrCodeScanner" }, { children: l("labels.authenticatorApp") })) }))] })] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3479
3479
  S.preventDefault(), h("back");
3480
3480
  const O = yield m.actions.back(null).run();
3481
- h(null), yield u.flow.run(O, g);
3481
+ h(null), yield u.flow.run(O, f);
3482
3482
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3483
3483
  S.preventDefault(), h("skip");
3484
3484
  const O = yield m.actions.skip(null).run();
3485
- h(null), yield u.flow.run(O, g);
3485
+ h(null), yield u.flow.run(O, f);
3486
3486
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] })] });
3487
3487
  };
3488
- var fn = X(560), $t = {};
3489
- $t.setAttributes = nt(), $t.insert = (n) => {
3488
+ var fn = X(560), jt = {};
3489
+ jt.setAttributes = nt(), jt.insert = (n) => {
3490
3490
  window._hankoStyle = n;
3491
- }, $t.domAPI = tt(), $t.insertStyleElement = ot(), et()(fn.A, $t);
3491
+ }, jt.domAPI = tt(), jt.insertStyleElement = ot(), et()(fn.A, jt);
3492
3492
  const Qa = fn.A && fn.A.locals ? fn.A.locals : void 0, Ga = ({ children: n, text: e }) => {
3493
3493
  const { t } = (0, y.useContext)(Z.TranslateContext), [o, i] = (0, y.useState)(!1);
3494
3494
  return a("section", Object.assign({ className: zt.clipboardContainer }, { children: [a("div", { children: [n, " "] }), a("div", Object.assign({ className: zt.clipboardIcon, onClick: (r) => {
@@ -3500,7 +3500,7 @@ const Qa = fn.A && fn.A.locals ? fn.A.locals : void 0, Ga = ({ children: n, text
3500
3500
  console.error("Failed to copy: ", u);
3501
3501
  }
3502
3502
  }, new ((d = void 0) || (d = Promise))(function(u, h) {
3503
- function g(P) {
3503
+ function f(P) {
3504
3504
  try {
3505
3505
  x(l.next(P));
3506
3506
  } catch (A) {
@@ -3518,7 +3518,7 @@ const Qa = fn.A && fn.A.locals ? fn.A.locals : void 0, Ga = ({ children: n, text
3518
3518
  var A;
3519
3519
  P.done ? u(P.value) : (A = P.value, A instanceof d ? A : new d(function(S) {
3520
3520
  S(A);
3521
- })).then(g, m);
3521
+ })).then(f, m);
3522
3522
  }
3523
3523
  x((l = l.apply(s, c || [])).next());
3524
3524
  });
@@ -3687,19 +3687,19 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3687
3687
  }
3688
3688
  return L;
3689
3689
  }(n, ["lang", "experimental", "prefilledEmail", "prefilledUsername", "globalOptions", "createWebauthnAbortSignal"]);
3690
- const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: g, fallbackLanguage: m } = r;
3690
+ const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: f, fallbackLanguage: m } = r;
3691
3691
  d.setLang((e == null ? void 0 : e.toString()) || m);
3692
- const x = (0, y.useRef)(null), P = (0, y.useMemo)(() => `${r.storageKey}_last_login`, [r.storageKey]), [A, S] = (0, y.useState)(c.componentName), O = (0, y.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), $ = (0, y.useMemo)(() => a(Ca, {}), []), [T, N] = (0, y.useState)($), [, ae] = (0, y.useState)(d), [ke, se] = (0, y.useState)(), [Se, M] = (0, y.useState)({ email: o, username: i }), H = (0, y.useCallback)((p) => {
3692
+ const x = (0, y.useRef)(null), P = (0, y.useMemo)(() => `${r.storageKey}_last_login`, [r.storageKey]), [A, S] = (0, y.useState)(c.componentName), O = (0, y.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), j = (0, y.useMemo)(() => a(Ca, {}), []), [U, N] = (0, y.useState)(j), [, ae] = (0, y.useState)(d), [ke, se] = (0, y.useState)(), [Se, M] = (0, y.useState)({ email: o, username: i }), H = (0, y.useCallback)((p) => {
3693
3693
  M((_) => Object.assign(Object.assign({}, _), { loadingAction: p, succeededAction: null, error: null, lastAction: p || _.lastAction }));
3694
3694
  }, []), ye = (0, y.useCallback)((p) => {
3695
3695
  M((_) => Object.assign(Object.assign({}, _), { succeededAction: p, loadingAction: null }));
3696
- }, []), Te = (0, y.useCallback)(() => {
3696
+ }, []), Ue = (0, y.useCallback)(() => {
3697
3697
  M((p) => Object.assign(Object.assign({}, p), { succeededAction: p.lastAction, loadingAction: null, error: null }));
3698
3698
  }, []), Ie = (0, y.useMemo)(() => !!Se.loadingAction || !!Se.succeededAction, [Se]), Ne = function(p, _) {
3699
3699
  var L;
3700
3700
  (L = x.current) === null || L === void 0 || L.dispatchEvent(new CustomEvent(p, { detail: _, bubbles: !1, composed: !0 }));
3701
3701
  }, le = (p) => {
3702
- H(null), N(a(ei, { error: p instanceof Ce ? p : new je(p) }));
3702
+ H(null), N(a(ei, { error: p instanceof Ce ? p : new $e(p) }));
3703
3703
  }, ce = (0, y.useMemo)(() => ({ onError: (p) => {
3704
3704
  le(p);
3705
3705
  }, preflight(p) {
@@ -3745,7 +3745,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3745
3745
  H(null), yield d.flow.run(L, ce);
3746
3746
  });
3747
3747
  }, onboarding_create_passkey(p) {
3748
- N(a($a, { state: p }));
3748
+ N(a(ja, { state: p }));
3749
3749
  }, onboarding_verify_passkey_attestation(p) {
3750
3750
  return Ke(this, void 0, void 0, function* () {
3751
3751
  let _;
@@ -3771,7 +3771,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3771
3771
  yield d.flow.run(L, ce);
3772
3772
  });
3773
3773
  }, login_password(p) {
3774
- N(a(ja, { state: p }));
3774
+ N(a($a, { state: p }));
3775
3775
  }, login_password_recovery(p) {
3776
3776
  N(a(La, { state: p }));
3777
3777
  }, login_security_key(p) {
@@ -3791,16 +3791,16 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3791
3791
  N(a(ts, { state: p }));
3792
3792
  });
3793
3793
  }, login_method_chooser(p) {
3794
- N(a(Ua, { state: p }));
3795
- }, registration_init(p) {
3796
3794
  N(a(Ta, { state: p }));
3795
+ }, registration_init(p) {
3796
+ N(a(Ua, { state: p }));
3797
3797
  }, password_creation(p) {
3798
3798
  N(a(Na, { state: p }));
3799
3799
  }, success(p) {
3800
3800
  var _;
3801
3801
  !((_ = p.payload) === null || _ === void 0) && _.last_login && localStorage.setItem(P, JSON.stringify(p.payload.last_login));
3802
3802
  const { claims: L } = p.payload, K = Date.parse(L.expiration) - Date.now();
3803
- d.relay.dispatchSessionCreatedEvent({ claims: L, expirationSeconds: K }), Te();
3803
+ d.relay.dispatchSessionCreatedEvent({ claims: L, expirationSeconds: K }), Ue();
3804
3804
  }, profile_init(p) {
3805
3805
  N(a(Fa, { state: p, enablePasskeys: r.enablePasskeys }));
3806
3806
  }, thirdparty(p) {
@@ -3825,7 +3825,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3825
3825
  });
3826
3826
  }, device_trust(p) {
3827
3827
  N(a(ns, { state: p }));
3828
- } }), [r.enablePasskeys, d, Te, H]), me = (0, y.useCallback)((p) => Ke(void 0, void 0, void 0, function* () {
3828
+ } }), [r.enablePasskeys, d, Ue, H]), me = (0, y.useCallback)((p) => Ke(void 0, void 0, void 0, function* () {
3829
3829
  H("switch-flow");
3830
3830
  const _ = localStorage.getItem(P);
3831
3831
  _ && se(JSON.parse(_));
@@ -3861,7 +3861,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3861
3861
  ["auth", "login", "registration"].includes(A) ? (d.onUserLoggedOut(p), d.onSessionExpired(p), d.onUserDeleted(p)) : A === "profile" && d.onSessionCreated(p);
3862
3862
  }, []);
3863
3863
  const k = ft.supported();
3864
- return a(pe.Provider, Object.assign({ value: { init: De, initialComponentName: c.componentName, isDisabled: Ie, setUIState: M, setLoadingAction: H, setSucceededAction: ye, uiState: Se, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: O, hidePasskeyButtonOnLogin: u, page: T, setPage: N, stateHandler: ce, lastLogin: ke } }, { children: a(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: g }, { children: a(sa, Object.assign({ ref: x }, { children: A !== "events" ? a(C.Fragment, { children: [l ? a("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, T] }) : null })) })) }));
3864
+ return a(pe.Provider, Object.assign({ value: { init: De, initialComponentName: c.componentName, isDisabled: Ie, setUIState: M, setLoadingAction: H, setSucceededAction: ye, uiState: Se, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: O, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: ce, lastLogin: ke } }, { children: a(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: f }, { children: a(sa, Object.assign({ ref: x }, { children: A !== "events" ? a(C.Fragment, { children: [l ? a("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
3865
3865
  }, is = { en: X(6).en };
3866
3866
  var zi = function(n, e, t, o) {
3867
3867
  return new (t || (t = Promise))(function(i, r) {
@@ -3890,7 +3890,7 @@ var zi = function(n, e, t, o) {
3890
3890
  };
3891
3891
  const Ge = {}, Kt = (n, e) => a(os, Object.assign({ componentName: n, globalOptions: Ge, createWebauthnAbortSignal: ds }, e)), rs = (n) => Kt("auth", n), as = (n) => Kt("login", n), ss = (n) => Kt("registration", n), ls = (n) => Kt("profile", n), cs = (n) => Kt("events", n);
3892
3892
  let on = new AbortController();
3893
- const ds = () => (on && on.abort(), on = new AbortController(), on.signal), jt = ({ tagName: n, entryComponent: e, shadow: t = !0, observedAttributes: o }) => zi(void 0, void 0, void 0, function* () {
3893
+ const ds = () => (on && on.abort(), on = new AbortController(), on.signal), $t = ({ tagName: n, entryComponent: e, shadow: t = !0, observedAttributes: o }) => zi(void 0, void 0, void 0, function* () {
3894
3894
  customElements.get(n) || function(i, r, s, c) {
3895
3895
  function d() {
3896
3896
  var l = Reflect.construct(HTMLElement, [], d);
@@ -3898,8 +3898,8 @@ const ds = () => (on && on.abort(), on = new AbortController(), on.signal), jt =
3898
3898
  }
3899
3899
  (d.prototype = Object.create(HTMLElement.prototype)).constructor = d, d.prototype.connectedCallback = Sr, d.prototype.attributeChangedCallback = xr, d.prototype.disconnectedCallback = Ar, s = s || i.observedAttributes || Object.keys(i.propTypes || {}), d.observedAttributes = s, s.forEach(function(l) {
3900
3900
  Object.defineProperty(d.prototype, l, { get: function() {
3901
- var u, h, g, m;
3902
- return (u = (h = this._vdom) == null || (g = h.props) == null ? void 0 : g[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3901
+ var u, h, f, m;
3902
+ return (u = (h = this._vdom) == null || (f = h.props) == null ? void 0 : f[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3903
3903
  }, set: function(u) {
3904
3904
  this._vdom ? this.attributeChangedCallback(l, null, u) : (this._props || (this._props = {}), this._props[l] = u, this.connectedCallback());
3905
3905
  var h = typeof u;
@@ -3909,9 +3909,9 @@ const ds = () => (on && on.abort(), on = new AbortController(), on.signal), jt =
3909
3909
  }(e, n, o, { shadow: t });
3910
3910
  }), us = (n, e = {}) => zi(void 0, void 0, void 0, function* () {
3911
3911
  const t = ["api", "lang", "experimental", "prefilled-email", "entry"];
3912
- return e = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, e), Ge.hanko = new Mi(n, { cookieName: e.storageKey, cookieDomain: e.cookieDomain, cookieSameSite: e.cookieSameSite, localStorageKey: e.storageKey, sessionCheckInterval: e.sessionCheckInterval, sessionTokenLocation: e.sessionTokenLocation }), Ge.injectStyles = e.injectStyles, Ge.enablePasskeys = e.enablePasskeys, Ge.hidePasskeyButtonOnLogin = e.hidePasskeyButtonOnLogin, Ge.translations = e.translations || is, Ge.translationsLocation = e.translationsLocation, Ge.fallbackLanguage = e.fallbackLanguage, Ge.storageKey = e.storageKey, yield Promise.all([jt(Object.assign(Object.assign({}, e), { tagName: "hanko-auth", entryComponent: rs, observedAttributes: t })), jt(Object.assign(Object.assign({}, e), { tagName: "hanko-login", entryComponent: as, observedAttributes: t })), jt(Object.assign(Object.assign({}, e), { tagName: "hanko-registration", entryComponent: ss, observedAttributes: t })), jt(Object.assign(Object.assign({}, e), { tagName: "hanko-profile", entryComponent: ls, observedAttributes: t.filter((o) => ["api", "lang"].includes(o)) })), jt(Object.assign(Object.assign({}, e), { tagName: "hanko-events", entryComponent: cs, observedAttributes: [] }))]), { hanko: Ge.hanko };
3912
+ return e = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, e), Ge.hanko = new Mi(n, { cookieName: e.storageKey, cookieDomain: e.cookieDomain, cookieSameSite: e.cookieSameSite, localStorageKey: e.storageKey, sessionCheckInterval: e.sessionCheckInterval, sessionTokenLocation: e.sessionTokenLocation }), Ge.injectStyles = e.injectStyles, Ge.enablePasskeys = e.enablePasskeys, Ge.hidePasskeyButtonOnLogin = e.hidePasskeyButtonOnLogin, Ge.translations = e.translations || is, Ge.translationsLocation = e.translationsLocation, Ge.fallbackLanguage = e.fallbackLanguage, Ge.storageKey = e.storageKey, yield Promise.all([$t(Object.assign(Object.assign({}, e), { tagName: "hanko-auth", entryComponent: rs, observedAttributes: t })), $t(Object.assign(Object.assign({}, e), { tagName: "hanko-login", entryComponent: as, observedAttributes: t })), $t(Object.assign(Object.assign({}, e), { tagName: "hanko-registration", entryComponent: ss, observedAttributes: t })), $t(Object.assign(Object.assign({}, e), { tagName: "hanko-profile", entryComponent: ls, observedAttributes: t.filter((o) => ["api", "lang"].includes(o)) })), $t(Object.assign(Object.assign({}, e), { tagName: "hanko-events", entryComponent: cs, observedAttributes: [] }))]), { hanko: Ge.hanko };
3913
3913
  });
3914
- var hs = re.fK, ps = re.tJ, ms = re.Z7, fs = re.Q9, gs = re.Lv, vs = re.qQ, ys = re.I4, _s = re.O8, bs = re.ku, ks = re.ls, ws = re.bO, Ss = re.yv, xs = re.AT, As = re.m_, Cs = re.KG, Ps = re.DH, Os = re.kf, Es = re.oY, Is = re.xg, Ds = re.Wg, $s = re.J, js = re.AC, Ls = re.D_, Us = re.jx, Ts = re.nX, Ns = re.Nx, Ms = re.Sd, Hi = re.kz, Rs = re.fX, qs = re.qA, zs = re.tz, Hs = re.gN;
3914
+ var hs = re.fK, ps = re.tJ, ms = re.Z7, fs = re.Q9, gs = re.Lv, vs = re.qQ, ys = re.I4, _s = re.O8, bs = re.ku, ks = re.ls, ws = re.bO, Ss = re.yv, xs = re.AT, As = re.m_, Cs = re.KG, Ps = re.DH, Os = re.kf, Es = re.oY, Is = re.xg, Ds = re.Wg, js = re.J, $s = re.AC, Ls = re.D_, Ts = re.jx, Us = re.nX, Ns = re.Nx, Ms = re.Sd, Hi = re.kz, Rs = re.fX, qs = re.qA, zs = re.tz, Hs = re.gN;
3915
3915
  const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3916
3916
  __proto__: null,
3917
3917
  ConflictError: hs,
@@ -3934,11 +3934,11 @@ const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3934
3934
  TechnicalError: Es,
3935
3935
  ThirdPartyClient: Is,
3936
3936
  ThirdPartyError: Ds,
3937
- TokenClient: $s,
3938
- TooManyRequestsError: js,
3937
+ TokenClient: js,
3938
+ TooManyRequestsError: $s,
3939
3939
  UnauthorizedError: Ls,
3940
- UserClient: Us,
3941
- UserVerificationError: Ts,
3940
+ UserClient: Ts,
3941
+ UserVerificationError: Us,
3942
3942
  WebauthnRequestCancelledError: Ns,
3943
3943
  WebauthnSupport: Ms,
3944
3944
  register: Hi,
@@ -5140,15 +5140,15 @@ let ie = class extends Mt {
5140
5140
  constructor() {
5141
5141
  super(), this.hankoUrlAttr = "", this.basePath = "", this.authPath = "/api/auth/osm", this.osmRequired = !1, this.osmScopes = "read_prefs", this.showProfile = !1, this.redirectAfterLogin = "", this.autoConnect = !1, this.verifySession = !1, this.redirectAfterLogout = "", this.displayNameAttr = "", this.mappingCheckUrl = "", this.appId = "", this.loginUrl = "", this.lang = "en", this.buttonVariant = "plain", this.buttonColor = "primary", this.display = "default", this.user = null, this.osmConnected = !1, this.osmData = null, this.osmLoading = !1, this.loading = !0, this.error = null, this.hankoReady = !1, this.profileDisplayName = "", this.profilePictureUrl = "", this.hasAppMapping = !1, this.userProfileLanguage = null, this.isOpen = !1, this.handleOutsideClick = (n) => {
5142
5142
  this.contains(n.target) || this.closeDropdown();
5143
- }, this._trailingSlashCache = {}, this._debugMode = !1, this._lastSessionId = null, this._hanko = null, this._isPrimary = !1, this._handleVisibilityChange = () => {
5143
+ }, this._debugMode = !1, this._lastSessionId = null, this._hanko = null, this._isPrimary = !1, this._handleVisibilityChange = () => {
5144
5144
  this._isPrimary && !document.hidden && !this.showProfile && !this.user && (this.log("Page visible, re-checking session..."), this.checkSession());
5145
5145
  }, this._handleWindowFocus = () => {
5146
- this._isPrimary && !this.showProfile && !this.user && (this.log("🎯 Window focused, re-checking session..."), this.checkSession());
5146
+ this._isPrimary && !this.showProfile && !this.user && (this.log("Window focused, re-checking session..."), this.checkSession());
5147
5147
  }, this._handleExternalLogin = (n) => {
5148
5148
  var t;
5149
5149
  if (!this._isPrimary) return;
5150
5150
  const e = n;
5151
- !this.showProfile && !this.user && ((t = e.detail) != null && t.user) && (this.log("🔔 External login detected, updating user state..."), this.user = e.detail.user, this._broadcastState(), this.osmRequired && this.checkOSMConnection());
5151
+ !this.showProfile && !this.user && ((t = e.detail) != null && t.user) && (this.log("External login detected, updating user state..."), this.user = e.detail.user, this._broadcastState(), this.osmRequired && this.checkOSMConnection());
5152
5152
  }, this._currentHankoAuthElement = null;
5153
5153
  try {
5154
5154
  const n = localStorage.getItem("hotosm-auth-user");
@@ -5205,22 +5205,22 @@ let ie = class extends Mt {
5205
5205
  if (n) {
5206
5206
  const t = n.getAttribute("content");
5207
5207
  if (t)
5208
- return this.log("🔍 hanko-url auto-detected from <meta> tag:", t), t;
5208
+ return this.log("hanko-url auto-detected from <meta> tag:", t), t;
5209
5209
  }
5210
5210
  if (window.HANKO_URL)
5211
5211
  return this.log(
5212
- "🔍 hanko-url auto-detected from window.HANKO_URL:",
5212
+ "hanko-url auto-detected from window.HANKO_URL:",
5213
5213
  window.HANKO_URL
5214
5214
  ), window.HANKO_URL;
5215
5215
  const e = window.location.origin;
5216
- return this.log("🔍 hanko-url auto-detected from window.location.origin:", e), e;
5216
+ return this.log("hanko-url auto-detected from window.location.origin:", e), e;
5217
5217
  }
5218
5218
  connectedCallback() {
5219
- super.connectedCallback(), this._debugMode = this._checkDebugMode(), this.log("🔌 hanko-auth connectedCallback called"), this.injectHotStyles(), Y.instances.add(this), document.addEventListener("visibilitychange", this._handleVisibilityChange), window.addEventListener("focus", this._handleWindowFocus), document.addEventListener("hanko-login", this._handleExternalLogin);
5219
+ super.connectedCallback(), this._debugMode = this._checkDebugMode(), this.log("hanko-auth connectedCallback called"), this.injectHotStyles(), Y.instances.add(this), document.addEventListener("visibilitychange", this._handleVisibilityChange), window.addEventListener("focus", this._handleWindowFocus), document.addEventListener("hanko-login", this._handleExternalLogin);
5220
5220
  }
5221
5221
  // Use firstUpdated instead of connectedCallback to ensure React props are set
5222
5222
  firstUpdated() {
5223
- this.log("🔌 hanko-auth firstUpdated called"), this.log(" hankoUrl:", this.hankoUrl), this.log(" basePath:", this.basePath), Y.initialized || Y.primary ? (this.log("Using shared state from primary instance"), this._syncFromShared(), this._isPrimary = !1) : (this.log("This is the primary instance"), this._isPrimary = !0, Y.primary = this, Y.initialized = !0, this.init());
5223
+ this.log("hanko-auth firstUpdated called"), this.log(" hankoUrl:", this.hankoUrl), this.log(" basePath:", this.basePath), Y.initialized || Y.primary ? (this.log("Using shared state from primary instance"), this._syncFromShared(), this._isPrimary = !1) : (this.log("This is the primary instance"), this._isPrimary = !0, Y.primary = this, Y.initialized = !0, this.init());
5224
5224
  }
5225
5225
  disconnectedCallback() {
5226
5226
  if (super.disconnectedCallback(), document.removeEventListener(
@@ -5259,18 +5259,11 @@ let ie = class extends Mt {
5259
5259
  const e = this.user && this.userProfileLanguage ? this.userProfileLanguage : this.lang;
5260
5260
  return (Vn[e] || Vn.en)[n] || Vn.en[n] || n;
5261
5261
  }
5262
- warn(...n) {
5263
- console.warn(...n);
5264
- }
5265
5262
  logError(...n) {
5266
5263
  console.error(...n);
5267
5264
  }
5268
5265
  getBasePath() {
5269
- return this.basePath ? (this.log("🔍 getBasePath() using basePath:", this.basePath), this.basePath) : (this.log("🔍 getBasePath() using default: empty string"), "");
5270
- }
5271
- addTrailingSlash(n, e) {
5272
- const t = this._trailingSlashCache[e];
5273
- return t !== void 0 && t && !n.endsWith("/") ? n + "/" : n;
5266
+ return this.basePath ? (this.log("getBasePath() using basePath:", this.basePath), this.basePath) : (this.log("getBasePath() using default: empty string"), "");
5274
5267
  }
5275
5268
  // styles injected to ensure global availability
5276
5269
  injectHotStyles() {
@@ -5292,7 +5285,7 @@ let ie = class extends Mt {
5292
5285
  }
5293
5286
  async init() {
5294
5287
  if (!this._isPrimary) {
5295
- this.log("⏭️ Not primary, skipping init...");
5288
+ this.log("Not primary, skipping init...");
5296
5289
  return;
5297
5290
  }
5298
5291
  try {
@@ -5305,23 +5298,24 @@ let ie = class extends Mt {
5305
5298
  cookieSameSite: "lax"
5306
5299
  };
5307
5300
  this._hanko = new n(this.hankoUrl, r), Y.hanko = this._hanko, this._hanko.onSessionExpired(() => {
5308
- this.log("🕒 Hanko session expired event received"), this.handleSessionExpired();
5301
+ this.log("Hanko session expired event received"), this.handleSessionExpired();
5309
5302
  }), this._hanko.onUserLoggedOut(() => {
5310
- this.log("🚪 Hanko user logged out event received"), this.handleUserLoggedOut();
5303
+ this.log("Hanko user logged out event received"), this.handleUserLoggedOut();
5311
5304
  }), await this.checkSession(), this.user && (this.osmRequired && await this.checkOSMConnection(), await this.fetchProfileDisplayName()), this.loading = !1, this._broadcastState(), this.setupEventListeners();
5312
5305
  } catch (n) {
5313
5306
  this.logError("Failed to initialize hanko-auth:", n), this.error = n.message, this.loading = !1, this._broadcastState();
5314
5307
  }
5315
5308
  }
5316
5309
  async checkSession() {
5317
- if (this.log("🔍 Checking for existing Hanko session..."), !this._hanko) {
5310
+ var n, e, t, o, i;
5311
+ if (this.log("Checking for existing Hanko session..."), !this._hanko) {
5318
5312
  this.log("Hanko instance not initialized yet");
5319
5313
  return;
5320
5314
  }
5321
5315
  try {
5322
5316
  this.log("Checking session validity via cookie...");
5323
5317
  try {
5324
- const n = await fetch(
5318
+ const r = await fetch(
5325
5319
  `${this.hankoUrl}/sessions/validate`,
5326
5320
  {
5327
5321
  method: "GET",
@@ -5332,17 +5326,19 @@ let ie = class extends Mt {
5332
5326
  }
5333
5327
  }
5334
5328
  );
5335
- if (n.ok) {
5336
- const e = await n.json();
5337
- if (e.is_valid === !1) {
5329
+ if (r.ok) {
5330
+ const s = await r.json();
5331
+ if (s.is_valid === !1) {
5338
5332
  this.log(
5339
5333
  "Session validation returned is_valid:false - no valid session"
5340
- );
5334
+ ), this.user && (this.user = null, this.profilePictureUrl = "", this.dispatchEvent(
5335
+ new CustomEvent("logout", { bubbles: !0, composed: !0 })
5336
+ ));
5341
5337
  return;
5342
5338
  }
5343
- this.log("Valid Hanko session found via cookie"), this.log("Session data:", e);
5339
+ this.log("Valid Hanko session found via cookie"), this.log("Session data:", s);
5344
5340
  try {
5345
- const t = await fetch(`${this.hankoUrl}/me`, {
5341
+ const c = await fetch(`${this.hankoUrl}/me`, {
5346
5342
  method: "GET",
5347
5343
  credentials: "include",
5348
5344
  // Include httpOnly cookies
@@ -5350,40 +5346,40 @@ let ie = class extends Mt {
5350
5346
  "Content-Type": "application/json"
5351
5347
  }
5352
5348
  });
5353
- let o = !0;
5354
- if (t.ok) {
5355
- const i = await t.json();
5356
- this.log("User data retrieved from /me:", i), i.email ? (this.user = {
5357
- id: i.user_id || i.id,
5358
- email: i.email,
5359
- username: i.username || null,
5360
- emailVerified: i.email_verified || i.verified || !1
5361
- }, o = !1) : this.log("/me has no email, will use SDK fallback");
5349
+ let d = !0;
5350
+ if (c.ok) {
5351
+ const l = await c.json();
5352
+ this.log("User data retrieved from /me:", l), l.email ? (this.user = {
5353
+ id: l.user_id || l.id,
5354
+ email: l.email,
5355
+ username: l.username || null,
5356
+ emailVerified: l.email_verified || l.verified || !1
5357
+ }, d = !1) : this.log("/me has no email, will use SDK fallback");
5362
5358
  }
5363
- if (o) {
5359
+ if (d) {
5364
5360
  this.log("Using SDK to get user with email");
5365
- const i = await this._hanko.user.getCurrent();
5361
+ const l = await this._hanko.getCurrentUser();
5366
5362
  this.user = {
5367
- id: i.id,
5368
- email: i.email,
5369
- username: i.username,
5370
- emailVerified: i.email_verified || !1
5363
+ id: l.user_id,
5364
+ email: ((e = (n = l.emails) == null ? void 0 : n[0]) == null ? void 0 : e.address) || null,
5365
+ username: ((t = l.username) == null ? void 0 : t.username) || null,
5366
+ emailVerified: ((i = (o = l.emails) == null ? void 0 : o[0]) == null ? void 0 : i.is_verified) || !1
5371
5367
  };
5372
5368
  }
5373
- } catch (t) {
5374
- this.log("Failed to get user data:", t), e.user_id && (this.user = {
5375
- id: e.user_id,
5376
- email: e.email || null,
5369
+ } catch (c) {
5370
+ this.log("Failed to get user data:", c), s.user_id && (this.user = {
5371
+ id: s.user_id,
5372
+ email: s.email || null,
5377
5373
  username: null,
5378
5374
  emailVerified: !1
5379
5375
  });
5380
5376
  }
5381
5377
  if (this.user) {
5382
- const t = li(window.location.hostname), o = sessionStorage.getItem(t);
5383
- if (this.verifySession && this.redirectAfterLogin && !o) {
5378
+ const c = li(window.location.hostname), d = sessionStorage.getItem(c);
5379
+ if (this.verifySession && this.redirectAfterLogin && !d) {
5384
5380
  this.log(
5385
5381
  "verify-session enabled, redirecting to callback for app verification..."
5386
- ), sessionStorage.setItem(t, "true"), window.location.href = this.redirectAfterLogin;
5382
+ ), sessionStorage.setItem(c, "true"), window.location.href = this.redirectAfterLogin;
5387
5383
  return;
5388
5384
  }
5389
5385
  if (!await this.checkAppMapping())
@@ -5403,11 +5399,11 @@ let ie = class extends Mt {
5403
5399
  }
5404
5400
  } else
5405
5401
  this.log("No valid session cookie found - user needs to login");
5406
- } catch (n) {
5407
- this.log("Session validation failed:", n), this.log("No valid session - user needs to login");
5402
+ } catch (r) {
5403
+ this.log("Session validation failed:", r), this.log("No valid session - user needs to login");
5408
5404
  }
5409
- } catch (n) {
5410
- this.log("Session check error:", n), this.log("No existing session - user needs to login");
5405
+ } catch (r) {
5406
+ this.log("Session check error:", r), this.log("No existing session - user needs to login");
5411
5407
  } finally {
5412
5408
  this._isPrimary && this._broadcastState();
5413
5409
  }
@@ -5498,15 +5494,15 @@ let ie = class extends Mt {
5498
5494
  if (e.ok) {
5499
5495
  const t = await e.json();
5500
5496
  this.log("Profile data:", t), (t.first_name || t.last_name) && (this.profileDisplayName = `${t.first_name || ""} ${t.last_name || ""}`.trim(), this.log("Display name set to:", this.profileDisplayName));
5501
- const o = t.picture_url || t.osm_avatar_url;
5502
- o && (this.profilePictureUrl = o, this.log("Profile picture set to:", this.profilePictureUrl)), t.language && (this.userProfileLanguage = t.language, this.log("Language set from profile:", this.userProfileLanguage));
5497
+ const o = t.osm_avatar_url || t.picture_url;
5498
+ this.profilePictureUrl = o || "", this.log("Profile picture set to:", this.profilePictureUrl), t.language && (this.userProfileLanguage = t.language, this.log("Language set from profile:", this.userProfileLanguage));
5503
5499
  }
5504
5500
  } catch (n) {
5505
5501
  this.log("Could not fetch profile:", n);
5506
5502
  }
5507
5503
  }
5508
5504
  updated(n) {
5509
- super.updated(n), n.has("user") && this.user === null && this.showProfile && (this.log("🔄 User logged out, re-attaching event listeners..."), this._currentHankoAuthElement = null, this.setupEventListeners());
5505
+ super.updated(n), n.has("user") && this.user === null && this.showProfile && (this.log("User logged out, re-attaching event listeners..."), this._currentHankoAuthElement = null, this.setupEventListeners());
5510
5506
  }
5511
5507
  setupEventListeners() {
5512
5508
  this.updateComplete.then(() => {
@@ -5516,7 +5512,7 @@ let ie = class extends Mt {
5516
5512
  this.log("Event listeners already attached to this element");
5517
5513
  return;
5518
5514
  }
5519
- n && (this._currentHankoAuthElement = n, this.log("🎯 Attaching event listeners to hanko-auth element"), n.addEventListener("onSessionCreated", (t) => {
5515
+ n && (this._currentHankoAuthElement = n, this.log("Attaching event listeners to hanko-auth element"), n.addEventListener("onSessionCreated", (t) => {
5520
5516
  var i, r;
5521
5517
  this.log("Hanko event: onSessionCreated", t.detail);
5522
5518
  const o = (r = (i = t.detail) == null ? void 0 : i.claims) == null ? void 0 : r.session_id;
@@ -5532,72 +5528,72 @@ let ie = class extends Mt {
5532
5528
  });
5533
5529
  }
5534
5530
  async handleHankoSuccess(n) {
5535
- var o;
5531
+ var o, i, r, s, c, d;
5536
5532
  if (this.log("Hanko auth success:", n.detail), !this._hanko) {
5537
5533
  this.logError("Hanko instance not initialized");
5538
5534
  return;
5539
5535
  }
5540
5536
  let e = !1;
5541
5537
  try {
5542
- const i = new AbortController(), r = setTimeout(() => i.abort(), 5e3), s = await fetch(`${this.hankoUrl}/me`, {
5538
+ const l = new AbortController(), u = setTimeout(() => l.abort(), 5e3), h = await fetch(`${this.hankoUrl}/me`, {
5543
5539
  method: "GET",
5544
5540
  credentials: "include",
5545
5541
  // Include httpOnly cookies
5546
5542
  headers: {
5547
5543
  "Content-Type": "application/json"
5548
5544
  },
5549
- signal: i.signal
5545
+ signal: l.signal
5550
5546
  });
5551
- if (clearTimeout(r), s.ok) {
5552
- const c = await s.json();
5553
- this.log("User data retrieved from /me:", c), c.email ? (this.user = {
5554
- id: c.user_id || c.id,
5555
- email: c.email,
5556
- username: c.username || null,
5557
- emailVerified: c.email_verified || c.verified || !1
5547
+ if (clearTimeout(u), h.ok) {
5548
+ const f = await h.json();
5549
+ this.log("User data retrieved from /me:", f), f.email ? (this.user = {
5550
+ id: f.user_id || f.id,
5551
+ email: f.email,
5552
+ username: f.username || null,
5553
+ emailVerified: f.email_verified || f.verified || !1
5558
5554
  }, e = !0) : this.log("/me has no email, will try SDK fallback");
5559
5555
  } else
5560
5556
  this.log("/me endpoint returned non-OK status, will try SDK fallback");
5561
- } catch (i) {
5557
+ } catch (l) {
5562
5558
  this.log(
5563
5559
  "/me endpoint fetch failed (timeout or cross-origin TLS issue):",
5564
- i
5560
+ l
5565
5561
  );
5566
5562
  }
5567
5563
  if (!e)
5568
5564
  try {
5569
5565
  this.log("Trying SDK fallback for user info...");
5570
- const i = new Promise(
5571
- (s, c) => setTimeout(() => c(new Error("SDK timeout")), 5e3)
5572
- ), r = await Promise.race([
5573
- this._hanko.user.getCurrent(),
5574
- i
5566
+ const l = new Promise(
5567
+ (h, f) => setTimeout(() => f(new Error("SDK timeout")), 5e3)
5568
+ ), u = await Promise.race([
5569
+ this._hanko.getCurrentUser(),
5570
+ l
5575
5571
  ]);
5576
5572
  this.user = {
5577
- id: r.id,
5578
- email: r.email,
5579
- username: r.username,
5580
- emailVerified: r.email_verified || !1
5573
+ id: u.user_id,
5574
+ email: ((i = (o = u.emails) == null ? void 0 : o[0]) == null ? void 0 : i.address) || null,
5575
+ username: ((r = u.username) == null ? void 0 : r.username) || null,
5576
+ emailVerified: ((c = (s = u.emails) == null ? void 0 : s[0]) == null ? void 0 : c.is_verified) || !1
5581
5577
  }, e = !0, this.log("User info retrieved via SDK fallback");
5582
- } catch (i) {
5583
- this.log("SDK fallback failed, trying JWT claims:", i);
5578
+ } catch (l) {
5579
+ this.log("SDK fallback failed, trying JWT claims:", l);
5584
5580
  try {
5585
- const r = (o = n.detail) == null ? void 0 : o.claims;
5586
- if (r != null && r.sub)
5581
+ const u = (d = n.detail) == null ? void 0 : d.claims;
5582
+ if (u != null && u.sub)
5587
5583
  this.user = {
5588
- id: r.sub,
5589
- email: r.email || null,
5584
+ id: u.sub,
5585
+ email: u.email || null,
5590
5586
  username: null,
5591
- emailVerified: r.email_verified || !1
5587
+ emailVerified: u.email_verified || !1
5592
5588
  }, e = !0, this.log("User info extracted from JWT claims");
5593
5589
  else {
5594
5590
  this.logError("No user claims available in event"), this.user = null;
5595
5591
  return;
5596
5592
  }
5597
- } catch (r) {
5593
+ } catch (u) {
5598
5594
  this.logError(
5599
5595
  "Failed to extract user info from claims:",
5600
- r
5596
+ u
5601
5597
  ), this.user = null;
5602
5598
  return;
5603
5599
  }
@@ -5673,7 +5669,7 @@ let ie = class extends Mt {
5673
5669
  }
5674
5670
  if (this._hanko)
5675
5671
  try {
5676
- await this._hanko.user.logout(), this.log("Hanko logout successful");
5672
+ await this._hanko.logout(), this.log("Hanko logout successful");
5677
5673
  } catch (n) {
5678
5674
  this.logError("Hanko logout failed:", n);
5679
5675
  }
@@ -5745,25 +5741,10 @@ let ie = class extends Mt {
5745
5741
  } else t === "logout" && this.handleLogout();
5746
5742
  this.closeDropdown();
5747
5743
  }
5748
- oldHandleDropdownSelect(n) {
5749
- const e = n.detail.item.value;
5750
- if (this.log("🎯 Dropdown item selected:", e), e === "profile") {
5751
- const t = this.redirectAfterLogin || window.location.origin, o = this.loginUrl ? `${this.loginUrl}/profile` : `${this.hankoUrl}/app/profile`;
5752
- window.location.href = `${o}?return_to=${encodeURIComponent(t)}`;
5753
- } else if (e === "connect-osm") {
5754
- const i = window.location.pathname.includes("/app") ? window.location.origin : window.location.href, r = this.hankoUrl;
5755
- window.location.href = `${r}/app?return_to=${encodeURIComponent(
5756
- i
5757
- )}&osm_required=true`;
5758
- } else e === "logout" && this.handleLogout();
5759
- }
5760
- handleSkipOSM() {
5761
- this.dispatchEvent(new CustomEvent("osm-skipped")), this.dispatchEvent(new CustomEvent("auth-complete")), this.redirectAfterLogin && (window.location.href = this.redirectAfterLogin);
5762
- }
5763
5744
  render() {
5764
5745
  var n, e, t;
5765
5746
  if (this.log(
5766
- "🎨 RENDER - showProfile:",
5747
+ "RENDER - showProfile:",
5767
5748
  this.showProfile,
5768
5749
  "user:",
5769
5750
  !!this.user,
@@ -5990,14 +5971,14 @@ let ie = class extends Mt {
5990
5971
  )}
5991
5972
  </div>
5992
5973
  ` : (this.log(
5993
- "Waiting for Hanko registration before rendering form..."
5974
+ "Waiting for Hanko registration before rendering form..."
5994
5975
  ), _e`<span class="loading-placeholder"
5995
5976
  ><span class="loading-placeholder-text">${this.t("logIn")}</span
5996
5977
  ><span class="spinner-small"></span
5997
5978
  ></span>`);
5998
5979
  {
5999
5980
  const i = window.location.pathname.includes("/app"), r = this.redirectAfterLogin || (i ? window.location.origin : window.location.href), c = new URLSearchParams(window.location.search).get("auto_connect") === "true" ? "&auto_connect=true" : "", d = this.hankoUrl;
6000
- this.log("🔗 Login URL base:", d);
5981
+ this.log("Login URL base:", d);
6001
5982
  const u = `${this.loginUrl || `${d}/app`}?return_to=${encodeURIComponent(
6002
5983
  r
6003
5984
  )}${this.osmRequired ? "&osm_required=true" : ""}${c}&lang=${this.lang}`;
@@ -6015,58 +5996,58 @@ let ie = class extends Mt {
6015
5996
  };
6016
5997
  ie.styles = Fs;
6017
5998
  de([
6018
- Ue({ type: String, attribute: "hanko-url" })
5999
+ Te({ type: String, attribute: "hanko-url" })
6019
6000
  ], ie.prototype, "hankoUrlAttr", 2);
6020
6001
  de([
6021
- Ue({ type: String, attribute: "base-path" })
6002
+ Te({ type: String, attribute: "base-path" })
6022
6003
  ], ie.prototype, "basePath", 2);
6023
6004
  de([
6024
- Ue({ type: String, attribute: "auth-path" })
6005
+ Te({ type: String, attribute: "auth-path" })
6025
6006
  ], ie.prototype, "authPath", 2);
6026
6007
  de([
6027
- Ue({ type: Boolean, attribute: "osm-required" })
6008
+ Te({ type: Boolean, attribute: "osm-required" })
6028
6009
  ], ie.prototype, "osmRequired", 2);
6029
6010
  de([
6030
- Ue({ type: String, attribute: "osm-scopes" })
6011
+ Te({ type: String, attribute: "osm-scopes" })
6031
6012
  ], ie.prototype, "osmScopes", 2);
6032
6013
  de([
6033
- Ue({ type: Boolean, attribute: "show-profile" })
6014
+ Te({ type: Boolean, attribute: "show-profile" })
6034
6015
  ], ie.prototype, "showProfile", 2);
6035
6016
  de([
6036
- Ue({ type: String, attribute: "redirect-after-login" })
6017
+ Te({ type: String, attribute: "redirect-after-login" })
6037
6018
  ], ie.prototype, "redirectAfterLogin", 2);
6038
6019
  de([
6039
- Ue({ type: Boolean, attribute: "auto-connect" })
6020
+ Te({ type: Boolean, attribute: "auto-connect" })
6040
6021
  ], ie.prototype, "autoConnect", 2);
6041
6022
  de([
6042
- Ue({ type: Boolean, attribute: "verify-session" })
6023
+ Te({ type: Boolean, attribute: "verify-session" })
6043
6024
  ], ie.prototype, "verifySession", 2);
6044
6025
  de([
6045
- Ue({ type: String, attribute: "redirect-after-logout" })
6026
+ Te({ type: String, attribute: "redirect-after-logout" })
6046
6027
  ], ie.prototype, "redirectAfterLogout", 2);
6047
6028
  de([
6048
- Ue({ type: String, attribute: "display-name" })
6029
+ Te({ type: String, attribute: "display-name" })
6049
6030
  ], ie.prototype, "displayNameAttr", 2);
6050
6031
  de([
6051
- Ue({ type: String, attribute: "mapping-check-url" })
6032
+ Te({ type: String, attribute: "mapping-check-url" })
6052
6033
  ], ie.prototype, "mappingCheckUrl", 2);
6053
6034
  de([
6054
- Ue({ type: String, attribute: "app-id" })
6035
+ Te({ type: String, attribute: "app-id" })
6055
6036
  ], ie.prototype, "appId", 2);
6056
6037
  de([
6057
- Ue({ type: String, attribute: "login-url" })
6038
+ Te({ type: String, attribute: "login-url" })
6058
6039
  ], ie.prototype, "loginUrl", 2);
6059
6040
  de([
6060
- Ue({ type: String, reflect: !0 })
6041
+ Te({ type: String, reflect: !0 })
6061
6042
  ], ie.prototype, "lang", 2);
6062
6043
  de([
6063
- Ue({ type: String, attribute: "button-variant" })
6044
+ Te({ type: String, attribute: "button-variant" })
6064
6045
  ], ie.prototype, "buttonVariant", 2);
6065
6046
  de([
6066
- Ue({ type: String, attribute: "button-color" })
6047
+ Te({ type: String, attribute: "button-color" })
6067
6048
  ], ie.prototype, "buttonColor", 2);
6068
6049
  de([
6069
- Ue({ type: String, reflect: !0 })
6050
+ Te({ type: String, reflect: !0 })
6070
6051
  ], ie.prototype, "display", 2);
6071
6052
  de([
6072
6053
  Ze()