authhero 0.97.0 → 0.99.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
@@ -375,12 +375,12 @@ class es extends zs {
375
375
  const V = Array.isArray(m), ee = V ? [] : {}, ue = V ? f : v;
376
376
  for (const de in m)
377
377
  if (Object.prototype.hasOwnProperty.call(m, de)) {
378
- const De = `${ue}${s}${de}`;
379
- ee[de] = this.translate(De, {
378
+ const He = `${ue}${s}${de}`;
379
+ ee[de] = this.translate(He, {
380
380
  ...n,
381
381
  joinArrays: !1,
382
382
  ns: c
383
- }), ee[de] === De && (ee[de] = m[de]);
383
+ }), ee[de] === He && (ee[de] = m[de]);
384
384
  }
385
385
  m = ee;
386
386
  }
@@ -388,9 +388,9 @@ class es extends zs {
388
388
  m = m.join(S), m && (m = this.extendTranslation(m, e, n, r));
389
389
  else {
390
390
  let V = !1, ee = !1;
391
- const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), De = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Fe = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
391
+ const ue = n.count !== void 0 && !re(n.count), de = es.hasDefaultValue(n), He = ue ? this.pluralResolver.getSuffix(u, n.count, n) : "", Me = n.ordinal && ue ? this.pluralResolver.getSuffix(u, n.count, {
392
392
  ordinal: !1
393
- }) : "", Xe = ue && !n.ordinal && n.count === 0, $ = Xe && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${De}`] || n[`defaultValue${Fe}`] || n.defaultValue;
393
+ }) : "", Ve = ue && !n.ordinal && n.count === 0, $ = Ve && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${He}`] || n[`defaultValue${Me}`] || n.defaultValue;
394
394
  !this.isValidLookup(m) && de && (V = !0, m = $), this.isValidLookup(m) || (ee = !0, m = o);
395
395
  const E = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && ee ? void 0 : m, x = de && $ !== m && this.options.updateMissing;
