authhero 0.259.0 → 0.261.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.
package/dist/authhero.mjs CHANGED
@@ -1480,7 +1480,7 @@ const It = o.object({
1480
1480
  email: o.string().optional(),
1481
1481
  login_count: o.number().default(0),
1482
1482
  identities: o.array(x1).optional()
1483
- }), _n = c0, BK = du.extend({
1483
+ }), mn = c0, BK = du.extend({
1484
1484
  login_count: o.number(),
1485
1485
  multifactor: o.array(o.string()).optional(),
1486
1486
  last_ip: o.string().optional(),
@@ -1876,12 +1876,12 @@ const P1 = o.object({
1876
1876
  created_at: !0,
1877
1877
  updated_at: !0
1878
1878
  });
1879
- var Ut = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(Ut || {}), an = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(an || {}), uu = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(uu || {});
1879
+ var Ht = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(Ht || {}), vn = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(vn || {}), uu = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(uu || {});
1880
1880
  const As = o.object({
1881
1881
  client_id: o.string(),
1882
1882
  act_as: o.string().optional(),
1883
- response_type: o.nativeEnum(Ut).optional(),
1884
- response_mode: o.nativeEnum(an).optional(),
1883
+ response_type: o.nativeEnum(Ht).optional(),
1884
+ response_mode: o.nativeEnum(vn).optional(),
1885
1885
  redirect_uri: o.string().optional(),
1886
1886
  audience: o.string().optional(),
1887
1887
  organization: o.string().optional(),
@@ -4900,10 +4900,19 @@ function Uw(t) {
4900
4900
  tenant_id: e,
4901
4901
  email: n.email
4902
4902
  });
4903
- return r ? (await t.users.create(e, {
4903
+ if (!r)
4904
+ return t.users.create(e, n);
4905
+ await t.users.create(e, {
4904
4906
  ...n,
4905
4907
  linked_to: r.user_id
4906
- }), r) : t.users.create(e, n);
4908
+ });
4909
+ const i = await t.users.get(
4910
+ e,
4911
+ r.user_id
4912
+ );
4913
+ if (!i)
4914
+ throw new Error("Failed to fetch primary user after linking");
4915
+ return i;
4907
4916
  };
4908
4917
  }
4909
4918
  function $e(t, e) {
@@ -7576,11 +7585,11 @@ async function M0(t, { user: e, client: n, loginSession: r }) {
7576
7585
  session_id: i.id
7577
7586
  }), i;
7578
7587
  }
