authhero 0.224.0 → 0.226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/authhero.mjs CHANGED
@@ -2,7 +2,7 @@ var By = Object.defineProperty;
2
2
  var Ly = (t, e, n) => e in t ? By(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var xe = (t, e, n) => Ly(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { z as o, OpenAPIHono as be, createRoute as U } from "@hono/zod-openapi";
5
- const Ne = (t) => typeof t == "string", us = () => {
5
+ const Ne = (t) => typeof t == "string", ds = () => {
6
6
  let t, e;
7
7
  const n = new Promise((r, i) => {
8
8
  t = r, e = i;
@@ -12,7 +12,7 @@ const Ne = (t) => typeof t == "string", us = () => {
12
12
  t.forEach((r) => {
13
13
  e[r] && (n[r] = e[r]);
14
14
  });
15
- }, Uy = /###/g, Qf = (t) => t && t.indexOf("###") > -1 ? t.replace(Uy, ".") : t, eh = (t) => !t || Ne(t), $s = (t, e, n) => {
15
+ }, Uy = /###/g, Qf = (t) => t && t.indexOf("###") > -1 ? t.replace(Uy, ".") : t, eh = (t) => !t || Ne(t), xs = (t, e, n) => {
16
16
  const r = Ne(e) ? e.split(".") : e;
17
17
  let i = 0;
18
18
  for (; i < r.length - 1; ) {
@@ -28,26 +28,26 @@ const Ne = (t) => typeof t == "string", us = () => {
28
28
  const {
29
29
  obj: r,
30
30
  k: i
31
- } = $s(t, e, Object);
31
+ } = xs(t, e, Object);
32
32
  if (r !== void 0 || e.length === 1) {
33
33
  r[i] = n;
34
34
  return;
35
35
  }
36
- let s = e[e.length - 1], a = e.slice(0, e.length - 1), l = $s(t, a, Object);
36
+ let s = e[e.length - 1], a = e.slice(0, e.length - 1), l = xs(t, a, Object);
37
37
  for (; l.obj === void 0 && a.length; )
38
- s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), l = $s(t, a, Object), l != null && l.obj && typeof l.obj[`${l.k}.${s}`] < "u" && (l.obj = void 0);
38
+ s = `${a[a.length - 1]}.${s}`, a = a.slice(0, a.length - 1), l = xs(t, a, Object), l != null && l.obj && typeof l.obj[`${l.k}.${s}`] < "u" && (l.obj = void 0);
39
39
  l.obj[`${l.k}.${s}`] = n;
40
40
  }, My = (t, e, n, r) => {
41
41
  const {
42
42
  obj: i,
43
43
  k: s
44
- } = $s(t, e, Object);
44
+ } = xs(t, e, Object);
45
45
  i[s] = i[s] || [], i[s].push(n);
46
46
  }, ha = (t, e) => {
47
47
  const {
48
48
  obj: n,
49
49
  k: r
50
- } = $s(t, e);
50
+ } = xs(t, e);
51
51
  if (n && Object.prototype.hasOwnProperty.call(n, r))
52
52
  return n[r];
53
53
  }, qy = (t, e, n) => {
@@ -1115,7 +1115,7 @@ const ch = () => ({
1115
1115
  typeof t[n] == "function" && (t[n] = t[n].bind(t));
1116
1116
  });
1117
1117
  };
1118
- class Ds extends dc {
1118
+ class Rs extends dc {
1119
1119
  constructor() {
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 = lh(e), this.services = {}, this.logger = Sn, this.modules = {
@@ -1179,7 +1179,7 @@ class Ds extends dc {
1179
1179
  return e.store[p](...arguments), e;
1180
1180
  };
1181
1181
  });
1182
- const u = us(), d = () => {
1182
+ const u = ds(), d = () => {
1183
1183
  const p = (h, g) => {
1184
1184
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(g), r(h, g);
1185
1185
  };
@@ -1207,7 +1207,7 @@ class Ds extends dc {
1207
1207
  r(null);
1208
1208
  }
1209
1209
  reloadResources(e, n, r) {
1210
- const i = us();
1210
+ const i = ds();
1211
1211
  return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = Mo), this.services.backendConnector.reload(e, n, (s) => {
1212
1212
  i.resolve(), r(s);
1213
1213
  }), i;
@@ -1230,7 +1230,7 @@ class Ds extends dc {
1230
1230
  changeLanguage(e, n) {
1231
1231
  var r = this;
1232
1232
  this.isLanguageChangingTo = e;
1233
- const i = us();
1233
+ const i = ds();
1234
1234
  this.emit("languageChanging", e);
1235
1235
  const s = (u) => {
1236
1236
  this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
@@ -1303,7 +1303,7 @@ class Ds extends dc {
1303
1303
  return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, e) && (!i || a(s, e)));
1304
1304
  }
1305
1305
  loadNamespaces(e, n) {
1306
- const r = us();
1306
+ const r = ds();
1307
1307
  return this.options.ns ? (Ne(e) && (e = [e]), e.forEach((i) => {
1308
1308
  this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1309
1309
  }), this.loadResources((i) => {
@@ -1311,7 +1311,7 @@ class Ds extends dc {
1311
1311
  }), r) : (n && n(), Promise.resolve());
1312
1312
  }
1313
1313
  loadLanguages(e, n) {
1314
- const r = us();
1314
+ const r = ds();
1315
1315
  Ne(e) && (e = [e]);
1316
1316
  const i = this.options.preload || [], s = e.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
1317
1317
  return s.length ? (this.options.preload = i.concat(s), this.loadResources((a) => {
@@ -1326,7 +1326,7 @@ class Ds extends dc {
1326
1326
  }
1327
1327
  static createInstance() {
1328
1328
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
1329
- return new Ds(e, n);
1329
+ return new Rs(e, n);
1330
1330
  }
1331
1331
  cloneInstance() {
1332
1332
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo;
@@ -1336,7 +1336,7 @@ class Ds extends dc {
1336
1336
  ...this.options,
1337
1337
  ...e,
1338
1338
  isClone: !0
1339
- }, s = new Ds(i);
1339
+ }, s = new Rs(i);
1340
1340
  if ((e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((l) => {
1341
1341
  s[l] = this[l];
1342
1342
  }), s.services = {
@@ -1369,8 +1369,8 @@ class Ds extends dc {
1369
1369
  };
1370
1370
  }
1371
1371
  }
1372
- const B = Ds.createInstance();
1373
- B.createInstance = Ds.createInstance;
1372
+ const B = Rs.createInstance();
1373
+ B.createInstance = Rs.createInstance;
1374
1374
  B.createInstance;
1375
1375
  B.dir;
1376
1376
  B.init;
@@ -1427,7 +1427,7 @@ const qt = o.object({
1427
1427
  start: o.number(),
1428
1428
  limit: o.number(),
1429
1429
  length: o.number()
1430
- }), Wi = o.object({
1430
+ }), Xi = o.object({
1431
1431
  created_at: o.string(),
1432
1432
  updated_at: o.string()
1433
1433
  }), rw = o.object({
@@ -1474,7 +1474,7 @@ const qt = o.object({
1474
1474
  is_social: o.boolean().optional()
1475
1475
  }), Tm = o.object({
1476
1476
  ...gu.shape,
1477
- ...Wi.shape,
1477
+ ...Xi.shape,
1478
1478
  user_id: o.string(),
1479
1479
  is_social: o.boolean(),
1480
1480
  email: o.string().optional(),
@@ -1910,7 +1910,7 @@ const ya = o.object({
1910
1910
  font: o.object({
1911
1911
  url: o.string()
1912
1912
  }).optional()
1913
- }), xs = o.object({
1913
+ }), As = o.object({
1914
1914
  kid: o.string().optional(),
1915
1915
  team_id: o.string().optional(),
1916
1916
  realms: o.string().optional(),
@@ -1933,7 +1933,7 @@ const ya = o.object({
1933
1933
  id: o.string().optional(),
1934
1934
  name: o.string(),
1935
1935
  strategy: o.string(),
1936
- options: xs.default({}),
1936
+ options: As.default({}),
1937
1937
  enabled_clients: o.array(o.string()).default([]).optional(),
1938
1938
  response_type: o.custom().optional(),
1939
1939
  response_mode: o.custom().optional()
@@ -1952,7 +1952,7 @@ const ya = o.object({
1952
1952
  secondary_color: o.string().optional(),
1953
1953
  language: o.string().optional(),
1954
1954
  id: o.string().optional()
1955
- }), As = o.object({
1955
+ }), Es = o.object({
1956
1956
  created_at: o.string().transform((t) => t === null ? "" : t),
1957
1957
  updated_at: o.string().transform((t) => t === null ? "" : t),
1958
1958
  ...wu.shape,
@@ -1960,7 +1960,7 @@ const ya = o.object({
1960
1960
  });
1961
1961
  o.object({
1962
1962
  ...bi.shape,
1963
- tenant: As,
1963
+ tenant: Es,
1964
1964
  connections: o.array(kn),
1965
1965
  // Legacy fields for backward compatibility - these are now stored in client_metadata
1966
1966
  disable_sign_ups: o.boolean(),
@@ -2164,8 +2164,8 @@ const bw = o.enum([
2164
2164
  style: o.object({ css: o.string().optional() }).optional()
2165
2165
  }).openapi({
2166
2166
  description: "Schema for flow-based forms (matches new JSON structure)"
2167
- }), ws = o.object({
2168
- ...Wi.shape,
2167
+ }), vs = o.object({
2168
+ ...Xi.shape,
2169
2169
  ...vu.shape,
2170
2170
  id: o.string()
2171
2171
  }), Rm = o.enum([
@@ -2196,16 +2196,16 @@ const bw = o.enum([
2196
2196
  ]), kw = o.object({
2197
2197
  ...fc,
2198
2198
  trigger_id: Rm,
2199
- ...Wi.shape,
2199
+ ...Xi.shape,
2200
2200
  hook_id: o.string(),
2201
2201
  url: o.string()
2202
2202
  }), Nw = o.object({
2203
2203
  ...fc,
2204
2204
  trigger_id: jm,
2205
- ...Wi.shape,
2205
+ ...Xi.shape,
2206
2206
  hook_id: o.string(),
2207
2207
  form_id: o.string()
2208
- }), vs = o.union([kw, Nw]), Pm = o.object({
2208
+ }), bs = o.union([kw, Nw]), Pm = o.object({
2209
2209
  alg: o.enum([
2210
2210
  "RS256",
2211
2211
  "RS384",
@@ -2811,7 +2811,7 @@ const jw = o.object({
2811
2811
  token_quota: tv
2812
2812
  }), Rr = o.object({
2813
2813
  ...Eu.shape,
2814
- ...Wi.shape,
2814
+ ...Xi.shape,
2815
2815
  id: o.string()
2816
2816
  }), nv = o.object({
2817
2817
  user_id: o.string().openapi({
@@ -2822,7 +2822,7 @@ const jw = o.object({
2822
2822
  })
2823
2823
  }), RG = o.object({
2824
2824
  ...nv.shape,
2825
- ...Wi.shape,
2825
+ ...Xi.shape,
2826
2826
  id: o.string()
2827
2827
  });
2828
2828
  function jG(t) {
@@ -5323,18 +5323,18 @@ function bh(t, e) {
5323
5323
  const n = vp.getAllMatches(t, Pv), r = {};
5324
5324
  for (let i = 0; i < n.length; i++) {
5325
5325
  if (n[i][1].length === 0)
5326
- return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.", ds(n[i]));
5326
+ return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' has no space in starting.", ps(n[i]));
5327
5327
  if (n[i][3] !== void 0 && n[i][4] === void 0)
5328
- return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.", ds(n[i]));
5328
+ return Ze("InvalidAttr", "Attribute '" + n[i][2] + "' is without value.", ps(n[i]));
5329
5329
  if (n[i][3] === void 0 && !e.allowBooleanAttributes)
5330
- return Ze("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.", ds(n[i]));
5330
+ return Ze("InvalidAttr", "boolean attribute '" + n[i][2] + "' is not allowed.", ps(n[i]));
5331
5331
  const s = n[i][2];
5332
5332
  if (!Fv(s))
5333
- return Ze("InvalidAttr", "Attribute '" + s + "' is an invalid name.", ds(n[i]));
5333
+ return Ze("InvalidAttr", "Attribute '" + s + "' is an invalid name.", ps(n[i]));
5334
5334
  if (!r.hasOwnProperty(s))
5335
5335
  r[s] = 1;
5336
5336
  else
5337
- return Ze("InvalidAttr", "Attribute '" + s + "' is repeated.", ds(n[i]));
5337
+ return Ze("InvalidAttr", "Attribute '" + s + "' is repeated.", ps(n[i]));
5338
5338
  }
5339
5339
  return !0;
5340
5340
  }
@@ -5386,7 +5386,7 @@ function vt(t, e) {
5386
5386
  col: n[n.length - 1].length + 1
5387
5387
  };
5388
5388
  }
5389
- function ds(t) {
5389
+ function ps(t) {
5390
5390
  return t.startIndex + t[1].length;
5391
5391
  }
5392
5392
  var bp = {};
@@ -5557,7 +5557,7 @@ function ob(t) {
5557
5557
  } : () => !1;
5558
5558
  }
5559
5559
  var Jm = ob;
5560
- const Ym = _c, ps = zv, ab = Qv, cb = sb, lb = Jm;
5560
+ const Ym = _c, fs = zv, ab = Qv, cb = sb, lb = Jm;
5561
5561
  let ub = class {
5562
5562
  constructor(e) {
5563
5563
  this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -5642,7 +5642,7 @@ function gb(t, e, n) {
5642
5642
  const mb = function(t) {
5643
5643
  t = t.replace(/\r\n?/g, `
5644
5644
  `);
5645
- const e = new ps("!xml");
5645
+ const e = new fs("!xml");
5646
5646
  let n = e, r = "", i = "";
5647
5647
  for (let s = 0; s < t.length; s++)
5648
5648
  if (t[s] === "<")
@@ -5663,7 +5663,7 @@ const mb = function(t) {
5663
5663
  let l = Nu(t, s, !1, "?>");
5664
5664
  if (!l) throw new Error("Pi Tag is not closed.");
5665
5665
  if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && l.tagName === "?xml" || this.options.ignorePiTags)) {
5666
- const u = new ps(l.tagName);
5666
+ const u = new fs(l.tagName);
5667
5667
  u.add(this.options.textNodeName, ""), l.tagName !== l.tagExp && l.attrExpPresent && (u[":@"] = this.buildAttributesMap(l.tagExp, i, l.tagName)), this.addChild(n, u, i);
5668
5668
  }
5669
5669
  s = l.closeIndex + 1;
@@ -5699,15 +5699,15 @@ const mb = function(t) {
5699
5699
  if (!O) throw new Error(`Unexpected end of ${d}`);
5700
5700
  s = O.i, x = O.tagContent;
5701
5701
  }
5702
- const C = new ps(u);
5702
+ const C = new fs(u);
5703
5703
  u !== p && h && (C[":@"] = this.buildAttributesMap(p, i, u)), x && (x = this.parseTextData(x, u, i, !0, h, !0, !0)), i = i.substr(0, i.lastIndexOf(".")), C.add(this.options.textNodeName, x), this.addChild(n, C, i);
5704
5704
  } else {
5705
5705
  if (p.length > 0 && p.lastIndexOf("/") === p.length - 1) {
5706
5706
  u[u.length - 1] === "/" ? (u = u.substr(0, u.length - 1), i = i.substr(0, i.length - 1), p = u) : p = p.substr(0, p.length - 1), this.options.transformTagName && (u = this.options.transformTagName(u));
5707
- const x = new ps(u);
5707
+ const x = new fs(u);
5708
5708
  u !== p && h && (x[":@"] = this.buildAttributesMap(p, i, u)), this.addChild(n, x, i), i = i.substr(0, i.lastIndexOf("."));
5709
5709
  } else {
5710
- const x = new ps(u);
5710
+ const x = new fs(u);
5711
5711
  this.tagsNodeStack.push(n), u !== p && h && (x[":@"] = this.buildAttributesMap(p, i, u)), this.addChild(n, x, i), n = x;
5712
5712
  }
5713
5713
  r = "", s = g;
@@ -6550,7 +6550,7 @@ function Tu(t, e) {
6550
6550
 
6551
6551
  </html>`;
6552
6552
  }
6553
- class Rs extends E {
6553
+ class Oi extends E {
6554
6554
  constructor(e, n) {
6555
6555
  super(e, {
6556
6556
  message: JSON.stringify(n),
@@ -6637,7 +6637,7 @@ async function va(t, e) {
6637
6637
  })).userOrganizations.some(
6638
6638
  (j) => j.organization_id === a
6639
6639
  ))
6640
- throw new Rs(403, {
6640
+ throw new Oi(403, {
6641
6641
  error: "access_denied",
6642
6642
  error_description: "User is not a member of the specified organization"
6643
6643
  });
@@ -7052,7 +7052,7 @@ async function t3(t, e) {
7052
7052
  )).userOrganizations.some(
7053
7053
  (C) => C.organization_id === e.organization.id
7054
7054
  ))
7055
- throw new Rs(403, {
7055
+ throw new Oi(403, {
7056
7056
  error: "access_denied",
7057
7057
  error_description: "User is not a member of the specified organization"
7058
7058
  });
@@ -7072,7 +7072,7 @@ async function t3(t, e) {
7072
7072
  else {
7073
7073
  const x = (n == null ? void 0 : n.user_id) || ((d = e.user) == null ? void 0 : d.user_id);
7074
7074
  if (!x)
7075
- throw new Rs(400, {
7075
+ throw new Oi(400, {
7076
7076
  error: "invalid_request",
7077
7077
  error_description: "User ID is required for user-based grants"
7078
7078
  });
@@ -7481,7 +7481,7 @@ async function xp(t, e, n) {
7481
7481
  q: `email:${n}`
7482
7482
  })).users;
7483
7483
  }
7484
- async function Xi({
7484
+ async function Ji({
7485
7485
  userAdapter: t,
7486
7486
  tenant_id: e,
7487
7487
  username: n,
@@ -7529,7 +7529,7 @@ async function js({
7529
7529
  username: n,
7530
7530
  provider: r
7531
7531
  }) {
7532
- const i = await Xi({
7532
+ const i = await Ji({
7533
7533
  userAdapter: t,
7534
7534
  tenant_id: e,
7535
7535
  username: n,
@@ -8771,7 +8771,7 @@ var Nh;
8771
8771
  return !1;
8772
8772
  }
8773
8773
  }
8774
- function ls(R, I) {
8774
+ function us(R, I) {
8775
8775
  return R === I || R !== R && I !== I;
8776
8776
  }
8777
8777
  function Fo(R, I) {
@@ -9082,7 +9082,7 @@ var Nh;
9082
9082
  if (y >= 0) {
9083
9083
  for (var $ = this._keys.length, v = y + 1; v < $; v++)
9084
9084
  this._keys[v - 1] = this._keys[v], this._values[v - 1] = this._values[v];
9085
- return this._keys.length--, this._values.length--, ls(f, this._cacheKey) && (this._cacheKey = R, this._cacheIndex = -2), !0;
9085
+ return this._keys.length--, this._values.length--, us(f, this._cacheKey) && (this._cacheKey = R, this._cacheIndex = -2), !0;
9086
9086
  }
9087
9087
  return !1;
9088
9088
  }, c.prototype.clear = function() {
@@ -9098,10 +9098,10 @@ var Nh;
9098
9098
  }, c.prototype[a] = function() {
9099
9099
  return this.entries();
9100
9100
  }, c.prototype._find = function(f, y) {
9101
- if (!ls(this._cacheKey, f)) {
9101
+ if (!us(this._cacheKey, f)) {
9102
9102
  this._cacheIndex = -1;
9103
9103
  for (var $ = 0; $ < this._keys.length; $++)
9104
- if (ls(this._keys[$], f)) {
9104
+ if (us(this._keys[$], f)) {
9105
9105
  this._cacheIndex = $;
9106
9106
  break;
9107
9107
  }
@@ -9536,7 +9536,7 @@ function c_(t, e) {
9536
9536
  /*!
9537
9537
  Copyright (c) Peculiar Ventures, LLC
9538
9538
  */
9539
- function Oi(t, e) {
9539
+ function Di(t, e) {
9540
9540
  let n = 0;
9541
9541
  if (t.length === 1)
9542
9542
  return t[0];
@@ -9587,10 +9587,10 @@ function l_() {
9587
9587
  for (let l = 0; l < this.valueHex.byteLength; l++)
9588
9588
  n[l] = 0;
9589
9589
  n[0] = t[0] & 128;
9590
- const r = Oi(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
9590
+ const r = Di(n, 8), i = new ArrayBuffer(this.valueHex.byteLength), s = new Uint8Array(i);
9591
9591
  for (let l = 0; l < this.valueHex.byteLength; l++)
9592
9592
  s[l] = t[l];
9593
- return s[0] &= 127, Oi(s, 8) - r;
9593
+ return s[0] &= 127, Di(s, 8) - r;
9594
9594
  }
9595
9595
  function v3(t) {
9596
9596
  const e = t < 0 ? t * -1 : t;
@@ -9697,7 +9697,7 @@ class vc {
9697
9697
  return Ep(this.items);
9698
9698
  }
9699
9699
  }
9700
- const fs = [new Uint8Array([1])], Th = "0123456789", jl = "name", Ih = "valueHexView", $3 = "isHexOnly", x3 = "idBlock", A3 = "tagClass", E3 = "tagNumber", S3 = "isConstructed", k3 = "fromBER", N3 = "toBER", C3 = "local", Ct = "", wn = new ArrayBuffer(0), bc = new Uint8Array(0), Ps = "EndOfContent", u_ = "OCTET STRING", d_ = "BIT STRING";
9700
+ const hs = [new Uint8Array([1])], Th = "0123456789", jl = "name", Ih = "valueHexView", $3 = "isHexOnly", x3 = "idBlock", A3 = "tagClass", E3 = "tagNumber", S3 = "isConstructed", k3 = "fromBER", N3 = "toBER", C3 = "local", Ct = "", wn = new ArrayBuffer(0), bc = new Uint8Array(0), Ps = "EndOfContent", u_ = "OCTET STRING", d_ = "BIT STRING";
9701
9701
  function Rn(t) {
9702
9702
  var e;
9703
9703
  return e = class extends t {
@@ -9858,7 +9858,7 @@ class p_ extends Rn(oi) {
9858
9858
  const h = new Uint8Array(u);
9859
9859
  for (let g = 0; g < u; g++)
9860
9860
  h[g] = d[g];
9861
- d = this.valueHexView = new Uint8Array(u), d.set(h), this.blockLength <= 9 ? this.tagNumber = Oi(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
9861
+ d = this.valueHexView = new Uint8Array(u), d.set(h), this.blockLength <= 9 ? this.tagNumber = Di(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
9862
9862
  }
9863
9863
  if (this.tagClass === 1 && this.isConstructed)
9864
9864
  switch (this.tagNumber) {
@@ -9913,7 +9913,7 @@ class f_ extends oi {
9913
9913
  if (a + 1 > s.length)
9914
9914
  return this.error = "End of input reached before message was fully decoded", -1;
9915
9915
  const l = n + 1, u = i.subarray(l, l + a);
9916
- return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Oi(u, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = a + 1, n + this.blockLength;
9916
+ return u[a - 1] === 0 && this.warnings.push("Needlessly long encoded length"), this.length = Di(u, 8), this.longFormUsed && this.length <= 127 && this.warnings.push("Unnecessary usage of long length form"), this.blockLength = a + 1, n + this.blockLength;
9917
9917
  }
9918
9918
  toBER(e = !1) {
9919
9919
  let n, r;
@@ -10041,7 +10041,7 @@ function T3(t, e) {
10041
10041
  const n = new e();
10042
10042
  return n.idBlock = t.idBlock, n.lenBlock = t.lenBlock, n.warnings = t.warnings, n.valueBeforeDecodeView = t.valueBeforeDecodeView, n;
10043
10043
  }
10044
- function Ji(t, e = 0, n = t.length) {
10044
+ function Yi(t, e = 0, n = t.length) {
10045
10045
  const r = e;
10046
10046
  let i = new ht({}, xt);
10047
10047
  const s = new oi();
@@ -10205,7 +10205,7 @@ function ki(t) {
10205
10205
  result: e
10206
10206
  };
10207
10207
  }
10208
- return Ji(ie.toUint8Array(t).slice(), 0, t.byteLength);
10208
+ return Yi(ie.toUint8Array(t).slice(), 0, t.byteLength);
10209
10209
  }
10210
10210
  function I3(t, e) {
10211
10211
  return t ? 1 : e;
@@ -10222,7 +10222,7 @@ class _r extends xt {
10222
10222
  return this.warnings.push("Zero buffer length"), n;
10223
10223
  let s = n;
10224
10224
  for (; I3(this.isIndefiniteForm, r) > 0; ) {
10225
- const a = Ji(i, s, r);
10225
+ const a = Yi(i, s, r);
10226
10226
  if (a.offset === -1)
10227
10227
  return this.error = a.result.error, this.warnings.concat(a.result.warnings), -1;
10228
10228
  if (s = a.offset, this.blockLength += a.result.blockLength, r -= a.result.blockLength, this.value.push(a.result), this.isIndefiniteForm && a.result.constructor.NAME === Ps)
@@ -10417,7 +10417,7 @@ let Fr = class extends ht {
10417
10417
  const s = (e instanceof ArrayBuffer ? new Uint8Array(e) : e).subarray(n, n + r);
10418
10418
  try {
10419
10419
  if (s.byteLength) {
10420
- const a = Ji(s, 0, s.byteLength);
10420
+ const a = Yi(s, 0, s.byteLength);
10421
10421
  a.offset !== -1 && a.offset === r && (this.valueBlock.value = [a.result]);
10422
10422
  }
10423
10423
  } catch {
@@ -10480,7 +10480,7 @@ class A_ extends Rn(_r) {
10480
10480
  const l = a.subarray(1);
10481
10481
  try {
10482
10482
  if (l.byteLength) {
10483
- const u = Ji(l, 0, l.byteLength);
10483
+ const u = Yi(l, 0, l.byteLength);
10484
10484
  u.offset !== -1 && u.offset === r - 1 && (this.value = [u.result]);
10485
10485
  }
10486
10486
  } catch {
@@ -10568,17 +10568,17 @@ function O3(t, e) {
10568
10568
  return n[0] > 0 && (s = Iu(n, s)), s;
10569
10569
  }
10570
10570
  function Oh(t) {
10571
- if (t >= fs.length)
10572
- for (let e = fs.length; e <= t; e++) {
10571
+ if (t >= hs.length)
10572
+ for (let e = hs.length; e <= t; e++) {
10573
10573
  const n = new Uint8Array([0]);
10574
- let r = fs[e - 1].slice(0);
10574
+ let r = hs[e - 1].slice(0);
10575
10575
  for (let i = r.length - 1; i >= 0; i--) {
10576
10576
  const s = new Uint8Array([(r[i] << 1) + n[0]]);
10577
10577
  n[0] = s[0] / 10, r[i] = s[0] % 10;
10578
10578
  }
10579
- n[0] > 0 && (r = Iu(n, r)), fs.push(r);
10579
+ n[0] > 0 && (r = Iu(n, r)), hs.push(r);
10580
10580
  }
10581
- return fs[t];
10581
+ return hs[t];
10582
10582
  }
10583
10583
  function D3(t, e) {
10584
10584
  let n = 0;
@@ -10684,8 +10684,8 @@ Object.defineProperty(S_.prototype, "valueHex", {
10684
10684
  return this.valueHexView.slice().buffer;
10685
10685
  }
10686
10686
  });
10687
- var Es;
10688
- class Yi extends ht {
10687
+ var Ss;
10688
+ class Zi extends ht {
10689
10689
  constructor(e = {}) {
10690
10690
  super(e, Cp), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
10691
10691
  }
@@ -10702,14 +10702,14 @@ class Yi extends ht {
10702
10702
  p[0] |= 128, r.write(p);
10703
10703
  } else
10704
10704
  s[0] & 128 && r.write(new Uint8Array([0])), r.write(s);
10705
- return new Es({ valueHex: r.final() });
10705
+ return new Ss({ valueHex: r.final() });
10706
10706
  }
10707
10707
  convertToDER() {
10708
- const e = new Es({ valueHex: this.valueBlock.valueHexView });
10708
+ const e = new Ss({ valueHex: this.valueBlock.valueHexView });
10709
10709
  return e.valueBlock.toDER(), e;
10710
10710
  }
10711
10711
  convertFromDER() {
10712
- return new Es({
10712
+ return new Ss({
10713
10713
  valueHex: this.valueBlock.valueHexView[0] === 0 ? this.valueBlock.valueHexView.subarray(1) : this.valueBlock.valueHexView
10714
10714
  });
10715
10715
  }
@@ -10717,11 +10717,11 @@ class Yi extends ht {
10717
10717
  return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
10718
10718
  }
10719
10719
  }
10720
- Es = Yi;
10721
- de.Integer = Es;
10722
- Yi.NAME = "INTEGER";
10720
+ Ss = Zi;
10721
+ de.Integer = Ss;
10722
+ Zi.NAME = "INTEGER";
10723
10723
  var k_;
10724
- class xc extends Yi {
10724
+ class xc extends Zi {
10725
10725
  constructor(e = {}) {
10726
10726
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
10727
10727
  }
@@ -10746,7 +10746,7 @@ class Ou extends Rn(xt) {
10746
10746
  const a = new Uint8Array(this.blockLength);
10747
10747
  for (let l = 0; l < this.blockLength; l++)
10748
10748
  a[l] = this.valueHexView[l];
10749
- return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Oi(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
10749
+ return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Di(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
10750
10750
  }
10751
10751
  set valueBigInt(e) {
10752
10752
  ba();
@@ -10921,7 +10921,7 @@ class Du extends Rn(oi) {
10921
10921
  const a = new Uint8Array(this.blockLength);
10922
10922
  for (let l = 0; l < this.blockLength; l++)
10923
10923
  a[l] = this.valueHexView[l];
10924
- return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Oi(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
10924
+ return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = Di(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), n + this.blockLength);
10925
10925
  }
10926
10926
  toBER(e) {
10927
10927
  if (this.isHexOnly) {
@@ -11679,7 +11679,7 @@ function hr(t, e, n) {
11679
11679
  };
11680
11680
  }
11681
11681
  if (n.primitiveSchema && Ih in e.valueBlock) {
11682
- const s = Ji(e.valueBlock.valueHexView);
11682
+ const s = Yi(e.valueBlock.valueHexView);
11683
11683
  if (s.offset === -1) {
11684
11684
  const a = {
11685
11685
  verified: !1,
@@ -11700,7 +11700,7 @@ function j3(t, e) {
11700
11700
  verified: !1,
11701
11701
  result: { error: "Wrong ASN.1 schema type" }
11702
11702
  };
11703
- const n = Ji(ie.toUint8Array(t));
11703
+ const n = Yi(ie.toUint8Array(t));
11704
11704
  return n.offset === -1 ? {
11705
11705
  verified: !1,
11706
11706
  result: n.result
@@ -11727,7 +11727,7 @@ const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11727
11727
  GraphicString: Oc,
11728
11728
  HexBlock: Rn,
11729
11729
  IA5String: Ic,
11730
- Integer: Yi,
11730
+ Integer: Zi,
11731
11731
  Null: zr,
11732
11732
  NumericString: kc,
11733
11733
  ObjectIdentifier: Ac,
@@ -11835,13 +11835,13 @@ const P3 = {
11835
11835
  }
11836
11836
  }, B3 = {
11837
11837
  fromASN: (t) => t.valueBlock.valueHexView.byteLength >= 4 ? t.valueBlock.toString() : t.valueBlock.valueDec,
11838
- toASN: (t) => new Yi({ value: +t })
11838
+ toASN: (t) => new Zi({ value: +t })
11839
11839
  }, L3 = {
11840
11840
  fromASN: (t) => t.valueBlock.valueDec,
11841
11841
  toASN: (t) => new xc({ value: t })
11842
11842
  }, He = {
11843
11843
  fromASN: (t) => t.valueBlock.valueHexView,
11844
- toASN: (t) => new Yi({ valueHex: t })
11844
+ toASN: (t) => new Zi({ valueHex: t })
11845
11845
  }, F3 = {
11846
11846
  fromASN: (t) => t.valueBlock.valueHexView,
11847
11847
  toASN: (t) => new Ur({ valueHex: t })
@@ -11874,7 +11874,7 @@ const s2 = en(ir), z3 = en(Ec), V3 = en(Sc), H3 = en(kc), K3 = en(Nc), G3 = en(C
11874
11874
  fromASN: () => null,
11875
11875
  toASN: () => new zr()
11876
11876
  };
11877
- function Ss(t) {
11877
+ function ks(t) {
11878
11878
  switch (t) {
11879
11879
  case T.Any:
11880
11880
  return P3;
@@ -12039,14 +12039,14 @@ const st = new i4(), J = (t) => (e) => {
12039
12039
  st.has(e.constructor) ? r = st.get(e.constructor) : (r = st.createDefault(e.constructor), st.set(e.constructor, r));
12040
12040
  const i = Object.assign({}, t);
12041
12041
  if (typeof i.type == "number" && !i.converter) {
12042
- const s = Ss(t.type);
12042
+ const s = ks(t.type);
12043
12043
  if (!s)
12044
12044
  throw new Error(`Cannot get default converter for property '${n}' of ${e.constructor.name}`);
12045
12045
  i.converter = s;
12046
12046
  }
12047
12047
  r.items[n] = i;
12048
12048
  };
12049
- class hs extends Error {
12049
+ class gs extends Error {
12050
12050
  constructor() {
12051
12051
  super(...arguments), this.schemas = [];
12052
12052
  }
@@ -12075,7 +12075,7 @@ class s4 {
12075
12075
  const l = a, u = new n();
12076
12076
  return o2(n) ? this.handleArrayTypes(e, r, n) : (this.processSchemaItems(r, l, u), u);
12077
12077
  } catch (r) {
12078
- throw r instanceof hs && r.schemas.push(n.name), r;
12078
+ throw r instanceof gs && r.schemas.push(n.name), r;
12079
12079
  }
12080
12080
  }
12081
12081
  static handleChoiceTypes(e, n, r, i) {
@@ -12117,12 +12117,12 @@ class s4 {
12117
12117
  return this.handleManualMapping(e, n, r);
12118
12118
  const a = hr({}, e, i);
12119
12119
  if (!a.verified)
12120
- throw new hs(`Data does not match to ${r.name} ASN1 schema. ${a.result.error}`);
12120
+ throw new gs(`Data does not match to ${r.name} ASN1 schema. ${a.result.error}`);
12121
12121
  return a;
12122
12122
  } else {
12123
12123
  const s = hr({}, e, i);
12124
12124
  if (!s.verified)
12125
- throw new hs(`Data does not match to ${r.name} ASN1 schema. ${s.result.error}`);
12125
+ throw new gs(`Data does not match to ${r.name} ASN1 schema. ${s.result.error}`);
12126
12126
  return s;
12127
12127
  }
12128
12128
  }
@@ -12153,7 +12153,7 @@ class s4 {
12153
12153
  s.valueBlock && s.valueBlock.value && Array.isArray(s.valueBlock.value) && (i = s.valueBlock.value);
12154
12154
  }
12155
12155
  if (typeof r.type == "number") {
12156
- const s = Ss(r.type);
12156
+ const s = ks(r.type);
12157
12157
  if (!s)
12158
12158
  throw new Error(`No converter for ASN.1 type ${r.type}`);
12159
12159
  return i.filter((a) => a && a.valueBlock).map((a) => {
@@ -12173,7 +12173,7 @@ class s4 {
12173
12173
  }).filter((s) => s !== void 0);
12174
12174
  }
12175
12175
  static processPrimitiveField(e, n) {
12176
- const r = Ss(n.type);
12176
+ const r = ks(n.type);
12177
12177
  if (!r)
12178
12178
  throw new Error(`No converter for ASN.1 type ${n.type}`);
12179
12179
  return r.fromASN(e);
@@ -12185,7 +12185,7 @@ class s4 {
12185
12185
  try {
12186
12186
  return { processed: !0, value: this.fromASN(e, n.type) };
12187
12187
  } catch (r) {
12188
- if (r instanceof hs && /Wrong values for Choice type/.test(r.message))
12188
+ if (r instanceof gs && /Wrong values for Choice type/.test(r.message))
12189
12189
  return { processed: !1 };
12190
12190
  throw r;
12191
12191
  }
@@ -12195,7 +12195,7 @@ class s4 {
12195
12195
  throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
12196
12196
  const i = n.itemType;
12197
12197
  if (typeof i == "number") {
12198
- const s = Ss(i);
12198
+ const s = ks(i);
12199
12199
  if (!s)
12200
12200
  throw new Error(`Cannot get default converter for array item of ${r.name} ASN1 schema`);
12201
12201
  return r.from(e.valueBlock.value, (a) => s.fromASN(a));
@@ -12259,7 +12259,7 @@ class s4 {
12259
12259
  try {
12260
12260
  return this.fromASN(i, r);
12261
12261
  } catch (s) {
12262
- if (s instanceof hs && /Wrong values for Choice type/.test(s.message))
12262
+ if (s instanceof gs && /Wrong values for Choice type/.test(s.message))
12263
12263
  return;
12264
12264
  throw s;
12265
12265
  }
@@ -12299,7 +12299,7 @@ class Bp {
12299
12299
  if (!Array.isArray(e))
12300
12300
  throw new TypeError("Parameter 1 should be type of Array.");
12301
12301
  if (typeof r.itemType == "number") {
12302
- const a = Ss(r.itemType);
12302
+ const a = ks(r.itemType);
12303
12303
  if (!a)
12304
12304
  throw new Error(`Cannot get default converter for array item of ${n.name} ASN1 schema`);
12305
12305
  i = e.map((l) => a.toASN(l));
@@ -12547,7 +12547,7 @@ m([
12547
12547
  gt = m([
12548
12548
  J({ type: H.Choice })
12549
12549
  ], gt);
12550
- let Di = class extends gt {
12550
+ let Ri = class extends gt {
12551
12551
  constructor(e = {}) {
12552
12552
  super(e), Object.assign(this, e);
12553
12553
  }
@@ -12557,39 +12557,39 @@ let Di = class extends gt {
12557
12557
  };
12558
12558
  m([
12559
12559
  w({ type: T.IA5String })
12560
- ], Di.prototype, "ia5String", void 0);
12560
+ ], Ri.prototype, "ia5String", void 0);
12561
12561
  m([
12562
12562
  w({ type: T.Any })
12563
- ], Di.prototype, "anyValue", void 0);
12564
- Di = m([
12563
+ ], Ri.prototype, "anyValue", void 0);
12564
+ Ri = m([
12565
12565
  J({ type: H.Choice })
12566
- ], Di);
12566
+ ], Ri);
12567
12567
  class Bc {
12568
12568
  constructor(e = {}) {
12569
- this.type = "", this.value = new Di(), Object.assign(this, e);
12569
+ this.type = "", this.value = new Ri(), Object.assign(this, e);
12570
12570
  }
12571
12571
  }
12572
12572
  m([
12573
12573
  w({ type: T.ObjectIdentifier })
12574
12574
  ], Bc.prototype, "type", void 0);
12575
12575
  m([
12576
- w({ type: Di })
12576
+ w({ type: Ri })
12577
12577
  ], Bc.prototype, "value", void 0);
12578
- let Ri = Ru = class extends Pe {
12578
+ let ji = Ru = class extends Pe {
12579
12579
  constructor(e) {
12580
12580
  super(e), Object.setPrototypeOf(this, Ru.prototype);
12581
12581
  }
12582
12582
  };
12583
- Ri = Ru = m([
12583
+ ji = Ru = m([
12584
12584
  J({ type: H.Set, itemType: Bc })
12585
- ], Ri);
12585
+ ], ji);
12586
12586
  let Bu = ju = class extends Pe {
12587
12587
  constructor(e) {
12588
12588
  super(e), Object.setPrototypeOf(this, ju.prototype);
12589
12589
  }
12590
12590
  };
12591
12591
  Bu = ju = m([
12592
- J({ type: H.Sequence, itemType: Ri })
12592
+ J({ type: H.Sequence, itemType: ji })
12593
12593
  ], Bu);
12594
12594
  let et = Pu = class extends Bu {
12595
12595
  constructor(e) {
@@ -12665,7 +12665,7 @@ m([
12665
12665
  Te = m([
12666
12666
  J({ type: H.Choice })
12667
12667
  ], Te);
12668
- const Fp = "1.3.6.1.5.5.7", a4 = `${Fp}.1`, Zi = `${Fp}.3`, Lc = `${Fp}.48`, Rh = `${Lc}.1`, jh = `${Lc}.2`, Ph = `${Lc}.3`, Bh = `${Lc}.5`, sr = "2.5.29";
12668
+ const Fp = "1.3.6.1.5.5.7", a4 = `${Fp}.1`, Qi = `${Fp}.3`, Lc = `${Fp}.48`, Rh = `${Lc}.1`, jh = `${Lc}.2`, Ph = `${Lc}.3`, Bh = `${Lc}.5`, sr = "2.5.29";
12669
12669
  var Lu;
12670
12670
  const Fu = `${a4}.1`;
12671
12671
  class po {
@@ -12871,32 +12871,32 @@ m([
12871
12871
  w({ type: Te, context: 0, repeated: "sequence", implicit: !0 })
12872
12872
  ], Hr.prototype, "fullName", void 0);
12873
12873
  m([
12874
- w({ type: Ri, context: 1, implicit: !0 })
12874
+ w({ type: ji, context: 1, implicit: !0 })
12875
12875
  ], Hr.prototype, "nameRelativeToCRLIssuer", void 0);
12876
12876
  Hr = m([
12877
12877
  J({ type: H.Choice })
12878
12878
  ], Hr);
12879
- class Qi {
12879
+ class es {
12880
12880
  constructor(e = {}) {
12881
12881
  Object.assign(this, e);
12882
12882
  }
12883
12883
  }
12884
12884
  m([
12885
12885
  w({ type: Hr, context: 0, optional: !0 })
12886
- ], Qi.prototype, "distributionPoint", void 0);
12886
+ ], es.prototype, "distributionPoint", void 0);
12887
12887
  m([
12888
12888
  w({ type: l2, context: 1, optional: !0, implicit: !0 })
12889
- ], Qi.prototype, "reasons", void 0);
12889
+ ], es.prototype, "reasons", void 0);
12890
12890
  m([
12891
12891
  w({ type: Te, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
12892
- ], Qi.prototype, "cRLIssuer", void 0);
12892
+ ], es.prototype, "cRLIssuer", void 0);
12893
12893
  let Ni = Vu = class extends Pe {
12894
12894
  constructor(e) {
12895
12895
  super(e), Object.setPrototypeOf(this, Vu.prototype);
12896
12896
  }
12897
12897
  };
12898
12898
  Ni = Vu = m([
12899
- J({ type: H.Sequence, itemType: Qi })
12899
+ J({ type: H.Sequence, itemType: es })
12900
12900
  ], Ni);
12901
12901
  var Ku;
12902
12902
  let Uh = Ku = class extends Ni {
@@ -12905,7 +12905,7 @@ let Uh = Ku = class extends Ni {
12905
12905
  }
12906
12906
  };
12907
12907
  Uh = Ku = m([
12908
- J({ type: H.Sequence, itemType: Qi })
12908
+ J({ type: H.Sequence, itemType: es })
12909
12909
  ], Uh);
12910
12910
  class _t {
12911
12911
  constructor(e = {}) {
@@ -12951,16 +12951,16 @@ m([
12951
12951
  implicit: !0
12952
12952
  })
12953
12953
  ], _t.prototype, "onlyContainsAttributeCerts", void 0);
12954
- var ks;
12954
+ var Ns;
12955
12955
  (function(t) {
12956
12956
  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";
12957
- })(ks || (ks = {}));
12957
+ })(Ns || (Ns = {}));
12958
12958
  let Gu = class {
12959
- constructor(e = ks.unspecified) {
12960
- this.reason = ks.unspecified, this.reason = e;
12959
+ constructor(e = Ns.unspecified) {
12960
+ this.reason = Ns.unspecified, this.reason = e;
12961
12961
  }
12962
12962
  toJSON() {
12963
- return ks[this.reason];
12963
+ return Ns[this.reason];
12964
12964
  }
12965
12965
  toString() {
12966
12966
  return this.toJSON();
@@ -12982,7 +12982,7 @@ let Na = Wu = class extends Pe {
12982
12982
  Na = Wu = m([
12983
12983
  J({ type: H.Sequence, itemType: T.ObjectIdentifier })
12984
12984
  ], Na);
12985
- const c4 = `${Zi}.1`, l4 = `${Zi}.2`, u4 = `${Zi}.3`, d4 = `${Zi}.4`, p4 = `${Zi}.8`, f4 = `${Zi}.9`;
12985
+ const c4 = `${Qi}.1`, l4 = `${Qi}.2`, u4 = `${Qi}.3`, d4 = `${Qi}.4`, p4 = `${Qi}.8`, f4 = `${Qi}.9`;
12986
12986
  let Xu = class {
12987
12987
  constructor(e = new ArrayBuffer(0)) {
12988
12988
  this.value = e;
@@ -13150,14 +13150,14 @@ m([
13150
13150
  m([
13151
13151
  w({ type: T.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
13152
13152
  ], _2.prototype, "notAfter", void 0);
13153
- var Ns;
13153
+ var Cs;
13154
13154
  (function(t) {
13155
13155
  t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
13156
- })(Ns || (Ns = {}));
13156
+ })(Cs || (Cs = {}));
13157
13157
  class y2 extends Pc {
13158
13158
  toJSON() {
13159
13159
  const e = [], n = this.toNumber();
13160
- return n & Ns.pKIXCertificate && e.push("pKIXCertificate"), n & Ns.newExtensions && e.push("newExtensions"), n & Ns.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
13160
+ return n & Cs.pKIXCertificate && e.push("pKIXCertificate"), n & Cs.newExtensions && e.push("newExtensions"), n & Cs.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
13161
13161
  }
13162
13162
  toString() {
13163
13163
  return `[${this.toJSON().join(", ")}]`;
@@ -13399,31 +13399,31 @@ m([
13399
13399
  m([
13400
13400
  w({ type: T.BitString })
13401
13401
  ], Hp.prototype, "signature", void 0);
13402
- class es {
13402
+ class ts {
13403
13403
  constructor(e = {}) {
13404
13404
  this.issuer = new et(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
13405
13405
  }
13406
13406
  }
13407
13407
  m([
13408
13408
  w({ type: et })
13409
- ], es.prototype, "issuer", void 0);
13409
+ ], ts.prototype, "issuer", void 0);
13410
13410
  m([
13411
13411
  w({ type: T.Integer, converter: He })
13412
- ], es.prototype, "serialNumber", void 0);
13413
- let ji = class {
13412
+ ], ts.prototype, "serialNumber", void 0);
13413
+ let Pi = class {
13414
13414
  constructor(e = {}) {
13415
13415
  Object.assign(this, e);
13416
13416
  }
13417
13417
  };
13418
13418
  m([
13419
13419
  w({ type: yr, context: 0, implicit: !0 })
13420
- ], ji.prototype, "subjectKeyIdentifier", void 0);
13420
+ ], Pi.prototype, "subjectKeyIdentifier", void 0);
13421
13421
  m([
13422
- w({ type: es })
13423
- ], ji.prototype, "issuerAndSerialNumber", void 0);
13424
- ji = m([
13422
+ w({ type: ts })
13423
+ ], Pi.prototype, "issuerAndSerialNumber", void 0);
13424
+ Pi = m([
13425
13425
  J({ type: H.Choice })
13426
- ], ji);
13426
+ ], Pi);
13427
13427
  var Jn;
13428
13428
  (function(t) {
13429
13429
  t[t.v0 = 0] = "v0", t[t.v1 = 1] = "v1", t[t.v2 = 2] = "v2", t[t.v3 = 3] = "v3", t[t.v4 = 4] = "v4", t[t.v5 = 5] = "v5";
@@ -13458,34 +13458,34 @@ let sd = class extends ue {
13458
13458
  sd = m([
13459
13459
  J({ type: H.Sequence })
13460
13460
  ], sd);
13461
- let ts = class {
13461
+ let ns = class {
13462
13462
  constructor(e = {}) {
13463
13463
  this.attrType = "", this.attrValues = [], Object.assign(this, e);
13464
13464
  }
13465
13465
  };
13466
13466
  m([
13467
13467
  w({ type: T.ObjectIdentifier })
13468
- ], ts.prototype, "attrType", void 0);
13468
+ ], ns.prototype, "attrType", void 0);
13469
13469
  m([
13470
13470
  w({ type: T.Any, repeated: "set" })
13471
- ], ts.prototype, "attrValues", void 0);
13471
+ ], ns.prototype, "attrValues", void 0);
13472
13472
  var od;
13473
13473
  class jn {
13474
13474
  constructor(e = {}) {
13475
- this.version = Jn.v0, this.sid = new ji(), this.digestAlgorithm = new Ls(), this.signatureAlgorithm = new Ta(), this.signature = new De(), Object.assign(this, e);
13475
+ this.version = Jn.v0, this.sid = new Pi(), this.digestAlgorithm = new Ls(), this.signatureAlgorithm = new Ta(), this.signature = new De(), Object.assign(this, e);
13476
13476
  }
13477
13477
  }
13478
13478
  m([
13479
13479
  w({ type: T.Integer })
13480
13480
  ], jn.prototype, "version", void 0);
13481
13481
  m([
13482
- w({ type: ji })
13482
+ w({ type: Pi })
13483
13483
  ], jn.prototype, "sid", void 0);
13484
13484
  m([
13485
13485
  w({ type: Ls })
13486
13486
  ], jn.prototype, "digestAlgorithm", void 0);
13487
13487
  m([
13488
- w({ type: ts, repeated: "set", context: 0, implicit: !0, optional: !0 })
13488
+ w({ type: ns, repeated: "set", context: 0, implicit: !0, optional: !0 })
13489
13489
  ], jn.prototype, "signedAttrs", void 0);
13490
13490
  m([
13491
13491
  w({ type: Ta })
@@ -13494,7 +13494,7 @@ m([
13494
13494
  w({ type: De })
13495
13495
  ], jn.prototype, "signature", void 0);
13496
13496
  m([
13497
- w({ type: ts, repeated: "set", context: 1, implicit: !0, optional: !0 })
13497
+ w({ type: ns, repeated: "set", context: 1, implicit: !0, optional: !0 })
13498
13498
  ], jn.prototype, "unsignedAttrs", void 0);
13499
13499
  let Oa = od = class extends Pe {
13500
13500
  constructor(e) {
@@ -13603,20 +13603,20 @@ m([
13603
13603
  m([
13604
13604
  w({ type: ci, context: 1, implicit: !0, optional: !0 })
13605
13605
  ], zc.prototype, "objectDigestInfo", void 0);
13606
- let Pi = class {
13606
+ let Bi = class {
13607
13607
  constructor(e = {}) {
13608
13608
  Object.assign(this, e);
13609
13609
  }
13610
13610
  };
13611
13611
  m([
13612
13612
  w({ type: Te, repeated: "sequence" })
13613
- ], Pi.prototype, "v1Form", void 0);
13613
+ ], Bi.prototype, "v1Form", void 0);
13614
13614
  m([
13615
13615
  w({ type: zc, context: 0, implicit: !0 })
13616
- ], Pi.prototype, "v2Form", void 0);
13617
- Pi = m([
13616
+ ], Bi.prototype, "v2Form", void 0);
13617
+ Bi = m([
13618
13618
  J({ type: H.Choice })
13619
- ], Pi);
13619
+ ], Bi);
13620
13620
  class Vc {
13621
13621
  constructor(e = {}) {
13622
13622
  this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, e);
@@ -13648,7 +13648,7 @@ var ld;
13648
13648
  })(ld || (ld = {}));
13649
13649
  class vn {
13650
13650
  constructor(e = {}) {
13651
- this.version = ld.v2, this.holder = new ho(), this.issuer = new Pi(), this.signature = new ue(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new Vc(), this.attributes = [], Object.assign(this, e);
13651
+ this.version = ld.v2, this.holder = new ho(), this.issuer = new Bi(), this.signature = new ue(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new Vc(), this.attributes = [], Object.assign(this, e);
13652
13652
  }
13653
13653
  }
13654
13654
  m([
@@ -13658,7 +13658,7 @@ m([
13658
13658
  w({ type: ho })
13659
13659
  ], vn.prototype, "holder", void 0);
13660
13660
  m([
13661
- w({ type: Pi })
13661
+ w({ type: Bi })
13662
13662
  ], vn.prototype, "issuer", void 0);
13663
13663
  m([
13664
13664
  w({ type: ue })
@@ -13763,30 +13763,30 @@ m([
13763
13763
  m([
13764
13764
  w({ type: ci, optional: !0 })
13765
13765
  ], Gc.prototype, "certDigestInfo", void 0);
13766
- let Bi = class {
13766
+ let Li = class {
13767
13767
  constructor(e = {}) {
13768
13768
  Object.assign(this, e);
13769
13769
  }
13770
13770
  };
13771
13771
  m([
13772
13772
  w({ type: Te, context: 0, implicit: !0 })
13773
- ], Bi.prototype, "targetName", void 0);
13773
+ ], Li.prototype, "targetName", void 0);
13774
13774
  m([
13775
13775
  w({ type: Te, context: 1, implicit: !0 })
13776
- ], Bi.prototype, "targetGroup", void 0);
13776
+ ], Li.prototype, "targetGroup", void 0);
13777
13777
  m([
13778
13778
  w({ type: Gc, context: 2, implicit: !0 })
13779
- ], Bi.prototype, "targetCert", void 0);
13780
- Bi = m([
13779
+ ], Li.prototype, "targetCert", void 0);
13780
+ Li = m([
13781
13781
  J({ type: H.Choice })
13782
- ], Bi);
13782
+ ], Li);
13783
13783
  let pd = dd = class extends Pe {
13784
13784
  constructor(e) {
13785
13785
  super(e), Object.setPrototypeOf(this, dd.prototype);
13786
13786
  }
13787
13787
  };
13788
13788
  pd = dd = m([
13789
- J({ type: H.Sequence, itemType: Bi })
13789
+ J({ type: H.Sequence, itemType: Li })
13790
13790
  ], pd);
13791
13791
  var fd;
13792
13792
  let Wh = fd = class extends Pe {
@@ -13834,42 +13834,42 @@ m([
13834
13834
  m([
13835
13835
  w({ type: T.Any })
13836
13836
  ], Jp.prototype, "otherCert", void 0);
13837
- let Li = class {
13837
+ let Fi = class {
13838
13838
  constructor(e = {}) {
13839
13839
  Object.assign(this, e);
13840
13840
  }
13841
13841
  };
13842
13842
  m([
13843
13843
  w({ type: Gr })
13844
- ], Li.prototype, "certificate", void 0);
13844
+ ], Fi.prototype, "certificate", void 0);
13845
13845
  m([
13846
13846
  w({ type: Hc, context: 2, implicit: !0 })
13847
- ], Li.prototype, "v2AttrCert", void 0);
13847
+ ], Fi.prototype, "v2AttrCert", void 0);
13848
13848
  m([
13849
13849
  w({ type: Jp, context: 3, implicit: !0 })
13850
- ], Li.prototype, "other", void 0);
13851
- Li = m([
13850
+ ], Fi.prototype, "other", void 0);
13851
+ Fi = m([
13852
13852
  J({ type: H.Choice })
13853
- ], Li);
13853
+ ], Fi);
13854
13854
  let ja = hd = class extends Pe {
13855
13855
  constructor(e) {
13856
13856
  super(e), Object.setPrototypeOf(this, hd.prototype);
13857
13857
  }
13858
13858
  };
13859
13859
  ja = hd = m([
13860
- J({ type: H.Set, itemType: Li })
13860
+ J({ type: H.Set, itemType: Fi })
13861
13861
  ], ja);
13862
- class ns {
13862
+ class rs {
13863
13863
  constructor(e = {}) {
13864
13864
  this.contentType = "", this.content = new ArrayBuffer(0), Object.assign(this, e);
13865
13865
  }
13866
13866
  }
13867
13867
  m([
13868
13868
  w({ type: T.ObjectIdentifier })
13869
- ], ns.prototype, "contentType", void 0);
13869
+ ], rs.prototype, "contentType", void 0);
13870
13870
  m([
13871
13871
  w({ type: T.Any, context: 0 })
13872
- ], ns.prototype, "content", void 0);
13872
+ ], rs.prototype, "content", void 0);
13873
13873
  let Fs = class {
13874
13874
  constructor(e = {}) {
13875
13875
  Object.assign(this, e);
@@ -13956,27 +13956,27 @@ m([
13956
13956
  m([
13957
13957
  w({ type: Xc, optional: !0 })
13958
13958
  ], Jc.prototype, "other", void 0);
13959
- let Fi = class {
13959
+ let Ui = class {
13960
13960
  constructor(e = {}) {
13961
13961
  Object.assign(this, e);
13962
13962
  }
13963
13963
  };
13964
13964
  m([
13965
13965
  w({ type: Jc, context: 0, implicit: !0, optional: !0 })
13966
- ], Fi.prototype, "rKeyId", void 0);
13966
+ ], Ui.prototype, "rKeyId", void 0);
13967
13967
  m([
13968
- w({ type: es, optional: !0 })
13969
- ], Fi.prototype, "issuerAndSerialNumber", void 0);
13970
- Fi = m([
13968
+ w({ type: ts, optional: !0 })
13969
+ ], Ui.prototype, "issuerAndSerialNumber", void 0);
13970
+ Ui = m([
13971
13971
  J({ type: H.Choice })
13972
- ], Fi);
13972
+ ], Ui);
13973
13973
  class Yp {
13974
13974
  constructor(e = {}) {
13975
- this.rid = new Fi(), this.encryptedKey = new De(), Object.assign(this, e);
13975
+ this.rid = new Ui(), this.encryptedKey = new De(), Object.assign(this, e);
13976
13976
  }
13977
13977
  }
13978
13978
  m([
13979
- w({ type: Fi })
13979
+ w({ type: Ui })
13980
13980
  ], Yp.prototype, "rid", void 0);
13981
13981
  m([
13982
13982
  w({ type: De })
@@ -14012,55 +14012,55 @@ m([
14012
14012
  w({ type: Zp, context: 1, implicit: !0, optional: !0 })
14013
14013
  ], Wr.prototype, "originatorKey", void 0);
14014
14014
  m([
14015
- w({ type: es, optional: !0 })
14015
+ w({ type: ts, optional: !0 })
14016
14016
  ], Wr.prototype, "issuerAndSerialNumber", void 0);
14017
14017
  Wr = m([
14018
14018
  J({ type: H.Choice })
14019
14019
  ], Wr);
14020
- class rs {
14020
+ class is {
14021
14021
  constructor(e = {}) {
14022
14022
  this.version = Jn.v3, this.originator = new Wr(), this.keyEncryptionAlgorithm = new Dn(), this.recipientEncryptedKeys = new Pa(), Object.assign(this, e);
14023
14023
  }
14024
14024
  }
14025
14025
  m([
14026
14026
  w({ type: T.Integer })
14027
- ], rs.prototype, "version", void 0);
14027
+ ], is.prototype, "version", void 0);
14028
14028
  m([
14029
14029
  w({ type: Wr, context: 0 })
14030
- ], rs.prototype, "originator", void 0);
14030
+ ], is.prototype, "originator", void 0);
14031
14031
  m([
14032
14032
  w({ type: De, context: 1, optional: !0 })
14033
- ], rs.prototype, "ukm", void 0);
14033
+ ], is.prototype, "ukm", void 0);
14034
14034
  m([
14035
14035
  w({ type: Dn })
14036
- ], rs.prototype, "keyEncryptionAlgorithm", void 0);
14036
+ ], is.prototype, "keyEncryptionAlgorithm", void 0);
14037
14037
  m([
14038
14038
  w({ type: Pa })
14039
- ], rs.prototype, "recipientEncryptedKeys", void 0);
14040
- let Ui = class {
14039
+ ], is.prototype, "recipientEncryptedKeys", void 0);
14040
+ let Mi = class {
14041
14041
  constructor(e = {}) {
14042
14042
  Object.assign(this, e);
14043
14043
  }
14044
14044
  };
14045
14045
  m([
14046
14046
  w({ type: yr, context: 0, implicit: !0 })
14047
- ], Ui.prototype, "subjectKeyIdentifier", void 0);
14047
+ ], Mi.prototype, "subjectKeyIdentifier", void 0);
14048
14048
  m([
14049
- w({ type: es })
14050
- ], Ui.prototype, "issuerAndSerialNumber", void 0);
14051
- Ui = m([
14049
+ w({ type: ts })
14050
+ ], Mi.prototype, "issuerAndSerialNumber", void 0);
14051
+ Mi = m([
14052
14052
  J({ type: H.Choice })
14053
- ], Ui);
14053
+ ], Mi);
14054
14054
  class mo {
14055
14055
  constructor(e = {}) {
14056
- this.version = Jn.v0, this.rid = new Ui(), this.keyEncryptionAlgorithm = new Dn(), this.encryptedKey = new De(), Object.assign(this, e);
14056
+ this.version = Jn.v0, this.rid = new Mi(), this.keyEncryptionAlgorithm = new Dn(), this.encryptedKey = new De(), Object.assign(this, e);
14057
14057
  }
14058
14058
  }
14059
14059
  m([
14060
14060
  w({ type: T.Integer })
14061
14061
  ], mo.prototype, "version", void 0);
14062
14062
  m([
14063
- w({ type: Ui })
14063
+ w({ type: Mi })
14064
14064
  ], mo.prototype, "rid", void 0);
14065
14065
  m([
14066
14066
  w({ type: Dn })
@@ -14136,7 +14136,7 @@ m([
14136
14136
  w({ type: mo, optional: !0 })
14137
14137
  ], $r.prototype, "ktri", void 0);
14138
14138
  m([
14139
- w({ type: rs, context: 1, implicit: !0, optional: !0 })
14139
+ w({ type: is, context: 1, implicit: !0, optional: !0 })
14140
14140
  ], $r.prototype, "kari", void 0);
14141
14141
  m([
14142
14142
  w({ type: yo, context: 2, implicit: !0, optional: !0 })
@@ -14208,7 +14208,7 @@ let wd = yd = class extends Pe {
14208
14208
  }
14209
14209
  };
14210
14210
  wd = yd = m([
14211
- J({ type: H.Set, itemType: ts })
14211
+ J({ type: H.Set, itemType: ns })
14212
14212
  ], wd);
14213
14213
  class vo {
14214
14214
  constructor(e = {}) {
@@ -14240,29 +14240,29 @@ let Ua = vd = class extends Pe {
14240
14240
  Ua = vd = m([
14241
14241
  J({ type: H.Set, itemType: Ls })
14242
14242
  ], Ua);
14243
- class is {
14243
+ class ss {
14244
14244
  constructor(e = {}) {
14245
14245
  this.version = Jn.v0, this.digestAlgorithms = new Ua(), this.encapContentInfo = new Wc(), this.signerInfos = new Oa(), Object.assign(this, e);
14246
14246
  }
14247
14247
  }
14248
14248
  m([
14249
14249
  w({ type: T.Integer })
14250
- ], is.prototype, "version", void 0);
14250
+ ], ss.prototype, "version", void 0);
14251
14251
  m([
14252
14252
  w({ type: Ua })
14253
- ], is.prototype, "digestAlgorithms", void 0);
14253
+ ], ss.prototype, "digestAlgorithms", void 0);
14254
14254
  m([
14255
14255
  w({ type: Wc })
14256
- ], is.prototype, "encapContentInfo", void 0);
14256
+ ], ss.prototype, "encapContentInfo", void 0);
14257
14257
  m([
14258
14258
  w({ type: ja, context: 0, implicit: !0, optional: !0 })
14259
- ], is.prototype, "certificates", void 0);
14259
+ ], ss.prototype, "certificates", void 0);
14260
14260
  m([
14261
14261
  w({ type: Fa, context: 1, implicit: !0, optional: !0 })
14262
- ], is.prototype, "crls", void 0);
14262
+ ], ss.prototype, "crls", void 0);
14263
14263
  m([
14264
14264
  w({ type: Oa })
14265
- ], is.prototype, "signerInfos", void 0);
14265
+ ], ss.prototype, "signerInfos", void 0);
14266
14266
  const Ms = "1.2.840.10045.2.1", tf = "1.2.840.10045.4.1", x2 = "1.2.840.10045.4.3.1", nf = "1.2.840.10045.4.3.2", rf = "1.2.840.10045.4.3.3", sf = "1.2.840.10045.4.3.4", Xh = "1.2.840.10045.3.1.7", Jh = "1.3.132.0.34", Yh = "1.3.132.0.35";
14267
14267
  function bo(t) {
14268
14268
  return new ue({ algorithm: t });
@@ -14286,23 +14286,23 @@ qs = m([
14286
14286
  ], qs);
14287
14287
  class w4 extends De {
14288
14288
  }
14289
- let Mi = class {
14289
+ let qi = class {
14290
14290
  constructor(e = {}) {
14291
14291
  Object.assign(this, e);
14292
14292
  }
14293
14293
  };
14294
14294
  m([
14295
14295
  w({ type: T.OctetString })
14296
- ], Mi.prototype, "a", void 0);
14296
+ ], qi.prototype, "a", void 0);
14297
14297
  m([
14298
14298
  w({ type: T.OctetString })
14299
- ], Mi.prototype, "b", void 0);
14299
+ ], qi.prototype, "b", void 0);
14300
14300
  m([
14301
14301
  w({ type: T.BitString, optional: !0 })
14302
- ], Mi.prototype, "seed", void 0);
14303
- Mi = m([
14302
+ ], qi.prototype, "seed", void 0);
14303
+ qi = m([
14304
14304
  J({ type: H.Sequence })
14305
- ], Mi);
14305
+ ], qi);
14306
14306
  var bd;
14307
14307
  (function(t) {
14308
14308
  t[t.ecpVer1 = 1] = "ecpVer1";
@@ -14319,7 +14319,7 @@ m([
14319
14319
  w({ type: qs })
14320
14320
  ], Yn.prototype, "fieldID", void 0);
14321
14321
  m([
14322
- w({ type: Mi })
14322
+ w({ type: qi })
14323
14323
  ], Yn.prototype, "curve", void 0);
14324
14324
  m([
14325
14325
  w({ type: w4 })
@@ -14378,7 +14378,7 @@ m([
14378
14378
  m([
14379
14379
  w({ type: T.Integer, converter: He })
14380
14380
  ], Ma.prototype, "s", void 0);
14381
- const Ot = "1.2.840.113549.1.1", Xr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Cs = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
14381
+ const Ot = "1.2.840.113549.1.1", Xr = `${Ot}.1`, v4 = `${Ot}.7`, b4 = `${Ot}.9`, Ts = `${Ot}.10`, $4 = `${Ot}.2`, x4 = `${Ot}.4`, qa = `${Ot}.5`, A4 = `${Ot}.14`, $d = `${Ot}.11`, za = `${Ot}.12`, Va = `${Ot}.13`, A2 = `${Ot}.15`, E2 = `${Ot}.16`, Ha = "1.3.14.3.2.26", S2 = "2.16.840.1.101.3.4.2.4", Ka = "2.16.840.1.101.3.4.2.1", Ga = "2.16.840.1.101.3.4.2.2", Wa = "2.16.840.1.101.3.4.2.3", E4 = "2.16.840.1.101.3.4.2.5", S4 = "2.16.840.1.101.3.4.2.6", k4 = "1.2.840.113549.2.2", N4 = "1.2.840.113549.2.5", Qc = `${Ot}.8`;
14382
14382
  function ot(t) {
14383
14383
  return new ue({ algorithm: t, parameters: null });
14384
14384
  }
@@ -14471,7 +14471,7 @@ m([
14471
14471
  w({ type: T.Integer, context: 3, defaultValue: 1 })
14472
14472
  ], Yr.prototype, "trailerField", void 0);
14473
14473
  new ue({
14474
- algorithm: Cs,
14474
+ algorithm: Ts,
14475
14475
  parameters: re.serialize(new Yr())
14476
14476
  });
14477
14477
  class tl {
@@ -15120,7 +15120,7 @@ let e0 = Cd = class extends Pe {
15120
15120
  }
15121
15121
  };
15122
15122
  e0 = Cd = m([
15123
- J({ type: H.Sequence, itemType: ns })
15123
+ J({ type: H.Sequence, itemType: rs })
15124
15124
  ], e0);
15125
15125
  class O2 {
15126
15126
  constructor(e = {}) {
@@ -15225,14 +15225,14 @@ m([
15225
15225
  ], xo.prototype, "iterations", void 0);
15226
15226
  class ol {
15227
15227
  constructor(e = {}) {
15228
- this.version = 3, this.authSafe = new ns(), this.macData = new xo(), Object.assign(this, e);
15228
+ this.version = 3, this.authSafe = new rs(), this.macData = new xo(), Object.assign(this, e);
15229
15229
  }
15230
15230
  }
15231
15231
  m([
15232
15232
  w({ type: T.Integer })
15233
15233
  ], ol.prototype, "version", void 0);
15234
15234
  m([
15235
- w({ type: ns })
15235
+ w({ type: rs })
15236
15236
  ], ol.prototype, "authSafe", void 0);
15237
15237
  m([
15238
15238
  w({ type: xo, optional: !0 })
@@ -15276,7 +15276,7 @@ m([
15276
15276
  Ja = m([
15277
15277
  J({ type: H.Choice })
15278
15278
  ], Ja);
15279
- let i0 = class extends ns {
15279
+ let i0 = class extends rs {
15280
15280
  };
15281
15281
  i0 = m([
15282
15282
  J({ type: H.Sequence })
@@ -15426,7 +15426,7 @@ let g0 = jd = class extends Pe {
15426
15426
  }
15427
15427
  };
15428
15428
  g0 = jd = m([
15429
- J({ type: H.Set, itemType: ts })
15429
+ J({ type: H.Set, itemType: ns })
15430
15430
  ], g0);
15431
15431
  let qd = class {
15432
15432
  constructor(e = "") {
@@ -15464,30 +15464,30 @@ let Qa = Vd = class extends Pe {
15464
15464
  Qa = Vd = m([
15465
15465
  J({ type: H.Sequence, itemType: Xn })
15466
15466
  ], Qa);
15467
- class ss {
15467
+ class os {
15468
15468
  constructor(e = {}) {
15469
15469
  this.version = 0, this.subject = new et(), this.subjectPKInfo = new an(), this.attributes = new Qa(), Object.assign(this, e);
15470
15470
  }
15471
15471
  }
15472
15472
  m([
15473
15473
  w({ type: T.Integer })
15474
- ], ss.prototype, "version", void 0);
15474
+ ], os.prototype, "version", void 0);
15475
15475
  m([
15476
15476
  w({ type: et })
15477
- ], ss.prototype, "subject", void 0);
15477
+ ], os.prototype, "subject", void 0);
15478
15478
  m([
15479
15479
  w({ type: an })
15480
- ], ss.prototype, "subjectPKInfo", void 0);
15480
+ ], os.prototype, "subjectPKInfo", void 0);
15481
15481
  m([
15482
15482
  w({ type: Qa, implicit: !0, context: 0 })
15483
- ], ss.prototype, "attributes", void 0);
15483
+ ], os.prototype, "attributes", void 0);
15484
15484
  class zs {
15485
15485
  constructor(e = {}) {
15486
- this.certificationRequestInfo = new ss(), this.signatureAlgorithm = new ue(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
15486
+ this.certificationRequestInfo = new os(), this.signatureAlgorithm = new ue(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
15487
15487
  }
15488
15488
  }
15489
15489
  m([
15490
- w({ type: ss })
15490
+ w({ type: os })
15491
15491
  ], zs.prototype, "certificationRequestInfo", void 0);
15492
15492
  m([
15493
15493
  w({ type: ue })
@@ -16030,14 +16030,14 @@ class Yt {
16030
16030
  const d = i[3];
16031
16031
  a = this.getTypeOid(a);
16032
16032
  const p = this.createAttribute(a, l);
16033
- s === "+" ? n[n.length - 1].push(p) : n.push(new Ri([p])), s = d;
16033
+ s === "+" ? n[n.length - 1].push(p) : n.push(new ji([p])), s = d;
16034
16034
  }
16035
16035
  return n;
16036
16036
  }
16037
16037
  fromJSON(e) {
16038
16038
  const n = new et();
16039
16039
  for (const r of e) {
16040
- const i = new Ri();
16040
+ const i = new ji();
16041
16041
  for (const s in r) {
16042
16042
  const a = this.getTypeOid(s), l = r[s];
16043
16043
  for (const u of l) {
@@ -16254,7 +16254,7 @@ class ei extends Cr {
16254
16254
  }
16255
16255
  }
16256
16256
  ei.NAME = "GeneralNames";
16257
- const Ts = "-{5}", Hs = "\\n", Z4 = `[^${Hs}]+`, Q4 = `${Ts}BEGIN (${Z4}(?=${Ts}))${Ts}`, e$ = `${Ts}END \\1${Ts}`, qi = "\\n", t$ = `[^:${Hs}]+`, n$ = `(?:[^${Hs}]+${qi}(?: +[^${Hs}]+${qi})*)`, r$ = "[a-zA-Z0-9=+/]+", i$ = `(?:${r$}${qi})+`, X0 = `${Q4}${qi}(?:((?:${t$}: ${n$})+))?${qi}?(${i$})${e$}`;
16257
+ const Is = "-{5}", Hs = "\\n", Z4 = `[^${Hs}]+`, Q4 = `${Is}BEGIN (${Z4}(?=${Is}))${Is}`, e$ = `${Is}END \\1${Is}`, zi = "\\n", t$ = `[^:${Hs}]+`, n$ = `(?:[^${Hs}]+${zi}(?: +[^${Hs}]+${zi})*)`, r$ = "[a-zA-Z0-9=+/]+", i$ = `(?:${r$}${zi})+`, X0 = `${Q4}${zi}(?:((?:${t$}: ${n$})+))?${zi}?(${i$})${e$}`;
16258
16258
  class Mt {
16259
16259
  static isPem(e) {
16260
16260
  return typeof e == "string" && new RegExp(X0, "g").test(e.replace(/\r/g, ""));
@@ -16270,7 +16270,7 @@ class Mt {
16270
16270
  rawData: he.FromBase64(s)
16271
16271
  }, l = i[2];
16272
16272
  if (l) {
16273
- const u = l.split(new RegExp(qi, "g"));
16273
+ const u = l.split(new RegExp(zi, "g"));
16274
16274
  let d = null;
16275
16275
  for (const p of u) {
16276
16276
  const [h, g] = p.split(/:(.*)/);
@@ -16401,7 +16401,7 @@ class un extends Zn {
16401
16401
  e.length > 1 ? (i = e[0] || i, r = e[1] || r, n = e[2] || dt.get()) : n = e[0] || dt.get();
16402
16402
  let s = this.rawData;
16403
16403
  const a = re.parse(this.rawData, an);
16404
- return a.algorithm.algorithm === Cs && (s = s$(a, s)), n.subtle.importKey("spki", s, i, !0, r);
16404
+ return a.algorithm.algorithm === Ts && (s = s$(a, s)), n.subtle.importKey("spki", s, i, !0, r);
16405
16405
  }
16406
16406
  onInit(e) {
16407
16407
  const n = mt.resolve(Zr), r = this.algorithm = n.toWebAlgorithm(e.algorithm);
@@ -16615,7 +16615,7 @@ class K2 extends Ht {
16615
16615
  if (ie.isBufferSource(e[0]))
16616
16616
  super(e[0]);
16617
16617
  else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
16618
- const i = e[0].map((a) => new Qi({
16618
+ const i = e[0].map((a) => new es({
16619
16619
  distributionPoint: new Hr({
16620
16620
  fullName: [new Te({ uniformResourceIdentifier: a })]
16621
16621
  })
@@ -16718,7 +16718,7 @@ class W2 extends Ht {
16718
16718
  }
16719
16719
  }
16720
16720
  W2.NAME = "Issuer Alternative Name";
16721
- class os extends Cr {
16721
+ class as extends Cr {
16722
16722
  constructor(...e) {
16723
16723
  let n;
16724
16724
  if (ie.isBufferSource(e[0]))
@@ -16738,11 +16738,11 @@ class os extends Cr {
16738
16738
  }
16739
16739
  toTextObjectWithoutValue() {
16740
16740
  const e = this.toTextObjectEmpty();
16741
- return e[je.NAME] === os.NAME && (e[je.NAME] = Nr.toString(this.type)), e;
16741
+ return e[je.NAME] === as.NAME && (e[je.NAME] = Nr.toString(this.type)), e;
16742
16742
  }
16743
16743
  }
16744
- os.NAME = "Attribute";
16745
- class X2 extends os {
16744
+ as.NAME = "Attribute";
16745
+ class X2 extends as {
16746
16746
  constructor(...e) {
16747
16747
  var n;
16748
16748
  if (ie.isBufferSource(e[0]))
@@ -16767,7 +16767,7 @@ class X2 extends os {
16767
16767
  }
16768
16768
  }
16769
16769
  X2.NAME = "Challenge Password";
16770
- class ff extends os {
16770
+ class ff extends as {
16771
16771
  constructor(...e) {
16772
16772
  var n;
16773
16773
  if (ie.isBufferSource(e[0]))
@@ -16799,7 +16799,7 @@ class cl {
16799
16799
  this.items.set(e, n);
16800
16800
  }
16801
16801
  static create(e) {
16802
- const n = new os(e), r = this.items.get(n.type);
16802
+ const n = new as(e), r = this.items.get(n.type);
16803
16803
  return r ? new r(e) : n;
16804
16804
  }
16805
16805
  }
@@ -16861,9 +16861,9 @@ let Hd = sa = class {
16861
16861
  const n = sa.createPssParams(e.hash, e.saltLength);
16862
16862
  if (!n)
16863
16863
  throw new Error("Cannot create PSS parameters");
16864
- return new ue({ algorithm: Cs, parameters: re.serialize(n) });
16864
+ return new ue({ algorithm: Ts, parameters: re.serialize(n) });
16865
16865
  } else
16866
- return new ue({ algorithm: Cs, parameters: null });
16866
+ return new ue({ algorithm: Ts, parameters: null });
16867
16867
  }
16868
16868
  return null;
16869
16869
  }
@@ -16879,7 +16879,7 @@ let Hd = sa = class {
16879
16879
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-384" } };
16880
16880
  case Va:
16881
16881
  return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
16882
- case Cs:
16882
+ case Ts:
16883
16883
  if (e.parameters) {
16884
16884
  const n = re.parse(e.parameters, Yr);
16885
16885
  return {
@@ -17696,7 +17696,7 @@ fp.extend({
17696
17696
  user_id: o.string()
17697
17697
  }).catchall(o.any());
17698
17698
  const m$ = qt.extend({
17699
- tenants: o.array(As)
17699
+ tenants: o.array(Es)
17700
17700
  }), _$ = new be().openapi(
17701
17701
  U({
17702
17702
  tags: ["tenants"],
@@ -17714,7 +17714,7 @@ const m$ = qt.extend({
17714
17714
  200: {
17715
17715
  content: {
17716
17716
  "tenant/json": {
17717
- schema: o.union([o.array(As), m$])
17717
+ schema: o.union([o.array(Es), m$])
17718
17718
  }
17719
17719
  },
17720
17720
  description: "List of tenants"
@@ -17750,7 +17750,7 @@ const m$ = qt.extend({
17750
17750
  200: {
17751
17751
  content: {
17752
17752
  "tenant/json": {
17753
- schema: As
17753
+ schema: Es
17754
17754
  }
17755
17755
  },
17756
17756
  description: "A tenant"
@@ -17843,7 +17843,7 @@ const m$ = qt.extend({
17843
17843
  201: {
17844
17844
  content: {
17845
17845
  "tenant/json": {
17846
- schema: As
17846
+ schema: Es
17847
17847
  }
17848
17848
  },
17849
17849
  description: "An tenant"
@@ -17951,7 +17951,7 @@ function A$() {
17951
17951
  return hf("hook");
17952
17952
  }
17953
17953
  const E$ = qt.extend({
17954
- hooks: o.array(vs)
17954
+ hooks: o.array(bs)
17955
17955
  }), S$ = new be().openapi(
17956
17956
  U({
17957
17957
  tags: ["hooks"],
@@ -17972,7 +17972,7 @@ const E$ = qt.extend({
17972
17972
  200: {
17973
17973
  content: {
17974
17974
  "application/json": {
17975
- schema: o.union([o.array(vs), E$])
17975
+ schema: o.union([o.array(bs), E$])
17976
17976
  }
17977
17977
  },
17978
17978
  description: "List of hooks"
@@ -18016,7 +18016,7 @@ const E$ = qt.extend({
18016
18016
  201: {
18017
18017
  content: {
18018
18018
  "application/json": {
18019
- schema: vs
18019
+ schema: bs
18020
18020
  }
18021
18021
  },
18022
18022
  description: "The created hook"
@@ -18063,7 +18063,7 @@ const E$ = qt.extend({
18063
18063
  200: {
18064
18064
  content: {
18065
18065
  "application/json": {
18066
- schema: vs
18066
+ schema: bs
18067
18067
  // Directly use the union schema
18068
18068
  }
18069
18069
  },
@@ -18104,7 +18104,7 @@ const E$ = qt.extend({
18104
18104
  200: {
18105
18105
  content: {
18106
18106
  "application/json": {
18107
- schema: vs
18107
+ schema: bs
18108
18108
  }
18109
18109
  },
18110
18110
  description: "A hook"
@@ -19606,7 +19606,7 @@ function ml(t = {}) {
19606
19606
  return new ax(t);
19607
19607
  }
19608
19608
  const cx = qt.extend({
19609
- forms: o.array(ws)
19609
+ forms: o.array(vs)
19610
19610
  }), lx = new be().openapi(
19611
19611
  U({
19612
19612
  tags: ["forms"],
@@ -19627,7 +19627,7 @@ const cx = qt.extend({
19627
19627
  200: {
19628
19628
  content: {
19629
19629
  "application/json": {
19630
- schema: o.union([o.array(ws), cx])
19630
+ schema: o.union([o.array(vs), cx])
19631
19631
  }
19632
19632
  },
19633
19633
  description: "List of forms"
@@ -19672,7 +19672,7 @@ const cx = qt.extend({
19672
19672
  200: {
19673
19673
  content: {
19674
19674
  "application/json": {
19675
- schema: ws
19675
+ schema: vs
19676
19676
  }
19677
19677
  },
19678
19678
  description: "A form"
@@ -19746,7 +19746,7 @@ const cx = qt.extend({
19746
19746
  200: {
19747
19747
  content: {
19748
19748
  "application/json": {
19749
- schema: ws
19749
+ schema: vs
19750
19750
  }
19751
19751
  },
19752
19752
  description: "The updated form"
@@ -19792,7 +19792,7 @@ const cx = qt.extend({
19792
19792
  201: {
19793
19793
  content: {
19794
19794
  "application/json": {
19795
- schema: ws
19795
+ schema: vs
19796
19796
  }
19797
19797
  },
19798
19798
  description: "A form"
@@ -21670,7 +21670,7 @@ function Rx() {
21670
21670
  const t = new Uint8Array(32);
21671
21671
  return crypto.getRandomValues(t), l1(t);
21672
21672
  }
21673
- function Is(t, e) {
21673
+ function Os(t, e) {
21674
21674
  const n = new TextEncoder().encode(e.toString()), r = new Request(t, {
21675
21675
  method: "POST",
21676
21676
  body: n
@@ -21826,7 +21826,7 @@ class yf {
21826
21826
  async validateAuthorizationCode(e, n, r) {
21827
21827
  const i = new URLSearchParams();
21828
21828
  i.set("grant_type", "authorization_code"), i.set("code", n), this.redirectURI !== null && i.set("redirect_uri", this.redirectURI), r !== null && i.set("code_verifier", r), this.clientPassword === null && i.set("client_id", this.clientId);
21829
- const s = Is(e, i);
21829
+ const s = Os(e, i);
21830
21830
  if (this.clientPassword !== null) {
21831
21831
  const l = Wl(this.clientId, this.clientPassword);
21832
21832
  s.headers.set("Authorization", `Basic ${l}`);
@@ -21836,7 +21836,7 @@ class yf {
21836
21836
  async refreshAccessToken(e, n, r) {
21837
21837
  const i = new URLSearchParams();
21838
21838
  i.set("grant_type", "refresh_token"), i.set("refresh_token", n), this.clientPassword === null && i.set("client_id", this.clientId), r.length > 0 && i.set("scope", r.join(" "));
21839
- const s = Is(e, i);
21839
+ const s = Os(e, i);
21840
21840
  if (this.clientPassword !== null) {
21841
21841
  const l = Wl(this.clientId, this.clientPassword);
21842
21842
  s.headers.set("Authorization", `Basic ${l}`);
@@ -21846,7 +21846,7 @@ class yf {
21846
21846
  async revokeToken(e, n) {
21847
21847
  const r = new URLSearchParams();
21848
21848
  r.set("token", n), this.clientPassword === null && r.set("client_id", this.clientId);
21849
- const i = Is(e, r);
21849
+ const i = Os(e, r);
21850
21850
  if (this.clientPassword !== null) {
21851
21851
  const s = Wl(this.clientId, this.clientPassword);
21852
21852
  i.headers.set("Authorization", `Basic ${s}`);
@@ -21866,7 +21866,7 @@ var ag;
21866
21866
  (function(t) {
21867
21867
  t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
21868
21868
  })(ag || (ag = {}));
21869
- function Os(t) {
21869
+ function Ds(t) {
21870
21870
  return Bx(t, Lx, nc.None);
21871
21871
  }
21872
21872
  function Bx(t, e, n) {
@@ -21890,11 +21890,11 @@ var cg;
21890
21890
  t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
21891
21891
  })(cg || (cg = {}));
21892
21892
  function Fx(t, e, n) {
21893
- const r = Os(new TextEncoder().encode(t)), i = Os(new TextEncoder().encode(e)), s = Os(n);
21893
+ const r = Ds(new TextEncoder().encode(t)), i = Ds(new TextEncoder().encode(e)), s = Ds(n);
21894
21894
  return r + "." + i + "." + s;
21895
21895
  }
21896
21896
  function Ux(t, e) {
21897
- const n = Os(new TextEncoder().encode(t)), r = Os(new TextEncoder().encode(e)), i = n + "." + r;
21897
+ const n = Ds(new TextEncoder().encode(t)), r = Ds(new TextEncoder().encode(e)), i = n + "." + r;
21898
21898
  return new TextEncoder().encode(i);
21899
21899
  }
21900
21900
  const Mx = "https://appleid.apple.com/auth/authorize", qx = "https://appleid.apple.com/auth/token";
@@ -21916,7 +21916,7 @@ class f1 {
21916
21916
  n.set("grant_type", "authorization_code"), n.set("code", e), n.set("redirect_uri", this.redirectURI), n.set("client_id", this.clientId);
21917
21917
  const r = await this.createClientSecret();
21918
21918
  n.set("client_secret", r);
21919
- const i = Is(qx, n);
21919
+ const i = Os(qx, n);
21920
21920
  return await tc(i);
21921
21921
  }
21922
21922
  async createClientSecret() {
@@ -21955,7 +21955,7 @@ class h1 {
21955
21955
  async validateAuthorizationCode(e) {
21956
21956
  const n = new URLSearchParams();
21957
21957
  n.set("grant_type", "authorization_code"), n.set("code", e), n.set("redirect_uri", this.redirectURI), n.set("client_id", this.clientId), n.set("client_secret", this.clientSecret);
21958
- const r = Is(Vx, n);
21958
+ const r = Os(Vx, n);
21959
21959
  return await tc(r);
21960
21960
  }
21961
21961
  }
@@ -22233,7 +22233,7 @@ function _1(t, e) {
22233
22233
  throw new Error(`Strategy ${e} not found`);
22234
22234
  return i;
22235
22235
  }
22236
- async function as(t, e) {
22236
+ async function cs(t, e) {
22237
22237
  const n = await t.data.legacyClients.get(e);
22238
22238
  if (!n)
22239
22239
  throw new E(403, { message: "Client not found" });
@@ -22250,7 +22250,7 @@ async function as(t, e) {
22250
22250
  ...d || {},
22251
22251
  ...u
22252
22252
  });
22253
- return p.options = xs.passthrough().parse({
22253
+ return p.options = As.passthrough().parse({
22254
22254
  ...d.options || {},
22255
22255
  ...u.options
22256
22256
  }), p;
@@ -22366,7 +22366,7 @@ async function dg(t, { code: e, state: n }) {
22366
22366
  });
22367
22367
  }
22368
22368
  }
22369
- const a = await as(
22369
+ const a = await cs(
22370
22370
  r,
22371
22371
  s.authParams.client_id
22372
22372
  );
@@ -22925,7 +22925,8 @@ const d5 = o.object({
22925
22925
  code: o.string(),
22926
22926
  redirect_uri: o.string().optional(),
22927
22927
  client_secret: o.string().optional(),
22928
- code_verifier: o.string().optional()
22928
+ code_verifier: o.string().optional(),
22929
+ organization: o.string().optional()
22929
22930
  }).refine(
22930
22931
  (t) => "client_secret" in t && !("code_verifier" in t) || !("client_secret" in t) && "code_verifier" in t,
22931
22932
  {
@@ -22947,7 +22948,7 @@ async function p5(t, e) {
22947
22948
  if (new Date(r.expires_at) < /* @__PURE__ */ new Date())
22948
22949
  throw new E(403, { message: "Code expired" });
22949
22950
  if (r.used_at)
22950
- throw new Rs(403, {
22951
+ throw new Oi(403, {
22951
22952
  error: "invalid_grant",
22952
22953
  error_description: "Invalid authorization code"
22953
22954
  });
@@ -22957,6 +22958,11 @@ async function p5(t, e) {
22957
22958
  );
22958
22959
  if (!i)
22959
22960
  throw new E(403, { message: "Invalid login" });
22961
+ if (e.organization && i.authParams.organization && e.organization !== i.authParams.organization)
22962
+ throw new Oi(400, {
22963
+ error: "invalid_request",
22964
+ error_description: "Organization parameter does not match login session organization"
22965
+ });
22960
22966
  if ("client_secret" in e) {
22961
22967
  const d = await t.env.data.legacyClients.get("DEFAULT_CLIENT");
22962
22968
  if (!aa(n.client_secret, e.client_secret) && !aa(d == null ? void 0 : d.client_secret, e.client_secret))
@@ -24880,13 +24886,15 @@ const Fg = o.object({
24880
24886
  client_id: o.string(),
24881
24887
  code: o.string(),
24882
24888
  redirect_uri: o.string(),
24883
- code_verifier: o.string().min(43).max(128)
24889
+ code_verifier: o.string().min(43).max(128),
24890
+ organization: o.string().optional()
24884
24891
  }),
24885
24892
  // Code grant
24886
24893
  o.object({
24887
24894
  grant_type: o.literal("authorization_code"),
24888
24895
  code: o.string(),
24889
24896
  redirect_uri: o.string().optional(),
24897
+ organization: o.string().optional(),
24890
24898
  ...Fg.shape
24891
24899
  }),
24892
24900
  // Refresh token
@@ -25042,7 +25050,7 @@ const SE = new be().openapi(
25042
25050
  });
25043
25051
  else {
25044
25052
  if (!((p = i.user) != null && p.user_id))
25045
- throw new Rs(400, {
25053
+ throw new Oi(400, {
25046
25054
  error: "invalid_request",
25047
25055
  error_description: "User ID is required for user-based grants"
25048
25056
  });
@@ -25153,7 +25161,7 @@ async function C1(t, e) {
25153
25161
  var a, l;
25154
25162
  if (!t.var.client_id)
25155
25163
  throw new E(500, { message: "Client not found" });
25156
- const n = await as(t.env, t.var.client_id), r = n.connections.find((u) => u.strategy === "sms");
25164
+ const n = await cs(t.env, t.var.client_id), r = n.connections.find((u) => u.strategy === "sms");
25157
25165
  if (!r)
25158
25166
  throw new E(500, { message: "SMS provider not found" });
25159
25167
  const i = ((a = r.options) == null ? void 0 : a.provider) || "twilio", s = (l = t.env.smsProviders) == null ? void 0 : l[i];
@@ -25473,7 +25481,7 @@ const CE = new be().openapi(
25473
25481
  throw new E(400, {
25474
25482
  message: "Client not found"
25475
25483
  });
25476
- if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await Xi({
25484
+ if (t.set("client_id", r.client_id), t.set("tenant_id", r.tenant.id), !await Ji({
25477
25485
  userAdapter: t.env.data.users,
25478
25486
  tenant_id: r.tenant.id,
25479
25487
  username: e,
@@ -25646,7 +25654,7 @@ const TE = new be().openapi(
25646
25654
  audience: u,
25647
25655
  response_type: d,
25648
25656
  nonce: p
25649
- } = t.req.valid("query"), h = await as(e, n);
25657
+ } = t.req.valid("query"), h = await cs(e, n);
25650
25658
  t.set("client_id", h.client_id), t.set("tenant_id", h.tenant.id), t.set("connection", "email");
25651
25659
  const g = {
25652
25660
  client_id: n,
@@ -25708,7 +25716,7 @@ async function I1(t, e, n, r) {
25708
25716
  const { data: i } = t.env, { username: s } = n;
25709
25717
  if (t.set("username", s), !s)
25710
25718
  throw new E(400, { message: "Username is required" });
25711
- const a = await Xi({
25719
+ const a = await Ji({
25712
25720
  userAdapter: t.env.data.users,
25713
25721
  tenant_id: e.tenant.id,
25714
25722
  username: s,
@@ -26254,7 +26262,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
26254
26262
  organization: q
26255
26263
  } = t.req.valid("query");
26256
26264
  t.set("log", "authorize");
26257
- const M = await as(e, n);
26265
+ const M = await cs(e, n);
26258
26266
  t.set("client_id", M.client_id), t.set("tenant_id", M.tenant.id);
26259
26267
  const K = {
26260
26268
  redirect_uri: i.split("#")[0],
@@ -26380,7 +26388,7 @@ const BE = ["email", "sms", "Username-Password-Authentication"], LE = new be().o
26380
26388
  async (t) => {
26381
26389
  const { env: e } = t, { client_id: n, redirect_url: r, login_hint: i, screen_hint: s } = t.req.valid("query");
26382
26390
  t.set("log", "account");
26383
- const a = await as(e, n);
26391
+ const a = await cs(e, n);
26384
26392
  t.set("client_id", a.client_id), t.set("tenant_id", a.tenant.id);
26385
26393
  const l = {
26386
26394
  redirect_uri: r || t.req.url,
@@ -26557,8 +26565,8 @@ var Df = (t, ...e) => {
26557
26565
  }, i;
26558
26566
  }, P1 = (t) => {
26559
26567
  const e = [t], n = j1(e);
26560
- return n.values = e, n.Provider = n, zi.push(n), n;
26561
- }, zi = [], B1 = (t) => {
26568
+ return n.values = e, n.Provider = n, Vi.push(n), n;
26569
+ }, Vi = [], B1 = (t) => {
26562
26570
  const e = [t], n = (r) => {
26563
26571
  e.push(r.value);
26564
26572
  let i;
@@ -26569,8 +26577,8 @@ var Df = (t, ...e) => {
26569
26577
  }
26570
26578
  return i instanceof Promise ? i.then((s) => dn(s, s.callbacks)) : dn(i);
26571
26579
  };
26572
- return n.values = e, n.Provider = n, n[Rf] = j1(e), zi.push(n), n;
26573
- }, cs = (t) => t.values.at(-1), la = {
26580
+ return n.values = e, n.Provider = n, n[Rf] = j1(e), Vi.push(n), n;
26581
+ }, ls = (t) => t.values.at(-1), la = {
26574
26582
  title: [],
26575
26583
  script: ["src"],
26576
26584
  style: ["data-href"],
@@ -26623,7 +26631,7 @@ var Df = (t, ...e) => {
26623
26631
  }, qE = ({ children: t, ...e }) => {
26624
26632
  const n = jf();
26625
26633
  if (n) {
26626
- const r = cs(n);
26634
+ const r = ls(n);
26627
26635
  if (r === "svg" || r === "head")
26628
26636
  return new pn(
26629
26637
  "title",
@@ -26637,13 +26645,13 @@ var Df = (t, ...e) => {
26637
26645
  ...e
26638
26646
  }) => {
26639
26647
  const n = jf();
26640
- return ["src", "async"].some((r) => !e[r]) || n && cs(n) === "head" ? To("script", t, e) : Io("script", t, e, !1);
26648
+ return ["src", "async"].some((r) => !e[r]) || n && ls(n) === "head" ? To("script", t, e) : Io("script", t, e, !1);
26641
26649
  }, VE = ({
26642
26650
  children: t,
26643
26651
  ...e
26644
26652
  }) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, Io("style", t, e, !0)) : To("style", t, e), HE = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? To("link", t, e) : Io("link", t, e, "precedence" in e), KE = ({ children: t, ...e }) => {
26645
26653
  const n = jf();
26646
- return n && cs(n) === "head" ? To("meta", t, e) : Io("meta", t, e, !1);
26654
+ return n && ls(n) === "head" ? To("meta", t, e) : Io("meta", t, e, !1);
26647
26655
  }, L1 = (t, { children: e, ...n }) => new pn(t, n, Co(e ?? [])), GE = (t) => (typeof t.action == "function" && (t.action = sc in t.action ? t.action[sc] : void 0), L1("form", t)), F1 = (t, e) => (typeof e.formAction == "function" && (e.formAction = sc in e.formAction ? e.formAction[sc] : void 0), L1(t, e)), WE = (t) => F1("input", t), XE = (t) => F1("button", t);
26648
26656
  const Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26649
26657
  __proto__: null,
@@ -26766,7 +26774,7 @@ var JE = /* @__PURE__ */ new Map([
26766
26774
  const e = this.tag, n = this.props;
26767
26775
  let { children: r } = this;
26768
26776
  t[0] += `<${e}`;
26769
- const i = Zs && cs(Zs) === "svg" ? (s) => YE(oc(s)) : (s) => oc(s);
26777
+ const i = Zs && ls(Zs) === "svg" ? (s) => YE(oc(s)) : (s) => oc(s);
26770
26778
  for (let [s, a] of Object.entries(n))
26771
26779
  if (s = i(s), s !== "children") {
26772
26780
  if (s === "style" && typeof a == "object") {
@@ -26806,10 +26814,10 @@ var JE = /* @__PURE__ */ new Map([
26806
26814
  });
26807
26815
  if (!(typeof n == "boolean" || n == null))
26808
26816
  if (n instanceof Promise)
26809
- if (zi.length === 0)
26817
+ if (Vi.length === 0)
26810
26818
  t.unshift("", n);
26811
26819
  else {
26812
- const r = zi.map((i) => [i, i.values.at(-1)]);
26820
+ const r = Vi.map((i) => [i, i.values.at(-1)]);
26813
26821
  t.unshift(
26814
26822
  "",
26815
26823
  n.then((i) => (i instanceof pn && (i.localContexts = r), i))
@@ -26887,7 +26895,7 @@ async function ze(t, e, n = !1) {
26887
26895
  if (!i)
26888
26896
  throw new E(400, { message: "Login session not found" });
26889
26897
  t.set("loginSession", i);
26890
- const s = await as(
26898
+ const s = await cs(
26891
26899
  r,
26892
26900
  i.authParams.client_id
26893
26901
  );
@@ -27611,7 +27619,7 @@ var Qs = "_hp", _8 = {
27611
27619
  }, y8 = {
27612
27620
  svg: "2000/svg",
27613
27621
  math: "1998/Math/MathML"
27614
- }, eo = [], op = /* @__PURE__ */ new WeakMap(), Vi = void 0, w8 = () => Vi, zn = (t) => "t" in t, tu = {
27622
+ }, eo = [], op = /* @__PURE__ */ new WeakMap(), Hi = void 0, w8 = () => Hi, zn = (t) => "t" in t, tu = {
27615
27623
  onClick: ["click", !1]
27616
27624
  }, Kg = (t) => {
27617
27625
  if (!t.startsWith("on"))
@@ -27623,7 +27631,7 @@ var Qs = "_hp", _8 = {
27623
27631
  const [, n, r] = e;
27624
27632
  return tu[t] = [(_8[n] || n).toLowerCase(), !!r];
27625
27633
  }
27626
- }, Gg = (t, e) => Vi && t instanceof SVGElement && /[A-Z]/.test(e) && (e in t.style || e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e, v8 = (t, e, n) => {
27634
+ }, Gg = (t, e) => Hi && t instanceof SVGElement && /[A-Z]/.test(e) && (e in t.style || e.match(/^(?:o|pai|str|u|ve)/)) ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e, v8 = (t, e, n) => {
27627
27635
  var r;
27628
27636
  e || (e = {});
27629
27637
  for (let i in e) {
@@ -27712,7 +27720,7 @@ var Qs = "_hp", _8 = {
27712
27720
  zn(t) || ((n = (e = t[Je]) == null ? void 0 : e[1][G1]) == null || n.forEach((l) => {
27713
27721
  var u;
27714
27722
  return (u = l[2]) == null ? void 0 : u.call(l);
27715
- }), (r = op.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(V1)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && (bs.delete(t), pa.delete(t), delete t[Je][3], t.a = !0);
27723
+ }), (r = op.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((l) => l.p = 2)), (s = t.vC) == null || s.forEach(V1)), t.p || ((a = t.e) == null || a.remove(), delete t.e), typeof t.tag == "function" && ($s.delete(t), pa.delete(t), delete t[Je][3], t.a = !0);
27716
27724
  }, H1 = (t, e, n) => {
27717
27725
  t.c = e, K1(t, e, n);
27718
27726
  }, Wg = (t, e) => {
@@ -27767,7 +27775,7 @@ var Qs = "_hp", _8 = {
27767
27775
  Array.isArray(n[x]) && n.splice(x, 1, ...n[x].flat());
27768
27776
  let C = A8(n[x]);
27769
27777
  if (C) {
27770
- typeof C.tag == "function" && !C.tag[R1] && (zi.length > 0 && (C[Je][2] = zi.map((D) => [D, D.values.at(-1)])), (a = t[5]) != null && a.length && (C[Je][3] = t[5].at(-1)));
27778
+ typeof C.tag == "function" && !C.tag[R1] && (Vi.length > 0 && (C[Je][2] = Vi.map((D) => [D, D.values.at(-1)])), (a = t[5]) != null && a.length && (C[Je][3] = t[5].at(-1)));
27771
27779
  let O;
27772
27780
  if (h && h.length) {
27773
27781
  const D = h.findIndex(
@@ -27786,8 +27794,8 @@ var Qs = "_hp", _8 = {
27786
27794
  }
27787
27795
  C = O;
27788
27796
  }
27789
- else if (!zn(C) && Vi) {
27790
- const D = cs(Vi);
27797
+ else if (!zn(C) && Hi) {
27798
+ const D = ls(Hi);
27791
27799
  D && (C.n = D);
27792
27800
  }
27793
27801
  if (!zn(C) && !C.s && (ap(t, C), delete C.f), g.push(C), b && !b.s && !C.s)
@@ -27845,9 +27853,9 @@ var Qs = "_hp", _8 = {
27845
27853
  t[Je] = [0, []];
27846
27854
  else {
27847
27855
  const e = y8[t.tag];
27848
- e && (Vi || (Vi = P1("")), t.props.children = [
27856
+ e && (Hi || (Hi = P1("")), t.props.children = [
27849
27857
  {
27850
- tag: Vi,
27858
+ tag: Hi,
27851
27859
  props: {
27852
27860
  value: t.n = `http://www.w3.org/${e}`,
27853
27861
  children: t.props.children
@@ -27874,13 +27882,13 @@ var Qs = "_hp", _8 = {
27874
27882
  (r = e[Je][2]) == null || r.forEach(([i]) => {
27875
27883
  i.values.pop();
27876
27884
  }), (t[0] !== 1 || !t[1]) && H1(e, e.c, !1);
27877
- }, bs = /* @__PURE__ */ new WeakMap(), Yg = [], fa = async (t, e) => {
27885
+ }, $s = /* @__PURE__ */ new WeakMap(), Yg = [], fa = async (t, e) => {
27878
27886
  t[5] || (t[5] = []);
27879
- const n = bs.get(e);
27887
+ const n = $s.get(e);
27880
27888
  n && n[0](void 0);
27881
27889
  let r;
27882
27890
  const i = new Promise((s) => r = s);
27883
- if (bs.set(e, [
27891
+ if ($s.set(e, [
27884
27892
  r,
27885
27893
  () => {
27886
27894
  t[2] ? t[2](t, e, (s) => {
@@ -27891,8 +27899,8 @@ var Qs = "_hp", _8 = {
27891
27899
  Yg.at(-1).add(e);
27892
27900
  else {
27893
27901
  await Promise.resolve();
27894
- const s = bs.get(e);
27895
- s && (bs.delete(e), s[1]());
27902
+ const s = $s.get(e);
27903
+ s && ($s.delete(e), s[1]());
27896
27904
  }
27897
27905
  return i;
27898
27906
  }, E8 = (t, e, n) => ({
@@ -28078,7 +28086,7 @@ var Qs = "_hp", _8 = {
28078
28086
  s
28079
28087
  );
28080
28088
  }, O8 = (t) => {
28081
- const e = w8(), n = e && cs(e);
28089
+ const e = w8(), n = e && ls(e);
28082
28090
  return n != null && n.endsWith("svg") ? {
28083
28091
  tag: "title",
28084
28092
  props: t,
@@ -28962,7 +28970,7 @@ const ou = (t) => {
28962
28970
  a.tenant.id,
28963
28971
  d.login_id
28964
28972
  ) : void 0;
28965
- if (await Xi({
28973
+ if (await Ji({
28966
28974
  userAdapter: t.env.data.users,
28967
28975
  tenant_id: a.tenant.id,
28968
28976
  username: l.authParams.username,
@@ -29038,7 +29046,7 @@ const ou = (t) => {
29038
29046
  );
29039
29047
  }
29040
29048
  }
29041
- ), gs = (t) => {
29049
+ ), ms = (t) => {
29042
29050
  const { error: e, theme: n, branding: r, client: i, email: s } = t;
29043
29051
  return /* @__PURE__ */ _(
29044
29052
  nt,
@@ -29101,7 +29109,7 @@ const ou = (t) => {
29101
29109
  throw new E(400, { message: "Username required" });
29102
29110
  return t.html(
29103
29111
  /* @__PURE__ */ _(
29104
- gs,
29112
+ ms,
29105
29113
  {
29106
29114
  theme: n,
29107
29115
  branding: r,
@@ -29152,7 +29160,7 @@ const ou = (t) => {
29152
29160
  if (r !== i)
29153
29161
  return t.html(
29154
29162
  /* @__PURE__ */ _(
29155
- gs,
29163
+ ms,
29156
29164
  {
29157
29165
  error: B.t("create_account_passwords_didnt_match"),
29158
29166
  theme: a,
@@ -29166,7 +29174,7 @@ const ou = (t) => {
29166
29174
  if (!Cf(r))
29167
29175
  return t.html(
29168
29176
  /* @__PURE__ */ _(
29169
- gs,
29177
+ ms,
29170
29178
  {
29171
29179
  error: B.t("create_account_weak_password"),
29172
29180
  theme: a,
@@ -29177,7 +29185,7 @@ const ou = (t) => {
29177
29185
  ),
29178
29186
  400
29179
29187
  );
29180
- const p = await Xi({
29188
+ const p = await Ji({
29181
29189
  userAdapter: s.data.users,
29182
29190
  tenant_id: u.tenant.id,
29183
29191
  username: d.authParams.username,
@@ -29193,7 +29201,7 @@ const ou = (t) => {
29193
29201
  ))
29194
29202
  return t.html(
29195
29203
  /* @__PURE__ */ _(
29196
- gs,
29204
+ ms,
29197
29205
  {
29198
29206
  error: "Code not found or expired",
29199
29207
  theme: a,
@@ -29218,7 +29226,7 @@ const ou = (t) => {
29218
29226
  } catch {
29219
29227
  return t.html(
29220
29228
  /* @__PURE__ */ _(
29221
- gs,
29229
+ ms,
29222
29230
  {
29223
29231
  error: "The password could not be reset",
29224
29232
  theme: a,
@@ -30548,7 +30556,7 @@ const ou = (t) => {
30548
30556
  throw new E(400, {
30549
30557
  message: "Username not found in state"
30550
30558
  });
30551
- const d = await Xi({
30559
+ const d = await Ji({
30552
30560
  userAdapter: r.data.users,
30553
30561
  tenant_id: i.tenant.id,
30554
30562
  username: u,
@@ -33030,7 +33038,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
33030
33038
  }, me.prototype.numberFormat = /^\s*-?[0-9]*\.?[0-9]+\s*$/, me.prototype.parse = function(c) {
33031
33039
  return this.numberFormat.test(c) ? parseFloat(c) : Number.NaN;
33032
33040
  };
33033
- function ls(c) {
33041
+ function us(c) {
33034
33042
  for (var f = c.split("e-"), y = f[0].replace(".", ""), $ = Number(f[1]), v = 0; v < $ - 1; v += 1)
33035
33043
  y = "0" + y;
33036
33044
  return "0." + y;
@@ -33042,7 +33050,7 @@ var N6 = {}, ri = {}, Do = {}, bl = {};
33042
33050
  }
33043
33051
  me.prototype.toString = function() {
33044
33052
  var c = this.num.toString();
33045
- return c.indexOf("e-") !== -1 ? ls(c) : c.indexOf("e") !== -1 ? Fo(c) : c;
33053
+ return c.indexOf("e-") !== -1 ? us(c) : c.indexOf("e") !== -1 ? Fo(c) : c;
33046
33054
  }, me.prototype.evaluate = function(c) {
33047
33055
  return this;
33048
33056
  }, me.prototype.string = function() {
@@ -34583,7 +34591,7 @@ function Rt(t, e) {
34583
34591
  }
34584
34592
  n.constructor != t && (typeof t != "function" && console.error("unknown Class:" + t), n.constructor = t);
34585
34593
  }
34586
- var jt = {}, hn = jt.ELEMENT_NODE = 1, Hi = jt.ATTRIBUTE_NODE = 2, ac = jt.TEXT_NODE = 3, iy = jt.CDATA_SECTION_NODE = 4, sy = jt.ENTITY_REFERENCE_NODE = 5, rS = jt.ENTITY_NODE = 6, oy = jt.PROCESSING_INSTRUCTION_NODE = 7, ay = jt.COMMENT_NODE = 8, cy = jt.DOCUMENT_NODE = 9, ly = jt.DOCUMENT_TYPE_NODE = 10, tr = jt.DOCUMENT_FRAGMENT_NODE = 11, iS = jt.NOTATION_NODE = 12, wt = {}, ct = {};
34594
+ var jt = {}, hn = jt.ELEMENT_NODE = 1, Ki = jt.ATTRIBUTE_NODE = 2, ac = jt.TEXT_NODE = 3, iy = jt.CDATA_SECTION_NODE = 4, sy = jt.ENTITY_REFERENCE_NODE = 5, rS = jt.ENTITY_NODE = 6, oy = jt.PROCESSING_INSTRUCTION_NODE = 7, ay = jt.COMMENT_NODE = 8, cy = jt.DOCUMENT_NODE = 9, ly = jt.DOCUMENT_TYPE_NODE = 10, tr = jt.DOCUMENT_FRAGMENT_NODE = 11, iS = jt.NOTATION_NODE = 12, wt = {}, ct = {};
34587
34595
  wt.INDEX_SIZE_ERR = (ct[1] = "Index size error", 1);
34588
34596
  wt.DOMSTRING_SIZE_ERR = (ct[2] = "DOMString size error", 2);
34589
34597
  var Tt = wt.HIERARCHY_REQUEST_ERR = (ct[3] = "Hierarchy request error", 3);
@@ -34649,7 +34657,7 @@ Gn.prototype = {
34649
34657
  return Array.prototype.indexOf.call(this, t);
34650
34658
  }
34651
34659
  };
34652
- function Ki(t, e) {
34660
+ function Gi(t, e) {
34653
34661
  this._node = t, this._refresh = e, Mf(this);
34654
34662
  }
34655
34663
  function Mf(t) {
@@ -34662,10 +34670,10 @@ function Mf(t) {
34662
34670
  Ro(n, t), t._inc = e;
34663
34671
  }
34664
34672
  }
34665
- Ki.prototype.item = function(t) {
34673
+ Gi.prototype.item = function(t) {
34666
34674
  return Mf(this), this[t] || null;
34667
34675
  };
34668
- Rt(Ki, Gn);
34676
+ Rt(Gi, Gn);
34669
34677
  function cc() {
34670
34678
  }
34671
34679
  function dy(t, e) {
@@ -34884,7 +34892,7 @@ Le.prototype = {
34884
34892
  if (Object.prototype.hasOwnProperty.call(n, r) && n[r] === t)
34885
34893
  return r;
34886
34894
  }
34887
- e = e.nodeType == Hi ? e.ownerDocument : e.parentNode;
34895
+ e = e.nodeType == Ki ? e.ownerDocument : e.parentNode;
34888
34896
  }
34889
34897
  return null;
34890
34898
  },
@@ -34894,7 +34902,7 @@ Le.prototype = {
34894
34902
  var n = e._nsMap;
34895
34903
  if (n && Object.prototype.hasOwnProperty.call(n, t))
34896
34904
  return n[t];
34897
- e = e.nodeType == Hi ? e.ownerDocument : e.parentNode;
34905
+ e = e.nodeType == Ki ? e.ownerDocument : e.parentNode;
34898
34906
  }
34899
34907
  return null;
34900
34908
  },
@@ -35120,7 +35128,7 @@ jo.prototype = {
35120
35128
  */
35121
35129
  getElementsByClassName: function(t) {
35122
35130
  var e = dm(t);
35123
- return new Ki(this, function(n) {
35131
+ return new Gi(this, function(n) {
35124
35132
  var r = [];
35125
35133
  return e.length > 0 && ro(n.documentElement, function(i) {
35126
35134
  if (i !== n && i.nodeType === hn) {
@@ -35240,7 +35248,7 @@ si.prototype = {
35240
35248
  return this.attributes.getNamedItemNS(t, e);
35241
35249
  },
35242
35250
  getElementsByTagName: function(t) {
35243
- return new Ki(this, function(e) {
35251
+ return new Gi(this, function(e) {
35244
35252
  var n = [];
35245
35253
  return ro(e, function(r) {
35246
35254
  r !== e && r.nodeType == hn && (t === "*" || r.tagName == t) && n.push(r);
@@ -35248,7 +35256,7 @@ si.prototype = {
35248
35256
  });
35249
35257
  },
35250
35258
  getElementsByTagNameNS: function(t, e) {
35251
- return new Ki(this, function(n) {
35259
+ return new Gi(this, function(n) {
35252
35260
  var r = [];
35253
35261
  return ro(n, function(i) {
35254
35262
  i !== n && i.nodeType === hn && (t === "*" || i.namespaceURI === t) && (e === "*" || i.localName == e) && r.push(i);
@@ -35261,7 +35269,7 @@ jo.prototype.getElementsByTagNameNS = si.prototype.getElementsByTagNameNS;
35261
35269
  Rt(si, Le);
35262
35270
  function uc() {
35263
35271
  }
35264
- uc.prototype.nodeType = Hi;
35272
+ uc.prototype.nodeType = Ki;
35265
35273
  Rt(uc, Le);
35266
35274
  function Po() {
35267
35275
  }
@@ -35442,7 +35450,7 @@ function Si(t, e, n, r, i) {
35442
35450
  for (var D = t.firstChild; D; )
35443
35451
  Si(D, e, n, r, i.slice()), D = D.nextSibling;
35444
35452
  return;
35445
- case Hi:
35453
+ case Ki:
35446
35454
  return du(e, t.name, t.value);
35447
35455
  case ac:
35448
35456
  return e.push(
@@ -35478,7 +35486,7 @@ function by(t, e, n) {
35478
35486
  r = e.cloneNode(!1), r.ownerDocument = t;
35479
35487
  case tr:
35480
35488
  break;
35481
- case Hi:
35489
+ case Ki:
35482
35490
  n = !0;
35483
35491
  break;
35484
35492
  }
@@ -35501,7 +35509,7 @@ function up(t, e, n) {
35501
35509
  for (var d = 0; d < u; d++)
35502
35510
  r.setAttributeNode(up(t, a.item(d), !0));
35503
35511
  break;
35504
- case Hi:
35512
+ case Ki:
35505
35513
  n = !0;
35506
35514
  }
35507
35515
  if (n)
@@ -35526,7 +35534,7 @@ try {
35526
35534
  return e.nodeValue;
35527
35535
  }
35528
35536
  };
35529
- Object.defineProperty(Ki.prototype, "length", {
35537
+ Object.defineProperty(Gi.prototype, "length", {
35530
35538
  get: function() {
35531
35539
  return Mf(this), this.$$length;
35532
35540
  }
@@ -37697,12 +37705,12 @@ var kl = {}, xy = {};
37697
37705
  zwnj: "‌"
37698
37706
  }), t.entityMap = t.HTML_ENTITIES;
37699
37707
  })(xy);
37700
- var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"), ms = 0, fr = 1, mi = 2, _s = 3, _i = 4, yi = 5, ys = 6, Yo = 7;
37701
- function Gi(t, e) {
37702
- this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Gi);
37708
+ var Xf = {}, io = lr.NAMESPACE, dp = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ym = new RegExp("[\\-\\.0-9" + dp.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), wm = new RegExp("^" + dp.source + ym.source + "*(?::" + dp.source + ym.source + "*)?$"), _s = 0, fr = 1, mi = 2, ys = 3, _i = 4, yi = 5, ws = 6, Yo = 7;
37709
+ function Wi(t, e) {
37710
+ this.message = t, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Wi);
37703
37711
  }
37704
- Gi.prototype = new Error();
37705
- Gi.prototype.name = Gi.name;
37712
+ Wi.prototype = new Error();
37713
+ Wi.prototype.name = Wi.name;
37706
37714
  function Ay() {
37707
37715
  }
37708
37716
  Ay.prototype = {
@@ -37785,7 +37793,7 @@ function dS(t, e, n, r, i) {
37785
37793
  io.isHTML(Y.uri) && !Y.closed ? j = fS(t, j, Y.tagName, a, r) : j++;
37786
37794
  }
37787
37795
  } catch (L) {
37788
- if (L instanceof Gi)
37796
+ if (L instanceof Wi)
37789
37797
  throw L;
37790
37798
  i.error("element parse error: " + L), j = -1;
37791
37799
  }
@@ -37807,20 +37815,20 @@ function pS(t, e, n, r, i, s) {
37807
37815
  x
37808
37816
  );
37809
37817
  }
37810
- for (var l, u, d = ++e, p = ms; ; ) {
37818
+ for (var l, u, d = ++e, p = _s; ; ) {
37811
37819
  var h = t.charAt(d);
37812
37820
  switch (h) {
37813
37821
  case "=":
37814
37822
  if (p === fr)
37815
- l = t.slice(e, d), p = _s;
37823
+ l = t.slice(e, d), p = ys;
37816
37824
  else if (p === mi)
37817
- p = _s;
37825
+ p = ys;
37818
37826
  else
37819
37827
  throw new Error("attribute equal must after attrName");
37820
37828
  break;
37821
37829
  case "'":
37822
37830
  case '"':
37823
- if (p === _s || p === fr)
37831
+ if (p === ys || p === fr)
37824
37832
  if (p === fr && (s.warning('attribute value must after "="'), l = t.slice(e, d)), e = d + 1, d = t.indexOf(h, e), d > 0)
37825
37833
  u = t.slice(e, d), a(l, u, e - 1), p = yi;
37826
37834
  else
@@ -37832,10 +37840,10 @@ function pS(t, e, n, r, i, s) {
37832
37840
  break;
37833
37841
  case "/":
37834
37842
  switch (p) {
37835
- case ms:
37843
+ case _s:
37836
37844
  n.setTagName(t.slice(e, d));
37837
37845
  case yi:
37838
- case ys:
37846
+ case ws:
37839
37847
  case Yo:
37840
37848
  p = Yo, n.closed = !0;
37841
37849
  case _i:
@@ -37849,13 +37857,13 @@ function pS(t, e, n, r, i, s) {
37849
37857
  }
37850
37858
  break;
37851
37859
  case "":
37852
- return s.error("unexpected end of input"), p == ms && n.setTagName(t.slice(e, d)), d;
37860
+ return s.error("unexpected end of input"), p == _s && n.setTagName(t.slice(e, d)), d;
37853
37861
  case ">":
37854
37862
  switch (p) {
37855
- case ms:
37863
+ case _s:
37856
37864
  n.setTagName(t.slice(e, d));
37857
37865
  case yi:
37858
- case ys:
37866
+ case ws:
37859
37867
  case Yo:
37860
37868
  break;
37861
37869
  case _i:
@@ -37864,7 +37872,7 @@ function pS(t, e, n, r, i, s) {
37864
37872
  case mi:
37865
37873
  p === mi && (u = l), p == _i ? (s.warning('attribute "' + u + '" missed quot(")!'), a(l, u, e)) : ((!io.isHTML(r[""]) || !u.match(/^(?:disabled|checked|selected)$/i)) && s.warning('attribute "' + u + '" missed value!! "' + u + '" instead!!'), a(u, u, e));
37866
37874
  break;
37867
- case _s:
37875
+ case ys:
37868
37876
  throw new Error("attribute value missed!!");
37869
37877
  }
37870
37878
  return d;
@@ -37873,8 +37881,8 @@ function pS(t, e, n, r, i, s) {
37873
37881
  default:
37874
37882
  if (h <= " ")
37875
37883
  switch (p) {
37876
- case ms:
37877
- n.setTagName(t.slice(e, d)), p = ys;
37884
+ case _s:
37885
+ n.setTagName(t.slice(e, d)), p = ws;
37878
37886
  break;
37879
37887
  case fr:
37880
37888
  l = t.slice(e, d), p = mi;
@@ -37883,7 +37891,7 @@ function pS(t, e, n, r, i, s) {
37883
37891
  var u = t.slice(e, d);
37884
37892
  s.warning('attribute "' + u + '" missed quot(")!!'), a(l, u, e);
37885
37893
  case yi:
37886
- p = ys;
37894
+ p = ws;
37887
37895
  break;
37888
37896
  }
37889
37897
  else
@@ -37893,10 +37901,10 @@ function pS(t, e, n, r, i, s) {
37893
37901
  break;
37894
37902
  case yi:
37895
37903
  s.warning('attribute space is required"' + l + '"!!');
37896
- case ys:
37904
+ case ws:
37897
37905
  p = fr, e = d;
37898
37906
  break;
37899
- case _s:
37907
+ case ys:
37900
37908
  p = _i, e = d;
37901
37909
  break;
37902
37910
  case Yo:
@@ -38025,7 +38033,7 @@ function _S(t, e) {
38025
38033
  if (r.push(n), n[1]) return r;
38026
38034
  }
38027
38035
  Xf.XMLReader = Ay;
38028
- Xf.ParseError = Gi;
38036
+ Xf.ParseError = Wi;
38029
38037
  var yS = lr, wS = cr, $m = xy, ky = Xf, vS = wS.DOMImplementation, xm = yS.NAMESPACE, bS = ky.ParseError, $S = ky.XMLReader;
38030
38038
  function Ny(t) {
38031
38039
  return t.replace(/\r[\n\u0085]/g, `
@@ -40507,7 +40515,7 @@ function mG(t, e) {
40507
40515
  ...h || {},
40508
40516
  ...p
40509
40517
  });
40510
- return g.options = xs.passthrough().parse({
40518
+ return g.options = As.passthrough().parse({
40511
40519
  ...h.options || {},
40512
40520
  ...p.options
40513
40521
  }), g;
@@ -40553,7 +40561,7 @@ function mG(t, e) {
40553
40561
  ...l,
40554
40562
  ...a
40555
40563
  });
40556
- return u.options = xs.passthrough().parse({
40564
+ return u.options = As.passthrough().parse({
40557
40565
  ...l.options || {},
40558
40566
  ...a.options
40559
40567
  }), u;
@@ -40573,7 +40581,7 @@ function mG(t, e) {
40573
40581
  ...p,
40574
40582
  ...d
40575
40583
  });
40576
- return h.options = xs.passthrough().parse({
40584
+ return h.options = As.passthrough().parse({
40577
40585
  ...p.options || {},
40578
40586
  ...d.options
40579
40587
  }), h;
@@ -40659,7 +40667,7 @@ export {
40659
40667
  fw as NodeType,
40660
40668
  f6 as PreSignUpConfirmationPage,
40661
40669
  o6 as PreSignUpPage,
40662
- gs as ResetPasswordPage,
40670
+ ms as ResetPasswordPage,
40663
40671
  gi as SignUpPage,
40664
40672
  Wo as SocialButton,
40665
40673
  f8 as Spinner,
@@ -40686,7 +40694,7 @@ export {
40686
40694
  Pw as colorsSchema,
40687
40695
  pw as componentSchema,
40688
40696
  yu as connectionInsertSchema,
40689
- xs as connectionOptionsSchema,
40697
+ As as connectionOptionsSchema,
40690
40698
  kn as connectionSchema,
40691
40699
  so as coordinatesSchema,
40692
40700
  ml as createInMemoryCache,
@@ -40702,11 +40710,11 @@ export {
40702
40710
  AG as formControlSchema,
40703
40711
  vu as formInsertSchema,
40704
40712
  Aw as formNodeComponentDefinition,
40705
- ws as formSchema,
40713
+ vs as formSchema,
40706
40714
  dw as genericComponentSchema,
40707
40715
  mw as genericNodeSchema,
40708
40716
  Tl as hookInsertSchema,
40709
- vs as hookSchema,
40717
+ bs as hookSchema,
40710
40718
  iw as identitySchema,
40711
40719
  FX as init,
40712
40720
  PX as injectTailwindCSS,
@@ -40754,7 +40762,7 @@ export {
40754
40762
  hw as stepNodeSchema,
40755
40763
  Y1 as tailwindCss,
40756
40764
  wu as tenantInsertSchema,
40757
- As as tenantSchema,
40765
+ Es as tenantSchema,
40758
40766
  Uw as themeInsertSchema,
40759
40767
  Il as themeSchema,
40760
40768
  Lm as tokenResponseSchema,