396
396
  if (ee || V || x) {
@@ -414,7 +414,7 @@ class es extends zs {
414
414
  };
415
415
  this.options.saveMissing && (this.options.saveMissingPlurals && ue ? k.forEach((Q) => {
416
416
  const J = this.pluralResolver.getSuffixes(Q, n);
417
- Xe && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
417
+ Ve && n[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((se) => {
418
418
  q([Q], o + se, n[`defaultValue${se}`] || $);
419
419
  });
420
420
  }) : q(k, o, $));
@@ -491,10 +491,10 @@ class es extends zs {
491
491
  else {
492
492
  let de;
493
493
  m && (de = this.pluralResolver.getSuffix(T, n.count, n));
494
- const De = `${this.options.pluralSeparator}zero`, Fe = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
- if (m && (V.push(p + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(p + de.replace(Fe, this.options.pluralSeparator)), v && V.push(p + De)), f) {
496
- const Xe = `${p}${this.options.contextSeparator}${n.context}`;
497
- V.push(Xe), m && (V.push(Xe + de), n.ordinal && de.indexOf(Fe) === 0 && V.push(Xe + de.replace(Fe, this.options.pluralSeparator)), v && V.push(Xe + De));
494
+ const He = `${this.options.pluralSeparator}zero`, Me = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
495
+ if (m && (V.push(p + de), n.ordinal && de.indexOf(Me) === 0 && V.push(p + de.replace(Me, this.options.pluralSeparator)), v && V.push(p + He)), f) {
496
+ const Ve = `${p}${this.options.contextSeparator}${n.context}`;
497
+ V.push(Ve), m && (V.push(Ve + de), n.ordinal && de.indexOf(Me) === 0 && V.push(Ve + de.replace(Me, this.options.pluralSeparator)), v && V.push(Ve + He));
498
498
  }
499
499
  }
500
500
  let ee;
@@ -2184,12 +2184,12 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2184
2184
  }, e.hashSync = function($, C) {
2185
2185
  if (typeof C > "u" && (C = _), typeof C == "number" && (C = e.genSaltSync(C)), typeof $ != "string" || typeof C != "string")
2186
2186
  throw Error("Illegal arguments: " + typeof $ + ", " + typeof C);
2187
- return Xe($, C);
2187
+ return Ve($, C);
2188
2188
  }, e.hash = function($, C, E, x) {
2189
2189
  function k(O) {
2190
2190
  typeof $ == "string" && typeof C == "number" ? e.genSalt(C, function(q, Q) {
2191
- Xe($, Q, O, x);
2192
- }) : typeof $ == "string" && typeof C == "string" ? Xe($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2191
+ Ve($, Q, O, x);
2192
+ }) : typeof $ == "string" && typeof C == "string" ? Ve($, C, O, x) : o(O.bind(this, Error("Illegal arguments: " + typeof $ + ", " + typeof C)));
2193
2193
  }
2194
2194
  if (E) {
2195
2195
  if (typeof E != "function")
@@ -3552,7 +3552,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3552
3552
  for (J = 0; J < q; J += 2)
3553
3553
  k = ee(k, 0, C, E), E[J] = k[0], E[J + 1] = k[1];
3554
3554
  }
3555
- function De($, C, E, x) {
3555
+ function He($, C, E, x) {
3556
3556
  for (var k = 0, O = [0, 0], q = E.length, Q = x.length, J, se = 0; se < q; se++)
3557
3557
  J = ue(C, k), k = J.offp, E[se] = E[se] ^ J.key;
3558
3558
  for (k = 0, se = 0; se < q; se += 2)
@@ -3560,7 +3560,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3560
3560
  for (se = 0; se < Q; se += 2)
3561
3561
  J = ue($, k), k = J.offp, O[0] ^= J.key, J = ue($, k), k = J.offp, O[1] ^= J.key, O = ee(O, 0, E, x), x[se] = O[0], x[se + 1] = O[1];
3562
3562
  }
3563
- function Fe($, C, E, x, k) {
3563
+ function Me($, C, E, x, k) {
3564
3564
  var O = V.slice(), q = O.length, Q;
3565
3565
  if (E < 4 || E > 31)
3566
3566
  if (Q = Error("Illegal number of rounds (4-31): " + E), x) {
@@ -3576,7 +3576,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3576
3576
  throw Q;
3577
3577
  E = 1 << E >>> 0;
3578
3578
  var J, se, fe = 0, H;
3579
- Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), De(C, $, J, se);
3579
+ Int32Array ? (J = new Int32Array(j), se = new Int32Array(T)) : (J = j.slice(), se = T.slice()), He(C, $, J, se);
3580
3580
  function $e() {
3581
3581
  if (k && k(fe / E), fe < E)
3582
3582
  for (var me = Date.now(); fe < E && (fe = fe + 1, de($, J, se), de(C, J, se), !(Date.now() - me > S)); )
@@ -3603,7 +3603,7 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3603
3603
  if (typeof (dn = $e()) < "u")
3604
3604
  return dn || [];
3605
3605
  }
3606
- function Xe($, C, E, x) {
3606
+ function Ve($, C, E, x) {
3607
3607
  var k;
3608
3608
  if (typeof $ != "string" || typeof C != "string")
3609
3609
  if (k = Error("Invalid string / salt: Not a string"), E) {
@@ -3643,8 +3643,8 @@ const Qm = {}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3643
3643
  return Ee.push("$2"), O >= "a" && Ee.push(O), Ee.push("$"), se < 10 && Ee.push("0"), Ee.push(se.toString()), Ee.push("$"), Ee.push(h($e, $e.length)), Ee.push(h(me, V.length * 4 - 1)), Ee.join("");
3644
3644
  }
3645
3645
  if (typeof E > "u")
3646
- return dn(Fe(H, $e, se));
3647
- Fe(H, $e, se, function(me, Ee) {
3646
+ return dn(Me(H, $e, se));
3647
+ Me(H, $e, se, function(me, Ee) {
3648
3648
  me ? E(me, null) : E(null, dn(Ee));
3649
3649
  }, x);
3650
3650
  }
@@ -4171,11 +4171,11 @@ nl.validate = function(t, e) {
4171
4171
  l += t[s];
4172
4172
  if (l = l.trim(), l[l.length - 1] === "/" && (l = l.substring(0, l.length - 1), s--), !P_(l)) {
4173
4173
  let h;
4174
- return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, qe(t, s));
4174
+ return l.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + l + "' is an invalid name.", xe("InvalidTag", h, ze(t, s));
4175
4175
  }
4176
4176
  const u = j_(t, s);
4177
4177
  if (u === !1)
4178
- return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", qe(t, s));
4178
+ return xe("InvalidAttr", "Attributes for '" + l + "' have open quote.", ze(t, s));
4179
4179
  let p = u.value;
4180
4180
  if (s = u.index, p[p.length - 1] === "/") {
4181
4181
  const h = s - p.length;
@@ -4184,32 +4184,32 @@ nl.validate = function(t, e) {
4184
4184
  if (m === !0)
4185
4185
  r = !0;
4186
4186
  else
4187
- return xe(m.err.code, m.err.msg, qe(t, h + m.err.line));
4187
+ return xe(m.err.code, m.err.msg, ze(t, h + m.err.line));
4188
4188
  } else if (c)
4189
4189
  if (u.tagClosed) {
4190
4190
  if (p.trim().length > 0)
4191
- return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", qe(t, o));
4191
+ return xe("InvalidTag", "Closing tag '" + l + "' can't have attributes or invalid starting.", ze(t, o));
4192
4192
  if (n.length === 0)
4193
- return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", qe(t, o));
4193
+ return xe("InvalidTag", "Closing tag '" + l + "' has not been opened.", ze(t, o));
4194
4194
  {
4195
4195
  const h = n.pop();
4196
4196
  if (l !== h.tagName) {
4197
- let m = qe(t, h.tagStartPos);
4197
+ let m = ze(t, h.tagStartPos);
4198
4198
  return xe(
4199
4199
  "InvalidTag",
4200
4200
  "Expected closing tag '" + h.tagName + "' (opened in line " + m.line + ", col " + m.col + ") instead of closing tag '" + l + "'.",
4201
- qe(t, o)
4201
+ ze(t, o)
4202
4202
  );
4203
4203
  }
4204
4204
  n.length == 0 && (i = !0);
4205
4205
  }
4206
- } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", qe(t, s));
4206
+ } else return xe("InvalidTag", "Closing tag '" + l + "' doesn't have proper closing.", ze(t, s));
4207
4207
  else {
4208
4208
  const h = Du(p, e);
4209
4209
  if (h !== !0)
4210
- return xe(h.err.code, h.err.msg, qe(t, s - p.length + h.err.line));
4210
+ return xe(h.err.code, h.err.msg, ze(t, s - p.length + h.err.line));
4211
4211
  if (i === !0)
4212
- return xe("InvalidXml", "Multiple possible root nodes found.", qe(t, s));
4212
+ return xe("InvalidXml", "Multiple possible root nodes found.", ze(t, s));
4213
4213
  e.unpairedTags.indexOf(l) !== -1 || n.push({ tagName: l, tagStartPos: o }), r = !0;
4214
4214
  }
4215
4215
  for (s++; s < t.length; s++)
@@ -4224,20 +4224,20 @@ nl.validate = function(t, e) {
4224
4224
  else if (t[s] === "&") {
4225
4225
  const h = B_(t, s);
4226
4226
  if (h == -1)
4227
- return xe("InvalidChar", "char '&' is not expected.", qe(t, s));
4227
+ return xe("InvalidChar", "char '&' is not expected.", ze(t, s));
4228
4228
  s = h;
4229
4229
  } else if (i === !0 && !qu(t[s]))
4230
- return xe("InvalidXml", "Extra text at the end", qe(t, s));
4230
+ return xe("InvalidXml", "Extra text at the end", ze(t, s));
4231
4231
  t[s] === "<" && s--;
4232
4232
  }
4233
4233
  } else {
4234
4234
  if (qu(t[s]))
4235
4235
  continue;
4236
- return xe("InvalidChar", "char '" + t[s] + "' is not expected.", qe(t, s));
4236
+ return xe("InvalidChar", "char '" + t[s] + "' is not expected.", ze(t, s));
4237
4237
  }
4238
4238
  if (r) {
4239
4239
  if (n.length == 1)
4240
- return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", qe(t, n[0].tagStartPos));
4240
+ return xe("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", ze(t, n[0].tagStartPos));
4241
4241
  if (n.length > 0)
4242
4242
  return xe("InvalidXml", "Invalid '" + JSON.stringify(n.map((s) => s.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
4243
4243
  } else return xe("InvalidXml", "Start tag expected.", 1);
@@ -4253,7 +4253,7 @@ function Mu(t, e) {
4253
4253
  if (t[e] == "?" || t[e] == " ") {
4254
4254
  const r = t.substr(n, e - n);
4255
4255
  if (e > 5 && r === "xml")
4256
- return xe("InvalidXml", "XML declaration allowed only at the start of the document.", qe(t, e));
4256
+ return xe("InvalidXml", "XML declaration allowed only at the start of the document.", ze(t, e));
4257
4257
  if (t[e] == "?" && t[e + 1] == ">") {
4258
4258
  e++;
4259
4259
  break;
@@ -4363,7 +4363,7 @@ function T_(t) {
4363
4363
  function P_(t) {
4364
4364
  return rl.isName(t);
4365
4365
  }
4366
- function qe(t, e) {
4366
+ function ze(t, e) {
4367
4367
  const n = t.substring(0, e).split(/\r?\n/);
4368
4368
  return {
4369
4369
  line: n.length,
@@ -5659,7 +5659,11 @@ async function Ef(t, { user: e, client: n, loginSession: r }) {
5659
5659
  last_asn: ""
5660
5660
  },
5661
5661
  clients: [n.id]
5662
- }), { scope: s, audience: o } = r.authParams, c = s != null && s.split(" ").includes("offline_access") ? await Y0(t, {
5662
+ });
5663
+ await t.env.data.loginSessions.update(n.tenant.id, r.id, {
5664
+ session_id: i.id
5665
+ });
5666
+ const { scope: s, audience: o } = r.authParams, c = s != null && s.split(" ").includes("offline_access") ? await Y0(t, {
5663
5667
  session_id: i.id,
5664
5668
  user: e,
5665
5669
  client: n,
@@ -6615,24 +6619,24 @@ var Wu;
6615
6619
  return H(B) || (B = kt(B)), O(A, I, B);
6616
6620
  }
6617
6621
  e("getMetadata", de);
6618
- function De(A, I, B) {
6622
+ function He(A, I, B) {
6619
6623
  if (!me(I))
6620
6624
  throw new TypeError();
6621
6625
  return H(B) || (B = kt(B)), q(A, I, B);
6622
6626
  }
6623
- e("getOwnMetadata", De);
6624
- function Fe(A, I) {
6627
+ e("getOwnMetadata", He);
6628
+ function Me(A, I) {
6625
6629
  if (!me(A))
6626
6630
  throw new TypeError();
6627
6631
  return H(I) || (I = kt(I)), J(A, I);
6628
6632
  }
6629
- e("getMetadataKeys", Fe);
6630
- function Xe(A, I) {
6633
+ e("getMetadataKeys", Me);
6634
+ function Ve(A, I) {
6631
6635
  if (!me(A))
6632
6636
  throw new TypeError();
6633
6637
  return H(I) || (I = kt(I)), se(A, I);
6634
6638
  }
6635
- e("getOwnMetadataKeys", Xe);
6639
+ e("getOwnMetadataKeys", Ve);
6636
6640
  function $(A, I, B) {
6637
6641
  if (!me(I))
6638
6642
  throw new TypeError();
@@ -7770,7 +7774,7 @@ class Zs {
7770
7774
  return al(this.items);
7771
7775
  }
7772
7776
  }
7773
- const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", Ke = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7777
+ const Nr = [new Uint8Array([1])], Ju = "0123456789", Zo = "name", Zu = "valueHexView", fy = "isHexOnly", hy = "idBlock", gy = "tagClass", my = "tagNumber", _y = "isConstructed", yy = "fromBER", vy = "toBER", wy = "local", We = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", jf = "OCTET STRING", $f = "BIT STRING";
7774
7778
  function jt(t) {
7775
7779
  var e;
7776
7780
  return e = class extends t {
@@ -7806,7 +7810,7 @@ function jt(t) {
7806
7810
  }, e.NAME = "hexBlock", e;
7807
7811
  }
7808
7812
  class Pn {
7809
- constructor({ blockLength: e = 0, error: n = Ke, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7813
+ constructor({ blockLength: e = 0, error: n = We, warnings: r = [], valueBeforeDecode: i = Ys } = {}) {
7810
7814
  this.blockLength = e, this.error = n, this.warnings = r, this.valueBeforeDecodeView = D.toUint8Array(i);
7811
7815
  }
7812
7816
  static blockName() {
@@ -7829,7 +7833,7 @@ class Pn {
7829
7833
  }
7830
7834
  }
7831
7835
  Pn.NAME = "baseBlock";
7832
- class ze extends Pn {
7836
+ class Fe extends Pn {
7833
7837
  fromBER(e, n, r) {
7834
7838
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7835
7839
  }
@@ -7837,7 +7841,7 @@ class ze extends Pn {
7837
7841
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
7838
7842
  }
7839
7843
  }
7840
- ze.NAME = "valueBlock";
7844
+ Fe.NAME = "valueBlock";
7841
7845
  class Of extends jt(Pn) {
7842
7846
  constructor({ idBlock: e = {} } = {}) {
7843
7847
  var n, r, i, s;
@@ -8018,8 +8022,8 @@ class Bf extends Pn {
8018
8022
  Bf.NAME = "lengthBlock";
8019
8023
  const W = {};
8020
8024
  class Re extends Pn {
8021
- constructor({ name: e = Ke, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8022
- super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new ze(i);
8025
+ constructor({ name: e = We, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
8026
+ super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Of(i), this.lenBlock = new Bf(i), this.valueBlock = s ? new s(i) : new Fe(i);
8023
8027
  }
8024
8028
  fromBER(e, n, r) {
8025
8029
  const i = this.valueBlock.fromBER(e, n, this.lenBlock.isIndefiniteForm ? r : this.lenBlock.length);
@@ -8073,7 +8077,7 @@ function Tf(t) {
8073
8077
  return !!t.lenBlock.isIndefiniteForm;
8074
8078
  }
8075
8079
  class cl extends Re {
8076
- constructor({ value: e = Ke, ...n } = {}, r) {
8080
+ constructor({ value: e = We, ...n } = {}, r) {
8077
8081
  super(n, r), e && this.fromString(e);
8078
8082
  }
8079
8083
  getValue() {
@@ -8091,7 +8095,7 @@ class cl extends Re {
8091
8095
  }
8092
8096
  }
8093
8097
  cl.NAME = "BaseStringBlock";
8094
- class Pf extends jt(ze) {
8098
+ class Pf extends jt(Fe) {
8095
8099
  constructor({ isHexOnly: e = !0, ...n } = {}) {
8096
8100
  super(n), this.isHexOnly = e;
8097
8101
  }
@@ -8114,7 +8118,7 @@ function by(t, e) {
8114
8118
  }
8115
8119
  function pr(t, e = 0, n = t.length) {
8116
8120
  const r = e;
8117
- let i = new Re({}, ze);
8121
+ let i = new Re({}, Fe);
8118
8122
  const s = new Pn();
8119
8123
  if (!Dt(s, t, e, n))
8120
8124
  return i.error = s.error, {
@@ -8270,7 +8274,7 @@ function pr(t, e = 0, n = t.length) {
8270
8274
  }
8271
8275
  function Kn(t) {
8272
8276
  if (!t.byteLength) {
8273
- const e = new Re({}, ze);
8277
+ const e = new Re({}, Fe);
8274
8278
  return e.error = "Input buffer has zero length", {
8275
8279
  offset: -1,
8276
8280
  result: e
@@ -8281,7 +8285,7 @@ function Kn(t) {
8281
8285
  function ky(t, e) {
8282
8286
  return t ? 1 : e;
8283
8287
  }
8284
- class Gt extends ze {
8288
+ class Gt extends Fe {
8285
8289
  constructor({ value: e = [], isIndefiniteForm: n = !1, ...r } = {}) {
8286
8290
  super(r), this.value = e, this.isIndefiniteForm = n;
8287
8291
  }
@@ -8320,7 +8324,7 @@ class Gt extends ze {
8320
8324
  }
8321
8325
  Gt.NAME = "ConstructedValueBlock";
8322
8326
  var Lf;
8323
- class We extends Re {
8327
+ class Ge extends Re {
8324
8328
  constructor(e = {}) {
8325
8329
  super(e, Gt), this.idBlock.isConstructed = !0;
8326
8330
  }
@@ -8341,10 +8345,10 @@ ${e.join(`
8341
8345
  `)}` : `${n} :`;
8342
8346
  }
8343
8347
  }
8344
- Lf = We;
8348
+ Lf = Ge;
8345
8349
  W.Constructed = Lf;
8346
- We.NAME = "CONSTRUCTED";
8347
- class Uf extends ze {
8350
+ Ge.NAME = "CONSTRUCTED";
8351
+ class Uf extends Fe {
8348
8352
  fromBER(e, n, r) {
8349
8353
  return n;
8350
8354
  }
@@ -8365,7 +8369,7 @@ ll.NAME = Dr;
8365
8369
  var qf;
8366
8370
  class kn extends Re {
8367
8371
  constructor(e = {}) {
8368
- super(e, ze), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8372
+ super(e, Fe), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
8369
8373
  }
8370
8374
  fromBER(e, n, r) {
8371
8375
  return this.lenBlock.length > 0 && this.warnings.push("Non-zero length of value block for Null type"), this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.blockLength += r, n + r > e.byteLength ? (this.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", -1) : n + r;
@@ -8385,7 +8389,7 @@ class kn extends Re {
8385
8389
  qf = kn;
8386
8390
  W.Null = qf;
8387
8391
  kn.NAME = "NULL";
8388
- class Mf extends jt(ze) {
8392
+ class Mf extends jt(Fe) {
8389
8393
  constructor({ value: e, ...n } = {}) {
8390
8394
  super(n), n.valueHex ? this.valueHexView = D.toUint8Array(n.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
8391
8395
  }
@@ -8497,7 +8501,7 @@ let yn = class Hf extends Re {
8497
8501
  return super.fromBER(e, n, r);
8498
8502
  }
8499
8503
  onAsciiEncoding() {
8500
- return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? We.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8504
+ return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? Ge.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${Z.ToHex(this.valueBlock.valueHexView)}`;
8501
8505
  }
8502
8506
  getValue() {
8503
8507
  if (!this.idBlock.isConstructed)
@@ -8596,7 +8600,7 @@ let vn = class extends Re {
8596
8600
  }
8597
8601
  onAsciiEncoding() {
8598
8602
  if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
8599
- return We.prototype.onAsciiEncoding.call(this);
8603
+ return Ge.prototype.onAsciiEncoding.call(this);
8600
8604
  {
8601
8605
  const e = [], n = this.valueBlock.valueHexView;
8602
8606
  for (const i of n)
@@ -8670,7 +8674,7 @@ function Sy(t, e) {
8670
8674
  }
8671
8675
  return s.slice();
8672
8676
  }
8673
- class ul extends jt(ze) {
8677
+ class ul extends jt(Fe) {
8674
8678
  constructor({ value: e, ...n } = {}) {
8675
8679
  super(n), this._valueDec = 0, n.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
8676
8680
  }
@@ -8799,7 +8803,7 @@ class Qs extends Et {
8799
8803
  Zf = Qs;
8800
8804
  W.Enumerated = Zf;
8801
8805
  Qs.NAME = "ENUMERATED";
8802
- class Ca extends jt(ze) {
8806
+ class Ca extends jt(Fe) {
8803
8807
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
8804
8808
  super(r), this.valueDec = e, this.isFirstSid = n;
8805
8809
  }
@@ -8869,8 +8873,8 @@ class Ca extends jt(ze) {
8869
8873
  }
8870
8874
  }
8871
8875
  Ca.NAME = "sidBlock";
8872
- class Yf extends ze {
8873
- constructor({ value: e = Ke, ...n } = {}) {
8876
+ class Yf extends Fe {
8877
+ constructor({ value: e = We, ...n } = {}) {
8874
8878
  super(n), this.value = [], e && this.fromString(e);
8875
8879
  }
8876
8880
  fromBER(e, n, r) {
@@ -9026,8 +9030,8 @@ class ja extends jt(Pn) {
9026
9030
  }
9027
9031
  }
9028
9032
  ja.NAME = "relativeSidBlock";
9029
- class Qf extends ze {
9030
- constructor({ value: e = Ke, ...n } = {}) {
9033
+ class Qf extends Fe {
9034
+ constructor({ value: e = We, ...n } = {}) {
9031
9035
  super(n), this.value = [], e && this.fromString(e);
9032
9036
  }
9033
9037
  fromBER(e, n, r) {
@@ -9108,7 +9112,7 @@ eh = dl;
9108
9112
  W.RelativeObjectIdentifier = eh;
9109
9113
  dl.NAME = "RelativeObjectIdentifier";
9110
9114
  var th;
9111
- class Rt extends We {
9115
+ class Rt extends Ge {
9112
9116
  constructor(e = {}) {
9113
9117
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
9114
9118
  }
@@ -9117,7 +9121,7 @@ th = Rt;
9117
9121
  W.Sequence = th;
9118
9122
  Rt.NAME = "SEQUENCE";
9119
9123
  var nh;
9120
- let Lt = class extends We {
9124
+ let Lt = class extends Ge {
9121
9125
  constructor(e = {}) {
9122
9126
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
9123
9127
  }
@@ -9125,9 +9129,9 @@ let Lt = class extends We {
9125
9129
  nh = Lt;
9126
9130
  W.Set = nh;
9127
9131
  Lt.NAME = "SET";
9128
- class rh extends jt(ze) {
9132
+ class rh extends jt(Fe) {
9129
9133
  constructor({ ...e } = {}) {
9130
- super(e), this.isHexOnly = !0, this.value = Ke;
9134
+ super(e), this.isHexOnly = !0, this.value = We;
9131
9135
  }
9132
9136
  toJSON() {
9133
9137
  return {
@@ -9536,7 +9540,7 @@ Eh = ml;
9536
9540
  W.TIME = Eh;
9537
9541
  ml.NAME = "TIME";
9538
9542
  class xn {
9539
- constructor({ name: e = Ke, optional: n = !1 } = {}) {
9543
+ constructor({ name: e = We, optional: n = !1 } = {}) {
9540
9544
  this.name = e, this.optional = n;
9541
9545
  }
9542
9546
  }
@@ -9691,7 +9695,7 @@ function gn(t, e, n) {
9691
9695
  result: t
9692
9696
  };
9693
9697
  }
9694
- if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9698
+ if (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (t[n.name] = e)), n instanceof W.Constructed) {
9695
9699
  let s = 0, o = {
9696
9700
  verified: !1,
9697
9701
  result: {
@@ -9710,7 +9714,7 @@ function gn(t, e, n) {
9710
9714
  return l ? {
9711
9715
  verified: !0,
9712
9716
  result: t
9713
- } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9717
+ } : (n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), t.error = "Inconsistent object length", {
9714
9718
  verified: !1,
9715
9719
  result: t
9716
9720
  });
@@ -9722,14 +9726,14 @@ function gn(t, e, n) {
9722
9726
  verified: !1,
9723
9727
  result: t
9724
9728
  };
9725
- return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], u.name = n.name)), u;
9729
+ return t.error = "Inconsistent length between ASN.1 data and schema", n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], u.name = n.name)), u;
9726
9730
  }
9727
9731
  } else if (n.valueBlock.value[0] instanceof ss) {
9728
9732
  if (o = gn(t, e.valueBlock.value[l], n.valueBlock.value[0].value), o.verified === !1)
9729
9733
  if (n.valueBlock.value[0].optional)
9730
9734
  s++;
9731
9735
  else
9732
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9736
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9733
9737
  if (Zo in n.valueBlock.value[0] && n.valueBlock.value[0].name.length > 0) {
9734
9738
  let u = {};
9735
9739
  wy in n.valueBlock.value[0] && n.valueBlock.value[0].local ? u = e : u = t, typeof u[n.valueBlock.value[0].name] > "u" && (u[n.valueBlock.value[0].name] = []), u[n.valueBlock.value[0].name].push(e.valueBlock.value[l]);
@@ -9738,13 +9742,13 @@ function gn(t, e, n) {
9738
9742
  if (n.valueBlock.value[l].optional)
9739
9743
  s++;
9740
9744
  else
9741
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && delete t[n.name]), o;
9745
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && delete t[n.name]), o;
9742
9746
  if (o.verified === !1) {
9743
9747
  const l = {
9744
9748
  verified: !1,
9745
9749
  result: t
9746
9750
  };
9747
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], l.name = n.name)), l;
9751
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], l.name = n.name)), l;
9748
9752
  }
9749
9753
  return {
9750
9754
  verified: !0,
@@ -9758,7 +9762,7 @@ function gn(t, e, n) {
9758
9762
  verified: !1,
9759
9763
  result: s.result
9760
9764
  };
9761
- return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Ke), n.name && (delete t[n.name], o.name = n.name)), o;
9765
+ return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, We), n.name && (delete t[n.name], o.name = n.name)), o;
9762
9766
  }
9763
9767
  return gn(t, s.result, n.primitiveSchema);
9764
9768
  }
@@ -9789,7 +9793,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9789
9793
  Boolean: Xs,
9790
9794
  CharacterString: uo,
9791
9795
  Choice: _l,
9792
- Constructed: We,
9796
+ Constructed: Ge,
9793
9797
  DATE: pl,
9794
9798
  DateTime: hl,
9795
9799
  Duration: gl,
@@ -9818,7 +9822,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9818
9822
  UTCTime: li,
9819
9823
  UniversalString: no,
9820
9824
  Utf8String: Ft,
9821
- ValueBlock: ze,
9825
+ ValueBlock: Fe,
9822
9826
  VideotexString: oo,
9823
9827
  ViewWriter: Zs,
9824
9828
  VisibleString: ci,
@@ -10071,7 +10075,7 @@ class Jy {
10071
10075
  if (o.context !== null && o.context !== void 0)
10072
10076
  if (o.implicit)
10073
10077
  if (typeof o.type == "number" || Pt(o.type)) {
10074
- const p = o.repeated ? We : ai;
10078
+ const p = o.repeated ? Ge : ai;
10075
10079
  i.push(new p({
10076
10080
  name: c,
10077
10081
  optional: u,
@@ -10084,7 +10088,7 @@ class Jy {
10084
10088
  this.cache(o.type);
10085
10089
  const p = !!o.repeated;
10086
10090
  let h = p ? l : this.get(o.type, !0).schema;
10087
- h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new We({
10091
+ h = "valueBlock" in h ? h.valueBlock.value : h.value, i.push(new Ge({
10088
10092
  name: p ? "" : c,
10089
10093
  optional: u,
10090
10094
  idBlock: {
@@ -10095,7 +10099,7 @@ class Jy {
10095
10099
  }));
10096
10100
  }
10097
10101
  else
10098
- i.push(new We({
10102
+ i.push(new Ge({
10099
10103
  optional: u,
10100
10104
  idBlock: {
10101
10105
  tagClass: 3,
@@ -10160,8 +10164,8 @@ class Zy {
10160
10164
  const i = st.get(n);
10161
10165
  st.cache(n);
10162
10166
  let s = i.schema;
10163
- if (e.constructor === We && i.type !== P.Choice) {
10164
- s = new We({
10167
+ if (e.constructor === Ge && i.type !== P.Choice) {
10168
+ s = new Ge({
10165
10169
  idBlock: {
10166
10170
  tagClass: 3,
10167
10171
  tagNumber: e.idBlock.tagNumber
@@ -10279,7 +10283,7 @@ class vl {
10279
10283
  ...p
10280
10284
  }));
10281
10285
  } else
10282
- i.push(new We({
10286
+ i.push(new Ge({
10283
10287
  optional: c.optional,
10284
10288
  idBlock: {
10285
10289
  tagClass: 3,
@@ -10288,7 +10292,7 @@ class vl {
10288
10292
  value: u.valueBlock.value
10289
10293
  }));
10290
10294
  else
10291
- i.push(new We({
10295
+ i.push(new Ge({
10292
10296
  optional: c.optional,
10293
10297
  idBlock: {
10294
10298
  tagClass: 3,
@@ -11087,16 +11091,16 @@ d([
11087
11091
  g({ type: b.Integer, optional: !0 })
11088
11092
  ], as.prototype, "pathLenConstraint", void 0);
11089
11093
  var Ua;
11090
- let Me = Ua = class extends ge {
11094
+ let De = Ua = class extends ge {
11091
11095
  constructor(e) {
11092
11096
  super(e), Object.setPrototypeOf(this, Ua.prototype);
11093
11097
  }
11094
11098
  };
11095
- Me = Ua = d([
11099
+ De = Ua = d([
11096
11100
  L({ type: P.Sequence, itemType: ie })
11097
- ], Me);
11101
+ ], De);
11098
11102
  var Va;
11099
- let sd = Va = class extends Me {
11103
+ let sd = Va = class extends De {
11100
11104
  constructor(e) {
11101
11105
  super(e), Object.setPrototypeOf(this, Va.prototype);
11102
11106
  }
@@ -11271,30 +11275,30 @@ let ad = Da = class extends Wn {
11271
11275
  ad = Da = d([
11272
11276
  L({ type: P.Sequence, itemType: hr })
11273
11277
  ], ad);
11274
- class Ve {
11278
+ class qe {
11275
11279
  constructor(e = {}) {
11276
- this.onlyContainsUserCerts = Ve.ONLY, this.onlyContainsCACerts = Ve.ONLY, this.indirectCRL = Ve.ONLY, this.onlyContainsAttributeCerts = Ve.ONLY, Object.assign(this, e);
11280
+ this.onlyContainsUserCerts = qe.ONLY, this.onlyContainsCACerts = qe.ONLY, this.indirectCRL = qe.ONLY, this.onlyContainsAttributeCerts = qe.ONLY, Object.assign(this, e);
11277
11281
  }
11278
11282
  }
11279
- Ve.ONLY = !1;
11283
+ qe.ONLY = !1;
11280
11284
  d([
11281
11285
  g({ type: Sn, context: 0, optional: !0 })
11282
- ], Ve.prototype, "distributionPoint", void 0);
11286
+ ], qe.prototype, "distributionPoint", void 0);
11283
11287
  d([
11284
- g({ type: b.Boolean, context: 1, defaultValue: Ve.ONLY, implicit: !0 })
11285
- ], Ve.prototype, "onlyContainsUserCerts", void 0);
11288
+ g({ type: b.Boolean, context: 1, defaultValue: qe.ONLY, implicit: !0 })
11289
+ ], qe.prototype, "onlyContainsUserCerts", void 0);
11286
11290
  d([
11287
- g({ type: b.Boolean, context: 2, defaultValue: Ve.ONLY, implicit: !0 })
11288
- ], Ve.prototype, "onlyContainsCACerts", void 0);
11291
+ g({ type: b.Boolean, context: 2, defaultValue: qe.ONLY, implicit: !0 })
11292
+ ], qe.prototype, "onlyContainsCACerts", void 0);
11289
11293
  d([
11290
11294
  g({ type: Bh, context: 3, optional: !0, implicit: !0 })
11291
- ], Ve.prototype, "onlySomeReasons", void 0);
11295
+ ], qe.prototype, "onlySomeReasons", void 0);
11292
11296
  d([
11293
- g({ type: b.Boolean, context: 4, defaultValue: Ve.ONLY, implicit: !0 })
11294
- ], Ve.prototype, "indirectCRL", void 0);
11297
+ g({ type: b.Boolean, context: 4, defaultValue: qe.ONLY, implicit: !0 })
11298
+ ], qe.prototype, "indirectCRL", void 0);
11295
11299
  d([
11296
- g({ type: b.Boolean, context: 5, defaultValue: Ve.ONLY, implicit: !0 })
11297
- ], Ve.prototype, "onlyContainsAttributeCerts", void 0);
11300
+ g({ type: b.Boolean, context: 5, defaultValue: qe.ONLY, implicit: !0 })
11301
+ ], qe.prototype, "onlyContainsAttributeCerts", void 0);
11298
11302
  var Rr;
11299
11303
  (function(t) {
11300
11304
  t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
@@ -11350,7 +11354,7 @@ Wa = d([
11350
11354
  L({ type: P.Choice })
11351
11355
  ], Wa);
11352
11356
  var Ga;
11353
- let cd = Ga = class extends Me {
11357
+ let cd = Ga = class extends De {
11354
11358
  constructor(e) {
11355
11359
  super(e), Object.setPrototypeOf(this, Ga.prototype);
11356
11360
  }
@@ -11451,7 +11455,7 @@ ld = Za = d([
11451
11455
  ], ld);
11452
11456
  var Ya;
11453
11457
  const Uh = `${on}.17`;
11454
- let Xa = Ya = class extends Me {
11458
+ let Xa = Ya = class extends De {
11455
11459
  constructor(e) {
11456
11460
  super(e), Object.setPrototypeOf(this, Ya.prototype);
11457
11461
  }
@@ -11899,11 +11903,11 @@ d([
11899
11903
  ], vo.prototype, "permitUnSpecified", void 0);
11900
11904
  class Rn {
11901
11905
  constructor(e = {}) {
11902
- this.issuer = new Me(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11906
+ this.issuer = new De(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
11903
11907
  }
11904
11908
  }
11905
11909
  d([
11906
- g({ type: Me })
11910
+ g({ type: De })
11907
11911
  ], Rn.prototype, "issuer", void 0);
11908
11912
  d([
11909
11913
  g({ type: b.Integer, converter: ve })
@@ -11938,7 +11942,7 @@ class wo {
11938
11942
  }
11939
11943
  }
11940
11944
  d([
11941
- g({ type: Me, optional: !0 })
11945
+ g({ type: De, optional: !0 })
11942
11946
  ], wo.prototype, "issuerName", void 0);
11943
11947
  d([
11944
11948
  g({ type: Rn, context: 0, implicit: !0, optional: !0 })
@@ -11980,7 +11984,7 @@ d([
11980
11984
  g({ type: Rn, implicit: !0, context: 0, optional: !0 })
11981
11985
  ], pi.prototype, "baseCertificateID", void 0);
11982
11986
  d([
11983
- g({ type: Me, implicit: !0, context: 1, optional: !0 })
11987
+ g({ type: De, implicit: !0, context: 1, optional: !0 })
11984
11988
  ], pi.prototype, "entityName", void 0);
11985
11989
  d([
11986
11990
  g({ type: Ln, implicit: !0, context: 2, optional: !0 })
@@ -12086,7 +12090,7 @@ class Fh {
12086
12090
  }
12087
12091
  }
12088
12092
  d([
12089
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12093
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12090
12094
  ], Fh.prototype, "policyAuthority", void 0);
12091
12095
  d([
12092
12096
  g({ type: xo, repeated: "sequence" })
@@ -12146,7 +12150,7 @@ class Hh {
12146
12150
  }
12147
12151
  }
12148
12152
  d([
12149
- g({ type: Me, implicit: !0, context: 0, optional: !0 })
12153
+ g({ type: De, implicit: !0, context: 0, optional: !0 })
12150
12154
  ], Hh.prototype, "roleAuthority", void 0);
12151
12155
  d([
12152
12156
  g({ type: ie, implicit: !0, context: 1 })
@@ -12714,7 +12718,7 @@ d([
12714
12718
  d([
12715
12719
  g({ type: b.Integer, converter: ve })
12716
12720
  ], Ss.prototype, "s", void 0);
12717
- const Je = "1.2.840.113549.1.1", Nn = `${Je}.1`, dv = `${Je}.7`, pv = `${Je}.9`, Ur = `${Je}.10`, fv = `${Je}.2`, hv = `${Je}.4`, As = `${Je}.5`, gv = `${Je}.14`, vc = `${Je}.11`, Es = `${Je}.12`, Is = `${Je}.13`, Wh = `${Je}.15`, Gh = `${Je}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Je}.8`;
12721
+ const Ze = "1.2.840.113549.1.1", Nn = `${Ze}.1`, dv = `${Ze}.7`, pv = `${Ze}.9`, Ur = `${Ze}.10`, fv = `${Ze}.2`, hv = `${Ze}.4`, As = `${Ze}.5`, gv = `${Ze}.14`, vc = `${Ze}.11`, Es = `${Ze}.12`, Is = `${Ze}.13`, Wh = `${Ze}.15`, Gh = `${Ze}.16`, Ns = "1.3.14.3.2.26", Jh = "2.16.840.1.101.3.4.2.4", Cs = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", mv = "2.16.840.1.101.3.4.2.5", _v = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", vv = "1.2.840.113549.2.5", jo = `${Ze}.8`;
12718
12722
  function je(t) {
12719
12723
  return new K({ algorithm: t, parameters: null });
12720
12724
  }
@@ -12873,7 +12877,7 @@ var kc;
12873
12877
  (function(t) {
12874
12878
  t[t.Transient = 0] = "Transient", t[t.Singleton = 1] = "Singleton", t[t.ResolutionScoped = 2] = "ResolutionScoped", t[t.ContainerScoped = 3] = "ContainerScoped";
12875
12879
  })(kc || (kc = {}));
12876
- const He = kc;
12880
+ const Ke = kc;
12877
12881
  /*! *****************************************************************************
12878
12882
  Copyright (c) Microsoft Corporation.
12879
12883
 
@@ -13169,7 +13173,7 @@ var Ov = function(t) {
13169
13173
  this.parent = e, this._registry = new Iv(), this.interceptors = new Tv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
13170
13174
  }
13171
13175
  return t.prototype.register = function(e, n, r) {
13172
- r === void 0 && (r = { lifecycle: He.Transient }), this.ensureNotDisposed();
13176
+ r === void 0 && (r = { lifecycle: Ke.Transient }), this.ensureNotDisposed();
13173
13177
  var i;
13174
13178
  if (Ev(n) ? i = n : i = { useClass: n }, qi(i))
13175
13179
  for (var s = [e], o = i; o != null; ) {
@@ -13180,8 +13184,8 @@ var Ov = function(t) {
13180
13184
  var l = this._registry.get(c);
13181
13185
  l && qi(l.provider) ? o = l.provider : o = null;
13182
13186
  }
13183
- if ((r.lifecycle === He.Singleton || r.lifecycle == He.ContainerScoped || r.lifecycle == He.ResolutionScoped) && (Mi(i) || Sc(i)))
13184
- throw new Error('Cannot use lifecycle "' + He[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13187
+ if ((r.lifecycle === Ke.Singleton || r.lifecycle == Ke.ContainerScoped || r.lifecycle == Ke.ResolutionScoped) && (Mi(i) || Sc(i)))
13188
+ throw new Error('Cannot use lifecycle "' + Ke[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13185
13189
  return this._registry.set(e, { provider: i, options: r }), this;
13186
13190
  }, t.prototype.registerType = function(e, n) {
13187
13191
  return this.ensureNotDisposed(), zn(n) ? this.register(e, {
@@ -13198,17 +13202,17 @@ var Ov = function(t) {
13198
13202
  if (zn(n))
13199
13203
  return this.register(e, {
13200
13204
  useToken: n
13201
- }, { lifecycle: He.Singleton });
13205
+ }, { lifecycle: Ke.Singleton });
13202
13206
  if (n)
13203
13207
  return this.register(e, {
13204
13208
  useClass: n
13205
- }, { lifecycle: He.Singleton });
13209
+ }, { lifecycle: Ke.Singleton });
13206
13210
  throw new Error('Cannot register a type name as a singleton without a "to" token');
13207
13211
  }
13208
13212
  var r = e;
13209
13213
  return n && !zn(n) && (r = n), this.register(e, {
13210
13214
  useClass: r
13211
- }, { lifecycle: He.Singleton });
13215
+ }, { lifecycle: Ke.Singleton });
13212
13216
  }, t.prototype.resolve = function(e, n) {
13213
13217
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
13214
13218
  var r = this.getRegistration(e);
@@ -13264,10 +13268,10 @@ var Ov = function(t) {
13264
13268
  this.interceptors.postResolution.setAll(e, o);
13265
13269
  }
13266
13270
  }, t.prototype.resolveRegistration = function(e, n) {
13267
- if (this.ensureNotDisposed(), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.has(e))
13271
+ if (this.ensureNotDisposed(), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.has(e))
13268
13272
  return n.scopedResolutions.get(e);
13269
- var r = e.options.lifecycle === He.Singleton, i = e.options.lifecycle === He.ContainerScoped, s = r || i, o;
13270
- return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === He.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13273
+ var r = e.options.lifecycle === Ke.Singleton, i = e.options.lifecycle === Ke.ContainerScoped, s = r || i, o;
13274
+ return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Xh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.set(e, o), o;
13271
13275
  }, t.prototype.resolveAll = function(e, n) {
13272
13276
  var r = this;
13273
13277
  n === void 0 && (n = new wd()), this.ensureNotDisposed();
@@ -13316,9 +13320,9 @@ var Ov = function(t) {
13316
13320
  var o = Os(s.value, 2), c = o[0], l = o[1];
13317
13321
  l.some(function(u) {
13318
13322
  var p = u.options;
13319
- return p.lifecycle === He.ContainerScoped;
13323
+ return p.lifecycle === Ke.ContainerScoped;
13320
13324
  }) && r._registry.setAll(c, l.map(function(u) {
13321
- return u.options.lifecycle === He.ContainerScoped ? {
13325
+ return u.options.lifecycle === Ke.ContainerScoped ? {
13322
13326
  provider: u.provider,
13323
13327
  options: u.options
13324
13328
  } : u;
@@ -13867,7 +13871,7 @@ class Rv {
13867
13871
  const $n = "crypto.algorithmProvider";
13868
13872
  Ue.registerSingleton($n, Rv);
13869
13873
  var zi;
13870
- const Ze = "1.3.36.3.3.2.8.1.1", Vd = `${Ze}.1`, qd = `${Ze}.2`, Md = `${Ze}.3`, zd = `${Ze}.4`, Dd = `${Ze}.5`, Fd = `${Ze}.6`, Hd = `${Ze}.7`, Kd = `${Ze}.8`, Wd = `${Ze}.9`, Gd = `${Ze}.10`, Jd = `${Ze}.11`, Zd = `${Ze}.12`, Yd = `${Ze}.13`, Xd = `${Ze}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13874
+ const Ye = "1.3.36.3.3.2.8.1.1", Vd = `${Ye}.1`, qd = `${Ye}.2`, Md = `${Ye}.3`, zd = `${Ye}.4`, Dd = `${Ye}.5`, Fd = `${Ye}.6`, Hd = `${Ye}.7`, Kd = `${Ye}.8`, Wd = `${Ye}.9`, Gd = `${Ye}.10`, Jd = `${Ye}.11`, Zd = `${Ye}.12`, Yd = `${Ye}.13`, Xd = `${Ye}.14`, Qd = "brainpoolP160r1", ep = "brainpoolP160t1", tp = "brainpoolP192r1", np = "brainpoolP192t1", rp = "brainpoolP224r1", ip = "brainpoolP224t1", sp = "brainpoolP256r1", op = "brainpoolP256t1", ap = "brainpoolP320r1", cp = "brainpoolP320t1", lp = "brainpoolP384r1", up = "brainpoolP384t1", dp = "brainpoolP512r1", pp = "brainpoolP512t1", we = "ECDSA";
13871
13875
  let Yr = zi = class {
13872
13876
  toAsnAlgorithm(e) {
13873
13877
  switch (e.name.toLowerCase()) {
@@ -14262,19 +14266,19 @@ class dg {
14262
14266
  this.items[e] = n, this.items[n] = e;
14263
14267
  }
14264
14268
  }
14265
- const Ge = new dg();
14266
- Ge.register("CN", "2.5.4.3");
14267
- Ge.register("L", "2.5.4.7");
14268
- Ge.register("ST", "2.5.4.8");
14269
- Ge.register("O", "2.5.4.10");
14270
- Ge.register("OU", "2.5.4.11");
14271
- Ge.register("C", "2.5.4.6");
14272
- Ge.register("DC", "0.9.2342.19200300.100.1.25");
14273
- Ge.register("E", "1.2.840.113549.1.9.1");
14274
- Ge.register("G", "2.5.4.42");
14275
- Ge.register("I", "2.5.4.43");
14276
- Ge.register("SN", "2.5.4.4");
14277
- Ge.register("T", "2.5.4.12");
14269
+ const Je = new dg();
14270
+ Je.register("CN", "2.5.4.3");
14271
+ Je.register("L", "2.5.4.7");
14272
+ Je.register("ST", "2.5.4.8");
14273
+ Je.register("O", "2.5.4.10");
14274
+ Je.register("OU", "2.5.4.11");
14275
+ Je.register("C", "2.5.4.6");
14276
+ Je.register("DC", "0.9.2342.19200300.100.1.25");
14277
+ Je.register("E", "1.2.840.113549.1.9.1");
14278
+ Je.register("G", "2.5.4.42");
14279
+ Je.register("I", "2.5.4.43");
14280
+ Je.register("SN", "2.5.4.4");
14281
+ Je.register("T", "2.5.4.12");
14278
14282
  function qv(t, e) {
14279
14283
  return `\\${Z.ToHex(Z.FromUtf8String(e)).toUpperCase()}`;
14280
14284
  }
@@ -14301,14 +14305,14 @@ class ot {
14301
14305
  typeof e == "string" ? this.asn = this.fromString(e) : e instanceof Se ? this.asn = e : D.isBufferSource(e) ? this.asn = z.parse(e, Se) : this.asn = this.fromJSON(e);
14302
14306
  }
14303
14307
  getField(e) {
14304
- const n = this.extraNames.findId(e) || Ge.findId(e), r = [];
14308
+ const n = this.extraNames.findId(e) || Je.findId(e), r = [];
14305
14309
  for (const i of this.asn)
14306
14310
  for (const s of i)
14307
14311
  s.type === n && r.push(s.value.toString());
14308
14312
  return r;
14309
14313
  }
14310
14314
  getName(e) {
14311
- return this.extraNames.get(e) || Ge.get(e);
14315
+ return this.extraNames.get(e) || Je.get(e);
14312
14316
  }
14313
14317
  toString() {
14314
14318
  return this.asn.map((e) => e.map((n) => {
@@ -14518,7 +14522,7 @@ class Wt extends cn {
14518
14522
  class Xr extends cn {
14519
14523
  constructor(e) {
14520
14524
  let n;
14521
- if (e instanceof Me)
14525
+ if (e instanceof De)
14522
14526
  n = e;
14523
14527
  else if (Array.isArray(e)) {
14524
14528
  const r = [];
@@ -14529,9 +14533,9 @@ class Xr extends cn {
14529
14533
  const s = z.parse(new Wt(i.type, i.value).rawData, ie);
14530
14534
  r.push(s);
14531
14535
  }
14532
- n = new Me(r);
14536
+ n = new De(r);
14533
14537
  } else if (D.isBufferSource(e))
14534
- n = z.parse(e, Me);
14538
+ n = z.parse(e, De);
14535
14539
  else
14536
14540
  throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
14537
14541
  super(n);
@@ -14766,7 +14770,7 @@ class ei extends ut {
14766
14770
  const n = new mn({ keyIdentifier: new kl(Z.FromHex(e[0])) });
14767
14771
  super(La, e[1], z.serialize(n));
14768
14772
  } else {
14769
- const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, Me) : n.name, i = new mn({
14773
+ const n = e[0], r = n.name instanceof Xr ? z.parse(n.name.rawData, De) : n.name, i = new mn({
14770
14774
  authorityCertIssuer: r,
14771
14775
  authorityCertSerialNumber: Z.FromHex(n.serialNumber)
14772
14776
  });
@@ -18575,8 +18579,26 @@ const cb = new ae().openapi(
18575
18579
  u.user_id
18576
18580
  );
18577
18581
  p && (t.set("user_id", p.user_id), t.set("connection", p.connection));
18582
+ const h = await t.env.data.refreshTokens.list(
18583
+ r.tenant.id,
18584
+ {
18585
+ q: `session_id=${l}`,
18586
+ page: 0,
18587
+ per_page: 100,
18588
+ include_totals: !1
18589
+ }
18590
+ );
18591
+ await Promise.all(
18592
+ h.refresh_tokens.map(
18593
+ (m) => t.env.data.refreshTokens.remove(
18594
+ r.tenant.id,
18595
+ m.id
18596
+ )
18597
+ )
18598
+ ), await t.env.data.sessions.update(r.tenant.id, l, {
18599
+ revoked_at: (/* @__PURE__ */ new Date()).toISOString()
18600
+ });
18578
18601
  }
18579
- await t.env.data.sessions.remove(r.tenant.id, l);
18580
18602
  }
18581
18603
  }
18582
18604
  const c = be(t, {
@@ -20121,10 +20143,10 @@ const $b = new ae().openapi(
20121
20143
  throw new N(400, {
20122
20144
  message: `Invalid redirect URI - ${ue.redirect_uri}`
20123
20145
  });
20124
- const De = ns(
20146
+ const He = ns(
20125
20147
  ee.tenant.id,
20126
20148
  t.req.header("cookie")
20127
- ), Fe = De ? await e.data.sessions.get(ee.tenant.id, De) : void 0;
20149
+ ), Me = He ? await e.data.sessions.get(ee.tenant.id, He) : void 0, Ve = Me && !Me.revoked_at ? Me : void 0;
20128
20150
  if (f == "none") {
20129
20151
  if (!p)
20130
20152
  throw new N(400, {
@@ -20132,7 +20154,7 @@ const $b = new ae().openapi(
20132
20154
  });
20133
20155
  return jb({
20134
20156
  ctx: t,
20135
- session: Fe || void 0,
20157
+ session: Ve || void 0,
20136
20158
  redirect_uri: i,
20137
20159
  state: o,
20138
20160
  response_type: p,
@@ -20155,7 +20177,7 @@ const $b = new ae().openapi(
20155
20177
  client: ee,
20156
20178
  auth0Client: S,
20157
20179
  authParams: ue,
20158
- session: Fe || void 0,
20180
+ session: Ve || void 0,
20159
20181
  connection: u,
20160
20182
  login_hint: j
20161
20183
  });
@@ -20632,40 +20654,43 @@ async function cu(t, e, n) {
20632
20654
  return console.error(i), qp;
20633
20655
  }
20634
20656
  }
20635
- async function Ce(t, e) {
20636
- var l;
20637
- const { env: n } = t, r = await n.data.loginSessions.get(
20657
+ async function Ce(t, e, n = !1) {
20658
+ var u;
20659
+ const { env: r } = t, i = await r.data.loginSessions.get(
20638
20660
  t.var.tenant_id || "",
20639
20661
  e
20640
20662
  );
20641
- if (!r)
20642
- throw new N(400, { message: "Login session not found" });
20643
- t.set("loginSession", r);
20644
- const i = await Mo(
20645
- n,
20646
- r.authParams.client_id
20663
+ if (i)
20664
+ i.session_id;
20665
+ else throw new N(400, { message: "Login session not found" });
20666
+ t.set("loginSession", i);
20667
+ const s = await Mo(
20668
+ r,
20669
+ i.authParams.client_id
20647
20670
  );
20648
- t.set("client_id", i.id), t.set("tenant_id", i.tenant.id);
20649
- const s = await n.data.tenants.get(i.tenant.id);
20650
- if (!s)
20651
- throw new N(400, { message: "Tenant not found" });
20652
- const o = await cu(
20653
- n,
20654
- i.id,
20655
- r.authParams.vendor_id
20656
- ), c = (l = r.authParams.ui_locales) == null ? void 0 : l.split(" ").map((u) => u.split("-")[0]).find((u) => {
20671
+ t.set("client_id", s.id), t.set("tenant_id", s.tenant.id);
20672
+ const o = await r.data.tenants.get(s.tenant.id);
20673
+ if (o) {
20674
+ if (i.session_id && !n)
20675
+ throw new N(400, { message: "Login session closed" });
20676
+ } else throw new N(400, { message: "Tenant not found" });
20677
+ const c = await cu(
20678
+ r,
20679
+ s.id,
20680
+ i.authParams.vendor_id
20681
+ ), l = (u = i.authParams.ui_locales) == null ? void 0 : u.split(" ").map((p) => p.split("-")[0]).find((p) => {
20657
20682
  if (Array.isArray(R.options.supportedLngs))
20658
- return R.options.supportedLngs.includes(u);
20683
+ return R.options.supportedLngs.includes(p);
20659
20684
  });
20660
- return await R.changeLanguage(c || s.language || "sv"), {
20685
+ return await R.changeLanguage(l || o.language || "sv"), {
20661
20686
  vendorSettings: {
20662
- ...o,
20687
+ ...c,
20663
20688
  // HACK: Change the terms and conditions for fokus app
20664
- termsAndConditionsUrl: i.id === "fokus-app" ? "https://www.fokus.se/kopvillkor-app/" : o.termsAndConditionsUrl
20689
+ termsAndConditionsUrl: s.id === "fokus-app" ? "https://www.fokus.se/kopvillkor-app/" : c.termsAndConditionsUrl
20665
20690
  },
20666
- client: i,
20667
- tenant: s,
20668
- loginSession: r
20691
+ client: s,
20692
+ tenant: o,
20693
+ loginSession: i
20669
20694
  };
20670
20695
  }
20671
20696
  async function Xb(t, e, n, r) {
@@ -20770,7 +20795,7 @@ const s1 = (t) => {
20770
20795
  --text-on-primary: ${e.buttonTextColor};
20771
20796
  }
20772
20797
  `;
20773
- }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Ye = ({
20798
+ }, o1 = "https://assets.sesamy.com/images/login-bg.jpg", Xe = ({
20774
20799
  title: t,
20775
20800
  children: e,
20776
20801
  vendorSettings: n
@@ -21083,7 +21108,7 @@ const s1 = (t) => {
21083
21108
  impersonation: s
21084
21109
  }) => {
21085
21110
  const o = i.connections.map(({ name: m }) => m), c = o.includes("facebook"), l = o.includes("google-oauth2"), u = o.includes("apple"), p = o.includes("vipps"), h = c || l || u || p;
21086
- return /* @__PURE__ */ y(Ye, { title: R.t("welcome"), vendorSettings: e, children: [
21111
+ return /* @__PURE__ */ y(Xe, { title: R.t("welcome"), vendorSettings: e, children: [
21087
21112
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("welcome") }),
21088
21113
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-300", children: R.t("login_description") }),
21089
21114
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -21928,7 +21953,7 @@ const du = (t) => {
21928
21953
  state: r
21929
21954
  }), l = i.connections.map(({ name: u }) => u).includes("auth2");
21930
21955
  return /* @__PURE__ */ y(
21931
- Ye,
21956
+ Xe,
21932
21957
  {
21933
21958
  title: R.t("verify_your_email"),
21934
21959
  vendorSettings: e,
@@ -22115,7 +22140,7 @@ const du = (t) => {
22115
22140
  ), L1 = (t) => {
22116
22141
  const { vendorSettings: e, state: n } = t;
22117
22142
  return /* @__PURE__ */ y(
22118
- Ye,
22143
+ Xe,
22119
22144
  {
22120
22145
  title: R.t("unverified_email"),
22121
22146
  vendorSettings: e,
@@ -22136,7 +22161,7 @@ const du = (t) => {
22136
22161
  const { error: e, vendorSettings: n, email: r, state: i } = t, s = new URLSearchParams({
22137
22162
  state: i
22138
22163
  });
22139
- return /* @__PURE__ */ y(Ye, { title: R.t("enter_password"), vendorSettings: n, children: [
22164
+ return /* @__PURE__ */ y(Xe, { title: R.t("enter_password"), vendorSettings: n, children: [
22140
22165
  /* @__PURE__ */ y("div", { className: "mb-4 text-lg font-medium sm:text-2xl", children: R.t("enter_password") }),
22141
22166
  /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: R.t("enter_password_description") }),
22142
22167
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
@@ -22318,7 +22343,7 @@ const du = (t) => {
22318
22343
  ), jr = (t) => {
22319
22344
  const { state: e, error: n, vendorSettings: r, email: i, code: s } = t;
22320
22345
  return /* @__PURE__ */ y(
22321
- Ye,
22346
+ Xe,
22322
22347
  {
22323
22348
  title: R.t("create_account_title"),
22324
22349
  vendorSettings: r,
@@ -22368,7 +22393,7 @@ const du = (t) => {
22368
22393
  );
22369
22394
  }, pu = (t) => {
22370
22395
  const { message: e, vendorSettings: n, pageTitle: r, state: i } = t;
22371
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: n, children: [
22396
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: n, children: [
22372
22397
  r ? /* @__PURE__ */ y("div", { className: "mb-6 text-gray-300", children: r }) : "",
22373
22398
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: e }),
22374
22399
  i ? /* @__PURE__ */ y(Ct, { state: i }) : ""
@@ -22559,7 +22584,7 @@ const du = (t) => {
22559
22584
  ), $r = (t) => {
22560
22585
  const { error: e, vendorSettings: n, email: r } = t;
22561
22586
  return /* @__PURE__ */ y(
22562
- Ye,
22587
+ Xe,
22563
22588
  {
22564
22589
  title: R.t("reset_password_title"),
22565
22590
  vendorSettings: n,
@@ -22751,7 +22776,7 @@ const du = (t) => {
22751
22776
  ), M1 = (t) => {
22752
22777
  const { error: e, vendorSettings: n, email: r, state: i } = t;
22753
22778
  return /* @__PURE__ */ y(
22754
- Ye,
22779
+ Xe,
22755
22780
  {
22756
22781
  title: R.t("forgot_password_title"),
22757
22782
  vendorSettings: n,
@@ -22781,7 +22806,7 @@ const du = (t) => {
22781
22806
  );
22782
22807
  }, z1 = (t) => {
22783
22808
  const { vendorSettings: e, state: n } = t;
22784
- return /* @__PURE__ */ y(Ye, { title: "Login", vendorSettings: e, children: [
22809
+ return /* @__PURE__ */ y(Xe, { title: "Login", vendorSettings: e, children: [
22785
22810
  /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22786
22811
  /* @__PURE__ */ y("div", { children: R.t("forgot_password_email_sent") }),
22787
22812
  /* @__PURE__ */ y("div", { className: "my-4 flex space-x-2 text-sm text-[#B2B2B2]", children: [
@@ -22860,7 +22885,7 @@ const du = (t) => {
22860
22885
  )
22861
22886
  );
22862
22887
  }
22863
- ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Ye, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22888
+ ), F1 = ({ vendorSettings: t, state: e, user: n }) => /* @__PURE__ */ y(Xe, { title: oe("check_email_title"), vendorSettings: t, children: /* @__PURE__ */ y("div", { className: "flex flex-1 flex-col justify-center", children: [
22864
22889
  /* @__PURE__ */ y("div", { className: "mb-8 text-gray-700 dark:text-gray-300", children: [
22865
22890
  /* @__PURE__ */ y(
22866
22891
  du,
@@ -22971,7 +22996,7 @@ const du = (t) => {
22971
22996
  ), K1 = (t) => {
22972
22997
  const { vendorSettings: e, email: n, state: r } = t;
22973
22998
  return /* @__PURE__ */ y(
22974
- Ye,
22999
+ Xe,
22975
23000
  {
22976
23001
  title: R.t("create_password_account_title"),
22977
23002
  vendorSettings: e,
@@ -23070,7 +23095,7 @@ const du = (t) => {
23070
23095
  ), G1 = (t) => {
23071
23096
  const { redirectUrl: e, vendorSettings: n } = t;
23072
23097
  return /* @__PURE__ */ y(
23073
- Ye,
23098
+ Xe,
23074
23099
  {
23075
23100
  title: R.t("invalid_session_title"),
23076
23101
  vendorSettings: n,
@@ -23159,7 +23184,7 @@ const du = (t) => {
23159
23184
  state: e
23160
23185
  });
23161
23186
  return /* @__PURE__ */ y(
23162
- Ye,
23187
+ Xe,
23163
23188
  {
23164
23189
  title: R.t("email_validated"),
23165
23190
  vendorSettings: t,
@@ -23248,7 +23273,7 @@ const du = (t) => {
23248
23273
  ), Q1 = (t) => {
23249
23274
  const { vendorSettings: e, email: n, state: r } = t;
23250
23275
  return /* @__PURE__ */ y(
23251
- Ye,
23276
+ Xe,
23252
23277
  {
23253
23278
  title: R.t("email_verification_for_signup_sent_title"),
23254
23279
  vendorSettings: e,