authhero 0.169.0 → 0.170.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
@@ -1,6 +1,6 @@
1
- var q_ = Object.defineProperty;
2
- var V_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var $e = (t, e, n) => V_(t, typeof e != "symbol" ? e + "" : e, n);
1
+ var V_ = Object.defineProperty;
2
+ var z_ = (t, e, n) => e in t ? V_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var $e = (t, e, n) => z_(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { z as a, OpenAPIHono as Ce, createRoute as X } from "@hono/zod-openapi";
5
5
  const Ee = (t) => typeof t == "string", eo = () => {
6
6
  let t, e;
@@ -8,11 +8,11 @@ const Ee = (t) => typeof t == "string", eo = () => {
8
8
  t = r, e = i;
9
9
  });
10
10
  return n.resolve = t, n.reject = e, n;
11
- }, vf = (t) => t == null ? "" : "" + t, z_ = (t, e, n) => {
11
+ }, vf = (t) => t == null ? "" : "" + t, H_ = (t, e, n) => {
12
12
  t.forEach((r) => {
13
13
  e[r] && (n[r] = e[r]);
14
14
  });
15
- }, H_ = /###/g, bf = (t) => t && t.indexOf("###") > -1 ? t.replace(H_, ".") : t, xf = (t) => !t || Ee(t), fo = (t, e, n) => {
15
+ }, K_ = /###/g, bf = (t) => t && t.indexOf("###") > -1 ? t.replace(K_, ".") : t, xf = (t) => !t || Ee(t), fo = (t, e, n) => {
16
16
  const r = Ee(e) ? e.split(".") : e;
17
17
  let i = 0;
