authhero 0.74.1 → 0.74.2

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
@@ -90,7 +90,7 @@ const pm = [" ", ",", "?", "!", ";"], fm = new dm(20), hm = (t, e, n) => {
90
90
  o > 0 && !i.test(t.substring(0, o)) && (s = !0);
91
91
  }
92
92
  return s;
93
- }, ha = function(t, e) {
93
+ }, ga = function(t, e) {
94
94
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
95
95
  if (!t) return;
96
96
  if (t[e])
@@ -226,7 +226,7 @@ class wu extends qs {
226
226
  let a;
227
227
  e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, n], r && (Array.isArray(r) ? a.push(...r) : re(r) && s ? a.push(...r.split(s)) : a.push(r)));
228
228
  const l = Yi(this.data, a);
229
- return !l && !n && !r && e.indexOf(".") > -1 && (e = a[0], n = a[1], r = a.slice(2).join(".")), l || !o || !re(r) ? l : ha((p = (u = this.data) == null ? void 0 : u[e]) == null ? void 0 : p[n], r, s);
229
+ return !l && !n && !r && e.indexOf(".") > -1 && (e = a[0], n = a[1], r = a.slice(2).join(".")), l || !o || !re(r) ? l : ga((p = (u = this.data) == null ? void 0 : u[e]) == null ? void 0 : p[n], r, s);
230
230
  }
