authhero 0.225.0 → 0.226.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
@@ -57,7 +57,7 @@ const Ne = (t) => typeof t == "string", ds = () => {
57
57
  for (const r in e)
58
58
  r !== "__proto__" && r !== "constructor" && (r in t ? Ne(t[r]) || t[r] instanceof String || Ne(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : km(t[r], e[r], n) : t[r] = e[r]);
59
59
  return t;
60
- }, ui = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
60
+ }, li = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
61
61
  var zy = {
62
62
  "&": "&",
63
63
  "<": "&lt;",
@@ -702,7 +702,7 @@ class Yy {
702
702
  maxReplaces: D,
703
703
  alwaysFormat: A
704
704
  } = e.interpolation;
705
- this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? ui(s) : a || "{{", this.suffix = l ? ui(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? ui(g) : b || ui("$t("), this.nestingSuffix = x ? ui(x) : C || ui(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = D || 1e3, this.alwaysFormat = A !== void 0 ? A : !1, this.resetRegExp();
705
+ this.escape = n !== void 0 ? n : Vy, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? li(s) : a || "{{", this.suffix = l ? li(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? li(g) : b || li("$t("), this.nestingSuffix = x ? li(x) : C || li(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = D || 1e3, this.alwaysFormat = A !== void 0 ? A : !1, this.resetRegExp();
706
706
  }
707
707
  reset() {
708
708
  this.options && this.init(this.options);
@@ -816,7 +816,7 @@ const Zy = (t) => {
816
816
  formatName: e,
817
817
  formatOptions: n
818
818
  };
819
- }, di = (t) => {
819
+ }, ui = (t) => {
820
820
  const e = {};
821
821
  return (n, r, i) => {
822
822
  let s = i;
@@ -833,32 +833,32 @@ class Qy {
833
833
  constructor() {
834
834
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
835
835
  this.logger = Sn.create("formatter"), this.options = e, this.formats = {
836
- number: di((n, r) => {
836
+ number: ui((n, r) => {
837
837
  const i = new Intl.NumberFormat(n, {
838
838
  ...r
839
839
  });
840
840
  return (s) => i.format(s);
841
841
  }),
842
- currency: di((n, r) => {
842
+ currency: ui((n, r) => {
843
843
  const i = new Intl.NumberFormat(n, {
844
844
  ...r,
845
845
  style: "currency"
846
846
  });
847
847
  return (s) => i.format(s);
848
848
  }),
849
- datetime: di((n, r) => {
849
+ datetime: ui((n, r) => {
850
850
  const i = new Intl.DateTimeFormat(n, {
851
851
  ...r
852
852
  });
853
853
  return (s) => i.format(s);
854
854
  }),
855
- relativetime: di((n, r) => {
855
+ relativetime: ui((n, r) => {
856
856
  const i = new Intl.RelativeTimeFormat(n, {
857
857
  ...r
858
858
  });
859
859
  return (s) => i.format(s, r.range || "day");
860
860
  }),
861
- list: di((n, r) => {
861
+ list: ui((n, r) => {
862
862
  const i = new Intl.ListFormat(n, {
863
863
  ...r
864
864
  });
@@ -876,7 +876,7 @@ class Qy {
876
876
  this.formats[e.toLowerCase().trim()] = n;
877
877
  }
878
878
  addCached(e, n) {
879
- this.formats[e.toLowerCase().trim()] = di(n);
879
+ this.formats[e.toLowerCase().trim()] = ui(n);
880
880
  }
881
881
  format(e, n, r) {
882
882
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -1660,7 +1660,7 @@ const mu = o.object({
1660
1660
  description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
1661
1661
  }),
1662
1662
  token_quota: o.record(o.any()).default({}).optional()
1663
- }), $i = o.object({
1663
+ }), bi = o.object({
1664
1664
  created_at: o.string(),
1665
1665
  updated_at: o.string(),
1666
1666
  ...mu.shape
@@ -1689,14 +1689,14 @@ const mu = o.object({
1689
1689
  authorization_details_types: o.array(o.string()).optional().openapi({
1690
1690
  description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
1691
1691
  })
1692
- }), xi = o.object({
1692
+ }), $i = o.object({
1693
1693
  id: o.string().openapi({
1694
1694
  description: "ID of the client grant."
1695
1695
  }),
1696
1696
  ..._u.shape,
1697
1697
  created_at: o.string().optional(),
1698
1698
  updated_at: o.string().optional()
1699
- }), vG = o.array(xi), so = o.object({
1699
+ }), vG = o.array($i), so = o.object({
1700
1700
  x: o.number(),
1701
1701
  y: o.number()
1702
1702
  });
@@ -1959,7 +1959,7 @@ const ya = o.object({
1959
1959
  id: o.string()
1960
1960
  });
1961
1961
  o.object({
1962
- ...$i.shape,
1962
+ ...bi.shape,
1963
1963
  tenant: Es,
1964
1964
  connections: o.array(kn),
1965
1965
  // Legacy fields for backward compatibility - these are now stored in client_metadata
@@ -2569,19 +2569,19 @@ const jw = o.object({
2569
2569
  success: o.string(),
2570
2570
  widget_background: o.string(),
2571
2571
  widget_border: o.string()
2572
- }), pi = o.object({
2572
+ }), di = o.object({
2573
2573
  bold: o.boolean(),
2574
2574
  size: o.number()
2575
2575
  }), Bw = o.object({
2576
- body_text: pi,
2577
- buttons_text: pi,
2576
+ body_text: di,
2577
+ buttons_text: di,
2578
2578
  font_url: o.string(),
2579
- input_labels: pi,
2580
- links: pi,
2579
+ input_labels: di,
2580
+ links: di,
2581
2581
  links_style: o.enum(["normal", "underlined"]),
2582
2582
  reference_text_size: o.number(),
2583
- subtitle: pi,
2584
- title: pi
2583
+ subtitle: di,
2584
+ title: di
2585
2585
  }), Lw = o.object({
2586
2586
  background_color: o.string(),
2587
2587
  background_image_url: o.string(),
@@ -2693,12 +2693,12 @@ const jw = o.object({
2693
2693
  allow_offline_access: o.boolean().optional(),
2694
2694
  verificationKey: o.string().optional(),
2695
2695
  options: qw.optional()
2696
- }), Ai = o.object({
2696
+ }), xi = o.object({
2697
2697
  id: o.string().optional(),
2698
2698
  ...$u.shape,
2699
2699
  created_at: o.string().optional(),
2700
2700
  updated_at: o.string().optional()
2701
- }), TG = o.array(Ai), zw = o.object({
2701
+ }), TG = o.array(xi), zw = o.object({
2702
2702
  role_id: o.string(),
2703
2703
  resource_server_identifier: o.string(),
2704
2704
  permission_name: o.string()
@@ -2749,14 +2749,14 @@ const jw = o.object({
2749
2749
  description: o.string().max(255).optional().openapi({
2750
2750
  description: "The description of the role"
2751
2751
  })
2752
- }), Ei = o.object({
2752
+ }), Ai = o.object({
2753
2753
  id: o.string().openapi({
2754
2754
  description: "The unique identifier of the role"
2755
2755
  }),
2756
2756
  ...xu.shape,
2757
2757
  created_at: o.string().optional(),
2758
2758
  updated_at: o.string().optional()
2759
- }), Au = o.array(Ei), Qw = o.object({
2759
+ }), Au = o.array(Ai), Qw = o.object({
2760
2760
  logo_url: o.string().optional().openapi({
2761
2761
  description: "URL of the organization's logo"
2762
2762
  }),
@@ -5079,7 +5079,7 @@ async function xv(t, e) {
5079
5079
  includePadding: !1
5080
5080
  });
5081
5081
  }
5082
- const qo = 60 * 5, mc = 30 * 24 * 60 * 60, qr = 24 * 60 * 60, Av = "auth-token", ta = 30 * 60 * 1e3, ku = 7 * 24 * 60 * 60 * 1e3, Ev = 5 * 60, Sv = 5 * 60, kv = 30 * 60 * 1e3, Nv = 30 * 60 * 1e3, Cv = 24 * 60 * 60 * 1e3;
5082
+ const qo = 60 * 5, mc = 30 * 24 * 60 * 60, Mr = 24 * 60 * 60, Av = "auth-token", ta = 30 * 60 * 1e3, ku = 7 * 24 * 60 * 60 * 1e3, Ev = 5 * 60, Sv = 5 * 60, kv = 30 * 60 * 1e3, Nv = 30 * 60 * 1e3, Cv = 24 * 60 * 60 * 1e3;
5083
5083
  function Gm(t, e, n) {
5084
5084
  const r = [];
5085
5085
  return r.push([encodeURIComponent(t), encodeURIComponent(e)]), (n == null ? void 0 : n.domain) !== void 0 && r.push(["Domain", n.domain]), (n == null ? void 0 : n.expires) !== void 0 && r.push(["Expires", n.expires.toUTCString()]), n != null && n.httpOnly && r.push(["HttpOnly"]), (n == null ? void 0 : n.maxAge) !== void 0 && r.push(["Max-Age", n.maxAge.toString()]), (n == null ? void 0 : n.path) !== void 0 && r.push(["Path", n.path]), (n == null ? void 0 : n.sameSite) === "lax" && r.push(["SameSite", "Lax"]), (n == null ? void 0 : n.sameSite) === "none" && r.push(["SameSite", "None"]), (n == null ? void 0 : n.sameSite) === "strict" && r.push(["SameSite", "Strict"]), n != null && n.secure && r.push(["Secure"]), r.map((i) => i.join("=")).join("; ");
@@ -5104,7 +5104,7 @@ function Wm(t) {
5104
5104
  const n = e.split(".");
5105
5105
  return n.length > 2 ? `.${n.slice(-2).join(".")}` : `.${e}`;
5106
5106
  }
5107
- function Oi(t, e) {
5107
+ function Ii(t, e) {
5108
5108
  return e ? Tv(e).get(yp(t)) : void 0;
5109
5109
  }
5110
5110
  function Iv(t, e) {
@@ -6550,7 +6550,7 @@ function Tu(t, e) {
6550
6550
 
6551
6551
  </html>`;
6552
6552
  }
6553
- class Fr extends E {
6553
+ class Oi extends E {
6554
6554
  constructor(e, n) {
6555
6555
  super(e, {
6556
6556
  message: JSON.stringify(n),
@@ -6637,7 +6637,7 @@ async function va(t, e) {
6637
6637
  })).userOrganizations.some(
6638
6638
  (j) => j.organization_id === a
6639
6639
  ))
6640
- throw new Fr(403, {
6640
+ throw new Oi(403, {
6641
6641
  error: "access_denied",
6642
6642
  error_description: "User is not a member of the specified organization"
6643
6643
  });
@@ -7052,7 +7052,7 @@ async function t3(t, e) {
7052
7052
  )).userOrganizations.some(
7053
7053
  (C) => C.organization_id === e.organization.id
7054
7054
  ))
7055
- throw new Fr(403, {
7055
+ throw new Oi(403, {
7056
7056
  error: "access_denied",
7057
7057
  error_description: "User is not a member of the specified organization"
7058
7058
  });
@@ -7072,7 +7072,7 @@ async function t3(t, e) {
7072
7072
  else {
7073
7073
  const x = (n == null ? void 0 : n.user_id) || ((d = e.user) == null ? void 0 : d.user_id);
7074
7074
  if (!x)
7075
- throw new Fr(400, {
7075
+ throw new Oi(400, {
7076
7076
  error: "invalid_request",
7077
7077
  error_description: "User ID is required for user-based grants"
7078
7078
  });
@@ -9544,7 +9544,7 @@ function Di(t, e) {
9544
9544
  n += t[t.length - 1 - r] * Math.pow(2, e * r);
9545
9545
  return n;
9546
9546
  }
9547
- function zr(t, e, n = -1) {
9547
+ function qr(t, e, n = -1) {
9548
9548
  const r = n;
9549
9549
  let i = t, s = 0, a = Math.pow(2, e);
9550
9550
  for (let l = 1; l < 8; l++) {
@@ -9598,10 +9598,10 @@ function v3(t) {
9598
9598
  for (let r = 1; r < 8; r++) {
9599
9599
  if (e <= n) {
9600
9600
  if (t < 0) {
9601
- const a = n - e, l = zr(a, 8, r), u = new Uint8Array(l);
9601
+ const a = n - e, l = qr(a, 8, r), u = new Uint8Array(l);
9602
9602
  return u[0] |= 128, l;
9603
9603
  }
9604
- let i = zr(e, 8, r), s = new Uint8Array(i);
9604
+ let i = qr(e, 8, r), s = new Uint8Array(i);
9605
9605
  if (s[0] & 128) {
9606
9606
  const a = i.slice(0), l = new Uint8Array(a);
9607
9607
  i = new ArrayBuffer(i.byteLength + 1), s = new Uint8Array(i);
@@ -9732,7 +9732,7 @@ function Rn(t) {
9732
9732
  }
9733
9733
  }, e.NAME = "hexBlock", e;
9734
9734
  }
9735
- class ai {
9735
+ class oi {
9736
9736
  static blockName() {
9737
9737
  return this.NAME;
9738
9738
  }
@@ -9755,8 +9755,8 @@ class ai {
9755
9755
  };
9756
9756
  }
9757
9757
  }
9758
- ai.NAME = "baseBlock";
9759
- class xt extends ai {
9758
+ oi.NAME = "baseBlock";
9759
+ class xt extends oi {
9760
9760
  fromBER(e, n, r) {
9761
9761
  throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
9762
9762
  }
@@ -9765,7 +9765,7 @@ class xt extends ai {
9765
9765
  }
9766
9766
  }
9767
9767
  xt.NAME = "valueBlock";
9768
- class p_ extends Rn(ai) {
9768
+ class p_ extends Rn(oi) {
9769
9769
  constructor({ idBlock: e = {} } = {}) {
9770
9770
  var n, r, i, s;
9771
9771
  super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? ie.toUint8Array(e.valueHex) : bc, 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);
@@ -9797,7 +9797,7 @@ class p_ extends Rn(ai) {
9797
9797
  return i.buffer;
9798
9798
  }
9799
9799
  if (!this.isHexOnly) {
9800
- const i = zr(this.tagNumber, 7), s = new Uint8Array(i), a = i.byteLength, l = new Uint8Array(a + 1);
9800
+ const i = qr(this.tagNumber, 7), s = new Uint8Array(i), a = i.byteLength, l = new Uint8Array(a + 1);
9801
9801
  if (l[0] = n | 31, !e) {
9802
9802
  for (let u = 0; u < a - 1; u++)
9803
9803
  l[u + 1] = s[u] | 128;
@@ -9889,7 +9889,7 @@ class p_ extends Rn(ai) {
9889
9889
  }
9890
9890
  }
9891
9891
  p_.NAME = "identificationBlock";
9892
- class f_ extends ai {
9892
+ class f_ extends oi {
9893
9893
  constructor({ lenBlock: e = {} } = {}) {
9894
9894
  var n, r, i;
9895
9895
  super(), this.isIndefiniteForm = (n = e.isIndefiniteForm) !== null && n !== void 0 ? n : !1, this.longFormUsed = (r = e.longFormUsed) !== null && r !== void 0 ? r : !1, this.length = (i = e.length) !== null && i !== void 0 ? i : 0;
@@ -9920,7 +9920,7 @@ class f_ extends ai {
9920
9920
  if (this.length > 127 && (this.longFormUsed = !0), this.isIndefiniteForm)
9921
9921
  return n = new ArrayBuffer(1), e === !1 && (r = new Uint8Array(n), r[0] = 128), n;
9922
9922
  if (this.longFormUsed) {
9923
- const i = zr(this.length, 8);
9923
+ const i = qr(this.length, 8);
9924
9924
  if (i.byteLength > 127)
9925
9925
  return this.error = "Too big length", wn;
9926
9926
  if (n = new ArrayBuffer(i.byteLength + 1), e)
@@ -9944,7 +9944,7 @@ class f_ extends ai {
9944
9944
  }
9945
9945
  f_.NAME = "lengthBlock";
9946
9946
  const de = {};
9947
- class ht extends ai {
9947
+ class ht extends oi {
9948
9948
  constructor({ name: e = Ct, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
9949
9949
  super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new p_(i), this.lenBlock = new f_(i), this.valueBlock = s ? new s(i) : new xt(i);
9950
9950
  }
@@ -10044,7 +10044,7 @@ function T3(t, e) {
10044
10044
  function Yi(t, e = 0, n = t.length) {
10045
10045
  const r = e;
10046
10046
  let i = new ht({}, xt);
10047
- const s = new ai();
10047
+ const s = new oi();
10048
10048
  if (!rr(s, t, e, n))
10049
10049
  return i.error = s.error, {
10050
10050
  offset: -1,
@@ -10197,7 +10197,7 @@ function Yi(t, e = 0, n = t.length) {
10197
10197
  result: i
10198
10198
  };
10199
10199
  }
10200
- function Ni(t) {
10200
+ function ki(t) {
10201
10201
  if (!t.byteLength) {
10202
10202
  const e = new ht({}, xt);
10203
10203
  return e.error = "Input buffer has zero length", {
@@ -10292,7 +10292,7 @@ w_ = kp;
10292
10292
  de.EndOfContent = w_;
10293
10293
  kp.NAME = Ps;
10294
10294
  var v_;
10295
- class Vr extends ht {
10295
+ class zr extends ht {
10296
10296
  constructor(e = {}) {
10297
10297
  super(e, xt), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
10298
10298
  }
@@ -10311,9 +10311,9 @@ class Vr extends ht {
10311
10311
  return `${this.constructor.NAME}`;
10312
10312
  }
10313
10313
  }
10314
- v_ = Vr;
10314
+ v_ = zr;
10315
10315
  de.Null = v_;
10316
- Vr.NAME = "NULL";
10316
+ zr.NAME = "NULL";
10317
10317
  class b_ extends Rn(xt) {
10318
10318
  get value() {
10319
10319
  for (const e of this.valueHexView)
@@ -10395,7 +10395,7 @@ class x_ extends Rn(_r) {
10395
10395
  }
10396
10396
  x_.NAME = "OctetStringValueBlock";
10397
10397
  var Np;
10398
- let Ur = class extends ht {
10398
+ let Fr = class extends ht {
10399
10399
  constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
10400
10400
  var i, s;
10401
10401
  (i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((s = r.value) === null || s === void 0) && s.length)), super({
@@ -10440,9 +10440,9 @@ let Ur = class extends ht {
10440
10440
  return ie.concat(e);
10441
10441
  }
10442
10442
  };
10443
- Np = Ur;
10443
+ Np = Fr;
10444
10444
  de.OctetString = Np;
10445
- Ur.NAME = u_;
10445
+ Fr.NAME = u_;
10446
10446
  class A_ extends Rn(_r) {
10447
10447
  constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
10448
10448
  super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
@@ -10508,7 +10508,7 @@ class A_ extends Rn(_r) {
10508
10508
  }
10509
10509
  A_.NAME = "BitStringValueBlock";
10510
10510
  var E_;
10511
- let Mr = class extends ht {
10511
+ let Ur = class extends ht {
10512
10512
  constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
10513
10513
  var i, s;
10514
10514
  (i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((s = r.value) === null || s === void 0) && s.length)), super({
@@ -10538,9 +10538,9 @@ let Mr = class extends ht {
10538
10538
  }
10539
10539
  }
10540
10540
  };
10541
- E_ = Mr;
10541
+ E_ = Ur;
10542
10542
  de.BitString = E_;
10543
- Mr.NAME = d_;
10543
+ Ur.NAME = d_;
10544
10544
  var S_;
10545
10545
  function O3(t, e) {
10546
10546
  const n = new Uint8Array([0]), r = new Uint8Array(t), i = new Uint8Array(e);
@@ -10767,7 +10767,7 @@ class Ou extends Rn(xt) {
10767
10767
  s[a] = i[a] | 128;
10768
10768
  return s[this.blockLength - 1] = i[this.blockLength - 1], s.buffer;
10769
10769
  }
10770
- const n = zr(this.valueDec, 7);
10770
+ const n = qr(this.valueDec, 7);
10771
10771
  if (n.byteLength === 0)
10772
10772
  return this.error = "Error during encoding SID value", wn;
10773
10773
  const r = new Uint8Array(n.byteLength);
@@ -10904,7 +10904,7 @@ class Ac extends ht {
10904
10904
  C_ = Ac;
10905
10905
  de.ObjectIdentifier = C_;
10906
10906
  Ac.NAME = "OBJECT IDENTIFIER";
10907
- class Du extends Rn(ai) {
10907
+ class Du extends Rn(oi) {
10908
10908
  constructor({ valueDec: e = 0, ...n } = {}) {
10909
10909
  super(n), this.valueDec = e;
10910
10910
  }
@@ -10932,7 +10932,7 @@ class Du extends Rn(ai) {
10932
10932
  s[a] = i[a] | 128;
10933
10933
  return s[this.blockLength - 1] = i[this.blockLength - 1], s.buffer;
10934
10934
  }
10935
- const n = zr(this.valueDec, 7);
10935
+ const n = qr(this.valueDec, 7);
10936
10936
  if (n.byteLength === 0)
10937
10937
  return this.error = "Error during encoding SID value", wn;
10938
10938
  const r = new Uint8Array(n.byteLength);
@@ -11136,7 +11136,7 @@ class U_ extends zt {
11136
11136
  fromString(e) {
11137
11137
  const n = e.length, r = this.valueBlock.valueHexView = new Uint8Array(n * 4);
11138
11138
  for (let i = 0; i < n; i++) {
11139
- const s = zr(e.charCodeAt(i), 8), a = new Uint8Array(s);
11139
+ const s = qr(e.charCodeAt(i), 8), a = new Uint8Array(s);
11140
11140
  if (a.length > 4)
11141
11141
  continue;
11142
11142
  const l = 4 - a.length;
@@ -11466,18 +11466,18 @@ class jp extends ir {
11466
11466
  r2 = jp;
11467
11467
  de.TIME = r2;
11468
11468
  jp.NAME = "TIME";
11469
- class Hr {
11469
+ class Vr {
11470
11470
  constructor({ name: e = Ct, optional: n = !1 } = {}) {
11471
11471
  this.name = e, this.optional = n;
11472
11472
  }
11473
11473
  }
11474
- class Pp extends Hr {
11474
+ class Pp extends Vr {
11475
11475
  constructor({ value: e = [], ...n } = {}) {
11476
11476
  super(n), this.value = e;
11477
11477
  }
11478
11478
  }
11479
- class $a extends Hr {
11480
- constructor({ value: e = new Hr(), local: n = !1, ...r } = {}) {
11479
+ class $a extends Vr {
11480
+ constructor({ value: e = new Vr(), local: n = !1, ...r } = {}) {
11481
11481
  super(r), this.value = e, this.local = n;
11482
11482
  }
11483
11483
  }
@@ -11515,7 +11515,7 @@ function hr(t, e, n) {
11515
11515
  return n.hasOwnProperty(jl) && (s.name = n.name), s;
11516
11516
  }
11517
11517
  }
11518
- if (n instanceof Hr)
11518
+ if (n instanceof Vr)
11519
11519
  return n.hasOwnProperty(jl) && (t[n.name] = e), {
11520
11520
  verified: !0,
11521
11521
  result: t
@@ -11708,10 +11708,10 @@ function j3(t, e) {
11708
11708
  }
11709
11709
  const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11710
11710
  __proto__: null,
11711
- Any: Hr,
11711
+ Any: Vr,
11712
11712
  BaseBlock: ht,
11713
11713
  BaseStringBlock: Sp,
11714
- BitString: Mr,
11714
+ BitString: Ur,
11715
11715
  BmpString: Ec,
11716
11716
  Boolean: $c,
11717
11717
  CharacterString: Rc,
@@ -11728,10 +11728,10 @@ const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11728
11728
  HexBlock: Rn,
11729
11729
  IA5String: Ic,
11730
11730
  Integer: Zi,
11731
- Null: Vr,
11731
+ Null: zr,
11732
11732
  NumericString: kc,
11733
11733
  ObjectIdentifier: Ac,
11734
- OctetString: Ur,
11734
+ OctetString: Fr,
11735
11735
  Primitive: co,
11736
11736
  PrintableString: Nc,
11737
11737
  RawData: R3,
@@ -11750,7 +11750,7 @@ const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11750
11750
  ViewWriter: vc,
11751
11751
  VisibleString: lo,
11752
11752
  compareSchema: hr,
11753
- fromBER: Ni,
11753
+ fromBER: ki,
11754
11754
  verifySchema: j3
11755
11755
  }, Symbol.toStringTag, { value: "Module" }));
11756
11756
  var H;
@@ -11772,15 +11772,15 @@ class Pc {
11772
11772
  throw TypeError("Unsupported type of 'params' argument for BitString");
11773
11773
  }
11774
11774
  fromASN(e) {
11775
- if (!(e instanceof Mr))
11775
+ if (!(e instanceof Ur))
11776
11776
  throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");
11777
11777
  return this.unusedBits = e.valueBlock.unusedBits, this.value = e.valueBlock.valueHex, this;
11778
11778
  }
11779
11779
  toASN() {
11780
- return new Mr({ unusedBits: this.unusedBits, valueHex: this.value });
11780
+ return new Ur({ unusedBits: this.unusedBits, valueHex: this.value });
11781
11781
  }
11782
11782
  toSchema(e) {
11783
- return new Mr({ name: e });
11783
+ return new Ur({ name: e });
11784
11784
  }
11785
11785
  toNumber() {
11786
11786
  let e = "";
@@ -11812,23 +11812,23 @@ class De {
11812
11812
  typeof e == "number" ? this.buffer = new ArrayBuffer(e) : ie.isBufferSource(e) ? this.buffer = ie.toArrayBuffer(e) : Array.isArray(e) ? this.buffer = new Uint8Array(e) : this.buffer = new ArrayBuffer(0);
11813
11813
  }
11814
11814
  fromASN(e) {
11815
- if (!(e instanceof Ur))
11815
+ if (!(e instanceof Fr))
11816
11816
  throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
11817
11817
  return this.buffer = e.valueBlock.valueHex, this;
11818
11818
  }
11819
11819
  toASN() {
11820
- return new Ur({ valueHex: this.buffer });
11820
+ return new Fr({ valueHex: this.buffer });
11821
11821
  }
11822
11822
  toSchema(e) {
11823
- return new Ur({ name: e });
11823
+ return new Fr({ name: e });
11824
11824
  }
11825
11825
  }
11826
11826
  const P3 = {
11827
- fromASN: (t) => t instanceof Vr ? null : t.valueBeforeDecodeView,
11827
+ fromASN: (t) => t instanceof zr ? null : t.valueBeforeDecodeView,
11828
11828
  toASN: (t) => {
11829
11829
  if (t === null)
11830
- return new Vr();
11831
- const e = Ni(t);
11830
+ return new zr();
11831
+ const e = ki(t);
11832
11832
  if (e.result.error)
11833
11833
  throw new Error(e.result.error);
11834
11834
  return e.result;
@@ -11844,7 +11844,7 @@ const P3 = {
11844
11844
  toASN: (t) => new Zi({ valueHex: t })
11845
11845
  }, F3 = {
11846
11846
  fromASN: (t) => t.valueBlock.valueHexView,
11847
- toASN: (t) => new Mr({ valueHex: t })
11847
+ toASN: (t) => new Ur({ valueHex: t })
11848
11848
  }, U3 = {
11849
11849
  fromASN: (t) => t.valueBlock.toString(),
11850
11850
  toASN: (t) => new Ac({ value: t })
@@ -11853,7 +11853,7 @@ const P3 = {
11853
11853
  toASN: (t) => new $c({ value: t })
11854
11854
  }, xa = {
11855
11855
  fromASN: (t) => t.valueBlock.valueHexView,
11856
- toASN: (t) => new Ur({ valueHex: t })
11856
+ toASN: (t) => new Fr({ valueHex: t })
11857
11857
  }, q3 = {
11858
11858
  fromASN: (t) => new De(t.getValue()),
11859
11859
  toASN: (t) => t.toASN()
@@ -11872,7 +11872,7 @@ const s2 = en(ir), z3 = en(Ec), V3 = en(Sc), H3 = en(kc), K3 = en(Nc), G3 = en(C
11872
11872
  toASN: (t) => new jc({ valueDate: t })
11873
11873
  }, n4 = {
11874
11874
  fromASN: () => null,
11875
- toASN: () => new Vr()
11875
+ toASN: () => new zr()
11876
11876
  };
11877
11877
  function ks(t) {
11878
11878
  switch (t) {
@@ -11977,7 +11977,7 @@ class i4 {
11977
11977
  if (!h)
11978
11978
  throw new Error(`Cannot get ASN1 class by name '${p}'`);
11979
11979
  u = new h({ name: l });
11980
- } else Hn(a.type) ? u = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === H.Choice ? u = new Hr({ name: l }) : (u = this.create(a.type, !1), u.name = l) : u = new Hr({ name: l });
11980
+ } else Hn(a.type) ? u = new a.type().toSchema(l) : a.optional ? this.get(a.type).type === H.Choice ? u = new Vr({ name: l }) : (u = this.create(a.type, !1), u.name = l) : u = new Vr({ name: l });
11981
11981
  const d = !!a.optional || a.defaultValue !== void 0;
11982
11982
  if (a.repeated) {
11983
11983
  u.name = "";
@@ -12053,7 +12053,7 @@ class gs extends Error {
12053
12053
  }
12054
12054
  class s4 {
12055
12055
  static parse(e, n) {
12056
- const r = Ni(e);
12056
+ const r = ki(e);
12057
12057
  if (r.result.error)
12058
12058
  throw new Error(r.result.error);
12059
12059
  return this.fromASN(r.result, n);
@@ -12222,7 +12222,7 @@ class s4 {
12222
12222
  if (n.implicit) {
12223
12223
  const i = n.repeated === "sequence" ? ln : Cn, s = new i();
12224
12224
  s.valueBlock = e.valueBlock;
12225
- const a = Ni(s.toBER(!1));
12225
+ const a = ki(s.toBER(!1));
12226
12226
  if (a.offset === -1)
12227
12227
  throw new Error(`Cannot parse the child item. ${a.result.error}`);
12228
12228
  if (!("value" in a.result.valueBlock && Array.isArray(a.result.valueBlock.value)))
@@ -12244,7 +12244,7 @@ class s4 {
12244
12244
  throw new Error(`Cannot get '${l}' class from asn1js module`);
12245
12245
  a = new u();
12246
12246
  }
12247
- a.valueBlock = s.valueBlock, s = Ni(a.toBER(!1)).result;
12247
+ a.valueBlock = s.valueBlock, s = ki(a.toBER(!1)).result;
12248
12248
  }
12249
12249
  return i.fromASN(s);
12250
12250
  }
@@ -12315,7 +12315,7 @@ class Bp {
12315
12315
  if (l.implicit)
12316
12316
  if (!l.repeated && (typeof l.type == "number" || Hn(l.type))) {
12317
12317
  const p = {};
12318
- p.valueHex = d instanceof Vr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), i.push(new co({
12318
+ p.valueHex = d instanceof zr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), i.push(new co({
12319
12319
  optional: l.optional,
12320
12320
  idBlock: {
12321
12321
  tagClass: 3,
@@ -12405,7 +12405,7 @@ class re {
12405
12405
  return s4.parse(e, n);
12406
12406
  }
12407
12407
  static toString(e) {
12408
- const n = ie.isBufferSource(e) ? ie.toArrayBuffer(e) : re.serialize(e), r = Ni(n);
12408
+ const n = ie.isBufferSource(e) ? ie.toArrayBuffer(e) : re.serialize(e), r = ki(n);
12409
12409
  if (r.offset === -1)
12410
12410
  throw new Error(`Cannot decode ASN.1 data. ${r.result.error}`);
12411
12411
  return r.result.toString();
@@ -12679,14 +12679,14 @@ m([
12679
12679
  m([
12680
12680
  w({ type: Te })
12681
12681
  ], po.prototype, "accessLocation", void 0);
12682
- let Si = Lu = class extends Pe {
12682
+ let Ei = Lu = class extends Pe {
12683
12683
  constructor(e) {
12684
12684
  super(e), Object.setPrototypeOf(this, Lu.prototype);
12685
12685
  }
12686
12686
  };
12687
- Si = Lu = m([
12687
+ Ei = Lu = m([
12688
12688
  J({ type: H.Sequence, itemType: po })
12689
- ], Si);
12689
+ ], Ei);
12690
12690
  const Uu = `${sr}.35`;
12691
12691
  class Up extends De {
12692
12692
  }
@@ -12862,27 +12862,27 @@ class l2 extends Pc {
12862
12862
  return `[${this.toJSON().join(", ")}]`;
12863
12863
  }
12864
12864
  }
12865
- let Kr = class {
12865
+ let Hr = class {
12866
12866
  constructor(e = {}) {
12867
12867
  Object.assign(this, e);
12868
12868
  }
12869
12869
  };
12870
12870
  m([
12871
12871
  w({ type: Te, context: 0, repeated: "sequence", implicit: !0 })
12872
- ], Kr.prototype, "fullName", void 0);
12872
+ ], Hr.prototype, "fullName", void 0);
12873
12873
  m([
12874
12874
  w({ type: ji, context: 1, implicit: !0 })
12875
- ], Kr.prototype, "nameRelativeToCRLIssuer", void 0);
12876
- Kr = m([
12875
+ ], Hr.prototype, "nameRelativeToCRLIssuer", void 0);
12876
+ Hr = m([
12877
12877
  J({ type: H.Choice })
12878
- ], Kr);
12878
+ ], Hr);
12879
12879
  class es {
12880
12880
  constructor(e = {}) {
12881
12881
  Object.assign(this, e);
12882
12882
  }
12883
12883
  }
12884
12884
  m([
12885
- w({ type: Kr, context: 0, optional: !0 })
12885
+ w({ type: Hr, context: 0, optional: !0 })
12886
12886
  ], es.prototype, "distributionPoint", void 0);
12887
12887
  m([
12888
12888
  w({ type: l2, context: 1, optional: !0, implicit: !0 })
@@ -12890,16 +12890,16 @@ m([
12890
12890
  m([
12891
12891
  w({ type: Te, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
12892
12892
  ], es.prototype, "cRLIssuer", void 0);
12893
- let Ci = Vu = class extends Pe {
12893
+ let Ni = Vu = class extends Pe {
12894
12894
  constructor(e) {
12895
12895
  super(e), Object.setPrototypeOf(this, Vu.prototype);
12896
12896
  }
12897
12897
  };
12898
- Ci = Vu = m([
12898
+ Ni = Vu = m([
12899
12899
  J({ type: H.Sequence, itemType: es })
12900
- ], Ci);
12900
+ ], Ni);
12901
12901
  var Ku;
12902
- let Uh = Ku = class extends Ci {
12902
+ let Uh = Ku = class extends Ni {
12903
12903
  constructor(e) {
12904
12904
  super(e), Object.setPrototypeOf(this, Ku.prototype);
12905
12905
  }
@@ -12914,7 +12914,7 @@ class _t {
12914
12914
  }
12915
12915
  _t.ONLY = !1;
12916
12916
  m([
12917
- w({ type: Kr, context: 0, optional: !0 })
12917
+ w({ type: Hr, context: 0, optional: !0 })
12918
12918
  ], _t.prototype, "distributionPoint", void 0);
12919
12919
  m([
12920
12920
  w({
@@ -13280,20 +13280,20 @@ let br = id = class extends Pe {
13280
13280
  br = id = m([
13281
13281
  J({ type: H.Sequence, itemType: Qt })
13282
13282
  ], br);
13283
- var Gr;
13283
+ var Kr;
13284
13284
  (function(t) {
13285
13285
  t[t.v1 = 0] = "v1", t[t.v2 = 1] = "v2", t[t.v3 = 2] = "v3";
13286
- })(Gr || (Gr = {}));
13286
+ })(Kr || (Kr = {}));
13287
13287
  class Vt {
13288
13288
  constructor(e = {}) {
13289
- this.version = Gr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new ue(), this.issuer = new et(), this.validity = new fo(), this.subject = new et(), this.subjectPublicKeyInfo = new an(), Object.assign(this, e);
13289
+ this.version = Kr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new ue(), this.issuer = new et(), this.validity = new fo(), this.subject = new et(), this.subjectPublicKeyInfo = new an(), Object.assign(this, e);
13290
13290
  }
13291
13291
  }
13292
13292
  m([
13293
13293
  w({
13294
13294
  type: T.Integer,
13295
13295
  context: 0,
13296
- defaultValue: Gr.v1
13296
+ defaultValue: Kr.v1
13297
13297
  })
13298
13298
  ], Vt.prototype, "version", void 0);
13299
13299
  m([
@@ -13331,20 +13331,20 @@ m([
13331
13331
  m([
13332
13332
  w({ type: br, context: 3, optional: !0 })
13333
13333
  ], Vt.prototype, "extensions", void 0);
13334
- class Wr {
13334
+ class Gr {
13335
13335
  constructor(e = {}) {
13336
13336
  this.tbsCertificate = new Vt(), this.signatureAlgorithm = new ue(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
13337
13337
  }
13338
13338
  }
13339
13339
  m([
13340
13340
  w({ type: Vt })
13341
- ], Wr.prototype, "tbsCertificate", void 0);
13341
+ ], Gr.prototype, "tbsCertificate", void 0);
13342
13342
  m([
13343
13343
  w({ type: ue })
13344
- ], Wr.prototype, "signatureAlgorithm", void 0);
13344
+ ], Gr.prototype, "signatureAlgorithm", void 0);
13345
13345
  m([
13346
13346
  w({ type: T.BitString })
13347
- ], Wr.prototype, "signatureValue", void 0);
13347
+ ], Gr.prototype, "signatureValue", void 0);
13348
13348
  class Mc {
13349
13349
  constructor(e = {}) {
13350
13350
  this.userCertificate = new ArrayBuffer(0), this.revocationDate = new pt(), Object.assign(this, e);
@@ -13554,41 +13554,41 @@ m([
13554
13554
  m([
13555
13555
  w({ type: T.Boolean, defaultValue: !0 })
13556
13556
  ], qc.prototype, "permitUnSpecified", void 0);
13557
- class ci {
13557
+ class ai {
13558
13558
  constructor(e = {}) {
13559
13559
  this.issuer = new yt(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
13560
13560
  }
13561
13561
  }
13562
13562
  m([
13563
13563
  w({ type: yt })
13564
- ], ci.prototype, "issuer", void 0);
13564
+ ], ai.prototype, "issuer", void 0);
13565
13565
  m([
13566
13566
  w({ type: T.Integer, converter: He })
13567
- ], ci.prototype, "serial", void 0);
13567
+ ], ai.prototype, "serial", void 0);
13568
13568
  m([
13569
13569
  w({ type: T.BitString, optional: !0 })
13570
- ], ci.prototype, "issuerUID", void 0);
13570
+ ], ai.prototype, "issuerUID", void 0);
13571
13571
  var cd;
13572
13572
  (function(t) {
13573
13573
  t[t.publicKey = 0] = "publicKey", t[t.publicKeyCert = 1] = "publicKeyCert", t[t.otherObjectTypes = 2] = "otherObjectTypes";
13574
13574
  })(cd || (cd = {}));
13575
- class li {
13575
+ class ci {
13576
13576
  constructor(e = {}) {
13577
13577
  this.digestedObjectType = cd.publicKey, this.digestAlgorithm = new ue(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
13578
13578
  }
13579
13579
  }
13580
13580
  m([
13581
13581
  w({ type: T.Enumerated })
13582
- ], li.prototype, "digestedObjectType", void 0);
13582
+ ], ci.prototype, "digestedObjectType", void 0);
13583
13583
  m([
13584
13584
  w({ type: T.ObjectIdentifier, optional: !0 })
13585
- ], li.prototype, "otherObjectTypeID", void 0);
13585
+ ], ci.prototype, "otherObjectTypeID", void 0);
13586
13586
  m([
13587
13587
  w({ type: ue })
13588
- ], li.prototype, "digestAlgorithm", void 0);
13588
+ ], ci.prototype, "digestAlgorithm", void 0);
13589
13589
  m([
13590
13590
  w({ type: T.BitString })
13591
- ], li.prototype, "objectDigest", void 0);
13591
+ ], ci.prototype, "objectDigest", void 0);
13592
13592
  class zc {
13593
13593
  constructor(e = {}) {
13594
13594
  Object.assign(this, e);
@@ -13598,10 +13598,10 @@ m([
13598
13598
  w({ type: yt, optional: !0 })
13599
13599
  ], zc.prototype, "issuerName", void 0);
13600
13600
  m([
13601
- w({ type: ci, context: 0, implicit: !0, optional: !0 })
13601
+ w({ type: ai, context: 0, implicit: !0, optional: !0 })
13602
13602
  ], zc.prototype, "baseCertificateID", void 0);
13603
13603
  m([
13604
- w({ type: li, context: 1, implicit: !0, optional: !0 })
13604
+ w({ type: ci, context: 1, implicit: !0, optional: !0 })
13605
13605
  ], zc.prototype, "objectDigestInfo", void 0);
13606
13606
  let Bi = class {
13607
13607
  constructor(e = {}) {
@@ -13634,13 +13634,13 @@ class ho {
13634
13634
  }
13635
13635
  }
13636
13636
  m([
13637
- w({ type: ci, implicit: !0, context: 0, optional: !0 })
13637
+ w({ type: ai, implicit: !0, context: 0, optional: !0 })
13638
13638
  ], ho.prototype, "baseCertificateID", void 0);
13639
13639
  m([
13640
13640
  w({ type: yt, implicit: !0, context: 1, optional: !0 })
13641
13641
  ], ho.prototype, "entityName", void 0);
13642
13642
  m([
13643
- w({ type: li, implicit: !0, context: 2, optional: !0 })
13643
+ w({ type: ci, implicit: !0, context: 2, optional: !0 })
13644
13644
  ], ho.prototype, "objectDigestInfo", void 0);
13645
13645
  var ld;
13646
13646
  (function(t) {
@@ -13751,17 +13751,17 @@ m([
13751
13751
  var dd;
13752
13752
  class Gc {
13753
13753
  constructor(e = {}) {
13754
- this.targetCertificate = new ci(), Object.assign(this, e);
13754
+ this.targetCertificate = new ai(), Object.assign(this, e);
13755
13755
  }
13756
13756
  }
13757
13757
  m([
13758
- w({ type: ci })
13758
+ w({ type: ai })
13759
13759
  ], Gc.prototype, "targetCertificate", void 0);
13760
13760
  m([
13761
13761
  w({ type: Te, optional: !0 })
13762
13762
  ], Gc.prototype, "targetName", void 0);
13763
13763
  m([
13764
- w({ type: li, optional: !0 })
13764
+ w({ type: ci, optional: !0 })
13765
13765
  ], Gc.prototype, "certDigestInfo", void 0);
13766
13766
  let Li = class {
13767
13767
  constructor(e = {}) {
@@ -13840,7 +13840,7 @@ let Fi = class {
13840
13840
  }
13841
13841
  };
13842
13842
  m([
13843
- w({ type: Wr })
13843
+ w({ type: Gr })
13844
13844
  ], Fi.prototype, "certificate", void 0);
13845
13845
  m([
13846
13846
  w({ type: Hc, context: 2, implicit: !0 })
@@ -14000,33 +14000,33 @@ m([
14000
14000
  m([
14001
14001
  w({ type: T.BitString })
14002
14002
  ], Zp.prototype, "publicKey", void 0);
14003
- let Xr = class {
14003
+ let Wr = class {
14004
14004
  constructor(e = {}) {
14005
14005
  Object.assign(this, e);
14006
14006
  }
14007
14007
  };
14008
14008
  m([
14009
14009
  w({ type: yr, context: 0, implicit: !0, optional: !0 })
14010
- ], Xr.prototype, "subjectKeyIdentifier", void 0);
14010
+ ], Wr.prototype, "subjectKeyIdentifier", void 0);
14011
14011
  m([
14012
14012
  w({ type: Zp, context: 1, implicit: !0, optional: !0 })
14013
- ], Xr.prototype, "originatorKey", void 0);
14013
+ ], Wr.prototype, "originatorKey", void 0);
14014
14014
  m([
14015
14015
  w({ type: ts, optional: !0 })
14016
- ], Xr.prototype, "issuerAndSerialNumber", void 0);
14017
- Xr = m([
14016
+ ], Wr.prototype, "issuerAndSerialNumber", void 0);
14017
+ Wr = m([
14018
14018
  J({ type: H.Choice })
14019
- ], Xr);
14019
+ ], Wr);
14020
14020
  class is {
14021
14021
  constructor(e = {}) {
14022
- this.version = Jn.v3, this.originator = new Xr(), this.keyEncryptionAlgorithm = new Dn(), this.recipientEncryptedKeys = new Pa(), Object.assign(this, e);
14022
+ this.version = Jn.v3, this.originator = new Wr(), this.keyEncryptionAlgorithm = new Dn(), this.recipientEncryptedKeys = new Pa(), Object.assign(this, e);
14023
14023
  }
14024
14024
  }
14025
14025
  m([
14026
14026
  w({ type: T.Integer })
14027
14027
  ], is.prototype, "version", void 0);
14028
14028
  m([
14029
- w({ type: Xr, context: 0 })
14029
+ w({ type: Wr, context: 0 })
14030
14030
  ], is.prototype, "originator", void 0);
14031
14031
  m([
14032
14032
  w({ type: De, context: 1, optional: !0 })
@@ -14378,13 +14378,13 @@ m([
14378
14378
  m([
14379
14379
  w({ type: T.Integer, converter: He })
14380
14380
  ], Ma.prototype, "s", void 0);
14381
- const Ot = "1.2.840.113549.1.1", Jr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Ts = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
14381
+ const Ot = "1.2.840.113549.1.1", Xr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Ts = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
14382
14382
  function ot(t) {
14383
14383
  return new ue({ algorithm: t, parameters: null });
14384
14384
  }
14385
14385
  ot(k4);
14386
14386
  ot(N4);
14387
- const Yr = ot(Ha);
14387
+ const Jr = ot(Ha);
14388
14388
  ot(S2);
14389
14389
  ot(Ka);
14390
14390
  ot(Ga);
@@ -14393,7 +14393,7 @@ ot(E4);
14393
14393
  ot(S4);
14394
14394
  const k2 = new ue({
14395
14395
  algorithm: Qc,
14396
- parameters: re.serialize(Yr)
14396
+ parameters: re.serialize(Jr)
14397
14397
  }), N2 = new ue({
14398
14398
  algorithm: b4,
14399
14399
  parameters: re.serialize(xa.toASN(new Uint8Array([
@@ -14419,7 +14419,7 @@ const k2 = new ue({
14419
14419
  9
14420
14420
  ]).buffer))
14421
14421
  });
14422
- ot(Jr);
14422
+ ot(Xr);
14423
14423
  ot($4);
14424
14424
  ot(x4);
14425
14425
  ot(qa);
@@ -14431,14 +14431,14 @@ ot(A2);
14431
14431
  ot(E2);
14432
14432
  class el {
14433
14433
  constructor(e = {}) {
14434
- this.hashAlgorithm = new ue(Yr), this.maskGenAlgorithm = new ue({
14434
+ this.hashAlgorithm = new ue(Jr), this.maskGenAlgorithm = new ue({
14435
14435
  algorithm: Qc,
14436
- parameters: re.serialize(Yr)
14436
+ parameters: re.serialize(Jr)
14437
14437
  }), this.pSourceAlgorithm = new ue(N2), Object.assign(this, e);
14438
14438
  }
14439
14439
  }
14440
14440
  m([
14441
- w({ type: ue, context: 0, defaultValue: Yr })
14441
+ w({ type: ue, context: 0, defaultValue: Jr })
14442
14442
  ], el.prototype, "hashAlgorithm", void 0);
14443
14443
  m([
14444
14444
  w({ type: ue, context: 1, defaultValue: k2 })
@@ -14450,29 +14450,29 @@ new ue({
14450
14450
  algorithm: v4,
14451
14451
  parameters: re.serialize(new el())
14452
14452
  });
14453
- class Zr {
14453
+ class Yr {
14454
14454
  constructor(e = {}) {
14455
- this.hashAlgorithm = new ue(Yr), this.maskGenAlgorithm = new ue({
14455
+ this.hashAlgorithm = new ue(Jr), this.maskGenAlgorithm = new ue({
14456
14456
  algorithm: Qc,
14457
- parameters: re.serialize(Yr)
14457
+ parameters: re.serialize(Jr)
14458
14458
  }), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
14459
14459
  }
14460
14460
  }
14461
14461
  m([
14462
- w({ type: ue, context: 0, defaultValue: Yr })
14463
- ], Zr.prototype, "hashAlgorithm", void 0);
14462
+ w({ type: ue, context: 0, defaultValue: Jr })
14463
+ ], Yr.prototype, "hashAlgorithm", void 0);
14464
14464
  m([
14465
14465
  w({ type: ue, context: 1, defaultValue: k2 })
14466
- ], Zr.prototype, "maskGenAlgorithm", void 0);
14466
+ ], Yr.prototype, "maskGenAlgorithm", void 0);
14467
14467
  m([
14468
14468
  w({ type: T.Integer, context: 2, defaultValue: 20 })
14469
- ], Zr.prototype, "saltLength", void 0);
14469
+ ], Yr.prototype, "saltLength", void 0);
14470
14470
  m([
14471
14471
  w({ type: T.Integer, context: 3, defaultValue: 1 })
14472
- ], Zr.prototype, "trailerField", void 0);
14472
+ ], Yr.prototype, "trailerField", void 0);
14473
14473
  new ue({
14474
14474
  algorithm: Ts,
14475
- parameters: re.serialize(new Zr())
14475
+ parameters: re.serialize(new Yr())
14476
14476
  });
14477
14477
  class tl {
14478
14478
  constructor(e = {}) {
@@ -14753,7 +14753,7 @@ var T2 = function() {
14753
14753
  return this.reflectMethods.forEach(r), n;
14754
14754
  }, t;
14755
14755
  }();
14756
- function fi(t) {
14756
+ function pi(t) {
14757
14757
  return typeof t == "string" || typeof t == "symbol";
14758
14758
  }
14759
14759
  function D4(t) {
@@ -14869,7 +14869,7 @@ var M4 = function(t) {
14869
14869
  throw new Error('Cannot use lifecycle "' + Nt[r.lifecycle] + '" with ValueProviders or FactoryProviders');
14870
14870
  return this._registry.set(e, { provider: i, options: r }), this;
14871
14871
  }, t.prototype.registerType = function(e, n) {
14872
- return this.ensureNotDisposed(), fi(n) ? this.register(e, {
14872
+ return this.ensureNotDisposed(), pi(n) ? this.register(e, {
14873
14873
  useToken: n
14874
14874
  }) : this.register(e, {
14875
14875
  useClass: n
@@ -14879,8 +14879,8 @@ var M4 = function(t) {
14879
14879
  useValue: n
14880
14880
  });
14881
14881
  }, t.prototype.registerSingleton = function(e, n) {
14882
- if (this.ensureNotDisposed(), fi(e)) {
14883
- if (fi(n))
14882
+ if (this.ensureNotDisposed(), pi(e)) {
14883
+ if (pi(n))
14884
14884
  return this.register(e, {
14885
14885
  useToken: n
14886
14886
  }, { lifecycle: Nt.Singleton });
@@ -14891,13 +14891,13 @@ var M4 = function(t) {
14891
14891
  throw new Error('Cannot register a type name as a singleton without a "to" token');
14892
14892
  }
14893
14893
  var r = e;
14894
- return n && !fi(n) && (r = n), this.register(e, {
14894
+ return n && !pi(n) && (r = n), this.register(e, {
14895
14895
  useClass: r
14896
14896
  }, { lifecycle: Nt.Singleton });
14897
14897
  }, t.prototype.resolve = function(e, n, r) {
14898
14898
  n === void 0 && (n = new Vo()), r === void 0 && (r = !1), this.ensureNotDisposed();
14899
14899
  var i = this.getRegistration(e);
14900
- if (!i && fi(e)) {
14900
+ if (!i && pi(e)) {
14901
14901
  if (r)
14902
14902
  return;
14903
14903
  throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
@@ -14960,7 +14960,7 @@ var M4 = function(t) {
14960
14960
  var i = this;
14961
14961
  n === void 0 && (n = new Vo()), r === void 0 && (r = !1), this.ensureNotDisposed();
14962
14962
  var s = this.getAllRegistrations(e);
14963
- if (!s && fi(e)) {
14963
+ if (!s && pi(e)) {
14964
14964
  if (r)
14965
14965
  return [];
14966
14966
  throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
@@ -15555,8 +15555,8 @@ class H4 {
15555
15555
  };
15556
15556
  }
15557
15557
  }
15558
- const Qr = "crypto.algorithmProvider";
15559
- mt.registerSingleton(Qr, H4);
15558
+ const Zr = "crypto.algorithmProvider";
15559
+ mt.registerSingleton(Zr, H4);
15560
15560
  var ia;
15561
15561
  const Dt = "1.3.36.3.3.2.8.1.1", _0 = `${Dt}.1`, y0 = `${Dt}.2`, w0 = `${Dt}.3`, v0 = `${Dt}.4`, b0 = `${Dt}.5`, $0 = `${Dt}.6`, x0 = `${Dt}.7`, A0 = `${Dt}.8`, E0 = `${Dt}.9`, S0 = `${Dt}.10`, k0 = `${Dt}.11`, N0 = `${Dt}.12`, C0 = `${Dt}.13`, T0 = `${Dt}.14`, I0 = "brainpoolP160r1", O0 = "brainpoolP160t1", D0 = "brainpoolP192r1", R0 = "brainpoolP192t1", j0 = "brainpoolP224r1", P0 = "brainpoolP224t1", B0 = "brainpoolP256r1", L0 = "brainpoolP256t1", F0 = "brainpoolP320r1", U0 = "brainpoolP320t1", M0 = "brainpoolP384r1", q0 = "brainpoolP384t1", z0 = "brainpoolP512r1", V0 = "brainpoolP512t1", Ke = "ECDSA";
15562
15562
  let Vs = ia = class {
@@ -15740,7 +15740,7 @@ Nr.items = {
15740
15740
  [Ka]: "sha256",
15741
15741
  [Ga]: "sha384",
15742
15742
  [Wa]: "sha512",
15743
- [Jr]: "rsaEncryption",
15743
+ [Xr]: "rsaEncryption",
15744
15744
  [qa]: "sha1WithRSAEncryption",
15745
15745
  [A4]: "sha224WithRSAEncryption",
15746
15746
  [$d]: "sha256WithRSAEncryption",
@@ -15760,7 +15760,7 @@ Nr.items = {
15760
15760
  [f4]: "OCSP Signing",
15761
15761
  [h4]: "Signed Data"
15762
15762
  };
15763
- class ei {
15763
+ class Qr {
15764
15764
  static serialize(e) {
15765
15765
  return this.serializeObj(e).join(`
15766
15766
  `);
@@ -15813,8 +15813,8 @@ class ei {
15813
15813
  return this.algorithmSerializer.toTextObject(e);
15814
15814
  }
15815
15815
  }
15816
- ei.oidSerializer = Nr;
15817
- ei.algorithmSerializer = K4;
15816
+ Qr.oidSerializer = Nr;
15817
+ Qr.algorithmSerializer = K4;
15818
15818
  class Cr {
15819
15819
  constructor(...e) {
15820
15820
  if (e.length === 1) {
@@ -15833,7 +15833,7 @@ class Cr {
15833
15833
  case "asn":
15834
15834
  return re.toString(this.rawData);
15835
15835
  case "text":
15836
- return ei.serialize(this.toTextObject());
15836
+ return Qr.serialize(this.toTextObject());
15837
15837
  case "hex":
15838
15838
  return he.ToHex(this.rawData);
15839
15839
  case "base64":
@@ -16206,7 +16206,7 @@ class mr extends Cr {
16206
16206
  return this.type === Ho && (n = Nr.toString(n)), new je(e, void 0, n);
16207
16207
  }
16208
16208
  }
16209
- class ti extends Cr {
16209
+ class ei extends Cr {
16210
16210
  constructor(e) {
16211
16211
  let n;
16212
16212
  if (e instanceof yt)
@@ -16253,7 +16253,7 @@ class ti extends Cr {
16253
16253
  return e;
16254
16254
  }
16255
16255
  }
16256
- ti.NAME = "GeneralNames";
16256
+ ei.NAME = "GeneralNames";
16257
16257
  const Is = "-{5}", Hs = "\\n", Z4 = `[^${Hs}]+`, Q4 = `${Is}BEGIN (${Z4}(?=${Is}))${Is}`, e$ = `${Is}END \\1${Is}`, zi = "\\n", t$ = `[^:${Hs}]+`, n$ = `(?:[^${Hs}]+${zi}(?: +[^${Hs}]+${zi})*)`, r$ = "[a-zA-Z0-9=+/]+", i$ = `(?:${r$}${zi})+`, X0 = `${Q4}${zi}(?:((?:${t$}: ${n$})+))?${zi}?(${i$})${e$}`;
16258
16258
  class Mt {
16259
16259
  static isPem(e) {
@@ -16404,9 +16404,9 @@ class un extends Zn {
16404
16404
  return a.algorithm.algorithm === Ts && (s = s$(a, s)), n.subtle.importKey("spki", s, i, !0, r);
16405
16405
  }
16406
16406
  onInit(e) {
16407
- const n = mt.resolve(Qr), r = this.algorithm = n.toWebAlgorithm(e.algorithm);
16407
+ const n = mt.resolve(Zr), r = this.algorithm = n.toWebAlgorithm(e.algorithm);
16408
16408
  switch (e.algorithm.algorithm) {
16409
- case Jr: {
16409
+ case Xr: {
16410
16410
  const i = re.parse(e.subjectPublicKey, of), s = ie.toUint8Array(i.modulus);
16411
16411
  r.publicExponent = ie.toUint8Array(i.publicExponent), r.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
16412
16412
  break;
@@ -16426,11 +16426,11 @@ class un extends Zn {
16426
16426
  }
16427
16427
  toTextObject() {
16428
16428
  const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, an);
16429
- switch (e.Algorithm = ei.serializeAlgorithm(n.algorithm), n.algorithm.algorithm) {
16429
+ switch (e.Algorithm = Qr.serializeAlgorithm(n.algorithm), n.algorithm.algorithm) {
16430
16430
  case Ms:
16431
16431
  e["EC Point"] = n.subjectPublicKey;
16432
16432
  break;
16433
- case Jr:
16433
+ case Xr:
16434
16434
  default:
16435
16435
  e["Raw Data"] = n.subjectPublicKey;
16436
16436
  }
@@ -16439,7 +16439,7 @@ class un extends Zn {
16439
16439
  }
16440
16440
  function s$(t, e) {
16441
16441
  return t.algorithm = new ue({
16442
- algorithm: Jr,
16442
+ algorithm: Xr,
16443
16443
  parameters: null
16444
16444
  }), e = re.serialize(t), e;
16445
16445
  }
@@ -16457,7 +16457,7 @@ class Ks extends Ht {
16457
16457
  const n = new Br({ keyIdentifier: new Up(he.FromHex(e[0])) });
16458
16458
  super(Uu, e[1], re.serialize(n));
16459
16459
  } else {
16460
- const n = e[0], r = n.name instanceof ti ? re.parse(n.name.rawData, yt) : n.name, i = new Br({
16460
+ const n = e[0], r = n.name instanceof ei ? re.parse(n.name.rawData, yt) : n.name, i = new Br({
16461
16461
  authorityCertIssuer: r,
16462
16462
  authorityCertSerialNumber: he.FromHex(n.serialNumber)
16463
16463
  });
@@ -16474,7 +16474,7 @@ class Ks extends Ht {
16474
16474
  }
16475
16475
  toTextObject() {
16476
16476
  const e = this.toTextObjectWithoutValue(), n = re.parse(this.value, Br);
16477
- return n.authorityCertIssuer && (e["Authority Issuer"] = new ti(n.authorityCertIssuer).toTextObject()), n.authorityCertSerialNumber && (e["Authority Serial Number"] = n.authorityCertSerialNumber), n.keyIdentifier && (e[""] = n.keyIdentifier), e;
16477
+ return n.authorityCertIssuer && (e["Authority Issuer"] = new ei(n.authorityCertIssuer).toTextObject()), n.authorityCertSerialNumber && (e["Authority Serial Number"] = n.authorityCertSerialNumber), n.keyIdentifier && (e[""] = n.keyIdentifier), e;
16478
16478
  }
16479
16479
  }
16480
16480
  Ks.NAME = "Authority Key Identifier";
@@ -16563,12 +16563,12 @@ class Eo extends Ht {
16563
16563
  Eo.NAME = "Subject Key Identifier";
16564
16564
  class V2 extends Ht {
16565
16565
  constructor(...e) {
16566
- ie.isBufferSource(e[0]) ? super(e[0]) : super(g2, e[1], new ti(e[0] || []).rawData);
16566
+ ie.isBufferSource(e[0]) ? super(e[0]) : super(g2, e[1], new ei(e[0] || []).rawData);
16567
16567
  }
16568
16568
  onInit(e) {
16569
16569
  super.onInit(e);
16570
16570
  const n = re.parse(e.extnValue, td);
16571
- this.names = new ti(n);
16571
+ this.names = new ei(n);
16572
16572
  }
16573
16573
  toTextObject() {
16574
16574
  const e = this.toTextObjectWithoutValue(), n = this.names.toTextObject();
@@ -16616,20 +16616,20 @@ class K2 extends Ht {
16616
16616
  super(e[0]);
16617
16617
  else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
16618
16618
  const i = e[0].map((a) => new es({
16619
- distributionPoint: new Kr({
16619
+ distributionPoint: new Hr({
16620
16620
  fullName: [new Te({ uniformResourceIdentifier: a })]
16621
16621
  })
16622
- })), s = new Ci(i);
16622
+ })), s = new Ni(i);
16623
16623
  super(Hu, e[1], re.serialize(s));
16624
16624
  } else {
16625
- const r = new Ci(e[0]);
16625
+ const r = new Ni(e[0]);
16626
16626
  super(Hu, e[1], re.serialize(r));
16627
16627
  }
16628
16628
  (n = this.distributionPoints) !== null && n !== void 0 || (this.distributionPoints = []);
16629
16629
  }
16630
16630
  onInit(e) {
16631
16631
  super.onInit(e);
16632
- const n = re.parse(e.extnValue, Ci);
16632
+ const n = re.parse(e.extnValue, Ni);
16633
16633
  this.distributionPoints = n;
16634
16634
  }
16635
16635
  toTextObject() {
@@ -16647,17 +16647,17 @@ class G2 extends Ht {
16647
16647
  var n, r, i, s;
16648
16648
  if (ie.isBufferSource(e[0]))
16649
16649
  super(e[0]);
16650
- else if (e[0] instanceof Si) {
16651
- const a = new Si(e[0]);
16650
+ else if (e[0] instanceof Ei) {
16651
+ const a = new Ei(e[0]);
16652
16652
  super(Fu, e[1], re.serialize(a));
16653
16653
  } else {
16654
- const a = e[0], l = new Si();
16654
+ const a = e[0], l = new Ei();
16655
16655
  Go(l, a, Rh, "ocsp"), Go(l, a, jh, "caIssuers"), Go(l, a, Ph, "timeStamping"), Go(l, a, Bh, "caRepository"), super(Fu, e[1], re.serialize(l));
16656
16656
  }
16657
16657
  (n = this.ocsp) !== null && n !== void 0 || (this.ocsp = []), (r = this.caIssuers) !== null && r !== void 0 || (this.caIssuers = []), (i = this.timeStamping) !== null && i !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
16658
16658
  }
16659
16659
  onInit(e) {
16660
- super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], re.parse(e.extnValue, Si).forEach((r) => {
16660
+ super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], re.parse(e.extnValue, Ei).forEach((r) => {
16661
16661
  switch (r.accessMethod) {
16662
16662
  case Rh:
16663
16663
  this.ocsp.push(new mr(r.accessLocation));
@@ -16703,12 +16703,12 @@ function Go(t, e, n, r) {
16703
16703
  }
16704
16704
  class W2 extends Ht {
16705
16705
  constructor(...e) {
16706
- ie.isBufferSource(e[0]) ? super(e[0]) : super(d2, e[1], new ti(e[0] || []).rawData);
16706
+ ie.isBufferSource(e[0]) ? super(e[0]) : super(d2, e[1], new ei(e[0] || []).rawData);
16707
16707
  }
16708
16708
  onInit(e) {
16709
16709
  super.onInit(e);
16710
16710
  const n = re.parse(e.extnValue, yt);
16711
- this.names = new ti(n);
16711
+ this.names = new ei(n);
16712
16712
  }
16713
16713
  toTextObject() {
16714
16714
  const e = this.toTextObjectWithoutValue(), n = this.names.toTextObject();
@@ -16817,7 +16817,7 @@ var sa;
16817
16817
  let Hd = sa = class {
16818
16818
  static createPssParams(e, n) {
16819
16819
  const r = sa.getHashAlgorithm(e);
16820
- return r ? new Zr({
16820
+ return r ? new Yr({
16821
16821
  hashAlgorithm: r,
16822
16822
  maskGenAlgorithm: new ue({
16823
16823
  algorithm: Qc,
@@ -16827,7 +16827,7 @@ let Hd = sa = class {
16827
16827
  }) : null;
16828
16828
  }
16829
16829
  static getHashAlgorithm(e) {
16830
- const n = mt.resolve(Qr);
16830
+ const n = mt.resolve(Zr);
16831
16831
  return typeof e == "string" ? n.toAsnAlgorithm({ name: e }) : typeof e == "object" && e && "name" in e ? n.toAsnAlgorithm(e) : null;
16832
16832
  }
16833
16833
  toAsnAlgorithm(e) {
@@ -16852,7 +16852,7 @@ let Hd = sa = class {
16852
16852
  return new ue({ algorithm: Va, parameters: null });
16853
16853
  }
16854
16854
  } else
16855
- return new ue({ algorithm: Jr, parameters: null });
16855
+ return new ue({ algorithm: Xr, parameters: null });
16856
16856
  break;
16857
16857
  case "rsa-pss":
16858
16858
  if ("hash" in e) {
@@ -16869,7 +16869,7 @@ let Hd = sa = class {
16869
16869
  }
16870
16870
  toWebAlgorithm(e) {
16871
16871
  switch (e.algorithm) {
16872
- case Jr:
16872
+ case Xr:
16873
16873
  return { name: "RSASSA-PKCS1-v1_5" };
16874
16874
  case qa:
16875
16875
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
@@ -16881,10 +16881,10 @@ let Hd = sa = class {
16881
16881
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
16882
16882
  case Ts:
16883
16883
  if (e.parameters) {
16884
- const n = re.parse(e.parameters, Zr);
16884
+ const n = re.parse(e.parameters, Yr);
16885
16885
  return {
16886
16886
  name: "RSA-PSS",
16887
- hash: mt.resolve(Qr).toWebAlgorithm(n.hashAlgorithm),
16887
+ hash: mt.resolve(Zr).toWebAlgorithm(n.hashAlgorithm),
16888
16888
  saltLength: n.saltLength
16889
16889
  };
16890
16890
  } else
@@ -17023,7 +17023,7 @@ class a$ extends Zn {
17023
17023
  }
17024
17024
  onInit(e) {
17025
17025
  this.tbs = re.serialize(e.certificationRequestInfo), this.publicKey = new un(e.certificationRequestInfo.subjectPKInfo);
17026
- const n = mt.resolve(Qr);
17026
+ const n = mt.resolve(Zr);
17027
17027
  this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => cl.create(re.serialize(i)));
17028
17028
  const r = this.getAttribute(lf);
17029
17029
  this.extensions = [], r instanceof ff && (this.extensions = r.items), this.subjectName = new Yt(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
@@ -17058,7 +17058,7 @@ class a$ extends Zn {
17058
17058
  }
17059
17059
  toTextObject() {
17060
17060
  const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, zs), r = n.certificationRequestInfo, i = new je("", {
17061
- Version: `${Gr[r.version]} (${r.version})`,
17061
+ Version: `${Kr[r.version]} (${r.version})`,
17062
17062
  Subject: this.subject,
17063
17063
  "Subject Public Key Info": this.publicKey
17064
17064
  });
@@ -17071,7 +17071,7 @@ class a$ extends Zn {
17071
17071
  i.Attributes = s;
17072
17072
  }
17073
17073
  return e.Data = i, e.Signature = new je("", {
17074
- Algorithm: ei.serializeAlgorithm(n.signatureAlgorithm),
17074
+ Algorithm: Qr.serializeAlgorithm(n.signatureAlgorithm),
17075
17075
  "": n.signature
17076
17076
  }), e;
17077
17077
  }
@@ -17079,14 +17079,14 @@ class a$ extends Zn {
17079
17079
  a$.NAME = "PKCS#10 Certificate Request";
17080
17080
  class ll extends Zn {
17081
17081
  constructor(e) {
17082
- Zn.isAsnEncoded(e) ? super(e, Wr) : super(e), this.tag = Mt.CertificateTag;
17082
+ Zn.isAsnEncoded(e) ? super(e, Gr) : super(e), this.tag = Mt.CertificateTag;
17083
17083
  }
17084
17084
  onInit(e) {
17085
17085
  const n = e.tbsCertificate;
17086
17086
  this.tbs = re.serialize(n);
17087
17087
  let r = new Uint8Array(n.serialNumber);
17088
17088
  r.length > 1 && r[0] === 0 && r[1] > 127 && (r = r.slice(1)), this.serialNumber = he.ToHex(r), this.subjectName = new Yt(n.subject), this.subject = new Yt(n.subject).toString(), this.issuerName = new Yt(n.issuer), this.issuer = this.issuerName.toString();
17089
- const i = mt.resolve(Qr);
17089
+ const i = mt.resolve(Zr);
17090
17090
  this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
17091
17091
  const s = n.validity.notBefore.utcTime || n.validity.notBefore.generalTime;
17092
17092
  if (!s)
@@ -17150,10 +17150,10 @@ class ll extends Zn {
17150
17150
  return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
17151
17151
  }
17152
17152
  toTextObject() {
17153
- const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, Wr), r = n.tbsCertificate, i = new je("", {
17154
- Version: `${Gr[r.version]} (${r.version})`,
17153
+ const e = this.toTextObjectEmpty(), n = re.parse(this.rawData, Gr), r = n.tbsCertificate, i = new je("", {
17154
+ Version: `${Kr[r.version]} (${r.version})`,
17155
17155
  "Serial Number": r.serialNumber,
17156
- "Signature Algorithm": ei.serializeAlgorithm(r.signature),
17156
+ "Signature Algorithm": Qr.serializeAlgorithm(r.signature),
17157
17157
  Issuer: this.issuer,
17158
17158
  Validity: new je("", {
17159
17159
  "Not Before": r.validity.notBefore.getTime(),
@@ -17171,7 +17171,7 @@ class ll extends Zn {
17171
17171
  i.Extensions = s;
17172
17172
  }
17173
17173
  return e.Data = i, e.Signature = new je("", {
17174
- Algorithm: ei.serializeAlgorithm(n.signatureAlgorithm),
17174
+ Algorithm: Qr.serializeAlgorithm(n.signatureAlgorithm),
17175
17175
  "": n.signatureValue
17176
17176
  }), e;
17177
17177
  }
@@ -17201,9 +17201,9 @@ class c$ {
17201
17201
  e.publicKey instanceof un ? i = e.publicKey.rawData : "publicKey" in e.publicKey ? i = e.publicKey.publicKey.rawData : ie.isBufferSource(e.publicKey) ? i = e.publicKey : i = await n.subtle.exportKey("spki", e.publicKey);
17202
17202
  let s = e.serialNumber ? ie.toUint8Array(he.FromHex(e.serialNumber)) : void 0;
17203
17203
  s = this.generateSerialNumber(s, n);
17204
- const a = e.notBefore || /* @__PURE__ */ new Date(), l = e.notAfter || new Date(a.getTime() + 31536e6), u = new Wr({
17204
+ const a = e.notBefore || /* @__PURE__ */ new Date(), l = e.notAfter || new Date(a.getTime() + 31536e6), u = new Gr({
17205
17205
  tbsCertificate: new Vt({
17206
- version: Gr.v3,
17206
+ version: Kr.v3,
17207
17207
  serialNumber: s,
17208
17208
  validity: new fo({
17209
17209
  notBefore: a,
@@ -17223,7 +17223,7 @@ class c$ {
17223
17223
  }
17224
17224
  const d = {
17225
17225
  hash: "SHA-256"
17226
- }, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, h = mt.resolve(Qr);
17226
+ }, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, h = mt.resolve(Zr);
17227
17227
  u.tbsCertificate.signature = u.signatureAlgorithm = h.toAsnAlgorithm(p);
17228
17228
  const g = re.serialize(u.tbsCertificate), b = "signingKey" in e ? await n.subtle.sign(p, e.signingKey, g) : e.signature, x = mt.resolveAll(So).reverse();
17229
17229
  let C = null;
@@ -17489,7 +17489,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
17489
17489
  return t.json(i);
17490
17490
  }
17491
17491
  ), h$ = qt.extend({
17492
- clients: o.array($i)
17492
+ clients: o.array(bi)
17493
17493
  }), g$ = new be().openapi(
17494
17494
  U({
17495
17495
  tags: ["clients"],
@@ -17510,7 +17510,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
17510
17510
  200: {
17511
17511
  content: {
17512
17512
  "application/json": {
17513
- schema: o.union([h$, o.array($i)])
17513
+ schema: o.union([h$, o.array(bi)])
17514
17514
  }
17515
17515
  },
17516
17516
  description: "List of clients"
@@ -17554,7 +17554,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
17554
17554
  200: {
17555
17555
  content: {
17556
17556
  "application/json": {
17557
- schema: $i
17557
+ schema: bi
17558
17558
  }
17559
17559
  },
17560
17560
  description: "A client"
@@ -17626,7 +17626,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
17626
17626
  200: {
17627
17627
  content: {
17628
17628
  "application/json": {
17629
- schema: $i
17629
+ schema: bi
17630
17630
  }
17631
17631
  },
17632
17632
  description: "The updated client"
@@ -17667,7 +17667,7 @@ const d$ = 1e3 * 60 * 60 * 24, p$ = new be().openapi(
17667
17667
  201: {
17668
17668
  content: {
17669
17669
  "application/json": {
17670
- schema: o.object($i.shape)
17670
+ schema: o.object(bi.shape)
17671
17671
  }
17672
17672
  },
17673
17673
  description: "A client"
@@ -19804,7 +19804,7 @@ const cx = qt.extend({
19804
19804
  return t.json(r, { status: 201 });
19805
19805
  }
19806
19806
  ), ux = qt.extend({
19807
- roles: o.array(Ei)
19807
+ roles: o.array(Ai)
19808
19808
  }), dx = new be().openapi(
19809
19809
  U({
19810
19810
  tags: ["roles"],
@@ -19825,7 +19825,7 @@ const cx = qt.extend({
19825
19825
  200: {
19826
19826
  content: {
19827
19827
  "application/json": {
19828
- schema: o.union([o.array(Ei), ux])
19828
+ schema: o.union([o.array(Ai), ux])
19829
19829
  }
19830
19830
  },
19831
19831
  description: "List of roles"
@@ -19864,7 +19864,7 @@ const cx = qt.extend({
19864
19864
  200: {
19865
19865
  content: {
19866
19866
  "application/json": {
19867
- schema: Ei
19867
+ schema: Ai
19868
19868
  }
19869
19869
  },
19870
19870
  description: "A role"
@@ -19903,7 +19903,7 @@ const cx = qt.extend({
19903
19903
  201: {
19904
19904
  content: {
19905
19905
  "application/json": {
19906
- schema: Ei
19906
+ schema: Ai
19907
19907
  }
19908
19908
  },
19909
19909
  description: "Role created"
@@ -19943,7 +19943,7 @@ const cx = qt.extend({
19943
19943
  200: {
19944
19944
  content: {
19945
19945
  "application/json": {
19946
- schema: Ei
19946
+ schema: Ai
19947
19947
  }
19948
19948
  },
19949
19949
  description: "Updated role"
@@ -20152,7 +20152,7 @@ const cx = qt.extend({
20152
20152
  return t.json({ message: "Permissions removed successfully" });
20153
20153
  }
20154
20154
  ), px = qt.extend({
20155
- resource_servers: o.array(Ai)
20155
+ resource_servers: o.array(xi)
20156
20156
  }), fx = new be().openapi(
20157
20157
  U({
20158
20158
  tags: ["resource-servers"],
@@ -20174,7 +20174,7 @@ const cx = qt.extend({
20174
20174
  content: {
20175
20175
  "application/json": {
20176
20176
  schema: o.union([
20177
- o.array(Ai),
20177
+ o.array(xi),
20178
20178
  px
20179
20179
  ])
20180
20180
  }
@@ -20221,7 +20221,7 @@ const cx = qt.extend({
20221
20221
  200: {
20222
20222
  content: {
20223
20223
  "application/json": {
20224
- schema: Ai
20224
+ schema: xi
20225
20225
  }
20226
20226
  },
20227
20227
  description: "A resource server"
@@ -20298,7 +20298,7 @@ const cx = qt.extend({
20298
20298
  200: {
20299
20299
  content: {
20300
20300
  "application/json": {
20301
- schema: Ai
20301
+ schema: xi
20302
20302
  }
20303
20303
  },
20304
20304
  description: "The updated resource server"
@@ -20351,7 +20351,7 @@ const cx = qt.extend({
20351
20351
  201: {
20352
20352
  content: {
20353
20353
  "application/json": {
20354
- schema: Ai
20354
+ schema: xi
20355
20355
  }
20356
20356
  },
20357
20357
  description: "A resource server"
@@ -20396,7 +20396,7 @@ const cx = qt.extend({
20396
20396
  description: "EA The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
20397
20397
  })
20398
20398
  }), gx = qt.extend({
20399
- client_grants: o.array(xi)
20399
+ client_grants: o.array($i)
20400
20400
  }), mx = new be().openapi(
20401
20401
  U({
20402
20402
  tags: ["client-grants"],
@@ -20418,7 +20418,7 @@ const cx = qt.extend({
20418
20418
  content: {
20419
20419
  "application/json": {
20420
20420
  schema: o.union([
20421
- o.array(xi),
20421
+ o.array($i),
20422
20422
  gx
20423
20423
  ])
20424
20424
  }
@@ -20470,7 +20470,7 @@ const cx = qt.extend({
20470
20470
  200: {
20471
20471
  content: {
20472
20472
  "application/json": {
20473
- schema: xi
20473
+ schema: $i
20474
20474
  }
20475
20475
  },
20476
20476
  description: "A client grant"
@@ -20546,7 +20546,7 @@ const cx = qt.extend({
20546
20546
  200: {
20547
20547
  content: {
20548
20548
  "application/json": {
20549
- schema: xi
20549
+ schema: $i
20550
20550
  }
20551
20551
  },
20552
20552
  description: "The updated client grant"
@@ -20600,7 +20600,7 @@ const cx = qt.extend({
20600
20600
  201: {
20601
20601
  content: {
20602
20602
  "application/json": {
20603
- schema: xi
20603
+ schema: $i
20604
20604
  }
20605
20605
  },
20606
20606
  description: "A client grant"
@@ -21696,12 +21696,12 @@ async function tc(t) {
21696
21696
  throw new oa(e.status);
21697
21697
  }
21698
21698
  if (typeof n != "object" || n === null)
21699
- throw new Ti(e.status, n);
21699
+ throw new Ci(e.status, n);
21700
21700
  let r;
21701
21701
  try {
21702
21702
  r = d1(n);
21703
21703
  } catch {
21704
- throw new Ti(e.status, n);
21704
+ throw new Ci(e.status, n);
21705
21705
  }
21706
21706
  throw r;
21707
21707
  }
@@ -21713,7 +21713,7 @@ async function tc(t) {
21713
21713
  throw new oa(e.status);
21714
21714
  }
21715
21715
  if (typeof n != "object" || n === null)
21716
- throw new Ti(e.status, n);
21716
+ throw new Ci(e.status, n);
21717
21717
  return new Ox(n);
21718
21718
  }
21719
21719
  throw e.body !== null && await e.body.cancel(), new oa(e.status);
@@ -21730,15 +21730,15 @@ async function jx(t) {
21730
21730
  try {
21731
21731
  n = await e.json();
21732
21732
  } catch {
21733
- throw new Ti(e.status, null);
21733
+ throw new Ci(e.status, null);
21734
21734
  }
21735
21735
  if (typeof n != "object" || n === null)
21736
- throw new Ti(e.status, n);
21736
+ throw new Ci(e.status, n);
21737
21737
  let r;
21738
21738
  try {
21739
21739
  r = d1(n);
21740
21740
  } catch {
21741
- throw new Ti(e.status, n);
21741
+ throw new Ci(e.status, n);
21742
21742
  }
21743
21743
  throw r;
21744
21744
  }
@@ -21796,7 +21796,7 @@ class oa extends Error {
21796
21796
  this.status = n;
21797
21797
  }
21798
21798
  }
21799
- class Ti extends Error {
21799
+ class Ci extends Error {
21800
21800
  constructor(n, r) {
21801
21801
  super("Unexpected error response body");
21802
21802
  xe(this, "status");
@@ -22312,7 +22312,7 @@ async function ug(t, e, n, r) {
22312
22312
  const u = t.get("ip"), d = t.get("useragent"), p = t.get("auth0_client");
22313
22313
  s = await t.env.data.loginSessions.create(e.tenant.id, {
22314
22314
  expires_at: new Date(
22315
- Date.now() + qr * 1e3
22315
+ Date.now() + Mr * 1e3
22316
22316
  ).toISOString(),
22317
22317
  authParams: r,
22318
22318
  csrf_token: We(),
@@ -22672,7 +22672,7 @@ const a5 = new be().openapi(
22672
22672
  });
22673
22673
  const a = t.req.header("cookie");
22674
22674
  if (a) {
22675
- const u = Oi(r.tenant.id, a);
22675
+ const u = Ii(r.tenant.id, a);
22676
22676
  if (u) {
22677
22677
  const d = await t.env.data.sessions.get(
22678
22678
  r.tenant.id,
@@ -22948,7 +22948,7 @@ async function p5(t, e) {
22948
22948
  if (new Date(r.expires_at) < /* @__PURE__ */ new Date())
22949
22949
  throw new E(403, { message: "Code expired" });
22950
22950
  if (r.used_at)
22951
- throw new Fr(403, {
22951
+ throw new Oi(403, {
22952
22952
  error: "invalid_grant",
22953
22953
  error_description: "Invalid authorization code"
22954
22954
  });
@@ -22958,18 +22958,11 @@ async function p5(t, e) {
22958
22958
  );
22959
22959
  if (!i)
22960
22960
  throw new E(403, { message: "Invalid login" });
22961
- if (e.organization) {
22962
- if (!i.authParams.organization)
22963
- throw new Fr(400, {
22964
- error: "invalid_request",
22965
- error_description: "Organization parameter provided but login session has no organization"
22966
- });
22967
- if (e.organization !== i.authParams.organization)
22968
- throw new Fr(400, {
22969
- error: "invalid_request",
22970
- error_description: "Organization parameter does not match login session organization"
22971
- });
22972
- }
22961
+ if (e.organization && i.authParams.organization && e.organization !== i.authParams.organization)
22962
+ throw new Oi(400, {
22963
+ error: "invalid_request",
22964
+ error_description: "Organization parameter does not match login session organization"
22965
+ });
22973
22966
  if ("client_secret" in e) {
22974
22967
  const d = await t.env.data.legacyClients.get("DEFAULT_CLIENT");
22975
22968
  if (!aa(n.client_secret, e.client_secret) && !aa(d == null ? void 0 : d.client_secret, e.client_secret))
@@ -23116,7 +23109,7 @@ function hg(t, e) {
23116
23109
  return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
23117
23110
  }
23118
23111
  var _5 = {}.constructor;
23119
- function Ii(t) {
23112
+ function Ti(t) {
23120
23113
  return t != null && t.constructor === _5;
23121
23114
  }
23122
23115
  function Zd(t) {
@@ -23553,8 +23546,8 @@ function _g(t, e) {
23553
23546
  function w1(t) {
23554
23547
  if (!t)
23555
23548
  throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
23556
- if (!Ii(t) || !Ii(t.countries))
23557
- throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ii(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + E5(t) + ": " + t, "."));
23549
+ if (!Ti(t) || !Ti(t.countries))
23550
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ti(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + E5(t) + ": " + t, "."));
23558
23551
  }
23559
23552
  var E5 = function(e) {
23560
23553
  return Zd(e);
@@ -23835,11 +23828,11 @@ function Q5(t, e, n) {
23835
23828
  if (Z5.test(r.IDDPrefix()))
23836
23829
  return r.IDDPrefix();
23837
23830
  }
23838
- var eA = ";ext=", hi = function(e) {
23831
+ var eA = ";ext=", fi = function(e) {
23839
23832
  return "([".concat(gn, "]{1,").concat(e, "})");
23840
23833
  };
23841
23834
  function x1(t) {
23842
- var e = "20", n = "15", r = "9", i = "6", s = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[  \\t]*", g = "(?:,{2}|;)", b = eA + hi(e), x = s + u + a + hi(e) + l, C = s + d + a + hi(r) + l, O = p + hi(i) + "#", D = h + g + a + hi(n) + l, A = h + "(?:,)+" + a + hi(r) + l;
23835
+ var e = "20", n = "15", r = "9", i = "6", s = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", h = "[  \\t]*", g = "(?:,{2}|;)", b = eA + fi(e), x = s + u + a + fi(e) + l, C = s + d + a + fi(r) + l, O = p + fi(i) + "#", D = h + g + a + fi(n) + l, A = h + "(?:,)+" + a + fi(r) + l;
23843
23836
  return b + "|" + x + "|" + C + "|" + O + "|" + D + "|" + A;
23844
23837
  }
23845
23838
  var tA = "[" + gn + "]{" + xf + "}", nA = "[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){3,}[" + rc + gn + "]*", rA = new RegExp("^[" + Af + "]{0,1}(?:[" + rc + "]*[" + gn + "]){1,2}$", "i"), iA = nA + // Phone number extensions
@@ -24028,7 +24021,7 @@ var wA = /* @__PURE__ */ function() {
24028
24021
  if (typeof e == "string") {
24029
24022
  if (e[0] === "+" && !n)
24030
24023
  throw new TypeError("`metadata` argument not passed");
24031
- if (Ii(n) && Ii(n.countries)) {
24024
+ if (Ti(n) && Ti(n.countries)) {
24032
24025
  r = n;
24033
24026
  var i = e;
24034
24027
  if (!$A.test(i))
@@ -24657,7 +24650,7 @@ function hE(t) {
24657
24650
  a ? (u = s, d = a) : (u = void 0, d = s), i && (u = aE({
24658
24651
  defaultCountry: i
24659
24652
  }, u));
24660
- else if (Ii(i))
24653
+ else if (Ti(i))
24661
24654
  s ? (u = i, d = s) : d = i;
24662
24655
  else throw new Error("Invalid second argument: ".concat(i));
24663
24656
  return {
@@ -24793,12 +24786,12 @@ function $E(t, e, n = !0) {
24793
24786
  const s = Lg(r.normalized), a = Lg(i.normalized);
24794
24787
  return n ? s.length === 8 && a.length === 8 && s.join(":") === a.join(":") : s.slice(0, 4).join(":") === a.slice(0, 4).join(":");
24795
24788
  }
24796
- class ni extends Error {
24789
+ class ti extends Error {
24797
24790
  constructor(n, r = 302) {
24798
24791
  super(`Redirect to ${n}`);
24799
24792
  xe(this, "location");
24800
24793
  xe(this, "status");
24801
- this.name = ni.name, this.location = n, this.status = r;
24794
+ this.name = ti.name, this.location = n, this.status = r;
24802
24795
  }
24803
24796
  }
24804
24797
  const xE = o.object({
@@ -24848,7 +24841,7 @@ async function k1(t, {
24848
24841
  message: "Code not found or expired"
24849
24842
  });
24850
24843
  if (s && b.ip && a && !$E(b.ip, a))
24851
- throw new ni(
24844
+ throw new ti(
24852
24845
  `${ft(t.env)}invalid-session?state=${b.id}`
24853
24846
  );
24854
24847
  const x = await wc(t, {
@@ -25057,7 +25050,7 @@ const SE = new be().openapi(
25057
25050
  });
25058
25051
  else {
25059
25052
  if (!((p = i.user) != null && p.user_id))
25060
- throw new Fr(400, {
25053
+ throw new Oi(400, {
25061
25054
  error: "invalid_request",
25062
25055
  error_description: "User ID is required for user-based grants"
25063
25056
  });
@@ -25504,7 +25497,7 @@ const CE = new be().openapi(
25504
25497
  r.tenant.id,
25505
25498
  {
25506
25499
  expires_at: new Date(
25507
- Date.now() + qr * 1e3
25500
+ Date.now() + Mr * 1e3
25508
25501
  ).toISOString(),
25509
25502
  authParams: s,
25510
25503
  csrf_token: We(),
@@ -25709,7 +25702,7 @@ const TE = new be().openapi(
25709
25702
  );
25710
25703
  }
25711
25704
  );
25712
- class bi extends E {
25705
+ class vi extends E {
25713
25706
  constructor(n, r) {
25714
25707
  super(n, r);
25715
25708
  xe(this, "_code");
@@ -25734,14 +25727,14 @@ async function I1(t, e, n, r) {
25734
25727
  type: qe.FAILED_LOGIN_INCORRECT_PASSWORD,
25735
25728
  description: "Invalid user"
25736
25729
  });
25737
- throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
25730
+ throw on(t, i.logs.create(e.tenant.id, b)), new vi(403, {
25738
25731
  message: "User not found",
25739
25732
  code: "USER_NOT_FOUND"
25740
25733
  });
25741
25734
  }
25742
25735
  const l = a.linked_to ? await i.users.get(e.tenant.id, a.linked_to) : a;
25743
25736
  if (!l)
25744
- throw new bi(403, {
25737
+ throw new vi(403, {
25745
25738
  message: "User not found",
25746
25739
  code: "USER_NOT_FOUND"
25747
25740
  });
@@ -25752,7 +25745,7 @@ async function I1(t, e, n, r) {
25752
25745
  type: qe.FAILED_LOGIN_INCORRECT_PASSWORD,
25753
25746
  description: "Invalid password"
25754
25747
  });
25755
- throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
25748
+ throw on(t, i.logs.create(e.tenant.id, b)), new vi(403, {
25756
25749
  message: "Invalid password",
25757
25750
  code: "INVALID_PASSWORD"
25758
25751
  });
@@ -25770,7 +25763,7 @@ async function I1(t, e, n, r) {
25770
25763
  type: qe.FAILED_LOGIN,
25771
25764
  description: "Too many failed login attempts"
25772
25765
  });
25773
- throw on(t, i.logs.create(e.tenant.id, b)), new bi(403, {
25766
+ throw on(t, i.logs.create(e.tenant.id, b)), new vi(403, {
25774
25767
  message: "Too many failed login attempts",
25775
25768
  code: "TOO_MANY_FAILED_LOGINS"
25776
25769
  });
@@ -25781,7 +25774,7 @@ async function I1(t, e, n, r) {
25781
25774
  type: qe.FAILED_LOGIN,
25782
25775
  description: "Email not verified"
25783
25776
  });
25784
- throw await i.logs.create(e.tenant.id, b), new bi(403, {
25777
+ throw await i.logs.create(e.tenant.id, b), new vi(403, {
25785
25778
  message: "Email not verified",
25786
25779
  code: "EMAIL_NOT_VERIFIED"
25787
25780
  });
@@ -25915,7 +25908,7 @@ const OE = new be().openapi(
25915
25908
  i.tenant.id,
25916
25909
  {
25917
25910
  expires_at: new Date(
25918
- Date.now() + qr * 1e3
25911
+ Date.now() + Mr * 1e3
25919
25912
  ).toISOString(),
25920
25913
  authParams: {
25921
25914
  client_id: n,
@@ -25982,7 +25975,7 @@ async function DE({
25982
25975
  n.tenant.id,
25983
25976
  {
25984
25977
  expires_at: new Date(
25985
- Date.now() + qr * 1e3
25978
+ Date.now() + Mr * 1e3
25986
25979
  ).toISOString(),
25987
25980
  authParams: r,
25988
25981
  csrf_token: We(),
@@ -26015,7 +26008,7 @@ async function DE({
26015
26008
  code_type: "otp",
26016
26009
  login_id: h.id,
26017
26010
  expires_at: new Date(
26018
- Date.now() + qr * 1e3
26011
+ Date.now() + Mr * 1e3
26019
26012
  ).toISOString(),
26020
26013
  redirect_uri: r.redirect_uri
26021
26014
  }), await If(t, {
@@ -26302,7 +26295,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
26302
26295
  message: `Invalid redirect URI - ${K.redirect_uri}`
26303
26296
  });
26304
26297
  }
26305
- const Z = Oi(
26298
+ const Z = Ii(
26306
26299
  M.tenant.id,
26307
26300
  t.req.header("cookie")
26308
26301
  ), Y = Z ? await e.data.sessions.get(M.tenant.id, Z) : void 0, Se = Y && !Y.revoked_at ? Y : void 0;
@@ -26415,7 +26408,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
26415
26408
  message: `Invalid redirect URI - ${l.redirect_uri}`
26416
26409
  });
26417
26410
  }
26418
- const d = Oi(
26411
+ const d = Ii(
26419
26412
  a.tenant.id,
26420
26413
  t.req.header("cookie")
26421
26414
  ), p = d ? await e.data.sessions.get(a.tenant.id, d) : void 0, h = p && !p.revoked_at ? p : void 0, g = new URL(t.req.url);
@@ -26424,7 +26417,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
26424
26417
  a.tenant.id,
26425
26418
  {
26426
26419
  expires_at: new Date(
26427
- Date.now() + qr * 1e3
26420
+ Date.now() + Mr * 1e3
26428
26421
  ).toISOString(),
26429
26422
  authParams: l,
26430
26423
  csrf_token: We(),
@@ -26915,7 +26908,7 @@ async function ze(t, e, n = !1) {
26915
26908
  message: "Login session closed and no redirect URI available"
26916
26909
  });
26917
26910
  const h = new URL(i.authParams.redirect_uri);
26918
- throw h.searchParams.set("error", "access_denied"), h.searchParams.set("error_description", "Login session closed"), i.authParams.state && h.searchParams.set("state", i.authParams.state), new ni(h.toString(), 302);
26911
+ throw h.searchParams.set("error", "access_denied"), h.searchParams.set("error_description", "Login session closed"), i.authParams.state && h.searchParams.set("state", i.authParams.state), new ti(h.toString(), 302);
26919
26912
  }
26920
26913
  } else throw new E(400, { message: "Tenant not found" });
26921
26914
  const l = await r.data.themes.get(a.id, "default"), u = await r.data.branding.get(a.id), d = (p = i.authParams.ui_locales) == null ? void 0 : p.split(" ").map((h) => h.split("-")[0]).find((h) => {
@@ -26930,14 +26923,14 @@ async function ze(t, e, n = !1) {
26930
26923
  loginSession: i
26931
26924
  };
26932
26925
  }
26933
- async function ri(t, e) {
26926
+ async function ni(t, e) {
26934
26927
  const { theme: n, branding: r, client: i, tenant: s, loginSession: a } = await ze(
26935
26928
  t,
26936
26929
  e,
26937
26930
  !0
26938
- ), l = Oi(i.tenant.id, t.req.header("cookie")), u = l ? await t.env.data.sessions.get(i.tenant.id, l) : null;
26931
+ ), l = Ii(i.tenant.id, t.req.header("cookie")), u = l ? await t.env.data.sessions.get(i.tenant.id, l) : null;
26939
26932
  if (!u || !a.session_id)
26940
- throw new ni(
26933
+ throw new ti(
26941
26934
  `/u/login/identifier?state=${encodeURIComponent(e)}`
26942
26935
  );
26943
26936
  const d = await t.env.data.sessions.get(
@@ -26948,7 +26941,7 @@ async function ri(t, e) {
26948
26941
  u.user_id
26949
26942
  );
26950
26943
  if (!p || (d == null ? void 0 : d.user_id) !== u.user_id)
26951
- throw new ni(
26944
+ throw new ti(
26952
26945
  `/u/login/identifier?state=${encodeURIComponent(e)}`
26953
26946
  );
26954
26947
  return {
@@ -27995,7 +27988,7 @@ var Qs = "_hp", _8 = {
27995
27988
  };
27996
27989
  },
27997
27990
  [t]
27998
- ), gi = /* @__PURE__ */ Object.create(null), Xo = /* @__PURE__ */ Object.create(null), Oo = (t, e, n, r, i) => {
27991
+ ), hi = /* @__PURE__ */ Object.create(null), Xo = /* @__PURE__ */ Object.create(null), Oo = (t, e, n, r, i) => {
27999
27992
  if (e != null && e.itemProp)
28000
27993
  return {
28001
27994
  tag: t,
@@ -28062,7 +28055,7 @@ var Qs = "_hp", _8 = {
28062
28055
  const z = b[0];
28063
28056
  if (n === 2 && (A.innerHTML = ""), (g || x) && C(A), !l && !a)
28064
28057
  return;
28065
- let q = gi[M = A.getAttribute(z)] || (gi[M] = new Promise(
28058
+ let q = hi[M = A.getAttribute(z)] || (hi[M] = new Promise(
28066
28059
  (K, W) => {
28067
28060
  A.addEventListener("load", K), A.addEventListener("error", W);
28068
28061
  }
@@ -28073,7 +28066,7 @@ var Qs = "_hp", _8 = {
28073
28066
  if (i && d === "render") {
28074
28067
  const A = la[t][0];
28075
28068
  if (e[A]) {
28076
- const z = e[A], q = gi[z] || (gi[z] = new Promise((M, K) => {
28069
+ const z = e[A], q = hi[z] || (hi[z] = new Promise((M, K) => {
28077
28070
  C(h), h.addEventListener("load", M), h.addEventListener("error", K);
28078
28071
  }));
28079
28072
  N8(q);
@@ -28780,7 +28773,7 @@ const ou = (t) => {
28780
28773
  );
28781
28774
  }
28782
28775
  }
28783
- ), mi = (t) => {
28776
+ ), gi = (t) => {
28784
28777
  const { error: e, theme: n, branding: r, client: i, email: s, state: a, code: l } = t;
28785
28778
  return /* @__PURE__ */ _(
28786
28779
  nt,
@@ -28863,7 +28856,7 @@ const ou = (t) => {
28863
28856
  throw new E(400, { message: "Username required" });
28864
28857
  return n ? t.html(
28865
28858
  /* @__PURE__ */ _(
28866
- mi,
28859
+ gi,
28867
28860
  {
28868
28861
  state: e,
28869
28862
  theme: r,
@@ -28875,7 +28868,7 @@ const ou = (t) => {
28875
28868
  )
28876
28869
  ) : t.html(
28877
28870
  /* @__PURE__ */ _(
28878
- mi,
28871
+ gi,
28879
28872
  {
28880
28873
  state: e,
28881
28874
  theme: r,
@@ -28940,7 +28933,7 @@ const ou = (t) => {
28940
28933
  if (t.set("connection", u), n.password !== n["re-enter-password"])
28941
28934
  return t.html(
28942
28935
  /* @__PURE__ */ _(
28943
- mi,
28936
+ gi,
28944
28937
  {
28945
28938
  state: e,
28946
28939
  code: n.code,
@@ -28956,7 +28949,7 @@ const ou = (t) => {
28956
28949
  if (!Cf(n.password))
28957
28950
  return t.html(
28958
28951
  /* @__PURE__ */ _(
28959
- mi,
28952
+ gi,
28960
28953
  {
28961
28954
  state: e,
28962
28955
  code: n.code,
@@ -28985,7 +28978,7 @@ const ou = (t) => {
28985
28978
  }))
28986
28979
  return t.html(
28987
28980
  /* @__PURE__ */ _(
28988
- mi,
28981
+ gi,
28989
28982
  {
28990
28983
  state: e,
28991
28984
  code: n.code,
@@ -29036,9 +29029,9 @@ const ou = (t) => {
29036
29029
  return On(t, C);
29037
29030
  } catch (u) {
29038
29031
  let d = B.t("unknown_error_message"), p = 400;
29039
- return u instanceof E ? (d = u.message || d, p = u.status === 400 ? 400 : 500) : u instanceof bi ? d = u.message || d : u instanceof Error && (d = u.message || d, p = 500), t.html(
29032
+ return u instanceof E ? (d = u.message || d, p = u.status === 400 ? 400 : 500) : u instanceof vi ? d = u.message || d : u instanceof Error && (d = u.message || d, p = 500), t.html(
29040
29033
  /* @__PURE__ */ _(
29041
- mi,
29034
+ gi,
29042
29035
  {
29043
29036
  state: e,
29044
29037
  theme: i,
@@ -29477,7 +29470,7 @@ const ou = (t) => {
29477
29470
  ),
29478
29471
  500
29479
29472
  );
29480
- const a = Oi(
29473
+ const a = Ii(
29481
29474
  s.tenant.id,
29482
29475
  t.req.header("cookie")
29483
29476
  ), l = a ? await e.data.sessions.get(s.tenant.id, a) : null;
@@ -29550,7 +29543,7 @@ const ou = (t) => {
29550
29543
  ),
29551
29544
  500
29552
29545
  );
29553
- const l = Oi(
29546
+ const l = Ii(
29554
29547
  s.tenant.id,
29555
29548
  t.req.header("cookie")
29556
29549
  ), u = l ? await e.data.sessions.get(s.tenant.id, l) : null;
@@ -29663,7 +29656,7 @@ const ou = (t) => {
29663
29656
  }),
29664
29657
  async (t) => {
29665
29658
  var a;
29666
- const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ri(
29659
+ const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ni(
29667
29660
  t,
29668
29661
  e
29669
29662
  );
@@ -29738,7 +29731,7 @@ const ou = (t) => {
29738
29731
  }
29739
29732
  }),
29740
29733
  async (t) => {
29741
- const { env: e } = t, { state: n } = t.req.valid("query"), r = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ri(
29734
+ const { env: e } = t, { state: n } = t.req.valid("query"), r = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ni(
29742
29735
  t,
29743
29736
  n
29744
29737
  );
@@ -29860,7 +29853,7 @@ const ou = (t) => {
29860
29853
  }
29861
29854
  }),
29862
29855
  async (t) => {
29863
- const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ri(
29856
+ const { state: e } = t.req.valid("query"), { theme: n, branding: r, client: i, user: s } = await ni(
29864
29857
  t,
29865
29858
  e
29866
29859
  );
@@ -29919,7 +29912,7 @@ const ou = (t) => {
29919
29912
  }),
29920
29913
  async (t) => {
29921
29914
  var h;
29922
- const { env: e } = t, { state: n } = t.req.valid("query"), { email: r } = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ri(
29915
+ const { env: e } = t, { state: n } = t.req.valid("query"), { email: r } = t.req.valid("form"), { theme: i, branding: s, client: a, user: l } = await ni(
29923
29916
  t,
29924
29917
  n
29925
29918
  ), u = await e.data.users.list(a.tenant.id, {
@@ -30112,7 +30105,7 @@ const ou = (t) => {
30112
30105
  }
30113
30106
  }),
30114
30107
  async (t) => {
30115
- const { state: e, email: n, change_id: r } = t.req.valid("query"), { theme: i, branding: s, client: a, user: l } = await ri(
30108
+ const { state: e, email: n, change_id: r } = t.req.valid("query"), { theme: i, branding: s, client: a, user: l } = await ni(
30116
30109
  t,
30117
30110
  e
30118
30111
  ), u = await t.env.data.codes.get(
@@ -30176,7 +30169,7 @@ const ou = (t) => {
30176
30169
  }
30177
30170
  }),
30178
30171
  async (t) => {
30179
- const { env: e } = t, { state: n, email: r, change_id: i } = t.req.valid("query"), { code: s } = t.req.valid("form"), { theme: a, branding: l, client: u, user: d } = await ri(
30172
+ const { env: e } = t, { state: n, email: r, change_id: i } = t.req.valid("query"), { code: s } = t.req.valid("form"), { theme: a, branding: l, client: u, user: d } = await ni(
30180
30173
  t,
30181
30174
  n
30182
30175
  );
@@ -30268,7 +30261,7 @@ const ou = (t) => {
30268
30261
  }),
30269
30262
  async (t) => {
30270
30263
  var u, d;
30271
- const { state: e, email: n } = t.req.valid("query"), { theme: r, branding: i, client: s, loginSession: a } = await ri(t, e);
30264
+ const { state: e, email: n } = t.req.valid("query"), { theme: r, branding: i, client: s, loginSession: a } = await ni(t, e);
30272
30265
  if (!s || !((u = s.tenant) != null && u.id))
30273
30266
  return console.error(
30274
30267
  "Client or tenant ID missing in GET /u/change-email-confirmation after initJSXRoute"
@@ -31291,7 +31284,7 @@ function x6(t) {
31291
31284
  cleanupIntervalMs: 0
31292
31285
  // Disable cleanup since cache dies with the request
31293
31286
  }), r = t.dataAdapter.cache ? 300 : 0;
31294
- e.onError((s, a) => s instanceof ni ? a.redirect(s.location, s.status) : s instanceof E ? a.text(s.message || "Error", s.status) : a.text("Unexpected error", 500)), e.get("/css/tailwind.css", async (s) => {
31287
+ e.onError((s, a) => s instanceof ti ? a.redirect(s.location, s.status) : s instanceof E ? a.text(s.message || "Error", s.status) : a.text("Unexpected error", 500)), e.get("/css/tailwind.css", async (s) => {
31295
31288
  const a = Y1;
31296
31289
  return s.text(a, 200, {
31297
31290
  "content-type": "text/css; charset=utf-8"
@@ -31612,7 +31605,7 @@ o.array(
31612
31605
  })
31613
31606
  })
31614
31607
  );
31615
- var N6 = {}, ii = {}, Do = {}, bl = {};
31608
+ var N6 = {}, ri = {}, Do = {}, bl = {};
31616
31609
  (function(t) {
31617
31610
  var e = t;
31618
31611
  (function(n) {
@@ -34166,8 +34159,8 @@ ${W.replace(/ /g, "")}
34166
34159
  }
34167
34160
  t.validateDigestValue = q;
34168
34161
  })(Do);
34169
- Object.defineProperty(ii, "__esModule", { value: !0 });
34170
- ii.C14nCanonicalizationWithComments = ii.C14nCanonicalization = void 0;
34162
+ Object.defineProperty(ri, "__esModule", { value: !0 });
34163
+ ri.C14nCanonicalizationWithComments = ri.C14nCanonicalization = void 0;
34171
34164
  const Jo = Do, cu = Ae;
34172
34165
  class Q1 {
34173
34166
  constructor() {
@@ -34287,7 +34280,7 @@ class Q1 {
34287
34280
  return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
34288
34281
  }
34289
34282
  }
34290
- ii.C14nCanonicalization = Q1;
34283
+ ri.C14nCanonicalization = Q1;
34291
34284
  class X6 extends Q1 {
34292
34285
  constructor() {
34293
34286
  super(), this.includeComments = !0;
@@ -34296,10 +34289,10 @@ class X6 extends Q1 {
34296
34289
  return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
34297
34290
  }
34298
34291
  }
34299
- ii.C14nCanonicalizationWithComments = X6;
34300
- var si = {};
34301
- Object.defineProperty(si, "__esModule", { value: !0 });
34302
- si.ExclusiveCanonicalizationWithComments = si.ExclusiveCanonicalization = void 0;
34292
+ ri.C14nCanonicalizationWithComments = X6;
34293
+ var ii = {};
34294
+ Object.defineProperty(ii, "__esModule", { value: !0 });
34295
+ ii.ExclusiveCanonicalizationWithComments = ii.ExclusiveCanonicalization = void 0;
34303
34296
  const Tr = Do, lu = Ae;
34304
34297
  function uu(t, e, n) {
34305
34298
  let r = !1;
@@ -34436,7 +34429,7 @@ class ey {
34436
34429
  return "http://www.w3.org/2001/10/xml-exc-c14n#";
34437
34430
  }
34438
34431
  }
34439
- si.ExclusiveCanonicalization = ey;
34432
+ ii.ExclusiveCanonicalization = ey;
34440
34433
  class J6 extends ey {
34441
34434
  constructor() {
34442
34435
  super(), this.includeComments = !0;
@@ -34445,7 +34438,7 @@ class J6 extends ey {
34445
34438
  return "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
34446
34439
  }
34447
34440
  }
34448
- si.ExclusiveCanonicalizationWithComments = J6;
34441
+ ii.ExclusiveCanonicalizationWithComments = J6;
34449
34442
  var xl = {}, Al = {}, cr = {}, lr = {};
34450
34443
  function Y6(t, e, n) {
34451
34444
  if (n === void 0 && (n = Array.prototype), t && typeof n.find == "function")
@@ -34644,7 +34637,7 @@ Gn.prototype = {
34644
34637
  },
34645
34638
  toString: function(t, e) {
34646
34639
  for (var n = [], r = 0; r < this.length; r++)
34647
- ki(this[r], n, t, e);
34640
+ Si(this[r], n, t, e);
34648
34641
  return n.join("");
34649
34642
  },
34650
34643
  /**
@@ -35154,7 +35147,7 @@ jo.prototype = {
35154
35147
  },
35155
35148
  //document factory method:
35156
35149
  createElement: function(t) {
35157
- var e = new oi();
35150
+ var e = new si();
35158
35151
  e.ownerDocument = this, e.nodeName = t, e.tagName = t, e.localName = t, e.childNodes = new Gn();
35159
35152
  var n = e.attributes = new cc();
35160
35153
  return n._ownerElement = e, e;
@@ -35189,7 +35182,7 @@ jo.prototype = {
35189
35182
  },
35190
35183
  // Introduced in DOM Level 2:
35191
35184
  createElementNS: function(t, e) {
35192
- var n = new oi(), r = e.split(":"), i = n.attributes = new cc();
35185
+ var n = new si(), r = e.split(":"), i = n.attributes = new cc();
35193
35186
  return n.childNodes = new Gn(), n.ownerDocument = this, n.nodeName = e, n.tagName = e, n.namespaceURI = t, r.length == 2 ? (n.prefix = r[0], n.localName = r[1]) : n.localName = e, i._ownerElement = n, n;
35194
35187
  },
35195
35188
  // Introduced in DOM Level 2:
@@ -35199,10 +35192,10 @@ jo.prototype = {
35199
35192
  }
35200
35193
  };
35201
35194
  Rt(jo, Le);
35202
- function oi() {
35195
+ function si() {
35203
35196
  this._nsMap = {};
35204
35197
  }
35205
- oi.prototype = {
35198
+ si.prototype = {
35206
35199
  nodeType: hn,
35207
35200
  hasAttribute: function(t) {
35208
35201
  return this.getAttributeNode(t) != null;
@@ -35271,9 +35264,9 @@ oi.prototype = {
35271
35264
  });
35272
35265
  }
35273
35266
  };
35274
- jo.prototype.getElementsByTagName = oi.prototype.getElementsByTagName;
35275
- jo.prototype.getElementsByTagNameNS = oi.prototype.getElementsByTagNameNS;
35276
- Rt(oi, Le);
35267
+ jo.prototype.getElementsByTagName = si.prototype.getElementsByTagName;
35268
+ jo.prototype.getElementsByTagNameNS = si.prototype.getElementsByTagNameNS;
35269
+ Rt(si, Le);
35277
35270
  function uc() {
35278
35271
  }
35279
35272
  uc.prototype.nodeType = Ki;
@@ -35371,7 +35364,7 @@ function vy(t, e) {
35371
35364
  //{namespace:uri,prefix:''}
35372
35365
  ];
35373
35366
  }
35374
- return ki(this, n, t, e, a), n.join("");
35367
+ return Si(this, n, t, e, a), n.join("");
35375
35368
  }
35376
35369
  function _m(t, e, n) {
35377
35370
  var r = t.prefix || "", i = t.namespaceURI;
@@ -35387,7 +35380,7 @@ function _m(t, e, n) {
35387
35380
  function du(t, e, n) {
35388
35381
  t.push(" ", e, '="', n.replace(/[<>&"\t\n\r]/g, fy), '"');
35389
35382
  }
35390
- function ki(t, e, n, r, i) {
35383
+ function Si(t, e, n, r, i) {
35391
35384
  if (i || (i = []), r)
35392
35385
  if (t = r(t), t) {
35393
35386
  if (typeof t == "string") {
@@ -35435,7 +35428,7 @@ function ki(t, e, n, r, i) {
35435
35428
  var C = x.prefix || "", O = x.namespaceURI;
35436
35429
  du(e, C ? "xmlns:" + C : "xmlns", O), i.push({ prefix: C, namespace: O });
35437
35430
  }
35438
- ki(x, e, n, r, i);
35431
+ Si(x, e, n, r, i);
35439
35432
  }
35440
35433
  if (l === u && _m(t, n, i)) {
35441
35434
  var C = t.prefix || "", O = t.namespaceURI;
@@ -35444,10 +35437,10 @@ function ki(t, e, n, r, i) {
35444
35437
  if (D || n && !/^(?:meta|link|img|br|hr|input)$/i.test(l)) {
35445
35438
  if (e.push(">"), n && /^script$/i.test(l))
35446
35439
  for (; D; )
35447
- D.data ? e.push(D.data) : ki(D, e, n, r, i.slice()), D = D.nextSibling;
35440
+ D.data ? e.push(D.data) : Si(D, e, n, r, i.slice()), D = D.nextSibling;
35448
35441
  else
35449
35442
  for (; D; )
35450
- ki(D, e, n, r, i.slice()), D = D.nextSibling;
35443
+ Si(D, e, n, r, i.slice()), D = D.nextSibling;
35451
35444
  e.push("</", u, ">");
35452
35445
  } else
35453
35446
  e.push("/>");
@@ -35455,7 +35448,7 @@ function ki(t, e, n, r, i) {
35455
35448
  case cy:
35456
35449
  case tr:
35457
35450
  for (var D = t.firstChild; D; )
35458
- ki(D, e, n, r, i.slice()), D = D.nextSibling;
35451
+ Si(D, e, n, r, i.slice()), D = D.nextSibling;
35459
35452
  return;
35460
35453
  case Ki:
35461
35454
  return du(e, t.name, t.value);
@@ -35570,7 +35563,7 @@ try {
35570
35563
  cr.DocumentType = El;
35571
35564
  cr.DOMException = Qe;
35572
35565
  cr.DOMImplementation = py;
35573
- cr.Element = oi;
35566
+ cr.Element = si;
35574
35567
  cr.Node = Le;
35575
35568
  cr.NodeList = Gn;
35576
35569
  cr.XMLSerializer = wy;
@@ -37712,7 +37705,7 @@ var kl = {}, xy = {};
37712
37705
  zwnj: "‌"
37713
37706
  }), t.entityMap = t.HTML_ENTITIES;
37714
37707
  })(xy);
37715
- var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"), _s = 0, fr = 1, _i = 2, ys = 3, yi = 4, wi = 5, ws = 6, Yo = 7;
37708
+ var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"), _s = 0, fr = 1, mi = 2, ys = 3, _i = 4, yi = 5, ws = 6, Yo = 7;
37716
37709
  function Wi(t, e) {
37717
37710
  this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Wi);
37718
37711
  }
@@ -37828,7 +37821,7 @@ function pS(t, e, n, r, i, s) {
37828
37821
  case "=":
37829
37822
  if (p === fr)
37830
37823
  l = t.slice(e, d), p = ys;
37831
- else if (p === _i)
37824
+ else if (p === mi)
37832
37825
  p = ys;
37833
37826
  else
37834
37827
  throw new Error("attribute equal must after attrName");
@@ -37837,11 +37830,11 @@ function pS(t, e, n, r, i, s) {
37837
37830
  case '"':
37838
37831
  if (p === ys || p === fr)
37839
37832
  if (p === fr && (s.warning('attribute value must after "="'), l = t.slice(e, d)), e = d + 1, d = t.indexOf(h, e), d > 0)
37840
- u = t.slice(e, d), a(l, u, e - 1), p = wi;
37833
+ u = t.slice(e, d), a(l, u, e - 1), p = yi;
37841
37834
  else
37842
37835
  throw new Error("attribute value no end '" + h + "' match");
37843
- else if (p == yi)
37844
- u = t.slice(e, d), a(l, u, e), s.warning('attribute "' + l + '" missed start quot(' + h + ")!!"), e = d + 1, p = wi;
37836
+ else if (p == _i)
37837
+ u = t.slice(e, d), a(l, u, e), s.warning('attribute "' + l + '" missed start quot(' + h + ")!!"), e = d + 1, p = yi;
37845
37838
  else
37846
37839
  throw new Error('attribute value must after "="');
37847
37840
  break;
@@ -37849,14 +37842,14 @@ function pS(t, e, n, r, i, s) {
37849
37842
  switch (p) {
37850
37843
  case _s:
37851
37844
  n.setTagName(t.slice(e, d));
37852
- case wi:
37845
+ case yi:
37853
37846
  case ws:
37854
37847
  case Yo:
37855
37848
  p = Yo, n.closed = !0;
37856
- case yi:
37849
+ case _i:
37857
37850
  case fr:
37858
37851
  break;
37859
- case _i:
37852
+ case mi:
37860
37853
  n.closed = !0;
37861
37854
  break;
37862
37855
  default:
@@ -37869,15 +37862,15 @@ function pS(t, e, n, r, i, s) {
37869
37862
  switch (p) {
37870
37863
  case _s:
37871
37864
  n.setTagName(t.slice(e, d));
37872
- case wi:
37865
+ case yi:
37873
37866
  case ws:
37874
37867
  case Yo:
37875
37868
  break;
37876
- case yi:
37869
+ case _i:
37877
37870
  case fr:
37878
37871
  u = t.slice(e, d), u.slice(-1) === "/" && (n.closed = !0, u = u.slice(0, -1));
37879
- case _i:
37880
- p === _i && (u = l), p == yi ? (s.warning('attribute "' + u + '" missed quot(")!'), a(l, u, e)) : ((!io.isHTML(r[""]) || !u.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + u + '" missed value!! "' + u + '" instead!!'), a(u, u, e));
37872
+ case mi:
37873
+ p === mi && (u = l), p == _i ? (s.warning('attribute "' + u + '" missed quot(")!'), a(l, u, e)) : ((!io.isHTML(r[""]) || !u.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + u + '" missed value!! "' + u + '" instead!!'), a(u, u, e));
37881
37874
  break;
37882
37875
  case ys:
37883
37876
  throw new Error("attribute value missed!!");
@@ -37892,27 +37885,27 @@ function pS(t, e, n, r, i, s) {
37892
37885
  n.setTagName(t.slice(e, d)), p = ws;
37893
37886
  break;
37894
37887
  case fr:
37895
- l = t.slice(e, d), p = _i;
37888
+ l = t.slice(e, d), p = mi;
37896
37889
  break;
37897
- case yi:
37890
+ case _i:
37898
37891
  var u = t.slice(e, d);
37899
37892
  s.warning('attribute "' + u + '" missed quot(")!!'), a(l, u, e);
37900
- case wi:
37893
+ case yi:
37901
37894
  p = ws;
37902
37895
  break;
37903
37896
  }
37904
37897
  else
37905
37898
  switch (p) {
37906
- case _i:
37899
+ case mi:
37907
37900
  n.tagName, (!io.isHTML(r[""]) || !l.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + l + '" missed value!! "' + l + '" instead2!!'), a(l, l, e), e = d, p = fr;
37908
37901
  break;
37909
- case wi:
37902
+ case yi:
37910
37903
  s.warning('attribute space is required"' + l + '"!!');
37911
37904
  case ws:
37912
37905
  p = fr, e = d;
37913
37906
  break;
37914
37907
  case ys:
37915
- p = yi, e = d;
37908
+ p = _i, e = d;
37916
37909
  break;
37917
37910
  case Yo:
37918
37911
  throw new Error("elements closed character '/' and '>' must be connected to");
@@ -38082,7 +38075,7 @@ function xS(t, e, n) {
38082
38075
  function Bo() {
38083
38076
  this.cdata = !1;
38084
38077
  }
38085
- function vi(t, e) {
38078
+ function wi(t, e) {
38086
38079
  e.lineNumber = t.lineNumber, e.columnNumber = t.columnNumber;
38087
38080
  }
38088
38081
  Bo.prototype = {
@@ -38091,10 +38084,10 @@ Bo.prototype = {
38091
38084
  },
38092
38085
  startElement: function(t, e, n, r) {
38093
38086
  var i = this.doc, s = i.createElementNS(t, n || e), a = r.length;
38094
- Zo(this, s), this.currentElement = s, this.locator && vi(this.locator, s);
38087
+ Zo(this, s), this.currentElement = s, this.locator && wi(this.locator, s);
38095
38088
  for (var l = 0; l < a; l++) {
38096
38089
  var t = r.getURI(l), u = r.getValue(l), n = r.getQName(l), d = i.createAttributeNS(t, n);
38097
- this.locator && vi(r.getLocator(l), d), d.value = d.nodeValue = u, s.setAttributeNode(d);
38090
+ this.locator && wi(r.getLocator(l), d), d.value = d.nodeValue = u, s.setAttributeNode(d);
38098
38091
  }
38099
38092
  },
38100
38093
  endElement: function(t, e, n) {
@@ -38107,7 +38100,7 @@ Bo.prototype = {
38107
38100
  },
38108
38101
  processingInstruction: function(t, e) {
38109
38102
  var n = this.doc.createProcessingInstruction(t, e);
38110
- this.locator && vi(this.locator, n), Zo(this, n);
38103
+ this.locator && wi(this.locator, n), Zo(this, n);
38111
38104
  },
38112
38105
  ignorableWhitespace: function(t, e, n) {
38113
38106
  },
@@ -38117,7 +38110,7 @@ Bo.prototype = {
38117
38110
  var r = this.doc.createCDATASection(t);
38118
38111
  else
38119
38112
  var r = this.doc.createTextNode(t);
38120
- this.currentElement ? this.currentElement.appendChild(r) : /^\s*$/.test(t) && this.doc.appendChild(r), this.locator && vi(this.locator, r);
38113
+ this.currentElement ? this.currentElement.appendChild(r) : /^\s*$/.test(t) && this.doc.appendChild(r), this.locator && wi(this.locator, r);
38121
38114
  }
38122
38115
  },
38123
38116
  skippedEntity: function(t) {
@@ -38132,7 +38125,7 @@ Bo.prototype = {
38132
38125
  comment: function(t, e, n) {
38133
38126
  t = Am.apply(this, arguments);
38134
38127
  var r = this.doc.createComment(t);
38135
- this.locator && vi(this.locator, r), Zo(this, r);
38128
+ this.locator && wi(this.locator, r), Zo(this, r);
38136
38129
  },
38137
38130
  startCDATA: function() {
38138
38131
  this.cdata = !0;
@@ -38144,7 +38137,7 @@ Bo.prototype = {
38144
38137
  var r = this.doc.implementation;
38145
38138
  if (r && r.createDocumentType) {
38146
38139
  var i = r.createDocumentType(t, e, n);
38147
- this.locator && vi(this.locator, i), Zo(this, i), this.doc.doctype = i;
38140
+ this.locator && wi(this.locator, i), Zo(this, i), this.doc.doctype = i;
38148
38141
  }
38149
38142
  },
38150
38143
  /**
@@ -38326,7 +38319,7 @@ class DS {
38326
38319
  Nn.HmacSha1 = DS;
38327
38320
  Object.defineProperty(xl, "__esModule", { value: !0 });
38328
38321
  xl.SignedXml = void 0;
38329
- const Ft = Ae, Ir = Al, RS = hc, Xt = bl, Em = ii, jS = Nl, Sm = si, fu = vr, ea = Nn, Re = Do;
38322
+ const Ft = Ae, Ir = Al, RS = hc, Xt = bl, Em = ri, jS = Nl, Sm = ii, fu = vr, ea = Nn, Re = Do;
38330
38323
  class Vn {
38331
38324
  /**
38332
38325
  * The SignedXml constructor provides an abstraction for sign and verify xml documents. The object is constructed using
@@ -38874,13 +38867,13 @@ Vn.noop = () => null;
38874
38867
  for (var u in a) u !== "default" && !Object.prototype.hasOwnProperty.call(l, u) && e(l, a, u);
38875
38868
  };
38876
38869
  Object.defineProperty(t, "__esModule", { value: !0 }), t.SignedXml = t.ExclusiveCanonicalizationWithComments = t.ExclusiveCanonicalization = t.C14nCanonicalizationWithComments = t.C14nCanonicalization = void 0;
38877
- var r = ii;
38870
+ var r = ri;
38878
38871
  Object.defineProperty(t, "C14nCanonicalization", { enumerable: !0, get: function() {
38879
38872
  return r.C14nCanonicalization;
38880
38873
  } }), Object.defineProperty(t, "C14nCanonicalizationWithComments", { enumerable: !0, get: function() {
38881
38874
  return r.C14nCanonicalizationWithComments;
38882
38875
  } });
38883
- var i = si;
38876
+ var i = ii;
38884
38877
  Object.defineProperty(t, "ExclusiveCanonicalization", { enumerable: !0, get: function() {
38885
38878
  return i.ExclusiveCanonicalization;
38886
38879
  } }), Object.defineProperty(t, "ExclusiveCanonicalizationWithComments", { enumerable: !0, get: function() {
@@ -39165,7 +39158,7 @@ const US = new be().openapi(
39165
39158
  audience: a
39166
39159
  },
39167
39160
  expires_at: new Date(
39168
- Date.now() + qr * 1e3
39161
+ Date.now() + Mr * 1e3
39169
39162
  ).toISOString(),
39170
39163
  ip: t.get("ip"),
39171
39164
  useragent: t.get("useragent"),
@@ -40675,7 +40668,7 @@ export {
40675
40668
  f6 as PreSignUpConfirmationPage,
40676
40669
  o6 as PreSignUpPage,
40677
40670
  ms as ResetPasswordPage,
40678
- mi as SignUpPage,
40671
+ gi as SignUpPage,
40679
40672
  Wo as SocialButton,
40680
40673
  f8 as Spinner,
40681
40674
  to as Trans,
@@ -40692,9 +40685,9 @@ export {
40692
40685
  cw as buttonComponentSchema,
40693
40686
  _u as clientGrantInsertSchema,
40694
40687
  vG as clientGrantListSchema,
40695
- xi as clientGrantSchema,
40688
+ $i as clientGrantSchema,
40696
40689
  mu as clientInsertSchema,
40697
- $i as clientSchema,
40690
+ bi as clientSchema,
40698
40691
  $w as codeInsertSchema,
40699
40692
  $G as codeSchema,
40700
40693
  bw as codeTypeSchema,
@@ -40712,7 +40705,7 @@ export {
40712
40705
  ww as endingSchema,
40713
40706
  uw as fieldComponentSchema,
40714
40707
  gw as flowNodeSchema,
40715
- pi as fontDetailsSchema,
40708
+ di as fontDetailsSchema,
40716
40709
  Bw as fontsSchema,
40717
40710
  AG as formControlSchema,
40718
40711
  vu as formInsertSchema,
@@ -40749,7 +40742,7 @@ export {
40749
40742
  $u as resourceServerInsertSchema,
40750
40743
  TG as resourceServerListSchema,
40751
40744
  qw as resourceServerOptionsSchema,
40752
- Ai as resourceServerSchema,
40745
+ xi as resourceServerSchema,
40753
40746
  Mw as resourceServerScopeSchema,
40754
40747
  aw as richTextComponentSchema,
40755
40748
  xu as roleInsertSchema,
@@ -40759,7 +40752,7 @@ export {
40759
40752
  Vw as rolePermissionSchema,
40760
40753
  Kw as rolePermissionWithDetailsListSchema,
40761
40754
  Hw as rolePermissionWithDetailsSchema,
40762
- Ei as roleSchema,
40755
+ Ai as roleSchema,
40763
40756
  Rw as sessionInsertSchema,
40764
40757
  gp as sessionSchema,
40765
40758
  ph as signingKeySchema,