18
18
  for (; i < r.length - 1; ) {
@@ -37,7 +37,7 @@ const Ee = (t) => typeof t == "string", eo = () => {
37
37
  for (; l.obj === void 0 && c.length; )
38
38
  o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), l = fo(t, c, Object), l != null && l.obj && typeof l.obj[`${l.k}.${o}`] < "u" && (l.obj = void 0);
39
39
  l.obj[`${l.k}.${o}`] = n;
40
- }, K_ = (t, e, n, r) => {
40
+ }, G_ = (t, e, n, r) => {
41
41
  const {
42
42
  obj: i,
43
43
  k: o
@@ -50,7 +50,7 @@ const Ee = (t) => typeof t == "string", eo = () => {
50
50
  } = fo(t, e);
51
51
  if (n && Object.prototype.hasOwnProperty.call(n, r))
52
52
  return n[r];
53
- }, G_ = (t, e, n) => {
53
+ }, W_ = (t, e, n) => {
54
54
  const r = ea(t, n);
55
55
  return r !== void 0 ? r : ea(e, n);
56
56
  }, Vg = (t, e, n) => {
@@ -58,7 +58,7 @@ const Ee = (t) => typeof t == "string", eo = () => {
58
58
  r !== "__proto__" && r !== "constructor" && (r in t ? Ee(t[r]) || t[r] instanceof String || Ee(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : Vg(t[r], e[r], n) : t[r] = e[r]);
59
59
  return t;
60
60
  }, ii = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
61
- var W_ = {
61
+ var X_ = {
62
62
  "&": "&amp;",
63
63
  "<": "&lt;",
64
64
  ">": "&gt;",
@@ -66,8 +66,8 @@ var W_ = {
66
66
  "'": "&#39;",
67
67
  "/": "&#x2F;"
68
68
  };
69
- const X_ = (t) => Ee(t) ? t.replace(/[&<>"'\/]/g, (e) => W_[e]) : t;
70
- class J_ {
69
+ const J_ = (t) => Ee(t) ? t.replace(/[&<>"'\/]/g, (e) => X_[e]) : t;
70
+ class Y_ {
71
71
  constructor(e) {
72
72
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
73
73
  }
@@ -79,11 +79,11 @@ class J_ {
79
79
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
80
80
  }
81
81
  }
82
- const Y_ = [" ", ",", "?", "!", ";"], Z_ = new J_(20), Q_ = (t, e, n) => {
82
+ const Z_ = [" ", ",", "?", "!", ";"], Q_ = new Y_(20), ey = (t, e, n) => {
83
83
  e = e || "", n = n || "";
84
- const r = Y_.filter((c) => e.indexOf(c) < 0 && n.indexOf(c) < 0);
84
+ const r = Z_.filter((c) => e.indexOf(c) < 0 && n.indexOf(c) < 0);
85
85
  if (r.length === 0) return !0;
86
- const i = Z_.getRegExp(`(${r.map((c) => c === "?" ? "\\?" : c).join("|")})`);
86
+ const i = Q_.getRegExp(`(${r.map((c) => c === "?" ? "\\?" : c).join("|")})`);
87
87
  let o = !i.test(t);
88
88
  if (!o) {
89
89
  const c = t.indexOf(n);
@@ -111,7 +111,7 @@ const Y_ = [" ", ",", "?", "!", ";"], Z_ = new J_(20), Q_ = (t, e, n) => {
111
111
  i = c;
112
112
  }
113
113
  return i;
114
- }, ta = (t) => t == null ? void 0 : t.replace("_", "-"), ey = {
114
+ }, ta = (t) => t == null ? void 0 : t.replace("_", "-"), ty = {
115
115
  type: "logger",
116
116
  log(t) {
117
117
  this.output("log", t);
@@ -134,7 +134,7 @@ class na {
134
134
  }
135
135
  init(e) {
136
136
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
137
- this.prefix = n.prefix || "i18next:", this.logger = e || ey, this.options = n, this.debug = n.debug;
137
+ this.prefix = n.prefix || "i18next:", this.logger = e || ty, this.options = n, this.debug = n.debug;
138
138
  }
139
139
  log() {
140
140
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
@@ -294,7 +294,7 @@ const kf = {};
294
294
  class ra extends Ya {
295
295
  constructor(e) {
296
296
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
297
- super(), z_(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = yn.create("translator");
297
+ super(), H_(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = yn.create("translator");
298
298
  }
299
299
  changeLanguage(e) {
300
300
  e && (this.language = e);
@@ -313,7 +313,7 @@ class ra extends Ya {
313
313
  r === void 0 && (r = ":");
314
314
  const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
315
315
  let o = n.ns || this.options.defaultNS || [];
316
- const c = r && e.indexOf(r) > -1, l = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Q_(e, r, i);
316
+ const c = r && e.indexOf(r) > -1, l = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !ey(e, r, i);
317
317
  if (c && !l) {
318
318
  const u = e.match(this.interpolator.nestingRegexp);
319
319
  if (u && u.length > 0)
@@ -617,7 +617,7 @@ const Sf = {
617
617
  pluralCategories: ["one", "other"]
618
618
  })
619
619
  };
620
- class ty {
620
+ class ny {
621
621
  constructor(e) {
622
622
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
623
623
  this.languageUtils = e, this.options = n, this.logger = yn.create("pluralResolver"), this.pluralRulesCache = {};
@@ -669,10 +669,10 @@ class ty {
669
669
  }
670
670
  }
671
671
  const Cf = function(t, e, n) {
672
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = G_(t, e, n);
672
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = W_(t, e, n);
673
673
  return !o && i && Ee(n) && (o = Wl(t, n, r), o === void 0 && (o = Wl(e, n, r))), o;
674
674
  }, fl = (t) => t.replace(/\$/g, "$$$$");
675
- class ny {
675
+ class ry {
676
676
  constructor() {
677
677
  var n;
678
678
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -702,7 +702,7 @@ class ny {
702
702
  maxReplaces: k,
703
703
  alwaysFormat: v
704
704
  } = e.interpolation;
705
- this.escape = n !== void 0 ? n : X_, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? ii(o) : c || "{{", this.suffix = l ? ii(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = f ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = _ ? ii(_) : $ || ii("$t("), this.nestingSuffix = m ? ii(m) : x || ii(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = k || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
705
+ this.escape = n !== void 0 ? n : J_, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? ii(o) : c || "{{", this.suffix = l ? ii(l) : u || "}}", this.formatSeparator = d || ",", this.unescapePrefix = f ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = _ ? ii(_) : $ || ii("$t("), this.nestingSuffix = m ? ii(m) : x || ii(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = k || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
706
706
  }
707
707
  reset() {
708
708
  this.options && this.init(this.options);
@@ -798,7 +798,7 @@ class ny {
798
798
  return e;
799
799
  }
800
800
  }
801
- const ry = (t) => {
801
+ const iy = (t) => {
802
802
  let e = t.toLowerCase().trim();
803
803
  const n = {};
804
804
  if (t.indexOf("(") > -1) {
@@ -829,7 +829,7 @@ const ry = (t) => {
829
829
  return l || (l = t(ta(r), i), e[c] = l), l(n);
830
830
  };
831
831
  };
832
- class iy {
832
+ class oy {
833
833
  constructor() {
834
834
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
835
835
  this.logger = yn.create("formatter"), this.options = e, this.formats = {
@@ -890,7 +890,7 @@ class iy {
890
890
  const {
891
891
  formatName: d,
892
892
  formatOptions: f
893
- } = ry(u);
893
+ } = iy(u);
894
894
  if (this.formats[d]) {
895
895
  let _ = l;
896
896
  try {
@@ -910,10 +910,10 @@ class iy {
910
910
  }, e);
911
911
  }
912
912
  }
913
- const oy = (t, e) => {
913
+ const sy = (t, e) => {
914
914
  t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--);
915
915
  };
916
- class sy extends Ya {
916
+ class ay extends Ya {
917
917
  constructor(e, n, r) {
918
918
  var o, c;
919
919
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -947,7 +947,7 @@ class sy extends Ya {
947
947
  }), this.state[e] = n ? -1 : 2, n && r && (this.state[e] = 0);
948
948
  const l = {};
949
949
  this.queue.forEach((u) => {
950
- K_(u.loaded, [o], c), oy(u, e), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((d) => {
950
+ G_(u.loaded, [o], c), sy(u, e), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((d) => {
951
951
  l[d] || (l[d] = {});
952
952
  const f = u.loaded[d];
953
953
  f.length && f.forEach((h) => {
@@ -1110,7 +1110,7 @@ const If = () => ({
1110
1110
  var e, n;
1111
1111
  return Ee(t.ns) && (t.ns = [t.ns]), Ee(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), Ee(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), ((n = (e = t.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : n.call(e, "cimode")) < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t;
1112
1112
  }, Ss = () => {
1113
- }, ay = (t) => {
1113
+ }, cy = (t) => {
1114
1114
  Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n) => {
1115
1115
  typeof t[n] == "function" && (t[n] = t[n].bind(t));
1116
1116
  });
@@ -1120,7 +1120,7 @@ class bo extends Ya {
1120
1120
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
1121
1121
  if (super(), this.options = Tf(e), this.services = {}, this.logger = yn, this.modules = {
1122
1122
  external: []
1123
- }, ay(this), n && !this.isInitialized && !e.isClone) {
1123
+ }, cy(this), n && !this.isInitialized && !e.isClone) {
1124
1124
  if (!this.options.initAsync)
1125
1125
  return this.init(e, n), this;
1126
1126
  setTimeout(() => {
@@ -1145,16 +1145,16 @@ class bo extends Ya {
1145
1145
  if (!this.options.isClone) {
1146
1146
  this.modules.logger ? yn.init(o(this.modules.logger), this.options) : yn.init(null, this.options);
1147
1147
  let f;
1148
- this.modules.formatter ? f = this.modules.formatter : f = iy;
1148
+ this.modules.formatter ? f = this.modules.formatter : f = oy;
1149
1149
  const h = new Ef(this.options);
1150
1150
  this.store = new Af(this.options.resources, this.options);
1151
1151
  const _ = this.services;
1152
- _.logger = yn, _.resourceStore = this.store, _.languageUtils = h, _.pluralResolver = new ty(h, {
1152
+ _.logger = yn, _.resourceStore = this.store, _.languageUtils = h, _.pluralResolver = new ny(h, {
1153
1153
  prepend: this.options.pluralSeparator,
1154
1154
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1155
- }), f && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (_.formatter = o(f), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new ny(this.options), _.utils = {
1155
+ }), f && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (_.formatter = o(f), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new ry(this.options), _.utils = {
1156
1156
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1157
- }, _.backendConnector = new sy(o(this.modules.backend), _.resourceStore, _, this.options), _.backendConnector.on("*", function($) {
1157
+ }, _.backendConnector = new ay(o(this.modules.backend), _.resourceStore, _, this.options), _.backendConnector.on("*", function($) {
1158
1158
  for (var m = arguments.length, x = new Array(m > 1 ? m - 1 : 0), S = 1; S < m; S++)
1159
1159
  x[S - 1] = arguments[S];
1160
1160
  e.emit($, ...x);
@@ -1428,7 +1428,7 @@ const yr = a.object({
1428
1428
  }), Za = a.object({
1429
1429
  created_at: a.string(),
1430
1430
  updated_at: a.string()
1431
- }), cy = a.object({
1431
+ }), ly = a.object({
1432
1432
  email: a.string().optional(),
1433
1433
  email_verified: a.boolean().optional(),
1434
1434
  name: a.string().optional(),
@@ -1437,7 +1437,7 @@ const yr = a.object({
1437
1437
  phone_number: a.string().optional(),
1438
1438
  phone_verified: a.boolean().optional(),
1439
1439
  family_name: a.string().optional()
1440
- }).catchall(a.any()), ly = a.object({
1440
+ }).catchall(a.any()), uy = a.object({
1441
1441
  connection: a.string(),
1442
1442
  user_id: a.string(),
1443
1443
  provider: a.string(),
@@ -1445,7 +1445,7 @@ const yr = a.object({
1445
1445
  access_token: a.string().optional(),
1446
1446
  access_token_secret: a.string().optional(),
1447
1447
  refresh_token: a.string().optional(),
1448
- profileData: cy.optional()
1448
+ profileData: ly.optional()
1449
1449
  }), Fd = a.object({
1450
1450
  email: a.string().optional().transform((t) => t && t.toLowerCase()),
1451
1451
  username: a.string().optional(),
@@ -1477,21 +1477,21 @@ const yr = a.object({
1477
1477
  is_social: a.boolean(),
1478
1478
  email: a.string().optional(),
1479
1479
  login_count: a.number().default(0),
1480
- identities: a.array(ly).optional()
1480
+ identities: a.array(uy).optional()
1481
1481
  }), In = Kg, $q = Fd.extend({
1482
1482
  login_count: a.number(),
1483
1483
  multifactor: a.array(a.string()).optional(),
1484
1484
  last_ip: a.string().optional(),
1485
1485
  last_login: a.string().optional(),
1486
1486
  user_id: a.string()
1487
- }).catchall(a.any()), uy = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1488
- let dy = (t = 21) => {
1487
+ }).catchall(a.any()), dy = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1488
+ let py = (t = 21) => {
1489
1489
  let e = "", n = crypto.getRandomValues(new Uint8Array(t));
1490
1490
  for (; t--; )
1491
- e += uy[n[t] & 63];
1491
+ e += dy[n[t] & 63];
1492
1492
  return e;
1493
1493
  };
1494
- const py = a.object({
1494
+ const fy = a.object({
1495
1495
  audience: a.string().optional(),
1496
1496
  recipient: a.string().optional(),
1497
1497
  createUpnClaim: a.boolean().optional(),
@@ -1527,14 +1527,14 @@ const py = a.object({
1527
1527
  description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
1528
1528
  }),
1529
1529
  addons: a.object({
1530
- samlp: py.optional()
1530
+ samlp: fy.optional()
1531
1531
  }).default({}).optional().openapi({
1532
1532
  description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
1533
1533
  }),
1534
1534
  email_validation: a.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
1535
1535
  description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
1536
1536
  }),
1537
- client_secret: a.string().default(() => dy()).optional(),
1537
+ client_secret: a.string().default(() => py()).optional(),
1538
1538
  disable_sign_ups: a.boolean().optional().default(!1).openapi({
1539
1539
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
1540
1540
  })
@@ -1551,7 +1551,7 @@ const Qa = a.object({
1551
1551
  id: a.string(),
1552
1552
  category: a.nativeEnum(Wg),
1553
1553
  type: a.nativeEnum(Gg)
1554
- }), fy = Qa.extend({
1554
+ }), hy = Qa.extend({
1555
1555
  category: a.literal(
1556
1556
  "BLOCK"
1557
1557
  /* BLOCK */
@@ -1563,7 +1563,7 @@ const Qa = a.object({
1563
1563
  config: a.object({
1564
1564
  content: a.string()
1565
1565
  }).passthrough()
1566
- }), hy = Qa.extend({
1566
+ }), gy = Qa.extend({
1567
1567
  category: a.literal(
1568
1568
  "BLOCK"
1569
1569
  /* BLOCK */
@@ -1585,7 +1585,7 @@ const Qa = a.object({
1585
1585
  config: a.object({
1586
1586
  text: a.string()
1587
1587
  }).passthrough()
1588
- }), gy = Qa.extend({
1588
+ }), my = Qa.extend({
1589
1589
  category: a.literal(
1590
1590
  "FIELD"
1591
1591
  /* FIELD */
@@ -1599,7 +1599,7 @@ const Qa = a.object({
1599
1599
  config: a.object({
1600
1600
  text: a.string()
1601
1601
  }).passthrough()
1602
- }), my = Qa.extend({
1602
+ }), _y = Qa.extend({
1603
1603
  category: a.literal(
1604
1604
  "FIELD"
1605
1605
  /* FIELD */
@@ -1652,19 +1652,19 @@ const Qa = a.object({
1652
1652
  label: a.string().optional(),
1653
1653
  placeholder: a.string().optional()
1654
1654
  }).passthrough()
1655
- }), _y = a.object({
1655
+ }), yy = a.object({
1656
1656
  id: a.string(),
1657
1657
  category: a.string(),
1658
1658
  type: a.string()
1659
- }).passthrough(), yy = a.union([
1660
- fy,
1659
+ }).passthrough(), wy = a.union([
1661
1660
  hy,
1662
1661
  gy,
1663
1662
  my,
1664
- _y
1663
+ _y,
1664
+ yy
1665
1665
  ]);
1666
- var wy = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(wy || {});
1667
- const vy = a.object({
1666
+ var vy = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(vy || {});
1667
+ const by = a.object({
1668
1668
  id: a.string(),
1669
1669
  type: a.literal(
1670
1670
  "STEP"
@@ -1673,10 +1673,10 @@ const vy = a.object({
1673
1673
  coordinates: Ho,
1674
1674
  alias: a.string().optional(),
1675
1675
  config: a.object({
1676
- components: a.array(yy),
1676
+ components: a.array(wy),
1677
1677
  next_node: a.string()
1678
1678
  }).passthrough()
1679
- }), by = a.object({
1679
+ }), xy = a.object({
1680
1680
  id: a.string(),
1681
1681
  type: a.literal(
1682
1682
  "FLOW"
@@ -1688,36 +1688,36 @@ const vy = a.object({
1688
1688
  flow_id: a.string(),
1689
1689
  next_node: a.string()
1690
1690
  })
1691
- }), xy = a.object({
1691
+ }), $y = a.object({
1692
1692
  id: a.string(),
1693
1693
  type: a.string(),
1694
1694
  coordinates: Ho
1695
- }).passthrough(), $y = a.union([
1696
- vy,
1695
+ }).passthrough(), Ay = a.union([
1697
1696
  by,
1698
- xy
1699
- ]), Ay = a.object({
1697
+ xy,
1698
+ $y
1699
+ ]), ky = a.object({
1700
1700
  next_node: a.string(),
1701
1701
  coordinates: Ho
1702
- }).passthrough(), ky = a.object({
1702
+ }).passthrough(), Ey = a.object({
1703
1703
  resume_flow: a.boolean().optional(),
1704
1704
  coordinates: Ho
1705
- }).passthrough(), Ey = a.object({
1705
+ }).passthrough(), Sy = a.object({
1706
1706
  id: a.string(),
1707
1707
  name: a.string(),
1708
1708
  languages: a.object({
1709
1709
  primary: a.string()
1710
1710
  }).passthrough(),
1711
- nodes: a.array($y),
1712
- start: Ay,
1713
- ending: ky,
1711
+ nodes: a.array(Ay),
1712
+ start: ky,
1713
+ ending: Ey,
1714
1714
  created_at: a.string(),
1715
1715
  updated_at: a.string(),
1716
1716
  links: a.object({
1717
1717
  sdkSrc: a.string().optional(),
1718
1718
  sdk_src: a.string().optional()
1719
1719
  }).passthrough()
1720
- }).passthrough(), Aq = Ey.omit({
1720
+ }).passthrough(), Aq = Sy.omit({
1721
1721
  id: !0,
1722
1722
  created_at: !0,
1723
1723
  updated_at: !0
@@ -1803,7 +1803,7 @@ const ia = a.object({
1803
1803
  updated_at: a.string().transform((t) => t === null ? "" : t),
1804
1804
  ...Zl.shape,
1805
1805
  id: a.string()
1806
- }), Sy = a.object({
1806
+ }), Ny = a.object({
1807
1807
  logoUrl: a.string(),
1808
1808
  loginBackgroundImage: a.string().nullish(),
1809
1809
  style: a.object({
@@ -1826,14 +1826,14 @@ a.object({
1826
1826
  tenant: ho,
1827
1827
  connections: a.array(Ir)
1828
1828
  });
1829
- const Ny = a.enum([
1829
+ const Cy = a.enum([
1830
1830
  "password_reset",
1831
1831
  "email_verification",
1832
1832
  "otp",
1833
1833
  "authorization_code",
1834
1834
  "oauth2_state",
1835
1835
  "ticket"
1836
- ]), Cy = a.object({
1836
+ ]), Iy = a.object({
1837
1837
  code_id: a.string().openapi({
1838
1838
  description: "The code that will be used in for instance an email verification flow"
1839
1839
  }),
@@ -1843,7 +1843,7 @@ const Ny = a.enum([
1843
1843
  connection_id: a.string().optional().openapi({
1844
1844
  description: "The connection that the code is connected to"
1845
1845
  }),
1846
- code_type: Ny,
1846
+ code_type: Cy,
1847
1847
  code_verifier: a.string().optional().openapi({
1848
1848
  description: "The code verifier used in PKCE in outbound flows"
1849
1849
  }),
@@ -1866,7 +1866,7 @@ const Ny = a.enum([
1866
1866
  used_at: a.string().optional(),
1867
1867
  user_id: a.string().optional()
1868
1868
  }), kq = a.object({
1869
- ...Cy.shape,
1869
+ ...Iy.shape,
1870
1870
  created_at: a.string()
1871
1871
  }), Jg = a.object({
1872
1872
  domain: a.string(),
@@ -1882,7 +1882,7 @@ const Ny = a.enum([
1882
1882
  "null"
1883
1883
  ]).optional(),
1884
1884
  domain_metadata: a.record(a.string().max(255)).optional()
1885
- }), Iy = a.object({
1885
+ }), Ty = a.object({
1886
1886
  name: a.literal("txt"),
1887
1887
  record: a.string(),
1888
1888
  domain: a.string()
@@ -1893,7 +1893,7 @@ const Ny = a.enum([
1893
1893
  status: a.enum(["disabled", "pending", "pending_verification", "ready"]),
1894
1894
  origin_domain_name: a.string().optional(),
1895
1895
  verification: a.object({
1896
- methods: a.array(Iy)
1896
+ methods: a.array(Ty)
1897
1897
  }).optional(),
1898
1898
  tls_policy: a.string().optional()
1899
1899
  }), Eq = Sr.extend({
@@ -1907,7 +1907,7 @@ const Ny = a.enum([
1907
1907
  order: a.number().optional(),
1908
1908
  visible: a.boolean().optional().default(!0),
1909
1909
  customizations: a.record(a.string(), a.any()).optional()
1910
- }), Ty = a.discriminatedUnion("type", [
1910
+ }), Oy = a.discriminatedUnion("type", [
1911
1911
  a.object({
1912
1912
  id: a.string(),
1913
1913
  type: a.literal("RICH_TEXT"),
@@ -2001,7 +2001,7 @@ const Ny = a.enum([
2001
2001
  coordinates: a.object({ x: a.number(), y: a.number() }),
2002
2002
  alias: a.string().min(1).max(150).optional(),
2003
2003
  config: a.object({
2004
- components: a.array(Ty),
2004
+ components: a.array(Oy),
2005
2005
  next_node: a.string()
2006
2006
  })
2007
2007
  })
@@ -2042,30 +2042,30 @@ const Ny = a.enum([
2042
2042
  synchronous: a.boolean().default(!1),
2043
2043
  priority: a.number().optional(),
2044
2044
  hook_id: a.string().optional()
2045
- }, Oy = a.object({
2045
+ }, Dy = a.object({
2046
2046
  ...ec,
2047
2047
  trigger_id: Yg,
2048
2048
  url: a.string()
2049
- }), Dy = a.object({
2049
+ }), Ry = a.object({
2050
2050
  ...ec,
2051
2051
  trigger_id: Zg,
2052
2052
  form_id: a.string()
2053
2053
  }), hl = a.union([
2054
- Oy,
2055
- Dy
2056
- ]), Ry = a.object({
2054
+ Dy,
2055
+ Ry
2056
+ ]), By = a.object({
2057
2057
  ...ec,
2058
2058
  trigger_id: Yg,
2059
2059
  ...Za.shape,
2060
2060
  hook_id: a.string(),
2061
2061
  url: a.string()
2062
- }), By = a.object({
2062
+ }), Py = a.object({
2063
2063
  ...ec,
2064
2064
  trigger_id: Zg,
2065
2065
  ...Za.shape,
2066
2066
  hook_id: a.string(),
2067
2067
  form_id: a.string()
2068
- }), lo = a.union([Ry, By]), Qg = a.object({
2068
+ }), lo = a.union([By, Py]), Qg = a.object({
2069
2069
  alg: a.enum([
2070
2070
  "RS256",
2071
2071
  "RS384",
@@ -2084,7 +2084,7 @@ const Ny = a.enum([
2084
2084
  x5t: a.string().optional(),
2085
2085
  x5c: a.array(a.string()).optional(),
2086
2086
  use: a.enum(["sig", "enc"]).optional()
2087
- }), Py = a.object({
2087
+ }), jy = a.object({
2088
2088
  keys: a.array(Qg)
2089
2089
  }), Df = a.object({
2090
2090
  issuer: a.string(),
@@ -2107,7 +2107,7 @@ const Ny = a.enum([
2107
2107
  request_uri_parameter_supported: a.boolean(),
2108
2108
  request_parameter_supported: a.boolean(),
2109
2109
  token_endpoint_auth_signing_alg_values_supported: a.array(a.string())
2110
- }), jy = a.object({
2110
+ }), Ly = a.object({
2111
2111
  csrf_token: a.string(),
2112
2112
  auth0Client: a.string().optional(),
2113
2113
  authParams: ia,
@@ -2121,7 +2121,7 @@ const Ny = a.enum([
2121
2121
  }).openapi({
2122
2122
  description: "This represents a login sesion"
2123
2123
  }), Nq = a.object({
2124
- ...jy.shape,
2124
+ ...Ly.shape,
2125
2125
  id: a.string().openapi({
2126
2126
  description: "This is is used as the state in the universal login"
2127
2127
  }),
@@ -2129,7 +2129,7 @@ const Ny = a.enum([
2129
2129
  updated_at: a.string()
2130
2130
  });
2131
2131
  var qe = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t.BLOCKED_ACCOUNT_EMAIL = "limit_wc", t.BLOCKED_ACCOUNT_IP = "limit_sul", t.BLOCKED_IP_ADDRESS = "limit_mu", t))(qe || {});
2132
- const Ly = a.enum([
2132
+ const Fy = a.enum([
2133
2133
  "cls",
2134
2134
  // CODE_LINK_SENT
2135
2135
  "fsa",
@@ -2178,14 +2178,14 @@ const Ly = a.enum([
2178
2178
  // SUCCESS_VERIFICATION_EMAIL
2179
2179
  "svr"
2180
2180
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
2181
- ]), Fy = a.object({
2181
+ ]), Uy = a.object({
2182
2182
  name: a.string(),
2183
2183
  version: a.string(),
2184
2184
  env: a.object({
2185
2185
  node: a.string().optional()
2186
2186
  }).optional()
2187
2187
  }), eu = a.object({
2188
- type: Ly,
2188
+ type: Fy,
2189
2189
  date: a.string(),
2190
2190
  description: a.string().optional(),
2191
2191
  log_id: a.string().optional(),
@@ -2206,13 +2206,13 @@ const Ly = a.enum([
2206
2206
  strategy: a.string().optional(),
2207
2207
  strategy_type: a.string().optional(),
2208
2208
  hostname: a.string().optional(),
2209
- auth0_client: Fy.optional()
2210
- }), Uy = a.object({
2209
+ auth0_client: Uy.optional()
2210
+ }), My = a.object({
2211
2211
  user_id: a.string(),
2212
2212
  password: a.string(),
2213
2213
  algorithm: a.enum(["bcrypt", "argon2id"]).default("argon2id")
2214
2214
  }), Cq = a.object({
2215
- ...Uy.shape,
2215
+ ...My.shape,
2216
2216
  created_at: a.string(),
2217
2217
  updated_at: a.string()
2218
2218
  }), em = a.object({
@@ -2222,7 +2222,7 @@ const Ly = a.enum([
2222
2222
  last_user_agent: a.string().describe("Last user agent of the device from which this user logged in"),
2223
2223
  last_ip: a.string().describe("Last IP address from which this user logged in"),
2224
2224
  last_asn: a.string().describe("Last autonomous system number from which this user logged in")
2225
- }), My = a.object({
2225
+ }), qy = a.object({
2226
2226
  id: a.string(),
2227
2227
  revoked_at: a.string().optional(),
2228
2228
  used_at: a.string().optional(),
@@ -2239,7 +2239,7 @@ const Ly = a.enum([
2239
2239
  updated_at: a.string(),
2240
2240
  authenticated_at: a.string(),
2241
2241
  last_interaction_at: a.string(),
2242
- ...My.shape
2242
+ ...qy.shape
2243
2243
  }), Rf = a.object({
2244
2244
  kid: a.string().openapi({ description: "The key id of the signing key" }),
2245
2245
  cert: a.string().openapi({ description: "The public certificate of the signing key" }),
@@ -2274,7 +2274,7 @@ a.object({
2274
2274
  code: a.string(),
2275
2275
  state: a.string().optional()
2276
2276
  });
2277
- const qy = a.object({
2277
+ const Vy = a.object({
2278
2278
  button_border_radius: a.number(),
2279
2279
  button_border_weight: a.number(),
2280
2280
  buttons_style: a.enum(["pill"]),
@@ -2284,7 +2284,7 @@ const qy = a.object({
2284
2284
  show_widget_shadow: a.boolean(),
2285
2285
  widget_border_weight: a.number(),
2286
2286
  widget_corner_radius: a.number()
2287
- }), Vy = a.object({
2287
+ }), zy = a.object({
2288
2288
  base_focus_color: a.string(),
2289
2289
  base_hover_color: a.string(),
2290
2290
  body_text: a.string(),
@@ -2307,7 +2307,7 @@ const qy = a.object({
2307
2307
  }), si = a.object({
2308
2308
  bold: a.boolean(),
2309
2309
  size: a.number()
2310
- }), zy = a.object({
2310
+ }), Hy = a.object({
2311
2311
  body_text: si,
2312
2312
  buttons_text: si,
2313
2313
  font_url: a.string(),
@@ -2317,24 +2317,24 @@ const qy = a.object({
2317
2317
  reference_text_size: a.number(),
2318
2318
  subtitle: si,
2319
2319
  title: si
2320
- }), Hy = a.object({
2320
+ }), Ky = a.object({
2321
2321
  background_color: a.string(),
2322
2322
  background_image_url: a.string(),
2323
2323
  page_layout: a.enum(["center"])
2324
- }), Ky = a.object({
2324
+ }), Gy = a.object({
2325
2325
  header_text_alignment: a.enum(["center"]),
2326
2326
  logo_height: a.number(),
2327
2327
  logo_position: a.enum(["center"]),
2328
2328
  logo_url: a.string(),
2329
2329
  social_buttons_layout: a.enum(["bottom"])
2330
- }), Gy = a.object({
2331
- borders: qy,
2332
- colors: Vy,
2330
+ }), Wy = a.object({
2331
+ borders: Vy,
2332
+ colors: zy,
2333
2333
  displayName: a.string(),
2334
- fonts: zy,
2335
- page_background: Hy,
2336
- widget: Ky
2337
- }), Iq = Gy.extend({
2334
+ fonts: Hy,
2335
+ page_background: Ky,
2336
+ widget: Gy
2337
+ }), Iq = Wy.extend({
2338
2338
  themeId: a.string()
2339
2339
  }), gl = a.object({
2340
2340
  universal_login_experience: a.enum(["new", "classic"]).default("new"),
@@ -2410,7 +2410,7 @@ function Rq(t) {
2410
2410
  throw new Error(`Invalid user_id: ${t}`);
2411
2411
  return { connection: e, id: n };
2412
2412
  }
2413
- const Wy = new Ce().openapi(
2413
+ const Xy = new Ce().openapi(
2414
2414
  X({
2415
2415
  tags: ["branding"],
2416
2416
  method: "get",
@@ -2492,7 +2492,7 @@ var P = class extends Error {
2492
2492
  function rm(t) {
2493
2493
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2494
2494
  }
2495
- function Xy(t) {
2495
+ function Jy(t) {
2496
2496
  if (t.__esModule) return t;
2497
2497
  var e = t.default;
2498
2498
  if (typeof e == "function") {
@@ -2511,14 +2511,14 @@ function Xy(t) {
2511
2511
  });
2512
2512
  }), n;
2513
2513
  }
2514
- function Jy(t) {
2514
+ function Yy(t) {
2515
2515
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2516
2516
  }
2517
2517
  var im = { exports: {} };
2518
- const Yy = {}, Zy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2518
+ const Zy = {}, Qy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2519
2519
  __proto__: null,
2520
- default: Yy
2521
- }, Symbol.toStringTag, { value: "Module" })), tc = /* @__PURE__ */ Xy(Zy);
2520
+ default: Zy
2521
+ }, Symbol.toStringTag, { value: "Module" })), tc = /* @__PURE__ */ Jy(Qy);
2522
2522
  (function(t) {
2523
2523
  /**
2524
2524
  * @license bcrypt.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
@@ -2526,7 +2526,7 @@ const Yy = {}, Zy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2526
2526
  * see: https://github.com/dcodeIO/bcrypt.js for details
2527
2527
  */
2528
2528
  (function(e, n) {
2529
- typeof Jy == "function" && t && t.exports ? t.exports = n() : (e.dcodeIO = e.dcodeIO || {}).bcrypt = n();
2529
+ typeof Yy == "function" && t && t.exports ? t.exports = n() : (e.dcodeIO = e.dcodeIO || {}).bcrypt = n();
2530
2530
  })(rr, function() {
2531
2531
  var e = {}, n = null;
2532
2532
  function r(j) {
@@ -4055,9 +4055,9 @@ const Yy = {}, Zy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4055
4055
  return e.encodeBase64 = h, e.decodeBase64 = _, e;
4056
4056
  });
4057
4057
  })(im);
4058
- var Qy = im.exports;
4059
- const Ko = /* @__PURE__ */ rm(Qy), ew = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4060
- let tw = (t) => crypto.getRandomValues(new Uint8Array(t)), nw = (t, e, n) => {
4058
+ var ew = im.exports;
4059
+ const Ko = /* @__PURE__ */ rm(ew), tw = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4060
+ let nw = (t) => crypto.getRandomValues(new Uint8Array(t)), rw = (t, e, n) => {
4061
4061
  let r = (2 << Math.log2(t.length - 1)) - 1, i = -~(1.6 * r * e / t.length);
4062
4062
  return (o = e) => {
4063
4063
  let c = "";
@@ -4067,15 +4067,15 @@ let tw = (t) => crypto.getRandomValues(new Uint8Array(t)), nw = (t, e, n) => {
4067
4067
  if (c += t[l[u] & r] || "", c.length === o) return c;
4068
4068
  }
4069
4069
  };
4070
- }, rw = (t, e = 21) => nw(t, e, tw), Ge = (t = 21) => {
4070
+ }, iw = (t, e = 21) => rw(t, e, nw), Ge = (t = 21) => {
4071
4071
  let e = "", n = crypto.getRandomValues(new Uint8Array(t));
4072
4072
  for (; t--; )
4073
- e += ew[n[t] & 63];
4073
+ e += tw[n[t] & 63];
4074
4074
  return e;
4075
4075
  };
4076
- const iw = 24;
4076
+ const ow = 24;
4077
4077
  function nc() {
4078
- return rw("0123456789abcdef", iw)();
4078
+ return iw("0123456789abcdef", ow)();
4079
4079
  }
4080
4080
  function Bf(t) {
4081
4081
  if (!t.includes("|"))
@@ -4083,7 +4083,7 @@ function Bf(t) {
4083
4083
  const [, e] = t.split("|");
4084
4084
  return e;
4085
4085
  }
4086
- function ow(t) {
4086
+ function sw(t) {
4087
4087
  return async (e, n) => {
4088
4088
  if (!n.email || !n.email_verified)
4089
4089
  return t.users.create(e, n);
@@ -4144,7 +4144,7 @@ class qd {
4144
4144
  return new qd(Math.round(this.milliseconds() * e), "ms");
4145
4145
  }
4146
4146
  }
4147
- class sw {
4147
+ class aw {
4148
4148
  constructor(e) {
4149
4149
  $e(this, "hash");
4150
4150
  this.hash = e;
@@ -4330,17 +4330,17 @@ async function jf(t, e, n, r) {
4330
4330
  includePadding: !1
4331
4331
  }), u = Rr.encode(c.encode(JSON.stringify(o)), {
4332
4332
  includePadding: !1
4333
- }), d = c.encode([l, u].join(".")), f = await cw(t).sign(e, d), h = Rr.encode(new Uint8Array(f), {
4333
+ }), d = c.encode([l, u].join(".")), f = await lw(t).sign(e, d), h = Rr.encode(new Uint8Array(f), {
4334
4334
  includePadding: !1
4335
4335
  });
4336
4336
  return [l, u, h].join(".");
4337
4337
  }
4338
- function aw(t) {
4338
+ function cw(t) {
4339
4339
  const e = t.split(".");
4340
4340
  return e.length !== 3 ? null : e;
4341
4341
  }
4342
4342
  function Vd(t) {
4343
- const e = aw(t);
4343
+ const e = cw(t);
4344
4344
  if (!e)
4345
4345
  return null;
4346
4346
  const n = new TextDecoder(), r = Rr.decode(e[0], {
@@ -4348,7 +4348,7 @@ function Vd(t) {
4348
4348
  }), i = Rr.decode(e[1], {
4349
4349
  strict: !1
4350
4350
  }), o = JSON.parse(n.decode(r));
4351
- if (typeof o != "object" || o === null || !("alg" in o) || !lw(o.alg) || "typ" in o && o.typ !== "JWT")
4351
+ if (typeof o != "object" || o === null || !("alg" in o) || !uw(o.alg) || "typ" in o && o.typ !== "JWT")
4352
4352
  return null;
4353
4353
  const c = JSON.parse(n.decode(i));
4354
4354
  if (typeof c != "object" || c === null)
@@ -4418,10 +4418,10 @@ function Vd(t) {
4418
4418
  ...l
4419
4419
  };
4420
4420
  }
4421
- function cw(t) {
4422
- return new sw(uw[t]);
4423
- }
4424
4421
  function lw(t) {
4422
+ return new aw(dw[t]);
4423
+ }
4424
+ function uw(t) {
4425
4425
  return typeof t != "string" ? !1 : [
4426
4426
  "HS256",
4427
4427
  "HS384",
@@ -4437,18 +4437,18 @@ function lw(t) {
4437
4437
  "PS512"
4438
4438
  ].includes(t);
4439
4439
  }
4440
- const uw = {
4440
+ const dw = {
4441
4441
  RS256: "SHA-256",
4442
4442
  RS384: "SHA-384",
4443
4443
  RS512: "SHA-512"
4444
4444
  };
4445
- function dw() {
4445
+ function pw() {
4446
4446
  const t = new Uint8Array(32);
4447
4447
  return crypto.getRandomValues(t), Rr.encode(t, {
4448
4448
  includePadding: !1
4449
4449
  });
4450
4450
  }
4451
- function pw(t) {
4451
+ function fw(t) {
4452
4452
  try {
4453
4453
  const n = /-----BEGIN (?:RSA )?(?:PRIVATE|PUBLIC) KEY-----([^-]*)-----END (?:RSA )?(?:PRIVATE|PUBLIC) KEY-----/.exec(t);
4454
4454
  if (!n || !n[1])
@@ -4461,7 +4461,7 @@ function pw(t) {
4461
4461
  t = t.replace(/./g, "\0");
4462
4462
  }
4463
4463
  }
4464
- async function fw(t, e) {
4464
+ async function hw(t, e) {
4465
4465
  if (e === "plain")
4466
4466
  return t;
4467
4467
  const n = new TextEncoder().encode(t), r = await om(n);
@@ -4469,12 +4469,12 @@ async function fw(t, e) {
4469
4469
  includePadding: !1
4470
4470
  });
4471
4471
  }
4472
- const Ns = 60 * 5, rc = 30 * 24 * 60 * 60, $i = 24 * 60 * 60, hw = "auth-token", Ms = 30 * 60 * 1e3, gw = 7 * 24 * 60 * 60 * 1e3, mw = 5 * 60, _w = 5 * 60, yw = 30 * 60 * 1e3, ww = 30 * 60 * 1e3, vw = 24 * 60 * 60 * 1e3;
4472
+ const Ns = 60 * 5, rc = 30 * 24 * 60 * 60, $i = 24 * 60 * 60, gw = "auth-token", Ms = 30 * 60 * 1e3, mw = 7 * 24 * 60 * 60 * 1e3, _w = 5 * 60, yw = 5 * 60, ww = 30 * 60 * 1e3, vw = 30 * 60 * 1e3, bw = 24 * 60 * 60 * 1e3;
4473
4473
  function lm(t, e, n) {
4474
4474
  const r = [];
4475
4475
  return r.push([encodeURIComponent(t), encodeURIComponent(e)]), (n == null ? void 0 : n.domain) !== void 0 && r.push(["Domain", n.domain]), (n == null ? void 0 : n.expires) !== void 0 && r.push(["Expires", n.expires.toUTCString()]), n != null && n.httpOnly && r.push(["HttpOnly"]), (n == null ? void 0 : n.maxAge) !== void 0 && r.push(["Max-Age", n.maxAge.toString()]), (n == null ? void 0 : n.path) !== void 0 && r.push(["Path", n.path]), (n == null ? void 0 : n.sameSite) === "lax" && r.push(["SameSite", "Lax"]), (n == null ? void 0 : n.sameSite) === "none" && r.push(["SameSite", "None"]), (n == null ? void 0 : n.sameSite) === "strict" && r.push(["SameSite", "Strict"]), n != null && n.secure && r.push(["Secure"]), r.map((i) => i.join("=")).join("; ");
4476
4476
  }
4477
- function bw(t) {
4477
+ function xw(t) {
4478
4478
  const e = /* @__PURE__ */ new Map(), n = t.split("; ");
4479
4479
  for (const r of n) {
4480
4480
  const i = r.split("="), o = i[0], c = i[1] ?? "";
@@ -4483,7 +4483,7 @@ function bw(t) {
4483
4483
  return e;
4484
4484
  }
4485
4485
  function zd(t) {
4486
- return `${t}-${hw}`;
4486
+ return `${t}-${gw}`;
4487
4487
  }
4488
4488
  function um(t) {
4489
4489
  if (!t)
@@ -4494,9 +4494,9 @@ function um(t) {
4494
4494
  return e.length > 2 ? `.${e.slice(-2).join(".")}` : `.${t}`;
4495
4495
  }
4496
4496
  function oa(t, e) {
4497
- return e ? bw(e).get(zd(t)) : void 0;
4497
+ return e ? xw(e).get(zd(t)) : void 0;
4498
4498
  }
4499
- function xw(t, e) {
4499
+ function $w(t, e) {
4500
4500
  return lm(zd(t), "", {
4501
4501
  path: "/",
4502
4502
  httpOnly: !0,
@@ -4548,13 +4548,13 @@ var Hd = {}, ic = {};
4548
4548
  return t.isExist(l) ? l : "";
4549
4549
  }, t.isName = c, t.getAllMatches = o, t.nameRegexp = r;
4550
4550
  })(ic);
4551
- const Kd = ic, $w = {
4551
+ const Kd = ic, Aw = {
4552
4552
  allowBooleanAttributes: !1,
4553
4553
  //A tag can have attributes without any value
4554
4554
  unpairedTags: []
4555
4555
  };
4556
4556
  Hd.validate = function(t, e) {
4557
- e = Object.assign({}, $w, e);
4557
+ e = Object.assign({}, Aw, e);
4558
4558
  const n = [];
4559
4559
  let r = !1, i = !1;
4560
4560
  t[0] === "\uFEFF" && (t = t.substr(1));
@@ -4573,11 +4573,11 @@ Hd.validate = function(t, e) {
4573
4573
  for (; o < t.length && t[o] !== ">" && t[o] !== " " && t[o] !== " " && t[o] !== `
4574
4574
  ` && t[o] !== "\r"; o++)
4575
4575
  u += t[o];
4576
- if (u = u.trim(), u[u.length - 1] === "/" && (u = u.substring(0, u.length - 1), o--), !Tw(u)) {
4576
+ if (u = u.trim(), u[u.length - 1] === "/" && (u = u.substring(0, u.length - 1), o--), !Ow(u)) {
4577
4577
  let h;
4578
4578
  return u.trim().length === 0 ? h = "Invalid space after '<'." : h = "Tag '" + u + "' is an invalid name.", Xe("InvalidTag", h, mt(t, o));
4579
4579
  }
4580
- const d = Ew(t, o);
4580
+ const d = Sw(t, o);
4581
4581
  if (d === !1)
4582
4582
  return Xe("InvalidAttr", "Attributes for '" + u + "' have open quote.", mt(t, o));
4583
4583
  let f = d.value;
@@ -4626,7 +4626,7 @@ Hd.validate = function(t, e) {
4626
4626
  } else
4627
4627
  break;
4628
4628
  else if (t[o] === "&") {
4629
- const h = Cw(t, o);
4629
+ const h = Iw(t, o);
4630
4630
  if (h == -1)
4631
4631
  return Xe("InvalidChar", "char '&' is not expected.", mt(t, o));
4632
4632
  o = h;
@@ -4689,11 +4689,11 @@ function Uf(t, e) {
4689
4689
  }
4690
4690
  return e;
4691
4691
  }
4692
- const Aw = '"', kw = "'";
4693
- function Ew(t, e) {
4692
+ const kw = '"', Ew = "'";
4693
+ function Sw(t, e) {
4694
4694
  let n = "", r = "", i = !1;
4695
4695
  for (; e < t.length; e++) {
4696
- if (t[e] === Aw || t[e] === kw)
4696
+ if (t[e] === kw || t[e] === Ew)
4697
4697
  r === "" ? r = t[e] : r !== t[e] || (r = "");
4698
4698
  else if (t[e] === ">" && r === "") {
4699
4699
  i = !0;
@@ -4707,9 +4707,9 @@ function Ew(t, e) {
4707
4707
  tagClosed: i
4708
4708
  };
4709
4709
  }
4710
- const Sw = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
4710
+ const Nw = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
4711
4711
  function Mf(t, e) {
4712
- const n = Kd.getAllMatches(t, Sw), r = {};
4712
+ const n = Kd.getAllMatches(t, Nw), r = {};
4713
4713
  for (let i = 0; i < n.length; i++) {
4714
4714
  if (n[i][1].length === 0)
4715
4715
  return Xe("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.", to(n[i]));
@@ -4718,7 +4718,7 @@ function Mf(t, e) {
4718
4718
  if (n[i][3] === void 0 && !e.allowBooleanAttributes)
4719
4719
  return Xe("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.", to(n[i]));
4720
4720
  const o = n[i][2];
4721
- if (!Iw(o))
4721
+ if (!Tw(o))
4722
4722
  return Xe("InvalidAttr", "Attribute '" + o + "' is an invalid name.", to(n[i]));
4723
4723
  if (!r.hasOwnProperty(o))
4724
4724
  r[o] = 1;
@@ -4727,7 +4727,7 @@ function Mf(t, e) {
4727
4727
  }
4728
4728
  return !0;
4729
4729
  }
4730
- function Nw(t, e) {
4730
+ function Cw(t, e) {
4731
4731
  let n = /\d/;
4732
4732
  for (t[e] === "x" && (e++, n = /[\da-fA-F]/); e < t.length; e++) {
4733
4733
  if (t[e] === ";")
@@ -4737,11 +4737,11 @@ function Nw(t, e) {
4737
4737
  }
4738
4738
  return -1;
4739
4739
  }
4740
- function Cw(t, e) {
4740
+ function Iw(t, e) {
4741
4741
  if (e++, t[e] === ";")
4742
4742
  return -1;
4743
4743
  if (t[e] === "#")
4744
- return e++, Nw(t, e);
4744
+ return e++, Cw(t, e);
4745
4745
  let n = 0;
4746
4746
  for (; e < t.length; e++, n++)
4747
4747
  if (!(t[e].match(/\w/) && n < 20)) {
@@ -4761,10 +4761,10 @@ function Xe(t, e, n) {
4761
4761
  }
4762
4762
  };
4763
4763
  }
4764
- function Iw(t) {
4764
+ function Tw(t) {
4765
4765
  return Kd.isName(t);
4766
4766
  }
4767
- function Tw(t) {
4767
+ function Ow(t) {
4768
4768
  return Kd.isName(t);
4769
4769
  }
4770
4770
  function mt(t, e) {
@@ -4822,12 +4822,12 @@ const dm = {
4822
4822
  return t;
4823
4823
  }
4824
4824
  // skipEmptyListItem: false
4825
- }, Ow = function(t) {
4825
+ }, Dw = function(t) {
4826
4826
  return Object.assign({}, dm, t);
4827
4827
  };
4828
- Gd.buildOptions = Ow;
4828
+ Gd.buildOptions = Dw;
4829
4829
  Gd.defaultOptions = dm;
4830
- class Dw {
4830
+ class Rw {
4831
4831
  constructor(e) {
4832
4832
  this.tagname = e, this.child = [], this[":@"] = {};
4833
4833
  }
@@ -4838,26 +4838,26 @@ class Dw {
4838
4838
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({ [e.tagname]: e.child, ":@": e[":@"] }) : this.child.push({ [e.tagname]: e.child });
4839
4839
  }
4840
4840
  }
4841
- var Rw = Dw;
4842
- const Bw = ic;
4843
- function Pw(t, e) {
4841
+ var Bw = Rw;
4842
+ const Pw = ic;
4843
+ function jw(t, e) {
4844
4844
  const n = {};
4845
4845
  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") {
4846
4846
  e = e + 9;
4847
4847
  let r = 1, i = !1, o = !1, c = "";
4848
4848
  for (; e < t.length; e++)
4849
4849
  if (t[e] === "<" && !o) {
4850
- if (i && Fw(t, e)) {
4850
+ if (i && Uw(t, e)) {
4851
4851
  e += 7;
4852
4852
  let l, u;
4853
- [l, u, e] = jw(t, e + 1), u.indexOf("&") === -1 && (n[Vw(l)] = {
4853
+ [l, u, e] = Lw(t, e + 1), u.indexOf("&") === -1 && (n[zw(l)] = {
4854
4854
  regx: RegExp(`&${l};`, "g"),
4855
4855
  val: u
4856
4856
  });
4857
- } else if (i && Uw(t, e)) e += 8;
4858
- else if (i && Mw(t, e)) e += 8;
4859
- else if (i && qw(t, e)) e += 9;
4860
- else if (Lw) o = !0;
4857
+ } else if (i && Mw(t, e)) e += 8;
4858
+ else if (i && qw(t, e)) e += 8;
4859
+ else if (i && Vw(t, e)) e += 9;
4860
+ else if (Fw) o = !0;
4861
4861
  else throw new Error("Invalid DOCTYPE");
4862
4862
  r++, c = "";
4863
4863
  } else if (t[e] === ">") {
@@ -4870,7 +4870,7 @@ function Pw(t, e) {
4870
4870
  throw new Error("Invalid Tag instead of DOCTYPE");
4871
4871
  return { entities: n, i: e };
4872
4872
  }
4873
- function jw(t, e) {
4873
+ function Lw(t, e) {
4874
4874
  let n = "";
4875
4875
  for (; e < t.length && t[e] !== "'" && t[e] !== '"'; e++)
4876
4876
  n += t[e];
@@ -4881,48 +4881,48 @@ function jw(t, e) {
4881
4881
  i += t[e];
4882
4882
  return [n, i, e];
4883
4883
  }
4884
- function Lw(t, e) {
4884
+ function Fw(t, e) {
4885
4885
  return t[e + 1] === "!" && t[e + 2] === "-" && t[e + 3] === "-";
4886
4886
  }
4887
- function Fw(t, e) {
4887
+ function Uw(t, e) {
4888
4888
  return t[e + 1] === "!" && t[e + 2] === "E" && t[e + 3] === "N" && t[e + 4] === "T" && t[e + 5] === "I" && t[e + 6] === "T" && t[e + 7] === "Y";
4889
4889
  }
4890
- function Uw(t, e) {
4890
+ function Mw(t, e) {
4891
4891
  return t[e + 1] === "!" && t[e + 2] === "E" && t[e + 3] === "L" && t[e + 4] === "E" && t[e + 5] === "M" && t[e + 6] === "E" && t[e + 7] === "N" && t[e + 8] === "T";
4892
4892
  }
4893
- function Mw(t, e) {
4893
+ function qw(t, e) {
4894
4894
  return t[e + 1] === "!" && t[e + 2] === "A" && t[e + 3] === "T" && t[e + 4] === "T" && t[e + 5] === "L" && t[e + 6] === "I" && t[e + 7] === "S" && t[e + 8] === "T";
4895
4895
  }
4896
- function qw(t, e) {
4896
+ function Vw(t, e) {
4897
4897
  return t[e + 1] === "!" && t[e + 2] === "N" && t[e + 3] === "O" && t[e + 4] === "T" && t[e + 5] === "A" && t[e + 6] === "T" && t[e + 7] === "I" && t[e + 8] === "O" && t[e + 9] === "N";
4898
4898
  }
4899
- function Vw(t) {
4900
- if (Bw.isName(t))
4899
+ function zw(t) {
4900
+ if (Pw.isName(t))
4901
4901
  return t;
4902
4902
  throw new Error(`Invalid entity name ${t}`);
4903
4903
  }
4904
- var zw = Pw;
4905
- const Hw = /^[-+]?0x[a-fA-F0-9]+$/, Kw = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
4904
+ var Hw = jw;
4905
+ const Kw = /^[-+]?0x[a-fA-F0-9]+$/, Gw = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
4906
4906
  !Number.parseInt && window.parseInt && (Number.parseInt = window.parseInt);
4907
4907
  !Number.parseFloat && window.parseFloat && (Number.parseFloat = window.parseFloat);
4908
- const Gw = {
4908
+ const Ww = {
4909
4909
  hex: !0,
4910
4910
  leadingZeros: !0,
4911
4911
  decimalPoint: ".",
4912
4912
  eNotation: !0
4913
4913
  //skipLike: /regex/
4914
4914
  };
4915
- function Ww(t, e = {}) {
4916
- if (e = Object.assign({}, Gw, e), !t || typeof t != "string") return t;
4915
+ function Xw(t, e = {}) {
4916
+ if (e = Object.assign({}, Ww, e), !t || typeof t != "string") return t;
4917
4917
  let n = t.trim();
4918
4918
  if (e.skipLike !== void 0 && e.skipLike.test(n)) return t;
4919
- if (e.hex && Hw.test(n))
4919
+ if (e.hex && Kw.test(n))
4920
4920
  return Number.parseInt(n, 16);
4921
4921
  {
4922
- const r = Kw.exec(n);
4922
+ const r = Gw.exec(n);
4923
4923
  if (r) {
4924
4924
  const i = r[1], o = r[2];
4925
- let c = Xw(r[3]);
4925
+ let c = Jw(r[3]);
4926
4926
  const l = r[4] || r[6];
4927
4927
  if (!e.leadingZeros && o.length > 0 && i && n[2] !== ".") return t;
4928
4928
  if (!e.leadingZeros && o.length > 0 && !i && n[1] !== ".") return t;
@@ -4934,20 +4934,20 @@ function Ww(t, e = {}) {
4934
4934
  return t;
4935
4935
  }
4936
4936
  }
4937
- function Xw(t) {
4937
+ function Jw(t) {
4938
4938
  return t && t.indexOf(".") !== -1 && (t = t.replace(/0+$/, ""), t === "." ? t = "0" : t[0] === "." ? t = "0" + t : t[t.length - 1] === "." && (t = t.substr(0, t.length - 1))), t;
4939
4939
  }
4940
- var Jw = Ww;
4941
- function Yw(t) {
4940
+ var Yw = Xw;
4941
+ function Zw(t) {
4942
4942
  return typeof t == "function" ? t : Array.isArray(t) ? (e) => {
4943
4943
  for (const n of t)
4944
4944
  if (typeof n == "string" && e === n || n instanceof RegExp && n.test(e))
4945
4945
  return !0;
4946
4946
  } : () => !1;
4947
4947
  }
4948
- var pm = Yw;
4949
- const fm = ic, no = Rw, Zw = zw, Qw = Jw, ev = pm;
4950
- let tv = class {
4948
+ var pm = Zw;
4949
+ const fm = ic, no = Bw, Qw = Hw, ev = Yw, tv = pm;
4950
+ let nv = class {
4951
4951
  constructor(e) {
4952
4952
  this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
4953
4953
  apos: { regex: /&(apos|#39|#x27);/g, val: "'" },
@@ -4970,10 +4970,10 @@ let tv = class {
4970
4970
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
4971
4971
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (n, r) => String.fromCharCode(Number.parseInt(r, 10)) },
4972
4972
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (n, r) => String.fromCharCode(Number.parseInt(r, 16)) }
4973
- }, this.addExternalEntities = nv, this.parseXml = av, this.parseTextData = rv, this.resolveNameSpace = iv, this.buildAttributesMap = sv, this.isItStopNode = dv, this.replaceEntitiesValue = lv, this.readStopNodeData = fv, this.saveTextToParentTag = uv, this.addChild = cv, this.ignoreAttributesFn = ev(this.options.ignoreAttributes);
4973
+ }, this.addExternalEntities = rv, this.parseXml = cv, this.parseTextData = iv, this.resolveNameSpace = ov, this.buildAttributesMap = av, this.isItStopNode = pv, this.replaceEntitiesValue = uv, this.readStopNodeData = hv, this.saveTextToParentTag = dv, this.addChild = lv, this.ignoreAttributesFn = tv(this.options.ignoreAttributes);
4974
4974
  }
4975
4975
  };
4976
- function nv(t) {
4976
+ function rv(t) {
4977
4977
  const e = Object.keys(t);
4978
4978
  for (let n = 0; n < e.length; n++) {
4979
4979
  const r = e[n];
@@ -4983,14 +4983,14 @@ function nv(t) {
4983
4983
  };
4984
4984
  }
4985
4985
  }
4986
- function rv(t, e, n, r, i, o, c) {
4986
+ function iv(t, e, n, r, i, o, c) {
4987
4987
  if (t !== void 0 && (this.options.trimValues && !r && (t = t.trim()), t.length > 0)) {
4988
4988
  c || (t = this.replaceEntitiesValue(t));
4989
4989
  const l = this.options.tagValueProcessor(e, t, n, i, o);
4990
4990
  return l == null ? t : typeof l != typeof t || l !== t ? l : this.options.trimValues ? ru(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? ru(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
4991
4991
  }
4992
4992
  }
4993
- function iv(t) {
4993
+ function ov(t) {
4994
4994
  if (this.options.removeNSPrefix) {
4995
4995
  const e = t.split(":"), n = t.charAt(0) === "/" ? "/" : "";
4996
4996
  if (e[0] === "xmlns")
@@ -4999,10 +4999,10 @@ function iv(t) {
4999
4999
  }
5000
5000
  return t;
5001
5001
  }
5002
- const ov = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
5003
- function sv(t, e, n) {
5002
+ const sv = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
5003
+ function av(t, e, n) {
5004
5004
  if (this.options.ignoreAttributes !== !0 && typeof t == "string") {
5005
- const r = fm.getAllMatches(t, ov), i = r.length, o = {};
5005
+ const r = fm.getAllMatches(t, sv), i = r.length, o = {};
5006
5006
  for (let c = 0; c < i; c++) {
5007
5007
  const l = this.resolveNameSpace(r[c][1]);
5008
5008
  if (this.ignoreAttributesFn(l, e))
@@ -5028,7 +5028,7 @@ function sv(t, e, n) {
5028
5028
  return o;
5029
5029
  }
5030
5030
  }
5031
- const av = function(t) {
5031
+ const cv = function(t) {
5032
5032
  t = t.replace(/\r\n?/g, `
5033
5033
  `);
5034
5034
  const e = new no("!xml");
@@ -5064,7 +5064,7 @@ const av = function(t) {
5064
5064
  }
5065
5065
  o = l;
5066
5066
  } else if (t.substr(o + 1, 2) === "!D") {
5067
- const l = Zw(t, o);
5067
+ const l = Qw(t, o);
5068
5068
  this.docTypeEntities = l.entities, o = l.i;
5069
5069
  } else if (t.substr(o + 1, 2) === "![") {
5070
5070
  const l = Tr(t, "]]>", o, "CDATA is not closed.") - 2, u = t.substring(o + 9, l);
@@ -5106,11 +5106,11 @@ const av = function(t) {
5106
5106
  r += t[o];
5107
5107
  return e.child;
5108
5108
  };
5109
- function cv(t, e, n) {
5109
+ function lv(t, e, n) {
5110
5110
  const r = this.options.updateTag(e.tagname, n, e[":@"]);
5111
5111
  r === !1 || (typeof r == "string" && (e.tagname = r), t.addChild(e));
5112
5112
  }
5113
- const lv = function(t) {
5113
+ const uv = function(t) {
5114
5114
  if (this.options.processEntities) {
5115
5115
  for (let e in this.docTypeEntities) {
5116
5116
  const n = this.docTypeEntities[e];
@@ -5129,7 +5129,7 @@ const lv = function(t) {
5129
5129
  }
5130
5130
  return t;
5131
5131
  };
5132
- function uv(t, e, n, r) {
5132
+ function dv(t, e, n, r) {
5133
5133
  return t && (r === void 0 && (r = Object.keys(e.child).length === 0), t = this.parseTextData(
5134
5134
  t,
5135
5135
  e.tagname,
@@ -5139,7 +5139,7 @@ function uv(t, e, n, r) {
5139
5139
  r
5140
5140
  ), t !== void 0 && t !== "" && e.add(this.options.textNodeName, t), t = ""), t;
5141
5141
  }
5142
- function dv(t, e, n) {
5142
+ function pv(t, e, n) {
5143
5143
  const r = "*." + n;
5144
5144
  for (const i in t) {
5145
5145
  const o = t[i];
@@ -5147,7 +5147,7 @@ function dv(t, e, n) {
5147
5147
  }
5148
5148
  return !1;
5149
5149
  }
5150
- function pv(t, e, n = ">") {
5150
+ function fv(t, e, n = ">") {
5151
5151
  let r, i = "";
5152
5152
  for (let o = e; o < t.length; o++) {
5153
5153
  let c = t[o];
@@ -5178,7 +5178,7 @@ function Tr(t, e, n, r) {
5178
5178
  return i + e.length - 1;
5179
5179
  }
5180
5180
  function nu(t, e, n, r = ">") {
5181
- const i = pv(t, e + 1, r);
5181
+ const i = fv(t, e + 1, r);
5182
5182
  if (!i) return;
5183
5183
  let o = i.data;
5184
5184
  const c = i.index, l = o.search(/\s/);
@@ -5197,7 +5197,7 @@ function nu(t, e, n, r = ">") {
5197
5197
  rawTagName: f
5198
5198
  };
5199
5199
  }
5200
- function fv(t, e, n) {
5200
+ function hv(t, e, n) {
5201
5201
  const r = n;
5202
5202
  let i = 1;
5203
5203
  for (; n < t.length; n++)
@@ -5224,19 +5224,19 @@ function fv(t, e, n) {
5224
5224
  function ru(t, e, n) {
5225
5225
  if (e && typeof t == "string") {
5226
5226
  const r = t.trim();
5227
- return r === "true" ? !0 : r === "false" ? !1 : Qw(t, n);
5227
+ return r === "true" ? !0 : r === "false" ? !1 : ev(t, n);
5228
5228
  } else
5229
5229
  return fm.isExist(t) ? t : "";
5230
5230
  }
5231
- var hv = tv, hm = {};
5232
- function gv(t, e) {
5231
+ var gv = nv, hm = {};
5232
+ function mv(t, e) {
5233
5233
  return gm(t, e);
5234
5234
  }
5235
5235
  function gm(t, e, n) {
5236
5236
  let r;
5237
5237
  const i = {};
5238
5238
  for (let o = 0; o < t.length; o++) {
5239
- const c = t[o], l = mv(c);
5239
+ const c = t[o], l = _v(c);
5240
5240
  let u = "";
5241
5241
  if (n === void 0 ? u = l : u = n + "." + l, l === e.textNodeName)
5242
5242
  r === void 0 ? r = c[l] : r += "" + c[l];
@@ -5245,21 +5245,21 @@ function gm(t, e, n) {
5245
5245
  continue;
5246
5246
  if (c[l]) {
5247
5247
  let d = gm(c[l], e, u);
5248
- const f = yv(d, e);
5249
- c[":@"] ? _v(d, c[":@"], u, e) : Object.keys(d).length === 1 && d[e.textNodeName] !== void 0 && !e.alwaysCreateTextNode ? d = d[e.textNodeName] : Object.keys(d).length === 0 && (e.alwaysCreateTextNode ? d[e.textNodeName] = "" : d = ""), i[l] !== void 0 && i.hasOwnProperty(l) ? (Array.isArray(i[l]) || (i[l] = [i[l]]), i[l].push(d)) : e.isArray(l, u, f) ? i[l] = [d] : i[l] = d;
5248
+ const f = wv(d, e);
5249
+ c[":@"] ? yv(d, c[":@"], u, e) : Object.keys(d).length === 1 && d[e.textNodeName] !== void 0 && !e.alwaysCreateTextNode ? d = d[e.textNodeName] : Object.keys(d).length === 0 && (e.alwaysCreateTextNode ? d[e.textNodeName] = "" : d = ""), i[l] !== void 0 && i.hasOwnProperty(l) ? (Array.isArray(i[l]) || (i[l] = [i[l]]), i[l].push(d)) : e.isArray(l, u, f) ? i[l] = [d] : i[l] = d;
5250
5250
  }
5251
5251
  }
5252
5252
  }
5253
5253
  return typeof r == "string" ? r.length > 0 && (i[e.textNodeName] = r) : r !== void 0 && (i[e.textNodeName] = r), i;
5254
5254
  }
5255
- function mv(t) {
5255
+ function _v(t) {
5256
5256
  const e = Object.keys(t);
5257
5257
  for (let n = 0; n < e.length; n++) {
5258
5258
  const r = e[n];
5259
5259
  if (r !== ":@") return r;
5260
5260
  }
5261
5261
  }
5262
- function _v(t, e, n, r) {
5262
+ function yv(t, e, n, r) {
5263
5263
  if (e) {
5264
5264
  const i = Object.keys(e), o = i.length;
5265
5265
  for (let c = 0; c < o; c++) {
@@ -5268,15 +5268,15 @@ function _v(t, e, n, r) {
5268
5268
  }
5269
5269
  }
5270
5270
  }
5271
- function yv(t, e) {
5271
+ function wv(t, e) {
5272
5272
  const { textNodeName: n } = e, r = Object.keys(t).length;
5273
5273
  return !!(r === 0 || r === 1 && (t[n] || typeof t[n] == "boolean" || t[n] === 0));
5274
5274
  }
5275
- hm.prettify = gv;
5276
- const { buildOptions: wv } = Gd, vv = hv, { prettify: bv } = hm, xv = Hd;
5277
- let $v = class {
5275
+ hm.prettify = mv;
5276
+ const { buildOptions: vv } = Gd, bv = gv, { prettify: xv } = hm, $v = Hd;
5277
+ let Av = class {
5278
5278
  constructor(e) {
5279
- this.externalEntities = {}, this.options = wv(e);
5279
+ this.externalEntities = {}, this.options = vv(e);
5280
5280
  }
5281
5281
  /**
5282
5282
  * Parse XML dats to JS object
@@ -5290,14 +5290,14 @@ let $v = class {
5290
5290
  throw new Error("XML data is accepted in String or Bytes[] form.");
5291
5291
  if (n) {
5292
5292
  n === !0 && (n = {});
5293
- const o = xv.validate(e, n);
5293
+ const o = $v.validate(e, n);
5294
5294
  if (o !== !0)
5295
5295
  throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`);
5296
5296
  }
5297
- const r = new vv(this.options);
5297
+ const r = new bv(this.options);
5298
5298
  r.addExternalEntities(this.externalEntities);
5299
5299
  const i = r.parseXml(e);
5300
- return this.options.preserveOrder || i === void 0 ? i : bv(i, this.options);
5300
+ return this.options.preserveOrder || i === void 0 ? i : xv(i, this.options);
5301
5301
  }
5302
5302
  /**
5303
5303
  * Add Entity which is not by default supported by this library
@@ -5314,22 +5314,22 @@ let $v = class {
5314
5314
  this.externalEntities[e] = n;
5315
5315
  }
5316
5316
  };
5317
- var Av = $v;
5318
- const kv = `
5317
+ var kv = Av;
5318
+ const Ev = `
5319
5319
  `;
5320
- function Ev(t, e) {
5320
+ function Sv(t, e) {
5321
5321
  let n = "";
5322
- return e.format && e.indentBy.length > 0 && (n = kv), mm(t, e, "", n);
5322
+ return e.format && e.indentBy.length > 0 && (n = Ev), mm(t, e, "", n);
5323
5323
  }
5324
5324
  function mm(t, e, n, r) {
5325
5325
  let i = "", o = !1;
5326
5326
  for (let c = 0; c < t.length; c++) {
5327
- const l = t[c], u = Sv(l);
5327
+ const l = t[c], u = Nv(l);
5328
5328
  if (u === void 0) continue;
5329
5329
  let d = "";
5330
5330
  if (n.length === 0 ? d = u : d = `${n}.${u}`, u === e.textNodeName) {
5331
5331
  let m = l[u];
5332
- Nv(d, e) || (m = e.tagValueProcessor(u, m), m = _m(m, e)), o && (i += r), i += m, o = !1;
5332
+ Cv(d, e) || (m = e.tagValueProcessor(u, m), m = _m(m, e)), o && (i += r), i += m, o = !1;
5333
5333
  continue;
5334
5334
  } else if (u === e.cdataPropName) {
5335
5335
  o && (i += r), i += `<![CDATA[${l[u][0][e.textNodeName]}]]>`, o = !1;
@@ -5350,7 +5350,7 @@ function mm(t, e, n, r) {
5350
5350
  }
5351
5351
  return i;
5352
5352
  }
5353
- function Sv(t) {
5353
+ function Nv(t) {
5354
5354
  const e = Object.keys(t);
5355
5355
  for (let n = 0; n < e.length; n++) {
5356
5356
  const r = e[n];
@@ -5368,7 +5368,7 @@ function qf(t, e) {
5368
5368
  }
5369
5369
  return n;
5370
5370
  }
5371
- function Nv(t, e) {
5371
+ function Cv(t, e) {
5372
5372
  t = t.substr(0, t.length - e.textNodeName.length - 1);
5373
5373
  let n = t.substr(t.lastIndexOf(".") + 1);
5374
5374
  for (let r in e.stopNodes)
@@ -5383,8 +5383,8 @@ function _m(t, e) {
5383
5383
  }
5384
5384
  return t;
5385
5385
  }
5386
- var Cv = Ev;
5387
- const Iv = Cv, Tv = pm, Ov = {
5386
+ var Iv = Sv;
5387
+ const Tv = Iv, Ov = pm, Dv = {
5388
5388
  attributeNamePrefix: "@_",
5389
5389
  attributesGroupName: !1,
5390
5390
  textNodeName: "#text",
@@ -5419,16 +5419,16 @@ const Iv = Cv, Tv = pm, Ov = {
5419
5419
  oneListGroup: !1
5420
5420
  };
5421
5421
  function wr(t) {
5422
- this.options = Object.assign({}, Ov, t), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
5422
+ this.options = Object.assign({}, Dv, t), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
5423
5423
  return !1;
5424
- } : (this.ignoreAttributesFn = Tv(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Bv), this.processTextOrObjNode = Dv, this.options.format ? (this.indentate = Rv, this.tagEndChar = `>
5424
+ } : (this.ignoreAttributesFn = Ov(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Pv), this.processTextOrObjNode = Rv, this.options.format ? (this.indentate = Bv, this.tagEndChar = `>
5425
5425
  `, this.newLine = `
5426
5426
  `) : (this.indentate = function() {
5427
5427
  return "";
5428
5428
  }, this.tagEndChar = ">", this.newLine = "");
5429
5429
  }
5430
5430
  wr.prototype.build = function(t) {
5431
- return this.options.preserveOrder ? Iv(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = {
5431
+ return this.options.preserveOrder ? Tv(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = {
5432
5432
  [this.options.arrayNodeName]: t
5433
5433
  }), this.j2x(t, 0, []).val);
5434
5434
  };
@@ -5484,7 +5484,7 @@ wr.prototype.j2x = function(t, e, n) {
5484
5484
  wr.prototype.buildAttrPairStr = function(t, e) {
5485
5485
  return e = this.options.attributeValueProcessor(t, "" + e), e = this.replaceEntitiesValue(e), this.options.suppressBooleanAttributes && e === "true" ? " " + t : " " + t + '="' + e + '"';
5486
5486
  };
5487
- function Dv(t, e, n, r) {
5487
+ function Rv(t, e, n, r) {
5488
5488
  const i = this.j2x(t, n + 1, r.concat(e));
5489
5489
  return t[this.options.textNodeName] !== void 0 && Object.keys(t).length === 1 ? this.buildTextValNode(t[this.options.textNodeName], e, i.attrStr, n) : this.buildObjectNode(i.val, e, i.attrStr, n);
5490
5490
  }
@@ -5520,20 +5520,20 @@ wr.prototype.replaceEntitiesValue = function(t) {
5520
5520
  }
5521
5521
  return t;
5522
5522
  };
5523
- function Rv(t) {
5523
+ function Bv(t) {
5524
5524
  return this.options.indentBy.repeat(t);
5525
5525
  }
5526
- function Bv(t) {
5526
+ function Pv(t) {
5527
5527
  return t.startsWith(this.options.attributeNamePrefix) && t !== this.options.textNodeName ? t.substr(this.attrPrefixLen) : !1;
5528
5528
  }
5529
- var Pv = wr;
5530
- const jv = Hd, Lv = Av, Fv = Pv;
5529
+ var jv = wr;
5530
+ const Lv = Hd, Fv = kv, Uv = jv;
5531
5531
  var Wd = {
5532
- XMLParser: Lv,
5533
- XMLValidator: jv,
5534
- XMLBuilder: Fv
5532
+ XMLParser: Fv,
5533
+ XMLValidator: Lv,
5534
+ XMLBuilder: Uv
5535
5535
  };
5536
- function Uv(t, e, n) {
5536
+ function Mv(t, e, n) {
5537
5537
  const r = n ? `<input type="hidden" name="RelayState" value="${n}" />` : "", i = `
5538
5538
  <!DOCTYPE html>
5539
5539
  <html>
@@ -5559,7 +5559,7 @@ function Uv(t, e, n) {
5559
5559
  }
5560
5560
  });
5561
5561
  }
5562
- async function Mv(t, e, n, r, i) {
5562
+ async function qv(t, e, n, r, i) {
5563
5563
  var _, $, m;
5564
5564
  if (!n.redirect_uri)
5565
5565
  throw new P(400, {
@@ -5583,7 +5583,7 @@ async function Mv(t, e, n, r, i) {
5583
5583
  throw new P(400, {
5584
5584
  message: "Missing recipient or inResponseTo"
5585
5585
  });
5586
- const d = JSON.parse(n.state), f = new URL(n.redirect_uri), h = await qv(t, {
5586
+ const d = JSON.parse(n.state), f = new URL(n.redirect_uri), h = await Vv(t, {
5587
5587
  issuer: t.env.ISSUER,
5588
5588
  audience: l || n.client_id,
5589
5589
  destination: f.toString(),
@@ -5597,13 +5597,13 @@ async function Mv(t, e, n, r, i) {
5597
5597
  kid: o.kid
5598
5598
  }
5599
5599
  });
5600
- return Uv(
5600
+ return Mv(
5601
5601
  f.toString(),
5602
5602
  h,
5603
5603
  d.relayState
5604
5604
  );
5605
5605
  }
5606
- async function qv(t, e) {
5606
+ async function Vv(t, e) {
5607
5607
  const n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 10 * 60 * 1e3).toISOString(), i = e.issueInstant || n, o = e.sessionNotOnOrAfter || r, c = e.responseId || `_${Ge()}`, l = e.assertionId || `_${Ge()}`, u = [
5608
5608
  {
5609
5609
  "samlp:Response": [
@@ -5873,23 +5873,23 @@ async function qv(t, e) {
5873
5873
  }
5874
5874
  return e.encode === !1 ? f : btoa(f);
5875
5875
  }
5876
- var Vv = {
5876
+ var zv = {
5877
5877
  deno: "Deno",
5878
5878
  bun: "Bun",
5879
5879
  workerd: "Cloudflare-Workers",
5880
5880
  node: "Node.js"
5881
- }, zv = () => {
5881
+ }, Hv = () => {
5882
5882
  var n, r;
5883
5883
  const t = globalThis;
5884
5884
  if (typeof navigator < "u" && typeof navigator.userAgent == "string") {
5885
- for (const [i, o] of Object.entries(Vv))
5886
- if (Hv(o))
5885
+ for (const [i, o] of Object.entries(zv))
5886
+ if (Kv(o))
5887
5887
  return i;
5888
5888
  }
5889
5889
  return typeof (t == null ? void 0 : t.EdgeRuntime) == "string" ? "edge-light" : (t == null ? void 0 : t.fastly) !== void 0 ? "fastly" : ((r = (n = t == null ? void 0 : t.process) == null ? void 0 : n.release) == null ? void 0 : r.name) === "node" ? "node" : "other";
5890
- }, Hv = (t) => navigator.userAgent.startsWith(t);
5890
+ }, Kv = (t) => navigator.userAgent.startsWith(t);
5891
5891
  function Lt(t, e) {
5892
- zv() === "workerd" && t.executionCtx.waitUntil(e);
5892
+ Hv() === "workerd" && t.executionCtx.waitUntil(e);
5893
5893
  }
5894
5894
  function iu(t, e) {
5895
5895
  return `<!DOCTYPE html>
@@ -5945,7 +5945,7 @@ async function oc(t, e) {
5945
5945
  ), u = l[l.length - 1];
5946
5946
  if (!(u != null && u.pkcs7))
5947
5947
  throw new P(500, { message: "No signing key available" });
5948
- const d = pw(u.pkcs7), f = t.var.custom_domain ? `https://${t.var.custom_domain}/` : t.env.ISSUER, h = {
5948
+ const d = fw(u.pkcs7), f = t.var.custom_domain ? `https://${t.var.custom_domain}/` : t.env.ISSUER, h = {
5949
5949
  // TODO: consider if the dafault should be removed
5950
5950
  aud: n.audience || "default",
5951
5951
  scope: n.scope || "",
@@ -6035,7 +6035,7 @@ async function ou(t, e) {
6035
6035
  code_type: "authorization_code",
6036
6036
  login_id: e.login_id,
6037
6037
  expires_at: new Date(
6038
- Date.now() + mw * 1e3
6038
+ Date.now() + _w * 1e3
6039
6039
  ).toISOString(),
6040
6040
  code_challenge: e.authParams.code_challenge,
6041
6041
  code_challenge_method: e.authParams.code_challenge_method,
@@ -6046,7 +6046,7 @@ async function ou(t, e) {
6046
6046
  state: e.authParams.state
6047
6047
  };
6048
6048
  }
6049
- async function Kv(t, e) {
6049
+ async function ym(t, e) {
6050
6050
  const {
6051
6051
  client: n,
6052
6052
  scope: r,
@@ -6083,7 +6083,7 @@ async function Kv(t, e) {
6083
6083
  }
6084
6084
  );
6085
6085
  }
6086
- async function ym(t, { user: e, client: n, loginSession: r }) {
6086
+ async function wm(t, { user: e, client: n, loginSession: r }) {
6087
6087
  const i = await t.env.data.sessions.create(n.tenant.id, {
6088
6088
  id: Ge(),
6089
6089
  user_id: e.user_id,
@@ -6125,11 +6125,11 @@ async function vr(t, e) {
6125
6125
  throw new P(500, {
6126
6126
  message: "Login session not found for ticket auth."
6127
6127
  });
6128
- const k = dw(), v = Ge(12), O = await t.env.data.codes.create(i.tenant.id, {
6128
+ const k = pw(), v = Ge(12), O = await t.env.data.codes.create(i.tenant.id, {
6129
6129
  code_id: Ge(),
6130
6130
  code_type: "ticket",
6131
6131
  login_id: e.loginSession.id,
6132
- expires_at: new Date(Date.now() + yw).toISOString(),
6132
+ expires_at: new Date(Date.now() + ww).toISOString(),
6133
6133
  code_verifier: [v, k].join("|"),
6134
6134
  redirect_uri: n.redirect_uri,
6135
6135
  state: n.state,
@@ -6156,7 +6156,7 @@ async function vr(t, e) {
6156
6156
  throw new P(500, {
6157
6157
  message: "Login session not found for creating a new session."
6158
6158
  });
6159
- u = (await ym(t, {
6159
+ u = (await wm(t, {
6160
6160
  user: d,
6161
6161
  client: i,
6162
6162
  loginSession: e.loginSession
@@ -6175,7 +6175,7 @@ async function vr(t, e) {
6175
6175
  }
6176
6176
  if (!l && ((x = n.scope) != null && x.split(" ").includes("offline_access")) && n.response_type && ![Pt.TOKEN, Pt.CODE].includes(
6177
6177
  n.response_type
6178
- ) && (l = (await Kv(t, {
6178
+ ) && (l = (await ym(t, {
6179
6179
  user: d,
6180
6180
  client: i,
6181
6181
  session_id: u,
@@ -6186,7 +6186,7 @@ async function vr(t, e) {
6186
6186
  throw new P(500, {
6187
6187
  message: "Session ID not available for SAML response"
6188
6188
  });
6189
- return Mv(
6189
+ return qv(
6190
6190
  t,
6191
6191
  e.client,
6192
6192
  e.authParams,
@@ -6314,7 +6314,7 @@ async function Gv(t, e, n) {
6314
6314
  }
6315
6315
  });
6316
6316
  }
6317
- async function wm(t, e, n) {
6317
+ async function vm(t, e, n) {
6318
6318
  const r = await Gv(t, n.tenant_id, "webhook");
6319
6319
  for await (const i of e.filter((o) => "url" in o))
6320
6320
  if (!(await fetch(i.url, {
@@ -6335,7 +6335,7 @@ async function wm(t, e, n) {
6335
6335
  function Wv(t) {
6336
6336
  return async (e, n) => {
6337
6337
  const { hooks: r } = await t.env.data.hooks.list(e);
6338
- return await wm(t, r, {
6338
+ return await vm(t, r, {
6339
6339
  tenant_id: e,
6340
6340
  user: n,
6341
6341
  trigger_id: "post-user-registration"
@@ -6350,7 +6350,7 @@ function Xv(t) {
6350
6350
  per_page: 100,
6351
6351
  include_totals: !1
6352
6352
  });
6353
- await wm(t, r, {
6353
+ await vm(t, r, {
6354
6354
  tenant_id: e,
6355
6355
  email: n,
6356
6356
  trigger_id: "pre-user-signup"
@@ -6420,7 +6420,7 @@ function Yv(t, e) {
6420
6420
  });
6421
6421
  await e.logs.create(n, f);
6422
6422
  }
6423
- let o = await ow(e)(n, r);
6423
+ let o = await sw(e)(n, r);
6424
6424
  if ((u = t.env.hooks) != null && u.onExecutePostUserRegistration)
6425
6425
  try {
6426
6426
  await t.env.hooks.onExecutePostUserRegistration(
@@ -8219,7 +8219,7 @@ function ab(...t) {
8219
8219
  n[r++] = o;
8220
8220
  }), n.buffer;
8221
8221
  }
8222
- function vm(t, e) {
8222
+ function bm(t, e) {
8223
8223
  if (!(t && e) || t.byteLength !== e.byteLength)
8224
8224
  return !1;
8225
8225
  const n = new Uint8Array(t), r = new Uint8Array(e);
@@ -8272,7 +8272,7 @@ function su(...t) {
8272
8272
  i.set(o, n), n += o.length;
8273
8273
  return i;
8274
8274
  }
8275
- function bm() {
8275
+ function xm() {
8276
8276
  const t = new Uint8Array(this.valueHex);
8277
8277
  if (this.valueHex.byteLength >= 2) {
8278
8278
  const l = t[0] === 255 && t[1] & 128, u = t[0] === 0 && (t[1] & 128) === 0;
@@ -8392,7 +8392,7 @@ class ac {
8392
8392
  return Yd(this.items);
8393
8393
  }
8394
8394
  }
8395
- const ro = [new Uint8Array([1])], Xf = "0123456789", yl = "name", Jf = "valueHexView", ub = "isHexOnly", db = "idBlock", pb = "tagClass", fb = "tagNumber", hb = "isConstructed", gb = "fromBER", mb = "toBER", _b = "local", At = "", dn = new ArrayBuffer(0), cc = new Uint8Array(0), $o = "EndOfContent", xm = "OCTET STRING", $m = "BIT STRING";
8395
+ const ro = [new Uint8Array([1])], Xf = "0123456789", yl = "name", Jf = "valueHexView", ub = "isHexOnly", db = "idBlock", pb = "tagClass", fb = "tagNumber", hb = "isConstructed", gb = "fromBER", mb = "toBER", _b = "local", At = "", dn = new ArrayBuffer(0), cc = new Uint8Array(0), $o = "EndOfContent", $m = "OCTET STRING", Am = "BIT STRING";
8396
8396
  function kn(t) {
8397
8397
  var e;
8398
8398
  return e = class extends t {
@@ -8460,7 +8460,7 @@ class yt extends ti {
8460
8460
  }
8461
8461
  }
8462
8462
  yt.NAME = "valueBlock";
8463
- class Am extends kn(ti) {
8463
+ class km extends kn(ti) {
8464
8464
  constructor({ idBlock: e = {} } = {}) {
8465
8465
  var n, r, i, o;
8466
8466
  super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? ie.toUint8Array(e.valueHex) : cc, this.tagClass = (r = e.tagClass) !== null && r !== void 0 ? r : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (o = e.isConstructed) !== null && o !== void 0 ? o : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
@@ -8583,8 +8583,8 @@ class Am extends kn(ti) {
8583
8583
  };
8584
8584
  }
8585
8585
  }
8586
- Am.NAME = "identificationBlock";
8587
- class km extends ti {
8586
+ km.NAME = "identificationBlock";
8587
+ class Em extends ti {
8588
8588
  constructor({ lenBlock: e = {} } = {}) {
8589
8589
  var n, r, i;
8590
8590
  super(), this.isIndefiniteForm = (n = e.isIndefiniteForm) !== null && n !== void 0 ? n : !1, this.longFormUsed = (r = e.longFormUsed) !== null && r !== void 0 ? r : !1, this.length = (i = e.length) !== null && i !== void 0 ? i : 0;
@@ -8637,11 +8637,11 @@ class km extends ti {
8637
8637
  };
8638
8638
  }
8639
8639
  }
8640
- km.NAME = "lengthBlock";
8640
+ Em.NAME = "lengthBlock";
8641
8641
  const ue = {};
8642
8642
  class ct extends ti {
8643
8643
  constructor({ name: e = At, optional: n = !1, primitiveSchema: r, ...i } = {}, o) {
8644
- super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Am(i), this.lenBlock = new km(i), this.valueBlock = o ? new o(i) : new yt(i);
8644
+ super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new km(i), this.lenBlock = new Em(i), this.valueBlock = o ? new o(i) : new yt(i);
8645
8645
  }
8646
8646
  fromBER(e, n, r) {
8647
8647
  const i = this.valueBlock.fromBER(e, n, this.lenBlock.isIndefiniteForm ? r : this.lenBlock.length);
@@ -8649,7 +8649,7 @@ class ct extends ti {
8649
8649
  }
8650
8650
  toBER(e, n) {
8651
8651
  const r = n || new ac();
8652
- n || Em(this);
8652
+ n || Sm(this);
8653
8653
  const i = this.idBlock.toBER(e);
8654
8654
  if (r.write(i), this.lenBlock.isIndefiniteForm)
8655
8655
  r.write(new Uint8Array([128]).buffer), this.valueBlock.toBER(e, r), r.write(new ArrayBuffer(2));
@@ -8688,10 +8688,10 @@ class ct extends ti {
8688
8688
  }
8689
8689
  }
8690
8690
  ct.NAME = "BaseBlock";
8691
- function Em(t) {
8691
+ function Sm(t) {
8692
8692
  if (t instanceof ue.Constructed)
8693
8693
  for (const e of t.valueBlock.value)
8694
- Em(e) && (t.lenBlock.isIndefiniteForm = !0);
8694
+ Sm(e) && (t.lenBlock.isIndefiniteForm = !0);
8695
8695
  return !!t.lenBlock.isIndefiniteForm;
8696
8696
  }
8697
8697
  class Zd extends ct {
@@ -8713,20 +8713,20 @@ class Zd extends ct {
8713
8713
  }
8714
8714
  }
8715
8715
  Zd.NAME = "BaseStringBlock";
8716
- class Sm extends kn(yt) {
8716
+ class Nm extends kn(yt) {
8717
8717
  constructor({ isHexOnly: e = !0, ...n } = {}) {
8718
8718
  super(n), this.isHexOnly = e;
8719
8719
  }
8720
8720
  }
8721
- Sm.NAME = "PrimitiveValueBlock";
8722
- var Nm;
8721
+ Nm.NAME = "PrimitiveValueBlock";
8722
+ var Cm;
8723
8723
  class Wo extends ct {
8724
8724
  constructor(e = {}) {
8725
- super(e, Sm), this.idBlock.isConstructed = !1;
8725
+ super(e, Nm), this.idBlock.isConstructed = !1;
8726
8726
  }
8727
8727
  }
8728
- Nm = Wo;
8729
- ue.Primitive = Nm;
8728
+ Cm = Wo;
8729
+ ue.Primitive = Cm;
8730
8730
  Wo.NAME = "PRIMITIVE";
8731
8731
  function yb(t, e) {
8732
8732
  if (t instanceof e)
@@ -8941,7 +8941,7 @@ class sr extends yt {
8941
8941
  }
8942
8942
  }
8943
8943
  sr.NAME = "ConstructedValueBlock";
8944
- var Cm;
8944
+ var Im;
8945
8945
  class Et extends ct {
8946
8946
  constructor(e = {}) {
8947
8947
  super(e, sr), this.idBlock.isConstructed = !0;
@@ -8963,10 +8963,10 @@ ${e.join(`
8963
8963
  `)}` : `${n} :`;
8964
8964
  }
8965
8965
  }
8966
- Cm = Et;
8967
- ue.Constructed = Cm;
8966
+ Im = Et;
8967
+ ue.Constructed = Im;
8968
8968
  Et.NAME = "CONSTRUCTED";
8969
- class Im extends yt {
8969
+ class Tm extends yt {
8970
8970
  fromBER(e, n, r) {
8971
8971
  return n;
8972
8972
  }
@@ -8974,17 +8974,17 @@ class Im extends yt {
8974
8974
  return dn;
8975
8975
  }
8976
8976
  }
8977
- Im.override = "EndOfContentValueBlock";
8978
- var Tm;
8977
+ Tm.override = "EndOfContentValueBlock";
8978
+ var Om;
8979
8979
  class Qd extends ct {
8980
8980
  constructor(e = {}) {
8981
- super(e, Im), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
8981
+ super(e, Tm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
8982
8982
  }
8983
8983
  }
8984
- Tm = Qd;
8985
- ue.EndOfContent = Tm;
8984
+ Om = Qd;
8985
+ ue.EndOfContent = Om;
8986
8986
  Qd.NAME = $o;
8987
- var Om;
8987
+ var Dm;
8988
8988
  class Lr extends ct {
8989
8989
  constructor(e = {}) {
8990
8990
  super(e, yt), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
@@ -9004,10 +9004,10 @@ class Lr extends ct {
9004
9004
  return `${this.constructor.NAME}`;
9005
9005
  }
9006
9006
  }
9007
- Om = Lr;
9008
- ue.Null = Om;
9007
+ Dm = Lr;
9008
+ ue.Null = Dm;
9009
9009
  Lr.NAME = "NULL";
9010
- class Dm extends kn(yt) {
9010
+ class Rm extends kn(yt) {
9011
9011
  constructor({ value: e, ...n } = {}) {
9012
9012
  super(n), n.valueHex ? this.valueHexView = ie.toUint8Array(n.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
9013
9013
  }
@@ -9022,7 +9022,7 @@ class Dm extends kn(yt) {
9022
9022
  }
9023
9023
  fromBER(e, n, r) {
9024
9024
  const i = ie.toUint8Array(e);
9025
- return Gn(this, i, n, r) ? (this.valueHexView = i.subarray(n, n + r), r > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, bm.call(this), this.blockLength = r, n + r) : -1;
9025
+ return Gn(this, i, n, r) ? (this.valueHexView = i.subarray(n, n + r), r > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, xm.call(this), this.blockLength = r, n + r) : -1;
9026
9026
  }
9027
9027
  toBER() {
9028
9028
  return this.valueHexView.slice();
@@ -9034,11 +9034,11 @@ class Dm extends kn(yt) {
9034
9034
  };
9035
9035
  }
9036
9036
  }
9037
- Dm.NAME = "BooleanValueBlock";
9038
- var Rm;
9037
+ Rm.NAME = "BooleanValueBlock";
9038
+ var Bm;
9039
9039
  let lc = class extends ct {
9040
9040
  constructor(e = {}) {
9041
- super(e, Dm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
9041
+ super(e, Rm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
9042
9042
  }
9043
9043
  getValue() {
9044
9044
  return this.valueBlock.value;
@@ -9050,10 +9050,10 @@ let lc = class extends ct {
9050
9050
  return `${this.constructor.NAME} : ${this.getValue}`;
9051
9051
  }
9052
9052
  };
9053
- Rm = lc;
9054
- ue.Boolean = Rm;
9053
+ Bm = lc;
9054
+ ue.Boolean = Bm;
9055
9055
  lc.NAME = "BOOLEAN";
9056
- class Bm extends kn(sr) {
9056
+ class Pm extends kn(sr) {
9057
9057
  constructor({ isConstructed: e = !1, ...n } = {}) {
9058
9058
  super(n), this.isConstructed = e;
9059
9059
  }
@@ -9069,7 +9069,7 @@ class Bm extends kn(sr) {
9069
9069
  break;
9070
9070
  return this.error = "EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only", -1;
9071
9071
  }
9072
- if (c !== xm)
9072
+ if (c !== $m)
9073
9073
  return this.error = "OCTET STRING may consists of OCTET STRINGs only", -1;
9074
9074
  }
9075
9075
  } else
@@ -9086,9 +9086,9 @@ class Bm extends kn(sr) {
9086
9086
  };
9087
9087
  }
9088
9088
  }
9089
- Bm.NAME = "OctetStringValueBlock";
9090
- var Pm;
9091
- let Br = class jm extends ct {
9089
+ Pm.NAME = "OctetStringValueBlock";
9090
+ var jm;
9091
+ let Br = class Lm extends ct {
9092
9092
  constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
9093
9093
  var i, o;
9094
9094
  (i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((o = r.value) === null || o === void 0) && o.length)), super({
@@ -9101,7 +9101,7 @@ let Br = class jm extends ct {
9101
9101
  isIndefiniteForm: !!r.isIndefiniteForm
9102
9102
  },
9103
9103
  ...r
9104
- }, Bm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
9104
+ }, Pm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
9105
9105
  }
9106
9106
  fromBER(e, n, r) {
9107
9107
  if (this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, r === 0)
@@ -9126,14 +9126,14 @@ let Br = class jm extends ct {
9126
9126
  return this.valueBlock.valueHexView.slice().buffer;
9127
9127
  const e = [];
9128
9128
  for (const n of this.valueBlock.value)
9129
- n instanceof jm && e.push(n.valueBlock.valueHexView);
9129
+ n instanceof Lm && e.push(n.valueBlock.valueHexView);
9130
9130
  return ie.concat(e);
9131
9131
  }
9132
9132
  };
9133
- Pm = Br;
9134
- ue.OctetString = Pm;
9135
- Br.NAME = xm;
9136
- class Lm extends kn(sr) {
9133
+ jm = Br;
9134
+ ue.OctetString = jm;
9135
+ Br.NAME = $m;
9136
+ class Fm extends kn(sr) {
9137
9137
  constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
9138
9138
  super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
9139
9139
  }
@@ -9151,7 +9151,7 @@ class Lm extends kn(sr) {
9151
9151
  break;
9152
9152
  return this.error = "EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only", -1;
9153
9153
  }
9154
- if (u !== $m)
9154
+ if (u !== Am)
9155
9155
  return this.error = "BIT STRING may consists of BIT STRINGs only", -1;
9156
9156
  const d = l.valueBlock;
9157
9157
  if (this.unusedBits > 0 && d.unusedBits > 0)
@@ -9196,8 +9196,8 @@ class Lm extends kn(sr) {
9196
9196
  };
9197
9197
  }
9198
9198
  }
9199
- Lm.NAME = "BitStringValueBlock";
9200
- var Fm;
9199
+ Fm.NAME = "BitStringValueBlock";
9200
+ var Um;
9201
9201
  let Pr = class extends ct {
9202
9202
  constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
9203
9203
  var i, o;
@@ -9211,7 +9211,7 @@ let Pr = class extends ct {
9211
9211
  isIndefiniteForm: !!r.isIndefiniteForm
9212
9212
  },
9213
9213
  ...r
9214
- }, Lm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
9214
+ }, Fm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
9215
9215
  }
9216
9216
  fromBER(e, n, r) {
9217
9217
  return this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, super.fromBER(e, n, r);
@@ -9228,10 +9228,10 @@ let Pr = class extends ct {
9228
9228
  }
9229
9229
  }
9230
9230
  };
9231
- Fm = Pr;
9232
- ue.BitString = Fm;
9233
- Pr.NAME = $m;
9234
- var Um;
9231
+ Um = Pr;
9232
+ ue.BitString = Um;
9233
+ Pr.NAME = Am;
9234
+ var Mm;
9235
9235
  function vb(t, e) {
9236
9236
  const n = new Uint8Array([0]), r = new Uint8Array(t), i = new Uint8Array(e);
9237
9237
  let o = r.slice(0);
@@ -9297,7 +9297,7 @@ class ep extends kn(yt) {
9297
9297
  super(n), this._valueDec = 0, n.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
9298
9298
  }
9299
9299
  setValueHex() {
9300
- this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = bm.call(this)));
9300
+ this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = xm.call(this)));
9301
9301
  }
9302
9302
  set valueDec(e) {
9303
9303
  this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(cb(e));
@@ -9364,9 +9364,9 @@ class ep extends kn(yt) {
9364
9364
  return l === !1 && (c += Xf.charAt(0)), c;
9365
9365
  }
9366
9366
  }
9367
- Um = ep;
9367
+ Mm = ep;
9368
9368
  ep.NAME = "IntegerValueBlock";
9369
- Object.defineProperty(Um.prototype, "valueHex", {
9369
+ Object.defineProperty(Mm.prototype, "valueHex", {
9370
9370
  set: function(t) {
9371
9371
  this.valueHexView = new Uint8Array(t), this.setValueHex();
9372
9372
  },
@@ -9374,7 +9374,7 @@ Object.defineProperty(Um.prototype, "valueHex", {
9374
9374
  return this.valueHexView.slice().buffer;
9375
9375
  }
9376
9376
  });
9377
- var Mm;
9377
+ var qm;
9378
9378
  class vn extends ct {
9379
9379
  constructor(e = {}) {
9380
9380
  super(e, ep), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
@@ -9409,17 +9409,17 @@ class vn extends ct {
9409
9409
  return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
9410
9410
  }
9411
9411
  }
9412
- Mm = vn;
9413
- ue.Integer = Mm;
9412
+ qm = vn;
9413
+ ue.Integer = qm;
9414
9414
  vn.NAME = "INTEGER";
9415
- var qm;
9415
+ var Vm;
9416
9416
  class uc extends vn {
9417
9417
  constructor(e = {}) {
9418
9418
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
9419
9419
  }
9420
9420
  }
9421
- qm = uc;
9422
- ue.Enumerated = qm;
9421
+ Vm = uc;
9422
+ ue.Enumerated = Vm;
9423
9423
  uc.NAME = "ENUMERATED";
9424
9424
  class au extends kn(yt) {
9425
9425
  constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
@@ -9491,7 +9491,7 @@ class au extends kn(yt) {
9491
9491
  }
9492
9492
  }
9493
9493
  au.NAME = "sidBlock";
9494
- class Vm extends yt {
9494
+ class zm extends yt {
9495
9495
  constructor({ value: e = At, ...n } = {}) {
9496
9496
  super(n), this.value = [], e && this.fromString(e);
9497
9497
  }
@@ -9571,11 +9571,11 @@ class Vm extends yt {
9571
9571
  return e;
9572
9572
  }
9573
9573
  }
9574
- Vm.NAME = "ObjectIdentifierValueBlock";
9575
- var zm;
9574
+ zm.NAME = "ObjectIdentifierValueBlock";
9575
+ var Hm;
9576
9576
  class dc extends ct {
9577
9577
  constructor(e = {}) {
9578
- super(e, Vm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
9578
+ super(e, zm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
9579
9579
  }
9580
9580
  getValue() {
9581
9581
  return this.valueBlock.toString();
@@ -9593,8 +9593,8 @@ class dc extends ct {
9593
9593
  };
9594
9594
  }
9595
9595
  }
9596
- zm = dc;
9597
- ue.ObjectIdentifier = zm;
9596
+ Hm = dc;
9597
+ ue.ObjectIdentifier = Hm;
9598
9598
  dc.NAME = "OBJECT IDENTIFIER";
9599
9599
  class cu extends kn(ti) {
9600
9600
  constructor({ valueDec: e = 0, ...n } = {}) {
@@ -9648,7 +9648,7 @@ class cu extends kn(ti) {
9648
9648
  }
9649
9649
  }
9650
9650
  cu.NAME = "relativeSidBlock";
9651
- class Hm extends yt {
9651
+ class Km extends yt {
9652
9652
  constructor({ value: e = At, ...n } = {}) {
9653
9653
  super(n), this.value = [], e && this.fromString(e);
9654
9654
  }
@@ -9704,11 +9704,11 @@ class Hm extends yt {
9704
9704
  return e;
9705
9705
  }
9706
9706
  }
9707
- Hm.NAME = "RelativeObjectIdentifierValueBlock";
9708
- var Km;
9707
+ Km.NAME = "RelativeObjectIdentifierValueBlock";
9708
+ var Gm;
9709
9709
  class tp extends ct {
9710
9710
  constructor(e = {}) {
9711
- super(e, Hm), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
9711
+ super(e, Km), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
9712
9712
  }
9713
9713
  getValue() {
9714
9714
  return this.valueBlock.toString();
@@ -9726,28 +9726,28 @@ class tp extends ct {
9726
9726
  };
9727
9727
  }
9728
9728
  }
9729
- Km = tp;
9730
- ue.RelativeObjectIdentifier = Km;
9729
+ Gm = tp;
9730
+ ue.RelativeObjectIdentifier = Gm;
9731
9731
  tp.NAME = "RelativeObjectIdentifier";
9732
- var Gm;
9732
+ var Wm;
9733
9733
  class Bn extends Et {
9734
9734
  constructor(e = {}) {
9735
9735
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
9736
9736
  }
9737
9737
  }
9738
- Gm = Bn;
9739
- ue.Sequence = Gm;
9738
+ Wm = Bn;
9739
+ ue.Sequence = Wm;
9740
9740
  Bn.NAME = "SEQUENCE";
9741
- var Wm;
9741
+ var Xm;
9742
9742
  let Pn = class extends Et {
9743
9743
  constructor(e = {}) {
9744
9744
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
9745
9745
  }
9746
9746
  };
9747
- Wm = Pn;
9748
- ue.Set = Wm;
9747
+ Xm = Pn;
9748
+ ue.Set = Xm;
9749
9749
  Pn.NAME = "SET";
9750
- class Xm extends kn(yt) {
9750
+ class Jm extends kn(yt) {
9751
9751
  constructor({ ...e } = {}) {
9752
9752
  super(e), this.isHexOnly = !0, this.value = At;
9753
9753
  }
@@ -9758,13 +9758,13 @@ class Xm extends kn(yt) {
9758
9758
  };
9759
9759
  }
9760
9760
  }
9761
- Xm.NAME = "StringValueBlock";
9762
- class Jm extends Xm {
9761
+ Jm.NAME = "StringValueBlock";
9762
+ class Ym extends Jm {
9763
9763
  }
9764
- Jm.NAME = "SimpleStringValueBlock";
9764
+ Ym.NAME = "SimpleStringValueBlock";
9765
9765
  class Mt extends Zd {
9766
9766
  constructor({ ...e } = {}) {
9767
- super(e, Jm);
9767
+ super(e, Ym);
9768
9768
  }
9769
9769
  fromBuffer(e) {
9770
9770
  this.valueBlock.value = String.fromCharCode.apply(null, ie.toUint8Array(e));
@@ -9777,7 +9777,7 @@ class Mt extends Zd {
9777
9777
  }
9778
9778
  }
9779
9779
  Mt.NAME = "SIMPLE STRING";
9780
- class Ym extends Mt {
9780
+ class Zm extends Mt {
9781
9781
  fromBuffer(e) {
9782
9782
  this.valueBlock.valueHexView = ie.toUint8Array(e);
9783
9783
  try {
@@ -9790,17 +9790,17 @@ class Ym extends Mt {
9790
9790
  this.valueBlock.valueHexView = new Uint8Array(he.FromUtf8String(e)), this.valueBlock.value = e;
9791
9791
  }
9792
9792
  }
9793
- Ym.NAME = "Utf8StringValueBlock";
9794
- var Zm;
9795
- class Wn extends Ym {
9793
+ Zm.NAME = "Utf8StringValueBlock";
9794
+ var Qm;
9795
+ class Wn extends Zm {
9796
9796
  constructor(e = {}) {
9797
9797
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 12;
9798
9798
  }
9799
9799
  }
9800
- Zm = Wn;
9801
- ue.Utf8String = Zm;
9800
+ Qm = Wn;
9801
+ ue.Utf8String = Qm;
9802
9802
  Wn.NAME = "UTF8String";
9803
- class Qm extends Mt {
9803
+ class e2 extends Mt {
9804
9804
  fromBuffer(e) {
9805
9805
  this.valueBlock.value = he.ToUtf16String(e), this.valueBlock.valueHexView = ie.toUint8Array(e);
9806
9806
  }
@@ -9808,17 +9808,17 @@ class Qm extends Mt {
9808
9808
  this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(he.FromUtf16String(e));
9809
9809
  }
9810
9810
  }
9811
- Qm.NAME = "BmpStringValueBlock";
9812
- var e2;
9813
- class pc extends Qm {
9811
+ e2.NAME = "BmpStringValueBlock";
9812
+ var t2;
9813
+ class pc extends e2 {
9814
9814
  constructor({ ...e } = {}) {
9815
9815
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
9816
9816
  }
9817
9817
  }
9818
- e2 = pc;
9819
- ue.BmpString = e2;
9818
+ t2 = pc;
9819
+ ue.BmpString = t2;
9820
9820
  pc.NAME = "BMPString";
9821
- class t2 extends Mt {
9821
+ class n2 extends Mt {
9822
9822
  fromBuffer(e) {
9823
9823
  const n = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), r = new Uint8Array(n);
9824
9824
  for (let i = 0; i < r.length; i += 4)
@@ -9838,98 +9838,98 @@ class t2 extends Mt {
9838
9838
  this.valueBlock.value = e;
9839
9839
  }
9840
9840
  }
9841
- t2.NAME = "UniversalStringValueBlock";
9842
- var n2;
9843
- class fc extends t2 {
9841
+ n2.NAME = "UniversalStringValueBlock";
9842
+ var r2;
9843
+ class fc extends n2 {
9844
9844
  constructor({ ...e } = {}) {
9845
9845
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
9846
9846
  }
9847
9847
  }
9848
- n2 = fc;
9849
- ue.UniversalString = n2;
9848
+ r2 = fc;
9849
+ ue.UniversalString = r2;
9850
9850
  fc.NAME = "UniversalString";
9851
- var r2;
9851
+ var i2;
9852
9852
  class hc extends Mt {
9853
9853
  constructor(e = {}) {
9854
9854
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
9855
9855
  }
9856
9856
  }
9857
- r2 = hc;
9858
- ue.NumericString = r2;
9857
+ i2 = hc;
9858
+ ue.NumericString = i2;
9859
9859
  hc.NAME = "NumericString";
9860
- var i2;
9860
+ var o2;
9861
9861
  class gc extends Mt {
9862
9862
  constructor(e = {}) {
9863
9863
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
9864
9864
  }
9865
9865
  }
9866
- i2 = gc;
9867
- ue.PrintableString = i2;
9866
+ o2 = gc;
9867
+ ue.PrintableString = o2;
9868
9868
  gc.NAME = "PrintableString";
9869
- var o2;
9869
+ var s2;
9870
9870
  class mc extends Mt {
9871
9871
  constructor(e = {}) {
9872
9872
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
9873
9873
  }
9874
9874
  }
9875
- o2 = mc;
9876
- ue.TeletexString = o2;
9875
+ s2 = mc;
9876
+ ue.TeletexString = s2;
9877
9877
  mc.NAME = "TeletexString";
9878
- var s2;
9878
+ var a2;
9879
9879
  class _c extends Mt {
9880
9880
  constructor(e = {}) {
9881
9881
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
9882
9882
  }
9883
9883
  }
9884
- s2 = _c;
9885
- ue.VideotexString = s2;
9884
+ a2 = _c;
9885
+ ue.VideotexString = a2;
9886
9886
  _c.NAME = "VideotexString";
9887
- var a2;
9887
+ var c2;
9888
9888
  class yc extends Mt {
9889
9889
  constructor(e = {}) {
9890
9890
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
9891
9891
  }
9892
9892
  }
9893
- a2 = yc;
9894
- ue.IA5String = a2;
9893
+ c2 = yc;
9894
+ ue.IA5String = c2;
9895
9895
  yc.NAME = "IA5String";
9896
- var c2;
9896
+ var l2;
9897
9897
  class wc extends Mt {
9898
9898
  constructor(e = {}) {
9899
9899
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
9900
9900
  }
9901
9901
  }
9902
- c2 = wc;
9903
- ue.GraphicString = c2;
9902
+ l2 = wc;
9903
+ ue.GraphicString = l2;
9904
9904
  wc.NAME = "GraphicString";
9905
- var l2;
9905
+ var u2;
9906
9906
  class Xo extends Mt {
9907
9907
  constructor(e = {}) {
9908
9908
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
9909
9909
  }
9910
9910
  }
9911
- l2 = Xo;
9912
- ue.VisibleString = l2;
9911
+ u2 = Xo;
9912
+ ue.VisibleString = u2;
9913
9913
  Xo.NAME = "VisibleString";
9914
- var u2;
9914
+ var d2;
9915
9915
  class vc extends Mt {
9916
9916
  constructor(e = {}) {
9917
9917
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
9918
9918
  }
9919
9919
  }
9920
- u2 = vc;
9921
- ue.GeneralString = u2;
9920
+ d2 = vc;
9921
+ ue.GeneralString = d2;
9922
9922
  vc.NAME = "GeneralString";
9923
- var d2;
9923
+ var p2;
9924
9924
  class bc extends Mt {
9925
9925
  constructor(e = {}) {
9926
9926
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
9927
9927
  }
9928
9928
  }
9929
- d2 = bc;
9930
- ue.CharacterString = d2;
9929
+ p2 = bc;
9930
+ ue.CharacterString = p2;
9931
9931
  bc.NAME = "CharacterString";
9932
- var p2;
9932
+ var f2;
9933
9933
  class Jo extends Xo {
9934
9934
  constructor({ value: e, valueDate: n, ...r } = {}) {
9935
9935
  if (super(r), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
@@ -9985,10 +9985,10 @@ class Jo extends Xo {
9985
9985
  };
9986
9986
  }
9987
9987
  }
9988
- p2 = Jo;
9989
- ue.UTCTime = p2;
9988
+ f2 = Jo;
9989
+ ue.UTCTime = f2;
9990
9990
  Jo.NAME = "UTCTime";
9991
- var f2;
9991
+ var h2;
9992
9992
  class xc extends Jo {
9993
9993
  constructor(e = {}) {
9994
9994
  var n;
@@ -10109,53 +10109,53 @@ class xc extends Jo {
10109
10109
  };
10110
10110
  }
10111
10111
  }
10112
- f2 = xc;
10113
- ue.GeneralizedTime = f2;
10112
+ h2 = xc;
10113
+ ue.GeneralizedTime = h2;
10114
10114
  xc.NAME = "GeneralizedTime";
10115
- var h2;
10115
+ var g2;
10116
10116
  class np extends Wn {
10117
10117
  constructor(e = {}) {
10118
10118
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
10119
10119
  }
10120
10120
  }
10121
- h2 = np;
10122
- ue.DATE = h2;
10121
+ g2 = np;
10122
+ ue.DATE = g2;
10123
10123
  np.NAME = "DATE";
10124
- var g2;
10124
+ var m2;
10125
10125
  class rp extends Wn {
10126
10126
  constructor(e = {}) {
10127
10127
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
10128
10128
  }
10129
10129
  }
10130
- g2 = rp;
10131
- ue.TimeOfDay = g2;
10130
+ m2 = rp;
10131
+ ue.TimeOfDay = m2;
10132
10132
  rp.NAME = "TimeOfDay";
10133
- var m2;
10133
+ var _2;
10134
10134
  class ip extends Wn {
10135
10135
  constructor(e = {}) {
10136
10136
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
10137
10137
  }
10138
10138
  }
10139
- m2 = ip;
10140
- ue.DateTime = m2;
10139
+ _2 = ip;
10140
+ ue.DateTime = _2;
10141
10141
  ip.NAME = "DateTime";
10142
- var _2;
10142
+ var y2;
10143
10143
  class op extends Wn {
10144
10144
  constructor(e = {}) {
10145
10145
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
10146
10146
  }
10147
10147
  }
10148
- _2 = op;
10149
- ue.Duration = _2;
10148
+ y2 = op;
10149
+ ue.Duration = y2;
10150
10150
  op.NAME = "Duration";
10151
- var y2;
10151
+ var w2;
10152
10152
  class sp extends Wn {
10153
10153
  constructor(e = {}) {
10154
10154
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
10155
10155
  }
10156
10156
  }
10157
- y2 = sp;
10158
- ue.TIME = y2;
10157
+ w2 = sp;
10158
+ ue.TIME = w2;
10159
10159
  sp.NAME = "TIME";
10160
10160
  class Fr {
10161
10161
  constructor({ name: e = At, optional: n = !1 } = {}) {
@@ -10401,7 +10401,7 @@ function $b(t, e) {
10401
10401
  result: n.result
10402
10402
  } : Or(n.result, n.result, e);
10403
10403
  }
10404
- const w2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10404
+ const v2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10405
10405
  __proto__: null,
10406
10406
  Any: Fr,
10407
10407
  BaseBlock: ct,
@@ -10559,7 +10559,7 @@ function Yt(t) {
10559
10559
  toASN: (e) => new t({ value: e })
10560
10560
  };
10561
10561
  }
10562
- const v2 = Yt(Wn), Tb = Yt(pc), Ob = Yt(fc), Db = Yt(hc), Rb = Yt(gc), Bb = Yt(mc), Pb = Yt(_c), jb = Yt(yc), Lb = Yt(wc), Fb = Yt(Xo), Ub = Yt(vc), Mb = Yt(bc), qb = {
10562
+ const b2 = Yt(Wn), Tb = Yt(pc), Ob = Yt(fc), Db = Yt(hc), Rb = Yt(gc), Bb = Yt(mc), Pb = Yt(_c), jb = Yt(yc), Lb = Yt(wc), Fb = Yt(Xo), Ub = Yt(vc), Mb = Yt(bc), qb = {
10563
10563
  fromASN: (t) => t.toDate(),
10564
10564
  toASN: (t) => new Jo({ valueDate: t })
10565
10565
  }, Vb = {
@@ -10610,7 +10610,7 @@ function cp(t) {
10610
10610
  case T.UniversalString:
10611
10611
  return Ob;
10612
10612
  case T.Utf8String:
10613
- return v2;
10613
+ return b2;
10614
10614
  case T.VideotexString:
10615
10615
  return Pb;
10616
10616
  case T.VisibleString:
@@ -10622,11 +10622,11 @@ function cp(t) {
10622
10622
  function Rn(t) {
10623
10623
  return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : Rn(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
10624
10624
  }
10625
- function b2(t) {
10625
+ function x2(t) {
10626
10626
  var e;
10627
10627
  if (t) {
10628
10628
  const n = Object.getPrototypeOf(t);
10629
- return ((e = n == null ? void 0 : n.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : b2(n);
10629
+ return ((e = n == null ? void 0 : n.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : x2(n);
10630
10630
  }
10631
10631
  return !1;
10632
10632
  }
@@ -10671,7 +10671,7 @@ class Kb {
10671
10671
  const c = r.items[o], l = n ? o : "";
10672
10672
  let u;
10673
10673
  if (typeof c.type == "number") {
10674
- const f = T[c.type], h = w2[f];
10674
+ const f = T[c.type], h = v2[f];
10675
10675
  if (!h)
10676
10676
  throw new Error(`Cannot get ASN1 class by name '${f}'`);
10677
10677
  u = new h({ name: l });
@@ -10797,7 +10797,7 @@ class Gb {
10797
10797
  if (!c.verified)
10798
10798
  throw new Zf(`Data does not match to ${n.name} ASN1 schema. ${c.result.error}`);
10799
10799
  const l = new n();
10800
- if (b2(n)) {
10800
+ if (x2(n)) {
10801
10801
  if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
10802
10802
  throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
10803
10803
  const u = i.itemType;
@@ -10838,7 +10838,7 @@ class Gb {
10838
10838
  if (Rn(h))
10839
10839
  m = new h().toSchema("");
10840
10840
  else {
10841
- const x = T[h], S = w2[x];
10841
+ const x = T[h], S = v2[x];
10842
10842
  if (!S)
10843
10843
  throw new Error(`Cannot get '${x}' class from asn1js module`);
10844
10844
  m = new S();
@@ -10994,7 +10994,7 @@ function g(t, e, n, r) {
10994
10994
  else for (var l = t.length - 1; l >= 0; l--) (c = t[l]) && (o = (i < 3 ? c(o) : i > 3 ? c(e, n, o) : c(e, n)) || o);
10995
10995
  return i > 3 && o && Object.defineProperty(e, n, o), o;
10996
10996
  }
10997
- var x2 = { exports: {} };
10997
+ var $2 = { exports: {} };
10998
10998
  (function(t) {
10999
10999
  (function(e) {
11000
11000
  const n = "(0?\\d+|0x[a-f0-9]+)", r = {
@@ -11487,8 +11487,8 @@ var x2 = { exports: {} };
11487
11487
  return S;
11488
11488
  }, t.exports ? t.exports = $ : e.ipaddr = $;
11489
11489
  })(rr);
11490
- })(x2);
11491
- var Qf = x2.exports;
11490
+ })($2);
11491
+ var Qf = $2.exports;
11492
11492
  class e0 {
11493
11493
  static decodeIP(e) {
11494
11494
  if (e.length === 64 && parseInt(e, 16) === 0)
@@ -11696,7 +11696,7 @@ g([
11696
11696
  converter: Ve
11697
11697
  })
11698
11698
  ], Dr.prototype, "authorityCertSerialNumber", void 0);
11699
- const $2 = `${br}.19`;
11699
+ const A2 = `${br}.19`;
11700
11700
  class ua {
11701
11701
  constructor(e = {}) {
11702
11702
  this.cA = !1, Object.assign(this, e);
@@ -11727,7 +11727,7 @@ o0 = _u = g([
11727
11727
  J({ type: K.Sequence })
11728
11728
  ], o0);
11729
11729
  var yu;
11730
- const A2 = `${br}.32`;
11730
+ const k2 = `${br}.32`;
11731
11731
  let Fn = class {
11732
11732
  constructor(e = {}) {
11733
11733
  Object.assign(this, e);
@@ -11839,7 +11839,7 @@ var nn;
11839
11839
  (function(t) {
11840
11840
  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";
11841
11841
  })(nn || (nn = {}));
11842
- class k2 extends $c {
11842
+ class E2 extends $c {
11843
11843
  toJSON() {
11844
11844
  const e = [], n = this.toNumber();
11845
11845
  return n & nn.aACompromise && e.push("aACompromise"), n & nn.affiliationChanged && e.push("affiliationChanged"), n & nn.cACompromise && e.push("cACompromise"), n & nn.certificateHold && e.push("certificateHold"), n & nn.cessationOfOperation && e.push("cessationOfOperation"), n & nn.keyCompromise && e.push("keyCompromise"), n & nn.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & nn.superseded && e.push("superseded"), n & nn.unused && e.push("unused"), e;
@@ -11871,7 +11871,7 @@ g([
11871
11871
  w({ type: Ur, context: 0, optional: !0 })
11872
11872
  ], Vi.prototype, "distributionPoint", void 0);
11873
11873
  g([
11874
- w({ type: k2, context: 1, optional: !0, implicit: !0 })
11874
+ w({ type: E2, context: 1, optional: !0, implicit: !0 })
11875
11875
  ], Vi.prototype, "reasons", void 0);
11876
11876
  g([
11877
11877
  w({ type: Ne, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
@@ -11909,7 +11909,7 @@ g([
11909
11909
  w({ type: T.Boolean, context: 2, defaultValue: dt.ONLY, implicit: !0 })
11910
11910
  ], dt.prototype, "onlyContainsCACerts", void 0);
11911
11911
  g([
11912
- w({ type: k2, context: 3, optional: !0, implicit: !0 })
11912
+ w({ type: E2, context: 3, optional: !0, implicit: !0 })
11913
11913
  ], dt.prototype, "onlySomeReasons", void 0);
11914
11914
  g([
11915
11915
  w({ type: T.Boolean, context: 4, defaultValue: dt.ONLY, implicit: !0 })
@@ -11939,7 +11939,7 @@ xu = g([
11939
11939
  J({ type: K.Choice })
11940
11940
  ], xu);
11941
11941
  var $u;
11942
- const E2 = `${br}.37`;
11942
+ const S2 = `${br}.37`;
11943
11943
  let ha = $u = class extends Pe {
11944
11944
  constructor(e) {
11945
11945
  super(e), Object.setPrototypeOf(this, $u.prototype);
@@ -11980,7 +11980,7 @@ let c0 = Eu = class extends _t {
11980
11980
  c0 = Eu = g([
11981
11981
  J({ type: K.Sequence })
11982
11982
  ], c0);
11983
- const S2 = `${br}.15`;
11983
+ const N2 = `${br}.15`;
11984
11984
  var rn;
11985
11985
  (function(t) {
11986
11986
  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";
@@ -12017,18 +12017,18 @@ let ga = Su = class extends Pe {
12017
12017
  ga = Su = g([
12018
12018
  J({ type: K.Sequence, itemType: Sc })
12019
12019
  ], ga);
12020
- class N2 {
12020
+ class C2 {
12021
12021
  constructor(e = {}) {
12022
12022
  Object.assign(this, e);
12023
12023
  }
12024
12024
  }
12025
12025
  g([
12026
12026
  w({ type: ga, context: 0, optional: !0, implicit: !0 })
12027
- ], N2.prototype, "permittedSubtrees", void 0);
12027
+ ], C2.prototype, "permittedSubtrees", void 0);
12028
12028
  g([
12029
12029
  w({ type: ga, context: 1, optional: !0, implicit: !0 })
12030
- ], N2.prototype, "excludedSubtrees", void 0);
12031
- class C2 {
12030
+ ], C2.prototype, "excludedSubtrees", void 0);
12031
+ class I2 {
12032
12032
  constructor(e = {}) {
12033
12033
  Object.assign(this, e);
12034
12034
  }
@@ -12041,7 +12041,7 @@ g([
12041
12041
  optional: !0,
12042
12042
  converter: Ve
12043
12043
  })
12044
- ], C2.prototype, "requireExplicitPolicy", void 0);
12044
+ ], I2.prototype, "requireExplicitPolicy", void 0);
12045
12045
  g([
12046
12046
  w({
12047
12047
  type: T.Integer,
@@ -12050,7 +12050,7 @@ g([
12050
12050
  optional: !0,
12051
12051
  converter: Ve
12052
12052
  })
12053
- ], C2.prototype, "inhibitPolicyMapping", void 0);
12053
+ ], I2.prototype, "inhibitPolicyMapping", void 0);
12054
12054
  var Nu;
12055
12055
  class mp {
12056
12056
  constructor(e = {}) {
@@ -12072,7 +12072,7 @@ l0 = Nu = g([
12072
12072
  J({ type: K.Sequence, itemType: mp })
12073
12073
  ], l0);
12074
12074
  var Cu;
12075
- const I2 = `${br}.17`;
12075
+ const T2 = `${br}.17`;
12076
12076
  let Iu = Cu = class extends _t {
12077
12077
  constructor(e) {
12078
12078
  super(e), Object.setPrototypeOf(this, Cu.prototype);
@@ -12101,25 +12101,25 @@ let u0 = Tu = class extends Pe {
12101
12101
  u0 = Tu = g([
12102
12102
  J({ type: K.Sequence, itemType: Un })
12103
12103
  ], u0);
12104
- const T2 = `${br}.14`;
12104
+ const O2 = `${br}.14`;
12105
12105
  class ar extends pp {
12106
12106
  }
12107
- class O2 {
12107
+ class D2 {
12108
12108
  constructor(e = {}) {
12109
12109
  Object.assign(this, e);
12110
12110
  }
12111
12111
  }
12112
12112
  g([
12113
12113
  w({ type: T.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
12114
- ], O2.prototype, "notBefore", void 0);
12114
+ ], D2.prototype, "notBefore", void 0);
12115
12115
  g([
12116
12116
  w({ type: T.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
12117
- ], O2.prototype, "notAfter", void 0);
12117
+ ], D2.prototype, "notAfter", void 0);
12118
12118
  var mo;
12119
12119
  (function(t) {
12120
12120
  t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
12121
12121
  })(mo || (mo = {}));
12122
- class D2 extends $c {
12122
+ class R2 extends $c {
12123
12123
  toJSON() {
12124
12124
  const e = [], n = this.toNumber();
12125
12125
  return n & mo.pKIXCertificate && e.push("pKIXCertificate"), n & mo.newExtensions && e.push("newExtensions"), n & mo.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
@@ -12128,17 +12128,17 @@ class D2 extends $c {
12128
12128
  return `[${this.toJSON().join(", ")}]`;
12129
12129
  }
12130
12130
  }
12131
- class R2 {
12131
+ class B2 {
12132
12132
  constructor(e = {}) {
12133
- this.entrustVers = "", this.entrustInfoFlags = new D2(), Object.assign(this, e);
12133
+ this.entrustVers = "", this.entrustInfoFlags = new R2(), Object.assign(this, e);
12134
12134
  }
12135
12135
  }
12136
12136
  g([
12137
12137
  w({ type: T.GeneralString })
12138
- ], R2.prototype, "entrustVers", void 0);
12138
+ ], B2.prototype, "entrustVers", void 0);
12139
12139
  g([
12140
- w({ type: D2 })
12141
- ], R2.prototype, "entrustInfoFlags", void 0);
12140
+ w({ type: R2 })
12141
+ ], B2.prototype, "entrustInfoFlags", void 0);
12142
12142
  var Ou;
12143
12143
  let d0 = Ou = class extends Pe {
12144
12144
  constructor(e) {
@@ -12153,7 +12153,7 @@ class le {
12153
12153
  this.algorithm = "", Object.assign(this, e);
12154
12154
  }
12155
12155
  isEqual(e) {
12156
- return e instanceof le && e.algorithm == this.algorithm && (e.parameters && this.parameters && vm(e.parameters, this.parameters) || e.parameters === this.parameters);
12156
+ return e instanceof le && e.algorithm == this.algorithm && (e.parameters && this.parameters && bm(e.parameters, this.parameters) || e.parameters === this.parameters);
12157
12157
  }
12158
12158
  }
12159
12159
  g([
@@ -12219,9 +12219,9 @@ g([
12219
12219
  w({ type: at })
12220
12220
  ], Zo.prototype, "notAfter", void 0);
12221
12221
  var Du;
12222
- let Jt = class B2 {
12222
+ let Jt = class P2 {
12223
12223
  constructor(e = {}) {
12224
- this.extnID = "", this.critical = B2.CRITICAL, this.extnValue = new De(), Object.assign(this, e);
12224
+ this.extnID = "", this.critical = P2.CRITICAL, this.extnValue = new De(), Object.assign(this, e);
12225
12225
  }
12226
12226
  };
12227
12227
  Jt.CRITICAL = !1;
@@ -12702,17 +12702,17 @@ g([
12702
12702
  g([
12703
12703
  w({ type: T.Utf8String })
12704
12704
  ], Dc.prototype, "string", void 0);
12705
- class P2 {
12705
+ class j2 {
12706
12706
  constructor(e = {}) {
12707
12707
  this.values = [], Object.assign(this, e);
12708
12708
  }
12709
12709
  }
12710
12710
  g([
12711
12711
  w({ type: _t, implicit: !0, context: 0, optional: !0 })
12712
- ], P2.prototype, "policyAuthority", void 0);
12712
+ ], j2.prototype, "policyAuthority", void 0);
12713
12713
  g([
12714
12714
  w({ type: Dc, repeated: "sequence" })
12715
- ], P2.prototype, "values", void 0);
12715
+ ], j2.prototype, "values", void 0);
12716
12716
  var Uu;
12717
12717
  class Rc {
12718
12718
  constructor(e = {}) {
@@ -12762,17 +12762,17 @@ let g0 = qu = class extends Pe {
12762
12762
  g0 = qu = g([
12763
12763
  J({ type: K.Sequence, itemType: Mu })
12764
12764
  ], g0);
12765
- class j2 {
12765
+ class L2 {
12766
12766
  constructor(e = {}) {
12767
12767
  Object.assign(this, e);
12768
12768
  }
12769
12769
  }
12770
12770
  g([
12771
12771
  w({ type: _t, implicit: !0, context: 0, optional: !0 })
12772
- ], j2.prototype, "roleAuthority", void 0);
12772
+ ], L2.prototype, "roleAuthority", void 0);
12773
12773
  g([
12774
12774
  w({ type: Ne, implicit: !0, context: 1 })
12775
- ], j2.prototype, "roleName", void 0);
12775
+ ], L2.prototype, "roleName", void 0);
12776
12776
  class bp {
12777
12777
  constructor(e = {}) {
12778
12778
  this.service = new Ne(), this.ident = new Ne(), Object.assign(this, e);
@@ -13221,12 +13221,12 @@ g([
13221
13221
  g([
13222
13222
  w({ type: ya })
13223
13223
  ], Wi.prototype, "signerInfos", void 0);
13224
- const No = "1.2.840.10045.2.1", Sp = "1.2.840.10045.4.1", L2 = "1.2.840.10045.4.3.1", Np = "1.2.840.10045.4.3.2", Cp = "1.2.840.10045.4.3.3", Ip = "1.2.840.10045.4.3.4", m0 = "1.2.840.10045.3.1.7", _0 = "1.3.132.0.34", y0 = "1.3.132.0.35";
13224
+ const No = "1.2.840.10045.2.1", Sp = "1.2.840.10045.4.1", F2 = "1.2.840.10045.4.3.1", Np = "1.2.840.10045.4.3.2", Cp = "1.2.840.10045.4.3.3", Ip = "1.2.840.10045.4.3.4", m0 = "1.2.840.10045.3.1.7", _0 = "1.3.132.0.34", y0 = "1.3.132.0.35";
13225
13225
  function ss(t) {
13226
13226
  return new le({ algorithm: t });
13227
13227
  }
13228
13228
  const r3 = ss(Sp);
13229
- ss(L2);
13229
+ ss(F2);
13230
13230
  const i3 = ss(Np), o3 = ss(Cp), s3 = ss(Ip);
13231
13231
  let Co = class {
13232
13232
  constructor(e = {}) {
@@ -13336,23 +13336,23 @@ g([
13336
13336
  g([
13337
13337
  w({ type: T.Integer, converter: Ve })
13338
13338
  ], Sa.prototype, "s", void 0);
13339
- const Nt = "1.2.840.113549.1.1", zr = `${Nt}.1`, c3 = `${Nt}.7`, l3 = `${Nt}.9`, _o = `${Nt}.10`, u3 = `${Nt}.2`, d3 = `${Nt}.4`, Na = `${Nt}.5`, p3 = `${Nt}.14`, Yu = `${Nt}.11`, Ca = `${Nt}.12`, Ia = `${Nt}.13`, F2 = `${Nt}.15`, U2 = `${Nt}.16`, Ta = "1.3.14.3.2.26", M2 = "2.16.840.1.101.3.4.2.4", Oa = "2.16.840.1.101.3.4.2.1", Da = "2.16.840.1.101.3.4.2.2", Ra = "2.16.840.1.101.3.4.2.3", f3 = "2.16.840.1.101.3.4.2.5", h3 = "2.16.840.1.101.3.4.2.6", g3 = "1.2.840.113549.2.2", m3 = "1.2.840.113549.2.5", Uc = `${Nt}.8`;
13339
+ const Nt = "1.2.840.113549.1.1", zr = `${Nt}.1`, c3 = `${Nt}.7`, l3 = `${Nt}.9`, _o = `${Nt}.10`, u3 = `${Nt}.2`, d3 = `${Nt}.4`, Na = `${Nt}.5`, p3 = `${Nt}.14`, Yu = `${Nt}.11`, Ca = `${Nt}.12`, Ia = `${Nt}.13`, U2 = `${Nt}.15`, M2 = `${Nt}.16`, Ta = "1.3.14.3.2.26", q2 = "2.16.840.1.101.3.4.2.4", Oa = "2.16.840.1.101.3.4.2.1", Da = "2.16.840.1.101.3.4.2.2", Ra = "2.16.840.1.101.3.4.2.3", f3 = "2.16.840.1.101.3.4.2.5", h3 = "2.16.840.1.101.3.4.2.6", g3 = "1.2.840.113549.2.2", m3 = "1.2.840.113549.2.5", Uc = `${Nt}.8`;
13340
13340
  function nt(t) {
13341
13341
  return new le({ algorithm: t, parameters: null });
13342
13342
  }
13343
13343
  nt(g3);
13344
13344
  nt(m3);
13345
13345
  const Hr = nt(Ta);
13346
- nt(M2);
13346
+ nt(q2);
13347
13347
  nt(Oa);
13348
13348
  nt(Da);
13349
13349
  nt(Ra);
13350
13350
  nt(f3);
13351
13351
  nt(h3);
13352
- const q2 = new le({
13352
+ const V2 = new le({
13353
13353
  algorithm: Uc,
13354
13354
  parameters: ne.serialize(Hr)
13355
- }), V2 = new le({
13355
+ }), z2 = new le({
13356
13356
  algorithm: l3,
13357
13357
  parameters: ne.serialize(la.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
13358
13358
  });
@@ -13360,28 +13360,28 @@ nt(zr);
13360
13360
  nt(u3);
13361
13361
  nt(d3);
13362
13362
  nt(Na);
13363
- nt(F2);
13364
13363
  nt(U2);
13364
+ nt(M2);
13365
13365
  nt(Ca);
13366
13366
  nt(Ia);
13367
- nt(F2);
13368
13367
  nt(U2);
13368
+ nt(M2);
13369
13369
  class Mc {
13370
13370
  constructor(e = {}) {
13371
13371
  this.hashAlgorithm = new le(Hr), this.maskGenAlgorithm = new le({
13372
13372
  algorithm: Uc,
13373
13373
  parameters: ne.serialize(Hr)
13374
- }), this.pSourceAlgorithm = new le(V2), Object.assign(this, e);
13374
+ }), this.pSourceAlgorithm = new le(z2), Object.assign(this, e);
13375
13375
  }
13376
13376
  }
13377
13377
  g([
13378
13378
  w({ type: le, context: 0, defaultValue: Hr })
13379
13379
  ], Mc.prototype, "hashAlgorithm", void 0);
13380
13380
  g([
13381
- w({ type: le, context: 1, defaultValue: q2 })
13381
+ w({ type: le, context: 1, defaultValue: V2 })
13382
13382
  ], Mc.prototype, "maskGenAlgorithm", void 0);
13383
13383
  g([
13384
- w({ type: le, context: 2, defaultValue: V2 })
13384
+ w({ type: le, context: 2, defaultValue: z2 })
13385
13385
  ], Mc.prototype, "pSourceAlgorithm", void 0);
13386
13386
  new le({
13387
13387
  algorithm: c3,
@@ -13399,7 +13399,7 @@ g([
13399
13399
  w({ type: le, context: 0, defaultValue: Hr })
13400
13400
  ], Kr.prototype, "hashAlgorithm", void 0);
13401
13401
  g([
13402
- w({ type: le, context: 1, defaultValue: q2 })
13402
+ w({ type: le, context: 1, defaultValue: V2 })
13403
13403
  ], Kr.prototype, "maskGenAlgorithm", void 0);
13404
13404
  g([
13405
13405
  w({ type: T.Integer, context: 2, defaultValue: 20 })
@@ -13650,13 +13650,13 @@ function v3(t) {
13650
13650
  e[+r] = n[r];
13651
13651
  }), e;
13652
13652
  }
13653
- function z2(t) {
13653
+ function H2(t) {
13654
13654
  return !!t.useClass;
13655
13655
  }
13656
13656
  function nd(t) {
13657
13657
  return !!t.useFactory;
13658
13658
  }
13659
- var H2 = function() {
13659
+ var K2 = function() {
13660
13660
  function t(e) {
13661
13661
  this.wrap = e, this.reflectMethods = [
13662
13662
  "get",
@@ -13700,7 +13700,7 @@ function w0(t) {
13700
13700
  return typeof t == "object" && "token" in t && "transform" in t;
13701
13701
  }
13702
13702
  function x3(t) {
13703
- return typeof t == "function" || t instanceof H2;
13703
+ return typeof t == "function" || t instanceof K2;
13704
13704
  }
13705
13705
  function qs(t) {
13706
13706
  return !!t.useToken;
@@ -13709,7 +13709,7 @@ function Vs(t) {
13709
13709
  return t.useValue != null;
13710
13710
  }
13711
13711
  function $3(t) {
13712
- return z2(t) || Vs(t) || qs(t) || nd(t);
13712
+ return H2(t) || Vs(t) || qs(t) || nd(t);
13713
13713
  }
13714
13714
  var Dp = function() {
13715
13715
  function t() {
@@ -13786,7 +13786,7 @@ var C3 = function(t) {
13786
13786
  this.preResolution = new C3(), this.postResolution = new I3();
13787
13787
  }
13788
13788
  return t;
13789
- }(), K2 = /* @__PURE__ */ new Map(), O3 = function() {
13789
+ }(), G2 = /* @__PURE__ */ new Map(), O3 = function() {
13790
13790
  function t(e) {
13791
13791
  this.parent = e, this._registry = new A3(), this.interceptors = new T3(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
13792
13792
  }
@@ -13889,7 +13889,7 @@ var C3 = function(t) {
13889
13889
  if (this.ensureNotDisposed(), e.options.lifecycle === $t.ResolutionScoped && n.scopedResolutions.has(e))
13890
13890
  return n.scopedResolutions.get(e);
13891
13891
  var r = e.options.lifecycle === $t.Singleton, i = e.options.lifecycle === $t.ContainerScoped, o = r || i, c;
13892
- return Vs(e.provider) ? c = e.provider.useValue : qs(e.provider) ? c = o ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : z2(e.provider) ? c = o ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : nd(e.provider) ? c = e.provider.useFactory(this) : c = this.construct(e.provider, n), e.options.lifecycle === $t.ResolutionScoped && n.scopedResolutions.set(e, c), c;
13892
+ return Vs(e.provider) ? c = e.provider.useValue : qs(e.provider) ? c = o ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : H2(e.provider) ? c = o ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : nd(e.provider) ? c = e.provider.useFactory(this) : c = this.construct(e.provider, n), e.options.lifecycle === $t.ResolutionScoped && n.scopedResolutions.set(e, c), c;
13893
13893
  }, t.prototype.resolveAll = function(e, n) {
13894
13894
  var r = this;
13895
13895
  n === void 0 && (n = new v0()), this.ensureNotDisposed();
@@ -13987,12 +13987,12 @@ var C3 = function(t) {
13987
13987
  return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
13988
13988
  }, t.prototype.construct = function(e, n) {
13989
13989
  var r = this;
13990
- if (e instanceof H2)
13990
+ if (e instanceof K2)
13991
13991
  return e.createProxy(function(o) {
13992
13992
  return r.resolve(o, n);
13993
13993
  });
13994
13994
  var i = function() {
13995
- var o = K2.get(e);
13995
+ var o = G2.get(e);
13996
13996
  if (!o || o.length === 0) {
13997
13997
  if (e.length === 0)
13998
13998
  return new e();
@@ -14019,7 +14019,7 @@ var C3 = function(t) {
14019
14019
  }(), ut = new O3();
14020
14020
  function zc() {
14021
14021
  return function(t) {
14022
- K2.set(t, v3(t));
14022
+ G2.set(t, v3(t));
14023
14023
  };
14024
14024
  }
14025
14025
  if (typeof Reflect > "u" || !Reflect.getMetadata)
@@ -14053,46 +14053,46 @@ let x0 = id = class extends Pe {
14053
14053
  x0 = id = g([
14054
14054
  J({ type: K.Sequence, itemType: Ki })
14055
14055
  ], x0);
14056
- class G2 {
14056
+ class W2 {
14057
14057
  constructor(e = {}) {
14058
14058
  this.certId = "", this.certValue = new ArrayBuffer(0), Object.assign(this, e);
14059
14059
  }
14060
14060
  }
14061
14061
  g([
14062
14062
  w({ type: T.ObjectIdentifier })
14063
- ], G2.prototype, "certId", void 0);
14063
+ ], W2.prototype, "certId", void 0);
14064
14064
  g([
14065
14065
  w({ type: T.Any, context: 0 })
14066
- ], G2.prototype, "certValue", void 0);
14067
- class W2 {
14066
+ ], W2.prototype, "certValue", void 0);
14067
+ class X2 {
14068
14068
  constructor(e = {}) {
14069
14069
  this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
14070
14070
  }
14071
14071
  }
14072
14072
  g([
14073
14073
  w({ type: T.ObjectIdentifier })
14074
- ], W2.prototype, "crlId", void 0);
14074
+ ], X2.prototype, "crlId", void 0);
14075
14075
  g([
14076
14076
  w({ type: T.Any, context: 0 })
14077
- ], W2.prototype, "crltValue", void 0);
14078
- class X2 extends De {
14077
+ ], X2.prototype, "crltValue", void 0);
14078
+ class J2 extends De {
14079
14079
  }
14080
14080
  let Kc = class {
14081
14081
  constructor(e = {}) {
14082
- this.encryptionAlgorithm = new le(), this.encryptedData = new X2(), Object.assign(this, e);
14082
+ this.encryptionAlgorithm = new le(), this.encryptedData = new J2(), Object.assign(this, e);
14083
14083
  }
14084
14084
  };
14085
14085
  g([
14086
14086
  w({ type: le })
14087
14087
  ], Kc.prototype, "encryptionAlgorithm", void 0);
14088
14088
  g([
14089
- w({ type: X2 })
14089
+ w({ type: J2 })
14090
14090
  ], Kc.prototype, "encryptedData", void 0);
14091
14091
  var od, sd;
14092
14092
  (function(t) {
14093
14093
  t[t.v1 = 0] = "v1";
14094
14094
  })(sd || (sd = {}));
14095
- class J2 extends De {
14095
+ class Y2 extends De {
14096
14096
  }
14097
14097
  let ad = od = class extends Pe {
14098
14098
  constructor(e) {
@@ -14104,7 +14104,7 @@ ad = od = g([
14104
14104
  ], ad);
14105
14105
  class as {
14106
14106
  constructor(e = {}) {
14107
- this.version = sd.v1, this.privateKeyAlgorithm = new le(), this.privateKey = new J2(), Object.assign(this, e);
14107
+ this.version = sd.v1, this.privateKeyAlgorithm = new le(), this.privateKey = new Y2(), Object.assign(this, e);
14108
14108
  }
14109
14109
  }
14110
14110
  g([
@@ -14114,7 +14114,7 @@ g([
14114
14114
  w({ type: le })
14115
14115
  ], as.prototype, "privateKeyAlgorithm", void 0);
14116
14116
  g([
14117
- w({ type: J2 })
14117
+ w({ type: Y2 })
14118
14118
  ], as.prototype, "privateKey", void 0);
14119
14119
  g([
14120
14120
  w({ type: ad, implicit: !0, context: 0, optional: !0 })
@@ -14129,17 +14129,17 @@ let A0 = class extends Kc {
14129
14129
  A0 = g([
14130
14130
  J({ type: K.Sequence })
14131
14131
  ], A0);
14132
- class Y2 {
14132
+ class Z2 {
14133
14133
  constructor(e = {}) {
14134
14134
  this.secretTypeId = "", this.secretValue = new ArrayBuffer(0), Object.assign(this, e);
14135
14135
  }
14136
14136
  }
14137
14137
  g([
14138
14138
  w({ type: T.ObjectIdentifier })
14139
- ], Y2.prototype, "secretTypeId", void 0);
14139
+ ], Z2.prototype, "secretTypeId", void 0);
14140
14140
  g([
14141
14141
  w({ type: T.Any, context: 0 })
14142
- ], Y2.prototype, "secretValue", void 0);
14142
+ ], Z2.prototype, "secretValue", void 0);
14143
14143
  class cs {
14144
14144
  constructor(e = {}) {
14145
14145
  this.mac = new qc(), this.macSalt = new De(), this.iterations = 1, Object.assign(this, e);
@@ -14192,7 +14192,7 @@ k0 = cd = g([
14192
14192
  J({ type: K.Sequence, itemType: Wc })
14193
14193
  ], k0);
14194
14194
  var ld, ud, dd;
14195
- const Z2 = "1.2.840.113549.1.9", Q2 = `${Z2}.7`, Rp = `${Z2}.14`;
14195
+ const Q2 = "1.2.840.113549.1.9", e1 = `${Q2}.7`, Rp = `${Q2}.14`;
14196
14196
  let Pa = class extends lt {
14197
14197
  constructor(e = {}) {
14198
14198
  super(e);
@@ -14633,16 +14633,16 @@ To = zs = g([
14633
14633
  zc()
14634
14634
  ], To);
14635
14635
  ut.registerSingleton(ls, To);
14636
- const e1 = Symbol("name"), t1 = Symbol("value");
14636
+ const t1 = Symbol("name"), n1 = Symbol("value");
14637
14637
  class Be {
14638
14638
  constructor(e, n = {}, r = "") {
14639
- this[e1] = e, this[t1] = r;
14639
+ this[t1] = e, this[n1] = r;
14640
14640
  for (const i in n)
14641
14641
  this[i] = n[i];
14642
14642
  }
14643
14643
  }
14644
- Be.NAME = e1;
14645
- Be.VALUE = t1;
14644
+ Be.NAME = t1;
14645
+ Be.VALUE = n1;
14646
14646
  class R3 {
14647
14647
  static toTextObject(e) {
14648
14648
  const n = new Be("Algorithm Identifier", {}, xr.toString(e.algorithm));
@@ -14667,7 +14667,7 @@ class xr {
14667
14667
  }
14668
14668
  xr.items = {
14669
14669
  [Ta]: "sha1",
14670
- [M2]: "sha224",
14670
+ [q2]: "sha224",
14671
14671
  [Oa]: "sha256",
14672
14672
  [Da]: "sha384",
14673
14673
  [Ra]: "sha512",
@@ -14679,7 +14679,7 @@ xr.items = {
14679
14679
  [Ia]: "sha512WithRSAEncryption",
14680
14680
  [No]: "ecPublicKey",
14681
14681
  [Sp]: "ecdsaWithSHA1",
14682
- [L2]: "ecdsaWithSHA224",
14682
+ [F2]: "ecdsaWithSHA224",
14683
14683
  [Np]: "ecdsaWithSHA256",
14684
14684
  [Cp]: "ecdsaWithSHA384",
14685
14685
  [Ip]: "ecdsaWithSHA512",
@@ -14757,7 +14757,7 @@ class $r {
14757
14757
  }
14758
14758
  }
14759
14759
  equal(e) {
14760
- return e instanceof $r ? vm(e.rawData, this.rawData) : !1;
14760
+ return e instanceof $r ? bm(e.rawData, this.rawData) : !1;
14761
14761
  }
14762
14762
  toString(e = "text") {
14763
14763
  switch (e) {
@@ -14808,7 +14808,7 @@ class Zt extends $r {
14808
14808
  return e[Be.NAME] === Zt.NAME && (e[Be.NAME] = xr.toString(this.type)), e;
14809
14809
  }
14810
14810
  }
14811
- var n1;
14811
+ var r1;
14812
14812
  class ir {
14813
14813
  static isCryptoKeyPair(e) {
14814
14814
  return e && e.privateKey && e.publicKey;
@@ -14817,7 +14817,7 @@ class ir {
14817
14817
  return e && e.usages && e.type && e.algorithm && e.extractable !== void 0;
14818
14818
  }
14819
14819
  constructor() {
14820
- this.items = /* @__PURE__ */ new Map(), this[n1] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(ir.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(ir.DEFAULT, global.crypto);
14820
+ this.items = /* @__PURE__ */ new Map(), this[r1] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(ir.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(ir.DEFAULT, global.crypto);
14821
14821
  }
14822
14822
  clear() {
14823
14823
  this.items.clear();
@@ -14862,13 +14862,13 @@ class ir {
14862
14862
  return this;
14863
14863
  }
14864
14864
  }
14865
- n1 = Symbol.toStringTag;
14865
+ r1 = Symbol.toStringTag;
14866
14866
  ir.DEFAULT = "default";
14867
14867
  const st = new ir(), B3 = /^[0-2](?:\.[1-9][0-9]*)+$/;
14868
14868
  function P3(t) {
14869
14869
  return new RegExp(B3).test(t);
14870
14870
  }
14871
- class r1 {
14871
+ class i1 {
14872
14872
  constructor(e = {}) {
14873
14873
  this.items = {};
14874
14874
  for (const n in e)
@@ -14884,7 +14884,7 @@ class r1 {
14884
14884
  this.items[e] = n, this.items[n] = e;
14885
14885
  }
14886
14886
  }
14887
- const St = new r1();
14887
+ const St = new i1();
14888
14888
  St.register("CN", "2.5.4.3");
14889
14889
  St.register("L", "2.5.4.7");
14890
14890
  St.register("ST", "2.5.4.8");
@@ -14914,7 +14914,7 @@ class Wt {
14914
14914
  return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
14915
14915
  }
14916
14916
  constructor(e, n = {}) {
14917
- this.extraNames = new r1(), this.asn = new Ye();
14917
+ this.extraNames = new i1(), this.asn = new Ye();
14918
14918
  for (const r in n)
14919
14919
  if (Object.prototype.hasOwnProperty.call(n, r)) {
14920
14920
  const i = n[r];
@@ -15028,7 +15028,7 @@ class Wt {
15028
15028
  return e.length >= 1 && !(!((n = e[0]) === null || n === void 0) && n.subtle) ? (i = e[0] || i, r = e[1] || st.get()) : r = e[0] || st.get(), await r.subtle.digest(i, this.toArrayBuffer());
15029
15029
  }
15030
15030
  }
15031
- const i1 = "Cannot initialize GeneralName from ASN.1 data.", fh = `${i1} Unsupported string format in use.`, F3 = `${i1} Value doesn't match to GUID regular expression.`, hh = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, gh = "1.3.6.1.4.1.311.25.1", mh = "1.3.6.1.4.1.311.20.2.3", vl = "dns", bl = "dn", xl = "email", $l = "ip", Al = "url", kl = "guid", El = "upn", Is = "id";
15031
+ const o1 = "Cannot initialize GeneralName from ASN.1 data.", fh = `${o1} Unsupported string format in use.`, F3 = `${o1} Value doesn't match to GUID regular expression.`, hh = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, gh = "1.3.6.1.4.1.311.25.1", mh = "1.3.6.1.4.1.311.20.2.3", vl = "dns", bl = "dn", xl = "email", $l = "ip", Al = "url", kl = "guid", El = "upn", Is = "id";
15032
15032
  class or extends $r {
15033
15033
  constructor(...e) {
15034
15034
  let n;
@@ -15068,7 +15068,7 @@ class or extends $r {
15068
15068
  n = new Ne({
15069
15069
  otherName: new Ao({
15070
15070
  typeId: mh,
15071
- value: ne.serialize(v2.toASN(e[1]))
15071
+ value: ne.serialize(b2.toASN(e[1]))
15072
15072
  })
15073
15073
  });
15074
15074
  break;
@@ -15420,7 +15420,7 @@ class Bp extends Zt {
15420
15420
  cA: e[0],
15421
15421
  pathLenConstraint: e[1]
15422
15422
  });
15423
- super($2, e[2], ne.serialize(n)), this.ca = e[0], this.pathLength = e[1];
15423
+ super(A2, e[2], ne.serialize(n)), this.ca = e[0], this.pathLength = e[1];
15424
15424
  }
15425
15425
  }
15426
15426
  toTextObject() {
@@ -15441,7 +15441,7 @@ class Pp extends Zt {
15441
15441
  this.usages = n.map((r) => r);
15442
15442
  } else {
15443
15443
  const n = new ha(e[0]);
15444
- super(E2, e[1], ne.serialize(n)), this.usages = e[0];
15444
+ super(S2, e[1], ne.serialize(n)), this.usages = e[0];
15445
15445
  }
15446
15446
  }
15447
15447
  toTextObject() {
@@ -15462,7 +15462,7 @@ class jp extends Zt {
15462
15462
  this.usages = n.toNumber();
15463
15463
  } else {
15464
15464
  const n = new wl(e[0]);
15465
- super(S2, e[1], ne.serialize(n)), this.usages = e[0];
15465
+ super(N2, e[1], ne.serialize(n)), this.usages = e[0];
15466
15466
  }
15467
15467
  }
15468
15468
  toTextObject() {
@@ -15483,7 +15483,7 @@ class us extends Zt {
15483
15483
  this.keyId = he.ToHex(n);
15484
15484
  } else {
15485
15485
  const n = typeof e[0] == "string" ? he.FromHex(e[0]) : e[0], r = new ar(n);
15486
- super(T2, e[1], ne.serialize(r)), this.keyId = he.ToHex(n);
15486
+ super(O2, e[1], ne.serialize(r)), this.keyId = he.ToHex(n);
15487
15487
  }
15488
15488
  }
15489
15489
  toTextObject() {
@@ -15492,9 +15492,9 @@ class us extends Zt {
15492
15492
  }
15493
15493
  }
15494
15494
  us.NAME = "Subject Key Identifier";
15495
- class o1 extends Zt {
15495
+ class s1 extends Zt {
15496
15496
  constructor(...e) {
15497
- ie.isBufferSource(e[0]) ? super(e[0]) : super(I2, e[1], new Oo(e[0] || []).rawData);
15497
+ ie.isBufferSource(e[0]) ? super(e[0]) : super(T2, e[1], new Oo(e[0] || []).rawData);
15498
15498
  }
15499
15499
  onInit(e) {
15500
15500
  super.onInit(e);
@@ -15508,7 +15508,7 @@ class o1 extends Zt {
15508
15508
  return e;
15509
15509
  }
15510
15510
  }
15511
- o1.NAME = "Subject Alternative Name";
15511
+ s1.NAME = "Subject Alternative Name";
15512
15512
  class Qt {
15513
15513
  static register(e, n) {
15514
15514
  this.items.set(e, n);
@@ -15519,7 +15519,7 @@ class Qt {
15519
15519
  }
15520
15520
  }
15521
15521
  Qt.items = /* @__PURE__ */ new Map();
15522
- class s1 extends Zt {
15522
+ class a1 extends Zt {
15523
15523
  constructor(...e) {
15524
15524
  var n;
15525
15525
  if (ie.isBufferSource(e[0])) {
@@ -15530,7 +15530,7 @@ class s1 extends Zt {
15530
15530
  const r = e[0], i = (n = e[1]) !== null && n !== void 0 ? n : !1, o = new pa(r.map((c) => new Ec({
15531
15531
  policyIdentifier: c
15532
15532
  })));
15533
- super(A2, i, ne.serialize(o)), this.policies = r;
15533
+ super(k2, i, ne.serialize(o)), this.policies = r;
15534
15534
  }
15535
15535
  }
15536
15536
  toTextObject() {
@@ -15538,9 +15538,9 @@ class s1 extends Zt {
15538
15538
  return e.Policy = this.policies.map((n) => new Be("", {}, xr.toString(n))), e;
15539
15539
  }
15540
15540
  }
15541
- s1.NAME = "Certificate Policies";
15542
- Qt.register(A2, s1);
15543
- class a1 extends Zt {
15541
+ a1.NAME = "Certificate Policies";
15542
+ Qt.register(k2, a1);
15543
+ class c1 extends Zt {
15544
15544
  constructor(...e) {
15545
15545
  var n;
15546
15546
  if (ie.isBufferSource(e[0]))
@@ -15572,8 +15572,8 @@ class a1 extends Zt {
15572
15572
  }), e;
15573
15573
  }
15574
15574
  }
15575
- a1.NAME = "CRL Distribution Points";
15576
- class c1 extends Zt {
15575
+ c1.NAME = "CRL Distribution Points";
15576
+ class l1 extends Zt {
15577
15577
  constructor(...e) {
15578
15578
  var n, r, i, o;
15579
15579
  if (ie.isBufferSource(e[0]))
@@ -15610,7 +15610,7 @@ class c1 extends Zt {
15610
15610
  return this.ocsp.length && Ts(e, "OCSP", this.ocsp), this.caIssuers.length && Ts(e, "CA Issuers", this.caIssuers), this.timeStamping.length && Ts(e, "Time Stamping", this.timeStamping), this.caRepository.length && Ts(e, "CA Repository", this.caRepository), e;
15611
15611
  }
15612
15612
  }
15613
- c1.NAME = "Authority Info Access";
15613
+ l1.NAME = "Authority Info Access";
15614
15614
  function Ts(t, e, n) {
15615
15615
  if (n.length === 1)
15616
15616
  t[e] = n[0].toTextObject();
@@ -15656,7 +15656,7 @@ class Ji extends $r {
15656
15656
  }
15657
15657
  }
15658
15658
  Ji.NAME = "Attribute";
15659
- class l1 extends Ji {
15659
+ class u1 extends Ji {
15660
15660
  constructor(...e) {
15661
15661
  var n;
15662
15662
  if (ie.isBufferSource(e[0]))
@@ -15665,7 +15665,7 @@ class l1 extends Ji {
15665
15665
  const r = new La({
15666
15666
  printableString: e[0]
15667
15667
  });
15668
- super(Q2, [ne.serialize(r)]);
15668
+ super(e1, [ne.serialize(r)]);
15669
15669
  }
15670
15670
  (n = this.password) !== null && n !== void 0 || (this.password = "");
15671
15671
  }
@@ -15680,7 +15680,7 @@ class l1 extends Ji {
15680
15680
  return e[Be.VALUE] = this.password, e;
15681
15681
  }
15682
15682
  }
15683
- l1.NAME = "Challenge Password";
15683
+ u1.NAME = "Challenge Password";
15684
15684
  class Lp extends Ji {
15685
15685
  constructor(...e) {
15686
15686
  var n;
@@ -16151,15 +16151,15 @@ var bh;
16151
16151
  (function(t) {
16152
16152
  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";
16153
16153
  })(bh || (bh = {}));
16154
- Qt.register($2, Bp);
16155
- Qt.register(E2, Pp);
16156
- Qt.register(S2, jp);
16157
- Qt.register(T2, us);
16154
+ Qt.register(A2, Bp);
16155
+ Qt.register(S2, Pp);
16156
+ Qt.register(N2, jp);
16157
+ Qt.register(O2, us);
16158
16158
  Qt.register(gu, Ro);
16159
- Qt.register(I2, o1);
16160
- Qt.register(vu, a1);
16161
- Qt.register(hu, c1);
16162
- Xc.register(Q2, l1);
16159
+ Qt.register(T2, s1);
16160
+ Qt.register(vu, c1);
16161
+ Qt.register(hu, l1);
16162
+ Xc.register(e1, u1);
16163
16163
  Xc.register(Rp, Lp);
16164
16164
  ut.registerSingleton(ds, W3);
16165
16165
  ut.registerSingleton(ds, Xt);
@@ -18270,7 +18270,7 @@ function k4(t) {
18270
18270
  });
18271
18271
  return r.env.data = Yc(r, c), i();
18272
18272
  }), e.use(Qc).use(Zc).use(Up(e));
18273
- const n = e.route("/branding", Wy).route("/custom-domains", w4).route("/email/providers", m4).route("/users", nb).route("/keys", e4).route("/users-by-email", t4).route("/clients", r4).route("/tenants", o4).route("/logs", a4).route("/hooks", l4).route("/connections", d4).route("/prompts", p4).route("/sessions", _4).route("/refresh_tokens", y4).route("/forms", A4);
18273
+ const n = e.route("/branding", Xy).route("/custom-domains", w4).route("/email/providers", m4).route("/users", nb).route("/keys", e4).route("/users-by-email", t4).route("/clients", r4).route("/tenants", o4).route("/logs", a4).route("/hooks", l4).route("/connections", d4).route("/prompts", p4).route("/sessions", _4).route("/refresh_tokens", y4).route("/forms", A4);
18274
18274
  return n.doc("/spec", {
18275
18275
  openapi: "3.0.0",
18276
18276
  info: {
@@ -18310,12 +18310,12 @@ var Ah;
18310
18310
  t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
18311
18311
  })(Ah || (Ah = {}));
18312
18312
  function S4(t) {
18313
- return d1(t, N4, Bo.Include);
18313
+ return p1(t, N4, Bo.Include);
18314
18314
  }
18315
- function u1(t) {
18316
- return d1(t, C4, Bo.None);
18315
+ function d1(t) {
18316
+ return p1(t, C4, Bo.None);
18317
18317
  }
18318
- function d1(t, e, n) {
18318
+ function p1(t, e, n) {
18319
18319
  let r = "";
18320
18320
  for (let i = 0; i < t.byteLength; i += 3) {
18321
18321
  let o = 0, c = 0;
@@ -18656,11 +18656,11 @@ class R4 {
18656
18656
  }
18657
18657
  function B4(t) {
18658
18658
  const e = T4(new TextEncoder().encode(t));
18659
- return u1(e);
18659
+ return d1(e);
18660
18660
  }
18661
18661
  function P4() {
18662
18662
  const t = new Uint8Array(32);
18663
- return crypto.getRandomValues(t), u1(t);
18663
+ return crypto.getRandomValues(t), d1(t);
18664
18664
  }
18665
18665
  function wo(t, e) {
18666
18666
  const n = new TextEncoder().encode(e.toString()), r = new Request(t, {
@@ -18678,7 +18678,7 @@ async function Ma(t) {
18678
18678
  try {
18679
18679
  e = await fetch(t);
18680
18680
  } catch (n) {
18681
- throw new f1(n);
18681
+ throw new h1(n);
18682
18682
  }
18683
18683
  if (e.status === 400 || e.status === 401) {
18684
18684
  let n;
@@ -18691,7 +18691,7 @@ async function Ma(t) {
18691
18691
  throw new bi(e.status, n);
18692
18692
  let r;
18693
18693
  try {
18694
- r = p1(n);
18694
+ r = f1(n);
18695
18695
  } catch {
18696
18696
  throw new bi(e.status, n);
18697
18697
  }
@@ -18715,7 +18715,7 @@ async function j4(t) {
18715
18715
  try {
18716
18716
  e = await fetch(t);
18717
18717
  } catch (n) {
18718
- throw new f1(n);
18718
+ throw new h1(n);
18719
18719
  }
18720
18720
  if (e.status === 400 || e.status === 401) {
18721
18721
  let n;
@@ -18728,7 +18728,7 @@ async function j4(t) {
18728
18728
  throw new bi(e.status, n);
18729
18729
  let r;
18730
18730
  try {
18731
- r = p1(n);
18731
+ r = f1(n);
18732
18732
  } catch {
18733
18733
  throw new bi(e.status, n);
18734
18734
  }
@@ -18740,7 +18740,7 @@ async function j4(t) {
18740
18740
  }
18741
18741
  throw e.body !== null && await e.body.cancel(), new Ks(e.status);
18742
18742
  }
18743
- function p1(t) {
18743
+ function f1(t) {
18744
18744
  let e;
18745
18745
  if ("error" in t && typeof t.error == "string")
18746
18746
  e = t.error;
@@ -18764,7 +18764,7 @@ function p1(t) {
18764
18764
  }
18765
18765
  return new L4(e, n, r, i);
18766
18766
  }
18767
- class f1 extends Error {
18767
+ class h1 extends Error {
18768
18768
  constructor(e) {
18769
18769
  super("Failed to send request", {
18770
18770
  cause: e
@@ -18890,7 +18890,7 @@ function q4(t, e) {
18890
18890
  return new TextEncoder().encode(i);
18891
18891
  }
18892
18892
  const V4 = "https://appleid.apple.com/auth/authorize", z4 = "https://appleid.apple.com/auth/token";
18893
- class h1 {
18893
+ class g1 {
18894
18894
  constructor(e, n, r, i, o) {
18895
18895
  $e(this, "clientId");
18896
18896
  $e(this, "teamId");
@@ -18933,7 +18933,7 @@ class h1 {
18933
18933
  }
18934
18934
  }
18935
18935
  const H4 = "https://www.facebook.com/v16.0/dialog/oauth", K4 = "https://graph.facebook.com/v16.0/oauth/access_token";
18936
- class g1 {
18936
+ class m1 {
18937
18937
  constructor(e, n, r) {
18938
18938
  $e(this, "clientId");
18939
18939
  $e(this, "clientSecret");
@@ -18952,7 +18952,7 @@ class g1 {
18952
18952
  }
18953
18953
  }
18954
18954
  const G4 = "https://accounts.google.com/o/oauth2/v2/auth", Ih = "https://oauth2.googleapis.com/token", W4 = "https://oauth2.googleapis.com/revoke";
18955
- let m1 = class {
18955
+ let _1 = class {
18956
18956
  constructor(e, n, r) {
18957
18957
  $e(this, "client");
18958
18958
  this.client = new Mp(e, n, r);
@@ -19015,7 +19015,7 @@ function Ut(t) {
19015
19015
  function ot(t) {
19016
19016
  return t.OAUTH_API_URL || t.ISSUER;
19017
19017
  }
19018
- function _1(t) {
19018
+ function y1(t) {
19019
19019
  const { options: e } = t;
19020
19020
  if (!e || !e.client_id || !e.team_id || !e.kid || !e.app_secret)
19021
19021
  throw new Error("Missing required Apple authentication parameters");
@@ -19024,7 +19024,7 @@ function _1(t) {
19024
19024
  }
19025
19025
  async function J4(t, e) {
19026
19026
  var u, d;
19027
- const { options: n, keyArray: r } = _1(e), i = new h1(
19027
+ const { options: n, keyArray: r } = y1(e), i = new g1(
19028
19028
  n.client_id,
19029
19029
  n.team_id,
19030
19030
  n.kid,
@@ -19040,7 +19040,7 @@ async function J4(t, e) {
19040
19040
  };
19041
19041
  }
19042
19042
  async function Y4(t, e, n) {
19043
- const { options: r, keyArray: i } = _1(e), c = await new h1(
19043
+ const { options: r, keyArray: i } = y1(e), c = await new g1(
19044
19044
  r.client_id,
19045
19045
  r.team_id,
19046
19046
  r.kid,
@@ -19070,7 +19070,7 @@ async function Q4(t, e) {
19070
19070
  const { options: n } = e;
19071
19071
  if (!(n != null && n.client_id) || !n.client_secret)
19072
19072
  throw new Error("Missing required authentication parameters");
19073
- const r = new g1(
19073
+ const r = new m1(
19074
19074
  n.client_id,
19075
19075
  n.client_secret,
19076
19076
  `${ot(t.env)}callback`
@@ -19087,7 +19087,7 @@ async function ex(t, e, n) {
19087
19087
  const { options: r } = e;
19088
19088
  if (!(r != null && r.client_id) || !r.client_secret)
19089
19089
  throw new Error("Missing required authentication parameters");
19090
- const o = await new g1(
19090
+ const o = await new m1(
19091
19091
  r.client_id,
19092
19092
  r.client_secret,
19093
19093
  `${ot(t.env)}callback`
@@ -19118,7 +19118,7 @@ async function nx(t, e) {
19118
19118
  const { options: n } = e;
19119
19119
  if (!(n != null && n.client_id) || !n.client_secret)
19120
19120
  throw new Error("Missing required Google authentication parameters");
19121
- const r = new m1(
19121
+ const r = new _1(
19122
19122
  n.client_id,
19123
19123
  n.client_secret,
19124
19124
  `${ot(t.env)}callback`
@@ -19137,7 +19137,7 @@ async function rx(t, e, n, r) {
19137
19137
  const { options: i } = e;
19138
19138
  if (!(i != null && i.client_id) || !i.client_secret || !r)
19139
19139
  throw new Error("Missing required authentication parameters");
19140
- const c = await new m1(
19140
+ const c = await new _1(
19141
19141
  i.client_id,
19142
19142
  i.client_secret,
19143
19143
  `${ot(t.env)}callback`
@@ -19222,7 +19222,7 @@ const ax = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19222
19222
  getRedirect: ox,
19223
19223
  validateAuthorizationCodeAndGetUser: sx
19224
19224
  }, Symbol.toStringTag, { value: "Module" }));
19225
- function y1(t, e) {
19225
+ function w1(t, e) {
19226
19226
  const n = t.env.STRATEGIES || {}, i = {
19227
19227
  apple: Z4,
19228
19228
  facebook: tx,
@@ -19307,7 +19307,7 @@ async function Th(t, e, n, r) {
19307
19307
  auth0Client: hr(f)
19308
19308
  });
19309
19309
  }
19310
- const l = await y1(t, i.strategy).getRedirect(t, i);
19310
+ const l = await w1(t, i.strategy).getRedirect(t, i);
19311
19311
  return await t.env.data.codes.create(e.tenant.id, {
19312
19312
  login_id: o.id,
19313
19313
  code_id: l.code,
@@ -19315,7 +19315,7 @@ async function Th(t, e, n, r) {
19315
19315
  connection_id: i.id,
19316
19316
  code_verifier: l.codeVerifier,
19317
19317
  expires_at: new Date(
19318
- Date.now() + _w * 1e3
19318
+ Date.now() + yw * 1e3
19319
19319
  ).toISOString()
19320
19320
  }), t.redirect(l.redirectUrl);
19321
19321
  }
@@ -19369,7 +19369,7 @@ async function Oh(t, { code: e, state: n }) {
19369
19369
  });
19370
19370
  throw await r.data.logs.create(c.tenant.id, x), new P(403, { message: "Redirect URI not defined" });
19371
19371
  }
19372
- const d = await y1(t, l.strategy).validateAuthorizationCodeAndGetUser(
19372
+ const d = await w1(t, l.strategy).validateAuthorizationCodeAndGetUser(
19373
19373
  t,
19374
19374
  l,
19375
19375
  e,
@@ -19577,7 +19577,7 @@ const cx = new Ce().openapi(
19577
19577
  return l;
19578
19578
  }
19579
19579
  );
19580
- function w1(t, e = [], n = {}) {
19580
+ function v1(t, e = [], n = {}) {
19581
19581
  try {
19582
19582
  const r = new URL(t);
19583
19583
  return e.some((i) => {
@@ -19639,7 +19639,7 @@ const ux = new Ce().openapi(
19639
19639
  const o = n || t.req.header("referer");
19640
19640
  if (!o)
19641
19641
  return t.text("OK");
19642
- if (!w1(
19642
+ if (!v1(
19643
19643
  o,
19644
19644
  [
19645
19645
  ...r.allowed_logout_urls || [],
@@ -19693,7 +19693,7 @@ const ux = new Ce().openapi(
19693
19693
  return await t.env.data.logs.create(r.tenant.id, l), new Response("Redirecting", {
19694
19694
  status: 302,
19695
19695
  headers: {
19696
- "set-cookie": xw(
19696
+ "set-cookie": $w(
19697
19697
  r.tenant.id,
19698
19698
  t.req.header("host")
19699
19699
  ),
@@ -19752,7 +19752,7 @@ const ux = new Ce().openapi(
19752
19752
  200: {
19753
19753
  content: {
19754
19754
  "application/json": {
19755
- schema: Py
19755
+ schema: jy
19756
19756
  }
19757
19757
  },
19758
19758
  description: "List of tenants"
@@ -19886,7 +19886,7 @@ function Gs(t, e) {
19886
19886
  n |= t.charCodeAt(r) ^ e.charCodeAt(r);
19887
19887
  return n === 0;
19888
19888
  }
19889
- const v1 = a.object({
19889
+ const b1 = a.object({
19890
19890
  grant_type: a.literal("client_credentials"),
19891
19891
  scope: a.string().optional(),
19892
19892
  client_secret: a.string(),
@@ -19923,6 +19923,7 @@ const hx = a.object({
19923
19923
  }
19924
19924
  );
19925
19925
  async function gx(t, e) {
19926
+ var l;
19926
19927
  const n = await t.env.data.clients.get(e.client_id);
19927
19928
  if (!n)
19928
19929
  throw new P(403, { message: "Client not found" });
@@ -19944,15 +19945,15 @@ async function gx(t, e) {
19944
19945
  if (!i)
19945
19946
  throw new P(403, { message: "Invalid login" });
19946
19947
  if ("client_secret" in e) {
19947
- const c = await t.env.data.clients.get("DEFAULT_CLIENT");
19948
- if (!Gs(n.client_secret, e.client_secret) && !Gs(c == null ? void 0 : c.client_secret, e.client_secret))
19948
+ const u = await t.env.data.clients.get("DEFAULT_CLIENT");
19949
+ if (!Gs(n.client_secret, e.client_secret) && !Gs(u == null ? void 0 : u.client_secret, e.client_secret))
19949
19950
  throw new P(403, { message: "Invalid client credentials" });
19950
19951
  } else if (r.code_challenge && r.code_challenge_method && e.code_verifier) {
19951
- const c = await fw(
19952
+ const u = await hw(
19952
19953
  e.code_verifier,
19953
19954
  r.code_challenge_method
19954
19955
  );
19955
- if (!Gs(c, r.code_challenge))
19956
+ if (!Gs(u, r.code_challenge))
19956
19957
  throw new P(403, { message: "Invalid client credentials" });
19957
19958
  }
19958
19959
  if (r.redirect_uri && r.redirect_uri !== e.redirect_uri)
@@ -19960,11 +19961,20 @@ async function gx(t, e) {
19960
19961
  const o = await t.env.data.users.get(n.tenant.id, r.user_id);
19961
19962
  if (!o)
19962
19963
  throw new P(403, { message: "User not found" });
19963
- return await t.env.data.codes.used(n.tenant.id, e.code), {
19964
+ await t.env.data.codes.used(n.tenant.id, e.code);
19965
+ let c;
19966
+ return i.session_id && ((l = i.authParams.scope) != null && l.split(" ").includes("offline_access")) && (c = await ym(t, {
19967
+ user: o,
19968
+ client: n,
19969
+ session_id: i.session_id,
19970
+ scope: i.authParams.scope,
19971
+ audience: i.authParams.audience
19972
+ })), {
19964
19973
  user: o,
19965
19974
  client: n,
19966
19975
  loginSession: i,
19967
19976
  session_id: i.session_id,
19977
+ refresh_token: c == null ? void 0 : c.id,
19968
19978
  authParams: {
19969
19979
  ...i.authParams,
19970
19980
  // Use the state and nonce from the code as it might differ if it's a silent auth login
@@ -20089,7 +20099,7 @@ function rl(t, e, n) {
20089
20099
  }
20090
20100
  var xx = "1.2.0", $x = "1.7.35", Ph = " ext. ", Ax = /^\d+$/, wt = /* @__PURE__ */ function() {
20091
20101
  function t(e) {
20092
- nl(this, t), b1(e), this.metadata = e, x1.call(this, e);
20102
+ nl(this, t), x1(e), this.metadata = e, $1.call(this, e);
20093
20103
  }
20094
20104
  return rl(t, [{
20095
20105
  key: "getCountries",
@@ -20275,7 +20285,7 @@ var xx = "1.2.0", $x = "1.7.35", Ph = " ext. ", Ax = /^\d+$/, wt = /* @__PURE__
20275
20285
  }]), t;
20276
20286
  }(), jh = /* @__PURE__ */ function() {
20277
20287
  function t(e, n) {
20278
- nl(this, t), this.globalMetadataObject = n, this.metadata = e, x1.call(this, n.metadata);
20288
+ nl(this, t), this.globalMetadataObject = n, this.metadata = e, $1.call(this, n.metadata);
20279
20289
  }
20280
20290
  return rl(t, [{
20281
20291
  key: "callingCode",
@@ -20497,7 +20507,7 @@ function Lh(t, e) {
20497
20507
  return t[9];
20498
20508
  }
20499
20509
  }
20500
- function b1(t) {
20510
+ function x1(t) {
20501
20511
  if (!t)
20502
20512
  throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
20503
20513
  if (!xi(t) || !xi(t.countries))
@@ -20514,7 +20524,7 @@ function qp(t, e) {
20514
20524
  function Cx(t, e) {
20515
20525
  return e.countries.hasOwnProperty(t);
20516
20526
  }
20517
- function x1(t) {
20527
+ function $1(t) {
20518
20528
  var e = t.version;
20519
20529
  typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ? Bh(e, xx) === -1 ? this.v2 = !0 : Bh(e, $x) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
20520
20530
  }
@@ -20547,12 +20557,12 @@ function Tx(t, e, n) {
20547
20557
  }
20548
20558
  }
20549
20559
  if (n.possibleLengths())
20550
- return $1(t.phone || t.nationalNumber, n);
20560
+ return A1(t.phone || t.nationalNumber, n);
20551
20561
  if (t.countryCallingCode && n.isNonGeographicCallingCode(t.countryCallingCode))
20552
20562
  return !0;
20553
20563
  throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
20554
20564
  }
20555
- function $1(t, e) {
20565
+ function A1(t, e) {
20556
20566
  switch (Vp(t, e)) {
20557
20567
  case "IS_POSSIBLE":
20558
20568
  return !0;
@@ -20711,7 +20721,7 @@ function Yx(t, e, n, r) {
20711
20721
  number: t
20712
20722
  };
20713
20723
  }
20714
- function A1(t, e, n, r) {
20724
+ function k1(t, e, n, r) {
20715
20725
  if (!t)
20716
20726
  return {};
20717
20727
  var i;
@@ -20785,12 +20795,12 @@ function n$(t, e, n) {
20785
20795
  var r$ = ";ext=", ci = function(e) {
20786
20796
  return "([".concat(un, "]{1,").concat(e, "})");
20787
20797
  };
20788
- function k1(t) {
20798
+ function E1(t) {
20789
20799
  var e = "20", n = "15", r = "9", i = "6", o = "[  \\t,]*", c = "[:\\..]?[  \\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", f = "[- ]+", h = "[  \\t]*", _ = "(?:,{2}|;)", $ = r$ + ci(e), m = o + u + c + ci(e) + l, x = o + d + c + ci(r) + l, S = f + ci(i) + "#", k = h + _ + c + ci(n) + l, v = h + "(?:,)+" + c + ci(r) + l;
20790
20800
  return $ + "|" + m + "|" + x + "|" + S + "|" + k + "|" + v;
20791
20801
  }
20792
20802
  var i$ = "[" + un + "]{" + Hp + "}", o$ = "[" + Kp + "]{0,1}(?:[" + Va + "]*[" + un + "]){3,}[" + Va + un + "]*", s$ = new RegExp("^[" + Kp + "]{0,1}(?:[" + Va + "]*[" + un + "]){1,2}$", "i"), a$ = o$ + // Phone number extensions
20793
- "(?:" + k1() + ")?", c$ = new RegExp(
20803
+ "(?:" + E1() + ")?", c$ = new RegExp(
20794
20804
  // Either a short two-digit-only phone number
20795
20805
  "^" + i$ + "$|^" + a$ + "$",
20796
20806
  "i"
@@ -20980,7 +20990,7 @@ var x$ = /* @__PURE__ */ function() {
20980
20990
  var i = e;
20981
20991
  if (!k$.test(i))
20982
20992
  throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
20983
- var o = A1(i, void 0, void 0, r), c = o.countryCallingCode, l = o.number;
20993
+ var o = k1(i, void 0, void 0, r), c = o.countryCallingCode, l = o.number;
20984
20994
  if (n = l, e = c, !n)
20985
20995
  throw new Error("Invalid `number` argument passed: too short");
20986
20996
  }
@@ -20989,7 +20999,7 @@ var x$ = /* @__PURE__ */ function() {
20989
20999
  throw new TypeError("`nationalNumber` argument is required");
20990
21000
  if (typeof n != "string")
20991
21001
  throw new TypeError("`nationalNumber` argument must be a string");
20992
- b1(r);
21002
+ x1(r);
20993
21003
  var u = A$(e, r), d = u.country, f = u.countryCallingCode;
20994
21004
  this.country = d, this.countryCallingCode = f, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
20995
21005
  return r;
@@ -21108,7 +21118,7 @@ function N$(t, e) {
21108
21118
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && jo(t, e);
21109
21119
  }
21110
21120
  function C$(t) {
21111
- var e = S1();
21121
+ var e = N1();
21112
21122
  return function() {
21113
21123
  var r = Lo(t), i;
21114
21124
  if (e) {
@@ -21124,9 +21134,9 @@ function I$(t, e) {
21124
21134
  return e;
21125
21135
  if (e !== void 0)
21126
21136
  throw new TypeError("Derived constructors may only return object or undefined");
21127
- return E1(t);
21137
+ return S1(t);
21128
21138
  }
21129
- function E1(t) {
21139
+ function S1(t) {
21130
21140
  if (t === void 0)
21131
21141
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
21132
21142
  return t;
@@ -21148,14 +21158,14 @@ function Nd(t) {
21148
21158
  }, Nd(t);
21149
21159
  }
21150
21160
  function Ws(t, e, n) {
21151
- return S1() ? Ws = Reflect.construct : Ws = function(i, o, c) {
21161
+ return N1() ? Ws = Reflect.construct : Ws = function(i, o, c) {
21152
21162
  var l = [null];
21153
21163
  l.push.apply(l, o);
21154
21164
  var u = Function.bind.apply(i, l), d = new u();
21155
21165
  return c && jo(d, c.prototype), d;
21156
21166
  }, Ws.apply(null, arguments);
21157
21167
  }
21158
- function S1() {
21168
+ function N1() {
21159
21169
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
21160
21170
  if (typeof Proxy == "function") return !0;
21161
21171
  try {
@@ -21183,10 +21193,10 @@ var Tn = /* @__PURE__ */ function(t) {
21183
21193
  var e = C$(n);
21184
21194
  function n(r) {
21185
21195
  var i;
21186
- return S$(this, n), i = e.call(this, r), Object.setPrototypeOf(E1(i), n.prototype), i.name = i.constructor.name, i;
21196
+ return S$(this, n), i = e.call(this, r), Object.setPrototypeOf(S1(i), n.prototype), i.name = i.constructor.name, i;
21187
21197
  }
21188
21198
  return E$(n);
21189
- }(/* @__PURE__ */ Nd(Error)), Kh = new RegExp("(?:" + k1() + ")$", "i");
21199
+ }(/* @__PURE__ */ Nd(Error)), Kh = new RegExp("(?:" + E1() + ")$", "i");
21190
21200
  function O$(t) {
21191
21201
  var e = t.search(Kh);
21192
21202
  if (e < 0)
@@ -21363,7 +21373,7 @@ function M$(t, e) {
21363
21373
  metadata: i.metadata
21364
21374
  });
21365
21375
  }
21366
- var N1 = "+", q$ = "[\\-\\.\\(\\)]?", Jh = "([" + un + "]|" + q$ + ")", V$ = "^\\" + N1 + Jh + "*[" + un + "]" + Jh + "*$", z$ = new RegExp(V$, "g"), Cd = un, H$ = "[" + Cd + "]+((\\-)*[" + Cd + "])*", K$ = "a-zA-Z", G$ = "[" + K$ + "]+((\\-)*[" + Cd + "])*", W$ = "^(" + H$ + "\\.)*" + G$ + "\\.?$", X$ = new RegExp(W$, "g"), Yh = "tel:", Id = ";phone-context=", J$ = ";isub=";
21376
+ var C1 = "+", q$ = "[\\-\\.\\(\\)]?", Jh = "([" + un + "]|" + q$ + ")", V$ = "^\\" + C1 + Jh + "*[" + un + "]" + Jh + "*$", z$ = new RegExp(V$, "g"), Cd = un, H$ = "[" + Cd + "]+((\\-)*[" + Cd + "])*", K$ = "a-zA-Z", G$ = "[" + K$ + "]+((\\-)*[" + Cd + "])*", W$ = "^(" + H$ + "\\.)*" + G$ + "\\.?$", X$ = new RegExp(W$, "g"), Yh = "tel:", Id = ";phone-context=", J$ = ";isub=";
21367
21377
  function Y$(t) {
21368
21378
  var e = t.indexOf(Id);
21369
21379
  if (e < 0)
@@ -21385,7 +21395,7 @@ function Q$(t, e) {
21385
21395
  if (r === null)
21386
21396
  i = n(t) || "";
21387
21397
  else {
21388
- i = "", r.charAt(0) === N1 && (i += r);
21398
+ i = "", r.charAt(0) === C1 && (i += r);
21389
21399
  var o = t.indexOf(Yh), c;
21390
21400
  o >= 0 ? c = o + Yh.length : c = 0;
21391
21401
  var l = t.indexOf(Id);
@@ -21431,7 +21441,7 @@ function r5(t, e, n) {
21431
21441
  countryCallingCode: f,
21432
21442
  carrierCode: _,
21433
21443
  valid: m,
21434
- possible: m ? !0 : !!(e.extended === !0 && n.possibleLengths() && $1(d, n)),
21444
+ possible: m ? !0 : !!(e.extended === !0 && n.possibleLengths() && A1(d, n)),
21435
21445
  phone: d,
21436
21446
  ext: o
21437
21447
  } : m ? s5(u, d, o) : {};
@@ -21475,7 +21485,7 @@ function s5(t, e, n) {
21475
21485
  return n && (r.ext = n), r;
21476
21486
  }
21477
21487
  function a5(t, e, n, r) {
21478
- var i = A1(Wh(t), e, n, r.metadata), o = i.countryCallingCodeSource, c = i.countryCallingCode, l = i.number, u;
21488
+ var i = k1(Wh(t), e, n, r.metadata), o = i.countryCallingCodeSource, c = i.countryCallingCode, l = i.number, u;
21479
21489
  if (c)
21480
21490
  r.selectNumberingPlan(c);
21481
21491
  else if (l && (e || n))
@@ -21755,7 +21765,7 @@ const E5 = a.object({
21755
21765
  authParams: ia.optional(),
21756
21766
  enforceIpCheck: a.boolean().optional().default(!1)
21757
21767
  });
21758
- async function C1(t, {
21768
+ async function I1(t, {
21759
21769
  client_id: e,
21760
21770
  username: n,
21761
21771
  otp: r,
@@ -21828,7 +21838,7 @@ async function C1(t, {
21828
21838
  };
21829
21839
  }
21830
21840
  async function Wp(t, e) {
21831
- const n = await C1(t, e);
21841
+ const n = await I1(t, e);
21832
21842
  return vr(t, {
21833
21843
  authParams: n.authParams,
21834
21844
  client: n.client,
@@ -21841,7 +21851,7 @@ const sg = a.object({
21841
21851
  client_secret: a.string().optional()
21842
21852
  }), S5 = a.union([
21843
21853
  // Client credentials
21844
- v1.extend(sg.shape),
21854
+ b1.extend(sg.shape),
21845
21855
  // PKCE. This needs to be before the normal code grant as the client_secret is optional here
21846
21856
  a.object({
21847
21857
  grant_type: a.literal("authorization_code"),
@@ -21950,7 +21960,7 @@ const C5 = new Ce().openapi(
21950
21960
  case uo.ClientCredential:
21951
21961
  i = await fx(
21952
21962
  t,
21953
- v1.parse(r)
21963
+ b1.parse(r)
21954
21964
  );
21955
21965
  break;
21956
21966
  case uo.RefreshToken:
@@ -21960,7 +21970,7 @@ const C5 = new Ce().openapi(
21960
21970
  );
21961
21971
  break;
21962
21972
  case uo.OTP:
21963
- i = await C1(
21973
+ i = await I1(
21964
21974
  t,
21965
21975
  E5.parse(r)
21966
21976
  );
@@ -22015,7 +22025,7 @@ const Jp = [
22015
22025
  minDiversity: 4,
22016
22026
  minLength: 10
22017
22027
  }
22018
- ], I1 = (t, e = Jp, n = "!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~") => {
22028
+ ], T1 = (t, e = Jp, n = "!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~") => {
22019
22029
  let r = t || "";
22020
22030
  e[0].minDiversity = 0, e[0].minLength = 0;
22021
22031
  const i = [
@@ -22041,8 +22051,8 @@ const Jp = [
22041
22051
  let c = e.filter((l) => o.contains.length >= l.minDiversity).filter((l) => o.length >= l.minLength).sort((l, u) => u.id - l.id).map((l) => ({ id: l.id, value: l.value }));
22042
22052
  return Object.assign(o, c[0]), o;
22043
22053
  };
22044
- Xp.exports = { passwordStrength: I1, defaultOptions: Jp };
22045
- var I5 = Xp.exports.passwordStrength = I1;
22054
+ Xp.exports = { passwordStrength: T1, defaultOptions: Jp };
22055
+ var I5 = Xp.exports.passwordStrength = T1;
22046
22056
  Xp.exports.defaultOptions = Jp;
22047
22057
  function Yp(t) {
22048
22058
  return I5(t).id < 2 ? !1 : t.length >= 8 && // Minimum length
@@ -22066,7 +22076,7 @@ async function hs(t, e) {
22066
22076
  from: n.default_from_address || `login@${t.env.ISSUER}`
22067
22077
  });
22068
22078
  }
22069
- async function T1(t, e) {
22079
+ async function O1(t, e) {
22070
22080
  var c, l;
22071
22081
  if (!t.var.client_id)
22072
22082
  throw new P(500, { message: "Client not found" });
@@ -22089,7 +22099,7 @@ async function T1(t, e) {
22089
22099
  }
22090
22100
  });
22091
22101
  }
22092
- async function O1(t, e, n, r) {
22102
+ async function D1(t, e, n, r) {
22093
22103
  const i = await t.env.data.tenants.get(t.var.tenant_id);
22094
22104
  if (!i)
22095
22105
  throw new P(500, { message: "Tenant not found" });
@@ -22122,7 +22132,7 @@ async function O1(t, e, n, r) {
22122
22132
  }
22123
22133
  });
22124
22134
  }
22125
- async function D1(t, { to: e, code: n }) {
22135
+ async function R1(t, { to: e, code: n }) {
22126
22136
  const r = await t.env.data.tenants.get(t.var.tenant_id);
22127
22137
  if (!r)
22128
22138
  throw new P(500, { message: "Tenant not found" });
@@ -22153,7 +22163,7 @@ async function D1(t, { to: e, code: n }) {
22153
22163
  contactUs: Ae("contact_us", c),
22154
22164
  copyright: Ae("copyright", c)
22155
22165
  }
22156
- }) : i === "sms" && await T1(t, {
22166
+ }) : i === "sms" && await O1(t, {
22157
22167
  to: e,
22158
22168
  text: Ae("sms_code_text", c),
22159
22169
  code: n,
@@ -22205,7 +22215,7 @@ async function Zp(t, { to: e, code: n, authParams: r }) {
22205
22215
  }
22206
22216
  });
22207
22217
  else if (o === "sms")
22208
- await T1(t, {
22218
+ await O1(t, {
22209
22219
  to: e,
22210
22220
  text: `${Ae("link_sms_login", l)}: ${c.toString()}`,
22211
22221
  code: n,
@@ -22415,7 +22425,7 @@ const O5 = new Ce().openapi(
22415
22425
  auth0Client: hr(t.get("auth0_client"))
22416
22426
  }
22417
22427
  );
22418
- return await O1(
22428
+ return await D1(
22419
22429
  t,
22420
22430
  e,
22421
22431
  c.id,
@@ -22498,7 +22508,7 @@ const D5 = new Ce().openapi(
22498
22508
  ...o,
22499
22509
  client_id: r
22500
22510
  }
22501
- }) : await D1(t, {
22511
+ }) : await R1(t, {
22502
22512
  to: u,
22503
22513
  code: m.code_id
22504
22514
  }), t.html("OK");
@@ -22621,7 +22631,7 @@ class gi extends P {
22621
22631
  return this._code;
22622
22632
  }
22623
22633
  }
22624
- async function R1(t, e, n, r) {
22634
+ async function B1(t, e, n, r) {
22625
22635
  var $;
22626
22636
  const { data: i } = t.env, { username: o } = n;
22627
22637
  if (t.set("username", o), !o)
@@ -22711,8 +22721,8 @@ async function R1(t, e, n, r) {
22711
22721
  loginSession: r
22712
22722
  };
22713
22723
  }
22714
- async function B1(t, e, n, r, i) {
22715
- const o = await R1(t, e, n, r);
22724
+ async function P1(t, e, n, r, i) {
22725
+ const o = await B1(t, e, n, r);
22716
22726
  return vr(t, {
22717
22727
  ...o,
22718
22728
  ticketAuth: i
@@ -22742,7 +22752,7 @@ async function R5(t, e, n, r) {
22742
22752
  e.tenant.id,
22743
22753
  {
22744
22754
  expires_at: new Date(
22745
- Date.now() + vw
22755
+ Date.now() + bw
22746
22756
  ).toISOString(),
22747
22757
  authParams: {
22748
22758
  client_id: e.id,
@@ -22758,10 +22768,10 @@ async function R5(t, e, n, r) {
22758
22768
  code_type: "password_reset",
22759
22769
  login_id: f.id,
22760
22770
  expires_at: new Date(
22761
- Date.now() + ww
22771
+ Date.now() + vw
22762
22772
  ).toISOString()
22763
22773
  });
22764
- await O1(t, n, h.code_id, r);
22774
+ await D1(t, n, h.code_id, r);
22765
22775
  }
22766
22776
  const B5 = new Ce().openapi(
22767
22777
  X({
@@ -22838,7 +22848,7 @@ const B5 = new Ce().openapi(
22838
22848
  auth0Client: hr(u)
22839
22849
  }
22840
22850
  );
22841
- d = await B1(
22851
+ d = await P1(
22842
22852
  t,
22843
22853
  i,
22844
22854
  {
@@ -22969,7 +22979,7 @@ async function F5(t, e, n, r, i) {
22969
22979
  ip: t.req.header("x-real-ip")
22970
22980
  });
22971
22981
  t.set("username", f.email || f.phone_number), t.set("user_id", f.user_id);
22972
- const h = await ym(t, {
22982
+ const h = await wm(t, {
22973
22983
  user: f,
22974
22984
  client: u,
22975
22985
  loginSession: l
@@ -23200,7 +23210,7 @@ const M5 = ["email", "sms", "Username-Password-Authentication"], q5 = new Ce().o
23200
23210
  throw new P(403, {
23201
23211
  message: `Origin ${W} not allowed`
23202
23212
  });
23203
- if (H.redirect_uri && !w1(H.redirect_uri, U.callbacks || [], {
23213
+ if (H.redirect_uri && !v1(H.redirect_uri, U.callbacks || [], {
23204
23214
  allowPathWildcards: !0
23205
23215
  }))
23206
23216
  throw new P(400, {
@@ -23304,7 +23314,7 @@ var z5 = {
23304
23314
  }, an = (t, e) => {
23305
23315
  const n = new String(t);
23306
23316
  return n.isEscaped = !0, n.callbacks = e, n;
23307
- }, H5 = /[&<>'"]/, P1 = async (t, e) => {
23317
+ }, H5 = /[&<>'"]/, j1 = async (t, e) => {
23308
23318
  let n = "";
23309
23319
  e || (e = []);
23310
23320
  const r = await Promise.all(t);
@@ -23350,13 +23360,13 @@ var z5 = {
23350
23360
  e[0] += t.substring(o, i) + r, o = i + 1;
23351
23361
  }
23352
23362
  e[0] += t.substring(o, i);
23353
- }, j1 = (t) => {
23363
+ }, L1 = (t) => {
23354
23364
  const e = t.callbacks;
23355
23365
  if (!(e != null && e.length))
23356
23366
  return t;
23357
23367
  const n = [t], r = {};
23358
23368
  return e.forEach((i) => i({ phase: z5.Stringify, buffer: n, context: r })), n[0];
23359
- }, L1 = (t, ...e) => {
23369
+ }, F1 = (t, ...e) => {
23360
23370
  const n = [""];
23361
23371
  for (let r = 0, i = t.length - 1; r < i; r++) {
23362
23372
  n[0] += t[r];
@@ -23381,8 +23391,8 @@ var z5 = {
23381
23391
  }
23382
23392
  }
23383
23393
  }
23384
- return n[0] += t.at(-1), n.length === 1 ? "callbacks" in n ? an(j1(an(n[0], n.callbacks))) : an(n[0]) : P1(n, n.callbacks);
23385
- }, ef = Symbol("RENDERER"), Td = Symbol("ERROR_HANDLER"), tt = Symbol("STASH"), F1 = Symbol("INTERNAL"), K5 = Symbol("MEMO"), Ha = Symbol("PERMALINK"), ag = (t) => (t[F1] = !0, t), U1 = (t) => ({ value: e, children: n }) => {
23394
+ return n[0] += t.at(-1), n.length === 1 ? "callbacks" in n ? an(L1(an(n[0], n.callbacks))) : an(n[0]) : j1(n, n.callbacks);
23395
+ }, ef = Symbol("RENDERER"), Td = Symbol("ERROR_HANDLER"), tt = Symbol("STASH"), U1 = Symbol("INTERNAL"), K5 = Symbol("MEMO"), Ha = Symbol("PERMALINK"), ag = (t) => (t[U1] = !0, t), M1 = (t) => ({ value: e, children: n }) => {
23386
23396
  if (!n)
23387
23397
  return;
23388
23398
  const r = {
@@ -23405,21 +23415,21 @@ var z5 = {
23405
23415
  return i[Td] = (o) => {
23406
23416
  throw t.pop(), o;
23407
23417
  }, i;
23408
- }, M1 = (t) => {
23409
- const e = [t], n = U1(e);
23418
+ }, q1 = (t) => {
23419
+ const e = [t], n = M1(e);
23410
23420
  return n.values = e, n.Provider = n, Bi.push(n), n;
23411
23421
  }, Bi = [], G5 = (t) => {
23412
23422
  const e = [t], n = (r) => {
23413
23423
  e.push(r.value);
23414
23424
  let i;
23415
23425
  try {
23416
- i = r.children ? (Array.isArray(r.children) ? new H1("", {}, r.children) : r.children).toString() : "";
23426
+ i = r.children ? (Array.isArray(r.children) ? new K1("", {}, r.children) : r.children).toString() : "";
23417
23427
  } finally {
23418
23428
  e.pop();
23419
23429
  }
23420
23430
  return i instanceof Promise ? i.then((o) => an(o, o.callbacks)) : an(i);
23421
23431
  };
23422
- return n.values = e, n.Provider = n, n[ef] = U1(e), Bi.push(n), n;
23432
+ return n.values = e, n.Provider = n, n[ef] = M1(e), Bi.push(n), n;
23423
23433
  }, Yi = (t) => t.values.at(-1), Xs = {
23424
23434
  title: [],
23425
23435
  script: ["src"],
@@ -23494,7 +23504,7 @@ var z5 = {
23494
23504
  }) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, _s("style", t, e, !0)) : ms("style", t, e), Y5 = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? ms("link", t, e) : _s("link", t, e, "precedence" in e), Z5 = ({ children: t, ...e }) => {
23495
23505
  const n = tf();
23496
23506
  return n && Yi(n) === "head" ? ms("meta", t, e) : _s("meta", t, e, !1);
23497
- }, q1 = (t, { children: e, ...n }) => new cn(t, n, gs(e ?? [])), Q5 = (t) => (typeof t.action == "function" && (t.action = Ha in t.action ? t.action[Ha] : void 0), q1("form", t)), V1 = (t, e) => (typeof e.formAction == "function" && (e.formAction = Ha in e.formAction ? e.formAction[Ha] : void 0), q1(t, e)), e8 = (t) => V1("input", t), t8 = (t) => V1("button", t);
23507
+ }, V1 = (t, { children: e, ...n }) => new cn(t, n, gs(e ?? [])), Q5 = (t) => (typeof t.action == "function" && (t.action = Ha in t.action ? t.action[Ha] : void 0), V1("form", t)), z1 = (t, e) => (typeof e.formAction == "function" && (e.formAction = Ha in e.formAction ? e.formAction[Ha] : void 0), V1(t, e)), e8 = (t) => z1("input", t), t8 = (t) => z1("button", t);
23498
23508
  const Dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23499
23509
  __proto__: null,
23500
23510
  button: t8,
@@ -23515,7 +23525,7 @@ var n8 = /* @__PURE__ */ new Map([
23515
23525
  ["fetchPriority", "fetchpriority"],
23516
23526
  ["noModule", "nomodule"],
23517
23527
  ["formAction", "formaction"]
23518
- ]), Ka = (t) => n8.get(t) || t, z1 = (t, e) => {
23528
+ ]), Ka = (t) => n8.get(t) || t, H1 = (t, e) => {
23519
23529
  for (const [n, r] of Object.entries(t)) {
23520
23530
  const i = n[0] === "-" || !/[A-Z]/.test(n) ? n : n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
23521
23531
  e(
@@ -23610,7 +23620,7 @@ var n8 = /* @__PURE__ */ new Map([
23610
23620
  r.values.pop();
23611
23621
  });
23612
23622
  }
23613
- return t.length === 1 ? "callbacks" in t ? j1(an(t[0], t.callbacks)).toString() : t[0] : P1(t, t.callbacks);
23623
+ return t.length === 1 ? "callbacks" in t ? L1(an(t[0], t.callbacks)).toString() : t[0] : j1(t, t.callbacks);
23614
23624
  }
23615
23625
  toStringToBuffer(t) {
23616
23626
  const e = this.tag, n = this.props;
@@ -23621,7 +23631,7 @@ var n8 = /* @__PURE__ */ new Map([
23621
23631
  if (o = i(o), o !== "children") {
23622
23632
  if (o === "style" && typeof c == "object") {
23623
23633
  let l = "";
23624
- z1(c, (u, d) => {
23634
+ H1(c, (u, d) => {
23625
23635
  d != null && (l += `${l ? ";" : ""}${u}:${d}`);
23626
23636
  }), t[0] += ' style="', cr(l, t), t[0] += '"';
23627
23637
  } else if (typeof c == "string")
@@ -23667,7 +23677,7 @@ var n8 = /* @__PURE__ */ new Map([
23667
23677
  }
23668
23678
  else n instanceof cn ? n.toStringToBuffer(t) : typeof n == "number" || n.isEscaped ? (t[0] += n, n.callbacks && (t.callbacks || (t.callbacks = []), t.callbacks.push(...n.callbacks))) : cr(n, t);
23669
23679
  }
23670
- }, H1 = class extends cn {
23680
+ }, K1 = class extends cn {
23671
23681
  toStringToBuffer(t) {
23672
23682
  nf(this.children, t);
23673
23683
  }
@@ -23698,7 +23708,7 @@ var n8 = /* @__PURE__ */ new Map([
23698
23708
  ])) : new cn(t, e, n);
23699
23709
  }, rf = ({
23700
23710
  children: t
23701
- }) => new H1(
23711
+ }) => new K1(
23702
23712
  "",
23703
23713
  {
23704
23714
  children: t
@@ -23735,7 +23745,7 @@ const dg = {
23735
23745
  termsAndConditionsUrl: "https://store.sesamy.com/pages/terms-of-service",
23736
23746
  manageSubscriptionsUrl: "https://account.sesamy.com/manage-subscriptions"
23737
23747
  };
23738
- async function K1(t, e, n) {
23748
+ async function G1(t, e, n) {
23739
23749
  if (!n && !e)
23740
23750
  return dg;
23741
23751
  const r = n || e;
@@ -23746,7 +23756,7 @@ async function K1(t, e, n) {
23746
23756
  if (!i.ok)
23747
23757
  throw new Error("Failed to fetch vendor settings");
23748
23758
  const o = await i.json();
23749
- return Sy.parse(o);
23759
+ return Ny.parse(o);
23750
23760
  } catch (i) {
23751
23761
  return console.error(i), dg;
23752
23762
  }
@@ -23776,7 +23786,7 @@ async function Ze(t, e, n = !1) {
23776
23786
  throw f.searchParams.set("error", "access_denied"), f.searchParams.set("error_description", "Login session closed"), i.authParams.state && f.searchParams.set("state", i.authParams.state), new fs(f.toString(), 302);
23777
23787
  }
23778
23788
  } else throw new P(400, { message: "Tenant not found" });
23779
- const l = await K1(
23789
+ const l = await G1(
23780
23790
  r,
23781
23791
  o.id,
23782
23792
  i.authParams.vendor_id
@@ -23831,7 +23841,7 @@ const l8 = ({ vendorSettings: t }) => t != null && t.logoUrl ? /* @__PURE__ */ A
23831
23841
  )
23832
23842
  ] }) });
23833
23843
  };
23834
- var G1 = { exports: {} };
23844
+ var W1 = { exports: {} };
23835
23845
  /*!
23836
23846
  Copyright (c) 2018 Jed Watson.
23837
23847
  Licensed under the MIT License (MIT), see
@@ -23866,8 +23876,8 @@ var G1 = { exports: {} };
23866
23876
  }
23867
23877
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
23868
23878
  })();
23869
- })(G1);
23870
- var d8 = G1.exports;
23879
+ })(W1);
23880
+ var d8 = W1.exports;
23871
23881
  const gr = /* @__PURE__ */ rm(d8), p8 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", pt = ({ name: t, size: e, className: n = "" }) => {
23872
23882
  const r = p8(e);
23873
23883
  return /* @__PURE__ */ A("span", { className: gr(`uicon-${t}`, n, r) });
@@ -23965,7 +23975,7 @@ const g8 = (t) => {
23965
23975
  ] }) })
23966
23976
  }
23967
23977
  ) }),
23968
- L1(fg || (fg = h8([`
23978
+ F1(fg || (fg = h8([`
23969
23979
  <script>
23970
23980
  // Add loading class to submit button on form submission
23971
23981
  var form = document.getElementById("form");
@@ -24421,7 +24431,7 @@ const g8 = (t) => {
24421
24431
  to: u,
24422
24432
  code: $.code_id,
24423
24433
  authParams: o.authParams
24424
- }) : await D1(t, {
24434
+ }) : await R1(t, {
24425
24435
  to: u,
24426
24436
  code: $.code_id
24427
24437
  }), t.redirect(`/u/enter-code?state=${n}`);
@@ -24473,7 +24483,7 @@ var Uo = "_hp", x8 = {
24473
24483
  typeof o == "function" ? l = o(t) || (() => o(null)) : o && "current" in o && (o.current = t, l = () => o.current = null), Dd.set(t, l);
24474
24484
  } else if (i === "style") {
24475
24485
  const l = t.style;
24476
- typeof o == "string" ? l.cssText = o : (l.cssText = "", o != null && z1(o, l.setProperty.bind(l)));
24486
+ typeof o == "string" ? l.cssText = o : (l.cssText = "", o != null && H1(o, l.setProperty.bind(l)));
24477
24487
  } else {
24478
24488
  if (i === "value") {
24479
24489
  const u = t.nodeName;
@@ -24512,16 +24522,16 @@ var Uo = "_hp", x8 = {
24512
24522
  } finally {
24513
24523
  Mo.pop();
24514
24524
  }
24515
- }, W1 = (t, e, n, r, i) => {
24525
+ }, X1 = (t, e, n, r, i) => {
24516
24526
  var o, c;
24517
- (o = t.vR) != null && o.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((c = t[tt][1][Z1]) == null || c.forEach((l) => i.push(l))), t.vC.forEach((l) => {
24527
+ (o = t.vR) != null && o.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((c = t[tt][1][Q1]) == null || c.forEach((l) => i.push(l))), t.vC.forEach((l) => {
24518
24528
  var u;
24519
24529
  if (On(l))
24520
24530
  n.push(l);
24521
24531
  else if (typeof l.tag == "function" || l.tag === "") {
24522
24532
  l.c = e;
24523
24533
  const d = n.length;
24524
- if (W1(l, e, n, r, i), l.s) {
24534
+ if (X1(l, e, n, r, i), l.s) {
24525
24535
  for (let f = d; f < n.length; f++)
24526
24536
  n[f].s = !0;
24527
24537
  l.s = !1;
@@ -24536,24 +24546,24 @@ var Uo = "_hp", x8 = {
24536
24546
  if (t.tag !== Uo && t.e)
24537
24547
  return t.e;
24538
24548
  }
24539
- }, X1 = (t) => {
24549
+ }, J1 = (t) => {
24540
24550
  var e, n, r, i, o, c;
24541
- On(t) || ((n = (e = t[tt]) == null ? void 0 : e[1][Z1]) == null || n.forEach((l) => {
24551
+ On(t) || ((n = (e = t[tt]) == null ? void 0 : e[1][Q1]) == null || n.forEach((l) => {
24542
24552
  var u;
24543
24553
  return (u = l[2]) == null ? void 0 : u.call(l);
24544
- }), (r = Dd.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (o = t.vC) == null || o.forEach(X1)), t.p || ((c = t.e) == null || c.remove(), delete t.e), typeof t.tag == "function" && (po.delete(t), Zs.delete(t), delete t[tt][3], t.a = !0);
24545
- }, J1 = (t, e, n) => {
24546
- t.c = e, Y1(t, e, n);
24554
+ }), (r = Dd.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (o = t.vC) == null || o.forEach(J1)), t.p || ((c = t.e) == null || c.remove(), delete t.e), typeof t.tag == "function" && (po.delete(t), Zs.delete(t), delete t[tt][3], t.a = !0);
24555
+ }, Y1 = (t, e, n) => {
24556
+ t.c = e, Z1(t, e, n);
24547
24557
  }, mg = (t, e) => {
24548
24558
  if (e) {
24549
24559
  for (let n = 0, r = t.length; n < r; n++)
24550
24560
  if (t[n] === e)
24551
24561
  return n;
24552
24562
  }
24553
- }, _g = Symbol(), Y1 = (t, e, n) => {
24563
+ }, _g = Symbol(), Z1 = (t, e, n) => {
24554
24564
  var d;
24555
24565
  const r = [], i = [], o = [];
24556
- W1(t, e, r, i, o), i.forEach(X1);
24566
+ X1(t, e, r, i, o), i.forEach(J1);
24557
24567
  const c = n ? void 0 : e.childNodes;
24558
24568
  let l, u = null;
24559
24569
  if (n)
@@ -24571,7 +24581,7 @@ var Uo = "_hp", x8 = {
24571
24581
  $ = _.e, _.s = !1;
24572
24582
  else {
24573
24583
  const m = n || !_.e;
24574
- On(_) ? (_.e && _.d && (_.e.textContent = _.t), _.d = !1, $ = _.e || (_.e = document.createTextNode(_.t))) : ($ = _.e || (_.e = _.n ? document.createElementNS(_.n, _.tag) : document.createElement(_.tag)), k8($, _.props, _.pP), Y1(_, $, m));
24584
+ On(_) ? (_.e && _.d && (_.e.textContent = _.t), _.d = !1, $ = _.e || (_.e = document.createTextNode(_.t))) : ($ = _.e || (_.e = _.n ? document.createElementNS(_.n, _.tag) : document.createElement(_.tag)), k8($, _.props, _.pP), Z1(_, $, m));
24575
24585
  }
24576
24586
  _.tag === Uo ? l-- : n ? $.parentNode || e.appendChild($) : c[l] !== $ && c[l - 1] !== $ && (c[l + 1] === $ ? e.appendChild(c[l]) : e.insertBefore($, u || c[l] || null));
24577
24587
  }
@@ -24596,7 +24606,7 @@ var Uo = "_hp", x8 = {
24596
24606
  Array.isArray(n[m]) && n.splice(m, 1, ...n[m].flat());
24597
24607
  let x = N8(n[m]);
24598
24608
  if (x) {
24599
- typeof x.tag == "function" && !x.tag[F1] && (Bi.length > 0 && (x[tt][2] = Bi.map((k) => [k, k.values.at(-1)])), (c = t[5]) != null && c.length && (x[tt][3] = t[5].at(-1)));
24609
+ typeof x.tag == "function" && !x.tag[U1] && (Bi.length > 0 && (x[tt][2] = Bi.map((k) => [k, k.values.at(-1)])), (c = t[5]) != null && c.length && (x[tt][3] = t[5].at(-1)));
24600
24610
  let S;
24601
24611
  if (h && h.length) {
24602
24612
  const k = h.findIndex(
@@ -24644,7 +24654,7 @@ var Uo = "_hp", x8 = {
24644
24654
  if (t[0] === 1)
24645
24655
  t[1] = !0;
24646
24656
  else if (Rd(t, m, [k]), ($.length === 1 || t !== _) && m.c) {
24647
- J1(m, m.c, !1);
24657
+ Y1(m, m.c, !1);
24648
24658
  return;
24649
24659
  }
24650
24660
  throw _g;
@@ -24670,7 +24680,7 @@ var Uo = "_hp", x8 = {
24670
24680
  t[tt] = [0, []];
24671
24681
  else {
24672
24682
  const e = $8[t.tag];
24673
- e && (Pi || (Pi = M1("")), t.props.children = [
24683
+ e && (Pi || (Pi = q1("")), t.props.children = [
24674
24684
  {
24675
24685
  tag: Pi,
24676
24686
  props: {
@@ -24698,7 +24708,7 @@ var Uo = "_hp", x8 = {
24698
24708
  }
24699
24709
  (r = e[tt][2]) == null || r.forEach(([i]) => {
24700
24710
  i.values.pop();
24701
- }), (t[0] !== 1 || !t[1]) && J1(e, e.c, !1);
24711
+ }), (t[0] !== 1 || !t[1]) && Y1(e, e.c, !1);
24702
24712
  }, po = /* @__PURE__ */ new WeakMap(), wg = [], Qs = async (t, e) => {
24703
24713
  t[5] || (t[5] = []);
24704
24714
  const n = po.get(e);
@@ -24728,7 +24738,7 @@ var Uo = "_hp", x8 = {
24728
24738
  key: n,
24729
24739
  e,
24730
24740
  p: 1
24731
- }), jl = 0, Z1 = 1, Ll = 2, Fl = 3, Ul = /* @__PURE__ */ new WeakMap(), Q1 = (t, e) => !t || !e || t.length !== e.length || e.some((n, r) => n !== t[r]), I8 = void 0, vg = [], T8 = (t) => {
24741
+ }), jl = 0, Q1 = 1, Ll = 2, Fl = 3, Ul = /* @__PURE__ */ new WeakMap(), e_ = (t, e) => !t || !e || t.length !== e.length || e.some((n, r) => n !== t[r]), I8 = void 0, vg = [], T8 = (t) => {
24732
24742
  var c;
24733
24743
  const e = () => typeof t == "function" ? t() : t, n = Mo.at(-1);
24734
24744
  if (!n)
@@ -24765,7 +24775,7 @@ var Uo = "_hp", x8 = {
24765
24775
  if (!n)
24766
24776
  return t;
24767
24777
  const [, r] = n, i = (l = r[tt][1])[Ll] || (l[Ll] = []), o = r[tt][0]++, c = i[o];
24768
- return Q1(c == null ? void 0 : c[1], e) ? i[o] = [t, e] : t = i[o][0], t;
24778
+ return e_(c == null ? void 0 : c[1], e) ? i[o] = [t, e] : t = i[o][0], t;
24769
24779
  }, O8 = (t) => {
24770
24780
  const e = Ul.get(t);
24771
24781
  if (e) {
@@ -24783,8 +24793,8 @@ var Uo = "_hp", x8 = {
24783
24793
  if (!n)
24784
24794
  return t();
24785
24795
  const [, r] = n, i = (l = r[tt][1])[Fl] || (l[Fl] = []), o = r[tt][0]++, c = i[o];
24786
- return Q1(c == null ? void 0 : c[1], e) && (i[o] = [t(), e]), i[o][0];
24787
- }, R8 = M1({
24796
+ return e_(c == null ? void 0 : c[1], e) && (i[o] = [t(), e]), i[o][0];
24797
+ }, R8 = q1({
24788
24798
  pending: !1,
24789
24799
  data: null,
24790
24800
  method: null,
@@ -24925,12 +24935,12 @@ var Uo = "_hp", x8 = {
24925
24935
  props: t,
24926
24936
  type: "link",
24927
24937
  ref: t.ref
24928
- } : ys("link", t, 1, "precedence" in t, !0), U8 = (t) => ys("meta", t, void 0, !1, !1), e_ = Symbol(), M8 = (t) => {
24938
+ } : ys("link", t, 1, "precedence" in t, !0), U8 = (t) => ys("meta", t, void 0, !1, !1), t_ = Symbol(), M8 = (t) => {
24929
24939
  const { action: e, ...n } = t;
24930
24940
  typeof e != "function" && (n.action = e);
24931
24941
  const [r, i] = T8([null, !1]), o = of(
24932
24942
  async (d) => {
24933
- const f = d.isTrusted ? e : d.detail[e_];
24943
+ const f = d.isTrusted ? e : d.detail[t_];
24934
24944
  if (typeof f != "function")
24935
24945
  return;
24936
24946
  d.preventDefault();
@@ -24964,14 +24974,14 @@ var Uo = "_hp", x8 = {
24964
24974
  },
24965
24975
  f: u
24966
24976
  };
24967
- }, t_ = (t, {
24977
+ }, n_ = (t, {
24968
24978
  formAction: e,
24969
24979
  ...n
24970
24980
  }) => {
24971
24981
  if (typeof e == "function") {
24972
24982
  const r = of((i) => {
24973
24983
  i.preventDefault(), i.currentTarget.form.dispatchEvent(
24974
- new CustomEvent("submit", { detail: { [e_]: e } })
24984
+ new CustomEvent("submit", { detail: { [t_]: e } })
24975
24985
  );
24976
24986
  }, []);
24977
24987
  n.ref = sf(n.ref, (i) => (i.addEventListener("click", r), () => {
@@ -24984,7 +24994,7 @@ var Uo = "_hp", x8 = {
24984
24994
  type: t,
24985
24995
  ref: n.ref
24986
24996
  };
24987
- }, q8 = (t) => t_("input", t), V8 = (t) => t_("button", t);
24997
+ }, q8 = (t) => n_("input", t), V8 = (t) => n_("button", t);
24988
24998
  Object.assign(Od, {
24989
24999
  title: P8,
24990
25000
  script: j8,
@@ -25411,7 +25421,7 @@ const Bs = (t) => {
25411
25421
  ] }),
25412
25422
  /* @__PURE__ */ A(An, { state: i })
25413
25423
  ] }),
25414
- L1(kg || (kg = X8([`
25424
+ F1(kg || (kg = X8([`
25415
25425
  <script>
25416
25426
  // Show password toggle
25417
25427
  var passwordInputs = document.querySelectorAll(".password-input");
@@ -25522,7 +25532,7 @@ const Bs = (t) => {
25522
25532
  if (!l)
25523
25533
  throw new P(400, { message: "Username required" });
25524
25534
  try {
25525
- const u = await B1(
25535
+ const u = await P1(
25526
25536
  t,
25527
25537
  o,
25528
25538
  {
@@ -25814,7 +25824,7 @@ const Bs = (t) => {
25814
25824
  }
25815
25825
  )
25816
25826
  );
25817
- const m = await R1(
25827
+ const m = await B1(
25818
25828
  t,
25819
25829
  o,
25820
25830
  {
@@ -26404,7 +26414,7 @@ const Bs = (t) => {
26404
26414
  code_type: "email_verification",
26405
26415
  login_id: n.id,
26406
26416
  expires_at: new Date(
26407
- Date.now() + gw
26417
+ Date.now() + mw
26408
26418
  ).toISOString()
26409
26419
  });
26410
26420
  return await T5(
@@ -26488,7 +26498,7 @@ const Bs = (t) => {
26488
26498
  }
26489
26499
  }),
26490
26500
  async (t) => {
26491
- const e = await K1(t.env), { state: n } = t.req.valid("query");
26501
+ const e = await G1(t.env), { state: n } = t.req.valid("query");
26492
26502
  return t.html(
26493
26503
  /* @__PURE__ */ A(
26494
26504
  Jr,
@@ -26654,14 +26664,14 @@ const Bs = (t) => {
26654
26664
  )
26655
26665
  );
26656
26666
  }
26657
- ), n_ = `
26667
+ ), r_ = `
26658
26668
  @font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:400;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Regular.woff2) format("woff2")}@font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:500;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Medium.woff2) format("woff2")}@font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:600;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Bold.woff2) format("woff2")}@font-face{font-family:uicon;src:url(https://login2.sesamy.com/_next/static/media/uicon.0b00e08a.woff2)}[class*=" uicon-"],[class^=uicon-]{font-family:uicon!important;font-size:inherit;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.uicon-apple:before{content:"\\ea01"}.uicon-arrow-down:before{content:"\\ea02"}.uicon-arrow-left:before{content:"\\ea03"}.uicon-arrow-right:before{content:"\\ea04"}.uicon-arrow-up:before{content:"\\ea05"}.uicon-facebook:before{content:"\\ea06"}.uicon-google:before{content:"\\ea07"}.uicon-info-bubble:before{content:"\\ea08"}.uicon-info:before{content:"\\ea09"}.uicon-sesamy:before{content:"\\ea0a"}.uicon-spinner-circle:before{content:"\\ea0b"}.uicon-spinner-inner:before{content:"\\ea0c"}
26659
26669
 
26660
26670
  /*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #bfbcd7;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:KHTeka,Helvetica Neue,HelveticaNeue,TeX Gyre Heros,TeXGyreHeros,FreeSans,Nimbus Sans L,Liberation Sans,Arimo,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#4b4a58;opacity:1}input::placeholder,textarea::placeholder{color:#4b4a58;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}body,html{height:100%}body{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity));font-size:1rem;letter-spacing:.0125rem;line-height:120%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:1280px){body{font-size:1.125rem;line-height:120%}}:is(.dark body){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}button,input,optgroup,select,textarea{font-size:.875rem;letter-spacing:.0125rem;line-height:120%}@media (min-width:1280px){button,input,optgroup,select,textarea{font-size:1rem;line-height:120%}}h1{font-size:1.5rem;font-weight:500;line-height:120%}@media (min-width:1280px){h1{font-size:2rem;line-height:120%}}@media (min-width:640px){h1{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}@media (min-width:1280px){h1{font-size:3.5rem;letter-spacing:-.0625rem;line-height:100%}}h2{font-size:1.25rem;font-weight:500;line-height:120%}@media (min-width:1280px){h2{font-size:1.5rem;line-height:120%}}@media (min-width:640px){h2{font-size:2rem;letter-spacing:0;line-height:120%}}@media (min-width:1280px){h2{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}h3{font-size:1.125rem;font-weight:500;line-height:120%}@media (min-width:1280px){h3{font-size:1.25rem;line-height:120%}}@media (min-width:640px){h3{font-size:1.5rem;line-height:120%}}@media (min-width:1280px){h3{font-size:2rem;line-height:120%}}h4{font-size:1rem;font-weight:500;line-height:120%}@media (min-width:1280px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:640px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:1280px){h4{font-size:1.5rem;line-height:120%}}h5{font-size:.875rem;font-weight:500;line-height:120%}@media (min-width:1280px){h5{font-size:1rem;line-height:120%}}@media (min-width:640px){h5{font-size:1rem;line-height:120%}}@media (min-width:1280px){h5{font-size:1.125rem;line-height:120%}}h6{font-size:.75rem;font-weight:500;line-height:135%}@media (min-width:1280px){h6{font-size:.875rem;line-height:120%}}@media (min-width:640px){h6{font-size:.875rem;line-height:120%}}@media (min-width:1280px){h6{font-size:1rem;line-height:120%}}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1920px){.container{max-width:1920px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.\\!hidden{display:none!important}.hidden{display:none}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\\[calc\\(100vh-83px\\)\\]{min-height:calc(100vh - 83px)}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[calc\\(100\\%-theme\\(space\\.2\\)-theme\\(space\\.2\\)\\)\\]{width:calc(100% - 1rem)}.w-full{width:100%}.max-w-\\[1295px\\]{max-width:1295px}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.\\!flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1.25rem}.rounded-lg{border-radius:.625rem}.rounded-r-lg{border-bottom-right-radius:.625rem;border-top-right-radius:.625rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(248 249 251/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(191 188 215/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(136 134 159/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}.border-red{--tw-border-opacity:1;border-color:rgb(252 90 90/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.bg-primary{background-color:var(--primary-color)}.bg-primaryHover{background-color:var(--primary-hover)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.px-0{padding-left:0;padding-right:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pt-2{padding-top:.5rem}.pt-2\\.5{padding-top:.625rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.indent-\\[5px\\]{text-indent:5px}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\\!text-base{font-size:1rem!important;line-height:120%!important}.text-2xl{font-size:1.5rem;line-height:120%}.text-3xl{font-size:2rem;line-height:120%}.text-base{font-size:1rem;line-height:120%}.text-lg{font-size:1.125rem;line-height:120%}.text-sm{font-size:.875rem;line-height:120%}.text-xl{font-size:1.25rem;line-height:120%}.text-xs{font-size:.75rem;line-height:135%}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-\\[0\\]{line-height:0}.leading-tight{line-height:1.25}.text-\\[\\#1196F5\\]{--tw-text-opacity:1;color:rgb(17 150 245/var(--tw-text-opacity))}.text-\\[\\#B2B2B2\\]{--tw-text-opacity:1;color:rgb(178 178 178/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(191 188 215/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(75 74 88/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(30 30 39/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(8 8 14/var(--tw-text-opacity))}.text-primary{color:var(--primary-color)}.text-red{--tw-text-opacity:1;color:rgb(252 90 90/var(--tw-text-opacity))}.text-textOnPrimary{color:var(--text-on-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.accent-\\[\\#4F2D7F\\]{accent-color:#4f2d7f}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.row-up-left{align-content:flex-start;justify-content:flex-start}.row,.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap}.row{align-content:center;align-items:center;justify-content:center}.column-left{align-items:flex-start}.column,.column-left{display:flex;flex-direction:column;justify-content:center}.column{align-items:center}@media (min-width:1280px){.text-5xl{font-size:5.125rem;letter-spacing:-.125rem;line-height:100%}.text-4xl{font-size:3.5rem}.text-3xl,.text-4xl{letter-spacing:-.0625rem;line-height:100%}.text-3xl{font-size:3rem}.text-2xl{font-size:2rem}.text-2xl,.text-xl{line-height:120%}.text-xl{font-size:1.5rem}.text-lg{font-size:1.25rem}.text-base,.text-lg{line-height:120%}.text-base{font-size:1.125rem}.text-sm{font-size:1rem}.text-sm,.text-xs{line-height:120%}.text-xs{font-size:.875rem}}:root{--primary-color:#7d68f4;--primary-hover:#7e69f4;--text-on-primary:#fff}svg{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}*,:after,:before{text-underline-offset:4px}input[type=number],input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield!important}.btn.is-loading{cursor:not-allowed;opacity:.4;pointer-events:none}.btn .btn-spinner,.btn.is-loading .btn-label{opacity:0;visibility:hidden}.btn.is-loading .btn-spinner{opacity:1;visibility:visible}[class*=" uicon-"],[class^=uicon-]{letter-spacing:0;line-height:100%}.placeholder\\:text-gray-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.placeholder\\:text-gray-300::placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.hover\\:bg-black\\/5:hover{background-color:rgba(0,0,0,.05)}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.hover\\:bg-primaryHover:hover{background-color:var(--primary-hover)}.hover\\:text-primaryHover:hover{color:var(--primary-hover)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-2:focus,.focus\\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-primary:focus{--tw-ring-color:var(--primary-color)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}:is(.dark .dark\\:border-gray-400){--tw-border-opacity:1;border-color:rgb(75 74 88/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-500){--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-600){--tw-border-opacity:1;border-color:rgb(40 40 52/var(--tw-border-opacity))}:is(.dark .dark\\:bg-black){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-600){--tw-bg-opacity:1;background-color:rgb(40 40 52/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity:1;background-color:rgb(20 20 26/var(--tw-bg-opacity))}:is(.dark .dark\\:text-\\[\\#201a41\\]){--tw-text-opacity:1;color:rgb(32 26 65/var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-300){--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:bg-black\\/90:hover){background-color:rgba(0,0,0,.9)}:is(.dark .dark\\:focus\\:ring-offset-gray-900:focus){--tw-ring-offset-color:#08080e}@media (min-width:640px){.sm\\:absolute{position:absolute}.sm\\:left-4{left:1rem}.sm\\:top-1\\/2{top:50%}.sm\\:mt-4{margin-top:1rem}.sm\\:inline{display:inline}.sm\\:h-6{height:1.5rem}.sm\\:min-h-\\[700px\\]{min-height:700px}.sm\\:w-6{width:1.5rem}.sm\\:w-\\[calc\\(100\\%-theme\\(space\\.16\\)-theme\\(space\\.16\\)\\)\\]{width:calc(100% - 8rem)}.sm\\:w-auto{width:auto}.sm\\:max-w-md{max-width:28rem}.sm\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-col{flex-direction:column}.sm\\:justify-normal{justify-content:normal}.sm\\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.sm\\:bg-fixed{background-attachment:fixed}.sm\\:bg-left-top{background-position:0 0}.sm\\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\\:px-14{padding-left:3.5rem;padding-right:3.5rem}.sm\\:py-14{padding-bottom:3.5rem;padding-top:3.5rem}.sm\\:py-4{padding-bottom:1rem;padding-top:1rem}.sm\\:pt-16{padding-top:4rem}.sm\\:text-2xl{font-size:1.5rem;line-height:120%}.sm\\:text-base{font-size:1rem;line-height:120%}}@media (min-width:1280px){.md\\:min-w-\\[448px\\]{min-width:448px}.md\\:text-3xl{font-size:2rem;line-height:120%}.md\\:text-base{font-size:1rem;line-height:120%}.md\\:text-sm{font-size:.875rem;line-height:120%}.md\\:text-xs{font-size:.75rem;line-height:135%}}@media (max-height:900px) and (min-width:640px){.short\\:static{position:static}.short\\:left-auto{left:auto}.short\\:top-auto{top:auto}.short\\:hidden{display:none}.short\\:h-5{height:1.25rem}.short\\:min-h-\\[558px\\]{min-height:558px}.short\\:w-5{width:1.25rem}.short\\:translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.short\\:flex-row{flex-direction:row}.short\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.short\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.short\\:px-0{padding-left:0;padding-right:0}.short\\:py-3{padding-bottom:.75rem;padding-top:.75rem}.short\\:text-xl{font-size:1.25rem;line-height:120%}}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:0}.\\[\\&_h1\\]\\:mb-6 h1,.\\[\\&_h2\\]\\:mb-6 h2{margin-bottom:1.5rem}`;
26661
26671
  function Rz() {
26662
26672
  if (typeof document < "u") {
26663
26673
  const t = document.createElement("style");
26664
- t.innerHTML = n_, t.setAttribute("data-authhero-tailwind", ""), document.head.appendChild(t);
26674
+ t.innerHTML = r_, t.setAttribute("data-authhero-tailwind", ""), document.head.appendChild(t);
26665
26675
  }
26666
26676
  }
26667
26677
  const f6 = (t) => /* @__PURE__ */ A(
@@ -26942,7 +26952,7 @@ function y6(t) {
26942
26952
  });
26943
26953
  return r.env.data = Yc(r, c), i();
26944
26954
  }).use(Qc).use(Zc), e.get("/css/tailwind.css", async (r) => {
26945
- const i = n_;
26955
+ const i = r_;
26946
26956
  return r.text(i, 200, {
26947
26957
  "content-type": "text/css; charset=utf-8"
26948
26958
  });
@@ -29399,8 +29409,8 @@ var $6 = {}, Yr = {}, ws = {}, ol = {};
29399
29409
  }
29400
29410
  function oe(Z) {
29401
29411
  return function(Oe) {
29402
- var xt = Array.prototype.slice.call(arguments, 1).map(function(M_) {
29403
- return M_.evaluate(Oe);
29412
+ var xt = Array.prototype.slice.call(arguments, 1).map(function(q_) {
29413
+ return q_.evaluate(Oe);
29404
29414
  }), tr = Z.apply(this, [].concat(Oe, xt));
29405
29415
  return Te(tr);
29406
29416
  };
@@ -29432,7 +29442,7 @@ var $6 = {}, Yr = {}, ws = {}, ol = {};
29432
29442
  }
29433
29443
  };
29434
29444
  }
29435
- function P_(Z) {
29445
+ function j_(Z) {
29436
29446
  if (Z) {
29437
29447
  if (typeof Z.getVariable == "function")
29438
29448
  return er(Z.getVariable.bind(Z));
@@ -29448,17 +29458,17 @@ var $6 = {}, Yr = {}, ws = {}, ol = {};
29448
29458
  function wf(Z, Oe, xt) {
29449
29459
  Z in xt && (Oe[Z] = xt[Z]);
29450
29460
  }
29451
- function j_(Z) {
29461
+ function L_(Z) {
29452
29462
  var Oe = new Vt();
29453
- return Z ? (Oe.namespaceResolver = ye(Z.namespaces), Oe.functionResolver = Qn(Z.functions), Oe.variableResolver = P_(Z.variables), Oe.expressionContextNode = Z.node, wf("allowAnyNamespaceForNoPrefix", Oe, Z), wf("isHtml", Oe, Z)) : Oe.namespaceResolver = p, Oe;
29463
+ return Z ? (Oe.namespaceResolver = ye(Z.namespaces), Oe.functionResolver = Qn(Z.functions), Oe.variableResolver = j_(Z.variables), Oe.expressionContextNode = Z.node, wf("allowAnyNamespaceForNoPrefix", Oe, Z), wf("isHtml", Oe, Z)) : Oe.namespaceResolver = p, Oe;
29454
29464
  }
29455
- function L_(Z, Oe) {
29456
- var xt = j_(Oe);
29465
+ function F_(Z, Oe) {
29466
+ var xt = L_(Oe);
29457
29467
  return Z.evaluate(xt);
29458
29468
  }
29459
- var F_ = {
29469
+ var U_ = {
29460
29470
  evaluate: function(Z) {
29461
- return L_(this.expression, Z);
29471
+ return F_(this.expression, Z);
29462
29472
  },
29463
29473
  evaluateNumber: function(Z) {
29464
29474
  return this.evaluate(Z).numberValue();
@@ -29479,15 +29489,15 @@ var $6 = {}, Yr = {}, ws = {}, ol = {};
29479
29489
  return this.select(Z)[0];
29480
29490
  }
29481
29491
  };
29482
- function U_(Z) {
29492
+ function M_(Z) {
29483
29493
  var Oe = s.parse(Z);
29484
- return Object.create(F_, {
29494
+ return Object.create(U_, {
29485
29495
  expression: {
29486
29496
  value: Oe
29487
29497
  }
29488
29498
  });
29489
29499
  }
29490
- n.parse = U_;
29500
+ n.parse = M_;
29491
29501
  }(), S(
29492
29502
  n,
29493
29503
  {
@@ -29586,12 +29596,12 @@ function A6(t) {
29586
29596
  throw new Error(`Value is not a Node-like object. Received: ${t}`);
29587
29597
  }
29588
29598
  xe.assertIsNodeLike = A6;
29589
- function r_(t) {
29599
+ function i_(t) {
29590
29600
  return Array.isArray(t) && t.every(sl);
29591
29601
  }
29592
- xe.isArrayOfNodes = r_;
29602
+ xe.isArrayOfNodes = i_;
29593
29603
  function k6(t) {
29594
- if (!r_(t))
29604
+ if (!i_(t))
29595
29605
  throw new Error("Value is not an array of Nodes");
29596
29606
  }
29597
29607
  xe.assertIsArrayOfNodes = k6;
@@ -29797,7 +29807,7 @@ ${W.replace(/ /g, "")}
29797
29807
  Object.defineProperty(Yr, "__esModule", { value: !0 });
29798
29808
  Yr.C14nCanonicalizationWithComments = Yr.C14nCanonicalization = void 0;
29799
29809
  const Ps = ws, ql = xe;
29800
- class i_ {
29810
+ class o_ {
29801
29811
  constructor() {
29802
29812
  this.includeComments = !1, this.includeComments = !1;
29803
29813
  }
@@ -29915,8 +29925,8 @@ class i_ {
29915
29925
  return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
29916
29926
  }
29917
29927
  }
29918
- Yr.C14nCanonicalization = i_;
29919
- class z6 extends i_ {
29928
+ Yr.C14nCanonicalization = o_;
29929
+ class z6 extends o_ {
29920
29930
  constructor() {
29921
29931
  super(), this.includeComments = !0;
29922
29932
  }
@@ -29935,7 +29945,7 @@ function zl(t, e, n) {
29935
29945
  i.prefix === e && i.namespaceURI === n && (r = !0);
29936
29946
  }), r;
29937
29947
  }
29938
- class o_ {
29948
+ class s_ {
29939
29949
  constructor() {
29940
29950
  this.includeComments = !1, this.includeComments = !1;
29941
29951
  }
@@ -30064,8 +30074,8 @@ class o_ {
30064
30074
  return "http://www.w3.org/2001/10/xml-exc-c14n#";
30065
30075
  }
30066
30076
  }
30067
- Zr.ExclusiveCanonicalization = o_;
30068
- class H6 extends o_ {
30077
+ Zr.ExclusiveCanonicalization = s_;
30078
+ class H6 extends s_ {
30069
30079
  constructor() {
30070
30080
  super(), this.includeComments = !0;
30071
30081
  }
@@ -30095,7 +30105,7 @@ function G6(t, e) {
30095
30105
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
30096
30106
  return t;
30097
30107
  }
30098
- var s_ = cf({
30108
+ var a_ = cf({
30099
30109
  /**
30100
30110
  * `text/html`, the only mime type that triggers treating an XML document as HTML.
30101
30111
  *
@@ -30117,7 +30127,7 @@ var s_ = cf({
30117
30127
  * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
30118
30128
  * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
30119
30129
  isHTML: function(t) {
30120
- return t === s_.HTML;
30130
+ return t === a_.HTML;
30121
30131
  },
30122
30132
  /**
30123
30133
  * `application/xml`, the standard mime type for XML documents.
@@ -30152,7 +30162,7 @@ var s_ = cf({
30152
30162
  * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia
30153
30163
  */
30154
30164
  XML_SVG_IMAGE: "image/svg+xml"
30155
- }), a_ = cf({
30165
+ }), c_ = cf({
30156
30166
  /**
30157
30167
  * The XHTML namespace.
30158
30168
  *
@@ -30167,7 +30177,7 @@ var s_ = cf({
30167
30177
  * @see NAMESPACE.HTML
30168
30178
  */
30169
30179
  isHTML: function(t) {
30170
- return t === a_.HTML;
30180
+ return t === c_.HTML;
30171
30181
  },
30172
30182
  /**
30173
30183
  * The SVG namespace.
@@ -30191,9 +30201,9 @@ var s_ = cf({
30191
30201
  Zn.assign = G6;
30192
30202
  Zn.find = K6;
30193
30203
  Zn.freeze = cf;
30194
- Zn.MIME_TYPE = s_;
30195
- Zn.NAMESPACE = a_;
30196
- var c_ = Zn, bn = c_.find, qo = c_.NAMESPACE;
30204
+ Zn.MIME_TYPE = a_;
30205
+ Zn.NAMESPACE = c_;
30206
+ var l_ = Zn, bn = l_.find, qo = l_.NAMESPACE;
30197
30207
  function W6(t) {
30198
30208
  return t !== "";
30199
30209
  }
@@ -30226,7 +30236,7 @@ function It(t, e) {
30226
30236
  }
30227
30237
  n.constructor != t && (typeof t != "function" && console.error("unknown Class:" + t), n.constructor = t);
30228
30238
  }
30229
- var Tt = {}, ln = Tt.ELEMENT_NODE = 1, ji = Tt.ATTRIBUTE_NODE = 2, Ga = Tt.TEXT_NODE = 3, l_ = Tt.CDATA_SECTION_NODE = 4, u_ = Tt.ENTITY_REFERENCE_NODE = 5, Z6 = Tt.ENTITY_NODE = 6, d_ = Tt.PROCESSING_INSTRUCTION_NODE = 7, p_ = Tt.COMMENT_NODE = 8, f_ = Tt.DOCUMENT_NODE = 9, h_ = Tt.DOCUMENT_TYPE_NODE = 10, Hn = Tt.DOCUMENT_FRAGMENT_NODE = 11, Q6 = Tt.NOTATION_NODE = 12, gt = {}, rt = {};
30239
+ var Tt = {}, ln = Tt.ELEMENT_NODE = 1, ji = Tt.ATTRIBUTE_NODE = 2, Ga = Tt.TEXT_NODE = 3, u_ = Tt.CDATA_SECTION_NODE = 4, d_ = Tt.ENTITY_REFERENCE_NODE = 5, Z6 = Tt.ENTITY_NODE = 6, p_ = Tt.PROCESSING_INSTRUCTION_NODE = 7, f_ = Tt.COMMENT_NODE = 8, h_ = Tt.DOCUMENT_NODE = 9, g_ = Tt.DOCUMENT_TYPE_NODE = 10, Hn = Tt.DOCUMENT_FRAGMENT_NODE = 11, Q6 = Tt.NOTATION_NODE = 12, gt = {}, rt = {};
30230
30240
  gt.INDEX_SIZE_ERR = (rt[1] = "Index size error", 1);
30231
30241
  gt.DOMSTRING_SIZE_ERR = (rt[2] = "DOMString size error", 2);
30232
30242
  var kt = gt.HIERARCHY_REQUEST_ERR = (rt[3] = "Hierarchy request error", 3);
@@ -30234,7 +30244,7 @@ gt.WRONG_DOCUMENT_ERR = (rt[4] = "Wrong document", 4);
30234
30244
  gt.INVALID_CHARACTER_ERR = (rt[5] = "Invalid character", 5);
30235
30245
  gt.NO_DATA_ALLOWED_ERR = (rt[6] = "No data allowed", 6);
30236
30246
  gt.NO_MODIFICATION_ALLOWED_ERR = (rt[7] = "No modification allowed", 7);
30237
- var g_ = gt.NOT_FOUND_ERR = (rt[8] = "Not found", 8);
30247
+ var m_ = gt.NOT_FOUND_ERR = (rt[8] = "Not found", 8);
30238
30248
  gt.NOT_SUPPORTED_ERR = (rt[9] = "Not supported", 9);
30239
30249
  var Ng = gt.INUSE_ATTRIBUTE_ERR = (rt[10] = "Attribute in use", 10);
30240
30250
  gt.INVALID_STATE_ERR = (rt[11] = "Invalid state", 11);
@@ -30299,7 +30309,7 @@ function lf(t) {
30299
30309
  var e = t._node._inc || t._node.ownerDocument._inc;
30300
30310
  if (t._inc !== e) {
30301
30311
  var n = t._refresh(t._node);
30302
- if (S_(t, "length", n.length), !t.$$length || n.length < t.$$length)
30312
+ if (N_(t, "length", n.length), !t.$$length || n.length < t.$$length)
30303
30313
  for (var r = n.length; r in t; r++)
30304
30314
  Object.prototype.hasOwnProperty.call(t, r) && delete t[r];
30305
30315
  vs(n, t), t._inc = e;
@@ -30311,29 +30321,29 @@ Li.prototype.item = function(t) {
30311
30321
  It(Li, jn);
30312
30322
  function Wa() {
30313
30323
  }
30314
- function m_(t, e) {
30324
+ function __(t, e) {
30315
30325
  for (var n = t.length; n--; )
30316
30326
  if (t[n] === e)
30317
30327
  return n;
30318
30328
  }
30319
30329
  function Cg(t, e, n, r) {
30320
- if (r ? e[m_(e, r)] = n : e[e.length++] = n, t) {
30330
+ if (r ? e[__(e, r)] = n : e[e.length++] = n, t) {
30321
30331
  n.ownerElement = t;
30322
30332
  var i = t.ownerDocument;
30323
- i && (r && w_(i, t, r), e9(i, t, n));
30333
+ i && (r && v_(i, t, r), e9(i, t, n));
30324
30334
  }
30325
30335
  }
30326
30336
  function Ig(t, e, n) {
30327
- var r = m_(e, n);
30337
+ var r = __(e, n);
30328
30338
  if (r >= 0) {
30329
30339
  for (var i = e.length - 1; r < i; )
30330
30340
  e[r] = e[++r];
30331
30341
  if (e.length = i, t) {
30332
30342
  var o = t.ownerDocument;
30333
- o && (w_(o, t, n), n.ownerElement = null);
30343
+ o && (v_(o, t, n), n.ownerElement = null);
30334
30344
  }
30335
30345
  } else
30336
- throw new Je(g_, new Error(t.tagName + "@" + n));
30346
+ throw new Je(m_, new Error(t.tagName + "@" + n));
30337
30347
  }
30338
30348
  Wa.prototype = {
30339
30349
  length: 0,
@@ -30379,9 +30389,9 @@ Wa.prototype = {
30379
30389
  return null;
30380
30390
  }
30381
30391
  };
30382
- function __() {
30392
+ function y_() {
30383
30393
  }
30384
- __.prototype = {
30394
+ y_.prototype = {
30385
30395
  /**
30386
30396
  * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
30387
30397
  * The different implementations fairly diverged in what kind of features were reported.
@@ -30476,10 +30486,10 @@ Le.prototype = {
30476
30486
  return Xa(this, t, e);
30477
30487
  },
30478
30488
  replaceChild: function(t, e) {
30479
- Xa(this, t, e, b_), e && this.removeChild(e);
30489
+ Xa(this, t, e, x_), e && this.removeChild(e);
30480
30490
  },
30481
30491
  removeChild: function(t) {
30482
- return v_(this, t);
30492
+ return b_(this, t);
30483
30493
  },
30484
30494
  appendChild: function(t) {
30485
30495
  return this.insertBefore(t, null);
@@ -30547,7 +30557,7 @@ Le.prototype = {
30547
30557
  return e == null;
30548
30558
  }
30549
30559
  };
30550
- function y_(t) {
30560
+ function w_(t) {
30551
30561
  return t == "<" && "&lt;" || t == ">" && "&gt;" || t == "&" && "&amp;" || t == '"' && "&quot;" || "&#" + t.charCodeAt() + ";";
30552
30562
  }
30553
30563
  vs(Tt, Le);
@@ -30569,7 +30579,7 @@ function e9(t, e, n) {
30569
30579
  var r = n.namespaceURI;
30570
30580
  r === qo.XMLNS && (e._nsMap[n.prefix ? n.localName : ""] = n.value);
30571
30581
  }
30572
- function w_(t, e, n, r) {
30582
+ function v_(t, e, n, r) {
30573
30583
  t && t._inc++;
30574
30584
  var i = n.namespaceURI;
30575
30585
  i === qo.XMLNS && delete e._nsMap[n.prefix ? n.localName : ""];
@@ -30587,7 +30597,7 @@ function uf(t, e, n) {
30587
30597
  }
30588
30598
  }
30589
30599
  }
30590
- function v_(t, e) {
30600
+ function b_(t, e) {
30591
30601
  var n = e.previousSibling, r = e.nextSibling;
30592
30602
  return n ? n.nextSibling = r : t.firstChild = r, r ? r.previousSibling = n : t.lastChild = n, e.parentNode = null, e.previousSibling = null, e.nextSibling = null, uf(t.ownerDocument, t), e;
30593
30603
  }
@@ -30627,7 +30637,7 @@ function r9(t, e, n) {
30627
30637
  if (!t9(t))
30628
30638
  throw new Je(kt, "Unexpected parent node type " + t.nodeType);
30629
30639
  if (n && n.parentNode !== t)
30630
- throw new Je(g_, "child not in parent");
30640
+ throw new Je(m_, "child not in parent");
30631
30641
  if (
30632
30642
  // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
30633
30643
  !n9(e) || // 5. If either `node` is a Text node and `parent` is a document,
@@ -30662,7 +30672,7 @@ function i9(t, e, n) {
30662
30672
  throw new Je(kt, "Doctype can not be appended since element is present");
30663
30673
  }
30664
30674
  }
30665
- function b_(t, e, n) {
30675
+ function x_(t, e, n) {
30666
30676
  var r = t.childNodes || [], i = e.childNodes || [];
30667
30677
  if (e.nodeType === Le.DOCUMENT_FRAGMENT_NODE) {
30668
30678
  var o = i.filter(xn);
@@ -30706,7 +30716,7 @@ function o9(t, e) {
30706
30716
  bs.prototype = {
30707
30717
  //implementation : null,
30708
30718
  nodeName: "#document",
30709
- nodeType: f_,
30719
+ nodeType: h_,
30710
30720
  /**
30711
30721
  * The DocumentType node of the document.
30712
30722
  *
@@ -30727,14 +30737,14 @@ bs.prototype = {
30727
30737
  return Xa(this, t, e), t.ownerDocument = this, this.documentElement === null && t.nodeType === ln && (this.documentElement = t), t;
30728
30738
  },
30729
30739
  removeChild: function(t) {
30730
- return this.documentElement == t && (this.documentElement = null), v_(this, t);
30740
+ return this.documentElement == t && (this.documentElement = null), b_(this, t);
30731
30741
  },
30732
30742
  replaceChild: function(t, e) {
30733
- Xa(this, t, e, b_), t.ownerDocument = this, e && this.removeChild(e), xn(t) && (this.documentElement = t);
30743
+ Xa(this, t, e, x_), t.ownerDocument = this, e && this.removeChild(e), xn(t) && (this.documentElement = t);
30734
30744
  },
30735
30745
  // Introduced in DOM Level 2:
30736
30746
  importNode: function(t, e) {
30737
- return E_(this, t, e);
30747
+ return S_(this, t, e);
30738
30748
  },
30739
30749
  // Introduced in DOM Level 2:
30740
30750
  getElementById: function(t) {
@@ -30948,31 +30958,31 @@ function ff() {
30948
30958
  }
30949
30959
  ff.prototype = {
30950
30960
  nodeName: "#comment",
30951
- nodeType: p_
30961
+ nodeType: f_
30952
30962
  };
30953
30963
  It(ff, xs);
30954
30964
  function hf() {
30955
30965
  }
30956
30966
  hf.prototype = {
30957
30967
  nodeName: "#cdata-section",
30958
- nodeType: l_
30968
+ nodeType: u_
30959
30969
  };
30960
30970
  It(hf, xs);
30961
30971
  function ll() {
30962
30972
  }
30963
- ll.prototype.nodeType = h_;
30973
+ ll.prototype.nodeType = g_;
30964
30974
  It(ll, Le);
30965
- function x_() {
30966
- }
30967
- x_.prototype.nodeType = Q6;
30968
- It(x_, Le);
30969
30975
  function $_() {
30970
30976
  }
30971
- $_.prototype.nodeType = Z6;
30977
+ $_.prototype.nodeType = Q6;
30972
30978
  It($_, Le);
30979
+ function A_() {
30980
+ }
30981
+ A_.prototype.nodeType = Z6;
30982
+ It(A_, Le);
30973
30983
  function gf() {
30974
30984
  }
30975
- gf.prototype.nodeType = u_;
30985
+ gf.prototype.nodeType = d_;
30976
30986
  It(gf, Le);
30977
30987
  function ul() {
30978
30988
  }
@@ -30981,15 +30991,15 @@ ul.prototype.nodeType = Hn;
30981
30991
  It(ul, Le);
30982
30992
  function mf() {
30983
30993
  }
30984
- mf.prototype.nodeType = d_;
30994
+ mf.prototype.nodeType = p_;
30985
30995
  It(mf, Le);
30986
- function A_() {
30996
+ function k_() {
30987
30997
  }
30988
- A_.prototype.serializeToString = function(t, e, n) {
30989
- return k_.call(t, e, n);
30998
+ k_.prototype.serializeToString = function(t, e, n) {
30999
+ return E_.call(t, e, n);
30990
31000
  };
30991
- Le.prototype.toString = k_;
30992
- function k_(t, e) {
31001
+ Le.prototype.toString = E_;
31002
+ function E_(t, e) {
30993
31003
  var n = [], r = this.nodeType == 9 && this.documentElement || this, i = r.prefix, o = r.namespaceURI;
30994
31004
  if (o && i == null) {
30995
31005
  var i = r.lookupPrefix(o);
@@ -31013,7 +31023,7 @@ function Dg(t, e, n) {
31013
31023
  return !0;
31014
31024
  }
31015
31025
  function Hl(t, e, n) {
31016
- t.push(" ", e, '="', n.replace(/[<>&"\t\n\r]/g, y_), '"');
31026
+ t.push(" ", e, '="', n.replace(/[<>&"\t\n\r]/g, w_), '"');
31017
31027
  }
31018
31028
  function yi(t, e, n, r, i) {
31019
31029
  if (i || (i = []), r)
@@ -31080,7 +31090,7 @@ function yi(t, e, n, r, i) {
31080
31090
  } else
31081
31091
  e.push("/>");
31082
31092
  return;
31083
- case f_:
31093
+ case h_:
31084
31094
  case Hn:
31085
31095
  for (var k = t.firstChild; k; )
31086
31096
  yi(k, e, n, r, i.slice()), k = k.nextSibling;
@@ -31089,13 +31099,13 @@ function yi(t, e, n, r, i) {
31089
31099
  return Hl(e, t.name, t.value);
31090
31100
  case Ga:
31091
31101
  return e.push(
31092
- t.data.replace(/[<&>]/g, y_)
31102
+ t.data.replace(/[<&>]/g, w_)
31093
31103
  );
31094
- case l_:
31104
+ case u_:
31095
31105
  return e.push("<![CDATA[", t.data, "]]>");
31096
- case p_:
31106
+ case f_:
31097
31107
  return e.push("<!--", t.data, "-->");
31098
- case h_:
31108
+ case g_:
31099
31109
  var v = t.publicId, O = t.systemId;
31100
31110
  if (e.push("<!DOCTYPE ", t.name), v)
31101
31111
  e.push(" PUBLIC ", v), O && O != "." && e.push(" ", O), e.push(">");
@@ -31106,15 +31116,15 @@ function yi(t, e, n, r, i) {
31106
31116
  V && e.push(" [", V, "]"), e.push(">");
31107
31117
  }
31108
31118
  return;
31109
- case d_:
31119
+ case p_:
31110
31120
  return e.push("<?", t.target, " ", t.data, "?>");
31111
- case u_:
31121
+ case d_:
31112
31122
  return e.push("&", t.nodeName, ";");
31113
31123
  default:
31114
31124
  e.push("??", t.nodeName);
31115
31125
  }
31116
31126
  }
31117
- function E_(t, e, n) {
31127
+ function S_(t, e, n) {
31118
31128
  var r;
31119
31129
  switch (e.nodeType) {
31120
31130
  case ln:
@@ -31127,7 +31137,7 @@ function E_(t, e, n) {
31127
31137
  }
31128
31138
  if (r || (r = e.cloneNode(!1)), r.ownerDocument = t, r.parentNode = null, n)
31129
31139
  for (var i = e.firstChild; i; )
31130
- r.appendChild(E_(t, i, n)), i = i.nextSibling;
31140
+ r.appendChild(S_(t, i, n)), i = i.nextSibling;
31131
31141
  return r;
31132
31142
  }
31133
31143
  function Pd(t, e, n) {
@@ -31152,7 +31162,7 @@ function Pd(t, e, n) {
31152
31162
  r.appendChild(Pd(t, f, n)), f = f.nextSibling;
31153
31163
  return r;
31154
31164
  }
31155
- function S_(t, e, n) {
31165
+ function N_(t, e, n) {
31156
31166
  t[e] = n;
31157
31167
  }
31158
31168
  try {
@@ -31189,7 +31199,7 @@ try {
31189
31199
  this.data = e, this.value = e, this.nodeValue = e;
31190
31200
  }
31191
31201
  }
31192
- }), S_ = function(e, n, r) {
31202
+ }), N_ = function(e, n, r) {
31193
31203
  e["$$" + n] = r;
31194
31204
  };
31195
31205
  }
@@ -31197,12 +31207,12 @@ try {
31197
31207
  }
31198
31208
  Yn.DocumentType = ll;
31199
31209
  Yn.DOMException = Je;
31200
- Yn.DOMImplementation = __;
31210
+ Yn.DOMImplementation = y_;
31201
31211
  Yn.Element = Qr;
31202
31212
  Yn.Node = Le;
31203
31213
  Yn.NodeList = jn;
31204
- Yn.XMLSerializer = A_;
31205
- var dl = {}, N_ = {};
31214
+ Yn.XMLSerializer = k_;
31215
+ var dl = {}, C_ = {};
31206
31216
  (function(t) {
31207
31217
  var e = Zn.freeze;
31208
31218
  t.XML_ENTITIES = e({
@@ -33339,19 +33349,19 @@ var dl = {}, N_ = {};
33339
33349
  zwj: "‍",
33340
33350
  zwnj: "‌"
33341
33351
  }), t.entityMap = t.HTML_ENTITIES;
33342
- })(N_);
33352
+ })(C_);
33343
33353
  var _f = {}, zo = Zn.NAMESPACE, jd = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, Rg = new RegExp("[\\-\\.0-9" + jd.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), Bg = new RegExp("^" + jd.source + Rg.source + "*(?::" + jd.source + Rg.source + "*)?$"), oo = 0, nr = 1, di = 2, so = 3, pi = 4, fi = 5, ao = 6, js = 7;
33344
33354
  function Fi(t, e) {
33345
33355
  this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Fi);
33346
33356
  }
33347
33357
  Fi.prototype = new Error();
33348
33358
  Fi.prototype.name = Fi.name;
33349
- function C_() {
33359
+ function I_() {
33350
33360
  }
33351
- C_.prototype = {
33361
+ I_.prototype = {
33352
33362
  parse: function(t, e, n) {
33353
33363
  var r = this.domBuilder;
33354
- r.startDocument(), I_(e, e = {}), s9(
33364
+ r.startDocument(), T_(e, e = {}), s9(
33355
33365
  t,
33356
33366
  e,
33357
33367
  n,
@@ -33416,7 +33426,7 @@ function s9(t, e, n, r, i) {
33416
33426
  break;
33417
33427
  default:
33418
33428
  _ && u(S);
33419
- var de = new T_(), Ie = $[$.length - 1].currentNSMap, j = a9(t, S, de, Ie, c, i), F = de.length;
33429
+ var de = new O_(), Ie = $[$.length - 1].currentNSMap, j = a9(t, S, de, Ie, c, i), F = de.length;
33420
33430
  if (!de.closed && l9(t, j, de.tagName, m) && (de.closed = !0, n.nbsp || i.warning("unclosed xml attribute")), _ && F) {
33421
33431
  for (var B = Pg(_, {}), I = 0; I < F; I++) {
33422
33432
  var C = de[I];
@@ -33556,7 +33566,7 @@ function jg(t, e, n) {
33556
33566
  var u = o.prefix = c.slice(0, _), d = c.slice(_ + 1), f = u === "xmlns" && d;
33557
33567
  else
33558
33568
  d = c, u = null, f = c === "xmlns" && "";
33559
- o.localName = d, f !== !1 && (i == null && (i = {}, I_(n, n = {})), n[f] = i[f] = l, o.uri = zo.XMLNS, e.startPrefixMapping(f, l));
33569
+ o.localName = d, f !== !1 && (i == null && (i = {}, T_(n, n = {})), n[f] = i[f] = l, o.uri = zo.XMLNS, e.startPrefixMapping(f, l));
33560
33570
  }
33561
33571
  for (var h = t.length; h--; ) {
33562
33572
  o = t[h];
@@ -33585,7 +33595,7 @@ function l9(t, e, n, r) {
33585
33595
  var i = r[n];
33586
33596
  return i == null && (i = t.lastIndexOf("</" + n + ">"), i < e && (i = t.lastIndexOf("</" + n)), r[n] = i), i < e;
33587
33597
  }
33588
- function I_(t, e) {
33598
+ function T_(t, e) {
33589
33599
  for (var n in t)
33590
33600
  Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
33591
33601
  }
@@ -33621,10 +33631,10 @@ function d9(t, e, n) {
33621
33631
  }
33622
33632
  return -1;
33623
33633
  }
33624
- function T_() {
33634
+ function O_() {
33625
33635
  this.attributeNames = {};
33626
33636
  }
33627
- T_.prototype = {
33637
+ O_.prototype = {
33628
33638
  setTagName: function(t) {
33629
33639
  if (!Bg.test(t))
33630
33640
  throw new Error("invalid tagName:" + t);
@@ -33667,21 +33677,21 @@ function p9(t, e) {
33667
33677
  for (i.lastIndex = e, i.exec(t); n = i.exec(t); )
33668
33678
  if (r.push(n), n[1]) return r;
33669
33679
  }
33670
- _f.XMLReader = C_;
33680
+ _f.XMLReader = I_;
33671
33681
  _f.ParseError = Fi;
33672
- var f9 = Zn, h9 = Yn, Lg = N_, O_ = _f, g9 = h9.DOMImplementation, Fg = f9.NAMESPACE, m9 = O_.ParseError, _9 = O_.XMLReader;
33673
- function D_(t) {
33682
+ var f9 = Zn, h9 = Yn, Lg = C_, D_ = _f, g9 = h9.DOMImplementation, Fg = f9.NAMESPACE, m9 = D_.ParseError, _9 = D_.XMLReader;
33683
+ function R_(t) {
33674
33684
  return t.replace(/\r[\n\u0085]/g, `
33675
33685
  `).replace(/[\r\u0085\u2028]/g, `
33676
33686
  `);
33677
33687
  }
33678
- function R_(t) {
33688
+ function B_(t) {
33679
33689
  this.options = t || { locator: {} };
33680
33690
  }
33681
- R_.prototype.parseFromString = function(t, e) {
33691
+ B_.prototype.parseFromString = function(t, e) {
33682
33692
  var n = this.options, r = new _9(), i = n.domBuilder || new $s(), o = n.errorHandler, c = n.locator, l = n.xmlns || {}, u = /\/x?html?$/.test(e), d = u ? Lg.HTML_ENTITIES : Lg.XML_ENTITIES;
33683
33693
  c && i.setDocumentLocator(c), r.errorHandler = y9(o, i, c), r.domBuilder = n.domBuilder || i, u && (l[""] = Fg.HTML), l.xml = l.xml || Fg.XML;
33684
- var f = n.normalizeLineEndings || D_;
33694
+ var f = n.normalizeLineEndings || R_;
33685
33695
  return t && typeof t == "string" ? r.parse(
33686
33696
  f(t),
33687
33697
  l,
@@ -33806,11 +33816,11 @@ function Ls(t, e) {
33806
33816
  t.currentElement ? t.currentElement.appendChild(e) : t.doc.appendChild(e);
33807
33817
  }
33808
33818
  dl.__DOMHandler = $s;
33809
- dl.normalizeLineEndings = D_;
33810
- dl.DOMParser = R_;
33811
- var B_ = Yn;
33812
- cl.DOMImplementation = B_.DOMImplementation;
33813
- cl.XMLSerializer = B_.XMLSerializer;
33819
+ dl.normalizeLineEndings = R_;
33820
+ dl.DOMParser = B_;
33821
+ var P_ = Yn;
33822
+ cl.DOMImplementation = P_.DOMImplementation;
33823
+ cl.XMLSerializer = P_.XMLSerializer;
33814
33824
  cl.DOMParser = dl.DOMParser;
33815
33825
  var pl = {};
33816
33826
  Object.defineProperty(pl, "__esModule", { value: !0 });
@@ -35978,7 +35988,7 @@ function Pz(t) {
35978
35988
  }
35979
35989
  export {
35980
35990
  l8 as AppLogo,
35981
- Fy as Auth0Client,
35991
+ Uy as Auth0Client,
35982
35992
  ur as AuthorizationResponseMode,
35983
35993
  Pt as AuthorizationResponseType,
35984
35994
  ft as Button,
@@ -36003,7 +36013,7 @@ export {
36003
36013
  ht as Layout,
36004
36014
  qe as LogTypes,
36005
36015
  Jr as Message,
36006
- wy as NodeType,
36016
+ vy as NodeType,
36007
36017
  d6 as PreSignUpConfirmationPage,
36008
36018
  i6 as PreSignUpPage,
36009
36019
  io as ResetPasswordPage,
@@ -36017,18 +36027,18 @@ export {
36017
36027
  Jl as applicationInsertSchema,
36018
36028
  mi as applicationSchema,
36019
36029
  Aq as auth0FlowInsertSchema,
36020
- Ey as auth0FlowSchema,
36030
+ Sy as auth0FlowSchema,
36021
36031
  In as auth0UserResponseSchema,
36022
36032
  ia as authParamsSchema,
36023
36033
  Fd as baseUserSchema,
36024
- qy as bordersSchema,
36034
+ Vy as bordersSchema,
36025
36035
  Of as brandingSchema,
36026
- hy as buttonComponentSchema,
36027
- Cy as codeInsertSchema,
36036
+ gy as buttonComponentSchema,
36037
+ Iy as codeInsertSchema,
36028
36038
  kq as codeSchema,
36029
- Ny as codeTypeSchema,
36030
- Vy as colorsSchema,
36031
- yy as componentSchema,
36039
+ Cy as codeTypeSchema,
36040
+ zy as colorsSchema,
36041
+ wy as componentSchema,
36032
36042
  Yl as connectionInsertSchema,
36033
36043
  Xg as connectionOptionsSchema,
36034
36044
  Ir as connectionSchema,
@@ -36037,58 +36047,58 @@ export {
36037
36047
  Sr as customDomainSchema,
36038
36048
  Eq as customDomainWithTenantIdSchema,
36039
36049
  ml as emailProviderSchema,
36040
- ky as endingSchema,
36041
- my as fieldComponentSchema,
36042
- by as flowNodeSchema,
36050
+ Ey as endingSchema,
36051
+ _y as fieldComponentSchema,
36052
+ xy as flowNodeSchema,
36043
36053
  si as fontDetailsSchema,
36044
- zy as fontsSchema,
36054
+ Hy as fontsSchema,
36045
36055
  Sq as formControlSchema,
36046
36056
  Ql as formInsertSchema,
36047
- Ty as formNodeComponentDefinition,
36057
+ Oy as formNodeComponentDefinition,
36048
36058
  co as formSchema,
36049
- _y as genericComponentSchema,
36050
- xy as genericNodeSchema,
36059
+ yy as genericComponentSchema,
36060
+ $y as genericNodeSchema,
36051
36061
  hl as hookInsertSchema,
36052
36062
  lo as hookSchema,
36053
- ly as identitySchema,
36063
+ uy as identitySchema,
36054
36064
  Pz as init,
36055
36065
  Rz as injectTailwindCSS,
36056
- Py as jwksKeySchema,
36066
+ jy as jwksKeySchema,
36057
36067
  Qg as jwksSchema,
36058
- gy as legalComponentSchema,
36068
+ my as legalComponentSchema,
36059
36069
  eu as logSchema,
36060
- jy as loginSessionInsertSchema,
36070
+ Ly as loginSessionInsertSchema,
36061
36071
  Nq as loginSessionSchema,
36062
- $y as nodeSchema,
36072
+ Ay as nodeSchema,
36063
36073
  Df as openIDConfigurationSchema,
36064
- Hy as pageBackgroundSchema,
36074
+ Ky as pageBackgroundSchema,
36065
36075
  Rq as parseUserId,
36066
- Uy as passwordInsertSchema,
36076
+ My as passwordInsertSchema,
36067
36077
  Cq as passwordSchema,
36068
- cy as profileDataSchema,
36078
+ ly as profileDataSchema,
36069
36079
  gl as promptSettingSchema,
36070
36080
  nm as refreshTokenInsertSchema,
36071
36081
  Tq as refreshTokenSchema,
36072
- fy as richTextComponentSchema,
36073
- py as samlpAddon,
36074
- My as sessionInsertSchema,
36082
+ hy as richTextComponentSchema,
36083
+ fy as samlpAddon,
36084
+ qy as sessionInsertSchema,
36075
36085
  Md as sessionSchema,
36076
36086
  Rf as signingKeySchema,
36077
36087
  Dq as smsProviderSchema,
36078
36088
  Oq as smsSendParamsSchema,
36079
- Ay as startSchema,
36080
- vy as stepNodeSchema,
36081
- n_ as tailwindCss,
36089
+ ky as startSchema,
36090
+ by as stepNodeSchema,
36091
+ r_ as tailwindCss,
36082
36092
  Zl as tenantInsertSchema,
36083
36093
  ho as tenantSchema,
36084
- Gy as themeInsertSchema,
36094
+ Wy as themeInsertSchema,
36085
36095
  Iq as themeSchema,
36086
36096
  tm as tokenResponseSchema,
36087
36097
  yr as totalsSchema,
36088
36098
  Xl as userInsertSchema,
36089
36099
  $q as userResponseSchema,
36090
36100
  Kg as userSchema,
36091
- Sy as vendorSettingsSchema,
36092
- Iy as verificationMethodsSchema,
36093
- Ky as widgetSchema
36101
+ Ny as vendorSettingsSchema,
36102
+ Ty as verificationMethodsSchema,
36103
+ Gy as widgetSchema
36094
36104
  };