231
231
  addResource(e, n, r, i) {
232
232
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -670,8 +670,8 @@ class mm {
670
670
  }
671
671
  const Au = function(t, e, n) {
672
672
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = cm(t, e, n);
673
- return !s && i && re(n) && (s = ha(t, n, r), s === void 0 && (s = ha(e, n, r))), s;
674
- }, Do = (t) => t.replace(/\$/g, "$$$$");
673
+ return !s && i && re(n) && (s = ga(t, n, r), s === void 0 && (s = ga(e, n, r))), s;
674
+ }, Fo = (t) => t.replace(/\$/g, "$$$$");
675
675
  class _m {
676
676
  constructor() {
677
677
  var n;
@@ -734,10 +734,10 @@ class _m {
734
734
  const p = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, h = ((v = i == null ? void 0 : i.interpolation) == null ? void 0 : v.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
735
735
  return [{
736
736
  regex: this.regexpUnescape,
737
- safeValue: (f) => Do(f)
737
+ safeValue: (f) => Fo(f)
738
738
  }, {
739
739
  regex: this.regexp,
740
- safeValue: (f) => this.escapeValue ? Do(this.escape(f)) : Do(f)
740
+ safeValue: (f) => this.escapeValue ? Fo(this.escape(f)) : Fo(f)
741
741
  }].forEach((f) => {
742
742
  for (a = 0; s = f.regex.exec(e); ) {
743
743
  const _ = s[1].trim();
@@ -1410,7 +1410,7 @@ const jn = c.object({
1410
1410
  access_token_secret: c.string().optional(),
1411
1411
  refresh_token: c.string().optional(),
1412
1412
  profileData: xm.optional()
1413
- }), Wc = c.object({
1413
+ }), Gc = c.object({
1414
1414
  email: c.string().optional(),
1415
1415
  username: c.string().optional(),
1416
1416
  given_name: c.string().optional(),
@@ -1424,7 +1424,7 @@ const jn = c.object({
1424
1424
  user_id: c.string().optional(),
1425
1425
  app_metadata: c.any().default({}).optional(),
1426
1426
  user_metadata: c.any().default({}).optional()
1427
- }), ga = Wc.extend({
1427
+ }), ma = Gc.extend({
1428
1428
  email_verified: c.boolean().default(!1),
1429
1429
  verify_email: c.boolean().optional(),
1430
1430
  last_ip: c.string().optional(),
@@ -1434,7 +1434,7 @@ const jn = c.object({
1434
1434
  connection: c.string().default("email"),
1435
1435
  is_social: c.boolean().optional()
1436
1436
  }), Yp = c.object({
1437
- ...ga.shape,
1437
+ ...ma.shape,
1438
1438
  ...Zp.shape,
1439
1439
  user_id: c.string(),
1440
1440
  is_social: c.boolean(),
@@ -1442,7 +1442,7 @@ const jn = c.object({
1442
1442
  email: c.string(),
1443
1443
  login_count: c.number(),
1444
1444
  identities: c.array(Sm).optional()
1445
- }), Ot = Yp, Z8 = Wc.extend({
1445
+ }), Ot = Yp, Z8 = Gc.extend({
1446
1446
  email: c.string(),
1447
1447
  login_count: c.number(),
1448
1448
  multifactor: c.array(c.string()).optional(),
@@ -1473,7 +1473,7 @@ const Im = c.object({
1473
1473
  nameIdentifierProbes: c.array(c.string()).optional(),
1474
1474
  authnContextClassRef: c.string().optional(),
1475
1475
  mappings: c.record(c.string()).optional()
1476
- }), ma = c.object({
1476
+ }), _a = c.object({
1477
1477
  id: c.string(),
1478
1478
  name: c.string(),
1479
1479
  callbacks: c.array(c.string()).default([]).optional().openapi({
@@ -1506,9 +1506,9 @@ const Im = c.object({
1506
1506
  }), Dn = c.object({
1507
1507
  created_at: c.string().transform((t) => t === null ? "" : t),
1508
1508
  updated_at: c.string().transform((t) => t === null ? "" : t),
1509
- ...ma.shape
1509
+ ..._a.shape
1510
1510
  });
1511
- var gn = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(gn || {}), mn = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(mn || {}), Gc = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(Gc || {});
1511
+ var gn = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(gn || {}), mn = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(mn || {}), Jc = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(Jc || {});
1512
1512
  const Xp = c.object({
1513
1513
  client_id: c.string(),
1514
1514
  vendor_id: c.string().optional(),
@@ -1521,7 +1521,7 @@ const Xp = c.object({
1521
1521
  nonce: c.string().optional(),
1522
1522
  scope: c.string().optional(),
1523
1523
  prompt: c.string().optional(),
1524
- code_challenge_method: c.nativeEnum(Gc).optional(),
1524
+ code_challenge_method: c.nativeEnum(Jc).optional(),
1525
1525
  code_challenge: c.string().optional(),
1526
1526
  username: c.string().optional(),
1527
1527
  ui_locales: c.string().optional()
@@ -1540,7 +1540,7 @@ const Xp = c.object({
1540
1540
  font: c.object({
1541
1541
  url: c.string()
1542
1542
  }).optional()
1543
- }), _a = c.object({
1543
+ }), ya = c.object({
1544
1544
  id: c.string().optional(),
1545
1545
  name: c.string(),
1546
1546
  strategy: c.string(),
@@ -1566,7 +1566,7 @@ const Xp = c.object({
1566
1566
  id: c.string(),
1567
1567
  created_at: c.string().transform((t) => t === null ? "" : t),
1568
1568
  updated_at: c.string().transform((t) => t === null ? "" : t)
1569
- }).extend(_a.shape), ya = c.object({
1569
+ }).extend(ya.shape), va = c.object({
1570
1570
  name: c.string(),
1571
1571
  audience: c.string(),
1572
1572
  sender_email: c.string().email(),
@@ -1580,7 +1580,7 @@ const Xp = c.object({
1580
1580
  }), Br = c.object({
1581
1581
  created_at: c.string().transform((t) => t === null ? "" : t),
1582
1582
  updated_at: c.string().transform((t) => t === null ? "" : t),
1583
- ...ya.shape,
1583
+ ...va.shape,
1584
1584
  id: c.string()
1585
1585
  }), Cm = c.object({
1586
1586
  logoUrl: c.string(),
@@ -1653,7 +1653,7 @@ const Nm = c.enum([
1653
1653
  origin_domain_name: c.string().optional(),
1654
1654
  verification: c.object({}).optional(),
1655
1655
  tls_policy: c.string().optional()
1656
- }), va = c.object({
1656
+ }), wa = c.object({
1657
1657
  trigger_id: c.enum([
1658
1658
  "pre-user-signup",
1659
1659
  "post-user-registration",
@@ -1664,7 +1664,7 @@ const Nm = c.enum([
1664
1664
  hook_id: c.string().optional(),
1665
1665
  synchronous: c.boolean().default(!1),
1666
1666
  priority: c.number().optional()
1667
- }), $r = va.extend({
1667
+ }), $r = wa.extend({
1668
1668
  ...Zp.shape,
1669
1669
  hook_id: c.string()
1670
1670
  }), Qp = c.object({
@@ -1782,7 +1782,7 @@ const Tm = c.enum([
1782
1782
  env: c.object({
1783
1783
  node: c.string().optional()
1784
1784
  }).optional()
1785
- }), wa = c.object({
1785
+ }), ba = c.object({
1786
1786
  type: Tm,
1787
1787
  date: c.string(),
1788
1788
  description: c.string().optional(),
@@ -1831,7 +1831,7 @@ const Tm = c.enum([
1831
1831
  "Metadata related to the device used in the session"
1832
1832
  ),
1833
1833
  clients: c.array(c.string()).describe("List of client details for the session")
1834
- }), Jc = c.object({
1834
+ }), Zc = c.object({
1835
1835
  created_at: c.string(),
1836
1836
  updated_at: c.string(),
1837
1837
  authenticated_at: c.string(),
@@ -1933,12 +1933,12 @@ const Vm = c.object({
1933
1933
  widget: Dm
1934
1934
  }), t5 = Fm.extend({
1935
1935
  themeId: c.string()
1936
- }), Fo = c.object({
1936
+ }), Ho = c.object({
1937
1937
  universal_login_experience: c.enum(["new", "classic"]).default("new"),
1938
1938
  identifier_first: c.boolean().default(!0),
1939
1939
  password_first: c.boolean().default(!1),
1940
1940
  webauthn_platform_first_factor: c.boolean()
1941
- }), Ho = c.object({
1941
+ }), Ko = c.object({
1942
1942
  name: c.string(),
1943
1943
  enabled: c.boolean().optional().default(!0),
1944
1944
  default_from_address: c.string().optional(),
@@ -3674,7 +3674,7 @@ function ju(t) {
3674
3674
  const [, e] = t.split("|");
3675
3675
  return e;
3676
3676
  }
3677
- async function Zc(t, e, n) {
3677
+ async function zs(t, e, n) {
3678
3678
  return (await t.list(e, {
3679
3679
  page: 0,
3680
3680
  per_page: 10,
@@ -3696,7 +3696,7 @@ async function Gn({
3696
3696
  });
3697
3697
  return i.length > 1 && console.error("More than one user found for same email and provider"), i[0] || null;
3698
3698
  }
3699
- async function zs({
3699
+ async function Ds({
3700
3700
  userAdapter: t,
3701
3701
  tenant_id: e,
3702
3702
  email: n
@@ -3816,7 +3816,7 @@ function tt(t, e) {
3816
3816
  const Ou = jn.extend({
3817
3817
  users: c.array(Ot)
3818
3818
  }), o_ = jn.extend({
3819
- sessions: c.array(Jc)
3819
+ sessions: c.array(Zc)
3820
3820
  }), a_ = new ue().openapi(
3821
3821
  D({
3822
3822
  tags: ["users"],
@@ -3969,7 +3969,7 @@ const Ou = jn.extend({
3969
3969
  body: {
3970
3970
  content: {
3971
3971
  "application/json": {
3972
- schema: c.object({ ...ga.shape })
3972
+ schema: c.object({ ...ma.shape })
3973
3973
  }
3974
3974
  }
3975
3975
  }
@@ -4050,7 +4050,7 @@ const Ou = jn.extend({
4050
4050
  content: {
4051
4051
  "application/json": {
4052
4052
  schema: c.object({
4053
- ...ga.shape,
4053
+ ...ma.shape,
4054
4054
  verify_email: c.boolean(),
4055
4055
  password: c.string()
4056
4056
  }).partial()
@@ -4078,7 +4078,7 @@ const Ou = jn.extend({
4078
4078
  if (!a)
4079
4079
  throw new $(404);
4080
4080
  if (o.email && o.email !== a.email) {
4081
- const p = await Zc(
4081
+ const p = await zs(
4082
4082
  t.env.data.users,
4083
4083
  e,
4084
4084
  o.email
@@ -4252,7 +4252,7 @@ const Ou = jn.extend({
4252
4252
  content: {
4253
4253
  "application/json": {
4254
4254
  schema: c.union([
4255
- c.array(Jc),
4255
+ c.array(Zc),
4256
4256
  o_
4257
4257
  ])
4258
4258
  }
@@ -4314,11 +4314,11 @@ var Bu;
4314
4314
  var r = Object.prototype.hasOwnProperty, i = typeof Symbol == "function", s = i && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", o = i && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", a = typeof Object.create == "function", l = { __proto__: [] } instanceof Array, u = !a && !l, p = {
4315
4315
  // create an object in dictionary mode (a.k.a. "slow" mode in v8)
4316
4316
  create: a ? function() {
4317
- return zo(/* @__PURE__ */ Object.create(null));
4317
+ return Do(/* @__PURE__ */ Object.create(null));
4318
4318
  } : l ? function() {
4319
- return zo({ __proto__: null });
4319
+ return Do({ __proto__: null });
4320
4320
  } : function() {
4321
- return zo({});
4321
+ return Do({});
4322
4322
  },
4323
4323
  has: u ? function(A, I) {
4324
4324
  return r.call(A, I);
@@ -4443,7 +4443,7 @@ var Bu;
4443
4443
  var M = k(A, I, B);
4444
4444
  if (M)
4445
4445
  return !0;
4446
- var ee = qo(I);
4446
+ var ee = zo(I);
4447
4447
  return Ne(ee) ? !1 : x(A, ee, B);
4448
4448
  }
4449
4449
  function k(A, I, B) {
@@ -4459,7 +4459,7 @@ var Bu;
4459
4459
  var M = k(A, I, B);
4460
4460
  if (M)
4461
4461
  return U(A, I, B);
4462
- var ee = qo(I);
4462
+ var ee = zo(I);
4463
4463
  if (!Ne(ee))
4464
4464
  return O(A, ee, B);
4465
4465
  }
@@ -4483,7 +4483,7 @@ var Bu;
4483
4483
  ee.OrdinaryDefineOwnMetadata(A, I, B, M);
4484
4484
  }
4485
4485
  function J(A, I) {
4486
- var B = se(A, I), M = qo(A);
4486
+ var B = se(A, I), M = zo(A);
4487
4487
  if (M === null)
4488
4488
  return B;
4489
4489
  var ee = J(M, I);
@@ -4613,7 +4613,7 @@ var Bu;
4613
4613
  return !1;
4614
4614
  }
4615
4615
  }
4616
- function Mo(A, I) {
4616
+ function qo(A, I) {
4617
4617
  return A === I || A !== A && I !== I;
4618
4618
  }
4619
4619
  function uu(A, I) {
@@ -4644,7 +4644,7 @@ var Bu;
4644
4644
  var I = A.return;
4645
4645
  I && I.call(A);
4646
4646
  }
4647
- function qo(A) {
4647
+ function zo(A) {
4648
4648
  var I = Object.getPrototypeOf(A);
4649
4649
  if (typeof A != "function" || A === h || I !== h)
4650
4650
  return I;
@@ -4924,7 +4924,7 @@ var Bu;
4924
4924
  if (G >= 0) {
4925
4925
  for (var Y = this._keys.length, X = G + 1; X < Y; X++)
4926
4926
  this._keys[X - 1] = this._keys[X], this._values[X - 1] = this._values[X];
4927
- return this._keys.length--, this._values.length--, Mo(F, this._cacheKey) && (this._cacheKey = A, this._cacheIndex = -2), !0;
4927
+ return this._keys.length--, this._values.length--, qo(F, this._cacheKey) && (this._cacheKey = A, this._cacheIndex = -2), !0;
4928
4928
  }
4929
4929
  return !1;
4930
4930
  }, oe.prototype.clear = function() {
@@ -4940,10 +4940,10 @@ var Bu;
4940
4940
  }, oe.prototype[o] = function() {
4941
4941
  return this.entries();
4942
4942
  }, oe.prototype._find = function(F, G) {
4943
- if (!Mo(this._cacheKey, F)) {
4943
+ if (!qo(this._cacheKey, F)) {
4944
4944
  this._cacheIndex = -1;
4945
4945
  for (var Y = 0; Y < this._keys.length; Y++)
4946
- if (Mo(this._keys[Y], F)) {
4946
+ if (qo(this._keys[Y], F)) {
4947
4947
  this._cacheIndex = Y;
4948
4948
  break;
4949
4949
  }
@@ -5077,7 +5077,7 @@ var Bu;
5077
5077
  return G;
5078
5078
  }
5079
5079
  }
5080
- function zo(A) {
5080
+ function Do(A) {
5081
5081
  return A.__ = void 0, delete A.__, A;
5082
5082
  }
5083
5083
  });
@@ -5156,7 +5156,7 @@ class z {
5156
5156
  return e[e.length - 1] instanceof Function ? this.toView(i, e[e.length - 1]) : i.buffer;
5157
5157
  }
5158
5158
  }
5159
- const Ko = "string", l_ = /^[0-9a-f]+$/i, u_ = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, d_ = /^[a-zA-Z0-9-_]+$/;
5159
+ const Wo = "string", l_ = /^[0-9a-f]+$/i, u_ = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, d_ = /^[a-zA-Z0-9-_]+$/;
5160
5160
  class Tu {
5161
5161
  static fromString(e) {
5162
5162
  const n = unescape(encodeURIComponent(e)), r = new Uint8Array(n.length);
@@ -5191,13 +5191,13 @@ class bt {
5191
5191
  }
5192
5192
  class Z {
5193
5193
  static isHex(e) {
5194
- return typeof e === Ko && l_.test(e);
5194
+ return typeof e === Wo && l_.test(e);
5195
5195
  }
5196
5196
  static isBase64(e) {
5197
- return typeof e === Ko && u_.test(e);
5197
+ return typeof e === Wo && u_.test(e);
5198
5198
  }
5199
5199
  static isBase64Url(e) {
5200
- return typeof e === Ko && d_.test(e);
5200
+ return typeof e === Wo && d_.test(e);
5201
5201
  }
5202
5202
  static ToString(e, n = "utf8") {
5203
5203
  const r = z.toUint8Array(e);
@@ -5410,7 +5410,7 @@ function vn(t, e, n = -1) {
5410
5410
  }
5411
5411
  return new ArrayBuffer(0);
5412
5412
  }
5413
- function ba(...t) {
5413
+ function ka(...t) {
5414
5414
  let e = 0, n = 0;
5415
5415
  for (const s of t)
5416
5416
  e += s.length;
@@ -5528,7 +5528,7 @@ function Yc(t) {
5528
5528
  function zt(t, e, n, r) {
5529
5529
  return e instanceof Uint8Array ? e.byteLength ? n < 0 ? (t.error = "Wrong parameter: inputOffset less than zero", !1) : r < 0 ? (t.error = "Wrong parameter: inputLength less than zero", !1) : e.byteLength - n - r < 0 ? (t.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", !1) : !0 : (t.error = "Wrong parameter: inputBuffer has zero length", !1) : (t.error = "Wrong parameter: inputBuffer must be 'Uint8Array'", !1);
5530
5530
  }
5531
- class Ds {
5531
+ class Fs {
5532
5532
  constructor() {
5533
5533
  this.items = [];
5534
5534
  }
@@ -5539,7 +5539,7 @@ class Ds {
5539
5539
  return Yc(this.items);
5540
5540
  }
5541
5541
  }
5542
- const Sr = [new Uint8Array([1])], Pu = "0123456789", Wo = "name", Ru = "valueHexView", g_ = "isHexOnly", m_ = "idBlock", __ = "tagClass", y_ = "tagNumber", v_ = "isConstructed", w_ = "fromBER", b_ = "toBER", k_ = "local", Fe = "", yt = new ArrayBuffer(0), Fs = new Uint8Array(0), qr = "EndOfContent", af = "OCTET STRING", cf = "BIT STRING";
5542
+ const Sr = [new Uint8Array([1])], Pu = "0123456789", Go = "name", Ru = "valueHexView", g_ = "isHexOnly", m_ = "idBlock", __ = "tagClass", y_ = "tagNumber", v_ = "isConstructed", w_ = "fromBER", b_ = "toBER", k_ = "local", Fe = "", yt = new ArrayBuffer(0), Hs = new Uint8Array(0), qr = "EndOfContent", af = "OCTET STRING", cf = "BIT STRING";
5543
5543
  function Ct(t) {
5544
5544
  var e;
5545
5545
  return e = class extends t {
@@ -5547,7 +5547,7 @@ function Ct(t) {
5547
5547
  var i;
5548
5548
  super(...r);
5549
5549
  const s = r[0] || {};
5550
- this.isHexOnly = (i = s.isHexOnly) !== null && i !== void 0 ? i : !1, this.valueHexView = s.valueHex ? z.toUint8Array(s.valueHex) : Fs;
5550
+ this.isHexOnly = (i = s.isHexOnly) !== null && i !== void 0 ? i : !1, this.valueHexView = s.valueHex ? z.toUint8Array(s.valueHex) : Hs;
5551
5551
  }
5552
5552
  get valueHex() {
5553
5553
  return this.valueHexView.slice().buffer;
@@ -5575,7 +5575,7 @@ function Ct(t) {
5575
5575
  }, e.NAME = "hexBlock", e;
5576
5576
  }
5577
5577
  class On {
5578
- constructor({ blockLength: e = 0, error: n = Fe, warnings: r = [], valueBeforeDecode: i = Fs } = {}) {
5578
+ constructor({ blockLength: e = 0, error: n = Fe, warnings: r = [], valueBeforeDecode: i = Hs } = {}) {
5579
5579
  this.blockLength = e, this.error = n, this.warnings = r, this.valueBeforeDecodeView = z.toUint8Array(i);
5580
5580
  }
5581
5581
  static blockName() {
@@ -5610,7 +5610,7 @@ qe.NAME = "valueBlock";
5610
5610
  class lf extends Ct(On) {
5611
5611
  constructor({ idBlock: e = {} } = {}) {
5612
5612
  var n, r, i, s;
5613
- super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? z.toUint8Array(e.valueHex) : Fs, 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);
5613
+ super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? z.toUint8Array(e.valueHex) : Hs, 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);
5614
5614
  }
5615
5615
  toBER(e = !1) {
5616
5616
  let n = 0;
@@ -5795,7 +5795,7 @@ class Te extends On {
5795
5795
  return i === -1 ? (this.error = this.valueBlock.error, i) : (this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.valueBlock.error.length || (this.blockLength += this.valueBlock.blockLength), i);
5796
5796
  }
5797
5797
  toBER(e, n) {
5798
- const r = n || new Ds();
5798
+ const r = n || new Fs();
5799
5799
  n || df(this);
5800
5800
  const i = this.idBlock.toBER(e);
5801
5801
  if (r.write(i), this.lenBlock.isIndefiniteForm)
@@ -6071,7 +6071,7 @@ class Wt extends qe {
6071
6071
  return this.isIndefiniteForm && (this.value[this.value.length - 1].constructor.NAME === qr ? this.value.pop() : this.warnings.push("No EndOfContent block encoded")), s;
6072
6072
  }
6073
6073
  toBER(e, n) {
6074
- const r = n || new Ds();
6074
+ const r = n || new Fs();
6075
6075
  for (let i = 0; i < this.value.length; i++)
6076
6076
  this.value[i].toBER(e, r);
6077
6077
  return n ? yt : r.final();
@@ -6183,7 +6183,7 @@ class yf extends Ct(qe) {
6183
6183
  }
6184
6184
  yf.NAME = "BooleanValueBlock";
6185
6185
  var vf;
6186
- class Hs extends Te {
6186
+ class Ks extends Te {
6187
6187
  constructor(e = {}) {
6188
6188
  super(e, yf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
6189
6189
  }
@@ -6197,9 +6197,9 @@ class Hs extends Te {
6197
6197
  return `${this.constructor.NAME} : ${this.getValue}`;
6198
6198
  }
6199
6199
  }
6200
- vf = Hs;
6200
+ vf = Ks;
6201
6201
  W.Boolean = vf;
6202
- Hs.NAME = "BOOLEAN";
6202
+ Ks.NAME = "BOOLEAN";
6203
6203
  class wf extends Ct(Wt) {
6204
6204
  constructor({ isConstructed: e = !1, ...n } = {}) {
6205
6205
  super(n), this.isConstructed = e;
@@ -6396,13 +6396,13 @@ function A_(t, e) {
6396
6396
  }
6397
6397
  switch (n[0] = u / 10, !0) {
6398
6398
  case h >= s.length:
6399
- s = ba(new Uint8Array([u % 10]), s);
6399
+ s = ka(new Uint8Array([u % 10]), s);
6400
6400
  break;
6401
6401
  default:
6402
6402
  s[o - h] = u % 10;
6403
6403
  }
6404
6404
  }
6405
- return n[0] > 0 && (s = ba(n, s)), s;
6405
+ return n[0] > 0 && (s = ka(n, s)), s;
6406
6406
  }
6407
6407
  function Lu(t) {
6408
6408
  if (t >= Sr.length)
@@ -6413,7 +6413,7 @@ function Lu(t) {
6413
6413
  const s = new Uint8Array([(r[i] << 1) + n[0]]);
6414
6414
  n[0] = s[0] / 10, r[i] = s[0] % 10;
6415
6415
  }
6416
- n[0] > 0 && (r = ba(n, r)), Sr.push(r);
6416
+ n[0] > 0 && (r = ka(n, r)), Sr.push(r);
6417
6417
  }
6418
6418
  return Sr[t];
6419
6419
  }
@@ -6531,7 +6531,7 @@ class St extends Te {
6531
6531
  }
6532
6532
  static fromBigInt(e) {
6533
6533
  ns();
6534
- const n = BigInt(e), r = new Ds(), i = n.toString(16).replace(/^-/, ""), s = new Uint8Array(Z.FromHex(i));
6534
+ const n = BigInt(e), r = new Fs(), i = n.toString(16).replace(/^-/, ""), s = new Uint8Array(Z.FromHex(i));
6535
6535
  if (n < 0) {
6536
6536
  const a = new Uint8Array(s.length + (s[0] & 128 ? 1 : 0));
6537
6537
  a[0] |= 128;
@@ -6560,15 +6560,15 @@ Ef = St;
6560
6560
  W.Integer = Ef;
6561
6561
  St.NAME = "INTEGER";
6562
6562
  var If;
6563
- class Ks extends St {
6563
+ class Ws extends St {
6564
6564
  constructor(e = {}) {
6565
6565
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
6566
6566
  }
6567
6567
  }
6568
- If = Ks;
6568
+ If = Ws;
6569
6569
  W.Enumerated = If;
6570
- Ks.NAME = "ENUMERATED";
6571
- class ka extends Ct(qe) {
6570
+ Ws.NAME = "ENUMERATED";
6571
+ class xa extends Ct(qe) {
6572
6572
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
6573
6573
  super(r), this.valueDec = e, this.isFirstSid = n;
6574
6574
  }
@@ -6637,7 +6637,7 @@ class ka extends Ct(qe) {
6637
6637
  };
6638
6638
  }
6639
6639
  }
6640
- ka.NAME = "sidBlock";
6640
+ xa.NAME = "sidBlock";
6641
6641
  class Cf extends qe {
6642
6642
  constructor({ value: e = Fe, ...n } = {}) {
6643
6643
  super(n), this.value = [], e && this.fromString(e);
@@ -6645,7 +6645,7 @@ class Cf extends qe {
6645
6645
  fromBER(e, n, r) {
6646
6646
  let i = n;
6647
6647
  for (; r > 0; ) {
6648
- const s = new ka();
6648
+ const s = new xa();
6649
6649
  if (i = s.fromBER(e, i, r), i === -1)
6650
6650
  return this.blockLength = 0, this.error = s.error, i;
6651
6651
  this.value.length === 0 && (s.isFirstSid = !0), this.blockLength += s.blockLength, r -= s.blockLength, this.value.push(s);
@@ -6687,7 +6687,7 @@ class Cf extends qe {
6687
6687
  return;
6688
6688
  o.valueDec = l + a, s = !1;
6689
6689
  } else {
6690
- const o = new ka();
6690
+ const o = new xa();
6691
6691
  if (i > Number.MAX_SAFE_INTEGER) {
6692
6692
  ns();
6693
6693
  const a = BigInt(i);
@@ -6720,7 +6720,7 @@ class Cf extends qe {
6720
6720
  }
6721
6721
  Cf.NAME = "ObjectIdentifierValueBlock";
6722
6722
  var Nf;
6723
- class Ws extends Te {
6723
+ class Gs extends Te {
6724
6724
  constructor(e = {}) {
6725
6725
  super(e, Cf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
6726
6726
  }
@@ -6740,10 +6740,10 @@ class Ws extends Te {
6740
6740
  };
6741
6741
  }
6742
6742
  }
6743
- Nf = Ws;
6743
+ Nf = Gs;
6744
6744
  W.ObjectIdentifier = Nf;
6745
- Ws.NAME = "OBJECT IDENTIFIER";
6746
- class xa extends Ct(On) {
6745
+ Gs.NAME = "OBJECT IDENTIFIER";
6746
+ class Sa extends Ct(On) {
6747
6747
  constructor({ valueDec: e = 0, ...n } = {}) {
6748
6748
  super(n), this.valueDec = e;
6749
6749
  }
@@ -6794,7 +6794,7 @@ class xa extends Ct(On) {
6794
6794
  };
6795
6795
  }
6796
6796
  }
6797
- xa.NAME = "relativeSidBlock";
6797
+ Sa.NAME = "relativeSidBlock";
6798
6798
  class $f extends qe {
6799
6799
  constructor({ value: e = Fe, ...n } = {}) {
6800
6800
  super(n), this.value = [], e && this.fromString(e);
@@ -6802,7 +6802,7 @@ class $f extends qe {
6802
6802
  fromBER(e, n, r) {
6803
6803
  let i = n;
6804
6804
  for (; r > 0; ) {
6805
- const s = new xa();
6805
+ const s = new Sa();
6806
6806
  if (i = s.fromBER(e, i, r), i === -1)
6807
6807
  return this.blockLength = 0, this.error = s.error, i;
6808
6808
  this.blockLength += s.blockLength, r -= s.blockLength, this.value.push(s);
@@ -6824,7 +6824,7 @@ class $f extends qe {
6824
6824
  let n = 0, r = 0, i = "";
6825
6825
  do {
6826
6826
  r = e.indexOf(".", n), r === -1 ? i = e.substring(n) : i = e.substring(n, r), n = r + 1;
6827
- const s = new xa();
6827
+ const s = new Sa();
6828
6828
  if (s.valueDec = parseInt(i, 10), isNaN(s.valueDec))
6829
6829
  return !0;
6830
6830
  this.value.push(s);
@@ -6957,14 +6957,14 @@ class Uf extends Qe {
6957
6957
  }
6958
6958
  Uf.NAME = "BmpStringValueBlock";
6959
6959
  var Vf;
6960
- class Gs extends Uf {
6960
+ class Js extends Uf {
6961
6961
  constructor({ ...e } = {}) {
6962
6962
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
6963
6963
  }
6964
6964
  }
6965
- Vf = Gs;
6965
+ Vf = Js;
6966
6966
  W.BmpString = Vf;
6967
- Gs.NAME = "BMPString";
6967
+ Js.NAME = "BMPString";
6968
6968
  class Mf extends Qe {
6969
6969
  fromBuffer(e) {
6970
6970
  const n = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), r = new Uint8Array(n);
@@ -6987,68 +6987,68 @@ class Mf extends Qe {
6987
6987
  }
6988
6988
  Mf.NAME = "UniversalStringValueBlock";
6989
6989
  var qf;
6990
- class Js extends Mf {
6990
+ class Zs extends Mf {
6991
6991
  constructor({ ...e } = {}) {
6992
6992
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
6993
6993
  }
6994
6994
  }
6995
- qf = Js;
6995
+ qf = Zs;
6996
6996
  W.UniversalString = qf;
6997
- Js.NAME = "UniversalString";
6997
+ Zs.NAME = "UniversalString";
6998
6998
  var zf;
6999
- class Zs extends Qe {
6999
+ class Ys extends Qe {
7000
7000
  constructor(e = {}) {
7001
7001
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
7002
7002
  }
7003
7003
  }
7004
- zf = Zs;
7004
+ zf = Ys;
7005
7005
  W.NumericString = zf;
7006
- Zs.NAME = "NumericString";
7006
+ Ys.NAME = "NumericString";
7007
7007
  var Df;
7008
- class Ys extends Qe {
7008
+ class Xs extends Qe {
7009
7009
  constructor(e = {}) {
7010
7010
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
7011
7011
  }
7012
7012
  }
7013
- Df = Ys;
7013
+ Df = Xs;
7014
7014
  W.PrintableString = Df;
7015
- Ys.NAME = "PrintableString";
7015
+ Xs.NAME = "PrintableString";
7016
7016
  var Ff;
7017
- class Xs extends Qe {
7017
+ class Qs extends Qe {
7018
7018
  constructor(e = {}) {
7019
7019
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
7020
7020
  }
7021
7021
  }
7022
- Ff = Xs;
7022
+ Ff = Qs;
7023
7023
  W.TeletexString = Ff;
7024
- Xs.NAME = "TeletexString";
7024
+ Qs.NAME = "TeletexString";
7025
7025
  var Hf;
7026
- class Qs extends Qe {
7026
+ class eo extends Qe {
7027
7027
  constructor(e = {}) {
7028
7028
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
7029
7029
  }
7030
7030
  }
7031
- Hf = Qs;
7031
+ Hf = eo;
7032
7032
  W.VideotexString = Hf;
7033
- Qs.NAME = "VideotexString";
7033
+ eo.NAME = "VideotexString";
7034
7034
  var Kf;
7035
- class eo extends Qe {
7035
+ class to extends Qe {
7036
7036
  constructor(e = {}) {
7037
7037
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
7038
7038
  }
7039
7039
  }
7040
- Kf = eo;
7040
+ Kf = to;
7041
7041
  W.IA5String = Kf;
7042
- eo.NAME = "IA5String";
7042
+ to.NAME = "IA5String";
7043
7043
  var Wf;
7044
- class to extends Qe {
7044
+ class no extends Qe {
7045
7045
  constructor(e = {}) {
7046
7046
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
7047
7047
  }
7048
7048
  }
7049
- Wf = to;
7049
+ Wf = no;
7050
7050
  W.GraphicString = Wf;
7051
- to.NAME = "GraphicString";
7051
+ no.NAME = "GraphicString";
7052
7052
  var Gf;
7053
7053
  class li extends Qe {
7054
7054
  constructor(e = {}) {
@@ -7059,23 +7059,23 @@ Gf = li;
7059
7059
  W.VisibleString = Gf;
7060
7060
  li.NAME = "VisibleString";
7061
7061
  var Jf;
7062
- class no extends Qe {
7062
+ class ro extends Qe {
7063
7063
  constructor(e = {}) {
7064
7064
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
7065
7065
  }
7066
7066
  }
7067
- Jf = no;
7067
+ Jf = ro;
7068
7068
  W.GeneralString = Jf;
7069
- no.NAME = "GeneralString";
7069
+ ro.NAME = "GeneralString";
7070
7070
  var Zf;
7071
- class ro extends Qe {
7071
+ class io extends Qe {
7072
7072
  constructor(e = {}) {
7073
7073
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
7074
7074
  }
7075
7075
  }
7076
- Zf = ro;
7076
+ Zf = io;
7077
7077
  W.CharacterString = Zf;
7078
- ro.NAME = "CharacterString";
7078
+ io.NAME = "CharacterString";
7079
7079
  var Yf;
7080
7080
  class ui extends li {
7081
7081
  constructor({ value: e, valueDate: n, ...r } = {}) {
@@ -7136,7 +7136,7 @@ Yf = ui;
7136
7136
  W.UTCTime = Yf;
7137
7137
  ui.NAME = "UTCTime";
7138
7138
  var Xf;
7139
- class io extends ui {
7139
+ class so extends ui {
7140
7140
  constructor(e = {}) {
7141
7141
  var n;
7142
7142
  super(e), (n = this.millisecond) !== null && n !== void 0 || (this.millisecond = 0), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 24;
@@ -7256,9 +7256,9 @@ class io extends ui {
7256
7256
  };
7257
7257
  }
7258
7258
  }
7259
- Xf = io;
7259
+ Xf = so;
7260
7260
  W.GeneralizedTime = Xf;
7261
- io.NAME = "GeneralizedTime";
7261
+ so.NAME = "GeneralizedTime";
7262
7262
  var Qf;
7263
7263
  class nl extends Dt {
7264
7264
  constructor(e = {}) {
@@ -7320,7 +7320,7 @@ class rs extends bn {
7320
7320
  }
7321
7321
  }
7322
7322
  class I_ {
7323
- constructor({ data: e = Fs } = {}) {
7323
+ constructor({ data: e = Hs } = {}) {
7324
7324
  this.dataView = z.toUint8Array(e);
7325
7325
  }
7326
7326
  get data() {
@@ -7352,11 +7352,11 @@ function ln(t, e, n) {
7352
7352
  error: "Wrong values for Choice type"
7353
7353
  }
7354
7354
  };
7355
- return n.hasOwnProperty(Wo) && (s.name = n.name), s;
7355
+ return n.hasOwnProperty(Go) && (s.name = n.name), s;
7356
7356
  }
7357
7357
  }
7358
7358
  if (n instanceof bn)
7359
- return n.hasOwnProperty(Wo) && (t[n.name] = e), {
7359
+ return n.hasOwnProperty(Go) && (t[n.name] = e), {
7360
7360
  verified: !0,
7361
7361
  result: t
7362
7362
  };
@@ -7499,7 +7499,7 @@ function ln(t, e, n) {
7499
7499
  s++;
7500
7500
  else
7501
7501
  return n.name && (n.name = n.name.replace(/^\s+|\s+$/g, Fe), n.name && delete t[n.name]), o;
7502
- if (Wo in n.valueBlock.value[0] && n.valueBlock.value[0].name.length > 0) {
7502
+ if (Go in n.valueBlock.value[0] && n.valueBlock.value[0].name.length > 0) {
7503
7503
  let u = {};
7504
7504
  k_ in n.valueBlock.value[0] && n.valueBlock.value[0].local ? u = e : u = t, typeof u[n.valueBlock.value[0].name] > "u" && (u[n.valueBlock.value[0].name] = []), u[n.valueBlock.value[0].name].push(e.valueBlock.value[l]);
7505
7505
  }
@@ -7554,42 +7554,42 @@ const ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7554
7554
  BaseBlock: Te,
7555
7555
  BaseStringBlock: Xc,
7556
7556
  BitString: fn,
7557
- BmpString: Gs,
7558
- Boolean: Hs,
7559
- CharacterString: ro,
7557
+ BmpString: Js,
7558
+ Boolean: Ks,
7559
+ CharacterString: io,
7560
7560
  Choice: al,
7561
7561
  Constructed: He,
7562
7562
  DATE: nl,
7563
7563
  DateTime: il,
7564
7564
  Duration: sl,
7565
7565
  EndOfContent: Qc,
7566
- Enumerated: Ks,
7567
- GeneralString: no,
7568
- GeneralizedTime: io,
7569
- GraphicString: to,
7566
+ Enumerated: Ws,
7567
+ GeneralString: ro,
7568
+ GeneralizedTime: so,
7569
+ GraphicString: no,
7570
7570
  HexBlock: Ct,
7571
- IA5String: eo,
7571
+ IA5String: to,
7572
7572
  Integer: St,
7573
7573
  Null: wn,
7574
- NumericString: Zs,
7575
- ObjectIdentifier: Ws,
7574
+ NumericString: Ys,
7575
+ ObjectIdentifier: Gs,
7576
7576
  OctetString: pn,
7577
7577
  Primitive: ci,
7578
- PrintableString: Ys,
7578
+ PrintableString: Xs,
7579
7579
  RawData: I_,
7580
7580
  RelativeObjectIdentifier: tl,
7581
7581
  Repeated: rs,
7582
7582
  Sequence: Pt,
7583
7583
  Set: Rt,
7584
7584
  TIME: ol,
7585
- TeletexString: Xs,
7585
+ TeletexString: Qs,
7586
7586
  TimeOfDay: rl,
7587
7587
  UTCTime: ui,
7588
- UniversalString: Js,
7588
+ UniversalString: Zs,
7589
7589
  Utf8String: Dt,
7590
7590
  ValueBlock: qe,
7591
- VideotexString: Qs,
7592
- ViewWriter: Ds,
7591
+ VideotexString: eo,
7592
+ ViewWriter: Fs,
7593
7593
  VisibleString: li,
7594
7594
  compareSchema: ln,
7595
7595
  fromBER: Hn,
@@ -7603,7 +7603,7 @@ var b;
7603
7603
  (function(t) {
7604
7604
  t[t.Any = 1] = "Any", t[t.Boolean = 2] = "Boolean", t[t.OctetString = 3] = "OctetString", t[t.BitString = 4] = "BitString", t[t.Integer = 5] = "Integer", t[t.Enumerated = 6] = "Enumerated", t[t.ObjectIdentifier = 7] = "ObjectIdentifier", t[t.Utf8String = 8] = "Utf8String", t[t.BmpString = 9] = "BmpString", t[t.UniversalString = 10] = "UniversalString", t[t.NumericString = 11] = "NumericString", t[t.PrintableString = 12] = "PrintableString", t[t.TeletexString = 13] = "TeletexString", t[t.VideotexString = 14] = "VideotexString", t[t.IA5String = 15] = "IA5String", t[t.GraphicString = 16] = "GraphicString", t[t.VisibleString = 17] = "VisibleString", t[t.GeneralString = 18] = "GeneralString", t[t.CharacterString = 19] = "CharacterString", t[t.UTCTime = 20] = "UTCTime", t[t.GeneralizedTime = 21] = "GeneralizedTime", t[t.DATE = 22] = "DATE", t[t.TimeOfDay = 23] = "TimeOfDay", t[t.DateTime = 24] = "DateTime", t[t.Duration = 25] = "Duration", t[t.TIME = 26] = "TIME", t[t.Null = 27] = "Null";
7605
7605
  })(b || (b = {}));
7606
- class so {
7606
+ class oo {
7607
7607
  constructor(e, n = 0) {
7608
7608
  if (this.unusedBits = 0, this.value = new ArrayBuffer(0), e)
7609
7609
  if (typeof e == "number")
@@ -7680,7 +7680,7 @@ const N_ = {
7680
7680
  toASN: (t) => new St({ value: +t })
7681
7681
  }, j_ = {
7682
7682
  fromASN: (t) => t.valueBlock.valueDec,
7683
- toASN: (t) => new Ks({ value: t })
7683
+ toASN: (t) => new Ws({ value: t })
7684
7684
  }, ye = {
7685
7685
  fromASN: (t) => t.valueBlock.valueHexView,
7686
7686
  toASN: (t) => new St({ valueHex: t })
@@ -7689,10 +7689,10 @@ const N_ = {
7689
7689
  toASN: (t) => new fn({ valueHex: t })
7690
7690
  }, B_ = {
7691
7691
  fromASN: (t) => t.valueBlock.toString(),
7692
- toASN: (t) => new Ws({ value: t })
7692
+ toASN: (t) => new Gs({ value: t })
7693
7693
  }, T_ = {
7694
7694
  fromASN: (t) => t.valueBlock.value,
7695
- toASN: (t) => new Hs({ value: t })
7695
+ toASN: (t) => new Ks({ value: t })
7696
7696
  }, is = {
7697
7697
  fromASN: (t) => t.valueBlock.valueHexView,
7698
7698
  toASN: (t) => new pn({ valueHex: t })
@@ -7706,12 +7706,12 @@ function ot(t) {
7706
7706
  toASN: (e) => new t({ value: e })
7707
7707
  };
7708
7708
  }
7709
- const sh = ot(Dt), R_ = ot(Gs), L_ = ot(Js), U_ = ot(Zs), V_ = ot(Ys), M_ = ot(Xs), q_ = ot(Qs), z_ = ot(eo), D_ = ot(to), F_ = ot(li), H_ = ot(no), K_ = ot(ro), W_ = {
7709
+ const sh = ot(Dt), R_ = ot(Js), L_ = ot(Zs), U_ = ot(Ys), V_ = ot(Xs), M_ = ot(Qs), q_ = ot(eo), z_ = ot(to), D_ = ot(no), F_ = ot(li), H_ = ot(ro), K_ = ot(io), W_ = {
7710
7710
  fromASN: (t) => t.toDate(),
7711
7711
  toASN: (t) => new ui({ valueDate: t })
7712
7712
  }, G_ = {
7713
7713
  fromASN: (t) => t.toDate(),
7714
- toASN: (t) => new io({ valueDate: t })
7714
+ toASN: (t) => new so({ valueDate: t })
7715
7715
  }, J_ = {
7716
7716
  fromASN: () => null,
7717
7717
  toASN: () => new wn()
@@ -8658,7 +8658,7 @@ class Mu {
8658
8658
  return new Uint8Array(n.toByteArray()).buffer;
8659
8659
  }
8660
8660
  }
8661
- var Sa, Aa, Ea;
8661
+ var Aa, Ea, Ia;
8662
8662
  let Pe = class {
8663
8663
  constructor(e = {}) {
8664
8664
  Object.assign(this, e);
@@ -8702,39 +8702,39 @@ d([
8702
8702
  Zn = d([
8703
8703
  R({ type: P.Choice })
8704
8704
  ], Zn);
8705
- class oo {
8705
+ class ao {
8706
8706
  constructor(e = {}) {
8707
8707
  this.type = "", this.value = new Zn(), Object.assign(this, e);
8708
8708
  }
8709
8709
  }
8710
8710
  d([
8711
8711
  g({ type: b.ObjectIdentifier })
8712
- ], oo.prototype, "type", void 0);
8712
+ ], ao.prototype, "type", void 0);
8713
8713
  d([
8714
8714
  g({ type: Zn })
8715
- ], oo.prototype, "value", void 0);
8716
- let Yn = Sa = class extends he {
8715
+ ], ao.prototype, "value", void 0);
8716
+ let Yn = Aa = class extends he {
8717
8717
  constructor(e) {
8718
- super(e), Object.setPrototypeOf(this, Sa.prototype);
8718
+ super(e), Object.setPrototypeOf(this, Aa.prototype);
8719
8719
  }
8720
8720
  };
8721
- Yn = Sa = d([
8722
- R({ type: P.Set, itemType: oo })
8721
+ Yn = Aa = d([
8722
+ R({ type: P.Set, itemType: ao })
8723
8723
  ], Yn);
8724
- let Ia = Aa = class extends he {
8724
+ let Ca = Ea = class extends he {
8725
8725
  constructor(e) {
8726
- super(e), Object.setPrototypeOf(this, Aa.prototype);
8726
+ super(e), Object.setPrototypeOf(this, Ea.prototype);
8727
8727
  }
8728
8728
  };
8729
- Ia = Aa = d([
8729
+ Ca = Ea = d([
8730
8730
  R({ type: P.Sequence, itemType: Yn })
8731
- ], Ia);
8732
- let Se = Ea = class extends Ia {
8731
+ ], Ca);
8732
+ let Se = Ia = class extends Ca {
8733
8733
  constructor(e) {
8734
- super(e), Object.setPrototypeOf(this, Ea.prototype);
8734
+ super(e), Object.setPrototypeOf(this, Ia.prototype);
8735
8735
  }
8736
8736
  };
8737
- Se = Ea = d([
8737
+ Se = Ia = d([
8738
8738
  R({ type: P.Sequence })
8739
8739
  ], Se);
8740
8740
  const Q_ = {
@@ -8798,9 +8798,9 @@ d([
8798
8798
  ie = d([
8799
8799
  R({ type: P.Choice })
8800
8800
  ], ie);
8801
- const dl = "1.3.6.1.5.5.7", e0 = `${dl}.1`, dr = `${dl}.3`, ao = `${dl}.48`, qu = `${ao}.1`, zu = `${ao}.2`, Du = `${ao}.3`, Fu = `${ao}.5`, en = "2.5.29";
8802
- var Ca;
8803
- const Na = `${e0}.1`;
8801
+ const dl = "1.3.6.1.5.5.7", e0 = `${dl}.1`, dr = `${dl}.3`, co = `${dl}.48`, qu = `${co}.1`, zu = `${co}.2`, Du = `${co}.3`, Fu = `${co}.5`, en = "2.5.29";
8802
+ var Na;
8803
+ const $a = `${e0}.1`;
8804
8804
  class di {
8805
8805
  constructor(e = {}) {
8806
8806
  this.accessMethod = "", this.accessLocation = new ie(), Object.assign(this, e);
@@ -8812,15 +8812,15 @@ d([
8812
8812
  d([
8813
8813
  g({ type: ie })
8814
8814
  ], di.prototype, "accessLocation", void 0);
8815
- let Fn = Ca = class extends he {
8815
+ let Fn = Na = class extends he {
8816
8816
  constructor(e) {
8817
- super(e), Object.setPrototypeOf(this, Ca.prototype);
8817
+ super(e), Object.setPrototypeOf(this, Na.prototype);
8818
8818
  }
8819
8819
  };
8820
- Fn = Ca = d([
8820
+ Fn = Na = d([
8821
8821
  R({ type: P.Sequence, itemType: di })
8822
8822
  ], Fn);
8823
- const $a = `${en}.35`;
8823
+ const ja = `${en}.35`;
8824
8824
  class pl extends ce {
8825
8825
  }
8826
8826
  class un {
@@ -8855,25 +8855,25 @@ d([
8855
8855
  d([
8856
8856
  g({ type: b.Integer, optional: !0 })
8857
8857
  ], ss.prototype, "pathLenConstraint", void 0);
8858
- var ja;
8859
- let Me = ja = class extends he {
8858
+ var Oa;
8859
+ let Me = Oa = class extends he {
8860
8860
  constructor(e) {
8861
- super(e), Object.setPrototypeOf(this, ja.prototype);
8861
+ super(e), Object.setPrototypeOf(this, Oa.prototype);
8862
8862
  }
8863
8863
  };
8864
- Me = ja = d([
8864
+ Me = Oa = d([
8865
8865
  R({ type: P.Sequence, itemType: ie })
8866
8866
  ], Me);
8867
- var Oa;
8868
- let Hu = Oa = class extends Me {
8867
+ var Ba;
8868
+ let Hu = Ba = class extends Me {
8869
8869
  constructor(e) {
8870
- super(e), Object.setPrototypeOf(this, Oa.prototype);
8870
+ super(e), Object.setPrototypeOf(this, Ba.prototype);
8871
8871
  }
8872
8872
  };
8873
- Hu = Oa = d([
8873
+ Hu = Ba = d([
8874
8874
  R({ type: P.Sequence })
8875
8875
  ], Hu);
8876
- var Ba;
8876
+ var Ta;
8877
8877
  const lh = `${en}.32`;
8878
8878
  let Lt = class {
8879
8879
  constructor(e = {}) {
@@ -8945,24 +8945,24 @@ d([
8945
8945
  d([
8946
8946
  g({ type: b.Any })
8947
8947
  ], gl.prototype, "qualifier", void 0);
8948
- class co {
8948
+ class lo {
8949
8949
  constructor(e = {}) {
8950
8950
  this.policyIdentifier = "", Object.assign(this, e);
8951
8951
  }
8952
8952
  }
8953
8953
  d([
8954
8954
  g({ type: b.ObjectIdentifier })
8955
- ], co.prototype, "policyIdentifier", void 0);
8955
+ ], lo.prototype, "policyIdentifier", void 0);
8956
8956
  d([
8957
8957
  g({ type: gl, repeated: "sequence", optional: !0 })
8958
- ], co.prototype, "policyQualifiers", void 0);
8959
- let as = Ba = class extends he {
8958
+ ], lo.prototype, "policyQualifiers", void 0);
8959
+ let as = Ta = class extends he {
8960
8960
  constructor(e) {
8961
- super(e), Object.setPrototypeOf(this, Ba.prototype);
8961
+ super(e), Object.setPrototypeOf(this, Ta.prototype);
8962
8962
  }
8963
8963
  };
8964
- as = Ba = d([
8965
- R({ type: P.Sequence, itemType: co })
8964
+ as = Ta = d([
8965
+ R({ type: P.Sequence, itemType: lo })
8966
8966
  ], as);
8967
8967
  let cs = class {
8968
8968
  constructor(e = 0) {
@@ -8980,13 +8980,13 @@ let Ku = class extends cs {
8980
8980
  Ku = d([
8981
8981
  R({ type: P.Choice })
8982
8982
  ], Ku);
8983
- var Ta;
8984
- const Pa = `${en}.31`;
8983
+ var Pa;
8984
+ const Ra = `${en}.31`;
8985
8985
  var dt;
8986
8986
  (function(t) {
8987
8987
  t[t.unused = 1] = "unused", t[t.keyCompromise = 2] = "keyCompromise", t[t.cACompromise = 4] = "cACompromise", t[t.affiliationChanged = 8] = "affiliationChanged", t[t.superseded = 16] = "superseded", t[t.cessationOfOperation = 32] = "cessationOfOperation", t[t.certificateHold = 64] = "certificateHold", t[t.privilegeWithdrawn = 128] = "privilegeWithdrawn", t[t.aACompromise = 256] = "aACompromise";
8988
8988
  })(dt || (dt = {}));
8989
- class uh extends so {
8989
+ class uh extends oo {
8990
8990
  toJSON() {
8991
8991
  const e = [], n = this.toNumber();
8992
8992
  return n & dt.aACompromise && e.push("aACompromise"), n & dt.affiliationChanged && e.push("affiliationChanged"), n & dt.cACompromise && e.push("cACompromise"), n & dt.certificateHold && e.push("certificateHold"), n & dt.cessationOfOperation && e.push("cessationOfOperation"), n & dt.keyCompromise && e.push("keyCompromise"), n & dt.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & dt.superseded && e.push("superseded"), n & dt.unused && e.push("unused"), e;
@@ -9023,21 +9023,21 @@ d([
9023
9023
  d([
9024
9024
  g({ type: ie, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
9025
9025
  ], pr.prototype, "cRLIssuer", void 0);
9026
- let Kn = Ta = class extends he {
9026
+ let Kn = Pa = class extends he {
9027
9027
  constructor(e) {
9028
- super(e), Object.setPrototypeOf(this, Ta.prototype);
9028
+ super(e), Object.setPrototypeOf(this, Pa.prototype);
9029
9029
  }
9030
9030
  };
9031
- Kn = Ta = d([
9031
+ Kn = Pa = d([
9032
9032
  R({ type: P.Sequence, itemType: pr })
9033
9033
  ], Kn);
9034
- var Ra;
9035
- let Wu = Ra = class extends Kn {
9034
+ var La;
9035
+ let Wu = La = class extends Kn {
9036
9036
  constructor(e) {
9037
- super(e), Object.setPrototypeOf(this, Ra.prototype);
9037
+ super(e), Object.setPrototypeOf(this, La.prototype);
9038
9038
  }
9039
9039
  };
9040
- Wu = Ra = d([
9040
+ Wu = La = d([
9041
9041
  R({ type: P.Sequence, itemType: pr })
9042
9042
  ], Wu);
9043
9043
  class Le {
@@ -9068,7 +9068,7 @@ var Tr;
9068
9068
  (function(t) {
9069
9069
  t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
9070
9070
  })(Tr || (Tr = {}));
9071
- let La = class {
9071
+ let Ua = class {
9072
9072
  constructor(e = Tr.unspecified) {
9073
9073
  this.reason = Tr.unspecified, this.reason = e;
9074
9074
  }
@@ -9081,50 +9081,50 @@ let La = class {
9081
9081
  };
9082
9082
  d([
9083
9083
  g({ type: b.Enumerated })
9084
- ], La.prototype, "reason", void 0);
9085
- La = d([
9084
+ ], Ua.prototype, "reason", void 0);
9085
+ Ua = d([
9086
9086
  R({ type: P.Choice })
9087
- ], La);
9088
- var Ua;
9087
+ ], Ua);
9088
+ var Va;
9089
9089
  const dh = `${en}.37`;
9090
- let ls = Ua = class extends he {
9090
+ let ls = Va = class extends he {
9091
9091
  constructor(e) {
9092
- super(e), Object.setPrototypeOf(this, Ua.prototype);
9092
+ super(e), Object.setPrototypeOf(this, Va.prototype);
9093
9093
  }
9094
9094
  };
9095
- ls = Ua = d([
9095
+ ls = Va = d([
9096
9096
  R({ type: P.Sequence, itemType: b.ObjectIdentifier })
9097
9097
  ], ls);
9098
9098
  const t0 = `${dr}.1`, n0 = `${dr}.2`, r0 = `${dr}.3`, i0 = `${dr}.4`, s0 = `${dr}.8`, o0 = `${dr}.9`;
9099
- let Va = class {
9099
+ let Ma = class {
9100
9100
  constructor(e = new ArrayBuffer(0)) {
9101
9101
  this.value = e;
9102
9102
  }
9103
9103
  };
9104
9104
  d([
9105
9105
  g({ type: b.Integer, converter: ye })
9106
- ], Va.prototype, "value", void 0);
9107
- Va = d([
9106
+ ], Ma.prototype, "value", void 0);
9107
+ Ma = d([
9108
9108
  R({ type: P.Choice })
9109
- ], Va);
9110
- let Ma = class {
9109
+ ], Ma);
9110
+ let qa = class {
9111
9111
  constructor(e) {
9112
9112
  this.value = /* @__PURE__ */ new Date(), e && (this.value = e);
9113
9113
  }
9114
9114
  };
9115
9115
  d([
9116
9116
  g({ type: b.GeneralizedTime })
9117
- ], Ma.prototype, "value", void 0);
9118
- Ma = d([
9117
+ ], qa.prototype, "value", void 0);
9118
+ qa = d([
9119
9119
  R({ type: P.Choice })
9120
- ], Ma);
9121
- var qa;
9122
- let Gu = qa = class extends Me {
9120
+ ], qa);
9121
+ var za;
9122
+ let Gu = za = class extends Me {
9123
9123
  constructor(e) {
9124
- super(e), Object.setPrototypeOf(this, qa.prototype);
9124
+ super(e), Object.setPrototypeOf(this, za.prototype);
9125
9125
  }
9126
9126
  };
9127
- Gu = qa = d([
9127
+ Gu = za = d([
9128
9128
  R({ type: P.Sequence })
9129
9129
  ], Gu);
9130
9130
  const ph = `${en}.15`;
@@ -9132,7 +9132,7 @@ var pt;
9132
9132
  (function(t) {
9133
9133
  t[t.digitalSignature = 1] = "digitalSignature", t[t.nonRepudiation = 2] = "nonRepudiation", t[t.keyEncipherment = 4] = "keyEncipherment", t[t.dataEncipherment = 8] = "dataEncipherment", t[t.keyAgreement = 16] = "keyAgreement", t[t.keyCertSign = 32] = "keyCertSign", t[t.cRLSign = 64] = "cRLSign", t[t.encipherOnly = 128] = "encipherOnly", t[t.decipherOnly = 256] = "decipherOnly";
9134
9134
  })(pt || (pt = {}));
9135
- class Go extends so {
9135
+ class Jo extends oo {
9136
9136
  toJSON() {
9137
9137
  const e = this.toNumber(), n = [];
9138
9138
  return e & pt.cRLSign && n.push("crlSign"), e & pt.dataEncipherment && n.push("dataEncipherment"), e & pt.decipherOnly && n.push("decipherOnly"), e & pt.digitalSignature && n.push("digitalSignature"), e & pt.encipherOnly && n.push("encipherOnly"), e & pt.keyAgreement && n.push("keyAgreement"), e & pt.keyCertSign && n.push("keyCertSign"), e & pt.keyEncipherment && n.push("keyEncipherment"), e & pt.nonRepudiation && n.push("nonRepudiation"), n;
@@ -9141,28 +9141,28 @@ class Go extends so {
9141
9141
  return `[${this.toJSON().join(", ")}]`;
9142
9142
  }
9143
9143
  }
9144
- var za;
9145
- class lo {
9144
+ var Da;
9145
+ class uo {
9146
9146
  constructor(e = {}) {
9147
9147
  this.base = new ie(), this.minimum = 0, Object.assign(this, e);
9148
9148
  }
9149
9149
  }
9150
9150
  d([
9151
9151
  g({ type: ie })
9152
- ], lo.prototype, "base", void 0);
9152
+ ], uo.prototype, "base", void 0);
9153
9153
  d([
9154
9154
  g({ type: b.Integer, context: 0, defaultValue: 0, implicit: !0 })
9155
- ], lo.prototype, "minimum", void 0);
9155
+ ], uo.prototype, "minimum", void 0);
9156
9156
  d([
9157
9157
  g({ type: b.Integer, context: 1, optional: !0, implicit: !0 })
9158
- ], lo.prototype, "maximum", void 0);
9159
- let us = za = class extends he {
9158
+ ], uo.prototype, "maximum", void 0);
9159
+ let us = Da = class extends he {
9160
9160
  constructor(e) {
9161
- super(e), Object.setPrototypeOf(this, za.prototype);
9161
+ super(e), Object.setPrototypeOf(this, Da.prototype);
9162
9162
  }
9163
9163
  };
9164
- us = za = d([
9165
- R({ type: P.Sequence, itemType: lo })
9164
+ us = Da = d([
9165
+ R({ type: P.Sequence, itemType: uo })
9166
9166
  ], us);
9167
9167
  class fh {
9168
9168
  constructor(e = {}) {
@@ -9198,7 +9198,7 @@ d([
9198
9198
  converter: ye
9199
9199
  })
9200
9200
  ], hh.prototype, "inhibitPolicyMapping", void 0);
9201
- var Da;
9201
+ var Fa;
9202
9202
  class ml {
9203
9203
  constructor(e = {}) {
9204
9204
  this.issuerDomainPolicy = "", this.subjectDomainPolicy = "", Object.assign(this, e);
@@ -9210,24 +9210,24 @@ d([
9210
9210
  d([
9211
9211
  g({ type: b.ObjectIdentifier })
9212
9212
  ], ml.prototype, "subjectDomainPolicy", void 0);
9213
- let Ju = Da = class extends he {
9213
+ let Ju = Fa = class extends he {
9214
9214
  constructor(e) {
9215
- super(e), Object.setPrototypeOf(this, Da.prototype);
9215
+ super(e), Object.setPrototypeOf(this, Fa.prototype);
9216
9216
  }
9217
9217
  };
9218
- Ju = Da = d([
9218
+ Ju = Fa = d([
9219
9219
  R({ type: P.Sequence, itemType: ml })
9220
9220
  ], Ju);
9221
- var Fa;
9221
+ var Ha;
9222
9222
  const gh = `${en}.17`;
9223
- let Ha = Fa = class extends Me {
9223
+ let Ka = Ha = class extends Me {
9224
9224
  constructor(e) {
9225
- super(e), Object.setPrototypeOf(this, Fa.prototype);
9225
+ super(e), Object.setPrototypeOf(this, Ha.prototype);
9226
9226
  }
9227
9227
  };
9228
- Ha = Fa = d([
9228
+ Ka = Ha = d([
9229
9229
  R({ type: P.Sequence })
9230
- ], Ha);
9230
+ ], Ka);
9231
9231
  let Ut = class {
9232
9232
  constructor(e = {}) {
9233
9233
  this.type = "", this.values = [], Object.assign(this, e);
@@ -9239,13 +9239,13 @@ d([
9239
9239
  d([
9240
9240
  g({ type: b.Any, repeated: "set" })
9241
9241
  ], Ut.prototype, "values", void 0);
9242
- var Ka;
9243
- let Zu = Ka = class extends he {
9242
+ var Wa;
9243
+ let Zu = Wa = class extends he {
9244
9244
  constructor(e) {
9245
- super(e), Object.setPrototypeOf(this, Ka.prototype);
9245
+ super(e), Object.setPrototypeOf(this, Wa.prototype);
9246
9246
  }
9247
9247
  };
9248
- Zu = Ka = d([
9248
+ Zu = Wa = d([
9249
9249
  R({ type: P.Sequence, itemType: Ut })
9250
9250
  ], Zu);
9251
9251
  const mh = `${en}.14`;
@@ -9266,7 +9266,7 @@ var Pr;
9266
9266
  (function(t) {
9267
9267
  t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
9268
9268
  })(Pr || (Pr = {}));
9269
- class yh extends so {
9269
+ class yh extends oo {
9270
9270
  toJSON() {
9271
9271
  const e = [], n = this.toNumber();
9272
9272
  return n & Pr.pKIXCertificate && e.push("pKIXCertificate"), n & Pr.newExtensions && e.push("newExtensions"), n & Pr.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
@@ -9286,13 +9286,13 @@ d([
9286
9286
  d([
9287
9287
  g({ type: yh })
9288
9288
  ], vh.prototype, "entrustInfoFlags", void 0);
9289
- var Wa;
9290
- let Yu = Wa = class extends he {
9289
+ var Ga;
9290
+ let Yu = Ga = class extends he {
9291
9291
  constructor(e) {
9292
- super(e), Object.setPrototypeOf(this, Wa.prototype);
9292
+ super(e), Object.setPrototypeOf(this, Ga.prototype);
9293
9293
  }
9294
9294
  };
9295
- Yu = Wa = d([
9295
+ Yu = Ga = d([
9296
9296
  R({ type: P.Sequence, itemType: di })
9297
9297
  ], Yu);
9298
9298
  class K {
@@ -9365,7 +9365,7 @@ d([
9365
9365
  d([
9366
9366
  g({ type: Be })
9367
9367
  ], pi.prototype, "notAfter", void 0);
9368
- var Ga;
9368
+ var Ja;
9369
9369
  let st = class wh {
9370
9370
  constructor(e = {}) {
9371
9371
  this.extnID = "", this.critical = wh.CRITICAL, this.extnValue = new ce(), Object.assign(this, e);
@@ -9384,12 +9384,12 @@ d([
9384
9384
  d([
9385
9385
  g({ type: ce })
9386
9386
  ], st.prototype, "extnValue", void 0);
9387
- let Zt = Ga = class extends he {
9387
+ let Zt = Ja = class extends he {
9388
9388
  constructor(e) {
9389
- super(e), Object.setPrototypeOf(this, Ga.prototype);
9389
+ super(e), Object.setPrototypeOf(this, Ja.prototype);
9390
9390
  }
9391
9391
  };
9392
- Zt = Ga = d([
9392
+ Zt = Ja = d([
9393
9393
  R({ type: P.Sequence, itemType: st })
9394
9394
  ], Zt);
9395
9395
  var xn;
@@ -9457,20 +9457,20 @@ d([
9457
9457
  d([
9458
9458
  g({ type: b.BitString })
9459
9459
  ], Sn.prototype, "signatureValue", void 0);
9460
- class uo {
9460
+ class po {
9461
9461
  constructor(e = {}) {
9462
9462
  this.userCertificate = new ArrayBuffer(0), this.revocationDate = new Be(), Object.assign(this, e);
9463
9463
  }
9464
9464
  }
9465
9465
  d([
9466
9466
  g({ type: b.Integer, converter: ye })
9467
- ], uo.prototype, "userCertificate", void 0);
9467
+ ], po.prototype, "userCertificate", void 0);
9468
9468
  d([
9469
9469
  g({ type: Be })
9470
- ], uo.prototype, "revocationDate", void 0);
9470
+ ], po.prototype, "revocationDate", void 0);
9471
9471
  d([
9472
9472
  g({ type: st, optional: !0, repeated: "sequence" })
9473
- ], uo.prototype, "crlEntryExtensions", void 0);
9473
+ ], po.prototype, "crlEntryExtensions", void 0);
9474
9474
  class Ft {
9475
9475
  constructor(e = {}) {
9476
9476
  this.signature = new K(), this.issuer = new Se(), this.thisUpdate = new Be(), Object.assign(this, e);
@@ -9492,7 +9492,7 @@ d([
9492
9492
  g({ type: Be, optional: !0 })
9493
9493
  ], Ft.prototype, "nextUpdate", void 0);
9494
9494
  d([
9495
- g({ type: uo, repeated: "sequence", optional: !0 })
9495
+ g({ type: po, repeated: "sequence", optional: !0 })
9496
9496
  ], Ft.prototype, "revokedCertificates", void 0);
9497
9497
  d([
9498
9498
  g({ type: st, optional: !0, context: 0, repeated: "sequence" })
@@ -9565,11 +9565,11 @@ let Xu = class extends K {
9565
9565
  Xu = d([
9566
9566
  R({ type: P.Sequence })
9567
9567
  ], Xu);
9568
- let Ja = class extends K {
9568
+ let Za = class extends K {
9569
9569
  };
9570
- Ja = d([
9570
+ Za = d([
9571
9571
  R({ type: P.Sequence })
9572
- ], Ja);
9572
+ ], Za);
9573
9573
  let hr = class {
9574
9574
  constructor(e = {}) {
9575
9575
  this.attrType = "", this.attrValues = [], Object.assign(this, e);
@@ -9581,7 +9581,7 @@ d([
9581
9581
  d([
9582
9582
  g({ type: b.Any, repeated: "set" })
9583
9583
  ], hr.prototype, "attrValues", void 0);
9584
- var Za;
9584
+ var Ya;
9585
9585
  class Nt {
9586
9586
  constructor(e = {}) {
9587
9587
  this.version = Vt.v0, this.sid = new Xn(), this.digestAlgorithm = new Dr(), this.signatureAlgorithm = new ds(), this.signature = new ce(), Object.assign(this, e);
@@ -9608,12 +9608,12 @@ d([
9608
9608
  d([
9609
9609
  g({ type: hr, repeated: "set", context: 1, implicit: !0, optional: !0 })
9610
9610
  ], Nt.prototype, "unsignedAttrs", void 0);
9611
- let fs = Za = class extends he {
9611
+ let fs = Ya = class extends he {
9612
9612
  constructor(e) {
9613
- super(e), Object.setPrototypeOf(this, Za.prototype);
9613
+ super(e), Object.setPrototypeOf(this, Ya.prototype);
9614
9614
  }
9615
9615
  };
9616
- fs = Za = d([
9616
+ fs = Ya = d([
9617
9617
  R({ type: P.Set, itemType: Nt })
9618
9618
  ], fs);
9619
9619
  let Qu = class extends Be {
@@ -9640,32 +9640,32 @@ d([
9640
9640
  d([
9641
9641
  g({ type: Ut, repeated: "sequence" })
9642
9642
  ], yl.prototype, "attrs", void 0);
9643
- var Ya;
9644
- let hs = Ya = class extends he {
9643
+ var Xa;
9644
+ let hs = Xa = class extends he {
9645
9645
  constructor(e) {
9646
- super(e), Object.setPrototypeOf(this, Ya.prototype);
9646
+ super(e), Object.setPrototypeOf(this, Xa.prototype);
9647
9647
  }
9648
9648
  };
9649
- hs = Ya = d([
9649
+ hs = Xa = d([
9650
9650
  R({ type: P.Sequence, itemType: b.ObjectIdentifier })
9651
9651
  ], hs);
9652
- class po {
9652
+ class fo {
9653
9653
  constructor(e = {}) {
9654
9654
  this.permitUnSpecified = !0, Object.assign(this, e);
9655
9655
  }
9656
9656
  }
9657
9657
  d([
9658
9658
  g({ type: b.Integer, optional: !0 })
9659
- ], po.prototype, "pathLenConstraint", void 0);
9659
+ ], fo.prototype, "pathLenConstraint", void 0);
9660
9660
  d([
9661
9661
  g({ type: hs, implicit: !0, context: 0, optional: !0 })
9662
- ], po.prototype, "permittedAttrs", void 0);
9662
+ ], fo.prototype, "permittedAttrs", void 0);
9663
9663
  d([
9664
9664
  g({ type: hs, implicit: !0, context: 1, optional: !0 })
9665
- ], po.prototype, "excludedAttrs", void 0);
9665
+ ], fo.prototype, "excludedAttrs", void 0);
9666
9666
  d([
9667
9667
  g({ type: b.Boolean, defaultValue: !0 })
9668
- ], po.prototype, "permitUnSpecified", void 0);
9668
+ ], fo.prototype, "permitUnSpecified", void 0);
9669
9669
  class Bn {
9670
9670
  constructor(e = {}) {
9671
9671
  this.issuer = new Me(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
@@ -9680,13 +9680,13 @@ d([
9680
9680
  d([
9681
9681
  g({ type: b.BitString, optional: !0 })
9682
9682
  ], Bn.prototype, "issuerUID", void 0);
9683
- var Xa;
9683
+ var Qa;
9684
9684
  (function(t) {
9685
9685
  t[t.publicKey = 0] = "publicKey", t[t.publicKeyCert = 1] = "publicKeyCert", t[t.otherObjectTypes = 2] = "otherObjectTypes";
9686
- })(Xa || (Xa = {}));
9686
+ })(Qa || (Qa = {}));
9687
9687
  class Tn {
9688
9688
  constructor(e = {}) {
9689
- this.digestedObjectType = Xa.publicKey, this.digestAlgorithm = new K(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
9689
+ this.digestedObjectType = Qa.publicKey, this.digestAlgorithm = new K(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
9690
9690
  }
9691
9691
  }
9692
9692
  d([
@@ -9701,20 +9701,20 @@ d([
9701
9701
  d([
9702
9702
  g({ type: b.BitString })
9703
9703
  ], Tn.prototype, "objectDigest", void 0);
9704
- class fo {
9704
+ class ho {
9705
9705
  constructor(e = {}) {
9706
9706
  Object.assign(this, e);
9707
9707
  }
9708
9708
  }
9709
9709
  d([
9710
9710
  g({ type: Me, optional: !0 })
9711
- ], fo.prototype, "issuerName", void 0);
9711
+ ], ho.prototype, "issuerName", void 0);
9712
9712
  d([
9713
9713
  g({ type: Bn, context: 0, implicit: !0, optional: !0 })
9714
- ], fo.prototype, "baseCertificateID", void 0);
9714
+ ], ho.prototype, "baseCertificateID", void 0);
9715
9715
  d([
9716
9716
  g({ type: Tn, context: 1, implicit: !0, optional: !0 })
9717
- ], fo.prototype, "objectDigestInfo", void 0);
9717
+ ], ho.prototype, "objectDigestInfo", void 0);
9718
9718
  let Qn = class {
9719
9719
  constructor(e = {}) {
9720
9720
  Object.assign(this, e);
@@ -9724,22 +9724,22 @@ d([
9724
9724
  g({ type: ie, repeated: "sequence" })
9725
9725
  ], Qn.prototype, "v1Form", void 0);
9726
9726
  d([
9727
- g({ type: fo, context: 0, implicit: !0 })
9727
+ g({ type: ho, context: 0, implicit: !0 })
9728
9728
  ], Qn.prototype, "v2Form", void 0);
9729
9729
  Qn = d([
9730
9730
  R({ type: P.Choice })
9731
9731
  ], Qn);
9732
- class ho {
9732
+ class go {
9733
9733
  constructor(e = {}) {
9734
9734
  this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, e);
9735
9735
  }
9736
9736
  }
9737
9737
  d([
9738
9738
  g({ type: b.GeneralizedTime })
9739
- ], ho.prototype, "notBeforeTime", void 0);
9739
+ ], go.prototype, "notBeforeTime", void 0);
9740
9740
  d([
9741
9741
  g({ type: b.GeneralizedTime })
9742
- ], ho.prototype, "notAfterTime", void 0);
9742
+ ], go.prototype, "notAfterTime", void 0);
9743
9743
  class fi {
9744
9744
  constructor(e = {}) {
9745
9745
  Object.assign(this, e);
@@ -9754,13 +9754,13 @@ d([
9754
9754
  d([
9755
9755
  g({ type: Tn, implicit: !0, context: 2, optional: !0 })
9756
9756
  ], fi.prototype, "objectDigestInfo", void 0);
9757
- var Qa;
9757
+ var ec;
9758
9758
  (function(t) {
9759
9759
  t[t.v2 = 1] = "v2";
9760
- })(Qa || (Qa = {}));
9760
+ })(ec || (ec = {}));
9761
9761
  class vt {
9762
9762
  constructor(e = {}) {
9763
- this.version = Qa.v2, this.holder = new fi(), this.issuer = new Qn(), this.signature = new K(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new ho(), this.attributes = [], Object.assign(this, e);
9763
+ this.version = ec.v2, this.holder = new fi(), this.issuer = new Qn(), this.signature = new K(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new go(), this.attributes = [], Object.assign(this, e);
9764
9764
  }
9765
9765
  }
9766
9766
  d([
@@ -9779,7 +9779,7 @@ d([
9779
9779
  g({ type: b.Integer, converter: ye })
9780
9780
  ], vt.prototype, "serialNumber", void 0);
9781
9781
  d([
9782
- g({ type: ho })
9782
+ g({ type: go })
9783
9783
  ], vt.prototype, "attrCertValidityPeriod", void 0);
9784
9784
  d([
9785
9785
  g({ type: Ut, repeated: "sequence" })
@@ -9790,25 +9790,25 @@ d([
9790
9790
  d([
9791
9791
  g({ type: Zt, optional: !0 })
9792
9792
  ], vt.prototype, "extensions", void 0);
9793
- class go {
9793
+ class mo {
9794
9794
  constructor(e = {}) {
9795
9795
  this.acinfo = new vt(), this.signatureAlgorithm = new K(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
9796
9796
  }
9797
9797
  }
9798
9798
  d([
9799
9799
  g({ type: vt })
9800
- ], go.prototype, "acinfo", void 0);
9800
+ ], mo.prototype, "acinfo", void 0);
9801
9801
  d([
9802
9802
  g({ type: K })
9803
- ], go.prototype, "signatureAlgorithm", void 0);
9803
+ ], mo.prototype, "signatureAlgorithm", void 0);
9804
9804
  d([
9805
9805
  g({ type: b.BitString })
9806
- ], go.prototype, "signatureValue", void 0);
9806
+ ], mo.prototype, "signatureValue", void 0);
9807
9807
  var gs;
9808
9808
  (function(t) {
9809
9809
  t[t.unmarked = 1] = "unmarked", t[t.unclassified = 2] = "unclassified", t[t.restricted = 4] = "restricted", t[t.confidential = 8] = "confidential", t[t.secret = 16] = "secret", t[t.topSecret = 32] = "topSecret";
9810
9810
  })(gs || (gs = {}));
9811
- class ec extends so {
9811
+ class tc extends oo {
9812
9812
  }
9813
9813
  class vl {
9814
9814
  constructor(e = {}) {
@@ -9823,32 +9823,32 @@ d([
9823
9823
  ], vl.prototype, "value", void 0);
9824
9824
  class wl {
9825
9825
  constructor(e = {}) {
9826
- this.policyId = "", this.classList = new ec(gs.unclassified), Object.assign(this, e);
9826
+ this.policyId = "", this.classList = new tc(gs.unclassified), Object.assign(this, e);
9827
9827
  }
9828
9828
  }
9829
9829
  d([
9830
9830
  g({ type: b.ObjectIdentifier })
9831
9831
  ], wl.prototype, "policyId", void 0);
9832
9832
  d([
9833
- g({ type: ec, defaultValue: new ec(gs.unclassified) })
9833
+ g({ type: tc, defaultValue: new tc(gs.unclassified) })
9834
9834
  ], wl.prototype, "classList", void 0);
9835
9835
  d([
9836
9836
  g({ type: vl, repeated: "set" })
9837
9837
  ], wl.prototype, "securityCategories", void 0);
9838
- class mo {
9838
+ class _o {
9839
9839
  constructor(e = {}) {
9840
9840
  Object.assign(this, e);
9841
9841
  }
9842
9842
  }
9843
9843
  d([
9844
9844
  g({ type: ce })
9845
- ], mo.prototype, "cotets", void 0);
9845
+ ], _o.prototype, "cotets", void 0);
9846
9846
  d([
9847
9847
  g({ type: b.ObjectIdentifier })
9848
- ], mo.prototype, "oid", void 0);
9848
+ ], _o.prototype, "oid", void 0);
9849
9849
  d([
9850
9850
  g({ type: b.Utf8String })
9851
- ], mo.prototype, "string", void 0);
9851
+ ], _o.prototype, "string", void 0);
9852
9852
  class bh {
9853
9853
  constructor(e = {}) {
9854
9854
  this.values = [], Object.assign(this, e);
@@ -9858,23 +9858,23 @@ d([
9858
9858
  g({ type: Me, implicit: !0, context: 0, optional: !0 })
9859
9859
  ], bh.prototype, "policyAuthority", void 0);
9860
9860
  d([
9861
- g({ type: mo, repeated: "sequence" })
9861
+ g({ type: _o, repeated: "sequence" })
9862
9862
  ], bh.prototype, "values", void 0);
9863
- var tc;
9864
- class _o {
9863
+ var nc;
9864
+ class yo {
9865
9865
  constructor(e = {}) {
9866
9866
  this.targetCertificate = new Bn(), Object.assign(this, e);
9867
9867
  }
9868
9868
  }
9869
9869
  d([
9870
9870
  g({ type: Bn })
9871
- ], _o.prototype, "targetCertificate", void 0);
9871
+ ], yo.prototype, "targetCertificate", void 0);
9872
9872
  d([
9873
9873
  g({ type: ie, optional: !0 })
9874
- ], _o.prototype, "targetName", void 0);
9874
+ ], yo.prototype, "targetName", void 0);
9875
9875
  d([
9876
9876
  g({ type: Tn, optional: !0 })
9877
- ], _o.prototype, "certDigestInfo", void 0);
9877
+ ], yo.prototype, "certDigestInfo", void 0);
9878
9878
  let er = class {
9879
9879
  constructor(e = {}) {
9880
9880
  Object.assign(this, e);
@@ -9887,27 +9887,27 @@ d([
9887
9887
  g({ type: ie, context: 1, implicit: !0 })
9888
9888
  ], er.prototype, "targetGroup", void 0);
9889
9889
  d([
9890
- g({ type: _o, context: 2, implicit: !0 })
9890
+ g({ type: yo, context: 2, implicit: !0 })
9891
9891
  ], er.prototype, "targetCert", void 0);
9892
9892
  er = d([
9893
9893
  R({ type: P.Choice })
9894
9894
  ], er);
9895
- let nc = tc = class extends he {
9895
+ let rc = nc = class extends he {
9896
9896
  constructor(e) {
9897
- super(e), Object.setPrototypeOf(this, tc.prototype);
9897
+ super(e), Object.setPrototypeOf(this, nc.prototype);
9898
9898
  }
9899
9899
  };
9900
- nc = tc = d([
9900
+ rc = nc = d([
9901
9901
  R({ type: P.Sequence, itemType: er })
9902
- ], nc);
9903
- var rc;
9904
- let td = rc = class extends he {
9902
+ ], rc);
9903
+ var ic;
9904
+ let td = ic = class extends he {
9905
9905
  constructor(e) {
9906
- super(e), Object.setPrototypeOf(this, rc.prototype);
9906
+ super(e), Object.setPrototypeOf(this, ic.prototype);
9907
9907
  }
9908
9908
  };
9909
- td = rc = d([
9910
- R({ type: P.Sequence, itemType: nc })
9909
+ td = ic = d([
9910
+ R({ type: P.Sequence, itemType: rc })
9911
9911
  ], td);
9912
9912
  class kh {
9913
9913
  constructor(e = {}) {
@@ -9934,7 +9934,7 @@ d([
9934
9934
  d([
9935
9935
  g({ type: ce, optional: !0 })
9936
9936
  ], bl.prototype, "authInfo", void 0);
9937
- var ic;
9937
+ var sc;
9938
9938
  class kl {
9939
9939
  constructor(e = {}) {
9940
9940
  this.otherCertFormat = "", this.otherCert = new ArrayBuffer(0), Object.assign(this, e);
@@ -9955,7 +9955,7 @@ d([
9955
9955
  g({ type: Sn })
9956
9956
  ], tr.prototype, "certificate", void 0);
9957
9957
  d([
9958
- g({ type: go, context: 2, implicit: !0 })
9958
+ g({ type: mo, context: 2, implicit: !0 })
9959
9959
  ], tr.prototype, "v2AttrCert", void 0);
9960
9960
  d([
9961
9961
  g({ type: kl, context: 3, implicit: !0 })
@@ -9963,12 +9963,12 @@ d([
9963
9963
  tr = d([
9964
9964
  R({ type: P.Choice })
9965
9965
  ], tr);
9966
- let ms = ic = class extends he {
9966
+ let ms = sc = class extends he {
9967
9967
  constructor(e) {
9968
- super(e), Object.setPrototypeOf(this, ic.prototype);
9968
+ super(e), Object.setPrototypeOf(this, sc.prototype);
9969
9969
  }
9970
9970
  };
9971
- ms = ic = d([
9971
+ ms = sc = d([
9972
9972
  R({ type: P.Set, itemType: tr })
9973
9973
  ], ms);
9974
9974
  class gr {
@@ -9996,17 +9996,17 @@ d([
9996
9996
  Fr = d([
9997
9997
  R({ type: P.Choice })
9998
9998
  ], Fr);
9999
- class yo {
9999
+ class vo {
10000
10000
  constructor(e = {}) {
10001
10001
  this.eContentType = "", Object.assign(this, e);
10002
10002
  }
10003
10003
  }
10004
10004
  d([
10005
10005
  g({ type: b.ObjectIdentifier })
10006
- ], yo.prototype, "eContentType", void 0);
10006
+ ], vo.prototype, "eContentType", void 0);
10007
10007
  d([
10008
10008
  g({ type: Fr, context: 0, optional: !0 })
10009
- ], yo.prototype, "eContent", void 0);
10009
+ ], vo.prototype, "eContent", void 0);
10010
10010
  let Hr = class {
10011
10011
  constructor(e = {}) {
10012
10012
  Object.assign(this, e);
@@ -10035,39 +10035,39 @@ d([
10035
10035
  d([
10036
10036
  g({ type: Hr, optional: !0 })
10037
10037
  ], hi.prototype, "encryptedContent", void 0);
10038
- class vo {
10038
+ class wo {
10039
10039
  constructor(e = {}) {
10040
10040
  this.keyAttrId = "", Object.assign(this, e);
10041
10041
  }
10042
10042
  }
10043
10043
  d([
10044
10044
  g({ type: b.ObjectIdentifier })
10045
- ], vo.prototype, "keyAttrId", void 0);
10045
+ ], wo.prototype, "keyAttrId", void 0);
10046
10046
  d([
10047
10047
  g({ type: b.Any, optional: !0 })
10048
- ], vo.prototype, "keyAttr", void 0);
10049
- var sc;
10050
- class wo {
10048
+ ], wo.prototype, "keyAttr", void 0);
10049
+ var oc;
10050
+ class bo {
10051
10051
  constructor(e = {}) {
10052
10052
  this.subjectKeyIdentifier = new Gt(), Object.assign(this, e);
10053
10053
  }
10054
10054
  }
10055
10055
  d([
10056
10056
  g({ type: Gt })
10057
- ], wo.prototype, "subjectKeyIdentifier", void 0);
10057
+ ], bo.prototype, "subjectKeyIdentifier", void 0);
10058
10058
  d([
10059
10059
  g({ type: b.GeneralizedTime, optional: !0 })
10060
- ], wo.prototype, "date", void 0);
10060
+ ], bo.prototype, "date", void 0);
10061
10061
  d([
10062
- g({ type: vo, optional: !0 })
10063
- ], wo.prototype, "other", void 0);
10062
+ g({ type: wo, optional: !0 })
10063
+ ], bo.prototype, "other", void 0);
10064
10064
  let nr = class {
10065
10065
  constructor(e = {}) {
10066
10066
  Object.assign(this, e);
10067
10067
  }
10068
10068
  };
10069
10069
  d([
10070
- g({ type: wo, context: 0, implicit: !0, optional: !0 })
10070
+ g({ type: bo, context: 0, implicit: !0, optional: !0 })
10071
10071
  ], nr.prototype, "rKeyId", void 0);
10072
10072
  d([
10073
10073
  g({ type: fr, optional: !0 })
@@ -10086,12 +10086,12 @@ d([
10086
10086
  d([
10087
10087
  g({ type: ce })
10088
10088
  ], xl.prototype, "encryptedKey", void 0);
10089
- let _s = sc = class extends he {
10089
+ let _s = oc = class extends he {
10090
10090
  constructor(e) {
10091
- super(e), Object.setPrototypeOf(this, sc.prototype);
10091
+ super(e), Object.setPrototypeOf(this, oc.prototype);
10092
10092
  }
10093
10093
  };
10094
- _s = sc = d([
10094
+ _s = oc = d([
10095
10095
  R({ type: P.Sequence, itemType: xl })
10096
10096
  ], _s);
10097
10097
  class Sl {
@@ -10185,7 +10185,7 @@ d([
10185
10185
  g({ type: b.GeneralizedTime, optional: !0 })
10186
10186
  ], mi.prototype, "date", void 0);
10187
10187
  d([
10188
- g({ type: vo, optional: !0 })
10188
+ g({ type: wo, optional: !0 })
10189
10189
  ], mi.prototype, "other", void 0);
10190
10190
  class _i {
10191
10191
  constructor(e = {}) {
@@ -10213,7 +10213,7 @@ d([
10213
10213
  g({ type: b.Integer })
10214
10214
  ], yi.prototype, "version", void 0);
10215
10215
  d([
10216
- g({ type: Ja, context: 0, optional: !0 })
10216
+ g({ type: Za, context: 0, optional: !0 })
10217
10217
  ], yi.prototype, "keyDerivationAlgorithm", void 0);
10218
10218
  d([
10219
10219
  g({ type: At })
@@ -10255,44 +10255,44 @@ d([
10255
10255
  Yt = d([
10256
10256
  R({ type: P.Choice })
10257
10257
  ], Yt);
10258
- var oc;
10259
- let ys = oc = class extends he {
10258
+ var ac;
10259
+ let ys = ac = class extends he {
10260
10260
  constructor(e) {
10261
- super(e), Object.setPrototypeOf(this, oc.prototype);
10261
+ super(e), Object.setPrototypeOf(this, ac.prototype);
10262
10262
  }
10263
10263
  };
10264
- ys = oc = d([
10264
+ ys = ac = d([
10265
10265
  R({ type: P.Set, itemType: Yt })
10266
10266
  ], ys);
10267
- var ac;
10268
- class bo {
10267
+ var cc;
10268
+ class ko {
10269
10269
  constructor(e = {}) {
10270
10270
  this.otherRevInfoFormat = "", this.otherRevInfo = new ArrayBuffer(0), Object.assign(this, e);
10271
10271
  }
10272
10272
  }
10273
10273
  d([
10274
10274
  g({ type: b.ObjectIdentifier })
10275
- ], bo.prototype, "otherRevInfoFormat", void 0);
10275
+ ], ko.prototype, "otherRevInfoFormat", void 0);
10276
10276
  d([
10277
10277
  g({ type: b.Any })
10278
- ], bo.prototype, "otherRevInfo", void 0);
10278
+ ], ko.prototype, "otherRevInfo", void 0);
10279
10279
  let vs = class {
10280
10280
  constructor(e = {}) {
10281
- this.other = new bo(), Object.assign(this, e);
10281
+ this.other = new ko(), Object.assign(this, e);
10282
10282
  }
10283
10283
  };
10284
10284
  d([
10285
- g({ type: bo, context: 1, implicit: !0 })
10285
+ g({ type: ko, context: 1, implicit: !0 })
10286
10286
  ], vs.prototype, "other", void 0);
10287
10287
  vs = d([
10288
10288
  R({ type: P.Choice })
10289
10289
  ], vs);
10290
- let ws = ac = class extends he {
10290
+ let ws = cc = class extends he {
10291
10291
  constructor(e) {
10292
- super(e), Object.setPrototypeOf(this, ac.prototype);
10292
+ super(e), Object.setPrototypeOf(this, cc.prototype);
10293
10293
  }
10294
10294
  };
10295
- ws = ac = d([
10295
+ ws = cc = d([
10296
10296
  R({ type: P.Set, itemType: vs })
10297
10297
  ], ws);
10298
10298
  class El {
@@ -10306,15 +10306,15 @@ d([
10306
10306
  d([
10307
10307
  g({ type: ws, context: 1, implicit: !0, optional: !0 })
10308
10308
  ], El.prototype, "crls", void 0);
10309
- var cc;
10310
- let lc = cc = class extends he {
10309
+ var lc;
10310
+ let uc = lc = class extends he {
10311
10311
  constructor(e) {
10312
- super(e), Object.setPrototypeOf(this, cc.prototype);
10312
+ super(e), Object.setPrototypeOf(this, lc.prototype);
10313
10313
  }
10314
10314
  };
10315
- lc = cc = d([
10315
+ uc = lc = d([
10316
10316
  R({ type: P.Set, itemType: hr })
10317
- ], lc);
10317
+ ], uc);
10318
10318
  class vi {
10319
10319
  constructor(e = {}) {
10320
10320
  this.version = Vt.v0, this.recipientInfos = new ys(), this.encryptedContentInfo = new hi(), Object.assign(this, e);
@@ -10333,21 +10333,21 @@ d([
10333
10333
  g({ type: hi })
10334
10334
  ], vi.prototype, "encryptedContentInfo", void 0);
10335
10335
  d([
10336
- g({ type: lc, context: 1, implicit: !0, optional: !0 })
10336
+ g({ type: uc, context: 1, implicit: !0, optional: !0 })
10337
10337
  ], vi.prototype, "unprotectedAttrs", void 0);
10338
10338
  const a0 = "1.2.840.113549.1.7.2";
10339
- var uc;
10340
- let bs = uc = class extends he {
10339
+ var dc;
10340
+ let bs = dc = class extends he {
10341
10341
  constructor(e) {
10342
- super(e), Object.setPrototypeOf(this, uc.prototype);
10342
+ super(e), Object.setPrototypeOf(this, dc.prototype);
10343
10343
  }
10344
10344
  };
10345
- bs = uc = d([
10345
+ bs = dc = d([
10346
10346
  R({ type: P.Set, itemType: Dr })
10347
10347
  ], bs);
10348
10348
  class _r {
10349
10349
  constructor(e = {}) {
10350
- this.version = Vt.v0, this.digestAlgorithms = new bs(), this.encapContentInfo = new yo(), this.signerInfos = new fs(), Object.assign(this, e);
10350
+ this.version = Vt.v0, this.digestAlgorithms = new bs(), this.encapContentInfo = new vo(), this.signerInfos = new fs(), Object.assign(this, e);
10351
10351
  }
10352
10352
  }
10353
10353
  d([
@@ -10357,7 +10357,7 @@ d([
10357
10357
  g({ type: bs })
10358
10358
  ], _r.prototype, "digestAlgorithms", void 0);
10359
10359
  d([
10360
- g({ type: yo })
10360
+ g({ type: vo })
10361
10361
  ], _r.prototype, "encapContentInfo", void 0);
10362
10362
  d([
10363
10363
  g({ type: ms, context: 0, implicit: !0, optional: !0 })
@@ -10408,13 +10408,13 @@ d([
10408
10408
  ir = d([
10409
10409
  R({ type: P.Sequence })
10410
10410
  ], ir);
10411
- var dc;
10411
+ var pc;
10412
10412
  (function(t) {
10413
10413
  t[t.ecpVer1 = 1] = "ecpVer1";
10414
- })(dc || (dc = {}));
10414
+ })(pc || (pc = {}));
10415
10415
  let Mt = class {
10416
10416
  constructor(e = {}) {
10417
- this.version = dc.ecpVer1, Object.assign(this, e);
10417
+ this.version = pc.ecpVer1, Object.assign(this, e);
10418
10418
  }
10419
10419
  };
10420
10420
  d([
@@ -10455,23 +10455,23 @@ d([
10455
10455
  Xt = d([
10456
10456
  R({ type: P.Choice })
10457
10457
  ], Xt);
10458
- class ko {
10458
+ class xo {
10459
10459
  constructor(e = {}) {
10460
10460
  this.version = 1, this.privateKey = new ce(), Object.assign(this, e);
10461
10461
  }
10462
10462
  }
10463
10463
  d([
10464
10464
  g({ type: b.Integer })
10465
- ], ko.prototype, "version", void 0);
10465
+ ], xo.prototype, "version", void 0);
10466
10466
  d([
10467
10467
  g({ type: ce })
10468
- ], ko.prototype, "privateKey", void 0);
10468
+ ], xo.prototype, "privateKey", void 0);
10469
10469
  d([
10470
10470
  g({ type: Xt, context: 0, optional: !0 })
10471
- ], ko.prototype, "parameters", void 0);
10471
+ ], xo.prototype, "parameters", void 0);
10472
10472
  d([
10473
10473
  g({ type: b.BitString, context: 1, optional: !0 })
10474
- ], ko.prototype, "publicKey", void 0);
10474
+ ], xo.prototype, "publicKey", void 0);
10475
10475
  class ks {
10476
10476
  constructor(e = {}) {
10477
10477
  this.r = new ArrayBuffer(0), this.s = new ArrayBuffer(0), Object.assign(this, e);
@@ -10483,7 +10483,7 @@ d([
10483
10483
  d([
10484
10484
  g({ type: b.Integer, converter: ye })
10485
10485
  ], ks.prototype, "s", void 0);
10486
- const Ge = "1.2.840.113549.1.1", En = `${Ge}.1`, f0 = `${Ge}.7`, h0 = `${Ge}.9`, Rr = `${Ge}.10`, g0 = `${Ge}.2`, m0 = `${Ge}.4`, xs = `${Ge}.5`, _0 = `${Ge}.14`, pc = `${Ge}.11`, Ss = `${Ge}.12`, As = `${Ge}.13`, Sh = `${Ge}.15`, Ah = `${Ge}.16`, Es = "1.3.14.3.2.26", Eh = "2.16.840.1.101.3.4.2.4", Is = "2.16.840.1.101.3.4.2.1", Cs = "2.16.840.1.101.3.4.2.2", Ns = "2.16.840.1.101.3.4.2.3", y0 = "2.16.840.1.101.3.4.2.5", v0 = "2.16.840.1.101.3.4.2.6", w0 = "1.2.840.113549.2.2", b0 = "1.2.840.113549.2.5", xo = `${Ge}.8`;
10486
+ const Ge = "1.2.840.113549.1.1", En = `${Ge}.1`, f0 = `${Ge}.7`, h0 = `${Ge}.9`, Rr = `${Ge}.10`, g0 = `${Ge}.2`, m0 = `${Ge}.4`, xs = `${Ge}.5`, _0 = `${Ge}.14`, fc = `${Ge}.11`, Ss = `${Ge}.12`, As = `${Ge}.13`, Sh = `${Ge}.15`, Ah = `${Ge}.16`, Es = "1.3.14.3.2.26", Eh = "2.16.840.1.101.3.4.2.4", Is = "2.16.840.1.101.3.4.2.1", Cs = "2.16.840.1.101.3.4.2.2", Ns = "2.16.840.1.101.3.4.2.3", y0 = "2.16.840.1.101.3.4.2.5", v0 = "2.16.840.1.101.3.4.2.6", w0 = "1.2.840.113549.2.2", b0 = "1.2.840.113549.2.5", So = `${Ge}.8`;
10487
10487
  function Ce(t) {
10488
10488
  return new K({ algorithm: t, parameters: null });
10489
10489
  }
@@ -10497,7 +10497,7 @@ Ce(Ns);
10497
10497
  Ce(y0);
10498
10498
  Ce(v0);
10499
10499
  const Ih = new K({
10500
- algorithm: xo,
10500
+ algorithm: So,
10501
10501
  parameters: q.serialize(In)
10502
10502
  }), Ch = new K({
10503
10503
  algorithm: h0,
@@ -10513,31 +10513,31 @@ Ce(Ss);
10513
10513
  Ce(As);
10514
10514
  Ce(Sh);
10515
10515
  Ce(Ah);
10516
- class So {
10516
+ class Ao {
10517
10517
  constructor(e = {}) {
10518
10518
  this.hashAlgorithm = new K(In), this.maskGenAlgorithm = new K({
10519
- algorithm: xo,
10519
+ algorithm: So,
10520
10520
  parameters: q.serialize(In)
10521
10521
  }), this.pSourceAlgorithm = new K(Ch), Object.assign(this, e);
10522
10522
  }
10523
10523
  }
10524
10524
  d([
10525
10525
  g({ type: K, context: 0, defaultValue: In })
10526
- ], So.prototype, "hashAlgorithm", void 0);
10526
+ ], Ao.prototype, "hashAlgorithm", void 0);
10527
10527
  d([
10528
10528
  g({ type: K, context: 1, defaultValue: Ih })
10529
- ], So.prototype, "maskGenAlgorithm", void 0);
10529
+ ], Ao.prototype, "maskGenAlgorithm", void 0);
10530
10530
  d([
10531
10531
  g({ type: K, context: 2, defaultValue: Ch })
10532
- ], So.prototype, "pSourceAlgorithm", void 0);
10532
+ ], Ao.prototype, "pSourceAlgorithm", void 0);
10533
10533
  new K({
10534
10534
  algorithm: f0,
10535
- parameters: q.serialize(new So())
10535
+ parameters: q.serialize(new Ao())
10536
10536
  });
10537
10537
  class Cn {
10538
10538
  constructor(e = {}) {
10539
10539
  this.hashAlgorithm = new K(In), this.maskGenAlgorithm = new K({
10540
- algorithm: xo,
10540
+ algorithm: So,
10541
10541
  parameters: q.serialize(In)
10542
10542
  }), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
10543
10543
  }
@@ -10558,40 +10558,40 @@ new K({
10558
10558
  algorithm: Rr,
10559
10559
  parameters: q.serialize(new Cn())
10560
10560
  });
10561
- class Ao {
10561
+ class Eo {
10562
10562
  constructor(e = {}) {
10563
10563
  this.digestAlgorithm = new K(), this.digest = new ce(), Object.assign(this, e);
10564
10564
  }
10565
10565
  }
10566
10566
  d([
10567
10567
  g({ type: K })
10568
- ], Ao.prototype, "digestAlgorithm", void 0);
10568
+ ], Eo.prototype, "digestAlgorithm", void 0);
10569
10569
  d([
10570
10570
  g({ type: ce })
10571
- ], Ao.prototype, "digest", void 0);
10572
- var fc;
10573
- class Eo {
10571
+ ], Eo.prototype, "digest", void 0);
10572
+ var hc;
10573
+ class Io {
10574
10574
  constructor(e = {}) {
10575
10575
  this.prime = new ArrayBuffer(0), this.exponent = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
10576
10576
  }
10577
10577
  }
10578
10578
  d([
10579
10579
  g({ type: b.Integer, converter: ye })
10580
- ], Eo.prototype, "prime", void 0);
10580
+ ], Io.prototype, "prime", void 0);
10581
10581
  d([
10582
10582
  g({ type: b.Integer, converter: ye })
10583
- ], Eo.prototype, "exponent", void 0);
10583
+ ], Io.prototype, "exponent", void 0);
10584
10584
  d([
10585
10585
  g({ type: b.Integer, converter: ye })
10586
- ], Eo.prototype, "coefficient", void 0);
10587
- let hc = fc = class extends he {
10586
+ ], Io.prototype, "coefficient", void 0);
10587
+ let gc = hc = class extends he {
10588
10588
  constructor(e) {
10589
- super(e), Object.setPrototypeOf(this, fc.prototype);
10589
+ super(e), Object.setPrototypeOf(this, hc.prototype);
10590
10590
  }
10591
10591
  };
10592
- hc = fc = d([
10593
- R({ type: P.Sequence, itemType: Eo })
10594
- ], hc);
10592
+ gc = hc = d([
10593
+ R({ type: P.Sequence, itemType: Io })
10594
+ ], gc);
10595
10595
  class $t {
10596
10596
  constructor(e = {}) {
10597
10597
  this.version = 0, this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), this.privateExponent = new ArrayBuffer(0), this.prime1 = new ArrayBuffer(0), this.prime2 = new ArrayBuffer(0), this.exponent1 = new ArrayBuffer(0), this.exponent2 = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
@@ -10625,7 +10625,7 @@ d([
10625
10625
  g({ type: b.Integer, converter: ye })
10626
10626
  ], $t.prototype, "coefficient", void 0);
10627
10627
  d([
10628
- g({ type: hc, optional: !0 })
10628
+ g({ type: gc, optional: !0 })
10629
10629
  ], $t.prototype, "otherPrimeInfos", void 0);
10630
10630
  class jl {
10631
10631
  constructor(e = {}) {
@@ -10638,11 +10638,11 @@ d([
10638
10638
  d([
10639
10639
  g({ type: b.Integer, converter: ye })
10640
10640
  ], jl.prototype, "publicExponent", void 0);
10641
- var gc;
10641
+ var mc;
10642
10642
  (function(t) {
10643
10643
  t[t.Transient = 0] = "Transient", t[t.Singleton = 1] = "Singleton", t[t.ResolutionScoped = 2] = "ResolutionScoped", t[t.ContainerScoped = 3] = "ContainerScoped";
10644
- })(gc || (gc = {}));
10645
- const De = gc;
10644
+ })(mc || (mc = {}));
10645
+ const De = mc;
10646
10646
  /*! *****************************************************************************
10647
10647
  Copyright (c) Microsoft Corporation.
10648
10648
 
@@ -10657,15 +10657,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
10657
10657
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
10658
10658
  PERFORMANCE OF THIS SOFTWARE.
10659
10659
  ***************************************************************************** */
10660
- var mc = function(t, e) {
10661
- return mc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
10660
+ var _c = function(t, e) {
10661
+ return _c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
10662
10662
  n.__proto__ = r;
10663
10663
  } || function(n, r) {
10664
10664
  for (var i in r) r.hasOwnProperty(i) && (n[i] = r[i]);
10665
- }, mc(t, e);
10665
+ }, _c(t, e);
10666
10666
  };
10667
10667
  function Ol(t, e) {
10668
- mc(t, e);
10668
+ _c(t, e);
10669
10669
  function n() {
10670
10670
  this.constructor = t;
10671
10671
  }
@@ -10800,7 +10800,7 @@ function A0(t) {
10800
10800
  function Nh(t) {
10801
10801
  return !!t.useClass;
10802
10802
  }
10803
- function _c(t) {
10803
+ function yc(t) {
10804
10804
  return !!t.useFactory;
10805
10805
  }
10806
10806
  var $h = function() {
@@ -10856,7 +10856,7 @@ function qi(t) {
10856
10856
  return t.useValue != null;
10857
10857
  }
10858
10858
  function C0(t) {
10859
- return Nh(t) || qi(t) || Mi(t) || _c(t);
10859
+ return Nh(t) || qi(t) || Mi(t) || yc(t);
10860
10860
  }
10861
10861
  var Bl = function() {
10862
10862
  function t() {
@@ -10949,7 +10949,7 @@ var T0 = function(t) {
10949
10949
  var l = this._registry.get(a);
10950
10950
  l && Mi(l.provider) ? o = l.provider : o = null;
10951
10951
  }
10952
- if ((r.lifecycle === De.Singleton || r.lifecycle == De.ContainerScoped || r.lifecycle == De.ResolutionScoped) && (qi(i) || _c(i)))
10952
+ if ((r.lifecycle === De.Singleton || r.lifecycle == De.ContainerScoped || r.lifecycle == De.ResolutionScoped) && (qi(i) || yc(i)))
10953
10953
  throw new Error('Cannot use lifecycle "' + De[r.lifecycle] + '" with ValueProviders or FactoryProviders');
10954
10954
  return this._registry.set(e, { provider: i, options: r }), this;
10955
10955
  }, t.prototype.registerType = function(e, n) {
@@ -11036,7 +11036,7 @@ var T0 = function(t) {
11036
11036
  if (this.ensureNotDisposed(), e.options.lifecycle === De.ResolutionScoped && n.scopedResolutions.has(e))
11037
11037
  return n.scopedResolutions.get(e);
11038
11038
  var r = e.options.lifecycle === De.Singleton, i = e.options.lifecycle === De.ContainerScoped, s = r || i, o;
11039
- return qi(e.provider) ? o = e.provider.useValue : Mi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Nh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : _c(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === De.ResolutionScoped && n.scopedResolutions.set(e, o), o;
11039
+ return qi(e.provider) ? o = e.provider.useValue : Mi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : Nh(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : yc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === De.ResolutionScoped && n.scopedResolutions.set(e, o), o;
11040
11040
  }, t.prototype.resolveAll = function(e, n) {
11041
11041
  var r = this;
11042
11042
  n === void 0 && (n = new od()), this.ensureNotDisposed();
@@ -11164,40 +11164,40 @@ var T0 = function(t) {
11164
11164
  throw new Error("This container has been disposed, you cannot interact with a disposed container");
11165
11165
  }, t;
11166
11166
  }(), Re = new L0();
11167
- function Io() {
11167
+ function Co() {
11168
11168
  return function(t) {
11169
11169
  jh.set(t, A0(t));
11170
11170
  };
11171
11171
  }
11172
11172
  if (typeof Reflect > "u" || !Reflect.getMetadata)
11173
11173
  throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
11174
- var yc;
11175
- class Co {
11174
+ var vc;
11175
+ class No {
11176
11176
  constructor(e = {}) {
11177
11177
  this.attrId = "", this.attrValues = [], Object.assign(e);
11178
11178
  }
11179
11179
  }
11180
11180
  d([
11181
11181
  g({ type: b.ObjectIdentifier })
11182
- ], Co.prototype, "attrId", void 0);
11182
+ ], No.prototype, "attrId", void 0);
11183
11183
  d([
11184
11184
  g({ type: b.Any, repeated: "set" })
11185
- ], Co.prototype, "attrValues", void 0);
11186
- let ad = yc = class extends he {
11185
+ ], No.prototype, "attrValues", void 0);
11186
+ let ad = vc = class extends he {
11187
11187
  constructor(e) {
11188
- super(e), Object.setPrototypeOf(this, yc.prototype);
11188
+ super(e), Object.setPrototypeOf(this, vc.prototype);
11189
11189
  }
11190
11190
  };
11191
- ad = yc = d([
11192
- R({ type: P.Sequence, itemType: Co })
11191
+ ad = vc = d([
11192
+ R({ type: P.Sequence, itemType: No })
11193
11193
  ], ad);
11194
- var vc;
11195
- let cd = vc = class extends he {
11194
+ var wc;
11195
+ let cd = wc = class extends he {
11196
11196
  constructor(e) {
11197
- super(e), Object.setPrototypeOf(this, vc.prototype);
11197
+ super(e), Object.setPrototypeOf(this, wc.prototype);
11198
11198
  }
11199
11199
  };
11200
- cd = vc = d([
11200
+ cd = wc = d([
11201
11201
  R({ type: P.Sequence, itemType: gr })
11202
11202
  ], cd);
11203
11203
  class Oh {
@@ -11224,34 +11224,34 @@ d([
11224
11224
  ], Bh.prototype, "crltValue", void 0);
11225
11225
  class Th extends ce {
11226
11226
  }
11227
- let No = class {
11227
+ let $o = class {
11228
11228
  constructor(e = {}) {
11229
11229
  this.encryptionAlgorithm = new K(), this.encryptedData = new Th(), Object.assign(this, e);
11230
11230
  }
11231
11231
  };
11232
11232
  d([
11233
11233
  g({ type: K })
11234
- ], No.prototype, "encryptionAlgorithm", void 0);
11234
+ ], $o.prototype, "encryptionAlgorithm", void 0);
11235
11235
  d([
11236
11236
  g({ type: Th })
11237
- ], No.prototype, "encryptedData", void 0);
11238
- var wc, bc;
11237
+ ], $o.prototype, "encryptedData", void 0);
11238
+ var bc, kc;
11239
11239
  (function(t) {
11240
11240
  t[t.v1 = 0] = "v1";
11241
- })(bc || (bc = {}));
11241
+ })(kc || (kc = {}));
11242
11242
  class Ph extends ce {
11243
11243
  }
11244
- let kc = wc = class extends he {
11244
+ let xc = bc = class extends he {
11245
11245
  constructor(e) {
11246
- super(e), Object.setPrototypeOf(this, wc.prototype);
11246
+ super(e), Object.setPrototypeOf(this, bc.prototype);
11247
11247
  }
11248
11248
  };
11249
- kc = wc = d([
11249
+ xc = bc = d([
11250
11250
  R({ type: P.Sequence, itemType: Ut })
11251
- ], kc);
11251
+ ], xc);
11252
11252
  class bi {
11253
11253
  constructor(e = {}) {
11254
- this.version = bc.v1, this.privateKeyAlgorithm = new K(), this.privateKey = new Ph(), Object.assign(this, e);
11254
+ this.version = kc.v1, this.privateKeyAlgorithm = new K(), this.privateKey = new Ph(), Object.assign(this, e);
11255
11255
  }
11256
11256
  }
11257
11257
  d([
@@ -11264,14 +11264,14 @@ d([
11264
11264
  g({ type: Ph })
11265
11265
  ], bi.prototype, "privateKey", void 0);
11266
11266
  d([
11267
- g({ type: kc, implicit: !0, context: 0, optional: !0 })
11267
+ g({ type: xc, implicit: !0, context: 0, optional: !0 })
11268
11268
  ], bi.prototype, "attributes", void 0);
11269
11269
  let ld = class extends bi {
11270
11270
  };
11271
11271
  ld = d([
11272
11272
  R({ type: P.Sequence })
11273
11273
  ], ld);
11274
- let ud = class extends No {
11274
+ let ud = class extends $o {
11275
11275
  };
11276
11276
  ud = d([
11277
11277
  R({ type: P.Sequence })
@@ -11289,11 +11289,11 @@ d([
11289
11289
  ], Rh.prototype, "secretValue", void 0);
11290
11290
  class ki {
11291
11291
  constructor(e = {}) {
11292
- this.mac = new Ao(), this.macSalt = new ce(), this.iterations = 1, Object.assign(this, e);
11292
+ this.mac = new Eo(), this.macSalt = new ce(), this.iterations = 1, Object.assign(this, e);
11293
11293
  }
11294
11294
  }
11295
11295
  d([
11296
- g({ type: Ao })
11296
+ g({ type: Eo })
11297
11297
  ], ki.prototype, "mac", void 0);
11298
11298
  d([
11299
11299
  g({ type: ce })
@@ -11301,44 +11301,44 @@ d([
11301
11301
  d([
11302
11302
  g({ type: b.Integer, defaultValue: 1 })
11303
11303
  ], ki.prototype, "iterations", void 0);
11304
- class $o {
11304
+ class jo {
11305
11305
  constructor(e = {}) {
11306
11306
  this.version = 3, this.authSafe = new gr(), this.macData = new ki(), Object.assign(this, e);
11307
11307
  }
11308
11308
  }
11309
11309
  d([
11310
11310
  g({ type: b.Integer })
11311
- ], $o.prototype, "version", void 0);
11311
+ ], jo.prototype, "version", void 0);
11312
11312
  d([
11313
11313
  g({ type: gr })
11314
- ], $o.prototype, "authSafe", void 0);
11314
+ ], jo.prototype, "authSafe", void 0);
11315
11315
  d([
11316
11316
  g({ type: ki, optional: !0 })
11317
- ], $o.prototype, "macData", void 0);
11318
- var xc;
11319
- class jo {
11317
+ ], jo.prototype, "macData", void 0);
11318
+ var Sc;
11319
+ class Oo {
11320
11320
  constructor(e = {}) {
11321
11321
  this.bagId = "", this.bagValue = new ArrayBuffer(0), Object.assign(this, e);
11322
11322
  }
11323
11323
  }
11324
11324
  d([
11325
11325
  g({ type: b.ObjectIdentifier })
11326
- ], jo.prototype, "bagId", void 0);
11326
+ ], Oo.prototype, "bagId", void 0);
11327
11327
  d([
11328
11328
  g({ type: b.Any, context: 0 })
11329
- ], jo.prototype, "bagValue", void 0);
11329
+ ], Oo.prototype, "bagValue", void 0);
11330
11330
  d([
11331
- g({ type: Co, repeated: "set", optional: !0 })
11332
- ], jo.prototype, "bagAttributes", void 0);
11333
- let dd = xc = class extends he {
11331
+ g({ type: No, repeated: "set", optional: !0 })
11332
+ ], Oo.prototype, "bagAttributes", void 0);
11333
+ let dd = Sc = class extends he {
11334
11334
  constructor(e) {
11335
- super(e), Object.setPrototypeOf(this, xc.prototype);
11335
+ super(e), Object.setPrototypeOf(this, Sc.prototype);
11336
11336
  }
11337
11337
  };
11338
- dd = xc = d([
11339
- R({ type: P.Sequence, itemType: jo })
11338
+ dd = Sc = d([
11339
+ R({ type: P.Sequence, itemType: Oo })
11340
11340
  ], dd);
11341
- var Sc, Ac, Ec;
11341
+ var Ac, Ec, Ic;
11342
11342
  const Lh = "1.2.840.113549.1.9", Uh = `${Lh}.7`, Tl = `${Lh}.14`;
11343
11343
  let js = class extends Pe {
11344
11344
  constructor(e = {}) {
@@ -11359,17 +11359,17 @@ let pd = class extends gr {
11359
11359
  pd = d([
11360
11360
  R({ type: P.Sequence })
11361
11361
  ], pd);
11362
- let fd = class extends $o {
11362
+ let fd = class extends jo {
11363
11363
  };
11364
11364
  fd = d([
11365
11365
  R({ type: P.Sequence })
11366
11366
  ], fd);
11367
- let hd = class extends No {
11367
+ let hd = class extends $o {
11368
11368
  };
11369
11369
  hd = d([
11370
11370
  R({ type: P.Sequence })
11371
11371
  ], hd);
11372
- let Ic = class {
11372
+ let Cc = class {
11373
11373
  constructor(e = "") {
11374
11374
  this.value = e;
11375
11375
  }
@@ -11379,10 +11379,10 @@ let Ic = class {
11379
11379
  };
11380
11380
  d([
11381
11381
  g({ type: b.IA5String })
11382
- ], Ic.prototype, "value", void 0);
11383
- Ic = d([
11382
+ ], Cc.prototype, "value", void 0);
11383
+ Cc = d([
11384
11384
  R({ type: P.Choice })
11385
- ], Ic);
11385
+ ], Cc);
11386
11386
  let gd = class extends js {
11387
11387
  };
11388
11388
  gd = d([
@@ -11393,23 +11393,23 @@ let md = class extends Pe {
11393
11393
  md = d([
11394
11394
  R({ type: P.Choice })
11395
11395
  ], md);
11396
- let Cc = class {
11396
+ let Nc = class {
11397
11397
  constructor(e = /* @__PURE__ */ new Date()) {
11398
11398
  this.value = e;
11399
11399
  }
11400
11400
  };
11401
11401
  d([
11402
11402
  g({ type: b.GeneralizedTime })
11403
- ], Cc.prototype, "value", void 0);
11404
- Cc = d([
11403
+ ], Nc.prototype, "value", void 0);
11404
+ Nc = d([
11405
11405
  R({ type: P.Choice })
11406
- ], Cc);
11406
+ ], Nc);
11407
11407
  let _d = class extends Pe {
11408
11408
  };
11409
11409
  _d = d([
11410
11410
  R({ type: P.Choice })
11411
11411
  ], _d);
11412
- let Nc = class {
11412
+ let $c = class {
11413
11413
  constructor(e = "M") {
11414
11414
  this.value = e;
11415
11415
  }
@@ -11419,10 +11419,10 @@ let Nc = class {
11419
11419
  };
11420
11420
  d([
11421
11421
  g({ type: b.PrintableString })
11422
- ], Nc.prototype, "value", void 0);
11423
- Nc = d([
11422
+ ], $c.prototype, "value", void 0);
11423
+ $c = d([
11424
11424
  R({ type: P.Choice })
11425
- ], Nc);
11425
+ ], $c);
11426
11426
  let Os = class {
11427
11427
  constructor(e = "") {
11428
11428
  this.value = e;
@@ -11447,7 +11447,7 @@ let vd = class extends Pe {
11447
11447
  vd = d([
11448
11448
  R({ type: P.Choice })
11449
11449
  ], vd);
11450
- let $c = class {
11450
+ let jc = class {
11451
11451
  constructor(e = "") {
11452
11452
  this.value = e;
11453
11453
  }
@@ -11457,16 +11457,16 @@ let $c = class {
11457
11457
  };
11458
11458
  d([
11459
11459
  g({ type: b.ObjectIdentifier })
11460
- ], $c.prototype, "value", void 0);
11461
- $c = d([
11460
+ ], jc.prototype, "value", void 0);
11461
+ jc = d([
11462
11462
  R({ type: P.Choice })
11463
- ], $c);
11463
+ ], jc);
11464
11464
  let wd = class extends Be {
11465
11465
  };
11466
11466
  wd = d([
11467
11467
  R({ type: P.Choice })
11468
11468
  ], wd);
11469
- let jc = class {
11469
+ let Oc = class {
11470
11470
  constructor(e = 0) {
11471
11471
  this.value = e;
11472
11472
  }
@@ -11476,10 +11476,10 @@ let jc = class {
11476
11476
  };
11477
11477
  d([
11478
11478
  g({ type: b.Integer })
11479
- ], jc.prototype, "value", void 0);
11480
- jc = d([
11479
+ ], Oc.prototype, "value", void 0);
11480
+ Oc = d([
11481
11481
  R({ type: P.Choice })
11482
- ], jc);
11482
+ ], Oc);
11483
11483
  let bd = class extends Nt {
11484
11484
  };
11485
11485
  bd = d([
@@ -11490,23 +11490,23 @@ let Bs = class extends Pe {
11490
11490
  Bs = d([
11491
11491
  R({ type: P.Choice })
11492
11492
  ], Bs);
11493
- let kd = Sc = class extends Zt {
11493
+ let kd = Ac = class extends Zt {
11494
11494
  constructor(e) {
11495
- super(e), Object.setPrototypeOf(this, Sc.prototype);
11495
+ super(e), Object.setPrototypeOf(this, Ac.prototype);
11496
11496
  }
11497
11497
  };
11498
- kd = Sc = d([
11498
+ kd = Ac = d([
11499
11499
  R({ type: P.Sequence })
11500
11500
  ], kd);
11501
- let xd = Ac = class extends he {
11501
+ let xd = Ec = class extends he {
11502
11502
  constructor(e) {
11503
- super(e), Object.setPrototypeOf(this, Ac.prototype);
11503
+ super(e), Object.setPrototypeOf(this, Ec.prototype);
11504
11504
  }
11505
11505
  };
11506
- xd = Ac = d([
11506
+ xd = Ec = d([
11507
11507
  R({ type: P.Set, itemType: hr })
11508
11508
  ], xd);
11509
- let Oc = class {
11509
+ let Bc = class {
11510
11510
  constructor(e = "") {
11511
11511
  this.value = e;
11512
11512
  }
@@ -11516,30 +11516,30 @@ let Oc = class {
11516
11516
  };
11517
11517
  d([
11518
11518
  g({ type: b.BmpString })
11519
- ], Oc.prototype, "value", void 0);
11520
- Oc = d([
11519
+ ], Bc.prototype, "value", void 0);
11520
+ Bc = d([
11521
11521
  R({ type: P.Choice })
11522
- ], Oc);
11523
- let Bc = class extends K {
11522
+ ], Bc);
11523
+ let Tc = class extends K {
11524
11524
  };
11525
- Bc = d([
11525
+ Tc = d([
11526
11526
  R({ type: P.Sequence })
11527
- ], Bc);
11528
- let Sd = Ec = class extends he {
11527
+ ], Tc);
11528
+ let Sd = Ic = class extends he {
11529
11529
  constructor(e) {
11530
- super(e), Object.setPrototypeOf(this, Ec.prototype);
11530
+ super(e), Object.setPrototypeOf(this, Ic.prototype);
11531
11531
  }
11532
11532
  };
11533
- Sd = Ec = d([
11534
- R({ type: P.Sequence, itemType: Bc })
11533
+ Sd = Ic = d([
11534
+ R({ type: P.Sequence, itemType: Tc })
11535
11535
  ], Sd);
11536
- var Tc;
11537
- let Ts = Tc = class extends he {
11536
+ var Pc;
11537
+ let Ts = Pc = class extends he {
11538
11538
  constructor(e) {
11539
- super(e), Object.setPrototypeOf(this, Tc.prototype);
11539
+ super(e), Object.setPrototypeOf(this, Pc.prototype);
11540
11540
  }
11541
11541
  };
11542
- Ts = Tc = d([
11542
+ Ts = Pc = d([
11543
11543
  R({ type: P.Sequence, itemType: Ut })
11544
11544
  ], Ts);
11545
11545
  class yr {
@@ -11777,7 +11777,7 @@ let Jr = zi = class {
11777
11777
  };
11778
11778
  Jr.SECP256K1 = "1.3.132.0.10";
11779
11779
  Jr = zi = d([
11780
- Io()
11780
+ Co()
11781
11781
  ], Jr);
11782
11782
  Re.registerSingleton(xi, Jr);
11783
11783
  const Vh = Symbol("name"), Mh = Symbol("value");
@@ -11821,7 +11821,7 @@ tn.items = {
11821
11821
  [En]: "rsaEncryption",
11822
11822
  [xs]: "sha1WithRSAEncryption",
11823
11823
  [_0]: "sha224WithRSAEncryption",
11824
- [pc]: "sha256WithRSAEncryption",
11824
+ [fc]: "sha256WithRSAEncryption",
11825
11825
  [Ss]: "sha384WithRSAEncryption",
11826
11826
  [As]: "sha512WithRSAEncryption",
11827
11827
  [Kr]: "ecPublicKey",
@@ -12133,7 +12133,7 @@ class rt {
12133
12133
  return e;
12134
12134
  }
12135
12135
  createAttribute(e, n) {
12136
- const r = new oo({ type: e });
12136
+ const r = new ao({ type: e });
12137
12137
  if (typeof n == "object")
12138
12138
  for (const i in n)
12139
12139
  switch (i) {
@@ -12175,24 +12175,24 @@ class rt {
12175
12175
  return e.length >= 1 && !(!((n = e[0]) === null || n === void 0) && n.subtle) ? (i = e[0] || i, r = e[1] || Oe.get()) : r = e[0] || Oe.get(), await r.subtle.digest(i, this.toArrayBuffer());
12176
12176
  }
12177
12177
  }
12178
- const Dh = "Cannot initialize GeneralName from ASN.1 data.", Qd = `${Dh} Unsupported string format in use.`, F0 = `${Dh} Value doesn't match to GUID regular expression.`, ep = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, tp = "1.3.6.1.4.1.311.25.1", np = "1.3.6.1.4.1.311.20.2.3", Jo = "dns", Zo = "dn", Yo = "email", Xo = "ip", Qo = "url", ea = "guid", ta = "upn", Bi = "id";
12178
+ const Dh = "Cannot initialize GeneralName from ASN.1 data.", Qd = `${Dh} Unsupported string format in use.`, F0 = `${Dh} Value doesn't match to GUID regular expression.`, ep = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, tp = "1.3.6.1.4.1.311.25.1", np = "1.3.6.1.4.1.311.20.2.3", Zo = "dns", Yo = "dn", Xo = "email", Qo = "ip", ea = "url", ta = "guid", na = "upn", Bi = "id";
12179
12179
  class Kt extends nn {
12180
12180
  constructor(...e) {
12181
12181
  let n;
12182
12182
  if (e.length === 2)
12183
12183
  switch (e[0]) {
12184
- case Zo: {
12184
+ case Yo: {
12185
12185
  const r = new rt(e[1]).toArrayBuffer(), i = q.parse(r, Se);
12186
12186
  n = new ie({ directoryName: i });
12187
12187
  break;
12188
12188
  }
12189
- case Jo:
12189
+ case Zo:
12190
12190
  n = new ie({ dNSName: e[1] });
12191
12191
  break;
12192
- case Yo:
12192
+ case Xo:
12193
12193
  n = new ie({ rfc822Name: e[1] });
12194
12194
  break;
12195
- case ea: {
12195
+ case ta: {
12196
12196
  const r = new RegExp(ep, "i").exec(e[1]);
12197
12197
  if (!r)
12198
12198
  throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
@@ -12205,13 +12205,13 @@ class Kt extends nn {
12205
12205
  });
12206
12206
  break;
12207
12207
  }
12208
- case Xo:
12208
+ case Qo:
12209
12209
  n = new ie({ iPAddress: e[1] });
12210
12210
  break;
12211
12211
  case Bi:
12212
12212
  n = new ie({ registeredID: e[1] });
12213
12213
  break;
12214
- case ta: {
12214
+ case na: {
12215
12215
  n = new ie({
12216
12216
  otherName: new zr({
12217
12217
  typeId: np,
@@ -12220,7 +12220,7 @@ class Kt extends nn {
12220
12220
  });
12221
12221
  break;
12222
12222
  }
12223
- case Qo:
12223
+ case ea:
12224
12224
  n = new ie({ uniformResourceIdentifier: e[1] });
12225
12225
  break;
12226
12226
  default:
@@ -12231,26 +12231,26 @@ class Kt extends nn {
12231
12231
  }
12232
12232
  onInit(e) {
12233
12233
  if (e.dNSName != null)
12234
- this.type = Jo, this.value = e.dNSName;
12234
+ this.type = Zo, this.value = e.dNSName;
12235
12235
  else if (e.rfc822Name != null)
12236
- this.type = Yo, this.value = e.rfc822Name;
12236
+ this.type = Xo, this.value = e.rfc822Name;
12237
12237
  else if (e.iPAddress != null)
12238
- this.type = Xo, this.value = e.iPAddress;
12238
+ this.type = Qo, this.value = e.iPAddress;
12239
12239
  else if (e.uniformResourceIdentifier != null)
12240
- this.type = Qo, this.value = e.uniformResourceIdentifier;
12240
+ this.type = ea, this.value = e.uniformResourceIdentifier;
12241
12241
  else if (e.registeredID != null)
12242
12242
  this.type = Bi, this.value = e.registeredID;
12243
12243
  else if (e.directoryName != null)
12244
- this.type = Zo, this.value = new rt(e.directoryName).toString();
12244
+ this.type = Yo, this.value = new rt(e.directoryName).toString();
12245
12245
  else if (e.otherName != null)
12246
12246
  if (e.otherName.typeId === tp) {
12247
- this.type = ea;
12247
+ this.type = ta;
12248
12248
  const n = q.parse(e.otherName.value, ce), r = new RegExp(ep, "i").exec(Z.ToHex(n));
12249
12249
  if (!r)
12250
12250
  throw new Error(F0);
12251
12251
  this.value = r.slice(1).map((i, s) => s < 3 ? Z.ToHex(new Uint8Array(Z.FromHex(i)).reverse()) : i).join("-");
12252
12252
  } else if (e.otherName.typeId === np)
12253
- this.type = ta, this.value = q.parse(e.otherName.value, Pe).toString();
12253
+ this.type = na, this.value = q.parse(e.otherName.value, Pe).toString();
12254
12254
  else
12255
12255
  throw new Error(Qd);
12256
12256
  else
@@ -12265,16 +12265,16 @@ class Kt extends nn {
12265
12265
  toTextObject() {
12266
12266
  let e;
12267
12267
  switch (this.type) {
12268
+ case Yo:
12268
12269
  case Zo:
12269
- case Jo:
12270
- case ea:
12271
- case Xo:
12272
- case Bi:
12273
12270
  case ta:
12274
12271
  case Qo:
12272
+ case Bi:
12273
+ case na:
12274
+ case ea:
12275
12275
  e = this.type.toUpperCase();
12276
12276
  break;
12277
- case Yo:
12277
+ case Xo:
12278
12278
  e = "Email";
12279
12279
  break;
12280
12280
  default:
@@ -12533,13 +12533,13 @@ class Xr extends at {
12533
12533
  super(e[0]);
12534
12534
  else if (typeof e[0] == "string") {
12535
12535
  const n = new un({ keyIdentifier: new pl(Z.FromHex(e[0])) });
12536
- super($a, e[1], q.serialize(n));
12536
+ super(ja, e[1], q.serialize(n));
12537
12537
  } else {
12538
12538
  const n = e[0], r = n.name instanceof Zr ? q.parse(n.name.rawData, Me) : n.name, i = new un({
12539
12539
  authorityCertIssuer: r,
12540
12540
  authorityCertSerialNumber: Z.FromHex(n.serialNumber)
12541
12541
  });
12542
- super($a, e[1], q.serialize(i));
12542
+ super(ja, e[1], q.serialize(i));
12543
12543
  }
12544
12544
  }
12545
12545
  onInit(e) {
@@ -12605,15 +12605,15 @@ class Ll extends at {
12605
12605
  constructor(...e) {
12606
12606
  if (z.isBufferSource(e[0])) {
12607
12607
  super(e[0]);
12608
- const n = q.parse(this.value, Go);
12608
+ const n = q.parse(this.value, Jo);
12609
12609
  this.usages = n.toNumber();
12610
12610
  } else {
12611
- const n = new Go(e[0]);
12611
+ const n = new Jo(e[0]);
12612
12612
  super(ph, e[1], q.serialize(n)), this.usages = e[0];
12613
12613
  }
12614
12614
  }
12615
12615
  toTextObject() {
12616
- const e = this.toTextObjectWithoutValue(), n = q.parse(this.value, Go);
12616
+ const e = this.toTextObjectWithoutValue(), n = q.parse(this.value, Jo);
12617
12617
  return e[""] = n.toJSON().join(", "), e;
12618
12618
  }
12619
12619
  }
@@ -12645,7 +12645,7 @@ class Fh extends at {
12645
12645
  }
12646
12646
  onInit(e) {
12647
12647
  super.onInit(e);
12648
- const n = q.parse(e.extnValue, Ha);
12648
+ const n = q.parse(e.extnValue, Ka);
12649
12649
  this.names = new Zr(n);
12650
12650
  }
12651
12651
  toTextObject() {
@@ -12674,7 +12674,7 @@ class Hh extends at {
12674
12674
  const r = q.parse(this.value, as);
12675
12675
  this.policies = r.map((i) => i.policyIdentifier);
12676
12676
  } else {
12677
- const r = e[0], i = (n = e[1]) !== null && n !== void 0 ? n : !1, s = new as(r.map((o) => new co({
12677
+ const r = e[0], i = (n = e[1]) !== null && n !== void 0 ? n : !1, s = new as(r.map((o) => new lo({
12678
12678
  policyIdentifier: o
12679
12679
  })));
12680
12680
  super(lh, i, q.serialize(s)), this.policies = r;
@@ -12698,10 +12698,10 @@ class Kh extends at {
12698
12698
  fullName: [new ie({ uniformResourceIdentifier: o })]
12699
12699
  })
12700
12700
  })), s = new Kn(i);
12701
- super(Pa, e[1], q.serialize(s));
12701
+ super(Ra, e[1], q.serialize(s));
12702
12702
  } else {
12703
12703
  const r = new Kn(e[0]);
12704
- super(Pa, e[1], q.serialize(r));
12704
+ super(Ra, e[1], q.serialize(r));
12705
12705
  }
12706
12706
  (n = this.distributionPoints) !== null && n !== void 0 || (this.distributionPoints = []);
12707
12707
  }
@@ -12727,10 +12727,10 @@ class Wh extends at {
12727
12727
  super(e[0]);
12728
12728
  else if (e[0] instanceof Fn) {
12729
12729
  const o = new Fn(e[0]);
12730
- super(Na, e[1], q.serialize(o));
12730
+ super($a, e[1], q.serialize(o));
12731
12731
  } else {
12732
12732
  const o = e[0], a = new Fn();
12733
- Pi(a, o, qu, "ocsp"), Pi(a, o, zu, "caIssuers"), Pi(a, o, Du, "timeStamping"), Pi(a, o, Fu, "caRepository"), super(Na, e[1], q.serialize(a));
12733
+ Pi(a, o, qu, "ocsp"), Pi(a, o, zu, "caIssuers"), Pi(a, o, Du, "timeStamping"), Pi(a, o, Fu, "caRepository"), super($a, e[1], q.serialize(a));
12734
12734
  }
12735
12735
  (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 = []);
12736
12736
  }
@@ -12855,7 +12855,7 @@ class Ul extends vr {
12855
12855
  }
12856
12856
  }
12857
12857
  Ul.NAME = "Extensions";
12858
- class Oo {
12858
+ class Bo {
12859
12859
  static register(e, n) {
12860
12860
  this.items.set(e, n);
12861
12861
  }
@@ -12864,7 +12864,7 @@ class Oo {
12864
12864
  return r ? new r(e) : n;
12865
12865
  }
12866
12866
  }
12867
- Oo.items = /* @__PURE__ */ new Map();
12867
+ Bo.items = /* @__PURE__ */ new Map();
12868
12868
  const Ai = "crypto.signatureFormatter";
12869
12869
  class Q0 {
12870
12870
  toAsnSignature(e, n) {
@@ -12875,13 +12875,13 @@ class Q0 {
12875
12875
  }
12876
12876
  }
12877
12877
  var Di;
12878
- let Pc = Di = class {
12878
+ let Rc = Di = class {
12879
12879
  static createPssParams(e, n) {
12880
12880
  const r = Di.getHashAlgorithm(e);
12881
12881
  return r ? new Cn({
12882
12882
  hashAlgorithm: r,
12883
12883
  maskGenAlgorithm: new K({
12884
- algorithm: xo,
12884
+ algorithm: So,
12885
12885
  parameters: q.serialize(r)
12886
12886
  }),
12887
12887
  saltLength: n
@@ -12906,7 +12906,7 @@ let Pc = Di = class {
12906
12906
  case "sha-1":
12907
12907
  return new K({ algorithm: xs, parameters: null });
12908
12908
  case "sha-256":
12909
- return new K({ algorithm: pc, parameters: null });
12909
+ return new K({ algorithm: fc, parameters: null });
12910
12910
  case "sha-384":
12911
12911
  return new K({ algorithm: Ss, parameters: null });
12912
12912
  case "sha-512":
@@ -12934,7 +12934,7 @@ let Pc = Di = class {
12934
12934
  return { name: "RSASSA-PKCS1-v1_5" };
12935
12935
  case xs:
12936
12936
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
12937
- case pc:
12937
+ case fc:
12938
12938
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-256" } };
12939
12939
  case Ss:
12940
12940
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-384" } };
@@ -12954,11 +12954,11 @@ let Pc = Di = class {
12954
12954
  return null;
12955
12955
  }
12956
12956
  };
12957
- Pc = Di = d([
12958
- Io()
12959
- ], Pc);
12960
- Re.registerSingleton(xi, Pc);
12961
- let Rc = class {
12957
+ Rc = Di = d([
12958
+ Co()
12959
+ ], Rc);
12960
+ Re.registerSingleton(xi, Rc);
12961
+ let Lc = class {
12962
12962
  toAsnAlgorithm(e) {
12963
12963
  switch (e.name.toLowerCase()) {
12964
12964
  case "sha-1":
@@ -12986,10 +12986,10 @@ let Rc = class {
12986
12986
  return null;
12987
12987
  }
12988
12988
  };
12989
- Rc = d([
12990
- Io()
12991
- ], Rc);
12992
- Re.registerSingleton(xi, Rc);
12989
+ Lc = d([
12990
+ Co()
12991
+ ], Lc);
12992
+ Re.registerSingleton(xi, Lc);
12993
12993
  class it {
12994
12994
  addPadding(e, n) {
12995
12995
  const r = z.toUint8Array(n), i = new Uint8Array(e);
@@ -13025,21 +13025,21 @@ class it {
13025
13025
  }
13026
13026
  it.namedCurveSize = /* @__PURE__ */ new Map();
13027
13027
  it.defaultNamedCurveSize = 32;
13028
- const na = "1.3.101.110", sp = "1.3.101.111", ra = "1.3.101.112", op = "1.3.101.113";
13029
- let Lc = class {
13028
+ const ra = "1.3.101.110", sp = "1.3.101.111", ia = "1.3.101.112", op = "1.3.101.113";
13029
+ let Uc = class {
13030
13030
  toAsnAlgorithm(e) {
13031
13031
  let n = null;
13032
13032
  switch (e.name.toLowerCase()) {
13033
13033
  case "ed25519":
13034
- n = ra;
13034
+ n = ia;
13035
13035
  break;
13036
13036
  case "x25519":
13037
- n = na;
13037
+ n = ra;
13038
13038
  break;
13039
13039
  case "eddsa":
13040
13040
  switch (e.namedCurve.toLowerCase()) {
13041
13041
  case "ed25519":
13042
- n = ra;
13042
+ n = ia;
13043
13043
  break;
13044
13044
  case "ed448":
13045
13045
  n = op;
@@ -13049,7 +13049,7 @@ let Lc = class {
13049
13049
  case "ecdh-es":
13050
13050
  switch (e.namedCurve.toLowerCase()) {
13051
13051
  case "x25519":
13052
- n = na;
13052
+ n = ra;
13053
13053
  break;
13054
13054
  case "x448":
13055
13055
  n = sp;
@@ -13062,11 +13062,11 @@ let Lc = class {
13062
13062
  }
13063
13063
  toWebAlgorithm(e) {
13064
13064
  switch (e.algorithm) {
13065
- case ra:
13065
+ case ia:
13066
13066
  return { name: "Ed25519" };
13067
13067
  case op:
13068
13068
  return { name: "EdDSA", namedCurve: "Ed448" };
13069
- case na:
13069
+ case ra:
13070
13070
  return { name: "X25519" };
13071
13071
  case sp:
13072
13072
  return { name: "ECDH-ES", namedCurve: "X448" };
@@ -13074,10 +13074,10 @@ let Lc = class {
13074
13074
  return null;
13075
13075
  }
13076
13076
  };
13077
- Lc = d([
13078
- Io()
13079
- ], Lc);
13080
- Re.registerSingleton(xi, Lc);
13077
+ Uc = d([
13078
+ Co()
13079
+ ], Uc);
13080
+ Re.registerSingleton(xi, Uc);
13081
13081
  class ey extends qt {
13082
13082
  constructor(e) {
13083
13083
  qt.isAsnEncoded(e) ? super(e, Gr) : super(e), this.tag = Xe.CertificateRequestTag;
@@ -13085,7 +13085,7 @@ class ey extends qt {
13085
13085
  onInit(e) {
13086
13086
  this.tbs = q.serialize(e.certificationRequestInfo), this.publicKey = new ht(e.certificationRequestInfo.subjectPKInfo);
13087
13087
  const n = Re.resolve(Nn);
13088
- this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => Oo.create(q.serialize(i)));
13088
+ this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((i) => Bo.create(q.serialize(i)));
13089
13089
  const r = this.getAttribute(Tl);
13090
13090
  this.extensions = [], r instanceof Ul && (this.extensions = r.items), this.subjectName = new rt(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
13091
13091
  }
@@ -13302,12 +13302,12 @@ ct.register(ch, Pl);
13302
13302
  ct.register(dh, Rl);
13303
13303
  ct.register(ph, Ll);
13304
13304
  ct.register(mh, Si);
13305
- ct.register($a, Xr);
13305
+ ct.register(ja, Xr);
13306
13306
  ct.register(gh, Fh);
13307
- ct.register(Pa, Kh);
13308
- ct.register(Na, Wh);
13309
- Oo.register(Uh, Gh);
13310
- Oo.register(Tl, Ul);
13307
+ ct.register(Ra, Kh);
13308
+ ct.register($a, Wh);
13309
+ Bo.register(Uh, Gh);
13310
+ Bo.register(Tl, Ul);
13311
13311
  Re.registerSingleton(Ai, Q0);
13312
13312
  Re.registerSingleton(Ai, it);
13313
13313
  it.namedCurveSize.set("P-256", 32);
@@ -13315,7 +13315,7 @@ it.namedCurveSize.set("K-256", 32);
13315
13315
  it.namedCurveSize.set("P-384", 48);
13316
13316
  it.namedCurveSize.set("P-521", 66);
13317
13317
  const cp = "0123456789abcdef";
13318
- function Uc(t) {
13318
+ function Vc(t) {
13319
13319
  const e = new Uint8Array(t);
13320
13320
  let n = "";
13321
13321
  for (let r = 0; r < e.length; r++) {
@@ -13487,13 +13487,13 @@ class ry {
13487
13487
  async function Yh(t) {
13488
13488
  return await crypto.subtle.digest("SHA-256", t);
13489
13489
  }
13490
- async function Vc(t) {
13490
+ async function Mc(t) {
13491
13491
  const e = {
13492
13492
  name: "RSASSA-PKCS1-v1_5",
13493
13493
  hash: "SHA-256",
13494
13494
  publicExponent: new Uint8Array([1, 0, 1]),
13495
13495
  modulusLength: 2048
13496
- }, n = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), r = Ve(), i = Uc(new TextEncoder().encode(r)), s = await ty.createSelfSigned({
13496
+ }, n = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), r = Ve(), i = Vc(new TextEncoder().encode(r)), s = await ty.createSelfSigned({
13497
13497
  serialNumber: i,
13498
13498
  name: t.name,
13499
13499
  notBefore: /* @__PURE__ */ new Date(),
@@ -13511,7 +13511,7 @@ async function Vc(t) {
13511
13511
  ),
13512
13512
  await Si.create(n.publicKey)
13513
13513
  ]
13514
- }), o = await crypto.subtle.exportKey("pkcs8", n.privateKey), a = s.toString("pem"), l = await sy(s), u = Uc(await s.getThumbprint()), p = iy("PRIVATE", o);
13514
+ }), o = await crypto.subtle.exportKey("pkcs8", n.privateKey), a = s.toString("pem"), l = await sy(s), u = Vc(await s.getThumbprint()), p = iy("PRIVATE", o);
13515
13515
  return {
13516
13516
  kid: s.serialNumber,
13517
13517
  cert: a,
@@ -13533,7 +13533,7 @@ function iy(t, e) {
13533
13533
  }
13534
13534
  async function sy(t) {
13535
13535
  const e = await t.publicKey.export(), n = await crypto.subtle.exportKey("jwk", e), r = JSON.stringify(n, Object.keys(n).sort()), s = new TextEncoder().encode(r);
13536
- return Uc(await Yh(s));
13536
+ return Vc(await Yh(s));
13537
13537
  }
13538
13538
  const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13539
13539
  D({
@@ -13627,7 +13627,7 @@ const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13627
13627
  await t.env.data.keys.update(r.kid, {
13628
13628
  revoked_at: new Date(Date.now() + oy).toISOString()
13629
13629
  });
13630
- const n = await Vc({
13630
+ const n = await Mc({
13631
13631
  name: `CN=${t.env.ORGANIZATION_NAME}`
13632
13632
  });
13633
13633
  return await t.env.data.keys.create(n), t.text("OK", { status: 201 });
@@ -13662,7 +13662,7 @@ const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13662
13662
  revoked_at: (/* @__PURE__ */ new Date()).toISOString()
13663
13663
  }))
13664
13664
  throw new $(404, { message: "Key not found" });
13665
- const r = await Vc({
13665
+ const r = await Mc({
13666
13666
  name: `CN=${t.env.ORGANIZATION_NAME}`
13667
13667
  });
13668
13668
  return await t.env.data.keys.create(r), t.text("OK");
@@ -13697,7 +13697,7 @@ const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13697
13697
  }
13698
13698
  }),
13699
13699
  async (t) => {
13700
- const { "tenant-id": e } = t.req.valid("header"), { email: n } = t.req.valid("query"), i = (await Zc(t.env.data.users, e, n)).filter((s) => !s.linked_to);
13700
+ const { "tenant-id": e } = t.req.valid("header"), { email: n } = t.req.valid("query"), i = (await zs(t.env.data.users, e, n)).filter((s) => !s.linked_to);
13701
13701
  return t.json(i);
13702
13702
  }
13703
13703
  ), ly = jn.extend({
@@ -13825,7 +13825,7 @@ const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13825
13825
  body: {
13826
13826
  content: {
13827
13827
  "application/json": {
13828
- schema: c.object(ma.shape).partial()
13828
+ schema: c.object(_a.shape).partial()
13829
13829
  }
13830
13830
  }
13831
13831
  },
@@ -13869,7 +13869,7 @@ const oy = 1e3 * 60 * 60 * 24, ay = new ue().openapi(
13869
13869
  body: {
13870
13870
  content: {
13871
13871
  "application/json": {
13872
- schema: c.object(ma.shape)
13872
+ schema: c.object(_a.shape)
13873
13873
  }
13874
13874
  }
13875
13875
  },
@@ -13910,7 +13910,7 @@ c.object({
13910
13910
  limit: c.number(),
13911
13911
  length: c.number()
13912
13912
  });
13913
- Wc.extend({
13913
+ Gc.extend({
13914
13914
  email: c.string(),
13915
13915
  login_count: c.number(),
13916
13916
  multifactor: c.array(c.string()).optional(),
@@ -14020,7 +14020,7 @@ const dy = jn.extend({
14020
14020
  body: {
14021
14021
  content: {
14022
14022
  "application/json": {
14023
- schema: c.object(ya.shape).partial()
14023
+ schema: c.object(va.shape).partial()
14024
14024
  }
14025
14025
  }
14026
14026
  },
@@ -14052,7 +14052,7 @@ const dy = jn.extend({
14052
14052
  body: {
14053
14053
  content: {
14054
14054
  "application/json": {
14055
- schema: c.object(ya.shape)
14055
+ schema: c.object(va.shape)
14056
14056
  }
14057
14057
  }
14058
14058
  }
@@ -14078,7 +14078,7 @@ const dy = jn.extend({
14078
14078
  return t.json(n, { status: 201 });
14079
14079
  }
14080
14080
  ), fy = jn.extend({
14081
- logs: c.array(wa)
14081
+ logs: c.array(ba)
14082
14082
  }), hy = new ue().openapi(
14083
14083
  D({
14084
14084
  tags: ["logs"],
@@ -14099,7 +14099,7 @@ const dy = jn.extend({
14099
14099
  200: {
14100
14100
  content: {
14101
14101
  "application/json": {
14102
- schema: c.union([c.array(wa), fy])
14102
+ schema: c.union([c.array(ba), fy])
14103
14103
  }
14104
14104
  },
14105
14105
  description: "List of log rows"
@@ -14138,7 +14138,7 @@ const dy = jn.extend({
14138
14138
  200: {
14139
14139
  content: {
14140
14140
  "application/json": {
14141
- schema: wa
14141
+ schema: ba
14142
14142
  }
14143
14143
  },
14144
14144
  description: "A log entry"
@@ -14202,7 +14202,7 @@ const dy = jn.extend({
14202
14202
  body: {
14203
14203
  content: {
14204
14204
  "application/json": {
14205
- schema: c.object(va.shape)
14205
+ schema: c.object(wa.shape)
14206
14206
  }
14207
14207
  }
14208
14208
  }
@@ -14242,7 +14242,7 @@ const dy = jn.extend({
14242
14242
  body: {
14243
14243
  content: {
14244
14244
  "application/json": {
14245
- schema: c.object(va.shape).omit({ hook_id: !0 }).partial()
14245
+ schema: c.object(wa.shape).omit({ hook_id: !0 }).partial()
14246
14246
  }
14247
14247
  }
14248
14248
  }
@@ -14466,7 +14466,7 @@ const dy = jn.extend({
14466
14466
  body: {
14467
14467
  content: {
14468
14468
  "application/json": {
14469
- schema: c.object(_a.shape).partial()
14469
+ schema: c.object(ya.shape).partial()
14470
14470
  }
14471
14471
  }
14472
14472
  },
@@ -14515,7 +14515,7 @@ const dy = jn.extend({
14515
14515
  body: {
14516
14516
  content: {
14517
14517
  "application/json": {
14518
- schema: c.object(_a.shape)
14518
+ schema: c.object(ya.shape)
14519
14519
  }
14520
14520
  }
14521
14521
  },
@@ -14562,7 +14562,7 @@ const dy = jn.extend({
14562
14562
  200: {
14563
14563
  content: {
14564
14564
  "application/json": {
14565
- schema: Fo
14565
+ schema: Ho
14566
14566
  }
14567
14567
  },
14568
14568
  description: "Branding settings"
@@ -14571,7 +14571,7 @@ const dy = jn.extend({
14571
14571
  }),
14572
14572
  async (t) => {
14573
14573
  const { "tenant-id": e } = t.req.valid("header"), n = await t.env.data.promptSettings.get(e);
14574
- return n ? t.json(n) : t.json(Fo.parse({}));
14574
+ return n ? t.json(n) : t.json(Ho.parse({}));
14575
14575
  }
14576
14576
  ).openapi(
14577
14577
  D({
@@ -14585,7 +14585,7 @@ const dy = jn.extend({
14585
14585
  body: {
14586
14586
  content: {
14587
14587
  "application/json": {
14588
- schema: c.object(Fo.shape).partial()
14588
+ schema: c.object(Ho.shape).partial()
14589
14589
  }
14590
14590
  }
14591
14591
  }
@@ -14718,7 +14718,7 @@ const xy = new ue().openapi(
14718
14718
  200: {
14719
14719
  content: {
14720
14720
  "application/json": {
14721
- schema: Ho
14721
+ schema: Ko
14722
14722
  }
14723
14723
  },
14724
14724
  description: "Email provider"
@@ -14743,7 +14743,7 @@ const xy = new ue().openapi(
14743
14743
  body: {
14744
14744
  content: {
14745
14745
  "application/json": {
14746
- schema: c.object(Ho.shape)
14746
+ schema: c.object(Ko.shape)
14747
14747
  }
14748
14748
  }
14749
14749
  }
@@ -14775,7 +14775,7 @@ const xy = new ue().openapi(
14775
14775
  body: {
14776
14776
  content: {
14777
14777
  "application/json": {
14778
- schema: c.object(Ho.shape).partial()
14778
+ schema: c.object(Ko.shape).partial()
14779
14779
  }
14780
14780
  }
14781
14781
  }
@@ -14817,7 +14817,7 @@ const xy = new ue().openapi(
14817
14817
  200: {
14818
14818
  content: {
14819
14819
  "application/json": {
14820
- schema: Jc
14820
+ schema: Zc
14821
14821
  }
14822
14822
  },
14823
14823
  description: "A session"
@@ -14990,7 +14990,7 @@ function Pn(t) {
14990
14990
  useragent: (r = t.header("user-agent")) == null ? void 0 : r.slice(0, 512)
14991
14991
  };
14992
14992
  }
14993
- const Ri = 60 * 5, Bo = 30 * 24 * 60 * 60, Qr = 24 * 60 * 60, Cy = "auth-token", Mc = 30 * 60 * 1e3, Ny = 5 * 60, $y = 5 * 60, jy = 30 * 60 * 1e3, Oy = 30 * 60 * 1e3, By = 24 * 60 * 60 * 1e3;
14993
+ const Ri = 60 * 5, To = 30 * 24 * 60 * 60, Qr = 24 * 60 * 60, Cy = "auth-token", qc = 30 * 60 * 1e3, Ny = 5 * 60, $y = 5 * 60, jy = 30 * 60 * 1e3, Oy = 30 * 60 * 1e3, By = 24 * 60 * 60 * 1e3;
14994
14994
  var up;
14995
14995
  (function(t) {
14996
14996
  t[t.Include = 0] = "Include", t[t.None = 1] = "None";
@@ -15359,7 +15359,7 @@ function Ur(t, e) {
15359
15359
  });
15360
15360
  return r.headers.set("Content-Type", "application/x-www-form-urlencoded"), r.headers.set("Accept", "application/json"), r.headers.set("User-Agent", "arctic"), r.headers.set("Content-Length", n.byteLength.toString()), r;
15361
15361
  }
15362
- function ia(t, e) {
15362
+ function sa(t, e) {
15363
15363
  const n = new TextEncoder().encode(`${t}:${e}`);
15364
15364
  return Ty(n);
15365
15365
  }
@@ -15510,7 +15510,7 @@ class Ml {
15510
15510
  i.set("grant_type", "authorization_code"), i.set("code", n), this.redirectURI !== null && i.set("redirect_uri", this.redirectURI), r !== null && i.set("code_verifier", r), this.clientPassword === null && i.set("client_id", this.clientId);
15511
15511
  const s = Ur(e, i);
15512
15512
  if (this.clientPassword !== null) {
15513
- const a = ia(this.clientId, this.clientPassword);
15513
+ const a = sa(this.clientId, this.clientPassword);
15514
15514
  s.headers.set("Authorization", `Basic ${a}`);
15515
15515
  }
15516
15516
  return await Rs(s);
@@ -15520,7 +15520,7 @@ class Ml {
15520
15520
  i.set("grant_type", "refresh_token"), i.set("refresh_token", n), this.clientPassword === null && i.set("client_id", this.clientId), r.length > 0 && i.set("scope", r.join(" "));
15521
15521
  const s = Ur(e, i);
15522
15522
  if (this.clientPassword !== null) {
15523
- const a = ia(this.clientId, this.clientPassword);
15523
+ const a = sa(this.clientId, this.clientPassword);
15524
15524
  s.headers.set("Authorization", `Basic ${a}`);
15525
15525
  }
15526
15526
  return await Rs(s);
@@ -15530,7 +15530,7 @@ class Ml {
15530
15530
  r.set("token", n), this.clientPassword === null && r.set("client_id", this.clientId);
15531
15531
  const i = Ur(e, r);
15532
15532
  if (this.clientPassword !== null) {
15533
- const s = ia(this.clientId, this.clientPassword);
15533
+ const s = sa(this.clientId, this.clientPassword);
15534
15534
  i.headers.set("Authorization", `Basic ${s}`);
15535
15535
  }
15536
15536
  await Fy(i);
@@ -15800,7 +15800,7 @@ const sv = {
15800
15800
  RS256: "SHA-256",
15801
15801
  RS384: "SHA-384",
15802
15802
  RS512: "SHA-512"
15803
- }, To = c.object({
15803
+ }, Po = c.object({
15804
15804
  iss: c.string().url(),
15805
15805
  sub: c.string(),
15806
15806
  aud: c.string(),
@@ -15826,7 +15826,7 @@ const sv = {
15826
15826
  c_hash: c.string().optional()
15827
15827
  // Code hash
15828
15828
  }).passthrough();
15829
- To.omit({
15829
+ Po.omit({
15830
15830
  iat: !0,
15831
15831
  auth_time: !0,
15832
15832
  nonce: !0,
@@ -15879,7 +15879,7 @@ async function cv(t, e, n) {
15879
15879
  ).validateAuthorizationCode(n), a = zl(o.idToken());
15880
15880
  if (!a)
15881
15881
  throw new Error("Invalid ID token");
15882
- const l = To.parse(a.payload);
15882
+ const l = Po.parse(a.payload);
15883
15883
  return {
15884
15884
  sub: l.sub,
15885
15885
  email: l.email,
@@ -15976,7 +15976,7 @@ async function hv(t, e, n, r) {
15976
15976
  const a = zl(o.idToken());
15977
15977
  if (!a)
15978
15978
  throw new Error("Invalid ID token");
15979
- const l = To.parse(a.payload);
15979
+ const l = Po.parse(a.payload);
15980
15980
  return {
15981
15981
  sub: l.sub,
15982
15982
  email: l.email,
@@ -16033,7 +16033,7 @@ async function _v(t, e, n) {
16033
16033
  ), o = zl(s.idToken());
16034
16034
  if (!o)
16035
16035
  throw new Error("Invalid ID token");
16036
- const a = To.parse(o.payload);
16036
+ const a = Po.parse(o.payload);
16037
16037
  if (typeof a.msn != "string")
16038
16038
  throw new Error("msn not available in id token");
16039
16039
  const l = await fetch(
@@ -16066,7 +16066,7 @@ function cg(t, e) {
16066
16066
  throw new Error(`Strategy ${e} not found`);
16067
16067
  return i;
16068
16068
  }
16069
- async function Po(t, e) {
16069
+ async function Ro(t, e) {
16070
16070
  const n = await t.data.clients.get(e);
16071
16071
  if (!n)
16072
16072
  throw new $(403, { message: "Client not found" });
@@ -16108,7 +16108,7 @@ async function Po(t, e) {
16108
16108
  }
16109
16109
  };
16110
16110
  }
16111
- function Ro(t, e = [], n = {}) {
16111
+ function Lo(t, e = [], n = {}) {
16112
16112
  try {
16113
16113
  const r = new URL(t);
16114
16114
  return e.some((i) => {
@@ -16203,14 +16203,14 @@ function ug(t, e) {
16203
16203
  path: "/",
16204
16204
  httpOnly: !0,
16205
16205
  secure: !0,
16206
- maxAge: Bo
16206
+ maxAge: To
16207
16207
  };
16208
16208
  return lg(Dl(t), e, {
16209
16209
  ...n,
16210
16210
  sameSite: "none"
16211
16211
  });
16212
16212
  }
16213
- var Fl = {}, Lo = {};
16213
+ var Fl = {}, Uo = {};
16214
16214
  (function(t) {
16215
16215
  const e = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", r = "[" + e + "][" + n + "]*", i = new RegExp("^" + r + "$"), s = function(a, l) {
16216
16216
  const u = [];
@@ -16241,8 +16241,8 @@ var Fl = {}, Lo = {};
16241
16241
  }, t.getValue = function(a) {
16242
16242
  return t.isExist(a) ? a : "";
16243
16243
  }, t.isName = o, t.getAllMatches = s, t.nameRegexp = r;
16244
- })(Lo);
16245
- const Hl = Lo, Av = {
16244
+ })(Uo);
16245
+ const Hl = Uo, Av = {
16246
16246
  allowBooleanAttributes: !1,
16247
16247
  //A tag can have attributes without any value
16248
16248
  unpairedTags: []
@@ -16533,7 +16533,7 @@ class Pv {
16533
16533
  }
16534
16534
  }
16535
16535
  var Rv = Pv;
16536
- const Lv = Lo;
16536
+ const Lv = Uo;
16537
16537
  function Uv(t, e) {
16538
16538
  const n = {};
16539
16539
  if (t[e + 3] === "O" && t[e + 4] === "C" && t[e + 5] === "T" && t[e + 6] === "Y" && t[e + 7] === "P" && t[e + 8] === "E") {
@@ -16640,7 +16640,7 @@ function Qv(t) {
16640
16640
  } : () => !1;
16641
16641
  }
16642
16642
  var pg = Qv;
16643
- const fg = Lo, Er = Rv, ew = Kv, tw = Xv, nw = pg;
16643
+ const fg = Uo, Er = Rv, ew = Kv, tw = Xv, nw = pg;
16644
16644
  let rw = class {
16645
16645
  constructor(e) {
16646
16646
  this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -16681,7 +16681,7 @@ function sw(t, e, n, r, i, s, o) {
16681
16681
  if (t !== void 0 && (this.options.trimValues && !r && (t = t.trim()), t.length > 0)) {
16682
16682
  o || (t = this.replaceEntitiesValue(t));
16683
16683
  const a = this.options.tagValueProcessor(e, t, n, i, s);
16684
- return a == null ? t : typeof a != typeof t || a !== t ? a : this.options.trimValues ? zc(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? zc(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
16684
+ return a == null ? t : typeof a != typeof t || a !== t ? a : this.options.trimValues ? Dc(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? Dc(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
16685
16685
  }
16686
16686
  }
16687
16687
  function ow(t) {
@@ -16706,7 +16706,7 @@ function cw(t, e, n) {
16706
16706
  if (this.options.transformAttributeName && (u = this.options.transformAttributeName(u)), u === "__proto__" && (u = "#__proto__"), l !== void 0) {
16707
16707
  this.options.trimValues && (l = l.trim()), l = this.replaceEntitiesValue(l);
16708
16708
  const p = this.options.attributeValueProcessor(a, l, e);
16709
- p == null ? s[u] = l : typeof p != typeof l || p !== l ? s[u] = p : s[u] = zc(
16709
+ p == null ? s[u] = l : typeof p != typeof l || p !== l ? s[u] = p : s[u] = Dc(
16710
16710
  l,
16711
16711
  this.options.parseAttributeValue,
16712
16712
  this.options.numberParseOptions
@@ -16743,7 +16743,7 @@ const lw = function(t) {
16743
16743
  let p = 0;
16744
16744
  u && this.options.unpairedTags.indexOf(u) !== -1 ? (p = i.lastIndexOf(".", i.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : p = i.lastIndexOf("."), i = i.substring(0, p), n = this.tagsNodeStack.pop(), r = "", s = a;
16745
16745
  } else if (t[s + 1] === "?") {
16746
- let a = qc(t, s, !1, "?>");
16746
+ let a = zc(t, s, !1, "?>");
16747
16747
  if (!a) throw new Error("Pi Tag is not closed.");
16748
16748
  if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && a.tagName === "?xml" || this.options.ignorePiTags)) {
16749
16749
  const l = new Er(a.tagName);
@@ -16766,7 +16766,7 @@ const lw = function(t) {
16766
16766
  let u = this.parseTextData(l, n.tagname, i, !0, !1, !0, !0);
16767
16767
  u == null && (u = ""), this.options.cdataPropName ? n.add(this.options.cdataPropName, [{ [this.options.textNodeName]: l }]) : n.add(this.options.textNodeName, u), s = a + 2;
16768
16768
  } else {
16769
- let a = qc(t, s, this.options.removeNSPrefix), l = a.tagName;
16769
+ let a = zc(t, s, this.options.removeNSPrefix), l = a.tagName;
16770
16770
  const u = a.rawTagName;
16771
16771
  let p = a.tagExp, h = a.attrExpPresent, m = a.closeIndex;
16772
16772
  this.options.transformTagName && (l = this.options.transformTagName(l)), n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, i, !1));
@@ -16871,7 +16871,7 @@ function dn(t, e, n, r) {
16871
16871
  throw new Error(r);
16872
16872
  return i + e.length - 1;
16873
16873
  }
16874
- function qc(t, e, n, r = ">") {
16874
+ function zc(t, e, n, r = ">") {
16875
16875
  const i = hw(t, e + 1, r);
16876
16876
  if (!i) return;
16877
16877
  let s = i.data;
@@ -16911,11 +16911,11 @@ function gw(t, e, n) {
16911
16911
  else if (t.substr(n + 1, 2) === "![")
16912
16912
  n = dn(t, "]]>", n, "StopNode is not closed.") - 2;
16913
16913
  else {
16914
- const s = qc(t, n, ">");
16914
+ const s = zc(t, n, ">");
16915
16915
  s && ((s && s.tagName) === e && s.tagExp[s.tagExp.length - 1] !== "/" && i++, n = s.closeIndex);
16916
16916
  }
16917
16917
  }
16918
- function zc(t, e, n) {
16918
+ function Dc(t, e, n) {
16919
16919
  if (e && typeof t == "string") {
16920
16920
  const r = t.trim();
16921
16921
  return r === "true" ? !0 : r === "false" ? !1 : tw(t, n);
@@ -17567,7 +17567,7 @@ async function Kw(t, e, n) {
17567
17567
  const r = await t.env.data.tenants.get(e);
17568
17568
  if (!r)
17569
17569
  throw new Error(`Tenant not found: ${e}`);
17570
- return Uo(t, {
17570
+ return Vo(t, {
17571
17571
  client: {
17572
17572
  id: t.env.ISSUER,
17573
17573
  tenant: r,
@@ -17643,7 +17643,7 @@ function Jw(t, e) {
17643
17643
  };
17644
17644
  }
17645
17645
  const Sp = ["sub", "iss", "aud", "exp", "nbf", "iat", "jti"];
17646
- async function Uo(t, e) {
17646
+ async function Vo(t, e) {
17647
17647
  var _, w;
17648
17648
  const { authParams: n, user: r, client: i, session_id: s } = e, a = (await t.env.data.keys.list()).filter(
17649
17649
  (S) => !S.revoked_at || new Date(S.revoked_at) > /* @__PURE__ */ new Date()
@@ -17740,7 +17740,7 @@ async function Zw(t, e) {
17740
17740
  session_id: s,
17741
17741
  client_id: n.id,
17742
17742
  expires_at: new Date(
17743
- Date.now() + Bo * 1e3
17743
+ Date.now() + To * 1e3
17744
17744
  ).toISOString(),
17745
17745
  user_id: e.user.user_id,
17746
17746
  device: {
@@ -17767,7 +17767,7 @@ async function yg(t, e) {
17767
17767
  id: Ve(),
17768
17768
  user_id: n.user_id,
17769
17769
  idle_expires_at: new Date(
17770
- Date.now() + Bo * 1e3
17770
+ Date.now() + To * 1e3
17771
17771
  ).toISOString(),
17772
17772
  device: {
17773
17773
  last_ip: t.req.header("x-real-ip") || "",
@@ -17842,7 +17842,7 @@ async function sn(t, e) {
17842
17842
  u,
17843
17843
  l
17844
17844
  );
17845
- const p = await Uo(t, {
17845
+ const p = await Vo(t, {
17846
17846
  authParams: n,
17847
17847
  user: u,
17848
17848
  client: i,
@@ -17883,7 +17883,7 @@ function Yw(t) {
17883
17883
  return async (e, n) => {
17884
17884
  if (!n.email || !n.email_verified)
17885
17885
  return t.users.create(e, n);
17886
- const r = await zs({
17886
+ const r = await Ds({
17887
17887
  userAdapter: t.users,
17888
17888
  tenant_id: e,
17889
17889
  email: n.email
@@ -17901,7 +17901,7 @@ function Xw(t, e) {
17901
17901
  };
17902
17902
  }
17903
17903
  async function vg(t, e, n, r) {
17904
- if (e.disable_sign_ups && !await zs({
17904
+ if (e.disable_sign_ups && !await Ds({
17905
17905
  userAdapter: t.env.data.users,
17906
17906
  tenant_id: e.tenant.id,
17907
17907
  email: r
@@ -17972,7 +17972,7 @@ async function Ap(t, { code: e, state: n }) {
17972
17972
  );
17973
17973
  if (!s)
17974
17974
  throw new $(403, { message: "Session not found" });
17975
- const o = await Po(
17975
+ const o = await Ro(
17976
17976
  r,
17977
17977
  s.authParams.client_id
17978
17978
  );
@@ -17994,7 +17994,7 @@ async function Ap(t, { code: e, state: n }) {
17994
17994
  });
17995
17995
  throw await r.data.logs.create(o.tenant.id, _), new $(403, { message: "Redirect URI not defined" });
17996
17996
  }
17997
- if (!Ro(
17997
+ if (!Lo(
17998
17998
  s.authParams.redirect_uri,
17999
17999
  o.callbacks || [],
18000
18000
  { allowPathWildcards: !0 }
@@ -18216,7 +18216,7 @@ const tb = new ue().openapi(
18216
18216
  const s = n || t.req.header("referer");
18217
18217
  if (!s)
18218
18218
  return t.text("OK");
18219
- if (!Ro(
18219
+ if (!Lo(
18220
18220
  s,
18221
18221
  [
18222
18222
  ...r.allowed_logout_urls || [],
@@ -18459,7 +18459,7 @@ async function sb(t, e) {
18459
18459
  client_id: n.id,
18460
18460
  scope: e.scope,
18461
18461
  audience: e.audience
18462
- }, i = await Uo(t, { authParams: r, client: n });
18462
+ }, i = await Vo(t, { authParams: r, client: n });
18463
18463
  return t.json(i);
18464
18464
  }
18465
18465
  const ob = c.object({
@@ -18735,7 +18735,7 @@ function Zl(t) {
18735
18735
  /[0-9]/.test(t) && // At least one number
18736
18736
  /[^A-Za-z0-9]/.test(t);
18737
18737
  }
18738
- async function Vo(t, e) {
18738
+ async function Mo(t, e) {
18739
18739
  var i;
18740
18740
  const n = await t.env.data.emailProviders.get(t.var.tenant_id) || // Fallback to default tenant
18741
18741
  (t.env.DEFAULT_TENANT_ID ? await t.env.data.emailProviders.get(t.env.DEFAULT_TENANT_ID) : null);
@@ -18758,7 +18758,7 @@ async function kg(t, e, n, r) {
18758
18758
  vendorName: i.name,
18759
18759
  lng: i.language || "en"
18760
18760
  };
18761
- await Vo(t, {
18761
+ await Mo(t, {
18762
18762
  to: e,
18763
18763
  subject: "Reset your password",
18764
18764
  html: `Click here to reset your password: ${Et(t.env)}reset-password?state=${r}&code=${n}`,
@@ -18790,7 +18790,7 @@ async function xg(t, e, n) {
18790
18790
  code: n,
18791
18791
  lng: r.language || "en"
18792
18792
  };
18793
- await Vo(t, {
18793
+ await Mo(t, {
18794
18794
  to: e,
18795
18795
  subject: fe("code_email_subject", i),
18796
18796
  html: `Click here to validate your email: ${Et(t.env)}validate-email`,
@@ -18834,7 +18834,7 @@ async function Yl(t, e, n, r) {
18834
18834
  code: n,
18835
18835
  lng: i.language || "en"
18836
18836
  };
18837
- await Vo(t, {
18837
+ await Mo(t, {
18838
18838
  to: e,
18839
18839
  subject: fe("code_email_subject", o),
18840
18840
  html: `Click here to validate your email: ${Et(t.env)}validate-email`,
@@ -18870,7 +18870,7 @@ async function Xl(t, e) {
18870
18870
  vendorName: n.name,
18871
18871
  lng: n.language || "en"
18872
18872
  };
18873
- await Vo(t, {
18873
+ await Mo(t, {
18874
18874
  to: e.email,
18875
18875
  subject: "Validate your email address",
18876
18876
  html: `Click here to validate your email: ${Et(t.env)}validate-email`,
@@ -19066,7 +19066,7 @@ async function Ql(t, e, n, r, i, s) {
19066
19066
  return t.redirect(
19067
19067
  `${Et(t.env)}invalid-session?state=${l.login_id}`
19068
19068
  );
19069
- if (n.redirect_uri && !Ro(n.redirect_uri, e.callbacks, {
19069
+ if (n.redirect_uri && !Lo(n.redirect_uri, e.callbacks, {
19070
19070
  allowPathWildcards: !0
19071
19071
  }))
19072
19072
  throw new $(400, {
@@ -19079,7 +19079,11 @@ async function Ql(t, e, n, r, i, s) {
19079
19079
  provider: "email"
19080
19080
  });
19081
19081
  if (!p) {
19082
- if (e.disable_sign_ups)
19082
+ if (e.disable_sign_ups && !(await zs(
19083
+ t.env.data.users,
19084
+ e.tenant.id,
19085
+ r
19086
+ )).length)
19083
19087
  throw new $(400, {
19084
19088
  message: "User not found"
19085
19089
  });
@@ -19135,13 +19139,13 @@ const gb = new ue().openapi(
19135
19139
  t.set("client_id", a.id), t.set("tenant_id", a.tenant.id);
19136
19140
  const l = await n.data.logins.create(a.tenant.id, {
19137
19141
  authParams: { ...o, client_id: r, username: i },
19138
- expires_at: new Date(Date.now() + Mc).toISOString(),
19142
+ expires_at: new Date(Date.now() + qc).toISOString(),
19139
19143
  ...Pn(t.req)
19140
19144
  }), u = await n.data.codes.create(a.tenant.id, {
19141
19145
  code_id: or(),
19142
19146
  code_type: "otp",
19143
19147
  login_id: l.login_id,
19144
- expires_at: new Date(Date.now() + Mc).toISOString()
19148
+ expires_at: new Date(Date.now() + qc).toISOString()
19145
19149
  });
19146
19150
  return s === "link" ? await Yl(t, i, u.code_id, { ...o, client_id: r }) : await xg(t, i, u.code_id), t.html("OK");
19147
19151
  }
@@ -19181,7 +19185,7 @@ const gb = new ue().openapi(
19181
19185
  audience: l,
19182
19186
  response_type: u,
19183
19187
  nonce: p
19184
- } = t.req.valid("query"), h = await Po(e, n);
19188
+ } = t.req.valid("query"), h = await Ro(e, n);
19185
19189
  return t.set("client_id", h.id), t.set("tenant_id", h.tenant.id), t.set("connection", "email"), Ql(
19186
19190
  t,
19187
19191
  h,
@@ -19301,7 +19305,7 @@ async function mb(t, e, n, r) {
19301
19305
  provider: "auth2"
19302
19306
  });
19303
19307
  if (!i) {
19304
- if (!(await Zc(
19308
+ if (!(await zs(
19305
19309
  t.env.data.users,
19306
19310
  e.tenant.id,
19307
19311
  n
@@ -19440,17 +19444,17 @@ function yb(t, e) {
19440
19444
  var r, i, s;
19441
19445
  if (!t || e.length === 0)
19442
19446
  return !1;
19443
- const n = ((r = sa(t)) == null ? void 0 : r.host) ?? null;
19447
+ const n = ((r = oa(t)) == null ? void 0 : r.host) ?? null;
19444
19448
  if (!n)
19445
19449
  return !1;
19446
19450
  for (const o of e) {
19447
19451
  let a;
19448
- if (o.startsWith("http://") || o.startsWith("https://") ? a = ((i = sa(o)) == null ? void 0 : i.host) ?? null : a = ((s = sa("https://" + o)) == null ? void 0 : s.host) ?? null, n === a)
19452
+ if (o.startsWith("http://") || o.startsWith("https://") ? a = ((i = oa(o)) == null ? void 0 : i.host) ?? null : a = ((s = oa("https://" + o)) == null ? void 0 : s.host) ?? null, n === a)
19449
19453
  return !0;
19450
19454
  }
19451
19455
  return !1;
19452
19456
  }
19453
- function sa(t) {
19457
+ function oa(t) {
19454
19458
  try {
19455
19459
  return new URL(t);
19456
19460
  } catch {
@@ -19622,7 +19626,7 @@ async function kb({
19622
19626
  const w = await h.data.users.get(e.tenant.id, n.user_id);
19623
19627
  if (w) {
19624
19628
  t.set("username", w.email), t.set("connection", w.connection);
19625
- const S = await Uo(t, {
19629
+ const S = await Vo(t, {
19626
19630
  client: e,
19627
19631
  authParams: {
19628
19632
  client_id: e.id,
@@ -19640,7 +19644,7 @@ async function kb({
19640
19644
  await h.data.sessions.update(e.tenant.id, n.id, {
19641
19645
  used_at: (/* @__PURE__ */ new Date()).toISOString(),
19642
19646
  expires_at: new Date(
19643
- Date.now() + Bo * 1e3
19647
+ Date.now() + To * 1e3
19644
19648
  ).toISOString()
19645
19649
  });
19646
19650
  const N = xe(t, {
@@ -19693,7 +19697,7 @@ const xb = new ue().openapi(
19693
19697
  nonce: c.string().optional(),
19694
19698
  max_age: c.string().optional(),
19695
19699
  login_ticket: c.string().optional(),
19696
- code_challenge_method: c.nativeEnum(Gc).optional(),
19700
+ code_challenge_method: c.nativeEnum(Jc).optional(),
19697
19701
  code_challenge: c.string().optional(),
19698
19702
  realm: c.string().optional(),
19699
19703
  auth0Client: c.string().optional(),
@@ -19732,7 +19736,7 @@ const xb = new ue().openapi(
19732
19736
  ui_locales: T
19733
19737
  } = t.req.valid("query");
19734
19738
  t.set("log", "authorize");
19735
- const L = await Po(e, n);
19739
+ const L = await Ro(e, n);
19736
19740
  t.set("client_id", L.id), t.set("tenant_id", L.tenant.id);
19737
19741
  const ne = {
19738
19742
  redirect_uri: i,
@@ -19754,7 +19758,7 @@ const xb = new ue().openapi(
19754
19758
  throw new $(403, {
19755
19759
  message: `Origin ${ge} not allowed`
19756
19760
  });
19757
- if (ne.redirect_uri && !Ro(ne.redirect_uri, L.callbacks || [], {
19761
+ if (ne.redirect_uri && !Lo(ne.redirect_uri, L.callbacks || [], {
19758
19762
  allowPathWildcards: !0
19759
19763
  }))
19760
19764
  throw new $(400, {
@@ -19897,7 +19901,7 @@ var Ab = {
19897
19901
  }
19898
19902
  }
19899
19903
  return n[0] += t[t.length - 1], n.length === 1 ? "callbacks" in n ? gt(Ag(gt(n[0], n.callbacks))) : gt(n[0]) : Sg(n, n.callbacks);
19900
- }, tu = Symbol("RENDERER"), Dc = Symbol("ERROR_HANDLER"), Ee = Symbol("STASH"), Eg = Symbol("INTERNAL"), Cb = Symbol("MEMO"), Vs = Symbol("PERMALINK"), $p = (t) => (t[Eg] = !0, t), Ig = (t) => ({ value: e, children: n }) => {
19904
+ }, tu = Symbol("RENDERER"), Fc = Symbol("ERROR_HANDLER"), Ee = Symbol("STASH"), Eg = Symbol("INTERNAL"), Cb = Symbol("MEMO"), Vs = Symbol("PERMALINK"), $p = (t) => (t[Eg] = !0, t), Ig = (t) => ({ value: e, children: n }) => {
19901
19905
  if (!n)
19902
19906
  return;
19903
19907
  const r = {
@@ -19917,7 +19921,7 @@ var Ab = {
19917
19921
  props: {}
19918
19922
  });
19919
19923
  const i = { tag: "", props: r, type: "" };
19920
- return i[Dc] = (s) => {
19924
+ return i[Fc] = (s) => {
19921
19925
  throw t.pop(), s;
19922
19926
  }, i;
19923
19927
  }, Cg = (t) => {
@@ -19941,7 +19945,7 @@ var Ab = {
19941
19945
  style: ["data-href"],
19942
19946
  link: ["href"],
19943
19947
  meta: ["name", "httpEquiv", "charset", "itemProp"]
19944
- }, Fc = {}, Wi = "data-precedence", Ei = (t) => Array.isArray(t) ? t : [t], jp = /* @__PURE__ */ new WeakMap(), Op = (t, e, n, r) => ({ buffer: i, context: s }) => {
19948
+ }, Hc = {}, Wi = "data-precedence", Ei = (t) => Array.isArray(t) ? t : [t], jp = /* @__PURE__ */ new WeakMap(), Op = (t, e, n, r) => ({ buffer: i, context: s }) => {
19945
19949
  if (!i)
19946
19950
  return;
19947
19951
  const o = jp.get(s) || {};
@@ -20010,7 +20014,7 @@ var Ab = {
20010
20014
  const n = nu();
20011
20015
  return n && wr(n) === "head" ? Ii("meta", t, e) : Ci("meta", t, e, !1);
20012
20016
  }, Ng = (t, { children: e, ...n }) => new mt(t, n, Ei(e ?? [])), Pb = (t) => (typeof t.action == "function" && (t.action = Vs in t.action ? t.action[Vs] : void 0), Ng("form", t)), $g = (t, e) => (typeof e.formAction == "function" && (e.formAction = Vs in e.formAction ? e.formAction[Vs] : void 0), Ng(t, e)), Rb = (t) => $g("input", t), Lb = (t) => $g("button", t);
20013
- const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20017
+ const aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20014
20018
  __proto__: null,
20015
20019
  button: Lb,
20016
20020
  form: Pb,
@@ -20163,7 +20167,7 @@ var Ub = /* @__PURE__ */ new Map([
20163
20167
  }
20164
20168
  t[0] += ">", ru(r, t), t[0] += `</${e}>`;
20165
20169
  }
20166
- }, aa = class extends mt {
20170
+ }, ca = class extends mt {
20167
20171
  toStringToBuffer(t) {
20168
20172
  const { children: e } = this, n = this.tag.call(null, {
20169
20173
  ...this.props,
@@ -20194,16 +20198,16 @@ var Ub = /* @__PURE__ */ new Map([
20194
20198
  return i.key = r, i;
20195
20199
  }, Bp = !1, Gi = (t, e, n) => {
20196
20200
  if (!Bp) {
20197
- for (const r in Fc)
20198
- oa[r][tu] = Fc[r];
20201
+ for (const r in Hc)
20202
+ aa[r][tu] = Hc[r];
20199
20203
  Bp = !0;
20200
20204
  }
20201
- return typeof t == "function" ? new aa(t, e, n) : oa[t] ? new aa(
20202
- oa[t],
20205
+ return typeof t == "function" ? new ca(t, e, n) : aa[t] ? new ca(
20206
+ aa[t],
20203
20207
  e,
20204
20208
  n
20205
20209
  ) : t === "svg" || t === "head" ? (ni || (ni = Nb("")), new mt(t, e, [
20206
- new aa(
20210
+ new ca(
20207
20211
  ni,
20208
20212
  {
20209
20213
  value: t
@@ -20272,7 +20276,7 @@ async function We(t, e) {
20272
20276
  if (!r)
20273
20277
  throw new $(400, { message: "Session not found" });
20274
20278
  t.set("login", r);
20275
- const i = await Po(n, r.authParams.client_id);
20279
+ const i = await Ro(n, r.authParams.client_id);
20276
20280
  t.set("client_id", i.id), t.set("tenant_id", i.tenant.id);
20277
20281
  const s = await n.data.tenants.get(i.tenant.id);
20278
20282
  if (!s)
@@ -20299,7 +20303,7 @@ async function We(t, e) {
20299
20303
  async function Fb(t, e, n, r) {
20300
20304
  if (r !== void 0)
20301
20305
  return r === "password";
20302
- const i = await zs({
20306
+ const i = await Ds({
20303
20307
  userAdapter: t.env.data.users,
20304
20308
  tenant_id: e.tenant.id,
20305
20309
  email: n
@@ -20896,7 +20900,7 @@ const s1 = new ue().openapi(
20896
20900
  n
20897
20901
  );
20898
20902
  t.set("client_id", i.id);
20899
- const a = r.username, l = await zs({
20903
+ const a = r.username, l = await Ds({
20900
20904
  userAdapter: e.data.users,
20901
20905
  tenant_id: i.tenant.id,
20902
20906
  email: a
@@ -20945,7 +20949,7 @@ const s1 = new ue().openapi(
20945
20949
  code_id: u,
20946
20950
  code_type: "otp",
20947
20951
  login_id: s.login_id,
20948
- expires_at: new Date(Date.now() + Mc).toISOString()
20952
+ expires_at: new Date(Date.now() + qc).toISOString()
20949
20953
  });
20950
20954
  return i1(s.auth0Client) === "link" && !r.username.includes("online.no") ? tt(
20951
20955
  t,
@@ -20971,17 +20975,17 @@ var ii = "_hp", o1 = {
20971
20975
  }, a1 = {
20972
20976
  svg: "2000/svg",
20973
20977
  math: "1998/Math/MathML"
20974
- }, si = [], Hc = /* @__PURE__ */ new WeakMap(), cr = void 0, c1 = () => cr, Bt = (t) => "t" in t, ca = {
20978
+ }, si = [], Kc = /* @__PURE__ */ new WeakMap(), cr = void 0, c1 = () => cr, Bt = (t) => "t" in t, la = {
20975
20979
  onClick: ["click", !1]
20976
20980
  }, Up = (t) => {
20977
20981
  if (!t.startsWith("on"))
20978
20982
  return;
20979
- if (ca[t])
20980
- return ca[t];
20983
+ if (la[t])
20984
+ return la[t];
20981
20985
  const e = t.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);
20982
20986
  if (e) {
20983
20987
  const [, n, r] = e;
20984
- return ca[t] = [(o1[n] || n).toLowerCase(), !!r];
20988
+ return la[t] = [(o1[n] || n).toLowerCase(), !!r];
20985
20989
  }
20986
20990
  }, Vp = (t, e) => cr && t instanceof SVGElement && /[A-Z]/.test(e) && (e in t.style || e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e, l1 = (t, e, n) => {
20987
20991
  var r;
@@ -21001,7 +21005,7 @@ var ii = "_hp", o1 = {
21001
21005
  t.innerHTML = s.__html;
21002
21006
  else if (i === "ref") {
21003
21007
  let a;
21004
- typeof s == "function" ? a = s(t) || (() => s(null)) : s && "current" in s && (s.current = t, a = () => s.current = null), Hc.set(t, a);
21008
+ typeof s == "function" ? a = s(t) || (() => s(null)) : s && "current" in s && (s.current = t, a = () => s.current = null), Kc.set(t, a);
21005
21009
  } else if (i === "style") {
21006
21010
  const a = t.style;
21007
21011
  typeof s == "string" ? a.cssText = s : (a.cssText = "", s != null && jg(s, a.setProperty.bind(a)));
@@ -21029,7 +21033,7 @@ var ii = "_hp", o1 = {
21029
21033
  if (i !== "children" && !(i in e)) {
21030
21034
  i = Ms(i);
21031
21035
  const o = Up(i);
21032
- o ? t.removeEventListener(o[0], s, o[1]) : i === "ref" ? (r = Hc.get(t)) == null || r() : t.removeAttribute(Vp(t, i));
21036
+ o ? t.removeEventListener(o[0], s, o[1]) : i === "ref" ? (r = Kc.get(t)) == null || r() : t.removeAttribute(Vp(t, i));
21033
21037
  }
21034
21038
  }
21035
21039
  }, u1 = (t, e) => {
@@ -21072,7 +21076,7 @@ var ii = "_hp", o1 = {
21072
21076
  Bt(t) || ((n = (e = t[Ee]) == null ? void 0 : e[1][Vg]) == null || n.forEach((a) => {
21073
21077
  var l;
21074
21078
  return (l = a[2]) == null ? void 0 : l.call(a);
21075
- }), (r = Hc.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((a) => a.p = 2)), (s = t.vC) == null || s.forEach(Rg)), t.p || ((o = t.e) == null || o.remove(), delete t.e), typeof t.tag == "function" && (jr.delete(t), Ji.delete(t), delete t[Ee][3], t.a = !0);
21079
+ }), (r = Kc.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((a) => a.p = 2)), (s = t.vC) == null || s.forEach(Rg)), t.p || ((o = t.e) == null || o.remove(), delete t.e), typeof t.tag == "function" && (jr.delete(t), Ji.delete(t), delete t[Ee][3], t.a = !0);
21076
21080
  }, Lg = (t, e, n) => {
21077
21081
  t.c = e, Ug(t, e, n);
21078
21082
  }, Mp = (t, e) => {
@@ -21114,13 +21118,13 @@ var ii = "_hp", o1 = {
21114
21118
  h.forEach((m) => m());
21115
21119
  });
21116
21120
  }
21117
- }, Ji = /* @__PURE__ */ new WeakMap(), Kc = (t, e, n) => {
21121
+ }, Ji = /* @__PURE__ */ new WeakMap(), Wc = (t, e, n) => {
21118
21122
  var s, o, a, l, u, p;
21119
21123
  const r = !n && e.pC;
21120
21124
  n && (e.pC || (e.pC = e.vC));
21121
21125
  let i;
21122
21126
  try {
21123
- n || (n = typeof e.tag == "function" ? u1(t, e) : Ei(e.props.children)), ((s = n[0]) == null ? void 0 : s.tag) === "" && n[0][Dc] && (i = n[0][Dc], t[5].push([t, i, e]));
21127
+ n || (n = typeof e.tag == "function" ? u1(t, e) : Ei(e.props.children)), ((s = n[0]) == null ? void 0 : s.tag) === "" && n[0][Fc] && (i = n[0][Fc], t[5].push([t, i, e]));
21124
21128
  const h = r ? [...e.pC] : e.vC ? [...e.vC] : void 0, m = [];
21125
21129
  let v;
21126
21130
  for (let f = 0; f < n.length; f++) {
@@ -21146,7 +21150,7 @@ var ii = "_hp", o1 = {
21146
21150
  const S = wr(cr);
21147
21151
  S && (_.n = S);
21148
21152
  }
21149
- if (!Bt(_) && !_.s && (Kc(t, _), delete _.f), m.push(_), v && !v.s && !_.s)
21153
+ if (!Bt(_) && !_.s && (Wc(t, _), delete _.f), m.push(_), v && !v.s && !_.s)
21150
21154
  for (let S = v; S && !Bt(S); S = (u = S.vC) == null ? void 0 : u.at(-1))
21151
21155
  S.nN = _;
21152
21156
  v = _;
@@ -21174,7 +21178,7 @@ var ii = "_hp", o1 = {
21174
21178
  if (S) {
21175
21179
  if (t[0] === 1)
21176
21180
  t[1] = !0;
21177
- else if (Kc(t, f, [S]), (v.length === 1 || t !== m) && f.c) {
21181
+ else if (Wc(t, f, [S]), (v.length === 1 || t !== m) && f.c) {
21178
21182
  Lg(f, f.c, !1);
21179
21183
  return;
21180
21184
  }
@@ -21219,7 +21223,7 @@ var ii = "_hp", o1 = {
21219
21223
  i.values.push(s);
21220
21224
  });
21221
21225
  try {
21222
- Kc(t, e, void 0);
21226
+ Wc(t, e, void 0);
21223
21227
  } catch {
21224
21228
  return;
21225
21229
  }
@@ -21259,13 +21263,13 @@ var ii = "_hp", o1 = {
21259
21263
  key: n,
21260
21264
  e,
21261
21265
  p: 1
21262
- }), la = 0, Vg = 1, ua = 2, da = 3, pa = /* @__PURE__ */ new WeakMap(), Mg = (t, e) => !t || !e || t.length !== e.length || e.some((n, r) => n !== t[r]), h1 = void 0, Fp = [], g1 = (t) => {
21266
+ }), ua = 0, Vg = 1, da = 2, pa = 3, fa = /* @__PURE__ */ new WeakMap(), Mg = (t, e) => !t || !e || t.length !== e.length || e.some((n, r) => n !== t[r]), h1 = void 0, Fp = [], g1 = (t) => {
21263
21267
  var o;
21264
21268
  const e = () => typeof t == "function" ? t() : t, n = si.at(-1);
21265
21269
  if (!n)
21266
21270
  return [e(), () => {
21267
21271
  }];
21268
- const [, r] = n, i = (o = r[Ee][1])[la] || (o[la] = []), s = r[Ee][0]++;
21272
+ const [, r] = n, i = (o = r[Ee][1])[ua] || (o[ua] = []), s = r[Ee][0]++;
21269
21273
  return i[s] || (i[s] = [
21270
21274
  e(),
21271
21275
  (a) => {
@@ -21295,25 +21299,25 @@ var ii = "_hp", o1 = {
21295
21299
  const n = si.at(-1);
21296
21300
  if (!n)
21297
21301
  return t;
21298
- const [, r] = n, i = (a = r[Ee][1])[ua] || (a[ua] = []), s = r[Ee][0]++, o = i[s];
21302
+ const [, r] = n, i = (a = r[Ee][1])[da] || (a[da] = []), s = r[Ee][0]++, o = i[s];
21299
21303
  return Mg(o == null ? void 0 : o[1], e) ? i[s] = [t, e] : t = i[s][0], t;
21300
21304
  }, m1 = (t) => {
21301
- const e = pa.get(t);
21305
+ const e = fa.get(t);
21302
21306
  if (e) {
21303
21307
  if (e.length === 2)
21304
21308
  throw e[1];
21305
21309
  return e[0];
21306
21310
  }
21307
21311
  throw t.then(
21308
- (n) => pa.set(t, [n]),
21309
- (n) => pa.set(t, [void 0, n])
21312
+ (n) => fa.set(t, [n]),
21313
+ (n) => fa.set(t, [void 0, n])
21310
21314
  ), t;
21311
21315
  }, _1 = (t, e) => {
21312
21316
  var a;
21313
21317
  const n = si.at(-1);
21314
21318
  if (!n)
21315
21319
  return t();
21316
- const [, r] = n, i = (a = r[Ee][1])[da] || (a[da] = []), s = r[Ee][0]++, o = i[s];
21320
+ const [, r] = n, i = (a = r[Ee][1])[pa] || (a[pa] = []), s = r[Ee][0]++, o = i[s];
21317
21321
  return Mg(o == null ? void 0 : o[1], e) && (i[s] = [t(), e]), i[s][0];
21318
21322
  }, y1 = Cg({
21319
21323
  pending: !1,
@@ -21516,7 +21520,7 @@ var ii = "_hp", o1 = {
21516
21520
  ref: n.ref
21517
21521
  };
21518
21522
  }, E1 = (t) => zg("input", t), I1 = (t) => zg("button", t);
21519
- Object.assign(Fc, {
21523
+ Object.assign(Hc, {
21520
21524
  title: w1,
21521
21525
  script: b1,
21522
21526
  style: k1,
@@ -21753,7 +21757,7 @@ const Dg = (t) => {
21753
21757
  ]
21754
21758
  }
21755
21759
  );
21756
- }, fa = (t) => {
21760
+ }, ha = (t) => {
21757
21761
  const { error: e, vendorSettings: n, email: r, state: i } = t, s = new URLSearchParams({
21758
21762
  state: i
21759
21763
  });
@@ -21844,7 +21848,7 @@ const Dg = (t) => {
21844
21848
  throw new $(400, { message: "Username required" });
21845
21849
  return t.html(
21846
21850
  /* @__PURE__ */ y(
21847
- fa,
21851
+ ha,
21848
21852
  {
21849
21853
  vendorSettings: n,
21850
21854
  email: i.authParams.username,
@@ -21902,7 +21906,7 @@ const Dg = (t) => {
21902
21906
  const u = l;
21903
21907
  return u.code === "INVALID_PASSWORD" || u.code === "USER_NOT_FOUND" ? t.html(
21904
21908
  /* @__PURE__ */ y(
21905
- fa,
21909
+ ha,
21906
21910
  {
21907
21911
  vendorSettings: i,
21908
21912
  email: a,
@@ -21923,7 +21927,7 @@ const Dg = (t) => {
21923
21927
  400
21924
21928
  ) : t.html(
21925
21929
  /* @__PURE__ */ y(
21926
- fa,
21930
+ ha,
21927
21931
  {
21928
21932
  vendorSettings: i,
21929
21933
  email: a,
@@ -23523,41 +23527,41 @@ function nB(t) {
23523
23527
  managementApp: n,
23524
23528
  oauthApp: r,
23525
23529
  universalApp: i,
23526
- createX509Certificate: Vc
23530
+ createX509Certificate: Mc
23527
23531
  };
23528
23532
  }
23529
23533
  export {
23530
23534
  Pm as Auth0Client,
23531
23535
  mn as AuthorizationResponseMode,
23532
23536
  gn as AuthorizationResponseType,
23533
- Gc as CodeChallengeMethod,
23537
+ Jc as CodeChallengeMethod,
23534
23538
  Vi as GrantType,
23535
23539
  ve as LogTypes,
23536
- ma as applicationInsertSchema,
23540
+ _a as applicationInsertSchema,
23537
23541
  Dn as applicationSchema,
23538
23542
  Ot as auth0UserResponseSchema,
23539
23543
  Xp as authParamsSchema,
23540
- Wc as baseUserSchema,
23544
+ Gc as baseUserSchema,
23541
23545
  Vm as bordersSchema,
23542
23546
  Cu as brandingSchema,
23543
23547
  $m as codeInsertSchema,
23544
23548
  Y8 as codeSchema,
23545
23549
  Nm as codeTypeSchema,
23546
23550
  Mm as colorsSchema,
23547
- _a as connectionInsertSchema,
23551
+ ya as connectionInsertSchema,
23548
23552
  cn as connectionSchema,
23549
23553
  jm as customDomainInsertSchema,
23550
23554
  X8 as customDomainSchema,
23551
- Ho as emailProviderSchema,
23555
+ Ko as emailProviderSchema,
23552
23556
  Mn as fontDetailsSchema,
23553
23557
  qm as fontsSchema,
23554
- va as hookInsertSchema,
23558
+ wa as hookInsertSchema,
23555
23559
  $r as hookSchema,
23556
23560
  Sm as identitySchema,
23557
23561
  nB as init,
23558
23562
  Om as jwksKeySchema,
23559
23563
  Qp as jwksSchema,
23560
- wa as logSchema,
23564
+ ba as logSchema,
23561
23565
  Bm as loginInsertSchema,
23562
23566
  Q8 as loginSchema,
23563
23567
  Nu as openIDConfigurationSchema,
@@ -23566,20 +23570,20 @@ export {
23566
23570
  Rm as passwordInsertSchema,
23567
23571
  e5 as passwordSchema,
23568
23572
  xm as profileDataSchema,
23569
- Fo as promptSettingSchema,
23573
+ Ho as promptSettingSchema,
23570
23574
  tf as refreshTokenInsertSchema,
23571
23575
  n5 as refreshTokenSchema,
23572
23576
  Im as samlpAddon,
23573
23577
  Lm as sessionInsertSchema,
23574
- Jc as sessionSchema,
23578
+ Zc as sessionSchema,
23575
23579
  $u as signingKeySchema,
23576
- ya as tenantInsertSchema,
23580
+ va as tenantInsertSchema,
23577
23581
  Br as tenantSchema,
23578
23582
  Fm as themeInsertSchema,
23579
23583
  t5 as themeSchema,
23580
23584
  Um as tokenResponseSchema,
23581
23585
  jn as totalsSchema,
23582
- ga as userInsertSchema,
23586
+ ma as userInsertSchema,
23583
23587
  Z8 as userResponseSchema,
23584
23588
  Yp as userSchema,
23585
23589
  Cm as vendorSettingsSchema,