7579
- async function dn(t, e) {
7588
+ async function cn(t, e) {
7580
7589
  var m, y;
7581
7590
  const { authParams: n, client: r, ticketAuth: i } = e;
7582
7591
  let { user: s } = e;
7583
- const a = n.response_type || Ut.CODE, l = n.response_mode || an.QUERY;
7592
+ const a = n.response_type || Ht.CODE, l = n.response_mode || vn.QUERY;
7584
7593
  if (i) {
7585
7594
  if (!e.loginSession)
7586
7595
  throw new te(500, {
@@ -7623,7 +7632,7 @@ async function dn(t, e) {
7623
7632
  loginSession: e.loginSession
7624
7633
  })).id;
7625
7634
  }
7626
- if (!c && ((y = n.scope) != null && y.split(" ").includes("offline_access")) && ![Ut.TOKEN, Ut.CODE].includes(
7635
+ if (!c && ((y = n.scope) != null && y.split(" ").includes("offline_access")) && ![Ht.TOKEN, Ht.CODE].includes(
7627
7636
  a
7628
7637
  ) && !e.impersonatingUser && (c = (await D0(t, {
7629
7638
  user: s,
@@ -7631,7 +7640,7 @@ async function dn(t, e) {
7631
7640
  session_id: d,
7632
7641
  scope: n.scope,
7633
7642
  audience: n.audience
7634
- })).id), l === an.SAML_POST) {
7643
+ })).id), l === vn.SAML_POST) {
7635
7644
  if (!d)
7636
7645
  throw new S(500, {
7637
7646
  message: "Session ID not available for SAML response"
@@ -7659,7 +7668,7 @@ async function dn(t, e) {
7659
7668
  });
7660
7669
  if (u instanceof Response)
7661
7670
  return u;
7662
- if (l === an.WEB_MESSAGE) {
7671
+ if (l === vn.WEB_MESSAGE) {
7663
7672
  if (!n.redirect_uri)
7664
7673
  throw new te(400, {
7665
7674
  message: "Redirect URI not allowed for WEB_MESSAGE response mode."
@@ -7724,7 +7733,7 @@ async function dn(t, e) {
7724
7733
  async function I2(t, e) {
7725
7734
  var l, c, d, u, f, h;
7726
7735
  let { user: n } = e;
7727
- const r = e.responseType || Ut.TOKEN;
7736
+ const r = e.responseType || Ht.TOKEN;
7728
7737
  if (n && e.organization && !(await t.env.data.userOrganizations.list(
7729
7738
  e.client.tenant.id,
7730
7739
  {
@@ -7805,7 +7814,7 @@ async function I2(t, e) {
7805
7814
  return m;
7806
7815
  n = m;
7807
7816
  }
7808
- if (r === Ut.CODE) {
7817
+ if (r === Ht.CODE) {
7809
7818
  if (!n || !e.loginSession)
7810
7819
  throw new te(500, {
7811
7820
  message: "User and loginSession is required for code flow"
@@ -7857,7 +7866,7 @@ async function _u(t, e, n, r) {
7857
7866
  client: s,
7858
7867
  authParams: {
7859
7868
  client_id: cf,
7860
- response_type: Ut.TOKEN,
7869
+ response_type: Ht.TOKEN,
7861
7870
  scope: n
7862
7871
  }
7863
7872
  });
@@ -8626,7 +8635,7 @@ function gt(t) {
8626
8635
  };
8627
8636
  }
8628
8637
  const ff = It.extend({
8629
- users: o.array(_n)
8638
+ users: o.array(mn)
8630
8639
  }), H2 = It.extend({
8631
8640
  sessions: o.array(pu)
8632
8641
  }), K2 = It.extend({
@@ -8652,7 +8661,7 @@ const ff = It.extend({
8652
8661
  content: {
8653
8662
  "application/json": {
8654
8663
  schema: o.union([
8655
- o.array(_n),
8664
+ o.array(mn),
8656
8665
  ff
8657
8666
  ])
8658
8667
  }
@@ -8682,7 +8691,7 @@ const ff = It.extend({
8682
8691
  throw new S(500, {
8683
8692
  message: "Primary account not found"
8684
8693
  });
8685
- return t.json([_n.parse(m)]);
8694
+ return t.json([mn.parse(m)]);
8686
8695
  }
8687
8696
  const a = ["-_exists_:linked_to"];
8688
8697
  s && a.push(s);
@@ -8700,7 +8709,7 @@ const ff = It.extend({
8700
8709
  start: l.start,
8701
8710
  limit: l.limit
8702
8711
  })
8703
- ) : t.json(o.array(_n).parse(c));
8712
+ ) : t.json(o.array(mn).parse(c));
8704
8713
  }
8705
8714
  ).openapi(
8706
8715
  I({
@@ -8724,7 +8733,7 @@ const ff = It.extend({
8724
8733
  200: {
8725
8734
  content: {
8726
8735
  "application/json": {
8727
- schema: _n
8736
+ schema: mn
8728
8737
  }
8729
8738
  },
8730
8739
  description: "List of users"
@@ -8813,7 +8822,7 @@ const ff = It.extend({
8813
8822
  201: {
8814
8823
  content: {
8815
8824
  "application/json": {
8816
- schema: _n
8825
+ schema: mn
8817
8826
  }
8818
8827
  },
8819
8828
  description: "Status"
@@ -8834,7 +8843,7 @@ const ff = It.extend({
8834
8843
  password: d
8835
8844
  } = e, u = e.user_id, f = u ? es(u) : wa(), h = `${e.provider}|${f}`;
8836
8845
  try {
8837
- const m = await t.env.data.users.create(t.var.tenant_id, {
8846
+ const m = {
8838
8847
  email: n,
8839
8848
  user_id: h,
8840
8849
  name: i || n || r,
@@ -8846,36 +8855,40 @@ const ff = It.extend({
8846
8855
  last_ip: "",
8847
8856
  is_social: !1,
8848
8857
  last_login: (/* @__PURE__ */ new Date()).toISOString()
8849
- });
8858
+ }, y = await t.env.data.users.create(
8859
+ t.var.tenant_id,
8860
+ m
8861
+ );
8850
8862
  if (d) {
8851
- const b = {
8852
- user_id: m.user_id,
8863
+ const E = {
8864
+ user_id: h,
8865
+ // Use the original user_id, not result.user_id
8853
8866
  password: await Qr.hash(d, 10),
8854
8867
  algorithm: "bcrypt"
8855
8868
  };
8856
8869
  await t.env.data.passwords.create(
8857
8870
  t.var.tenant_id,
8858
- b
8871
+ E
8859
8872
  );
8860
8873
  }
8861
- t.set("user_id", m.user_id);
8862
- const y = $e(t, {
8874
+ t.set("user_id", y.user_id);
8875
+ const v = $e(t, {
8863
8876
  type: ve.SUCCESS_API_OPERATION,
8864
8877
  description: "User created"
8865
8878
  });
8866
- ke(t, t.env.data.logs.create(t.var.tenant_id, y));
8867
- const v = {
8868
- ...m,
8879
+ ke(t, t.env.data.logs.create(t.var.tenant_id, v));
8880
+ const b = y.identities ? y : {
8881
+ ...y,
8869
8882
  identities: [
8870
8883
  {
8871
- connection: m.connection,
8872
- provider: m.provider,
8873
- user_id: es(m.user_id),
8874
- isSocial: m.is_social
8884
+ connection: y.connection,
8885
+ provider: y.provider,
8886
+ user_id: es(y.user_id),
8887
+ isSocial: y.is_social
8875
8888
  }
8876
8889
  ]
8877
8890
  };
8878
- return t.json(_n.parse(v), {
8891
+ return t.json(mn.parse(b), {
8879
8892
  status: 201
8880
8893
  });
8881
8894
  } catch (m) {
@@ -9106,7 +9119,7 @@ const ff = It.extend({
9106
9119
  200: {
9107
9120
  content: {
9108
9121
  "application/json": {
9109
- schema: o.array(_n)
9122
+ schema: o.array(mn)
9110
9123
  }
9111
9124
  },
9112
9125
  description: "Status"
@@ -9124,7 +9137,7 @@ const ff = It.extend({
9124
9137
  const i = await t.env.data.users.get(t.var.tenant_id, e);
9125
9138
  if (!i)
9126
9139
  throw new S(404);
9127
- return t.json([_n.parse(i)]);
9140
+ return t.json([mn.parse(i)]);
9128
9141
  }
9129
9142
  ).openapi(
9130
9143
  I({
@@ -9957,9 +9970,9 @@ var hf;
9957
9970
  var Fe = Un(Te);
9958
9971
  if (!Fe)
9959
9972
  return;
9960
- var zt = it(Fe);
9961
- if (zt.isProviderFor(se, be))
9962
- return Ii(Te), zt;
9973
+ var Ft = it(Fe);
9974
+ if (Ft.isProviderFor(se, be))
9975
+ return Ii(Te), Ft;
9963
9976
  }
9964
9977
  }
9965
9978
  }
@@ -9982,8 +9995,8 @@ var hf;
9982
9995
  if (Fe !== Te) {
9983
9996
  if (!F(Fe))
9984
9997
  return !1;
9985
- var zt = ue.get(se);
9986
- F(zt) && (zt = new h(), ue.set(se, zt)), zt.set(be, Te);
9998
+ var Ft = ue.get(se);
9999
+ F(Ft) && (Ft = new h(), ue.set(se, Ft)), Ft.set(be, Te);
9987
10000
  }
9988
10001
  return !0;
9989
10002
  }
@@ -10063,13 +10076,13 @@ var hf;
10063
10076
  );
10064
10077
  if (F(be))
10065
10078
  return se;
10066
- for (var Te = be.keys(), Fe = rt(Te), zt = 0; ; ) {
10079
+ for (var Te = be.keys(), Fe = rt(Te), Ft = 0; ; ) {
10067
10080
  var Rp = Un(Fe);
10068
10081
  if (!Rp)
10069
- return se.length = zt, se;
10082
+ return se.length = Ft, se;
10070
10083
  var t1 = it(Rp);
10071
10084
  try {
10072
- se[zt] = t1;
10085
+ se[Ft] = t1;
10073
10086
  } catch (n1) {
10074
10087
  try {
10075
10088
  Ii(Fe);
@@ -10077,7 +10090,7 @@ var hf;
10077
10090
  throw n1;
10078
10091
  }
10079
10092
  }
10080
- zt++;
10093
+ Ft++;
10081
10094
  }
10082
10095
  }
10083
10096
  function X(ne, oe, se) {
@@ -10801,7 +10814,7 @@ class Sa {
10801
10814
  }
10802
10815
  }
10803
10816
  const Ri = [new Uint8Array([1])], mf = "0123456789", Bl = "name", _f = "valueHexView", tb = "isHexOnly", nb = "idBlock", rb = "tagClass", ib = "tagNumber", ob = "isConstructed", sb = "fromBER", ab = "toBER", lb = "local", St = "", Qt = new ArrayBuffer(0), Aa = new Uint8Array(0), ro = "EndOfContent", G0 = "OCTET STRING", W0 = "BIT STRING";
10804
- function pn(t) {
10817
+ function un(t) {
10805
10818
  var e;
10806
10819
  return e = class extends t {
10807
10820
  get valueHex() {
@@ -10868,7 +10881,7 @@ class bt extends Cr {
10868
10881
  }
10869
10882
  }
10870
10883
  bt.NAME = "valueBlock";
10871
- class J0 extends pn(Cr) {
10884
+ class J0 extends un(Cr) {
10872
10885
  constructor({ idBlock: e = {} } = {}) {
10873
10886
  var n, r, i, s;
10874
10887
  super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? W.toUint8Array(e.valueHex) : Aa, this.tagClass = (r = e.tagClass) !== null && r !== void 0 ? r : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
@@ -11123,7 +11136,7 @@ class bu extends lt {
11123
11136
  }
11124
11137
  }
11125
11138
  bu.NAME = "BaseStringBlock";
11126
- class Y0 extends pn(bt) {
11139
+ class Y0 extends un(bt) {
11127
11140
  constructor({ isHexOnly: e = !0, ...n } = {}) {
11128
11141
  super(n), this.isHexOnly = e;
11129
11142
  }
@@ -11417,7 +11430,7 @@ class hr extends lt {
11417
11430
  rm = hr;
11418
11431
  Q.Null = rm;
11419
11432
  hr.NAME = "NULL";
11420
- class im extends pn(bt) {
11433
+ class im extends un(bt) {
11421
11434
  get value() {
11422
11435
  for (const e of this.valueHexView)
11423
11436
  if (e > 0)
@@ -11463,7 +11476,7 @@ let Ea = class extends lt {
11463
11476
  om = Ea;
11464
11477
  Q.Boolean = om;
11465
11478
  Ea.NAME = "BOOLEAN";
11466
- class sm extends pn(qn) {
11479
+ class sm extends un(qn) {
11467
11480
  constructor({ isConstructed: e = !1, ...n } = {}) {
11468
11481
  super(n), this.isConstructed = e;
11469
11482
  }
@@ -11546,7 +11559,7 @@ let cr = class extends lt {
11546
11559
  ku = cr;
11547
11560
  Q.OctetString = ku;
11548
11561
  cr.NAME = G0;
11549
- class am extends pn(qn) {
11562
+ class am extends un(qn) {
11550
11563
  constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
11551
11564
  super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
11552
11565
  }
@@ -11705,7 +11718,7 @@ function pb(t, e) {
11705
11718
  }
11706
11719
  return s.slice();
11707
11720
  }
11708
- class xu extends pn(bt) {
11721
+ class xu extends un(bt) {
11709
11722
  setValueHex() {
11710
11723
  this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = K0.call(this)));
11711
11724
  }
@@ -11832,7 +11845,7 @@ class Na extends wi {
11832
11845
  dm = Na;
11833
11846
  Q.Enumerated = dm;
11834
11847
  Na.NAME = "ENUMERATED";
11835
- class jc extends pn(bt) {
11848
+ class jc extends un(bt) {
11836
11849
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
11837
11850
  super(r), this.valueDec = e, this.isFirstSid = n;
11838
11851
  }
@@ -12007,7 +12020,7 @@ class Ca extends lt {
12007
12020
  pm = Ca;
12008
12021
  Q.ObjectIdentifier = pm;
12009
12022
  Ca.NAME = "OBJECT IDENTIFIER";
12010
- class Ic extends pn(Cr) {
12023
+ class Ic extends un(Cr) {
12011
12024
  constructor({ valueDec: e = 0, ...n } = {}) {
12012
12025
  super(n), this.valueDec = e;
12013
12026
  }
@@ -12150,15 +12163,15 @@ gm = Kt;
12150
12163
  Q.Sequence = gm;
12151
12164
  Kt.NAME = "SEQUENCE";
12152
12165
  var mm;
12153
- let ln = class extends vt {
12166
+ let an = class extends vt {
12154
12167
  constructor(e = {}) {
12155
12168
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
12156
12169
  }
12157
12170
  };
12158
- mm = ln;
12171
+ mm = an;
12159
12172
  Q.Set = mm;
12160
- ln.NAME = "SET";
12161
- class _m extends pn(bt) {
12173
+ an.NAME = "SET";
12174
+ class _m extends un(bt) {
12162
12175
  constructor({ ...e } = {}) {
12163
12176
  super(e), this.isHexOnly = !0, this.value = St;
12164
12177
  }
@@ -12828,7 +12841,7 @@ const Fm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12828
12841
  GeneralString: Ua,
12829
12842
  GeneralizedTime: Ma,
12830
12843
  GraphicString: La,
12831
- HexBlock: pn,
12844
+ HexBlock: un,
12832
12845
  IA5String: Ba,
12833
12846
  Integer: wi,
12834
12847
  Null: hr,
@@ -12841,7 +12854,7 @@ const Fm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12841
12854
  RelativeObjectIdentifier: Su,
12842
12855
  Repeated: Is,
12843
12856
  Sequence: Kt,
12844
- Set: ln,
12857
+ Set: an,
12845
12858
  TIME: ju,
12846
12859
  TeletexString: Pa,
12847
12860
  TimeOfDay: Eu,
@@ -12961,13 +12974,13 @@ const gb = {
12961
12974
  fromASN: (t) => new Se(t.getValue()),
12962
12975
  toASN: (t) => t.toASN()
12963
12976
  };
12964
- function Ft(t) {
12977
+ function Mt(t) {
12965
12978
  return {
12966
12979
  fromASN: (e) => e.valueBlock.value,
12967
12980
  toASN: (e) => new t({ value: e })
12968
12981
  };
12969
12982
  }
12970
- const zm = Ft(jn), $b = Ft(ja), kb = Ft(Ia), xb = Ft(Oa), Sb = Ft(Ta), Ab = Ft(Pa), Eb = Ft(Ra), Nb = Ft(Ba), Cb = Ft(La), jb = Ft(So), Ib = Ft(Ua), Ob = Ft(Da), Tb = {
12983
+ const zm = Mt(jn), $b = Mt(ja), kb = Mt(Ia), xb = Mt(Oa), Sb = Mt(Ta), Ab = Mt(Pa), Eb = Mt(Ra), Nb = Mt(Ba), Cb = Mt(La), jb = Mt(So), Ib = Mt(Ua), Ob = Mt(Da), Tb = {
12971
12984
  fromASN: (t) => t.toDate(),
12972
12985
  toASN: (t) => new Ao({ valueDate: t })
12973
12986
  }, Pb = {
@@ -13027,8 +13040,8 @@ function Wi(t) {
13027
13040
  return null;
13028
13041
  }
13029
13042
  }
13030
- function vn(t) {
13031
- return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : vn(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
13043
+ function wn(t) {
13044
+ return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : wn(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
13032
13045
  }
13033
13046
  function qm(t) {
13034
13047
  var e;
@@ -13080,11 +13093,11 @@ class Lb {
13080
13093
  if (!f)
13081
13094
  throw new Error(`Cannot get ASN1 class by name '${u}'`);
13082
13095
  c = new f({ name: l });
13083
- } else vn(a.type) ? c = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === U.Choice ? c = new gr({ name: l }) : (c = this.create(a.type, !1), c.name = l) : c = new gr({ name: l });
13096
+ } else wn(a.type) ? c = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === U.Choice ? c = new gr({ name: l }) : (c = this.create(a.type, !1), c.name = l) : c = new gr({ name: l });
13084
13097
  const d = !!a.optional || a.defaultValue !== void 0;
13085
13098
  if (a.repeated) {
13086
13099
  c.name = "";
13087
- const u = a.repeated === "set" ? ln : Kt;
13100
+ const u = a.repeated === "set" ? an : Kt;
13088
13101
  c = new u({
13089
13102
  name: "",
13090
13103
  value: [new Is({ name: l, value: c })]
@@ -13092,7 +13105,7 @@ class Lb {
13092
13105
  }
13093
13106
  if (a.context !== null && a.context !== void 0)
13094
13107
  if (a.implicit)
13095
- if (typeof a.type == "number" || vn(a.type)) {
13108
+ if (typeof a.type == "number" || wn(a.type)) {
13096
13109
  const u = a.repeated ? vt : xo;
13097
13110
  i.push(new u({ name: l, optional: d, idBlock: { tagClass: 3, tagNumber: a.context } }));
13098
13111
  } else {
@@ -13119,7 +13132,7 @@ class Lb {
13119
13132
  case U.Sequence:
13120
13133
  return new Kt({ value: i, name: "" });
13121
13134
  case U.Set:
13122
- return new ln({ value: i, name: "" });
13135
+ return new an({ value: i, name: "" });
13123
13136
  case U.Choice:
13124
13137
  return new Iu({ value: i, name: "" });
13125
13138
  default:
@@ -13163,7 +13176,7 @@ class Ub {
13163
13176
  }
13164
13177
  static fromASN(e, n) {
13165
13178
  try {
13166
- if (vn(n))
13179
+ if (wn(n))
13167
13180
  return new n().fromASN(e);
13168
13181
  const r = Ze.get(n);
13169
13182
  Ze.cache(n);
@@ -13311,19 +13324,19 @@ class Ub {
13311
13324
  if (!s)
13312
13325
  continue;
13313
13326
  const a = e.items[i], l = a.type;
13314
- typeof l == "number" || vn(l) ? r[i] = this.processPrimitiveSchemaItem(s, a, l) : r[i] = this.processComplexSchemaItem(s, a, l);
13327
+ typeof l == "number" || wn(l) ? r[i] = this.processPrimitiveSchemaItem(s, a, l) : r[i] = this.processComplexSchemaItem(s, a, l);
13315
13328
  }
13316
13329
  }
13317
13330
  static processPrimitiveSchemaItem(e, n, r) {
13318
13331
  var i;
13319
- const s = (i = n.converter) !== null && i !== void 0 ? i : vn(r) ? new r() : null;
13332
+ const s = (i = n.converter) !== null && i !== void 0 ? i : wn(r) ? new r() : null;
13320
13333
  if (!s)
13321
13334
  throw new Error("Converter is empty");
13322
13335
  return n.repeated ? this.processRepeatedPrimitiveItem(e, n, s) : this.processSinglePrimitiveItem(e, n, r, s);
13323
13336
  }
13324
13337
  static processRepeatedPrimitiveItem(e, n, r) {
13325
13338
  if (n.implicit) {
13326
- const i = n.repeated === "sequence" ? Kt : ln, s = new i();
13339
+ const i = n.repeated === "sequence" ? Kt : an, s = new i();
13327
13340
  s.valueBlock = e.valueBlock;
13328
13341
  const a = Wr(s.toBER(!1));
13329
13342
  if (a.offset === -1)
@@ -13339,7 +13352,7 @@ class Ub {
13339
13352
  let s = e;
13340
13353
  if (n.implicit) {
13341
13354
  let a;
13342
- if (vn(r))
13355
+ if (wn(r))
13343
13356
  a = new r().toSchema("");
13344
13357
  else {
13345
13358
  const l = x[r], c = Fm[l];
@@ -13378,7 +13391,7 @@ class Ub {
13378
13391
  if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
13379
13392
  return s.valueBlock.value = e.valueBlock.value, s;
13380
13393
  } else if (i.type === U.Set) {
13381
- const s = new ln();
13394
+ const s = new an();
13382
13395
  if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
13383
13396
  return s.valueBlock.value = e.valueBlock.value, s;
13384
13397
  }
@@ -13391,7 +13404,7 @@ class Ou {
13391
13404
  return e instanceof lt ? e.toBER(!1) : this.toASN(e).toBER(!1);
13392
13405
  }
13393
13406
  static toASN(e) {
13394
- if (e && typeof e == "object" && vn(e))
13407
+ if (e && typeof e == "object" && wn(e))
13395
13408
  return e.toASN();
13396
13409
  if (!(e && typeof e == "object"))
13397
13410
  throw new TypeError("Parameter 1 should be type of Object.");
@@ -13416,7 +13429,7 @@ class Ou {
13416
13429
  const d = Ou.toAsnItem(l, a, n, c);
13417
13430
  if (typeof l.context == "number")
13418
13431
  if (l.implicit)
13419
- if (!l.repeated && (typeof l.type == "number" || vn(l.type))) {
13432
+ if (!l.repeated && (typeof l.type == "number" || wn(l.type))) {
13420
13433
  const u = {};
13421
13434
  u.valueHex = d instanceof hr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), i.push(new xo({
13422
13435
  optional: l.optional,
@@ -13452,7 +13465,7 @@ class Ou {
13452
13465
  s = new Kt({ value: i });
13453
13466
  break;
13454
13467
  case U.Set:
13455
- s = new ln({ value: i });
13468
+ s = new an({ value: i });
13456
13469
  break;
13457
13470
  case U.Choice:
13458
13471
  if (!i[0])
@@ -13471,7 +13484,7 @@ class Ou {
13471
13484
  if (e.repeated) {
13472
13485
  if (!Array.isArray(i))
13473
13486
  throw new TypeError("Parameter 'objProp' should be type of Array.");
13474
- const l = Array.from(i, (d) => a.toASN(d)), c = e.repeated === "sequence" ? Kt : ln;
13487
+ const l = Array.from(i, (d) => a.toASN(d)), c = e.repeated === "sequence" ? Kt : an;
13475
13488
  s = new c({
13476
13489
  value: l
13477
13490
  });
@@ -13480,7 +13493,7 @@ class Ou {
13480
13493
  } else if (e.repeated) {
13481
13494
  if (!Array.isArray(i))
13482
13495
  throw new TypeError("Parameter 'objProp' should be type of Array.");
13483
- const a = Array.from(i, (c) => this.toASN(c)), l = e.repeated === "sequence" ? Kt : ln;
13496
+ const a = Array.from(i, (c) => this.toASN(c)), l = e.repeated === "sequence" ? Kt : an;
13484
13497
  s = new l({
13485
13498
  value: a
13486
13499
  });
@@ -13952,14 +13965,14 @@ Sf = g([
13952
13965
  ], Sf);
13953
13966
  var zc;
13954
13967
  const qc = `${In}.31`;
13955
- var qt;
13968
+ var zt;
13956
13969
  (function(t) {
13957
13970
  t[t.unused = 1] = "unused", t[t.keyCompromise = 2] = "keyCompromise", t[t.cACompromise = 4] = "cACompromise", t[t.affiliationChanged = 8] = "affiliationChanged", t[t.superseded = 16] = "superseded", t[t.cessationOfOperation = 32] = "cessationOfOperation", t[t.certificateHold = 64] = "certificateHold", t[t.privilegeWithdrawn = 128] = "privilegeWithdrawn", t[t.aACompromise = 256] = "aACompromise";
13958
- })(qt || (qt = {}));
13971
+ })(zt || (zt = {}));
13959
13972
  class Km extends Fa {
13960
13973
  toJSON() {
13961
13974
  const e = [], n = this.toNumber();
13962
- return n & qt.aACompromise && e.push("aACompromise"), n & qt.affiliationChanged && e.push("affiliationChanged"), n & qt.cACompromise && e.push("cACompromise"), n & qt.certificateHold && e.push("certificateHold"), n & qt.cessationOfOperation && e.push("cessationOfOperation"), n & qt.keyCompromise && e.push("keyCompromise"), n & qt.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & qt.superseded && e.push("superseded"), n & qt.unused && e.push("unused"), e;
13975
+ return n & zt.aACompromise && e.push("aACompromise"), n & zt.affiliationChanged && e.push("affiliationChanged"), n & zt.cACompromise && e.push("cACompromise"), n & zt.certificateHold && e.push("certificateHold"), n & zt.cessationOfOperation && e.push("cessationOfOperation"), n & zt.keyCompromise && e.push("keyCompromise"), n & zt.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & zt.superseded && e.push("superseded"), n & zt.unused && e.push("unused"), e;
13963
13976
  }
13964
13977
  toString() {
13965
13978
  return `[${this.toJSON().join(", ")}]`;
@@ -14119,14 +14132,14 @@ Ef = Jc = g([
14119
14132
  z({ type: U.Sequence })
14120
14133
  ], Ef);
14121
14134
  const Jm = `${In}.15`;
14122
- var Vt;
14135
+ var qt;
14123
14136
  (function(t) {
14124
14137
  t[t.digitalSignature = 1] = "digitalSignature", t[t.nonRepudiation = 2] = "nonRepudiation", t[t.keyEncipherment = 4] = "keyEncipherment", t[t.dataEncipherment = 8] = "dataEncipherment", t[t.keyAgreement = 16] = "keyAgreement", t[t.keyCertSign = 32] = "keyCertSign", t[t.cRLSign = 64] = "cRLSign", t[t.encipherOnly = 128] = "encipherOnly", t[t.decipherOnly = 256] = "decipherOnly";
14125
- })(Vt || (Vt = {}));
14138
+ })(qt || (qt = {}));
14126
14139
  class Ll extends Fa {
14127
14140
  toJSON() {
14128
14141
  const e = this.toNumber(), n = [];
14129
- return e & Vt.cRLSign && n.push("crlSign"), e & Vt.dataEncipherment && n.push("dataEncipherment"), e & Vt.decipherOnly && n.push("decipherOnly"), e & Vt.digitalSignature && n.push("digitalSignature"), e & Vt.encipherOnly && n.push("encipherOnly"), e & Vt.keyAgreement && n.push("keyAgreement"), e & Vt.keyCertSign && n.push("keyCertSign"), e & Vt.keyEncipherment && n.push("keyEncipherment"), e & Vt.nonRepudiation && n.push("nonRepudiation"), n;
14142
+ return e & qt.cRLSign && n.push("crlSign"), e & qt.dataEncipherment && n.push("dataEncipherment"), e & qt.decipherOnly && n.push("decipherOnly"), e & qt.digitalSignature && n.push("digitalSignature"), e & qt.encipherOnly && n.push("encipherOnly"), e & qt.keyAgreement && n.push("keyAgreement"), e & qt.keyCertSign && n.push("keyCertSign"), e & qt.keyEncipherment && n.push("keyEncipherment"), e & qt.nonRepudiation && n.push("nonRepudiation"), n;
14130
14143
  }
14131
14144
  toString() {
14132
14145
  return `[${this.toJSON().join(", ")}]`;
@@ -14305,17 +14318,17 @@ g([
14305
14318
  optional: !0
14306
14319
  })
14307
14320
  ], Z.prototype, "parameters", void 0);
14308
- class Ht {
14321
+ class Vt {
14309
14322
  constructor(e = {}) {
14310
14323
  this.algorithm = new Z(), this.subjectPublicKey = new ArrayBuffer(0), Object.assign(this, e);
14311
14324
  }
14312
14325
  }
14313
14326
  g([
14314
14327
  _({ type: Z })
14315
- ], Ht.prototype, "algorithm", void 0);
14328
+ ], Vt.prototype, "algorithm", void 0);
14316
14329
  g([
14317
14330
  _({ type: x.BitString })
14318
- ], Ht.prototype, "subjectPublicKey", void 0);
14331
+ ], Vt.prototype, "subjectPublicKey", void 0);
14319
14332
  let st = class {
14320
14333
  constructor(e) {
14321
14334
  if (e)
@@ -14357,31 +14370,31 @@ g([
14357
14370
  _({ type: st })
14358
14371
  ], No.prototype, "notAfter", void 0);
14359
14372
  var nd;
14360
- let Dt = class r_ {
14373
+ let Ut = class r_ {
14361
14374
  constructor(e = {}) {
14362
14375
  this.extnID = "", this.critical = r_.CRITICAL, this.extnValue = new Se(), Object.assign(this, e);
14363
14376
  }
14364
14377
  };
14365
- Dt.CRITICAL = !1;
14378
+ Ut.CRITICAL = !1;
14366
14379
  g([
14367
14380
  _({ type: x.ObjectIdentifier })
14368
- ], Dt.prototype, "extnID", void 0);
14381
+ ], Ut.prototype, "extnID", void 0);
14369
14382
  g([
14370
14383
  _({
14371
14384
  type: x.Boolean,
14372
- defaultValue: Dt.CRITICAL
14385
+ defaultValue: Ut.CRITICAL
14373
14386
  })
14374
- ], Dt.prototype, "critical", void 0);
14387
+ ], Ut.prototype, "critical", void 0);
14375
14388
  g([
14376
14389
  _({ type: Se })
14377
- ], Dt.prototype, "extnValue", void 0);
14390
+ ], Ut.prototype, "extnValue", void 0);
14378
14391
  let Gn = nd = class extends Ne {
14379
14392
  constructor(e) {
14380
14393
  super(e), Object.setPrototypeOf(this, nd.prototype);
14381
14394
  }
14382
14395
  };
14383
14396
  Gn = nd = g([
14384
- z({ type: U.Sequence, itemType: Dt })
14397
+ z({ type: U.Sequence, itemType: Ut })
14385
14398
  ], Gn);
14386
14399
  var _r;
14387
14400
  (function(t) {
@@ -14389,7 +14402,7 @@ var _r;
14389
14402
  })(_r || (_r = {}));
14390
14403
  class Tt {
14391
14404
  constructor(e = {}) {
14392
- this.version = _r.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Z(), this.issuer = new He(), this.validity = new No(), this.subject = new He(), this.subjectPublicKeyInfo = new Ht(), Object.assign(this, e);
14405
+ this.version = _r.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new Z(), this.issuer = new He(), this.validity = new No(), this.subject = new He(), this.subjectPublicKeyInfo = new Vt(), Object.assign(this, e);
14393
14406
  }
14394
14407
  }
14395
14408
  g([
@@ -14418,7 +14431,7 @@ g([
14418
14431
  _({ type: He })
14419
14432
  ], Tt.prototype, "subject", void 0);
14420
14433
  g([
14421
- _({ type: Ht })
14434
+ _({ type: Vt })
14422
14435
  ], Tt.prototype, "subjectPublicKeyInfo", void 0);
14423
14436
  g([
14424
14437
  _({
@@ -14460,7 +14473,7 @@ g([
14460
14473
  _({ type: st })
14461
14474
  ], Ka.prototype, "revocationDate", void 0);
14462
14475
  g([
14463
- _({ type: Dt, optional: !0, repeated: "sequence" })
14476
+ _({ type: Ut, optional: !0, repeated: "sequence" })
14464
14477
  ], Ka.prototype, "crlEntryExtensions", void 0);
14465
14478
  class On {
14466
14479
  constructor(e = {}) {
@@ -14486,7 +14499,7 @@ g([
14486
14499
  _({ type: Ka, repeated: "sequence", optional: !0 })
14487
14500
  ], On.prototype, "revokedCertificates", void 0);
14488
14501
  g([
14489
- _({ type: Dt, optional: !0, context: 0, repeated: "sequence" })
14502
+ _({ type: Ut, optional: !0, context: 0, repeated: "sequence" })
14490
14503
  ], On.prototype, "crlExtensions", void 0);
14491
14504
  class Mu {
14492
14505
  constructor(e = {}) {
@@ -14541,11 +14554,11 @@ let Ds = class extends Z {
14541
14554
  Ds = g([
14542
14555
  z({ type: U.Sequence })
14543
14556
  ], Ds);
14544
- let un = class extends Z {
14557
+ let dn = class extends Z {
14545
14558
  };
14546
- un = g([
14559
+ dn = g([
14547
14560
  z({ type: U.Sequence })
14548
- ], un);
14561
+ ], dn);
14549
14562
  let Ms = class extends Z {
14550
14563
  };
14551
14564
  Ms = g([
@@ -14573,46 +14586,46 @@ g([
14573
14586
  _({ type: x.Any, repeated: "set" })
14574
14587
  ], ki.prototype, "attrValues", void 0);
14575
14588
  var id;
14576
- class fn {
14589
+ class pn {
14577
14590
  constructor(e = {}) {
14578
14591
  this.version = kn.v0, this.sid = new oi(), this.digestAlgorithm = new oo(), this.signatureAlgorithm = new Ds(), this.signature = new Se(), Object.assign(this, e);
14579
14592
  }
14580
14593
  }
14581
14594
  g([
14582
14595
  _({ type: x.Integer })
14583
- ], fn.prototype, "version", void 0);
14596
+ ], pn.prototype, "version", void 0);
14584
14597
  g([
14585
14598
  _({ type: oi })
14586
- ], fn.prototype, "sid", void 0);
14599
+ ], pn.prototype, "sid", void 0);
14587
14600
  g([
14588
14601
  _({ type: oo })
14589
- ], fn.prototype, "digestAlgorithm", void 0);
14602
+ ], pn.prototype, "digestAlgorithm", void 0);
14590
14603
  g([
14591
14604
  _({ type: ki, repeated: "set", context: 0, implicit: !0, optional: !0 })
14592
- ], fn.prototype, "signedAttrs", void 0);
14605
+ ], pn.prototype, "signedAttrs", void 0);
14593
14606
  g([
14594
14607
  _({ type: Ds })
14595
- ], fn.prototype, "signatureAlgorithm", void 0);
14608
+ ], pn.prototype, "signatureAlgorithm", void 0);
14596
14609
  g([
14597
14610
  _({ type: Se })
14598
- ], fn.prototype, "signature", void 0);
14611
+ ], pn.prototype, "signature", void 0);
14599
14612
  g([
14600
14613
  _({ type: ki, repeated: "set", context: 1, implicit: !0, optional: !0 })
14601
- ], fn.prototype, "unsignedAttrs", void 0);
14614
+ ], pn.prototype, "unsignedAttrs", void 0);
14602
14615
  let Fs = id = class extends Ne {
14603
14616
  constructor(e) {
14604
14617
  super(e), Object.setPrototypeOf(this, id.prototype);
14605
14618
  }
14606
14619
  };
14607
14620
  Fs = id = g([
14608
- z({ type: U.Set, itemType: fn })
14621
+ z({ type: U.Set, itemType: pn })
14609
14622
  ], Fs);
14610
14623
  let Of = class extends st {
14611
14624
  };
14612
14625
  Of = g([
14613
14626
  z({ type: U.Choice })
14614
14627
  ], Of);
14615
- let Tf = class extends fn {
14628
+ let Tf = class extends pn {
14616
14629
  };
14617
14630
  Tf = g([
14618
14631
  z({ type: U.Sequence })
@@ -15122,7 +15135,7 @@ wr = g([
15122
15135
  ], wr);
15123
15136
  class Si {
15124
15137
  constructor(e = {}) {
15125
- this.version = kn.v3, this.originator = new wr(), this.keyEncryptionAlgorithm = new un(), this.recipientEncryptedKeys = new Hs(), Object.assign(this, e);
15138
+ this.version = kn.v3, this.originator = new wr(), this.keyEncryptionAlgorithm = new dn(), this.recipientEncryptedKeys = new Hs(), Object.assign(this, e);
15126
15139
  }
15127
15140
  }
15128
15141
  g([
@@ -15135,7 +15148,7 @@ g([
15135
15148
  _({ type: Se, context: 1, optional: !0 })
15136
15149
  ], Si.prototype, "ukm", void 0);
15137
15150
  g([
15138
- _({ type: un })
15151
+ _({ type: dn })
15139
15152
  ], Si.prototype, "keyEncryptionAlgorithm", void 0);
15140
15153
  g([
15141
15154
  _({ type: Hs })
@@ -15156,7 +15169,7 @@ di = g([
15156
15169
  ], di);
15157
15170
  class Io {
15158
15171
  constructor(e = {}) {
15159
- this.version = kn.v0, this.rid = new di(), this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15172
+ this.version = kn.v0, this.rid = new di(), this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15160
15173
  }
15161
15174
  }
15162
15175
  g([
@@ -15166,7 +15179,7 @@ g([
15166
15179
  _({ type: di })
15167
15180
  ], Io.prototype, "rid", void 0);
15168
15181
  g([
15169
- _({ type: un })
15182
+ _({ type: dn })
15170
15183
  ], Io.prototype, "keyEncryptionAlgorithm", void 0);
15171
15184
  g([
15172
15185
  _({ type: Se })
@@ -15187,7 +15200,7 @@ g([
15187
15200
  ], Oo.prototype, "other", void 0);
15188
15201
  class To {
15189
15202
  constructor(e = {}) {
15190
- this.version = kn.v4, this.kekid = new Oo(), this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15203
+ this.version = kn.v4, this.kekid = new Oo(), this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15191
15204
  }
15192
15205
  }
15193
15206
  g([
@@ -15197,14 +15210,14 @@ g([
15197
15210
  _({ type: Oo })
15198
15211
  ], To.prototype, "kekid", void 0);
15199
15212
  g([
15200
- _({ type: un })
15213
+ _({ type: dn })
15201
15214
  ], To.prototype, "keyEncryptionAlgorithm", void 0);
15202
15215
  g([
15203
15216
  _({ type: Se })
15204
15217
  ], To.prototype, "encryptedKey", void 0);
15205
15218
  class Po {
15206
15219
  constructor(e = {}) {
15207
- this.version = kn.v0, this.keyEncryptionAlgorithm = new un(), this.encryptedKey = new Se(), Object.assign(this, e);
15220
+ this.version = kn.v0, this.keyEncryptionAlgorithm = new dn(), this.encryptedKey = new Se(), Object.assign(this, e);
15208
15221
  }
15209
15222
  }
15210
15223
  g([
@@ -15214,7 +15227,7 @@ g([
15214
15227
  _({ type: rd, context: 0, optional: !0 })
15215
15228
  ], Po.prototype, "keyDerivationAlgorithm", void 0);
15216
15229
  g([
15217
- _({ type: un })
15230
+ _({ type: dn })
15218
15231
  ], Po.prototype, "keyEncryptionAlgorithm", void 0);
15219
15232
  g([
15220
15233
  _({ type: Se })
@@ -15611,41 +15624,41 @@ let $d = bd = class extends Ne {
15611
15624
  $d = bd = g([
15612
15625
  z({ type: U.Sequence, itemType: al })
15613
15626
  ], $d);
15614
- class hn {
15627
+ class fn {
15615
15628
  constructor(e = {}) {
15616
15629
  this.version = 0, this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), this.privateExponent = new ArrayBuffer(0), this.prime1 = new ArrayBuffer(0), this.prime2 = new ArrayBuffer(0), this.exponent1 = new ArrayBuffer(0), this.exponent2 = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
15617
15630
  }
15618
15631
  }
15619
15632
  g([
15620
15633
  _({ type: x.Integer })
15621
- ], hn.prototype, "version", void 0);
15634
+ ], fn.prototype, "version", void 0);
15622
15635
  g([
15623
15636
  _({ type: x.Integer, converter: Pe })
15624
- ], hn.prototype, "modulus", void 0);
15637
+ ], fn.prototype, "modulus", void 0);
15625
15638
  g([
15626
15639
  _({ type: x.Integer, converter: Pe })
15627
- ], hn.prototype, "publicExponent", void 0);
15640
+ ], fn.prototype, "publicExponent", void 0);
15628
15641
  g([
15629
15642
  _({ type: x.Integer, converter: Pe })
15630
- ], hn.prototype, "privateExponent", void 0);
15643
+ ], fn.prototype, "privateExponent", void 0);
15631
15644
  g([
15632
15645
  _({ type: x.Integer, converter: Pe })
15633
- ], hn.prototype, "prime1", void 0);
15646
+ ], fn.prototype, "prime1", void 0);
15634
15647
  g([
15635
15648
  _({ type: x.Integer, converter: Pe })
15636
- ], hn.prototype, "prime2", void 0);
15649
+ ], fn.prototype, "prime2", void 0);
15637
15650
  g([
15638
15651
  _({ type: x.Integer, converter: Pe })
15639
- ], hn.prototype, "exponent1", void 0);
15652
+ ], fn.prototype, "exponent1", void 0);
15640
15653
  g([
15641
15654
  _({ type: x.Integer, converter: Pe })
15642
- ], hn.prototype, "exponent2", void 0);
15655
+ ], fn.prototype, "exponent2", void 0);
15643
15656
  g([
15644
15657
  _({ type: x.Integer, converter: Pe })
15645
- ], hn.prototype, "coefficient", void 0);
15658
+ ], fn.prototype, "coefficient", void 0);
15646
15659
  g([
15647
15660
  _({ type: $d, optional: !0 })
15648
- ], hn.prototype, "otherPrimeInfos", void 0);
15661
+ ], fn.prototype, "otherPrimeInfos", void 0);
15649
15662
  class ep {
15650
15663
  constructor(e = {}) {
15651
15664
  this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), Object.assign(this, e);
@@ -16505,7 +16518,7 @@ g([
16505
16518
  Dd = g([
16506
16519
  z({ type: U.Choice })
16507
16520
  ], Dd);
16508
- let Qf = class extends fn {
16521
+ let Qf = class extends pn {
16509
16522
  };
16510
16523
  Qf = g([
16511
16524
  z({ type: U.Sequence })
@@ -16569,7 +16582,7 @@ la = zd = g([
16569
16582
  ], la);
16570
16583
  class Ei {
16571
16584
  constructor(e = {}) {
16572
- this.version = 0, this.subject = new He(), this.subjectPKInfo = new Ht(), this.attributes = new la(), Object.assign(this, e);
16585
+ this.version = 0, this.subject = new He(), this.subjectPKInfo = new Vt(), this.attributes = new la(), Object.assign(this, e);
16573
16586
  }
16574
16587
  }
16575
16588
  g([
@@ -16579,7 +16592,7 @@ g([
16579
16592
  _({ type: He })
16580
16593
  ], Ei.prototype, "subject", void 0);
16581
16594
  g([
16582
- _({ type: Ht })
16595
+ _({ type: Vt })
16583
16596
  ], Ei.prototype, "subjectPKInfo", void 0);
16584
16597
  g([
16585
16598
  _({ type: la, implicit: !0, context: 0 })
@@ -16962,11 +16975,11 @@ Qn.NAME = "ASN";
16962
16975
  class Pt extends Qn {
16963
16976
  constructor(...e) {
16964
16977
  let n;
16965
- W.isBufferSource(e[0]) ? n = W.toArrayBuffer(e[0]) : n = H.serialize(new Dt({
16978
+ W.isBufferSource(e[0]) ? n = W.toArrayBuffer(e[0]) : n = H.serialize(new Ut({
16966
16979
  extnID: e[0],
16967
16980
  critical: e[1],
16968
16981
  extnValue: new Se(W.toArrayBuffer(e[2]))
16969
- })), super(n, Dt);
16982
+ })), super(n, Ut);
16970
16983
  }
16971
16984
  onInit(e) {
16972
16985
  this.type = e.extnID, this.critical = e.critical, this.value = e.extnValue.buffer;
@@ -17497,13 +17510,13 @@ class Gt extends Sn {
17497
17510
  }
17498
17511
  }
17499
17512
  constructor(e) {
17500
- Sn.isAsnEncoded(e) ? super(e, Ht) : super(e), this.tag = jt.PublicKeyTag;
17513
+ Sn.isAsnEncoded(e) ? super(e, Vt) : super(e), this.tag = jt.PublicKeyTag;
17501
17514
  }
17502
17515
  async export(...e) {
17503
17516
  let n, r = ["verify"], i = { hash: "SHA-256", ...this.algorithm };
17504
17517
  e.length > 1 ? (i = e[0] || i, r = e[1] || r, n = e[2] || ot.get()) : n = e[0] || ot.get();
17505
17518
  let s = this.rawData;
17506
- const a = H.parse(this.rawData, Ht);
17519
+ const a = H.parse(this.rawData, Vt);
17507
17520
  return a.algorithm.algorithm === Zi && (s = U3(a, s)), n.subtle.importKey("spki", s, i, !0, r);
17508
17521
  }
17509
17522
  onInit(e) {
@@ -17524,11 +17537,11 @@ class Gt extends Sn {
17524
17537
  async getKeyIdentifier(...e) {
17525
17538
  let n, r = "SHA-1";
17526
17539
  e.length === 1 ? typeof e[0] == "string" ? (r = e[0], n = ot.get()) : n = e[0] : e.length === 2 ? (r = e[0], n = e[1]) : n = ot.get();
17527
- const i = H.parse(this.rawData, Ht);
17540
+ const i = H.parse(this.rawData, Vt);
17528
17541
  return await n.subtle.digest(r, i.subjectPublicKey);
17529
17542
  }
17530
17543
  toTextObject() {
17531
- const e = this.toTextObjectEmpty(), n = H.parse(this.rawData, Ht);
17544
+ const e = this.toTextObjectEmpty(), n = H.parse(this.rawData, Vt);
17532
17545
  switch (e.Algorithm = xr.serializeAlgorithm(n.algorithm), n.algorithm.algorithm) {
17533
17546
  case lo:
17534
17547
  e["EC Point"] = n.subjectPublicKey;
@@ -17878,7 +17891,7 @@ class ap extends Ni {
17878
17891
  else {
17879
17892
  const r = e[0], i = new Gn();
17880
17893
  for (const s of r)
17881
- i.push(H.parse(s.rawData, Dt));
17894
+ i.push(H.parse(s.rawData, Ut));
17882
17895
  super(rp, [H.serialize(i)]);
17883
17896
  }
17884
17897
  (n = this.items) !== null && n !== void 0 || (this.items = []);
@@ -18312,8 +18325,8 @@ class F3 {
18312
18325
  notBefore: a,
18313
18326
  notAfter: l
18314
18327
  }),
18315
- extensions: new Gn(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((b) => H.parse(b.rawData, Dt))) || []),
18316
- subjectPublicKeyInfo: H.parse(i, Ht)
18328
+ extensions: new Gn(((r = e.extensions) === null || r === void 0 ? void 0 : r.map((b) => H.parse(b.rawData, Ut))) || []),
18329
+ subjectPublicKeyInfo: H.parse(i, Vt)
18317
18330
  })
18318
18331
  });
18319
18332
  if (e.subject) {
@@ -24721,7 +24734,7 @@ async function sg(t, { code: e, state: n }) {
24721
24734
  isSocial: !0,
24722
24735
  ip: t.var.ip
24723
24736
  });
24724
- return dn(t, {
24737
+ return cn(t, {
24725
24738
  client: a,
24726
24739
  authParams: s.authParams,
24727
24740
  loginSession: s,
@@ -25364,7 +25377,7 @@ async function Ik(t, e) {
25364
25377
  state: r.state,
25365
25378
  nonce: r.nonce,
25366
25379
  // Ensure WEB_MESSAGE is explicitly passed, as createAuthResponse relies on it
25367
- response_mode: an.WEB_MESSAGE,
25380
+ response_mode: vn.WEB_MESSAGE,
25368
25381
  // Pass through other relevant authParams from the loginSession or original request if necessary
25369
25382
  // For authorization_code grant, these are usually fixed or derived, not directly from params
25370
25383
  client_id: n.client_id,
@@ -25431,7 +25444,7 @@ async function Tk(t, e) {
25431
25444
  client_id: n.client_id,
25432
25445
  audience: s == null ? void 0 : s.audience,
25433
25446
  scope: s == null ? void 0 : s.scopes,
25434
- response_mode: an.WEB_MESSAGE
25447
+ response_mode: vn.WEB_MESSAGE
25435
25448
  }
25436
25449
  };
25437
25450
  }
@@ -26567,7 +26580,7 @@ function wo(t) {
26567
26580
  return n.__proto__ || Object.getPrototypeOf(n);
26568
26581
  }, wo(t);
26569
26582
  }
26570
- var yn = /* @__PURE__ */ function(t) {
26583
+ var _n = /* @__PURE__ */ function(t) {
26571
26584
  V5(n, t);
26572
26585
  var e = H5(n);
26573
26586
  function n(r) {
@@ -26769,7 +26782,7 @@ function h6(t) {
26769
26782
  function g6(t, e) {
26770
26783
  var n = e.extractFormattedPhoneNumber, r = f6(t);
26771
26784
  if (!h6(r))
26772
- throw new yn("NOT_A_NUMBER");
26785
+ throw new _n("NOT_A_NUMBER");
26773
26786
  var i;
26774
26787
  if (r === null)
26775
26788
  i = n(t) || "";
@@ -26787,27 +26800,27 @@ function g6(t, e) {
26787
26800
  var m6 = 250, _6 = new RegExp("[" + bp + Zt + "]"), y6 = new RegExp("[^" + Zt + "#]+$");
26788
26801
  function w6(t, e, n) {
26789
26802
  if (e = e || {}, n = new $t(n), e.defaultCountry && !n.hasCountry(e.defaultCountry))
26790
- throw e.v2 ? new yn("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
26803
+ throw e.v2 ? new _n("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
26791
26804
  var r = b6(t, e.v2, e.extract), i = r.number, s = r.ext, a = r.error;
26792
26805
  if (!i) {
26793
26806
  if (e.v2)
26794
- throw a === "TOO_SHORT" ? new yn("TOO_SHORT") : new yn("NOT_A_NUMBER");
26807
+ throw a === "TOO_SHORT" ? new _n("TOO_SHORT") : new _n("NOT_A_NUMBER");
26795
26808
  return {};
26796
26809
  }
26797
26810
  var l = k6(i, e.defaultCountry, e.defaultCallingCode, n), c = l.country, d = l.nationalNumber, u = l.countryCallingCode, f = l.countryCallingCodeSource, h = l.carrierCode;
26798
26811
  if (!n.hasSelectedNumberingPlan()) {
26799
26812
  if (e.v2)
26800
- throw new yn("INVALID_COUNTRY");
26813
+ throw new _n("INVALID_COUNTRY");
26801
26814
  return {};
26802
26815
  }
26803
26816
  if (!d || d.length < vp) {
26804
26817
  if (e.v2)
26805
- throw new yn("TOO_SHORT");
26818
+ throw new _n("TOO_SHORT");
26806
26819
  return {};
26807
26820
  }
26808
26821
  if (d.length > e5) {
26809
26822
  if (e.v2)
26810
- throw new yn("TOO_LONG");
26823
+ throw new _n("TOO_LONG");
26811
26824
  return {};
26812
26825
  }
26813
26826
  if (e.v2) {
@@ -26829,7 +26842,7 @@ function v6(t, e, n) {
26829
26842
  if (t) {
26830
26843
  if (t.length > m6) {
26831
26844
  if (n)
26832
- throw new yn("TOO_LONG");
26845
+ throw new _n("TOO_LONG");
26833
26846
  return;
26834
26847
  }
26835
26848
  if (e === !1)
@@ -27033,7 +27046,7 @@ function R6(t, e, n) {
27033
27046
  try {
27034
27047
  return S6(t, e, n);
27035
27048
  } catch (r) {
27036
- if (!(r instanceof yn)) throw r;
27049
+ if (!(r instanceof _n)) throw r;
27037
27050
  }
27038
27051
  }
27039
27052
  function B6() {
@@ -27209,7 +27222,7 @@ async function Ey(t, {
27209
27222
  }
27210
27223
  async function kp(t, e) {
27211
27224
  const n = await Ey(t, e);
27212
- return dn(t, {
27225
+ return cn(t, {
27213
27226
  authParams: n.authParams,
27214
27227
  client: n.client,
27215
27228
  user: n.user,
@@ -27956,7 +27969,7 @@ const W6 = new ce().openapi(
27956
27969
  request: {
27957
27970
  query: o.object({
27958
27971
  scope: o.string(),
27959
- response_type: o.nativeEnum(Ut),
27972
+ response_type: o.nativeEnum(Ht),
27960
27973
  redirect_uri: o.string(),
27961
27974
  state: o.string(),
27962
27975
  nonce: o.string().optional(),
@@ -28158,7 +28171,7 @@ async function Oy(t, e, n, r, i) {
28158
28171
  }
28159
28172
  }
28160
28173
  );
28161
- return a instanceof Response ? a : (s.user = a, dn(t, {
28174
+ return a instanceof Response ? a : (s.user = a, cn(t, {
28162
28175
  ...s,
28163
28176
  ticketAuth: i,
28164
28177
  strategy: "Username-Password-Authentication"
@@ -28357,7 +28370,7 @@ async function Z6({
28357
28370
  if ((h == null ? void 0 : h.email) === s)
28358
28371
  return await t.env.data.loginSessions.update(n.tenant.id, f.id, {
28359
28372
  session_id: e.id
28360
- }), dn(t, {
28373
+ }), cn(t, {
28361
28374
  client: n,
28362
28375
  loginSession: { ...f, session_id: e.id },
28363
28376
  authParams: r,
@@ -28424,7 +28437,7 @@ async function Q6(t, e, n, r, i) {
28424
28437
  client: c,
28425
28438
  loginSession: l
28426
28439
  });
28427
- return dn(t, {
28440
+ return cn(t, {
28428
28441
  authParams: {
28429
28442
  scope: (h = l.authParams) == null ? void 0 : h.scope,
28430
28443
  ...r
@@ -28505,7 +28518,7 @@ async function ex({
28505
28518
  },
28506
28519
  user: E,
28507
28520
  session_id: n.id
28508
- }, R = u === Ut.CODE ? await U0(t, {
28521
+ }, R = u === Ht.CODE ? await U0(t, {
28509
28522
  user: E,
28510
28523
  client: e,
28511
28524
  authParams: M.authParams,
@@ -28562,8 +28575,8 @@ const tx = ["email", "sms", "Username-Password-Authentication"], nx = new ce().o
28562
28575
  scope: o.string().optional(),
28563
28576
  state: o.string(),
28564
28577
  prompt: o.string().optional(),
28565
- response_mode: o.nativeEnum(an).optional(),
28566
- response_type: o.nativeEnum(Ut).optional(),
28578
+ response_mode: o.nativeEnum(vn).optional(),
28579
+ response_type: o.nativeEnum(Ht).optional(),
28567
28580
  audience: o.string().optional(),
28568
28581
  connection: o.string().optional(),
28569
28582
  nonce: o.string().optional(),
@@ -29071,7 +29084,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29071
29084
  }) => /* @__PURE__ */ p("div", { className: _e("p-6 pt-0", e), children: t }), ax = ({
29072
29085
  children: t,
29073
29086
  className: e
29074
- }) => /* @__PURE__ */ p("div", { className: _e("flex items-center p-6 pt-0", e), children: t }), cn = ({
29087
+ }) => /* @__PURE__ */ p("div", { className: _e("flex items-center p-6 pt-0", e), children: t }), ln = ({
29075
29088
  id: t,
29076
29089
  type: e = "text",
29077
29090
  name: n,
@@ -29148,7 +29161,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29148
29161
  style: n,
29149
29162
  children: r
29150
29163
  }
29151
- ), ut = ({ children: t, className: e }) => /* @__PURE__ */ p("div", { className: _e("mb-2 text-sm text-red", e), children: t }), gn = ({ theme: t, branding: e }) => {
29164
+ ), ut = ({ children: t, className: e }) => /* @__PURE__ */ p("div", { className: _e("mb-2 text-sm text-red", e), children: t }), hn = ({ theme: t, branding: e }) => {
29152
29165
  var r;
29153
29166
  const n = ((r = t == null ? void 0 : t.widget) == null ? void 0 : r.logo_url) || (e == null ? void 0 : e.logo_url);
29154
29167
  return n ? /* @__PURE__ */ p("div", { className: "inline-flex h-9 items-center", children: /* @__PURE__ */ p("img", { src: n, className: "h-full w-auto", alt: "Logo" }) }) : /* @__PURE__ */ p(kl, {});
@@ -29193,7 +29206,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29193
29206
  }, V = ((Zo = e == null ? void 0 : e.widget) == null ? void 0 : Zo.logo_position) || "center", q = V === "left" ? "text-left" : V === "right" ? "text-right" : "text-center", Y = ((Yo = e == null ? void 0 : e.widget) == null ? void 0 : Yo.logo_url) || (n == null ? void 0 : n.logo_url), ae = V !== "none" && Y;
29194
29207
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ p(Tn, { style: A, className: "border", children: [
29195
29208
  /* @__PURE__ */ p(Pn, { children: [
29196
- ae && /* @__PURE__ */ p("div", { className: _e("mb-4", q), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
29209
+ ae && /* @__PURE__ */ p("div", { className: _e("mb-4", q), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
29197
29210
  /* @__PURE__ */ p(Rn, { style: k, children: w.t("welcome", "Login") }),
29198
29211
  /* @__PURE__ */ p(Bn, { style: $, children: w.t("login_description_template", {
29199
29212
  authMethod: w.t(f, {
@@ -29209,7 +29222,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29209
29222
  c && d ? "Email or Phone Number" : c ? "Email" : "Phone Number"
29210
29223
  ) }),
29211
29224
  /* @__PURE__ */ p(
29212
- cn,
29225
+ ln,
29213
29226
  {
29214
29227
  id: "username",
29215
29228
  name: "username",
@@ -29388,7 +29401,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29388
29401
  style: s,
29389
29402
  children: /* @__PURE__ */ p("div", { className: "row-up-left w-[calc(100%-theme(space.2)-theme(space.2))] max-w-[1295px] !flex-nowrap sm:w-[calc(100%-theme(space.16)-theme(space.16))]", children: /* @__PURE__ */ p("div", { className: "column-left w-full sm:w-auto", children: [
29390
29403
  /* @__PURE__ */ p("div", { className: "relative flex w-full flex-col rounded-2xl bg-white px-5 py-10 dark:bg-gray-800 dark:text-white sm:min-h-[700px] sm:max-w-md sm:px-14 sm:py-14 md:min-w-[448px] short:min-h-[558px] min-h-[calc(100vh-83px)]", children: [
29391
- /* @__PURE__ */ p("div", { className: "mb-16", children: /* @__PURE__ */ p(gn, { theme: n, branding: r }) }),
29404
+ /* @__PURE__ */ p("div", { className: "mb-16", children: /* @__PURE__ */ p(hn, { theme: n, branding: r }) }),
29392
29405
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col", children: [
29393
29406
  e,
29394
29407
  /* @__PURE__ */ p(lx, { theme: n, branding: r, client: i })
@@ -29507,7 +29520,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29507
29520
  ]
29508
29521
  }
29509
29522
  );
29510
- }, mn = ({ children: t, className: e }) => /* @__PURE__ */ p("form", { id: "form", method: "post", className: e, children: t }), nc = ({
29523
+ }, gn = ({ children: t, className: e }) => /* @__PURE__ */ p("form", { id: "form", method: "post", className: e, children: t }), nc = ({
29511
29524
  error: t,
29512
29525
  theme: e,
29513
29526
  branding: n,
@@ -29541,7 +29554,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29541
29554
  defaultValue: "Sign in with your {{authMethod}}"
29542
29555
  }) }),
29543
29556
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
29544
- u && /* @__PURE__ */ p(mn, { className: "mb-7", children: [
29557
+ u && /* @__PURE__ */ p(gn, { className: "mb-7", children: [
29545
29558
  /* @__PURE__ */ p(
29546
29559
  "input",
29547
29560
  {
@@ -29897,7 +29910,7 @@ const _e = /* @__PURE__ */ v0(sx), Tn = ({
29897
29910
  language: E
29898
29911
  }), t.redirect(`/u/enter-code?state=${n}`);
29899
29912
  }
29900
- ), Mt = (t) => /* @__PURE__ */ p(
29913
+ ), Dt = (t) => /* @__PURE__ */ p(
29901
29914
  "a",
29902
29915
  {
29903
29916
  className: "block text-primary hover:text-primaryHover text-center",
@@ -29911,7 +29924,7 @@ var vo = "_hp", yx = {
29911
29924
  }, wx = {
29912
29925
  svg: "2000/svg",
29913
29926
  math: "1998/Math/MathML"
29914
- }, bo = [], iu = /* @__PURE__ */ new WeakMap(), gi = void 0, vx = () => gi, wn = (t) => "t" in t, rc = {
29927
+ }, bo = [], iu = /* @__PURE__ */ new WeakMap(), gi = void 0, vx = () => gi, yn = (t) => "t" in t, rc = {
29915
29928
  onClick: ["click", !1]
29916
29929
  }, Bg = (t) => {
29917
29930
  if (!t.startsWith("on"))
@@ -29987,7 +30000,7 @@ var vo = "_hp", yx = {
29987
30000
  var s, a;
29988
30001
  (s = t.vR) != null && s.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((a = t[Me][1][Dy]) == null || a.forEach((l) => i.push(l))), t.vC.forEach((l) => {
29989
30002
  var c;
29990
- if (wn(l))
30003
+ if (yn(l))
29991
30004
  n.push(l);
29992
30005
  else if (typeof l.tag == "function" || l.tag === "") {
29993
30006
  l.c = e;
@@ -30009,7 +30022,7 @@ var vo = "_hp", yx = {
30009
30022
  }
30010
30023
  }, By = (t) => {
30011
30024
  var e, n, r, i, s, a;
30012
- wn(t) || ((n = (e = t[Me]) == null ? void 0 : e[1][Dy]) == null || n.forEach((l) => {
30025
+ yn(t) || ((n = (e = t[Me]) == null ? void 0 : e[1][Dy]) == null || n.forEach((l) => {
30013
30026
  var c;
30014
30027
  return (c = l[2]) == null ? void 0 : c.call(l);
30015
30028
  }), (r = iu.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(By)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && (Vi.delete(t), vs.delete(t), delete t[Me][3], t.a = !0);
@@ -30042,7 +30055,7 @@ var vo = "_hp", yx = {
30042
30055
  m = h.e, h.s = !1;
30043
30056
  else {
30044
30057
  const y = n || !h.e;
30045
- wn(h) ? (h.e && h.d && (h.e.textContent = h.t), h.d = !1, m = h.e || (h.e = document.createTextNode(h.t))) : (m = h.e || (h.e = h.n ? document.createElementNS(h.n, h.tag) : document.createElement(h.tag)), bx(m, h.props, h.pP), Uy(h, m, y));
30058
+ yn(h) ? (h.e && h.d && (h.e.textContent = h.t), h.d = !1, m = h.e || (h.e = document.createTextNode(h.t))) : (m = h.e || (h.e = h.n ? document.createElementNS(h.n, h.tag) : document.createElement(h.tag)), bx(m, h.props, h.pP), Uy(h, m, y));
30046
30059
  }
30047
30060
  h.tag === vo ? l-- : n ? m.parentNode || e.appendChild(m) : a[l] !== m && a[l - 1] !== m && (a[l + 1] === m ? e.appendChild(a[l]) : e.insertBefore(m, c || a[l] || null));
30048
30061
  }
@@ -30071,12 +30084,12 @@ var vo = "_hp", yx = {
30071
30084
  let b;
30072
30085
  if (f && f.length) {
30073
30086
  const E = f.findIndex(
30074
- wn(v) ? (P) => wn(P) : v.key !== void 0 ? (P) => P.key === v.key && P.tag === v.tag : (P) => P.tag === v.tag
30087
+ yn(v) ? (P) => yn(P) : v.key !== void 0 ? (P) => P.key === v.key && P.tag === v.tag : (P) => P.tag === v.tag
30075
30088
  );
30076
30089
  E !== -1 && (b = f[E], f.splice(E, 1));
30077
30090
  }
30078
30091
  if (b)
30079
- if (wn(v))
30092
+ if (yn(v))
30080
30093
  b.t !== v.t && (b.t = v.t, b.d = !0), v = b;
30081
30094
  else {
30082
30095
  const E = b.pP = b.props;
@@ -30086,12 +30099,12 @@ var vo = "_hp", yx = {
30086
30099
  }
30087
30100
  v = b;
30088
30101
  }
30089
- else if (!wn(v) && gi) {
30102
+ else if (!yn(v) && gi) {
30090
30103
  const E = Ci(gi);
30091
30104
  E && (v.n = E);
30092
30105
  }
30093
- if (!wn(v) && !v.s && (ou(t, v), delete v.f), h.push(v), m && !m.s && !v.s)
30094
- for (let E = m; E && !wn(E); E = (d = E.vC) == null ? void 0 : d.at(-1))
30106
+ if (!yn(v) && !v.s && (ou(t, v), delete v.f), h.push(v), m && !m.s && !v.s)
30107
+ for (let E = m; E && !yn(E); E = (d = E.vC) == null ? void 0 : d.at(-1))
30095
30108
  E.nN = v;
30096
30109
  m = v;
30097
30110
  }
@@ -30516,7 +30529,7 @@ const Nr = (t) => {
30516
30529
  }
30517
30530
  ) }),
30518
30531
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
30519
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
30532
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
30520
30533
  /* @__PURE__ */ p(
30521
30534
  "input",
30522
30535
  {
@@ -30565,7 +30578,7 @@ const Nr = (t) => {
30565
30578
  )
30566
30579
  ] })
30567
30580
  ] }),
30568
- /* @__PURE__ */ p(Mt, { state: i })
30581
+ /* @__PURE__ */ p(Dt, { state: i })
30569
30582
  ] })
30570
30583
  ]
30571
30584
  }
@@ -30644,7 +30657,7 @@ const Nr = (t) => {
30644
30657
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: [
30645
30658
  /* @__PURE__ */ p(Tn, { style: R, className: "border", children: [
30646
30659
  /* @__PURE__ */ p(Pn, { children: [
30647
- j && /* @__PURE__ */ p("div", { className: _e("mb-4", G), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
30660
+ j && /* @__PURE__ */ p("div", { className: _e("mb-4", G), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
30648
30661
  /* @__PURE__ */ p(Rn, { style: L, children: w.t("verify_your_email", "Verify your email") }),
30649
30662
  /* @__PURE__ */ p(Bn, { style: J, children: /* @__PURE__ */ p(
30650
30663
  Nr,
@@ -30758,14 +30771,14 @@ const Nr = (t) => {
30758
30771
  ] })
30759
30772
  ] }) }) })
30760
30773
  ] }),
30761
- /* @__PURE__ */ p(Mt, { state: i })
30774
+ /* @__PURE__ */ p(Dt, { state: i })
30762
30775
  ] });
30763
30776
  }, Yt = (t) => {
30764
30777
  const { message: e, theme: n, branding: r, client: i, pageTitle: s, state: a } = t;
30765
30778
  return /* @__PURE__ */ p(Ge, { title: "Login", theme: n, branding: r, client: i, children: [
30766
30779
  s ? /* @__PURE__ */ p("div", { className: "mb-4 text-2xl font-medium", children: s }) : "",
30767
30780
  /* @__PURE__ */ p("div", { className: "text-gray-300 mb-12", children: e }),
30768
- a ? /* @__PURE__ */ p(Mt, { state: a }) : ""
30781
+ a ? /* @__PURE__ */ p(Dt, { state: a }) : ""
30769
30782
  ] });
30770
30783
  }, qx = new ce().openapi(
30771
30784
  I({
@@ -31015,9 +31028,9 @@ const Nr = (t) => {
31015
31028
  /* @__PURE__ */ p(Je, { className: "text-base", name: "info-bubble" }),
31016
31029
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
31017
31030
  ] }),
31018
- /* @__PURE__ */ p(Mt, { state: i })
31031
+ /* @__PURE__ */ p(Dt, { state: i })
31019
31032
  ] }),
31020
- /* @__PURE__ */ p(Mt, { state: i })
31033
+ /* @__PURE__ */ p(Dt, { state: i })
31021
31034
  ]
31022
31035
  }
31023
31036
  );
@@ -31102,7 +31115,7 @@ const lc = (t) => {
31102
31115
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("enter_password") }),
31103
31116
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("enter_password_description") }),
31104
31117
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
31105
- /* @__PURE__ */ p(mn, { className: "mb-7", children: [
31118
+ /* @__PURE__ */ p(gn, { className: "mb-7", children: [
31106
31119
  /* @__PURE__ */ p(
31107
31120
  "input",
31108
31121
  {
@@ -31146,7 +31159,7 @@ const lc = (t) => {
31146
31159
  }
31147
31160
  )
31148
31161
  ] }),
31149
- /* @__PURE__ */ p(Mt, { state: s })
31162
+ /* @__PURE__ */ p(Dt, { state: s })
31150
31163
  ] }),
31151
31164
  m4(Wg || (Wg = Wx([`
31152
31165
  <script>
@@ -31210,7 +31223,7 @@ const lc = (t) => {
31210
31223
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
31211
31224
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
31212
31225
  /* @__PURE__ */ p(Pn, { children: [
31213
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
31226
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
31214
31227
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("enter_password", "Enter your password") }),
31215
31228
  /* @__PURE__ */ p(Bn, { style: ee, children: w.t(
31216
31229
  "enter_password_description",
@@ -31221,7 +31234,7 @@ const lc = (t) => {
31221
31234
  /* @__PURE__ */ p("div", { className: "grid gap-2", children: [
31222
31235
  /* @__PURE__ */ p(Xt, { htmlFor: "email", style: ee, children: w.t("email", "Email") }),
31223
31236
  /* @__PURE__ */ p(
31224
- cn,
31237
+ ln,
31225
31238
  {
31226
31239
  id: "email",
31227
31240
  name: "username",
@@ -31248,7 +31261,7 @@ const lc = (t) => {
31248
31261
  ] }),
31249
31262
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31250
31263
  /* @__PURE__ */ p(
31251
- cn,
31264
+ ln,
31252
31265
  {
31253
31266
  id: "password",
31254
31267
  name: "password",
@@ -31554,7 +31567,7 @@ const lc = (t) => {
31554
31567
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("create_account_title") }),
31555
31568
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("create_account_description") }),
31556
31569
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
31557
- /* @__PURE__ */ p(mn, { children: [
31570
+ /* @__PURE__ */ p(gn, { children: [
31558
31571
  /* @__PURE__ */ p("input", { type: "hidden", name: "code", value: l }),
31559
31572
  /* @__PURE__ */ p(
31560
31573
  "input",
@@ -31589,7 +31602,7 @@ const lc = (t) => {
31589
31602
  e && /* @__PURE__ */ p(ut, { children: e }),
31590
31603
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("continue") })
31591
31604
  ] }),
31592
- /* @__PURE__ */ p(Mt, { state: a })
31605
+ /* @__PURE__ */ p(Dt, { state: a })
31593
31606
  ] })
31594
31607
  ]
31595
31608
  }
@@ -31629,7 +31642,7 @@ const lc = (t) => {
31629
31642
  }, C = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_position) || "center", A = C === "left" ? "text-left" : C === "right" ? "text-right" : "text-center", k = ((Un = e == null ? void 0 : e.widget) == null ? void 0 : Un.logo_url) || (n == null ? void 0 : n.logo_url), $ = C !== "none" && k;
31630
31643
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ p(Tn, { style: re, className: "border", children: [
31631
31644
  /* @__PURE__ */ p(Pn, { children: [
31632
- $ && /* @__PURE__ */ p("div", { className: _e("mb-4", A), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
31645
+ $ && /* @__PURE__ */ p("div", { className: _e("mb-4", A), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
31633
31646
  /* @__PURE__ */ p(Rn, { style: ee, children: w.t("create_account_title", "Create Account") }),
31634
31647
  /* @__PURE__ */ p(Bn, { style: G, children: w.t("create_account_description", "Sign up to get started") })
31635
31648
  ] }),
@@ -31647,7 +31660,7 @@ const lc = (t) => {
31647
31660
  /* @__PURE__ */ p("div", { className: "space-y-2", children: [
31648
31661
  /* @__PURE__ */ p(Xt, { htmlFor: "username", style: G, children: w.t("email_label", "Email") }),
31649
31662
  /* @__PURE__ */ p(
31650
- cn,
31663
+ ln,
31651
31664
  {
31652
31665
  id: "username",
31653
31666
  type: "email",
@@ -31665,7 +31678,7 @@ const lc = (t) => {
31665
31678
  /* @__PURE__ */ p(Xt, { htmlFor: "password", style: G, children: w.t("password", "Password") }),
31666
31679
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31667
31680
  /* @__PURE__ */ p(
31668
- cn,
31681
+ ln,
31669
31682
  {
31670
31683
  id: "password",
31671
31684
  name: "password",
@@ -31742,7 +31755,7 @@ const lc = (t) => {
31742
31755
  /* @__PURE__ */ p(Xt, { htmlFor: "re-enter-password", style: G, children: w.t("confirm_password", "Confirm Password") }),
31743
31756
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
31744
31757
  /* @__PURE__ */ p(
31745
- cn,
31758
+ ln,
31746
31759
  {
31747
31760
  id: "re-enter-password",
31748
31761
  name: "re-enter-password",
@@ -32125,7 +32138,7 @@ const lc = (t) => {
32125
32138
  },
32126
32139
  l
32127
32140
  );
32128
- return dn(t, M);
32141
+ return cn(t, M);
32129
32142
  } catch (h) {
32130
32143
  let m = w.t("unknown_error_message"), y = 400;
32131
32144
  return h instanceof S ? (m = h.message || m, y = h.status === 400 ? 400 : 500) : h instanceof Fr ? m = h.message || m : h instanceof Error && (m = h.message || m, y = 500), c ? t.html(
@@ -32180,7 +32193,7 @@ const lc = (t) => {
32180
32193
  children: [
32181
32194
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("reset_password_title") }),
32182
32195
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: `${w.t("reset_password_description")} ${s}` }),
32183
- /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(mn, { children: [
32196
+ /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(gn, { children: [
32184
32197
  /* @__PURE__ */ p(
32185
32198
  su,
32186
32199
  {
@@ -32235,7 +32248,7 @@ const lc = (t) => {
32235
32248
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
32236
32249
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
32237
32250
  /* @__PURE__ */ p(Pn, { children: [
32238
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
32251
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
32239
32252
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("reset_password_title", "Reset Password") }),
32240
32253
  /* @__PURE__ */ p(Bn, { style: ee, children: `${w.t("reset_password_description", "Set a new password for")} ${i}` })
32241
32254
  ] }),
@@ -32252,7 +32265,7 @@ const lc = (t) => {
32252
32265
  /* @__PURE__ */ p(Xt, { htmlFor: "password", style: ee, children: w.t("new_password", "New Password") }),
32253
32266
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
32254
32267
  /* @__PURE__ */ p(
32255
- cn,
32268
+ ln,
32256
32269
  {
32257
32270
  id: "password",
32258
32271
  name: "password",
@@ -32329,7 +32342,7 @@ const lc = (t) => {
32329
32342
  /* @__PURE__ */ p(Xt, { htmlFor: "re-enter-password", style: ee, children: w.t("confirm_password", "Confirm Password") }),
32330
32343
  /* @__PURE__ */ p("div", { className: "relative", "data-password-toggle": !0, children: [
32331
32344
  /* @__PURE__ */ p(
32332
- cn,
32345
+ ln,
32333
32346
  {
32334
32347
  id: "re-enter-password",
32335
32348
  name: "re-enter-password",
@@ -32702,7 +32715,7 @@ const lc = (t) => {
32702
32715
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("forgot_password_title") }),
32703
32716
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("forgot_password_description") }),
32704
32717
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
32705
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
32718
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
32706
32719
  /* @__PURE__ */ p(
32707
32720
  "input",
32708
32721
  {
@@ -32717,7 +32730,7 @@ const lc = (t) => {
32717
32730
  e && /* @__PURE__ */ p(ut, { children: e }),
32718
32731
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("forgot_password_cta") })
32719
32732
  ] }),
32720
- /* @__PURE__ */ p(Mt, { state: a })
32733
+ /* @__PURE__ */ p(Dt, { state: a })
32721
32734
  ] })
32722
32735
  ]
32723
32736
  }
@@ -32756,7 +32769,7 @@ const lc = (t) => {
32756
32769
  }, j = ((rt = e == null ? void 0 : e.widget) == null ? void 0 : rt.logo_position) || "center", C = j === "left" ? "text-left" : j === "right" ? "text-right" : "text-center", A = ((it = e == null ? void 0 : e.widget) == null ? void 0 : it.logo_url) || (n == null ? void 0 : n.logo_url), k = j !== "none" && A;
32757
32770
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: J, className: "border", children: [
32758
32771
  /* @__PURE__ */ p(Pn, { children: [
32759
- k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
32772
+ k && /* @__PURE__ */ p("div", { className: _e("mb-4", C), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
32760
32773
  /* @__PURE__ */ p(Rn, { style: re, children: w.t("forgot_password_title", "Forgot Password") }),
32761
32774
  /* @__PURE__ */ p(Bn, { style: ee, children: w.t(
32762
32775
  "forgot_password_description",
@@ -32784,7 +32797,7 @@ const lc = (t) => {
32784
32797
  }
32785
32798
  ),
32786
32799
  /* @__PURE__ */ p(
32787
- cn,
32800
+ ln,
32788
32801
  {
32789
32802
  id: "username",
32790
32803
  type: "email",
@@ -32831,7 +32844,7 @@ const lc = (t) => {
32831
32844
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
32832
32845
  ] })
32833
32846
  ] }),
32834
- /* @__PURE__ */ p(Mt, { state: i })
32847
+ /* @__PURE__ */ p(Dt, { state: i })
32835
32848
  ] });
32836
32849
  }, t8 = new ce().openapi(
32837
32850
  I({
@@ -32961,7 +32974,7 @@ const lc = (t) => {
32961
32974
  he("continue_with_sso_provider_headline")
32962
32975
  ] }),
32963
32976
  /* @__PURE__ */ p("div", { className: "space-y-6", children: [
32964
- /* @__PURE__ */ p(mn, { children: /* @__PURE__ */ p(Ke, { className: "!text-base", children: /* @__PURE__ */ p("span", { children: w.t("yes_continue_with_existing_account") }) }) }),
32977
+ /* @__PURE__ */ p(gn, { children: /* @__PURE__ */ p(Ke, { className: "!text-base", children: /* @__PURE__ */ p("span", { children: w.t("yes_continue_with_existing_account") }) }) }),
32965
32978
  /* @__PURE__ */ p(
32966
32979
  "a",
32967
32980
  {
@@ -33004,7 +33017,7 @@ const lc = (t) => {
33004
33017
  }, L = ((Ce = t == null ? void 0 : t.widget) == null ? void 0 : Ce.logo_position) || "center", J = L === "left" ? "text-left" : L === "right" ? "text-right" : "text-center", re = ((je = t == null ? void 0 : t.widget) == null ? void 0 : je.logo_url) || (e == null ? void 0 : e.logo_url), ee = L !== "none" && re;
33005
33018
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", i), children: /* @__PURE__ */ p(Tn, { style: b, className: "border", children: [
33006
33019
  /* @__PURE__ */ p(Pn, { children: [
33007
- ee && /* @__PURE__ */ p("div", { className: _e("mb-4", J), children: /* @__PURE__ */ p(gn, { theme: t, branding: e }) }),
33020
+ ee && /* @__PURE__ */ p("div", { className: _e("mb-4", J), children: /* @__PURE__ */ p(hn, { theme: t, branding: e }) }),
33008
33021
  /* @__PURE__ */ p(Rn, { style: E, children: w.t("continue_with_account", "Continue with account") }),
33009
33022
  /* @__PURE__ */ p(Bn, { style: P, children: [
33010
33023
  /* @__PURE__ */ p(
@@ -33211,7 +33224,7 @@ const lc = (t) => {
33211
33224
  await e.data.loginSessions.update(s.tenant.id, a.id, {
33212
33225
  session_id: c.id
33213
33226
  });
33214
- const u = await dn(t, {
33227
+ const u = await cn(t, {
33215
33228
  user: d,
33216
33229
  authParams: a.authParams,
33217
33230
  client: s,
@@ -33442,7 +33455,7 @@ const lc = (t) => {
33442
33455
  /* @__PURE__ */ p("div", { className: "font-medium text-base text-gray-800", children: r.email || w.t("no_email_address") })
33443
33456
  ] }),
33444
33457
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
33445
- /* @__PURE__ */ p(mn, { children: [
33458
+ /* @__PURE__ */ p(gn, { children: [
33446
33459
  /* @__PURE__ */ p(
33447
33460
  "input",
33448
33461
  {
@@ -33688,7 +33701,7 @@ const lc = (t) => {
33688
33701
  }
33689
33702
  ) }),
33690
33703
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: [
33691
- /* @__PURE__ */ p(mn, { className: "pt-2", children: [
33704
+ /* @__PURE__ */ p(gn, { className: "pt-2", children: [
33692
33705
  /* @__PURE__ */ p(
33693
33706
  "input",
33694
33707
  {
@@ -33968,7 +33981,7 @@ const lc = (t) => {
33968
33981
  children: [
33969
33982
  /* @__PURE__ */ p("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: w.t("create_password_account_title") }),
33970
33983
  /* @__PURE__ */ p("div", { className: "mb-6 text-gray-300", children: w.t("enter_email_for_verification_description") }),
33971
- /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(mn, { className: "pt-2", children: [
33984
+ /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col justify-center", children: /* @__PURE__ */ p(gn, { className: "pt-2", children: [
33972
33985
  /* @__PURE__ */ p(
33973
33986
  "input",
33974
33987
  {
@@ -33983,7 +33996,7 @@ const lc = (t) => {
33983
33996
  ),
33984
33997
  /* @__PURE__ */ p(Ke, { className: "sm:mt-4 !text-base", children: w.t("send") })
33985
33998
  ] }) }),
33986
- /* @__PURE__ */ p(Mt, { state: s })
33999
+ /* @__PURE__ */ p(Dt, { state: s })
33987
34000
  ]
33988
34001
  }
33989
34002
  );
@@ -34213,7 +34226,7 @@ const lc = (t) => {
34213
34226
  }, R = ((fe = t == null ? void 0 : t.widget) == null ? void 0 : fe.logo_position) || "center", L = R === "left" ? "text-left" : R === "right" ? "text-right" : "text-center", J = ((Ce = t == null ? void 0 : t.widget) == null ? void 0 : Ce.logo_url) || (e == null ? void 0 : e.logo_url), re = R !== "none" && J;
34214
34227
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", r), children: /* @__PURE__ */ p(Tn, { style: b, className: "border", children: [
34215
34228
  /* @__PURE__ */ p(Pn, { children: [
34216
- re && /* @__PURE__ */ p("div", { className: _e("mb-4", L), children: /* @__PURE__ */ p(gn, { theme: t, branding: e }) }),
34229
+ re && /* @__PURE__ */ p("div", { className: _e("mb-4", L), children: /* @__PURE__ */ p(hn, { theme: t, branding: e }) }),
34217
34230
  /* @__PURE__ */ p("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ p(
34218
34231
  "div",
34219
34232
  {
@@ -34391,7 +34404,7 @@ const lc = (t) => {
34391
34404
  /* @__PURE__ */ p("div", { className: "text-sm text-gray-300 md:text-sm", children: w.t("sent_code_spam") })
34392
34405
  ] })
34393
34406
  ] }),
34394
- /* @__PURE__ */ p(Mt, { state: s })
34407
+ /* @__PURE__ */ p(Dt, { state: s })
34395
34408
  ]
34396
34409
  }
34397
34410
  );
@@ -34690,7 +34703,7 @@ const dc = ({
34690
34703
  );
34691
34704
  if (!v)
34692
34705
  throw new Error("Session expired");
34693
- return await dn(t, {
34706
+ return await cn(t, {
34694
34707
  authParams: m.authParams,
34695
34708
  client: a,
34696
34709
  user: v,
@@ -34775,7 +34788,7 @@ const dc = ({
34775
34788
  ) })
34776
34789
  ] })
34777
34790
  ] }),
34778
- /* @__PURE__ */ p(Mt, { state: s })
34791
+ /* @__PURE__ */ p(Dt, { state: s })
34779
34792
  ] }),
34780
34793
  /* @__PURE__ */ p("style", { children: `
34781
34794
  details[open] .details-arrow {
@@ -34836,7 +34849,7 @@ const dc = ({
34836
34849
  }, G = ((De = e == null ? void 0 : e.widget) == null ? void 0 : De.logo_position) || "center", pe = G === "left" ? "text-left" : G === "right" ? "text-right" : "text-center", j = ((We = e == null ? void 0 : e.widget) == null ? void 0 : We.logo_url) || (n == null ? void 0 : n.logo_url), C = G !== "none" && j;
34837
34850
  return /* @__PURE__ */ p("div", { className: _e("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ p(Tn, { style: P, className: "border", children: [
34838
34851
  /* @__PURE__ */ p(Pn, { children: [
34839
- C && /* @__PURE__ */ p("div", { className: _e("mb-4", pe), children: /* @__PURE__ */ p(gn, { theme: e, branding: n }) }),
34852
+ C && /* @__PURE__ */ p("div", { className: _e("mb-4", pe), children: /* @__PURE__ */ p(hn, { theme: e, branding: n }) }),
34840
34853
  /* @__PURE__ */ p(Rn, { style: M, children: w.t("impersonation", "Impersonation") }),
34841
34854
  /* @__PURE__ */ p(Bn, { style: R, children: w.t(
34842
34855
  "impersonation_description",
@@ -34944,7 +34957,7 @@ const dc = ({
34944
34957
  "User ID to Impersonate"
34945
34958
  ) }),
34946
34959
  /* @__PURE__ */ p(
34947
- cn,
34960
+ ln,
34948
34961
  {
34949
34962
  type: "text",
34950
34963
  id: "user_id",
@@ -35128,7 +35141,7 @@ const dc = ({
35128
35141
  throw new S(403, {
35129
35142
  message: "Access denied: insufficient permissions"
35130
35143
  });
35131
- return dn(t, {
35144
+ return cn(t, {
35132
35145
  client: n,
35133
35146
  authParams: r.authParams,
35134
35147
  loginSession: r,
@@ -35264,13 +35277,9 @@ const dc = ({
35264
35277
  strategy: h.connection,
35265
35278
  strategy_type: h.is_social ? "social" : "database"
35266
35279
  });
35267
- return ke(t, t.env.data.logs.create(s.tenant.id, m)), dn(t, {
35280
+ return ke(t, t.env.data.logs.create(s.tenant.id, m)), cn(t, {
35268
35281
  client: s,
35269
- authParams: {
35270
- ...a.authParams,
35271
- response_type: Ut.TOKEN_ID_TOKEN,
35272
- response_mode: an.QUERY
35273
- },
35282
+ authParams: a.authParams,
35274
35283
  loginSession: a,
35275
35284
  user: h,
35276
35285
  sessionId: c.id,
@@ -36999,7 +37008,7 @@ const r9 = new ce().openapi(
36999
37008
  requestId: s["samlp:AuthnRequest"]["@_ID"],
37000
37009
  relayState: r
37001
37010
  }),
37002
- response_mode: an.SAML_POST,
37011
+ response_mode: vn.SAML_POST,
37003
37012
  redirect_uri: (
37004
37013
  // TODO: validate this URL against the saml settings
37005
37014
  s["samlp:AuthnRequest"]["@_AssertionConsumerServiceURL"]
@@ -38566,11 +38575,11 @@ function cJ(t) {
38566
38575
  };
38567
38576
  }
38568
38577
  export {
38569
- gn as AppLogo,
38578
+ hn as AppLogo,
38570
38579
  ew as Auth0Client,
38571
38580
  Le as AuthLayout,
38572
- an as AuthorizationResponseMode,
38573
- Ut as AuthorizationResponseType,
38581
+ vn as AuthorizationResponseMode,
38582
+ Ht as AuthorizationResponseType,
38574
38583
  Ke as Button,
38575
38584
  Nn as ButtonUI,
38576
38585
  Ln as CardContent,
@@ -38590,15 +38599,15 @@ export {
38590
38599
  lx as Footer,
38591
38600
  Yx as ForgotPasswordPage,
38592
38601
  e8 as ForgotPasswordSentPage,
38593
- mn as FormComponent,
38594
- Mt as GoBack,
38602
+ gn as FormComponent,
38603
+ Dt as GoBack,
38595
38604
  oJ as GoogleLogo,
38596
38605
  rn as GrantType,
38597
38606
  E2 as HttpSamlSigner,
38598
38607
  Je as Icon,
38599
38608
  tc as IdentifierForm,
38600
38609
  nc as IdentifierPage,
38601
- cn as InputUI,
38610
+ ln as InputUI,
38602
38611
  f8 as InvalidSession,
38603
38612
  Xt as LabelUI,
38604
38613
  Ge as Layout,
@@ -38617,7 +38626,7 @@ export {
38617
38626
  aJ as VippsLogo,
38618
38627
  UK as auth0FlowInsertSchema,
38619
38628
  M1 as auth0FlowSchema,
38620
- _n as auth0UserResponseSchema,
38629
+ mn as auth0UserResponseSchema,
38621
38630
  As as authParamsSchema,
38622
38631
  du as baseUserSchema,
38623
38632
  rw as bordersSchema,