authhero 0.79.0 → 0.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/authhero.mjs CHANGED
@@ -2,7 +2,7 @@ var am = Object.defineProperty;
2
2
  var cm = (t, e, n) => e in t ? am(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var te = (t, e, n) => cm(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { z as a, OpenAPIHono as le, createRoute as M } from "@hono/zod-openapi";
5
- const re = (t) => typeof t == "string", br = () => {
5
+ const re = (t) => typeof t == "string", kr = () => {
6
6
  let t, e;
7
7
  const n = new Promise((r, i) => {
8
8
  t = r, e = i;
@@ -1179,7 +1179,7 @@ class Vr extends qs {
1179
1179
  return e.store[p](...arguments), e;
1180
1180
  };
1181
1181
  });
1182
- const l = br(), u = () => {
1182
+ const l = kr(), u = () => {
1183
1183
  const p = (h, m) => {
1184
1184
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(m), r(h, m);
1185
1185
  };
@@ -1207,7 +1207,7 @@ class Vr extends qs {
1207
1207
  r(null);
1208
1208
  }
1209
1209
  reloadResources(e, n, r) {
1210
- const i = br();
1210
+ const i = kr();
1211
1211
  return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = ji), this.services.backendConnector.reload(e, n, (s) => {
1212
1212
  i.resolve(), r(s);
1213
1213
  }), i;
@@ -1230,7 +1230,7 @@ class Vr extends qs {
1230
1230
  changeLanguage(e, n) {
1231
1231
  var r = this;
1232
1232
  this.isLanguageChangingTo = e;
1233
- const i = br();
1233
+ const i = kr();
1234
1234
  this.emit("languageChanging", e);
1235
1235
  const s = (l) => {
1236
1236
  this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
@@ -1303,7 +1303,7 @@ class Vr extends qs {
1303
1303
  return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!i || o(s, e)));
1304
1304
  }
1305
1305
  loadNamespaces(e, n) {
1306
- const r = br();
1306
+ const r = kr();
1307
1307
  return this.options.ns ? (re(e) && (e = [e]), e.forEach((i) => {
1308
1308
  this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1309
1309
  }), this.loadResources((i) => {
@@ -1311,7 +1311,7 @@ class Vr extends qs {
1311
1311
  }), r) : (n && n(), Promise.resolve());
1312
1312
  }
1313
1313
  loadLanguages(e, n) {
1314
- const r = br();
1314
+ const r = kr();
1315
1315
  re(e) && (e = [e]);
1316
1316
  const i = this.options.preload || [], s = e.filter((o) => i.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
1317
1317
  return s.length ? (this.options.preload = i.concat(s), this.loadResources((o) => {
@@ -1503,7 +1503,7 @@ const $m = a.object({
1503
1503
  disable_sign_ups: a.boolean().optional().default(!1).openapi({
1504
1504
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
1505
1505
  })
1506
- }), zn = a.object({
1506
+ }), Dn = a.object({
1507
1507
  created_at: a.string().transform((t) => t === null ? "" : t),
1508
1508
  updated_at: a.string().transform((t) => t === null ? "" : t),
1509
1509
  ...ya.shape
@@ -1601,7 +1601,7 @@ const Qp = a.object({
1601
1601
  manageSubscriptionsUrl: a.string().optional()
1602
1602
  });
1603
1603
  a.object({
1604
- ...zn.shape,
1604
+ ...Dn.shape,
1605
1605
  tenant: Or,
1606
1606
  connections: a.array(ln)
1607
1607
  });
@@ -1645,7 +1645,7 @@ const Bm = a.enum([
1645
1645
  "null"
1646
1646
  ]).optional(),
1647
1647
  domain_metadata: a.record(a.string().max(255)).optional()
1648
- }), kr = a.object({
1648
+ }), Vn = a.object({
1649
1649
  ...ef.shape,
1650
1650
  custom_domain_id: a.string(),
1651
1651
  primary: a.boolean(),
@@ -1901,19 +1901,19 @@ const zm = a.object({
1901
1901
  success: a.string(),
1902
1902
  widget_background: a.string(),
1903
1903
  widget_border: a.string()
1904
- }), Vn = a.object({
1904
+ }), Mn = a.object({
1905
1905
  bold: a.boolean(),
1906
1906
  size: a.number()
1907
1907
  }), Fm = a.object({
1908
- body_text: Vn,
1909
- buttons_text: Vn,
1908
+ body_text: Mn,
1909
+ buttons_text: Mn,
1910
1910
  font_url: a.string(),
1911
- input_labels: Vn,
1912
- links: Vn,
1911
+ input_labels: Mn,
1912
+ links: Mn,
1913
1913
  links_style: a.enum(["normal"]),
1914
1914
  reference_text_size: a.number(),
1915
- subtitle: Vn,
1916
- title: Vn
1915
+ subtitle: Mn,
1916
+ title: Mn
1917
1917
  }), Hm = a.object({
1918
1918
  background_color: a.string(),
1919
1919
  background_image_url: a.string(),
@@ -5939,7 +5939,7 @@ const Zt = a.object({
5939
5939
  description: "A lucene query string used to filter the results"
5940
5940
  })
5941
5941
  });
5942
- function ar(t) {
5942
+ function cr(t) {
5943
5943
  if (!t)
5944
5944
  return;
5945
5945
  const [e, n] = t.split(":"), r = n === "1" ? "asc" : "desc";
@@ -6012,7 +6012,7 @@ const qu = jn.extend({
6012
6012
  page: e,
6013
6013
  per_page: n,
6014
6014
  include_totals: r,
6015
- sort: ar(i),
6015
+ sort: cr(i),
6016
6016
  q: c.join(" ")
6017
6017
  }), u = l.users.filter((p) => !p.linked_to);
6018
6018
  return r ? t.json(
@@ -6544,7 +6544,7 @@ var zu;
6544
6544
  if (H(B) || (B = wt(B)), !me(I))
6545
6545
  throw new TypeError();
6546
6546
  H(B) || (B = wt(B));
6547
- var q = wr(
6547
+ var q = br(
6548
6548
  I,
6549
6549
  B,
6550
6550
  /*Create*/
@@ -6583,7 +6583,7 @@ var zu;
6583
6583
  return Ne(ee) ? !1 : x(A, ee, B);
6584
6584
  }
6585
6585
  function k(A, I, B) {
6586
- var q = wr(
6586
+ var q = br(
6587
6587
  I,
6588
6588
  B,
6589
6589
  /*Create*/
@@ -6600,7 +6600,7 @@ var zu;
6600
6600
  return O(A, ee, B);
6601
6601
  }
6602
6602
  function U(A, I, B) {
6603
- var q = wr(
6603
+ var q = br(
6604
6604
  I,
6605
6605
  B,
6606
6606
  /*Create*/
@@ -6610,7 +6610,7 @@ var zu;
6610
6610
  return q.OrdinaryGetOwnMetadata(A, I, B);
6611
6611
  }
6612
6612
  function Q(A, I, B, q) {
6613
- var ee = wr(
6613
+ var ee = br(
6614
6614
  B,
6615
6615
  q,
6616
6616
  /*Create*/
@@ -6638,7 +6638,7 @@ var zu;
6638
6638
  return Ie;
6639
6639
  }
6640
6640
  function se(A, I) {
6641
- var B = wr(
6641
+ var B = br(
6642
6642
  A,
6643
6643
  I,
6644
6644
  /*create*/
@@ -6985,7 +6985,7 @@ var zu;
6985
6985
  };
6986
6986
  return oe;
6987
6987
  }
6988
- function wr(A, I, B) {
6988
+ function br(A, I, B) {
6989
6989
  var q = w.getProvider(A, I);
6990
6990
  if (!H(q))
6991
6991
  return q;
@@ -7514,7 +7514,7 @@ function xf(t, e) {
7514
7514
  /*!
7515
7515
  Copyright (c) Peculiar Ventures, LLC
7516
7516
  */
7517
- function Wn(t, e) {
7517
+ function Gn(t, e) {
7518
7518
  let n = 0;
7519
7519
  if (t.length === 1)
7520
7520
  return t[0];
@@ -7565,10 +7565,10 @@ function Sf() {
7565
7565
  for (let c = 0; c < this.valueHex.byteLength; c++)
7566
7566
  n[c] = 0;
7567
7567
  n[0] = t[0] & 128;
7568
- const r = Wn(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
7568
+ const r = Gn(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
7569
7569
  for (let c = 0; c < this.valueHex.byteLength; c++)
7570
7570
  s[c] = t[c];
7571
- return s[0] &= 127, Wn(s, 8) - r;
7571
+ return s[0] &= 127, Gn(s, 8) - r;
7572
7572
  }
7573
7573
  function cy(t) {
7574
7574
  const e = t < 0 ? t * -1 : t;
@@ -7836,7 +7836,7 @@ class If extends Ct($n) {
7836
7836
  const h = new Uint8Array(l);
7837
7837
  for (let m = 0; m < l; m++)
7838
7838
  h[m] = u[m];
7839
- u = this.valueHexView = new Uint8Array(l), u.set(h), this.blockLength <= 9 ? this.tagNumber = Wn(u, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
7839
+ u = this.valueHexView = new Uint8Array(l), u.set(h), this.blockLength <= 9 ? this.tagNumber = Gn(u, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
7840
7840
  }
7841
7841
  if (this.tagClass === 1 && this.isConstructed)
7842
7842
  switch (this.tagNumber) {
@@ -7891,7 +7891,7 @@ class Cf extends $n {
7891
7891
  if (o + 1 > s.length)
7892
7892
  return this.error = "End of input reached before message was fully decoded", -1;
7893
7893
  const c = n + 1, l = i.subarray(c, c + o);
7894
- return l[o - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Wn(l, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = o + 1, n + this.blockLength;
7894
+ return l[o - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Gn(l, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = o + 1, n + this.blockLength;
7895
7895
  }
7896
7896
  toBER(e = !1) {
7897
7897
  let n, r;
@@ -8017,7 +8017,7 @@ function yy(t, e) {
8017
8017
  const n = new e();
8018
8018
  return n.idBlock = t.idBlock, n.lenBlock = t.lenBlock, n.warnings = t.warnings, n.valueBeforeDecodeView = t.valueBeforeDecodeView, n;
8019
8019
  }
8020
- function cr(t, e = 0, n = t.length) {
8020
+ function lr(t, e = 0, n = t.length) {
8021
8021
  const r = e;
8022
8022
  let i = new Te({}, Me);
8023
8023
  const s = new $n();
@@ -8173,7 +8173,7 @@ function cr(t, e = 0, n = t.length) {
8173
8173
  result: i
8174
8174
  };
8175
8175
  }
8176
- function Fn(t) {
8176
+ function Hn(t) {
8177
8177
  if (!t.byteLength) {
8178
8178
  const e = new Te({}, Me);
8179
8179
  return e.error = "Input buffer has zero length", {
@@ -8181,7 +8181,7 @@ function Fn(t) {
8181
8181
  result: e
8182
8182
  };
8183
8183
  }
8184
- return cr(D.toUint8Array(t).slice(), 0, t.byteLength);
8184
+ return lr(D.toUint8Array(t).slice(), 0, t.byteLength);
8185
8185
  }
8186
8186
  function vy(t, e) {
8187
8187
  return t ? 1 : e;
@@ -8198,7 +8198,7 @@ class Wt extends Me {
8198
8198
  return this.warnings.push("Zero buffer length"), n;
8199
8199
  let s = n;
8200
8200
  for (; vy(this.isIndefiniteForm, r) > 0; ) {
8201
- const o = cr(i, s, r);
8201
+ const o = lr(i, s, r);
8202
8202
  if (o.offset === -1)
8203
8203
  return this.error = o.result.error, this.warnings.concat(o.result.warnings), -1;
8204
8204
  if (s = o.offset, this.blockLength += o.result.blockLength, r -= o.result.blockLength, this.value.push(o.result), this.isIndefiniteForm && o.result.constructor.NAME === qr)
@@ -8393,7 +8393,7 @@ let hn = class Mf extends Te {
8393
8393
  const s = (e instanceof ArrayBuffer ? new Uint8Array(e) : e).subarray(n, n + r);
8394
8394
  try {
8395
8395
  if (s.byteLength) {
8396
- const o = cr(s, 0, s.byteLength);
8396
+ const o = lr(s, 0, s.byteLength);
8397
8397
  o.offset !== -1 && o.offset === r && (this.valueBlock.value = [o.result]);
8398
8398
  }
8399
8399
  } catch {
@@ -8453,7 +8453,7 @@ class qf extends Ct(Wt) {
8453
8453
  const c = o.subarray(1);
8454
8454
  try {
8455
8455
  if (c.byteLength) {
8456
- const l = cr(c, 0, c.byteLength);
8456
+ const l = lr(c, 0, c.byteLength);
8457
8457
  l.offset !== -1 && l.offset === r - 1 && (this.value = [l.result]);
8458
8458
  }
8459
8459
  } catch {
@@ -8721,7 +8721,7 @@ class Ca extends Ct(Me) {
8721
8721
  const o = new Uint8Array(this.blockLength);
8722
8722
  for (let c = 0; c < this.blockLength; c++)
8723
8723
  o[c] = this.valueHexView[c];
8724
- return this.valueHexView = o, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Wn(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
8724
+ return this.valueHexView = o, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Gn(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
8725
8725
  }
8726
8726
  set valueBigInt(e) {
8727
8727
  rs();
@@ -8896,7 +8896,7 @@ class Na extends Ct($n) {
8896
8896
  const o = new Uint8Array(this.blockLength);
8897
8897
  for (let c = 0; c < this.blockLength; c++)
8898
8898
  o[c] = this.valueHexView[c];
8899
- return this.valueHexView = o, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Wn(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
8899
+ return this.valueHexView = o, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Gn(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
8900
8900
  }
8901
8901
  toBER(e) {
8902
8902
  if (this.isHexOnly) {
@@ -9657,7 +9657,7 @@ function dn(t, e, n) {
9657
9657
  };
9658
9658
  }
9659
9659
  if (n.primitiveSchema && Hu in e.valueBlock) {
9660
- const s = cr(e.valueBlock.valueHexView);
9660
+ const s = lr(e.valueBlock.valueHexView);
9661
9661
  if (s.offset === -1) {
9662
9662
  const o = {
9663
9663
  verified: !1,
@@ -9678,7 +9678,7 @@ function xy(t, e) {
9678
9678
  verified: !1,
9679
9679
  result: { error: "Wrong ASN.1 schema type" }
9680
9680
  };
9681
- const n = cr(D.toUint8Array(t));
9681
+ const n = lr(D.toUint8Array(t));
9682
9682
  return n.offset === -1 ? {
9683
9683
  verified: !1,
9684
9684
  result: n.result
@@ -9728,7 +9728,7 @@ const kh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9728
9728
  ViewWriter: Gs,
9729
9729
  VisibleString: ci,
9730
9730
  compareSchema: dn,
9731
- fromBER: Fn,
9731
+ fromBER: Hn,
9732
9732
  verifySchema: xy
9733
9733
  }, Symbol.toStringTag, { value: "Module" }));
9734
9734
  var P;
@@ -9806,7 +9806,7 @@ const Sy = {
9806
9806
  toASN: (t) => {
9807
9807
  if (t === null)
9808
9808
  return new vn();
9809
- const e = Fn(t);
9809
+ const e = Hn(t);
9810
9810
  if (e.result.error)
9811
9811
  throw new Error(e.result.error);
9812
9812
  return e.result;
@@ -10052,7 +10052,7 @@ class Wu extends Error {
10052
10052
  }
10053
10053
  class Wy {
10054
10054
  static parse(e, n) {
10055
- const r = Fn(e);
10055
+ const r = Hn(e);
10056
10056
  if (r.result.error)
10057
10057
  throw new Error(r.result.error);
10058
10058
  return this.fromASN(r.result, n);
@@ -10105,7 +10105,7 @@ class Wy {
10105
10105
  if (p.implicit) {
10106
10106
  const v = p.repeated === "sequence" ? Pt : Rt, f = new v();
10107
10107
  f.valueBlock = u.valueBlock;
10108
- const _ = Fn(f.toBER(!1));
10108
+ const _ = Hn(f.toBER(!1));
10109
10109
  if (_.offset === -1)
10110
10110
  throw new Error(`Cannot parse the child item. ${_.result.error}`);
10111
10111
  if (!("value" in _.result.valueBlock && Array.isArray(_.result.valueBlock.value)))
@@ -10126,7 +10126,7 @@ class Wy {
10126
10126
  throw new Error(`Cannot get '${_}' class from asn1js module`);
10127
10127
  f = new w();
10128
10128
  }
10129
- f.valueBlock = v.valueBlock, v = Fn(f.toBER(!1)).result;
10129
+ f.valueBlock = v.valueBlock, v = Hn(f.toBER(!1)).result;
10130
10130
  }
10131
10131
  c[l] = m.fromASN(v);
10132
10132
  }
@@ -10265,7 +10265,7 @@ class z {
10265
10265
  return Wy.parse(e, n);
10266
10266
  }
10267
10267
  static toString(e) {
10268
- const n = D.isBufferSource(e) ? D.toArrayBuffer(e) : z.serialize(e), r = Fn(n);
10268
+ const n = D.isBufferSource(e) ? D.toArrayBuffer(e) : z.serialize(e), r = Hn(n);
10269
10269
  if (r.offset === -1)
10270
10270
  throw new Error(`Cannot decode ASN.1 data. ${r.result.error}`);
10271
10271
  return r.result.toString();
@@ -10821,7 +10821,7 @@ d([
10821
10821
  Pe = d([
10822
10822
  R({ type: P.Choice })
10823
10823
  ], Pe);
10824
- let Gn = class extends Pe {
10824
+ let Jn = class extends Pe {
10825
10825
  constructor(e = {}) {
10826
10826
  super(e), Object.assign(this, e);
10827
10827
  }
@@ -10831,39 +10831,39 @@ let Gn = class extends Pe {
10831
10831
  };
10832
10832
  d([
10833
10833
  g({ type: b.IA5String })
10834
- ], Gn.prototype, "ia5String", void 0);
10834
+ ], Jn.prototype, "ia5String", void 0);
10835
10835
  d([
10836
10836
  g({ type: b.Any })
10837
- ], Gn.prototype, "anyValue", void 0);
10838
- Gn = d([
10837
+ ], Jn.prototype, "anyValue", void 0);
10838
+ Jn = d([
10839
10839
  R({ type: P.Choice })
10840
- ], Gn);
10840
+ ], Jn);
10841
10841
  class po {
10842
10842
  constructor(e = {}) {
10843
- this.type = "", this.value = new Gn(), Object.assign(this, e);
10843
+ this.type = "", this.value = new Jn(), Object.assign(this, e);
10844
10844
  }
10845
10845
  }
10846
10846
  d([
10847
10847
  g({ type: b.ObjectIdentifier })
10848
10848
  ], po.prototype, "type", void 0);
10849
10849
  d([
10850
- g({ type: Gn })
10850
+ g({ type: Jn })
10851
10851
  ], po.prototype, "value", void 0);
10852
- let Jn = ja = class extends he {
10852
+ let Zn = ja = class extends he {
10853
10853
  constructor(e) {
10854
10854
  super(e), Object.setPrototypeOf(this, ja.prototype);
10855
10855
  }
10856
10856
  };
10857
- Jn = ja = d([
10857
+ Zn = ja = d([
10858
10858
  R({ type: P.Set, itemType: po })
10859
- ], Jn);
10859
+ ], Zn);
10860
10860
  let Ba = $a = class extends he {
10861
10861
  constructor(e) {
10862
10862
  super(e), Object.setPrototypeOf(this, $a.prototype);
10863
10863
  }
10864
10864
  };
10865
10865
  Ba = $a = d([
10866
- R({ type: P.Sequence, itemType: Jn })
10866
+ R({ type: P.Sequence, itemType: Zn })
10867
10867
  ], Ba);
10868
10868
  let Se = Oa = class extends Ba {
10869
10869
  constructor(e) {
@@ -10934,7 +10934,7 @@ d([
10934
10934
  ie = d([
10935
10935
  R({ type: P.Choice })
10936
10936
  ], ie);
10937
- const vl = "1.3.6.1.5.5.7", Jy = `${vl}.1`, lr = `${vl}.3`, fo = `${vl}.48`, Zu = `${fo}.1`, Yu = `${fo}.2`, Xu = `${fo}.3`, Qu = `${fo}.5`, rn = "2.5.29";
10937
+ const vl = "1.3.6.1.5.5.7", Jy = `${vl}.1`, ur = `${vl}.3`, fo = `${vl}.48`, Zu = `${fo}.1`, Yu = `${fo}.2`, Xu = `${fo}.3`, Qu = `${fo}.5`, rn = "2.5.29";
10938
10938
  var Ta;
10939
10939
  const Pa = `${Jy}.1`;
10940
10940
  class ui {
@@ -10948,14 +10948,14 @@ d([
10948
10948
  d([
10949
10949
  g({ type: ie })
10950
10950
  ], ui.prototype, "accessLocation", void 0);
10951
- let Dn = Ta = class extends he {
10951
+ let Fn = Ta = class extends he {
10952
10952
  constructor(e) {
10953
10953
  super(e), Object.setPrototypeOf(this, Ta.prototype);
10954
10954
  }
10955
10955
  };
10956
- Dn = Ta = d([
10956
+ Fn = Ta = d([
10957
10957
  R({ type: P.Sequence, itemType: ui })
10958
- ], Dn);
10958
+ ], Fn);
10959
10959
  const Ra = `${rn}.35`;
10960
10960
  class wl extends ce {
10961
10961
  }
@@ -11140,41 +11140,41 @@ d([
11140
11140
  g({ type: ie, context: 0, repeated: "sequence", implicit: !0 })
11141
11141
  ], bn.prototype, "fullName", void 0);
11142
11142
  d([
11143
- g({ type: Jn, context: 1, implicit: !0 })
11143
+ g({ type: Zn, context: 1, implicit: !0 })
11144
11144
  ], bn.prototype, "nameRelativeToCRLIssuer", void 0);
11145
11145
  bn = d([
11146
11146
  R({ type: P.Choice })
11147
11147
  ], bn);
11148
- class ur {
11148
+ class dr {
11149
11149
  constructor(e = {}) {
11150
11150
  Object.assign(this, e);
11151
11151
  }
11152
11152
  }
11153
11153
  d([
11154
11154
  g({ type: bn, context: 0, optional: !0 })
11155
- ], ur.prototype, "distributionPoint", void 0);
11155
+ ], dr.prototype, "distributionPoint", void 0);
11156
11156
  d([
11157
11157
  g({ type: Ch, context: 1, optional: !0, implicit: !0 })
11158
- ], ur.prototype, "reasons", void 0);
11158
+ ], dr.prototype, "reasons", void 0);
11159
11159
  d([
11160
11160
  g({ type: ie, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
11161
- ], ur.prototype, "cRLIssuer", void 0);
11162
- let Hn = Ma = class extends he {
11161
+ ], dr.prototype, "cRLIssuer", void 0);
11162
+ let Kn = Ma = class extends he {
11163
11163
  constructor(e) {
11164
11164
  super(e), Object.setPrototypeOf(this, Ma.prototype);
11165
11165
  }
11166
11166
  };
11167
- Hn = Ma = d([
11168
- R({ type: P.Sequence, itemType: ur })
11169
- ], Hn);
11167
+ Kn = Ma = d([
11168
+ R({ type: P.Sequence, itemType: dr })
11169
+ ], Kn);
11170
11170
  var za;
11171
- let nd = za = class extends Hn {
11171
+ let nd = za = class extends Kn {
11172
11172
  constructor(e) {
11173
11173
  super(e), Object.setPrototypeOf(this, za.prototype);
11174
11174
  }
11175
11175
  };
11176
11176
  nd = za = d([
11177
- R({ type: P.Sequence, itemType: ur })
11177
+ R({ type: P.Sequence, itemType: dr })
11178
11178
  ], nd);
11179
11179
  class Le {
11180
11180
  constructor(e = {}) {
@@ -11231,7 +11231,7 @@ let us = Fa = class extends he {
11231
11231
  us = Fa = d([
11232
11232
  R({ type: P.Sequence, itemType: b.ObjectIdentifier })
11233
11233
  ], us);
11234
- const Zy = `${lr}.1`, Yy = `${lr}.2`, Xy = `${lr}.3`, Qy = `${lr}.4`, ev = `${lr}.8`, tv = `${lr}.9`;
11234
+ const Zy = `${ur}.1`, Yy = `${ur}.2`, Xy = `${ur}.3`, Qy = `${ur}.4`, ev = `${ur}.8`, tv = `${ur}.9`;
11235
11235
  let Ha = class {
11236
11236
  constructor(e = new ArrayBuffer(0)) {
11237
11237
  this.value = e;
@@ -11647,31 +11647,31 @@ d([
11647
11647
  d([
11648
11648
  g({ type: b.BitString })
11649
11649
  ], Al.prototype, "signature", void 0);
11650
- class dr {
11650
+ class pr {
11651
11651
  constructor(e = {}) {
11652
11652
  this.issuer = new Se(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
11653
11653
  }
11654
11654
  }
11655
11655
  d([
11656
11656
  g({ type: Se })
11657
- ], dr.prototype, "issuer", void 0);
11657
+ ], pr.prototype, "issuer", void 0);
11658
11658
  d([
11659
11659
  g({ type: b.Integer, converter: ye })
11660
- ], dr.prototype, "serialNumber", void 0);
11661
- let Zn = class {
11660
+ ], pr.prototype, "serialNumber", void 0);
11661
+ let Yn = class {
11662
11662
  constructor(e = {}) {
11663
11663
  Object.assign(this, e);
11664
11664
  }
11665
11665
  };
11666
11666
  d([
11667
11667
  g({ type: Gt, context: 0, implicit: !0 })
11668
- ], Zn.prototype, "subjectKeyIdentifier", void 0);
11668
+ ], Yn.prototype, "subjectKeyIdentifier", void 0);
11669
11669
  d([
11670
- g({ type: dr })
11671
- ], Zn.prototype, "issuerAndSerialNumber", void 0);
11672
- Zn = d([
11670
+ g({ type: pr })
11671
+ ], Yn.prototype, "issuerAndSerialNumber", void 0);
11672
+ Yn = d([
11673
11673
  R({ type: P.Choice })
11674
- ], Zn);
11674
+ ], Yn);
11675
11675
  var Vt;
11676
11676
  (function(t) {
11677
11677
  t[t.v0 = 0] = "v0", t[t.v1 = 1] = "v1", t[t.v2 = 2] = "v2", t[t.v3 = 3] = "v3", t[t.v4 = 4] = "v4", t[t.v5 = 5] = "v5";
@@ -11706,34 +11706,34 @@ let tc = class extends K {
11706
11706
  tc = d([
11707
11707
  R({ type: P.Sequence })
11708
11708
  ], tc);
11709
- let pr = class {
11709
+ let fr = class {
11710
11710
  constructor(e = {}) {
11711
11711
  this.attrType = "", this.attrValues = [], Object.assign(this, e);
11712
11712
  }
11713
11713
  };
11714
11714
  d([
11715
11715
  g({ type: b.ObjectIdentifier })
11716
- ], pr.prototype, "attrType", void 0);
11716
+ ], fr.prototype, "attrType", void 0);
11717
11717
  d([
11718
11718
  g({ type: b.Any, repeated: "set" })
11719
- ], pr.prototype, "attrValues", void 0);
11719
+ ], fr.prototype, "attrValues", void 0);
11720
11720
  var nc;
11721
11721
  class Nt {
11722
11722
  constructor(e = {}) {
11723
- this.version = Vt.v0, this.sid = new Zn(), this.digestAlgorithm = new Dr(), this.signatureAlgorithm = new ps(), this.signature = new ce(), Object.assign(this, e);
11723
+ this.version = Vt.v0, this.sid = new Yn(), this.digestAlgorithm = new Dr(), this.signatureAlgorithm = new ps(), this.signature = new ce(), Object.assign(this, e);
11724
11724
  }
11725
11725
  }
11726
11726
  d([
11727
11727
  g({ type: b.Integer })
11728
11728
  ], Nt.prototype, "version", void 0);
11729
11729
  d([
11730
- g({ type: Zn })
11730
+ g({ type: Yn })
11731
11731
  ], Nt.prototype, "sid", void 0);
11732
11732
  d([
11733
11733
  g({ type: Dr })
11734
11734
  ], Nt.prototype, "digestAlgorithm", void 0);
11735
11735
  d([
11736
- g({ type: pr, repeated: "set", context: 0, implicit: !0, optional: !0 })
11736
+ g({ type: fr, repeated: "set", context: 0, implicit: !0, optional: !0 })
11737
11737
  ], Nt.prototype, "signedAttrs", void 0);
11738
11738
  d([
11739
11739
  g({ type: ps })
@@ -11742,7 +11742,7 @@ d([
11742
11742
  g({ type: ce })
11743
11743
  ], Nt.prototype, "signature", void 0);
11744
11744
  d([
11745
- g({ type: pr, repeated: "set", context: 1, implicit: !0, optional: !0 })
11745
+ g({ type: fr, repeated: "set", context: 1, implicit: !0, optional: !0 })
11746
11746
  ], Nt.prototype, "unsignedAttrs", void 0);
11747
11747
  let hs = nc = class extends he {
11748
11748
  constructor(e) {
@@ -11851,20 +11851,20 @@ d([
11851
11851
  d([
11852
11852
  g({ type: Bn, context: 1, implicit: !0, optional: !0 })
11853
11853
  ], yo.prototype, "objectDigestInfo", void 0);
11854
- let Yn = class {
11854
+ let Xn = class {
11855
11855
  constructor(e = {}) {
11856
11856
  Object.assign(this, e);
11857
11857
  }
11858
11858
  };
11859
11859
  d([
11860
11860
  g({ type: ie, repeated: "sequence" })
11861
- ], Yn.prototype, "v1Form", void 0);
11861
+ ], Xn.prototype, "v1Form", void 0);
11862
11862
  d([
11863
11863
  g({ type: yo, context: 0, implicit: !0 })
11864
- ], Yn.prototype, "v2Form", void 0);
11865
- Yn = d([
11864
+ ], Xn.prototype, "v2Form", void 0);
11865
+ Xn = d([
11866
11866
  R({ type: P.Choice })
11867
- ], Yn);
11867
+ ], Xn);
11868
11868
  class vo {
11869
11869
  constructor(e = {}) {
11870
11870
  this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, e);
@@ -11896,7 +11896,7 @@ var sc;
11896
11896
  })(sc || (sc = {}));
11897
11897
  class vt {
11898
11898
  constructor(e = {}) {
11899
- this.version = sc.v2, this.holder = new pi(), this.issuer = new Yn(), this.signature = new K(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new vo(), this.attributes = [], Object.assign(this, e);
11899
+ this.version = sc.v2, this.holder = new pi(), this.issuer = new Xn(), this.signature = new K(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new vo(), this.attributes = [], Object.assign(this, e);
11900
11900
  }
11901
11901
  }
11902
11902
  d([
@@ -11906,7 +11906,7 @@ d([
11906
11906
  g({ type: pi })
11907
11907
  ], vt.prototype, "holder", void 0);
11908
11908
  d([
11909
- g({ type: Yn })
11909
+ g({ type: Xn })
11910
11910
  ], vt.prototype, "issuer", void 0);
11911
11911
  d([
11912
11912
  g({ type: K })
@@ -12011,30 +12011,30 @@ d([
12011
12011
  d([
12012
12012
  g({ type: Bn, optional: !0 })
12013
12013
  ], ko.prototype, "certDigestInfo", void 0);
12014
- let Xn = class {
12014
+ let Qn = class {
12015
12015
  constructor(e = {}) {
12016
12016
  Object.assign(this, e);
12017
12017
  }
12018
12018
  };
12019
12019
  d([
12020
12020
  g({ type: ie, context: 0, implicit: !0 })
12021
- ], Xn.prototype, "targetName", void 0);
12021
+ ], Qn.prototype, "targetName", void 0);
12022
12022
  d([
12023
12023
  g({ type: ie, context: 1, implicit: !0 })
12024
- ], Xn.prototype, "targetGroup", void 0);
12024
+ ], Qn.prototype, "targetGroup", void 0);
12025
12025
  d([
12026
12026
  g({ type: ko, context: 2, implicit: !0 })
12027
- ], Xn.prototype, "targetCert", void 0);
12028
- Xn = d([
12027
+ ], Qn.prototype, "targetCert", void 0);
12028
+ Qn = d([
12029
12029
  R({ type: P.Choice })
12030
- ], Xn);
12030
+ ], Qn);
12031
12031
  let cc = ac = class extends he {
12032
12032
  constructor(e) {
12033
12033
  super(e), Object.setPrototypeOf(this, ac.prototype);
12034
12034
  }
12035
12035
  };
12036
12036
  cc = ac = d([
12037
- R({ type: P.Sequence, itemType: Xn })
12037
+ R({ type: P.Sequence, itemType: Qn })
12038
12038
  ], cc);
12039
12039
  var lc;
12040
12040
  let ud = lc = class extends he {
@@ -12082,42 +12082,42 @@ d([
12082
12082
  d([
12083
12083
  g({ type: b.Any })
12084
12084
  ], jl.prototype, "otherCert", void 0);
12085
- let Qn = class {
12085
+ let er = class {
12086
12086
  constructor(e = {}) {
12087
12087
  Object.assign(this, e);
12088
12088
  }
12089
12089
  };
12090
12090
  d([
12091
12091
  g({ type: xn })
12092
- ], Qn.prototype, "certificate", void 0);
12092
+ ], er.prototype, "certificate", void 0);
12093
12093
  d([
12094
12094
  g({ type: wo, context: 2, implicit: !0 })
12095
- ], Qn.prototype, "v2AttrCert", void 0);
12095
+ ], er.prototype, "v2AttrCert", void 0);
12096
12096
  d([
12097
12097
  g({ type: jl, context: 3, implicit: !0 })
12098
- ], Qn.prototype, "other", void 0);
12099
- Qn = d([
12098
+ ], er.prototype, "other", void 0);
12099
+ er = d([
12100
12100
  R({ type: P.Choice })
12101
- ], Qn);
12101
+ ], er);
12102
12102
  let _s = uc = class extends he {
12103
12103
  constructor(e) {
12104
12104
  super(e), Object.setPrototypeOf(this, uc.prototype);
12105
12105
  }
12106
12106
  };
12107
12107
  _s = uc = d([
12108
- R({ type: P.Set, itemType: Qn })
12108
+ R({ type: P.Set, itemType: er })
12109
12109
  ], _s);
12110
- class fr {
12110
+ class hr {
12111
12111
  constructor(e = {}) {
12112
12112
  this.contentType = "", this.content = new ArrayBuffer(0), Object.assign(this, e);
12113
12113
  }
12114
12114
  }
12115
12115
  d([
12116
12116
  g({ type: b.ObjectIdentifier })
12117
- ], fr.prototype, "contentType", void 0);
12117
+ ], hr.prototype, "contentType", void 0);
12118
12118
  d([
12119
12119
  g({ type: b.Any, context: 0 })
12120
- ], fr.prototype, "content", void 0);
12120
+ ], hr.prototype, "content", void 0);
12121
12121
  let Fr = class {
12122
12122
  constructor(e = {}) {
12123
12123
  Object.assign(this, e);
@@ -12197,27 +12197,27 @@ d([
12197
12197
  d([
12198
12198
  g({ type: So, optional: !0 })
12199
12199
  ], Ao.prototype, "other", void 0);
12200
- let er = class {
12200
+ let tr = class {
12201
12201
  constructor(e = {}) {
12202
12202
  Object.assign(this, e);
12203
12203
  }
12204
12204
  };
12205
12205
  d([
12206
12206
  g({ type: Ao, context: 0, implicit: !0, optional: !0 })
12207
- ], er.prototype, "rKeyId", void 0);
12207
+ ], tr.prototype, "rKeyId", void 0);
12208
12208
  d([
12209
- g({ type: dr, optional: !0 })
12210
- ], er.prototype, "issuerAndSerialNumber", void 0);
12211
- er = d([
12209
+ g({ type: pr, optional: !0 })
12210
+ ], tr.prototype, "issuerAndSerialNumber", void 0);
12211
+ tr = d([
12212
12212
  R({ type: P.Choice })
12213
- ], er);
12213
+ ], tr);
12214
12214
  class $l {
12215
12215
  constructor(e = {}) {
12216
- this.rid = new er(), this.encryptedKey = new ce(), Object.assign(this, e);
12216
+ this.rid = new tr(), this.encryptedKey = new ce(), Object.assign(this, e);
12217
12217
  }
12218
12218
  }
12219
12219
  d([
12220
- g({ type: er })
12220
+ g({ type: tr })
12221
12221
  ], $l.prototype, "rid", void 0);
12222
12222
  d([
12223
12223
  g({ type: ce })
@@ -12253,55 +12253,55 @@ d([
12253
12253
  g({ type: Ol, context: 1, implicit: !0, optional: !0 })
12254
12254
  ], Sn.prototype, "originatorKey", void 0);
12255
12255
  d([
12256
- g({ type: dr, optional: !0 })
12256
+ g({ type: pr, optional: !0 })
12257
12257
  ], Sn.prototype, "issuerAndSerialNumber", void 0);
12258
12258
  Sn = d([
12259
12259
  R({ type: P.Choice })
12260
12260
  ], Sn);
12261
- class hr {
12261
+ class gr {
12262
12262
  constructor(e = {}) {
12263
12263
  this.version = Vt.v3, this.originator = new Sn(), this.keyEncryptionAlgorithm = new At(), this.recipientEncryptedKeys = new ys(), Object.assign(this, e);
12264
12264
  }
12265
12265
  }
12266
12266
  d([
12267
12267
  g({ type: b.Integer })
12268
- ], hr.prototype, "version", void 0);
12268
+ ], gr.prototype, "version", void 0);
12269
12269
  d([
12270
12270
  g({ type: Sn, context: 0 })
12271
- ], hr.prototype, "originator", void 0);
12271
+ ], gr.prototype, "originator", void 0);
12272
12272
  d([
12273
12273
  g({ type: ce, context: 1, optional: !0 })
12274
- ], hr.prototype, "ukm", void 0);
12274
+ ], gr.prototype, "ukm", void 0);
12275
12275
  d([
12276
12276
  g({ type: At })
12277
- ], hr.prototype, "keyEncryptionAlgorithm", void 0);
12277
+ ], gr.prototype, "keyEncryptionAlgorithm", void 0);
12278
12278
  d([
12279
12279
  g({ type: ys })
12280
- ], hr.prototype, "recipientEncryptedKeys", void 0);
12281
- let tr = class {
12280
+ ], gr.prototype, "recipientEncryptedKeys", void 0);
12281
+ let nr = class {
12282
12282
  constructor(e = {}) {
12283
12283
  Object.assign(this, e);
12284
12284
  }
12285
12285
  };
12286
12286
  d([
12287
12287
  g({ type: Gt, context: 0, implicit: !0 })
12288
- ], tr.prototype, "subjectKeyIdentifier", void 0);
12288
+ ], nr.prototype, "subjectKeyIdentifier", void 0);
12289
12289
  d([
12290
- g({ type: dr })
12291
- ], tr.prototype, "issuerAndSerialNumber", void 0);
12292
- tr = d([
12290
+ g({ type: pr })
12291
+ ], nr.prototype, "issuerAndSerialNumber", void 0);
12292
+ nr = d([
12293
12293
  R({ type: P.Choice })
12294
- ], tr);
12294
+ ], nr);
12295
12295
  class hi {
12296
12296
  constructor(e = {}) {
12297
- this.version = Vt.v0, this.rid = new tr(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new ce(), Object.assign(this, e);
12297
+ this.version = Vt.v0, this.rid = new nr(), this.keyEncryptionAlgorithm = new At(), this.encryptedKey = new ce(), Object.assign(this, e);
12298
12298
  }
12299
12299
  }
12300
12300
  d([
12301
12301
  g({ type: b.Integer })
12302
12302
  ], hi.prototype, "version", void 0);
12303
12303
  d([
12304
- g({ type: tr })
12304
+ g({ type: nr })
12305
12305
  ], hi.prototype, "rid", void 0);
12306
12306
  d([
12307
12307
  g({ type: At })
@@ -12377,7 +12377,7 @@ d([
12377
12377
  g({ type: hi, optional: !0 })
12378
12378
  ], Xt.prototype, "ktri", void 0);
12379
12379
  d([
12380
- g({ type: hr, context: 1, implicit: !0, optional: !0 })
12380
+ g({ type: gr, context: 1, implicit: !0, optional: !0 })
12381
12381
  ], Xt.prototype, "kari", void 0);
12382
12382
  d([
12383
12383
  g({ type: mi, context: 2, implicit: !0, optional: !0 })
@@ -12449,7 +12449,7 @@ let gc = hc = class extends he {
12449
12449
  }
12450
12450
  };
12451
12451
  gc = hc = d([
12452
- R({ type: P.Set, itemType: pr })
12452
+ R({ type: P.Set, itemType: fr })
12453
12453
  ], gc);
12454
12454
  class yi {
12455
12455
  constructor(e = {}) {
@@ -12481,29 +12481,29 @@ let ks = mc = class extends he {
12481
12481
  ks = mc = d([
12482
12482
  R({ type: P.Set, itemType: Dr })
12483
12483
  ], ks);
12484
- class gr {
12484
+ class mr {
12485
12485
  constructor(e = {}) {
12486
12486
  this.version = Vt.v0, this.digestAlgorithms = new ks(), this.encapContentInfo = new xo(), this.signerInfos = new hs(), Object.assign(this, e);
12487
12487
  }
12488
12488
  }
12489
12489
  d([
12490
12490
  g({ type: b.Integer })
12491
- ], gr.prototype, "version", void 0);
12491
+ ], mr.prototype, "version", void 0);
12492
12492
  d([
12493
12493
  g({ type: ks })
12494
- ], gr.prototype, "digestAlgorithms", void 0);
12494
+ ], mr.prototype, "digestAlgorithms", void 0);
12495
12495
  d([
12496
12496
  g({ type: xo })
12497
- ], gr.prototype, "encapContentInfo", void 0);
12497
+ ], mr.prototype, "encapContentInfo", void 0);
12498
12498
  d([
12499
12499
  g({ type: _s, context: 0, implicit: !0, optional: !0 })
12500
- ], gr.prototype, "certificates", void 0);
12500
+ ], mr.prototype, "certificates", void 0);
12501
12501
  d([
12502
12502
  g({ type: bs, context: 1, implicit: !0, optional: !0 })
12503
- ], gr.prototype, "crls", void 0);
12503
+ ], mr.prototype, "crls", void 0);
12504
12504
  d([
12505
12505
  g({ type: hs })
12506
- ], gr.prototype, "signerInfos", void 0);
12506
+ ], mr.prototype, "signerInfos", void 0);
12507
12507
  const Kr = "1.2.840.10045.2.1", Pl = "1.2.840.10045.4.1", qh = "1.2.840.10045.4.3.1", Rl = "1.2.840.10045.4.3.2", Ll = "1.2.840.10045.4.3.3", Ul = "1.2.840.10045.4.3.4", dd = "1.2.840.10045.3.1.7", pd = "1.3.132.0.34", fd = "1.3.132.0.35";
12508
12508
  function vi(t) {
12509
12509
  return new K({ algorithm: t });
@@ -12527,23 +12527,23 @@ Wr = d([
12527
12527
  ], Wr);
12528
12528
  class av extends ce {
12529
12529
  }
12530
- let nr = class {
12530
+ let rr = class {
12531
12531
  constructor(e = {}) {
12532
12532
  Object.assign(this, e);
12533
12533
  }
12534
12534
  };
12535
12535
  d([
12536
12536
  g({ type: b.OctetString })
12537
- ], nr.prototype, "a", void 0);
12537
+ ], rr.prototype, "a", void 0);
12538
12538
  d([
12539
12539
  g({ type: b.OctetString })
12540
- ], nr.prototype, "b", void 0);
12540
+ ], rr.prototype, "b", void 0);
12541
12541
  d([
12542
12542
  g({ type: b.BitString, optional: !0 })
12543
- ], nr.prototype, "seed", void 0);
12544
- nr = d([
12543
+ ], rr.prototype, "seed", void 0);
12544
+ rr = d([
12545
12545
  R({ type: P.Sequence })
12546
- ], nr);
12546
+ ], rr);
12547
12547
  var _c;
12548
12548
  (function(t) {
12549
12549
  t[t.ecpVer1 = 1] = "ecpVer1";
@@ -12560,7 +12560,7 @@ d([
12560
12560
  g({ type: Wr })
12561
12561
  ], Mt.prototype, "fieldID", void 0);
12562
12562
  d([
12563
- g({ type: nr })
12563
+ g({ type: rr })
12564
12564
  ], Mt.prototype, "curve", void 0);
12565
12565
  d([
12566
12566
  g({ type: av })
@@ -12973,7 +12973,7 @@ var Gh = function() {
12973
12973
  return this.reflectMethods.forEach(r), n;
12974
12974
  }, t;
12975
12975
  }();
12976
- function Mn(t) {
12976
+ function qn(t) {
12977
12977
  return typeof t == "string" || typeof t == "symbol";
12978
12978
  }
12979
12979
  function bv(t) {
@@ -13089,7 +13089,7 @@ var Nv = function(t) {
13089
13089
  throw new Error('Cannot use lifecycle "' + ze[r.lifecycle] + '" with ValueProviders or FactoryProviders');
13090
13090
  return this._registry.set(e, { provider: i, options: r }), this;
13091
13091
  }, t.prototype.registerType = function(e, n) {
13092
- return this.ensureNotDisposed(), Mn(n) ? this.register(e, {
13092
+ return this.ensureNotDisposed(), qn(n) ? this.register(e, {
13093
13093
  useToken: n
13094
13094
  }) : this.register(e, {
13095
13095
  useClass: n
@@ -13099,8 +13099,8 @@ var Nv = function(t) {
13099
13099
  useValue: n
13100
13100
  });
13101
13101
  }, t.prototype.registerSingleton = function(e, n) {
13102
- if (this.ensureNotDisposed(), Mn(e)) {
13103
- if (Mn(n))
13102
+ if (this.ensureNotDisposed(), qn(e)) {
13103
+ if (qn(n))
13104
13104
  return this.register(e, {
13105
13105
  useToken: n
13106
13106
  }, { lifecycle: ze.Singleton });
@@ -13111,13 +13111,13 @@ var Nv = function(t) {
13111
13111
  throw new Error('Cannot register a type name as a singleton without a "to" token');
13112
13112
  }
13113
13113
  var r = e;
13114
- return n && !Mn(n) && (r = n), this.register(e, {
13114
+ return n && !qn(n) && (r = n), this.register(e, {
13115
13115
  useClass: r
13116
13116
  }, { lifecycle: ze.Singleton });
13117
13117
  }, t.prototype.resolve = function(e, n) {
13118
13118
  n === void 0 && (n = new gd()), this.ensureNotDisposed();
13119
13119
  var r = this.getRegistration(e);
13120
- if (!r && Mn(e))
13120
+ if (!r && qn(e))
13121
13121
  throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
13122
13122
  if (this.executePreResolutionInterceptor(e, "Single"), r) {
13123
13123
  var i = this.resolveRegistration(r, n);
@@ -13177,7 +13177,7 @@ var Nv = function(t) {
13177
13177
  var r = this;
13178
13178
  n === void 0 && (n = new gd()), this.ensureNotDisposed();
13179
13179
  var i = this.getAllRegistrations(e);
13180
- if (!i && Mn(e))
13180
+ if (!i && qn(e))
13181
13181
  throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
13182
13182
  if (this.executePreResolutionInterceptor(e, "All"), i) {
13183
13183
  var s = i.map(function(c) {
@@ -13334,7 +13334,7 @@ let _d = Ac = class extends he {
13334
13334
  }
13335
13335
  };
13336
13336
  _d = Ac = d([
13337
- R({ type: P.Sequence, itemType: fr })
13337
+ R({ type: P.Sequence, itemType: hr })
13338
13338
  ], _d);
13339
13339
  class Zh {
13340
13340
  constructor(e = {}) {
@@ -13439,14 +13439,14 @@ d([
13439
13439
  ], bi.prototype, "iterations", void 0);
13440
13440
  class Po {
13441
13441
  constructor(e = {}) {
13442
- this.version = 3, this.authSafe = new fr(), this.macData = new bi(), Object.assign(this, e);
13442
+ this.version = 3, this.authSafe = new hr(), this.macData = new bi(), Object.assign(this, e);
13443
13443
  }
13444
13444
  }
13445
13445
  d([
13446
13446
  g({ type: b.Integer })
13447
13447
  ], Po.prototype, "version", void 0);
13448
13448
  d([
13449
- g({ type: fr })
13449
+ g({ type: hr })
13450
13450
  ], Po.prototype, "authSafe", void 0);
13451
13451
  d([
13452
13452
  g({ type: bi, optional: !0 })
@@ -13490,7 +13490,7 @@ d([
13490
13490
  Os = d([
13491
13491
  R({ type: P.Choice })
13492
13492
  ], Os);
13493
- let bd = class extends fr {
13493
+ let bd = class extends hr {
13494
13494
  };
13495
13495
  bd = d([
13496
13496
  R({ type: P.Sequence })
@@ -13640,7 +13640,7 @@ let Od = $c = class extends he {
13640
13640
  }
13641
13641
  };
13642
13642
  Od = $c = d([
13643
- R({ type: P.Set, itemType: pr })
13643
+ R({ type: P.Set, itemType: fr })
13644
13644
  ], Od);
13645
13645
  let Uc = class {
13646
13646
  constructor(e = "") {
@@ -13678,30 +13678,30 @@ let Ps = Mc = class extends he {
13678
13678
  Ps = Mc = d([
13679
13679
  R({ type: P.Sequence, itemType: Ut })
13680
13680
  ], Ps);
13681
- class mr {
13681
+ class _r {
13682
13682
  constructor(e = {}) {
13683
13683
  this.version = 0, this.subject = new Se(), this.subjectPKInfo = new ft(), this.attributes = new Ps(), Object.assign(this, e);
13684
13684
  }
13685
13685
  }
13686
13686
  d([
13687
13687
  g({ type: b.Integer })
13688
- ], mr.prototype, "version", void 0);
13688
+ ], _r.prototype, "version", void 0);
13689
13689
  d([
13690
13690
  g({ type: Se })
13691
- ], mr.prototype, "subject", void 0);
13691
+ ], _r.prototype, "subject", void 0);
13692
13692
  d([
13693
13693
  g({ type: ft })
13694
- ], mr.prototype, "subjectPKInfo", void 0);
13694
+ ], _r.prototype, "subjectPKInfo", void 0);
13695
13695
  d([
13696
13696
  g({ type: Ps, implicit: !0, context: 0 })
13697
- ], mr.prototype, "attributes", void 0);
13697
+ ], _r.prototype, "attributes", void 0);
13698
13698
  class Gr {
13699
13699
  constructor(e = {}) {
13700
- this.certificationRequestInfo = new mr(), this.signatureAlgorithm = new K(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
13700
+ this.certificationRequestInfo = new _r(), this.signatureAlgorithm = new K(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
13701
13701
  }
13702
13702
  }
13703
13703
  d([
13704
- g({ type: mr })
13704
+ g({ type: _r })
13705
13705
  ], Gr.prototype, "certificationRequestInfo", void 0);
13706
13706
  d([
13707
13707
  g({ type: K })
@@ -14244,14 +14244,14 @@ class rt {
14244
14244
  const u = i[3];
14245
14245
  o = this.getTypeOid(o);
14246
14246
  const p = this.createAttribute(o, c);
14247
- s === "+" ? n[n.length - 1].push(p) : n.push(new Jn([p])), s = u;
14247
+ s === "+" ? n[n.length - 1].push(p) : n.push(new Zn([p])), s = u;
14248
14248
  }
14249
14249
  return n;
14250
14250
  }
14251
14251
  fromJSON(e) {
14252
14252
  const n = new Se();
14253
14253
  for (const r of e) {
14254
- const i = new Jn();
14254
+ const i = new Zn();
14255
14255
  for (const s in r) {
14256
14256
  const o = this.getTypeOid(s), c = r[s];
14257
14257
  for (const l of c) {
@@ -14468,7 +14468,7 @@ class Zr extends on {
14468
14468
  }
14469
14469
  }
14470
14470
  Zr.NAME = "GeneralNames";
14471
- const Rr = "-{5}", Yr = "\\n", Mv = `[^${Yr}]+`, qv = `${Rr}BEGIN (${Mv}(?=${Rr}))${Rr}`, zv = `${Rr}END \\1${Rr}`, rr = "\\n", Dv = `[^:${Yr}]+`, Fv = `(?:[^${Yr}]+${rr}(?: +[^${Yr}]+${rr})*)`, Hv = "[a-zA-Z0-9=+/]+", Kv = `(?:${Hv}${rr})+`, pp = `${qv}${rr}(?:((?:${Dv}: ${Fv})+))?${rr}?(${Kv})${zv}`;
14471
+ const Rr = "-{5}", Yr = "\\n", Mv = `[^${Yr}]+`, qv = `${Rr}BEGIN (${Mv}(?=${Rr}))${Rr}`, zv = `${Rr}END \\1${Rr}`, ir = "\\n", Dv = `[^:${Yr}]+`, Fv = `(?:[^${Yr}]+${ir}(?: +[^${Yr}]+${ir})*)`, Hv = "[a-zA-Z0-9=+/]+", Kv = `(?:${Hv}${ir})+`, pp = `${qv}${ir}(?:((?:${Dv}: ${Fv})+))?${ir}?(${Kv})${zv}`;
14472
14472
  class Xe {
14473
14473
  static isPem(e) {
14474
14474
  return typeof e == "string" && new RegExp(pp, "g").test(e);
@@ -14484,7 +14484,7 @@ class Xe {
14484
14484
  rawData: Z.FromBase64(s)
14485
14485
  }, c = i[2];
14486
14486
  if (c) {
14487
- const l = c.split(new RegExp(rr, "g"));
14487
+ const l = c.split(new RegExp(ir, "g"));
14488
14488
  let u = null;
14489
14489
  for (const p of l) {
14490
14490
  const [h, m] = p.split(/:(.*)/);
@@ -14829,21 +14829,21 @@ class ug extends at {
14829
14829
  if (D.isBufferSource(e[0]))
14830
14830
  super(e[0]);
14831
14831
  else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
14832
- const i = e[0].map((o) => new ur({
14832
+ const i = e[0].map((o) => new dr({
14833
14833
  distributionPoint: new bn({
14834
14834
  fullName: [new ie({ uniformResourceIdentifier: o })]
14835
14835
  })
14836
- })), s = new Hn(i);
14836
+ })), s = new Kn(i);
14837
14837
  super(qa, e[1], z.serialize(s));
14838
14838
  } else {
14839
- const r = new Hn(e[0]);
14839
+ const r = new Kn(e[0]);
14840
14840
  super(qa, e[1], z.serialize(r));
14841
14841
  }
14842
14842
  (n = this.distributionPoints) !== null && n !== void 0 || (this.distributionPoints = []);
14843
14843
  }
14844
14844
  onInit(e) {
14845
14845
  super.onInit(e);
14846
- const n = z.parse(e.extnValue, Hn);
14846
+ const n = z.parse(e.extnValue, Kn);
14847
14847
  this.distributionPoints = n;
14848
14848
  }
14849
14849
  toTextObject() {
@@ -14861,17 +14861,17 @@ class dg extends at {
14861
14861
  var n, r, i, s;
14862
14862
  if (D.isBufferSource(e[0]))
14863
14863
  super(e[0]);
14864
- else if (e[0] instanceof Dn) {
14865
- const o = new Dn(e[0]);
14864
+ else if (e[0] instanceof Fn) {
14865
+ const o = new Fn(e[0]);
14866
14866
  super(Pa, e[1], z.serialize(o));
14867
14867
  } else {
14868
- const o = e[0], c = new Dn();
14868
+ const o = e[0], c = new Fn();
14869
14869
  Pi(c, o, Zu, "ocsp"), Pi(c, o, Yu, "caIssuers"), Pi(c, o, Xu, "timeStamping"), Pi(c, o, Qu, "caRepository"), super(Pa, e[1], z.serialize(c));
14870
14870
  }
14871
14871
  (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 = []);
14872
14872
  }
14873
14873
  onInit(e) {
14874
- super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], z.parse(e.extnValue, Dn).forEach((r) => {
14874
+ super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], z.parse(e.extnValue, Fn).forEach((r) => {
14875
14875
  switch (r.accessMethod) {
14876
14876
  case Zu:
14877
14877
  this.ocsp.push(new Kt(r.accessLocation));
@@ -14915,7 +14915,7 @@ function Pi(t, e, n, r) {
14915
14915
  }));
14916
14916
  });
14917
14917
  }
14918
- class _r extends on {
14918
+ class yr extends on {
14919
14919
  constructor(...e) {
14920
14920
  let n;
14921
14921
  if (D.isBufferSource(e[0]))
@@ -14935,11 +14935,11 @@ class _r extends on {
14935
14935
  }
14936
14936
  toTextObjectWithoutValue() {
14937
14937
  const e = this.toTextObjectEmpty();
14938
- return e[pe.NAME] === _r.NAME && (e[pe.NAME] = sn.toString(this.type)), e;
14938
+ return e[pe.NAME] === yr.NAME && (e[pe.NAME] = sn.toString(this.type)), e;
14939
14939
  }
14940
14940
  }
14941
- _r.NAME = "Attribute";
14942
- class pg extends _r {
14941
+ yr.NAME = "Attribute";
14942
+ class pg extends yr {
14943
14943
  constructor(...e) {
14944
14944
  var n;
14945
14945
  if (D.isBufferSource(e[0]))
@@ -14964,7 +14964,7 @@ class pg extends _r {
14964
14964
  }
14965
14965
  }
14966
14966
  pg.NAME = "Challenge Password";
14967
- class Kl extends _r {
14967
+ class Kl extends yr {
14968
14968
  constructor(...e) {
14969
14969
  var n;
14970
14970
  if (D.isBufferSource(e[0]))
@@ -14996,7 +14996,7 @@ class Lo {
14996
14996
  this.items.set(e, n);
14997
14997
  }
14998
14998
  static create(e) {
14999
- const n = new _r(e), r = this.items.get(n.type);
14999
+ const n = new yr(e), r = this.items.get(n.type);
15000
15000
  return r ? new r(e) : n;
15001
15001
  }
15002
15002
  }
@@ -15664,7 +15664,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15664
15664
  return t.json(i);
15665
15665
  }
15666
15666
  ), nw = jn.extend({
15667
- clients: a.array(zn)
15667
+ clients: a.array(Dn)
15668
15668
  }), rw = new le().openapi(
15669
15669
  M({
15670
15670
  tags: ["clients"],
@@ -15687,7 +15687,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15687
15687
  "application/json": {
15688
15688
  schema: a.union([
15689
15689
  nw,
15690
- a.array(zn)
15690
+ a.array(Dn)
15691
15691
  ])
15692
15692
  }
15693
15693
  },
@@ -15700,7 +15700,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15700
15700
  page: n,
15701
15701
  per_page: r,
15702
15702
  include_totals: i,
15703
- sort: ar(s),
15703
+ sort: cr(s),
15704
15704
  q: o
15705
15705
  })).applications;
15706
15706
  return i ? t.json({
@@ -15732,7 +15732,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15732
15732
  200: {
15733
15733
  content: {
15734
15734
  "application/json": {
15735
- schema: zn
15735
+ schema: Dn
15736
15736
  }
15737
15737
  },
15738
15738
  description: "An application"
@@ -15808,7 +15808,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15808
15808
  200: {
15809
15809
  content: {
15810
15810
  "application/json": {
15811
- schema: zn
15811
+ schema: Dn
15812
15812
  }
15813
15813
  },
15814
15814
  description: "The update application"
@@ -15849,7 +15849,7 @@ const Qv = 1e3 * 60 * 60 * 24, ew = new le().openapi(
15849
15849
  201: {
15850
15850
  content: {
15851
15851
  "application/json": {
15852
- schema: a.object(zn.shape)
15852
+ schema: a.object(Dn.shape)
15853
15853
  }
15854
15854
  },
15855
15855
  description: "An application"
@@ -15912,7 +15912,7 @@ const iw = jn.extend({
15912
15912
  page: e,
15913
15913
  per_page: n,
15914
15914
  include_totals: r,
15915
- sort: ar(i),
15915
+ sort: cr(i),
15916
15916
  q: s
15917
15917
  });
15918
15918
  return r ? t.json(o) : t.json(o.tenants);
@@ -16074,7 +16074,7 @@ const iw = jn.extend({
16074
16074
  page: e,
16075
16075
  per_page: n,
16076
16076
  include_totals: r,
16077
- sort: ar(i),
16077
+ sort: cr(i),
16078
16078
  q: s
16079
16079
  });
16080
16080
  return r ? t.json(c) : t.json(c.logs);
@@ -16148,7 +16148,7 @@ const iw = jn.extend({
16148
16148
  page: n,
16149
16149
  per_page: r,
16150
16150
  include_totals: i,
16151
- sort: ar(s),
16151
+ sort: cr(s),
16152
16152
  q: o
16153
16153
  });
16154
16154
  return i ? t.json(c) : t.json(c.hooks);
@@ -16348,7 +16348,7 @@ const iw = jn.extend({
16348
16348
  page: n,
16349
16349
  per_page: r,
16350
16350
  include_totals: i,
16351
- sort: ar(s),
16351
+ sort: cr(s),
16352
16352
  q: o
16353
16353
  });
16354
16354
  return i ? t.json(c) : t.json(c.connections);
@@ -16946,7 +16946,7 @@ const mw = new le().openapi(
16946
16946
  200: {
16947
16947
  content: {
16948
16948
  "application/json": {
16949
- schema: a.array(kr)
16949
+ schema: a.array(Vn)
16950
16950
  }
16951
16951
  },
16952
16952
  description: "List of custom domains"
@@ -16979,7 +16979,7 @@ const mw = new le().openapi(
16979
16979
  200: {
16980
16980
  content: {
16981
16981
  "application/json": {
16982
- schema: kr
16982
+ schema: Vn
16983
16983
  }
16984
16984
  },
16985
16985
  description: "A connection"
@@ -17033,7 +17033,7 @@ const mw = new le().openapi(
17033
17033
  body: {
17034
17034
  content: {
17035
17035
  "application/json": {
17036
- schema: a.object(kr.shape).partial()
17036
+ schema: a.object(Vn.shape).partial()
17037
17037
  }
17038
17038
  }
17039
17039
  },
@@ -17053,7 +17053,7 @@ const mw = new le().openapi(
17053
17053
  200: {
17054
17054
  content: {
17055
17055
  "application/json": {
17056
- schema: kr
17056
+ schema: Vn
17057
17057
  }
17058
17058
  },
17059
17059
  description: "The updated custom domain"
@@ -17099,7 +17099,7 @@ const mw = new le().openapi(
17099
17099
  201: {
17100
17100
  content: {
17101
17101
  "application/json": {
17102
- schema: kr
17102
+ schema: Vn
17103
17103
  }
17104
17104
  },
17105
17105
  description: "The created custom domain"
@@ -17113,6 +17113,40 @@ const mw = new le().openapi(
17113
17113
  );
17114
17114
  return t.json(r, { status: 201 });
17115
17115
  }
17116
+ ).openapi(
17117
+ M({
17118
+ tags: ["custom-domains"],
17119
+ method: "post",
17120
+ path: "/{id}/verify",
17121
+ request: {
17122
+ params: a.object({
17123
+ id: a.string()
17124
+ }),
17125
+ headers: a.object({
17126
+ "tenant-id": a.string()
17127
+ })
17128
+ },
17129
+ security: [
17130
+ {
17131
+ Bearer: ["auth:write"]
17132
+ }
17133
+ ],
17134
+ responses: {
17135
+ 200: {
17136
+ content: {
17137
+ "application/json": {
17138
+ schema: Vn
17139
+ }
17140
+ },
17141
+ description: "The custom domain"
17142
+ }
17143
+ }
17144
+ }),
17145
+ async () => {
17146
+ throw new j(501, {
17147
+ message: "Not implemented"
17148
+ });
17149
+ }
17116
17150
  );
17117
17151
  function ww() {
17118
17152
  const t = new le();
@@ -17532,12 +17566,12 @@ async function Ls(t) {
17532
17566
  throw new Di(e.status);
17533
17567
  }
17534
17568
  if (typeof n != "object" || n === null)
17535
- throw new Kn(e.status, n);
17569
+ throw new Wn(e.status, n);
17536
17570
  let r;
17537
17571
  try {
17538
17572
  r = _g(n);
17539
17573
  } catch {
17540
- throw new Kn(e.status, n);
17574
+ throw new Wn(e.status, n);
17541
17575
  }
17542
17576
  throw r;
17543
17577
  }
@@ -17549,7 +17583,7 @@ async function Ls(t) {
17549
17583
  throw new Di(e.status);
17550
17584
  }
17551
17585
  if (typeof n != "object" || n === null)
17552
- throw new Kn(e.status, n);
17586
+ throw new Wn(e.status, n);
17553
17587
  return new Nw(n);
17554
17588
  }
17555
17589
  throw e.body !== null && await e.body.cancel(), new Di(e.status);
@@ -17566,15 +17600,15 @@ async function Ow(t) {
17566
17600
  try {
17567
17601
  n = await e.json();
17568
17602
  } catch {
17569
- throw new Kn(e.status, null);
17603
+ throw new Wn(e.status, null);
17570
17604
  }
17571
17605
  if (typeof n != "object" || n === null)
17572
- throw new Kn(e.status, n);
17606
+ throw new Wn(e.status, n);
17573
17607
  let r;
17574
17608
  try {
17575
17609
  r = _g(n);
17576
17610
  } catch {
17577
- throw new Kn(e.status, n);
17611
+ throw new Wn(e.status, n);
17578
17612
  }
17579
17613
  throw r;
17580
17614
  }
@@ -17632,7 +17666,7 @@ class Di extends Error {
17632
17666
  this.status = n;
17633
17667
  }
17634
17668
  }
17635
- class Kn extends Error {
17669
+ class Wn extends Error {
17636
17670
  constructor(n, r) {
17637
17671
  super("Unexpected error response body");
17638
17672
  te(this, "status");
@@ -19006,13 +19040,12 @@ async function Ig(t, e, n) {
19006
19040
  to: e,
19007
19041
  subject: fe("code_email_subject", i),
19008
19042
  html: `Click here to validate your email: ${Et(t.env)}validate-email`,
19009
- template: "auth-link",
19043
+ template: "auth-code",
19010
19044
  data: {
19011
19045
  code: n,
19012
19046
  vendorName: r.name,
19013
19047
  logo: r.logo || "",
19014
19048
  supportUrl: r.support_url || "",
19015
- magicLink: `${$e(t.env)}passwordless/verify_redirect?ticket=${n}`,
19016
19049
  buttonColor: r.primary_color || "",
19017
19050
  welcomeToYourAccount: fe("welcome_to_your_account", i),
19018
19051
  linkEmailClickToLogin: fe("link_email_click_to_login", i),
@@ -19240,7 +19273,7 @@ const yb = new le().openapi(
19240
19273
  );
19241
19274
  }
19242
19275
  );
19243
- function ir() {
19276
+ function sr() {
19244
19277
  const t = "1234567890";
19245
19278
  let e = "";
19246
19279
  for (let n = 0; n < 6; n += 1)
@@ -19338,7 +19371,7 @@ const vb = new le().openapi(
19338
19371
  expires_at: new Date(Date.now() + Sa).toISOString(),
19339
19372
  ...Tn(t.req)
19340
19373
  }), u = await n.data.codes.create(c.tenant.id, {
19341
- code_id: ir(),
19374
+ code_id: sr(),
19342
19375
  code_type: "otp",
19343
19376
  login_id: l.login_id,
19344
19377
  expires_at: new Date(Date.now() + Sa).toISOString()
@@ -19501,13 +19534,13 @@ async function wb(t, e, n, r) {
19501
19534
  isSocial: !1,
19502
19535
  ip: t.req.header("x-real-ip")
19503
19536
  });
19504
- let i = ir(), s = await t.env.data.codes.get(
19537
+ let i = sr(), s = await t.env.data.codes.get(
19505
19538
  e.tenant.id,
19506
19539
  i,
19507
19540
  "password_reset"
19508
19541
  );
19509
19542
  for (; s; )
19510
- i = ir(), s = await t.env.data.codes.get(
19543
+ i = sr(), s = await t.env.data.codes.get(
19511
19544
  e.tenant.id,
19512
19545
  i,
19513
19546
  "password_reset"
@@ -19671,7 +19704,7 @@ async function xb({
19671
19704
  });
19672
19705
  }
19673
19706
  if (i === "email" && s) {
19674
- const c = ir();
19707
+ const c = sr();
19675
19708
  return await t.env.data.codes.create(n.tenant.id, {
19676
19709
  code_id: c,
19677
19710
  code_type: "otp",
@@ -20103,8 +20136,8 @@ var Nb = {
20103
20136
  }, i;
20104
20137
  }, Og = (t) => {
20105
20138
  const e = [t], n = $g(e);
20106
- return n.values = e, n.Provider = n, sr.push(n), n;
20107
- }, sr = [], Bb = (t) => {
20139
+ return n.values = e, n.Provider = n, or.push(n), n;
20140
+ }, or = [], Bb = (t) => {
20108
20141
  const e = [t], n = (r) => {
20109
20142
  e.push(r.value);
20110
20143
  let i;
@@ -20115,8 +20148,8 @@ var Nb = {
20115
20148
  }
20116
20149
  return i instanceof Promise ? i.then((s) => gt(s, s.callbacks)) : gt(i);
20117
20150
  };
20118
- return n.values = e, n.Provider = n, n[nu] = $g(e), sr.push(n), n;
20119
- }, yr = (t) => t.values.at(-1), Hi = {
20151
+ return n.values = e, n.Provider = n, n[nu] = $g(e), or.push(n), n;
20152
+ }, vr = (t) => t.values.at(-1), Hi = {
20120
20153
  title: [],
20121
20154
  script: ["src"],
20122
20155
  style: ["data-href"],
@@ -20169,7 +20202,7 @@ var Nb = {
20169
20202
  }, Tb = ({ children: t, ...e }) => {
20170
20203
  const n = ru();
20171
20204
  if (n) {
20172
- const r = yr(n);
20205
+ const r = vr(n);
20173
20206
  if (r === "svg" || r === "head")
20174
20207
  return new mt(
20175
20208
  "title",
@@ -20183,13 +20216,13 @@ var Nb = {
20183
20216
  ...e
20184
20217
  }) => {
20185
20218
  const n = ru();
20186
- return ["src", "async"].some((r) => !e[r]) || n && yr(n) === "head" ? Ei("script", t, e) : Ii("script", t, e, !1);
20219
+ return ["src", "async"].some((r) => !e[r]) || n && vr(n) === "head" ? Ei("script", t, e) : Ii("script", t, e, !1);
20187
20220
  }, Rb = ({
20188
20221
  children: t,
20189
20222
  ...e
20190
20223
  }) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, Ii("style", t, e, !0)) : Ei("style", t, e), Lb = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? Ei("link", t, e) : Ii("link", t, e, "precedence" in e), Ub = ({ children: t, ...e }) => {
20191
20224
  const n = ru();
20192
- return n && yr(n) === "head" ? Ei("meta", t, e) : Ii("meta", t, e, !1);
20225
+ return n && vr(n) === "head" ? Ei("meta", t, e) : Ii("meta", t, e, !1);
20193
20226
  }, Bg = (t, { children: e, ...n }) => new mt(t, n, Ai(e ?? [])), Vb = (t) => (typeof t.action == "function" && (t.action = Vs in t.action ? t.action[Vs] : void 0), Bg("form", t)), Tg = (t, e) => (typeof e.formAction == "function" && (e.formAction = Vs in e.formAction ? e.formAction[Vs] : void 0), Bg(t, e)), Mb = (t) => Tg("input", t), qb = (t) => Tg("button", t);
20194
20227
  const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20195
20228
  __proto__: null,
@@ -20312,7 +20345,7 @@ var zb = /* @__PURE__ */ new Map([
20312
20345
  const e = this.tag, n = this.props;
20313
20346
  let { children: r } = this;
20314
20347
  t[0] += `<${e}`;
20315
- const i = ti && yr(ti) === "svg" ? (s) => Db(Ms(s)) : (s) => Ms(s);
20348
+ const i = ti && vr(ti) === "svg" ? (s) => Db(Ms(s)) : (s) => Ms(s);
20316
20349
  for (let [s, o] of Object.entries(n))
20317
20350
  if (s = i(s), s !== "children") {
20318
20351
  if (s === "style" && typeof o == "object") {
@@ -20352,10 +20385,10 @@ var zb = /* @__PURE__ */ new Map([
20352
20385
  });
20353
20386
  if (!(typeof n == "boolean" || n == null))
20354
20387
  if (n instanceof Promise)
20355
- if (sr.length === 0)
20388
+ if (or.length === 0)
20356
20389
  t.unshift("", n);
20357
20390
  else {
20358
- const r = sr.map((i) => [i, i.values.at(-1)]);
20391
+ const r = or.map((i) => [i, i.values.at(-1)]);
20359
20392
  t.unshift(
20360
20393
  "",
20361
20394
  n.then((i) => (i instanceof mt && (i.localContexts = r), i))
@@ -20684,7 +20717,7 @@ const t1 = (t) => {
20684
20717
  <\/script>
20685
20718
  `])))
20686
20719
  ] });
20687
- }, vr = ({ children: t }) => /* @__PURE__ */ y("div", { className: "mb-2 text-sm text-red", children: t }), r1 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", i1 = ({ size: t }) => {
20720
+ }, wr = ({ children: t }) => /* @__PURE__ */ y("div", { className: "mb-2 text-sm text-red", children: t }), r1 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", i1 = ({ size: t }) => {
20688
20721
  const e = r1(t);
20689
20722
  return /* @__PURE__ */ y("div", { className: "relative inline-block leading-[0]", children: [
20690
20723
  /* @__PURE__ */ y(
@@ -20931,7 +20964,7 @@ const t1 = (t) => {
20931
20964
  value: ""
20932
20965
  }
20933
20966
  ),
20934
- t && /* @__PURE__ */ y(vr, { children: t }),
20967
+ t && /* @__PURE__ */ y(wr, { children: t }),
20935
20968
  /* @__PURE__ */ y(Pn, { className: "text-base sm:mt-4 md:text-base", children: /* @__PURE__ */ y("div", { className: "flex items-center space-x-2", children: [
20936
20969
  /* @__PURE__ */ y("span", { children: V.t("continue") }),
20937
20970
  /* @__PURE__ */ y(_t, { className: "text-xs", name: "arrow-right" })
@@ -20999,7 +21032,8 @@ const t1 = (t) => {
20999
21032
  ] });
21000
21033
  }, a1 = ["Auth0.swift"];
21001
21034
  function c1(t) {
21002
- if (!t) return "link";
21035
+ if (!t)
21036
+ return "code";
21003
21037
  const e = atob(t), n = JSON.parse(e);
21004
21038
  return a1.includes(n.name) ? "code" : "link";
21005
21039
  }
@@ -21111,13 +21145,13 @@ const l1 = new le().openapi(
21111
21145
  r.login_selection
21112
21146
  ))
21113
21147
  return t.redirect(`/u/enter-password?state=${n}`);
21114
- let u = ir(), p = await e.data.codes.get(
21148
+ let u = sr(), p = await e.data.codes.get(
21115
21149
  i.tenant.id,
21116
21150
  u,
21117
21151
  "otp"
21118
21152
  );
21119
21153
  for (; p; )
21120
- u = ir(), p = await e.data.codes.get(
21154
+ u = sr(), p = await e.data.codes.get(
21121
21155
  i.tenant.id,
21122
21156
  u,
21123
21157
  "otp"
@@ -21152,7 +21186,7 @@ var ri = "_hp", u1 = {
21152
21186
  }, d1 = {
21153
21187
  svg: "2000/svg",
21154
21188
  math: "1998/Math/MathML"
21155
- }, ii = [], Wc = /* @__PURE__ */ new WeakMap(), or = void 0, p1 = () => or, Bt = (t) => "t" in t, ua = {
21189
+ }, ii = [], Wc = /* @__PURE__ */ new WeakMap(), ar = void 0, p1 = () => ar, Bt = (t) => "t" in t, ua = {
21156
21190
  onClick: ["click", !1]
21157
21191
  }, Vp = (t) => {
21158
21192
  if (!t.startsWith("on"))
@@ -21164,7 +21198,7 @@ var ri = "_hp", u1 = {
21164
21198
  const [, n, r] = e;
21165
21199
  return ua[t] = [(u1[n] || n).toLowerCase(), !!r];
21166
21200
  }
21167
- }, Mp = (t, e) => or && 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, f1 = (t, e, n) => {
21201
+ }, Mp = (t, e) => ar && 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, f1 = (t, e, n) => {
21168
21202
  var r;
21169
21203
  e || (e = {});
21170
21204
  for (let i in e) {
@@ -21308,7 +21342,7 @@ var ri = "_hp", u1 = {
21308
21342
  Array.isArray(n[f]) && n.splice(f, 1, ...n[f].flat());
21309
21343
  let _ = m1(n[f]);
21310
21344
  if (_) {
21311
- typeof _.tag == "function" && !_.tag[jg] && (sr.length > 0 && (_[Ee][2] = sr.map((S) => [S, S.values.at(-1)])), (o = t[5]) != null && o.length && (_[Ee][3] = t[5].at(-1)));
21345
+ typeof _.tag == "function" && !_.tag[jg] && (or.length > 0 && (_[Ee][2] = or.map((S) => [S, S.values.at(-1)])), (o = t[5]) != null && o.length && (_[Ee][3] = t[5].at(-1)));
21312
21346
  let w;
21313
21347
  if (h && h.length) {
21314
21348
  const S = h.findIndex(
@@ -21323,8 +21357,8 @@ var ri = "_hp", u1 = {
21323
21357
  const S = w.pP = w.props;
21324
21358
  w.props = _.props, w.f || (w.f = _.f || e.f), typeof _.tag == "function" && (w[Ee][2] = _[Ee][2] || [], w[Ee][3] = _[Ee][3], !w.f && ((w.o || w) === _.o || (l = (c = w.tag)[Ob]) != null && l.call(c, S, w.props)) && (w.s = !0)), _ = w;
21325
21359
  }
21326
- else if (!Bt(_) && or) {
21327
- const S = yr(or);
21360
+ else if (!Bt(_) && ar) {
21361
+ const S = vr(ar);
21328
21362
  S && (_.n = S);
21329
21363
  }
21330
21364
  if (!Bt(_) && !_.s && (Gc(t, _), delete _.f), m.push(_), v && !v.s && !_.s)
@@ -21382,9 +21416,9 @@ var ri = "_hp", u1 = {
21382
21416
  t[Ee] = [0, []];
21383
21417
  else {
21384
21418
  const e = d1[t.tag];
21385
- e && (or || (or = Og("")), t.props.children = [
21419
+ e && (ar || (ar = Og("")), t.props.children = [
21386
21420
  {
21387
- tag: or,
21421
+ tag: ar,
21388
21422
  props: {
21389
21423
  value: t.n = `http://www.w3.org/${e}`,
21390
21424
  children: t.props.children
@@ -21517,7 +21551,7 @@ var ri = "_hp", u1 = {
21517
21551
  };
21518
21552
  },
21519
21553
  [t]
21520
- ), qn = /* @__PURE__ */ Object.create(null), Li = /* @__PURE__ */ Object.create(null), Ci = (t, e, n, r, i) => {
21554
+ ), zn = /* @__PURE__ */ Object.create(null), Li = /* @__PURE__ */ Object.create(null), Ci = (t, e, n, r, i) => {
21521
21555
  if (e != null && e.itemProp)
21522
21556
  return {
21523
21557
  tag: t,
@@ -21584,7 +21618,7 @@ var ri = "_hp", u1 = {
21584
21618
  const T = v[0];
21585
21619
  if (n === 2 && (N.innerHTML = ""), (m || f) && _(N), !c && !o)
21586
21620
  return;
21587
- let L = qn[ne = N.getAttribute(T)] || (qn[ne] = new Promise(
21621
+ let L = zn[ne = N.getAttribute(T)] || (zn[ne] = new Promise(
21588
21622
  (ge, de) => {
21589
21623
  N.addEventListener("load", ge), N.addEventListener("error", de);
21590
21624
  }
@@ -21595,7 +21629,7 @@ var ri = "_hp", u1 = {
21595
21629
  if (i && u === "render") {
21596
21630
  const N = Hi[t][0];
21597
21631
  if (e[N]) {
21598
- const T = e[N], L = qn[T] || (qn[T] = new Promise((ne, ge) => {
21632
+ const T = e[N], L = zn[T] || (zn[T] = new Promise((ne, ge) => {
21599
21633
  _(h), h.addEventListener("load", ne), h.addEventListener("error", ge);
21600
21634
  }));
21601
21635
  w1(L);
@@ -21615,7 +21649,7 @@ var ri = "_hp", u1 = {
21615
21649
  s
21616
21650
  );
21617
21651
  }, S1 = (t) => {
21618
- const e = p1(), n = e && yr(e);
21652
+ const e = p1(), n = e && vr(e);
21619
21653
  return n != null && n.endsWith("svg") ? {
21620
21654
  tag: "title",
21621
21655
  props: t,
@@ -21770,7 +21804,7 @@ const Wg = (t) => {
21770
21804
  id: "code-input"
21771
21805
  }
21772
21806
  ),
21773
- t && /* @__PURE__ */ y(vr, { children: t }),
21807
+ t && /* @__PURE__ */ y(wr, { children: t }),
21774
21808
  /* @__PURE__ */ y("div", { className: "text-center sm:mt-2", children: /* @__PURE__ */ y(Pn, { className: "text-base sm:mt-4 md:text-base", children: /* @__PURE__ */ y("div", { className: "flex items-center space-x-2", children: [
21775
21809
  /* @__PURE__ */ y("span", { children: V.t("login") }),
21776
21810
  /* @__PURE__ */ y(_t, { className: "text-xs", name: "arrow-right" })
@@ -21963,7 +21997,7 @@ const Wg = (t) => {
21963
21997
  required: !0
21964
21998
  }
21965
21999
  ),
21966
- e && /* @__PURE__ */ y(vr, { children: e }),
22000
+ e && /* @__PURE__ */ y(wr, { children: e }),
21967
22001
  /* @__PURE__ */ y(Pn, { className: "text-base sm:mt-4 md:text-base", children: /* @__PURE__ */ y("div", { className: "flex items-center space-x-2", children: [
21968
22002
  /* @__PURE__ */ y("span", { children: V.t("login") }),
21969
22003
  /* @__PURE__ */ y(_t, { className: "text-xs", name: "arrow-right" })
@@ -22160,7 +22194,7 @@ const Wg = (t) => {
22160
22194
  className: "mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"
22161
22195
  }
22162
22196
  ),
22163
- n && /* @__PURE__ */ y(vr, { children: n }),
22197
+ n && /* @__PURE__ */ y(wr, { children: n }),
22164
22198
  /* @__PURE__ */ y(Pn, { className: "text-base sm:mt-2 md:text-base", children: V.t("continue") })
22165
22199
  ] }),
22166
22200
  /* @__PURE__ */ y(en, { state: e })
@@ -22387,7 +22421,7 @@ const Wg = (t) => {
22387
22421
  className: "mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"
22388
22422
  }
22389
22423
  ),
22390
- e && /* @__PURE__ */ y(vr, { children: e }),
22424
+ e && /* @__PURE__ */ y(wr, { children: e }),
22391
22425
  /* @__PURE__ */ y(Pn, { className: "text-base sm:mt-2 md:text-base", children: V.t("reset_password_cta") })
22392
22426
  ] }) })
22393
22427
  ]
@@ -22573,7 +22607,7 @@ const Wg = (t) => {
22573
22607
  disabled: !!r
22574
22608
  }
22575
22609
  ),
22576
- e && /* @__PURE__ */ y(vr, { children: e }),
22610
+ e && /* @__PURE__ */ y(wr, { children: e }),
22577
22611
  /* @__PURE__ */ y(Pn, { className: "sm:mt-4", children: V.t("forgot_password_cta") })
22578
22612
  ] }),
22579
22613
  /* @__PURE__ */ y(en, { state: i })
@@ -23710,7 +23744,7 @@ export {
23710
23744
  Ui as GrantType,
23711
23745
  ve as LogTypes,
23712
23746
  ya as applicationInsertSchema,
23713
- zn as applicationSchema,
23747
+ Dn as applicationSchema,
23714
23748
  Ot as auth0UserResponseSchema,
23715
23749
  Qp as authParamsSchema,
23716
23750
  Jc as baseUserSchema,
@@ -23723,9 +23757,9 @@ export {
23723
23757
  va as connectionInsertSchema,
23724
23758
  ln as connectionSchema,
23725
23759
  ef as customDomainInsertSchema,
23726
- kr as customDomainSchema,
23760
+ Vn as customDomainSchema,
23727
23761
  Wo as emailProviderSchema,
23728
- Vn as fontDetailsSchema,
23762
+ Mn as fontDetailsSchema,
23729
23763
  Fm as fontsSchema,
23730
23764
  ba as hookInsertSchema,
23731
23765
  Nr as hookSchema,