@opensecret/react 1.4.1 → 1.4.3

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.
@@ -1,10 +1,10 @@
1
- var Dy = Object.defineProperty;
1
+ var My = Object.defineProperty;
2
2
  var Cf = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var $y = (r, e, t) => e in r ? Dy(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
- var Ge = (r, e, t) => $y(r, typeof e != "symbol" ? e + "" : e, t), Vc = (r, e, t) => e.has(r) || Cf("Cannot " + t);
7
- var $ = (r, e, t) => (Vc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), rr = (r, e, t) => e.has(r) ? Cf("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), kt = (r, e, t, n) => (Vc(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Me = (r, e, t) => (Vc(r, e, "access private method"), t);
5
+ var Vy = (r, e, t) => e in r ? My(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
+ var Ge = (r, e, t) => Vy(r, typeof e != "symbol" ? e + "" : e, t), Vc = (r, e, t) => e.has(r) || Cf("Cannot " + t);
7
+ var $ = (r, e, t) => (Vc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), rr = (r, e, t) => e.has(r) ? Cf("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), kt = (r, e, t, n) => (Vc(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Ve = (r, e, t) => (Vc(r, e, "access private method"), t);
8
8
  var Bf = (r, e, t, n) => ({
9
9
  set _(i) {
10
10
  kt(r, e, i, t);
@@ -16,7 +16,7 @@ var Bf = (r, e, t, n) => ({
16
16
  import { jsx as Sd } from "react/jsx-runtime";
17
17
  import { createContext as _d, useState as Do, useEffect as Os, useContext as Ed } from "react";
18
18
  const hr = 256;
19
- class My {
19
+ class Ly {
20
20
  // TODO(dchest): methods to encode chunk-by-chunk.
21
21
  constructor(e = "=") {
22
22
  Ge(this, "_paddingCharacter");
@@ -84,8 +84,8 @@ class My {
84
84
  return t;
85
85
  }
86
86
  }
87
- const Id = new My();
88
- function Br(r) {
87
+ const Id = new Ly();
88
+ function _r(r) {
89
89
  return Id.encode(r);
90
90
  }
91
91
  function Rs(r) {
@@ -97,15 +97,15 @@ function Gt(r, e = new Uint8Array(4), t = 0) {
97
97
  function Of(r, e = new Uint8Array(8), t = 0) {
98
98
  return Gt(r >>> 0, e, t), Gt(r / 4294967296 >>> 0, e, t + 4), e;
99
99
  }
100
- function Cr(r) {
100
+ function Br(r) {
101
101
  for (let e = 0; e < r.length; e++)
102
102
  r[e] = 0;
103
103
  return r;
104
104
  }
105
- const Vy = 20;
106
- function Ly(r, e, t) {
105
+ const Hy = 20;
106
+ function Fy(r, e, t) {
107
107
  let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], v = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], b = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], H = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], T = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], m = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], k = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], D = n, pe = i, Ze = s, Te = o, Be = c, et = u, yt = h, pt = v, ue = b, fe = H, ye = T, xe = m, Re = A, Je = k, ie = I, Ee = P;
108
- for (let mt = 0; mt < Vy; mt += 2)
108
+ for (let mt = 0; mt < Hy; mt += 2)
109
109
  D = D + Be | 0, Re ^= D, Re = Re >>> 16 | Re << 16, ue = ue + Re | 0, Be ^= ue, Be = Be >>> 20 | Be << 12, pe = pe + et | 0, Je ^= pe, Je = Je >>> 16 | Je << 16, fe = fe + Je | 0, et ^= fe, et = et >>> 20 | et << 12, Ze = Ze + yt | 0, ie ^= Ze, ie = ie >>> 16 | ie << 16, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 20 | yt << 12, Te = Te + pt | 0, Ee ^= Te, Ee = Ee >>> 16 | Ee << 16, xe = xe + Ee | 0, pt ^= xe, pt = pt >>> 20 | pt << 12, Ze = Ze + yt | 0, ie ^= Ze, ie = ie >>> 24 | ie << 8, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 25 | yt << 7, Te = Te + pt | 0, Ee ^= Te, Ee = Ee >>> 24 | Ee << 8, xe = xe + Ee | 0, pt ^= xe, pt = pt >>> 25 | pt << 7, pe = pe + et | 0, Je ^= pe, Je = Je >>> 24 | Je << 8, fe = fe + Je | 0, et ^= fe, et = et >>> 25 | et << 7, D = D + Be | 0, Re ^= D, Re = Re >>> 24 | Re << 8, ue = ue + Re | 0, Be ^= ue, Be = Be >>> 25 | Be << 7, D = D + et | 0, Ee ^= D, Ee = Ee >>> 16 | Ee << 16, ye = ye + Ee | 0, et ^= ye, et = et >>> 20 | et << 12, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 16 | Re << 16, xe = xe + Re | 0, yt ^= xe, yt = yt >>> 20 | yt << 12, Ze = Ze + pt | 0, Je ^= Ze, Je = Je >>> 16 | Je << 16, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 20 | pt << 12, Te = Te + Be | 0, ie ^= Te, ie = ie >>> 16 | ie << 16, fe = fe + ie | 0, Be ^= fe, Be = Be >>> 20 | Be << 12, Ze = Ze + pt | 0, Je ^= Ze, Je = Je >>> 24 | Je << 8, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 25 | pt << 7, Te = Te + Be | 0, ie ^= Te, ie = ie >>> 24 | ie << 8, fe = fe + ie | 0, Be ^= fe, Be = Be >>> 25 | Be << 7, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 24 | Re << 8, xe = xe + Re | 0, yt ^= xe, yt = yt >>> 25 | yt << 7, D = D + et | 0, Ee ^= D, Ee = Ee >>> 24 | Ee << 8, ye = ye + Ee | 0, et ^= ye, et = et >>> 25 | et << 7;
110
110
  Gt(D + n | 0, r, 0), Gt(pe + i | 0, r, 4), Gt(Ze + s | 0, r, 8), Gt(Te + o | 0, r, 12), Gt(Be + c | 0, r, 16), Gt(et + u | 0, r, 20), Gt(yt + h | 0, r, 24), Gt(pt + v | 0, r, 28), Gt(ue + b | 0, r, 32), Gt(fe + H | 0, r, 36), Gt(ye + T | 0, r, 40), Gt(xe + m | 0, r, 44), Gt(Re + A | 0, r, 48), Gt(Je + k | 0, r, 52), Gt(ie + I | 0, r, 56), Gt(Ee + P | 0, r, 60);
111
111
  }
@@ -126,24 +126,24 @@ function il(r, e, t, n, i = 0) {
126
126
  }
127
127
  const c = new Uint8Array(64);
128
128
  for (let u = 0; u < t.length; u += 64) {
129
- Ly(c, s, r);
129
+ Fy(c, s, r);
130
130
  for (let h = u; h < u + 64 && h < t.length; h++)
131
131
  n[h] = t[h] ^ c[h - u];
132
- Hy(s, 0, o);
132
+ zy(s, 0, o);
133
133
  }
134
- return Cr(c), i === 0 && Cr(s), n;
134
+ return Br(c), i === 0 && Br(s), n;
135
135
  }
136
136
  function Tf(r, e, t, n = 0) {
137
- return Cr(t), il(r, e, t, t, n);
137
+ return Br(t), il(r, e, t, t, n);
138
138
  }
139
- function Hy(r, e, t) {
139
+ function zy(r, e, t) {
140
140
  let n = 1;
141
141
  for (; t--; )
142
142
  n = n + (r[e] & 255) | 0, r[e] = n & 255, n >>>= 8, e++;
143
143
  if (n > 0)
144
144
  throw new Error("ChaCha: counter overflow");
145
145
  }
146
- function Fy(r, e) {
146
+ function Gy(r, e) {
147
147
  if (r.length !== e.length)
148
148
  return 0;
149
149
  let t = 0;
@@ -151,13 +151,13 @@ function Fy(r, e) {
151
151
  t |= r[n] ^ e[n];
152
152
  return 1 & t - 1 >>> 8;
153
153
  }
154
- function zy(r, e) {
155
- return r.length === 0 || e.length === 0 ? !1 : Fy(r, e) !== 0;
154
+ function Ky(r, e) {
155
+ return r.length === 0 || e.length === 0 ? !1 : Gy(r, e) !== 0;
156
156
  }
157
- const Gy = 16;
158
- class Ky {
157
+ const qy = 16;
158
+ class Zy {
159
159
  constructor(e) {
160
- Ge(this, "digestLength", Gy);
160
+ Ge(this, "digestLength", qy);
161
161
  Ge(this, "_buffer", new Uint8Array(16));
162
162
  Ge(this, "_r", new Uint16Array(10));
163
163
  Ge(this, "_h", new Uint16Array(10));
@@ -268,19 +268,19 @@ class Ky {
268
268
  return this.finish(e), e;
269
269
  }
270
270
  clean() {
271
- return Cr(this._buffer), Cr(this._r), Cr(this._h), Cr(this._pad), this._leftover = 0, this._fin = 0, this._finished = !0, this;
271
+ return Br(this._buffer), Br(this._r), Br(this._h), Br(this._pad), this._leftover = 0, this._fin = 0, this._finished = !0, this;
272
272
  }
273
273
  }
274
- const qy = 32, Zy = 12, Wy = 16, Nf = new Uint8Array(16);
274
+ const Wy = 32, Yy = 12, Jy = 16, Nf = new Uint8Array(16);
275
275
  class Nu {
276
276
  /**
277
277
  * Creates a new instance with the given 32-byte key.
278
278
  */
279
279
  constructor(e) {
280
- Ge(this, "nonceLength", Zy);
281
- Ge(this, "tagLength", Wy);
280
+ Ge(this, "nonceLength", Yy);
281
+ Ge(this, "tagLength", Jy);
282
282
  Ge(this, "_key");
283
- if (e.length !== qy)
283
+ if (e.length !== Wy)
284
284
  throw new Error("ChaCha20Poly1305 needs 32-byte key");
285
285
  this._key = new Uint8Array(e);
286
286
  }
@@ -311,7 +311,7 @@ class Nu {
311
311
  u = i;
312
312
  } else
313
313
  u = new Uint8Array(c);
314
- return il(this._key, s, t, u, 4), this._authenticate(u.subarray(u.length - this.tagLength, u.length), o, u.subarray(0, u.length - this.tagLength), n), Cr(s), u;
314
+ return il(this._key, s, t, u, 4), this._authenticate(u.subarray(u.length - this.tagLength, u.length), o, u.subarray(0, u.length - this.tagLength), n), Br(s), u;
315
315
  }
316
316
  /**
317
317
  * Authenticates sealed ciphertext (which includes authentication tag) and
@@ -336,7 +336,7 @@ class Nu {
336
336
  const o = new Uint8Array(32);
337
337
  Tf(this._key, s, o, 4);
338
338
  const c = new Uint8Array(this.tagLength);
339
- if (this._authenticate(c, o, t.subarray(0, t.length - this.tagLength), n), !zy(c, t.subarray(t.length - this.tagLength, t.length)))
339
+ if (this._authenticate(c, o, t.subarray(0, t.length - this.tagLength), n), !Ky(c, t.subarray(t.length - this.tagLength, t.length)))
340
340
  return null;
341
341
  const u = t.length - this.tagLength;
342
342
  let h;
@@ -346,24 +346,24 @@ class Nu {
346
346
  h = i;
347
347
  } else
348
348
  h = new Uint8Array(u);
349
- return il(this._key, s, t.subarray(0, t.length - this.tagLength), h, 4), Cr(s), h;
349
+ return il(this._key, s, t.subarray(0, t.length - this.tagLength), h, 4), Br(s), h;
350
350
  }
351
351
  clean() {
352
- return Cr(this._key), this;
352
+ return Br(this._key), this;
353
353
  }
354
354
  _authenticate(e, t, n, i) {
355
- const s = new Ky(t);
355
+ const s = new Zy(t);
356
356
  i && (s.update(i), i.length % 16 > 0 && s.update(Nf.subarray(i.length % 16))), s.update(n), n.length % 16 > 0 && s.update(Nf.subarray(n.length % 16));
357
357
  const o = new Uint8Array(8);
358
358
  i && Of(i.length, o), s.update(o), Of(n.length, o), s.update(o);
359
359
  const c = s.digest();
360
360
  for (let u = 0; u < c.length; u++)
361
361
  e[u] = c[u];
362
- s.clean(), Cr(c), Cr(o);
362
+ s.clean(), Br(c), Br(o);
363
363
  }
364
364
  }
365
365
  const Pf = 65536;
366
- class Yy {
366
+ class Xy {
367
367
  constructor() {
368
368
  Ge(this, "isAvailable", !1);
369
369
  Ge(this, "isInstantiated", !1);
@@ -378,13 +378,13 @@ class Yy {
378
378
  return t;
379
379
  }
380
380
  }
381
- const Jy = new Yy();
382
- function Xy(r, e = Jy) {
381
+ const Qy = new Xy();
382
+ function eg(r, e = Qy) {
383
383
  return e.randomBytes(r);
384
384
  }
385
385
  function kd(r, e) {
386
- const t = new Nu(r), n = Xy(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
387
- return c.set(n), c.set(o, n.length), Br(c);
386
+ const t = new Nu(r), n = eg(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
387
+ return c.set(n), c.set(o, n.length), _r(c);
388
388
  }
389
389
  function sl(r, e) {
390
390
  const t = new Nu(r), n = Rs(e), i = 12, s = n.slice(0, i), o = n.slice(i), c = t.open(s, o);
@@ -393,10 +393,10 @@ function sl(r, e) {
393
393
  return new TextDecoder().decode(c);
394
394
  }
395
395
  var ol = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
396
- function Qy(r) {
396
+ function tg(r) {
397
397
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
398
398
  }
399
- function eg(r) {
399
+ function rg(r) {
400
400
  if (r.__esModule) return r;
401
401
  var e = r.default;
402
402
  if (typeof e == "function") {
@@ -635,8 +635,8 @@ var jf;
635
635
  return N;
636
636
  if (N.length <= 0)
637
637
  return be;
638
- for (var _t = new T(), Et = [], De = 0, Z = N; De < Z.length; De++) {
639
- var ee = Z[De], ce = _t.has(ee);
638
+ for (var _t = new T(), Et = [], $e = 0, Z = N; $e < Z.length; $e++) {
639
+ var ee = Z[$e], ce = _t.has(ee);
640
640
  ce || (_t.add(ee), Et.push(ee));
641
641
  }
642
642
  for (var ge = 0, tt = be; ge < tt.length; ge++) {
@@ -828,7 +828,7 @@ var jf;
828
828
  break;
829
829
  }
830
830
  }
831
- function De(ge, tt) {
831
+ function $e(ge, tt) {
832
832
  if (!ae(C)) {
833
833
  if (C.isProviderFor(ge, tt))
834
834
  return C;
@@ -851,7 +851,7 @@ var jf;
851
851
  }
852
852
  function Z(ge, tt) {
853
853
  var nt = be.get(ge), bt;
854
- return ae(nt) || (bt = nt.get(tt)), ae(bt) && (bt = De(ge, tt), ae(bt) || (ae(nt) && (nt = new H(), be.set(ge, nt)), nt.set(tt, bt))), bt;
854
+ return ae(nt) || (bt = nt.get(tt)), ae(bt) && (bt = $e(ge, tt), ae(bt) || (ae(nt) && (nt = new H(), be.set(ge, nt)), nt.set(tt, bt))), bt;
855
855
  }
856
856
  function ee(ge) {
857
857
  if (ae(ge))
@@ -889,7 +889,7 @@ var jf;
889
889
  OrdinaryDefineOwnMetadata: Et,
890
890
  OrdinaryHasOwnMetadata: be,
891
891
  OrdinaryGetOwnMetadata: _t,
892
- OrdinaryOwnMetadataKeys: De,
892
+ OrdinaryOwnMetadataKeys: $e,
893
893
  OrdinaryDeleteMetadata: Z
894
894
  };
895
895
  return k.registerProvider(N), N;
@@ -937,7 +937,7 @@ var jf;
937
937
  );
938
938
  nt.set(ee, ce);
939
939
  }
940
- function De(ee, ce) {
940
+ function $e(ee, ce) {
941
941
  var ge = [], tt = K(
942
942
  ee,
943
943
  ce,
@@ -980,7 +980,7 @@ var jf;
980
980
  }
981
981
  }
982
982
  function ws(_) {
983
- var C = _.defineMetadata, N = _.hasOwnMetadata, K = _.getOwnMetadata, be = _.getOwnMetadataKeys, _t = _.deleteMetadata, Et = new m(), De = {
983
+ var C = _.defineMetadata, N = _.hasOwnMetadata, K = _.getOwnMetadata, be = _.getOwnMetadataKeys, _t = _.deleteMetadata, Et = new m(), $e = {
984
984
  isProviderFor: function(Z, ee) {
985
985
  var ce = Et.get(Z);
986
986
  return !ae(ce) && ce.has(ee) ? !0 : be(Z, ee).length ? (ae(ce) && (ce = new T(), Et.set(Z, ce)), ce.add(ee), !0) : !1;
@@ -991,7 +991,7 @@ var jf;
991
991
  OrdinaryOwnMetadataKeys: be,
992
992
  OrdinaryDeleteMetadata: _t
993
993
  };
994
- return De;
994
+ return $e;
995
995
  }
996
996
  function Wr(_, C, N) {
997
997
  var K = k.getProvider(_, C);
@@ -1007,59 +1007,59 @@ var jf;
1007
1007
  var _ = {}, C = [], N = (
1008
1008
  /** @class */
1009
1009
  function() {
1010
- function De(Z, ee, ce) {
1010
+ function $e(Z, ee, ce) {
1011
1011
  this._index = 0, this._keys = Z, this._values = ee, this._selector = ce;
1012
1012
  }
1013
- return De.prototype["@@iterator"] = function() {
1013
+ return $e.prototype["@@iterator"] = function() {
1014
1014
  return this;
1015
- }, De.prototype[o] = function() {
1015
+ }, $e.prototype[o] = function() {
1016
1016
  return this;
1017
- }, De.prototype.next = function() {
1017
+ }, $e.prototype.next = function() {
1018
1018
  var Z = this._index;
1019
1019
  if (Z >= 0 && Z < this._keys.length) {
1020
1020
  var ee = this._selector(this._keys[Z], this._values[Z]);
1021
1021
  return Z + 1 >= this._keys.length ? (this._index = -1, this._keys = C, this._values = C) : this._index++, { value: ee, done: !1 };
1022
1022
  }
1023
1023
  return { value: void 0, done: !0 };
1024
- }, De.prototype.throw = function(Z) {
1024
+ }, $e.prototype.throw = function(Z) {
1025
1025
  throw this._index >= 0 && (this._index = -1, this._keys = C, this._values = C), Z;
1026
- }, De.prototype.return = function(Z) {
1026
+ }, $e.prototype.return = function(Z) {
1027
1027
  return this._index >= 0 && (this._index = -1, this._keys = C, this._values = C), { value: Z, done: !0 };
1028
- }, De;
1028
+ }, $e;
1029
1029
  }()
1030
1030
  ), K = (
1031
1031
  /** @class */
1032
1032
  function() {
1033
- function De() {
1033
+ function $e() {
1034
1034
  this._keys = [], this._values = [], this._cacheKey = _, this._cacheIndex = -2;
1035
1035
  }
1036
- return Object.defineProperty(De.prototype, "size", {
1036
+ return Object.defineProperty($e.prototype, "size", {
1037
1037
  get: function() {
1038
1038
  return this._keys.length;
1039
1039
  },
1040
1040
  enumerable: !0,
1041
1041
  configurable: !0
1042
- }), De.prototype.has = function(Z) {
1042
+ }), $e.prototype.has = function(Z) {
1043
1043
  return this._find(
1044
1044
  Z,
1045
1045
  /*insert*/
1046
1046
  !1
1047
1047
  ) >= 0;
1048
- }, De.prototype.get = function(Z) {
1048
+ }, $e.prototype.get = function(Z) {
1049
1049
  var ee = this._find(
1050
1050
  Z,
1051
1051
  /*insert*/
1052
1052
  !1
1053
1053
  );
1054
1054
  return ee >= 0 ? this._values[ee] : void 0;
1055
- }, De.prototype.set = function(Z, ee) {
1055
+ }, $e.prototype.set = function(Z, ee) {
1056
1056
  var ce = this._find(
1057
1057
  Z,
1058
1058
  /*insert*/
1059
1059
  !0
1060
1060
  );
1061
1061
  return this._values[ce] = ee, this;
1062
- }, De.prototype.delete = function(Z) {
1062
+ }, $e.prototype.delete = function(Z) {
1063
1063
  var ee = this._find(
1064
1064
  Z,
1065
1065
  /*insert*/
@@ -1071,19 +1071,19 @@ var jf;
1071
1071
  return this._keys.length--, this._values.length--, ps(Z, this._cacheKey) && (this._cacheKey = _, this._cacheIndex = -2), !0;
1072
1072
  }
1073
1073
  return !1;
1074
- }, De.prototype.clear = function() {
1074
+ }, $e.prototype.clear = function() {
1075
1075
  this._keys.length = 0, this._values.length = 0, this._cacheKey = _, this._cacheIndex = -2;
1076
- }, De.prototype.keys = function() {
1076
+ }, $e.prototype.keys = function() {
1077
1077
  return new N(this._keys, this._values, be);
1078
- }, De.prototype.values = function() {
1078
+ }, $e.prototype.values = function() {
1079
1079
  return new N(this._keys, this._values, _t);
1080
- }, De.prototype.entries = function() {
1080
+ }, $e.prototype.entries = function() {
1081
1081
  return new N(this._keys, this._values, Et);
1082
- }, De.prototype["@@iterator"] = function() {
1082
+ }, $e.prototype["@@iterator"] = function() {
1083
1083
  return this.entries();
1084
- }, De.prototype[o] = function() {
1084
+ }, $e.prototype[o] = function() {
1085
1085
  return this.entries();
1086
- }, De.prototype._find = function(Z, ee) {
1086
+ }, $e.prototype._find = function(Z, ee) {
1087
1087
  if (!ps(this._cacheKey, Z)) {
1088
1088
  this._cacheIndex = -1;
1089
1089
  for (var ce = 0; ce < this._keys.length; ce++)
@@ -1093,18 +1093,18 @@ var jf;
1093
1093
  }
1094
1094
  }
1095
1095
  return this._cacheIndex < 0 && ee && (this._cacheIndex = this._keys.length, this._keys.push(Z), this._values.push(void 0)), this._cacheIndex;
1096
- }, De;
1096
+ }, $e;
1097
1097
  }()
1098
1098
  );
1099
1099
  return K;
1100
- function be(De, Z) {
1101
- return De;
1100
+ function be($e, Z) {
1101
+ return $e;
1102
1102
  }
1103
- function _t(De, Z) {
1103
+ function _t($e, Z) {
1104
1104
  return Z;
1105
1105
  }
1106
- function Et(De, Z) {
1107
- return [De, Z];
1106
+ function Et($e, Z) {
1107
+ return [$e, Z];
1108
1108
  }
1109
1109
  }
1110
1110
  function xs() {
@@ -1187,7 +1187,7 @@ var jf;
1187
1187
  function K() {
1188
1188
  var Z;
1189
1189
  do
1190
- Z = "@@WeakMap@@" + De();
1190
+ Z = "@@WeakMap@@" + $e();
1191
1191
  while (v.has(C, Z));
1192
1192
  return C[Z] = !0, Z;
1193
1193
  }
@@ -1211,7 +1211,7 @@ var jf;
1211
1211
  }
1212
1212
  return _t(new Array(Z), Z);
1213
1213
  }
1214
- function De() {
1214
+ function $e() {
1215
1215
  var Z = Et(_);
1216
1216
  Z[6] = Z[6] & 79 | 64, Z[8] = Z[8] & 191 | 128;
1217
1217
  for (var ee = "", ce = 0; ce < _; ++ce) {
@@ -1250,10 +1250,10 @@ var jf;
1250
1250
  * SOFTWARE.
1251
1251
  *
1252
1252
  */
1253
- const tg = "[object ArrayBuffer]";
1253
+ const ng = "[object ArrayBuffer]";
1254
1254
  class W {
1255
1255
  static isArrayBuffer(e) {
1256
- return Object.prototype.toString.call(e) === tg;
1256
+ return Object.prototype.toString.call(e) === ng;
1257
1257
  }
1258
1258
  static toArrayBuffer(e) {
1259
1259
  return this.isArrayBuffer(e) ? e : e.byteLength === e.buffer.byteLength || e.byteOffset === 0 && e.byteLength === e.buffer.byteLength ? e.buffer : this.toUint8Array(e.buffer).slice(e.byteOffset, e.byteOffset + e.byteLength).buffer;
@@ -1300,7 +1300,7 @@ class W {
1300
1300
  return e[e.length - 1] instanceof Function ? this.toView(i, e[e.length - 1]) : i.buffer;
1301
1301
  }
1302
1302
  }
1303
- const Lc = "string", rg = /^[0-9a-f]+$/i, ng = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, ig = /^[a-zA-Z0-9-_]+$/;
1303
+ const Lc = "string", ig = /^[0-9a-f]+$/i, sg = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, og = /^[a-zA-Z0-9-_]+$/;
1304
1304
  class Rf {
1305
1305
  static fromString(e) {
1306
1306
  const t = unescape(encodeURIComponent(e)), n = new Uint8Array(t.length);
@@ -1335,13 +1335,13 @@ class Yr {
1335
1335
  }
1336
1336
  class le {
1337
1337
  static isHex(e) {
1338
- return typeof e === Lc && rg.test(e);
1338
+ return typeof e === Lc && ig.test(e);
1339
1339
  }
1340
1340
  static isBase64(e) {
1341
- return typeof e === Lc && ng.test(e);
1341
+ return typeof e === Lc && sg.test(e);
1342
1342
  }
1343
1343
  static isBase64Url(e) {
1344
- return typeof e === Lc && ig.test(e);
1344
+ return typeof e === Lc && og.test(e);
1345
1345
  }
1346
1346
  static ToString(e, t = "utf8") {
1347
1347
  const n = W.toUint8Array(e);
@@ -1502,7 +1502,7 @@ class le {
1502
1502
  }
1503
1503
  }
1504
1504
  le.DEFAULT_UTF8_ENCODING = "utf8";
1505
- function sg(...r) {
1505
+ function ag(...r) {
1506
1506
  const e = r.map((i) => i.byteLength).reduce((i, s) => i + s), t = new Uint8Array(e);
1507
1507
  let n = 0;
1508
1508
  return r.map((i) => new Uint8Array(i)).forEach((i) => {
@@ -1578,7 +1578,7 @@ function Cd() {
1578
1578
  s[c] = r[c];
1579
1579
  return s[0] &= 127, Mi(s, 8) - n;
1580
1580
  }
1581
- function og(r) {
1581
+ function cg(r) {
1582
1582
  const e = r < 0 ? r * -1 : r;
1583
1583
  let t = 128;
1584
1584
  for (let n = 1; n < 8; n++) {
@@ -1601,7 +1601,7 @@ function og(r) {
1601
1601
  }
1602
1602
  return new ArrayBuffer(0);
1603
1603
  }
1604
- function ag(r, e) {
1604
+ function lg(r, e) {
1605
1605
  if (r.byteLength !== e.byteLength)
1606
1606
  return !1;
1607
1607
  const t = new Uint8Array(r), n = new Uint8Array(e);
@@ -1683,7 +1683,7 @@ class Fa {
1683
1683
  return Pu(this.items);
1684
1684
  }
1685
1685
  }
1686
- const _s = [new Uint8Array([1])], Uf = "0123456789", Hc = "name", Df = "valueHexView", cg = "isHexOnly", lg = "idBlock", ug = "tagClass", fg = "tagNumber", hg = "isConstructed", dg = "fromBER", pg = "toBER", yg = "local", yr = "", Kr = new ArrayBuffer(0), za = new Uint8Array(0), Us = "EndOfContent", Bd = "OCTET STRING", Od = "BIT STRING";
1686
+ const _s = [new Uint8Array([1])], Uf = "0123456789", Hc = "name", Df = "valueHexView", ug = "isHexOnly", fg = "idBlock", hg = "tagClass", dg = "tagNumber", pg = "isConstructed", yg = "fromBER", gg = "toBER", vg = "local", yr = "", Kr = new ArrayBuffer(0), za = new Uint8Array(0), Us = "EndOfContent", Bd = "OCTET STRING", Od = "BIT STRING";
1687
1687
  function fn(r) {
1688
1688
  var e;
1689
1689
  return e = class extends r {
@@ -1975,7 +1975,7 @@ class Jt extends Ei {
1975
1975
  if (!(e instanceof this.constructor))
1976
1976
  return !1;
1977
1977
  const t = this.toBER(), n = e.toBER();
1978
- return ag(t, n);
1978
+ return lg(t, n);
1979
1979
  }
1980
1980
  }
1981
1981
  Jt.NAME = "BaseBlock";
@@ -2019,7 +2019,7 @@ class fo extends Jt {
2019
2019
  Rd = fo;
2020
2020
  se.Primitive = Rd;
2021
2021
  fo.NAME = "PRIMITIVE";
2022
- function gg(r, e) {
2022
+ function mg(r, e) {
2023
2023
  if (r instanceof e)
2024
2024
  return r;
2025
2025
  const t = new e();
@@ -2176,7 +2176,7 @@ function ns(r, e = 0, t = r.length) {
2176
2176
  default:
2177
2177
  u = i.idBlock.isConstructed ? se.Constructed : se.Primitive;
2178
2178
  }
2179
- return i = gg(i, u), c = i.fromBER(r, e, i.lenBlock.isIndefiniteForm ? t : i.lenBlock.length), i.valueBeforeDecodeView = r.subarray(n, n + i.blockLength), {
2179
+ return i = mg(i, u), c = i.fromBER(r, e, i.lenBlock.isIndefiniteForm ? t : i.lenBlock.length), i.valueBeforeDecodeView = r.subarray(n, n + i.blockLength), {
2180
2180
  offset: c,
2181
2181
  result: i
2182
2182
  };
@@ -2191,7 +2191,7 @@ function Ui(r) {
2191
2191
  }
2192
2192
  return ns(W.toUint8Array(r).slice(), 0, r.byteLength);
2193
2193
  }
2194
- function vg(r, e) {
2194
+ function wg(r, e) {
2195
2195
  return r ? 1 : e;
2196
2196
  }
2197
2197
  class Vn extends fr {
@@ -2205,7 +2205,7 @@ class Vn extends fr {
2205
2205
  if (this.valueBeforeDecodeView = i.subarray(t, t + n), this.valueBeforeDecodeView.length === 0)
2206
2206
  return this.warnings.push("Zero buffer length"), t;
2207
2207
  let s = t;
2208
- for (; vg(this.isIndefiniteForm, n) > 0; ) {
2208
+ for (; wg(this.isIndefiniteForm, n) > 0; ) {
2209
2209
  const o = ns(i, s, n);
2210
2210
  if (o.offset === -1)
2211
2211
  return this.error = o.result.error, this.warnings.concat(o.result.warnings), -1;
@@ -2523,7 +2523,7 @@ Kd = oi;
2523
2523
  se.BitString = Kd;
2524
2524
  oi.NAME = Od;
2525
2525
  var qd;
2526
- function mg(r, e) {
2526
+ function bg(r, e) {
2527
2527
  const t = new Uint8Array([0]), n = new Uint8Array(r), i = new Uint8Array(e);
2528
2528
  let s = n.slice(0);
2529
2529
  const o = s.length - 1, c = i.slice(0), u = c.length - 1;
@@ -2561,7 +2561,7 @@ function $f(r) {
2561
2561
  }
2562
2562
  return _s[r];
2563
2563
  }
2564
- function wg(r, e) {
2564
+ function xg(r, e) {
2565
2565
  let t = 0;
2566
2566
  const n = new Uint8Array(r), i = new Uint8Array(e), s = n.slice(0), o = s.length - 1, c = i.slice(0), u = c.length - 1;
2567
2567
  let h, v = 0;
@@ -2591,7 +2591,7 @@ class Uu extends fn(fr) {
2591
2591
  this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Cd.call(this)));
2592
2592
  }
2593
2593
  set valueDec(e) {
2594
- this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(og(e));
2594
+ this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(cg(e));
2595
2595
  }
2596
2596
  get valueDec() {
2597
2597
  return this._valueDec;
@@ -2642,10 +2642,10 @@ class Uu extends fn(fr) {
2642
2642
  if ((i & 1) === 1)
2643
2643
  switch (n) {
2644
2644
  case e:
2645
- t = wg($f(n), t), o = "-";
2645
+ t = xg($f(n), t), o = "-";
2646
2646
  break;
2647
2647
  default:
2648
- t = mg(t, $f(n));
2648
+ t = bg(t, $f(n));
2649
2649
  }
2650
2650
  n++, i >>= 1;
2651
2651
  }
@@ -3053,7 +3053,7 @@ rp.NAME = "StringValueBlock";
3053
3053
  class np extends rp {
3054
3054
  }
3055
3055
  np.NAME = "SimpleStringValueBlock";
3056
- class Ir extends ju {
3056
+ class kr extends ju {
3057
3057
  constructor({ ...e } = {}) {
3058
3058
  super(e, np);
3059
3059
  }
@@ -3067,8 +3067,8 @@ class Ir extends ju {
3067
3067
  this.valueBlock.value = e;
3068
3068
  }
3069
3069
  }
3070
- Ir.NAME = "SIMPLE STRING";
3071
- class ip extends Ir {
3070
+ kr.NAME = "SIMPLE STRING";
3071
+ class ip extends kr {
3072
3072
  fromBuffer(e) {
3073
3073
  this.valueBlock.valueHexView = W.toUint8Array(e);
3074
3074
  try {
@@ -3091,7 +3091,7 @@ class kn extends ip {
3091
3091
  sp = kn;
3092
3092
  se.Utf8String = sp;
3093
3093
  kn.NAME = "UTF8String";
3094
- class op extends Ir {
3094
+ class op extends kr {
3095
3095
  fromBuffer(e) {
3096
3096
  this.valueBlock.value = le.ToUtf16String(e), this.valueBlock.valueHexView = W.toUint8Array(e);
3097
3097
  }
@@ -3109,7 +3109,7 @@ class Za extends op {
3109
3109
  ap = Za;
3110
3110
  se.BmpString = ap;
3111
3111
  Za.NAME = "BMPString";
3112
- class cp extends Ir {
3112
+ class cp extends kr {
3113
3113
  fromBuffer(e) {
3114
3114
  const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), n = new Uint8Array(t);
3115
3115
  for (let i = 0; i < n.length; i += 4)
@@ -3140,7 +3140,7 @@ lp = Wa;
3140
3140
  se.UniversalString = lp;
3141
3141
  Wa.NAME = "UniversalString";
3142
3142
  var up;
3143
- class Ya extends Ir {
3143
+ class Ya extends kr {
3144
3144
  constructor(e = {}) {
3145
3145
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
3146
3146
  }
@@ -3149,7 +3149,7 @@ up = Ya;
3149
3149
  se.NumericString = up;
3150
3150
  Ya.NAME = "NumericString";
3151
3151
  var fp;
3152
- class Ja extends Ir {
3152
+ class Ja extends kr {
3153
3153
  constructor(e = {}) {
3154
3154
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
3155
3155
  }
@@ -3158,7 +3158,7 @@ fp = Ja;
3158
3158
  se.PrintableString = fp;
3159
3159
  Ja.NAME = "PrintableString";
3160
3160
  var hp;
3161
- class Xa extends Ir {
3161
+ class Xa extends kr {
3162
3162
  constructor(e = {}) {
3163
3163
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
3164
3164
  }
@@ -3167,7 +3167,7 @@ hp = Xa;
3167
3167
  se.TeletexString = hp;
3168
3168
  Xa.NAME = "TeletexString";
3169
3169
  var dp;
3170
- class Qa extends Ir {
3170
+ class Qa extends kr {
3171
3171
  constructor(e = {}) {
3172
3172
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
3173
3173
  }
@@ -3176,7 +3176,7 @@ dp = Qa;
3176
3176
  se.VideotexString = dp;
3177
3177
  Qa.NAME = "VideotexString";
3178
3178
  var pp;
3179
- class ec extends Ir {
3179
+ class ec extends kr {
3180
3180
  constructor(e = {}) {
3181
3181
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
3182
3182
  }
@@ -3185,7 +3185,7 @@ pp = ec;
3185
3185
  se.IA5String = pp;
3186
3186
  ec.NAME = "IA5String";
3187
3187
  var yp;
3188
- class tc extends Ir {
3188
+ class tc extends kr {
3189
3189
  constructor(e = {}) {
3190
3190
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
3191
3191
  }
@@ -3194,7 +3194,7 @@ yp = tc;
3194
3194
  se.GraphicString = yp;
3195
3195
  tc.NAME = "GraphicString";
3196
3196
  var gp;
3197
- class ho extends Ir {
3197
+ class ho extends kr {
3198
3198
  constructor(e = {}) {
3199
3199
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
3200
3200
  }
@@ -3203,7 +3203,7 @@ gp = ho;
3203
3203
  se.VisibleString = gp;
3204
3204
  ho.NAME = "VisibleString";
3205
3205
  var vp;
3206
- class rc extends Ir {
3206
+ class rc extends kr {
3207
3207
  constructor(e = {}) {
3208
3208
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
3209
3209
  }
@@ -3212,7 +3212,7 @@ vp = rc;
3212
3212
  se.GeneralString = vp;
3213
3213
  rc.NAME = "GeneralString";
3214
3214
  var mp;
3215
- class nc extends Ir {
3215
+ class nc extends kr {
3216
3216
  constructor(e = {}) {
3217
3217
  super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
3218
3218
  }
@@ -3463,7 +3463,7 @@ class Go extends ui {
3463
3463
  super(n), this.value = e, this.local = t;
3464
3464
  }
3465
3465
  }
3466
- class bg {
3466
+ class Ag {
3467
3467
  constructor({ data: e = za } = {}) {
3468
3468
  this.dataView = W.toUint8Array(e);
3469
3469
  }
@@ -3519,17 +3519,17 @@ function ri(r, e, t) {
3519
3519
  verified: !1,
3520
3520
  result: { error: "Wrong ASN.1 schema" }
3521
3521
  };
3522
- if (!(lg in t))
3522
+ if (!(fg in t))
3523
3523
  return {
3524
3524
  verified: !1,
3525
3525
  result: { error: "Wrong ASN.1 schema" }
3526
3526
  };
3527
- if (!(dg in t.idBlock))
3527
+ if (!(yg in t.idBlock))
3528
3528
  return {
3529
3529
  verified: !1,
3530
3530
  result: { error: "Wrong ASN.1 schema" }
3531
3531
  };
3532
- if (!(pg in t.idBlock))
3532
+ if (!(gg in t.idBlock))
3533
3533
  return {
3534
3534
  verified: !1,
3535
3535
  result: { error: "Wrong ASN.1 schema" }
@@ -3545,7 +3545,7 @@ function ri(r, e, t) {
3545
3545
  verified: !1,
3546
3546
  result: { error: "Error decoding idBlock for ASN.1 schema" }
3547
3547
  };
3548
- if (t.idBlock.hasOwnProperty(ug) === !1)
3548
+ if (t.idBlock.hasOwnProperty(hg) === !1)
3549
3549
  return {
3550
3550
  verified: !1,
3551
3551
  result: { error: "Wrong ASN.1 schema" }
@@ -3555,7 +3555,7 @@ function ri(r, e, t) {
3555
3555
  verified: !1,
3556
3556
  result: r
3557
3557
  };
3558
- if (t.idBlock.hasOwnProperty(fg) === !1)
3558
+ if (t.idBlock.hasOwnProperty(dg) === !1)
3559
3559
  return {
3560
3560
  verified: !1,
3561
3561
  result: { error: "Wrong ASN.1 schema" }
@@ -3565,7 +3565,7 @@ function ri(r, e, t) {
3565
3565
  verified: !1,
3566
3566
  result: r
3567
3567
  };
3568
- if (t.idBlock.hasOwnProperty(hg) === !1)
3568
+ if (t.idBlock.hasOwnProperty(pg) === !1)
3569
3569
  return {
3570
3570
  verified: !1,
3571
3571
  result: { error: "Wrong ASN.1 schema" }
@@ -3575,7 +3575,7 @@ function ri(r, e, t) {
3575
3575
  verified: !1,
3576
3576
  result: r
3577
3577
  };
3578
- if (!(cg in t.idBlock))
3578
+ if (!(ug in t.idBlock))
3579
3579
  return {
3580
3580
  verified: !1,
3581
3581
  result: { error: "Wrong ASN.1 schema" }
@@ -3645,7 +3645,7 @@ function ri(r, e, t) {
3645
3645
  return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, yr), t.name && delete r[t.name]), o;
3646
3646
  if (Hc in t.valueBlock.value[0] && t.valueBlock.value[0].name.length > 0) {
3647
3647
  let h = {};
3648
- yg in t.valueBlock.value[0] && t.valueBlock.value[0].local ? h = e : h = r, typeof h[t.valueBlock.value[0].name] > "u" && (h[t.valueBlock.value[0].name] = []), h[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
3648
+ vg in t.valueBlock.value[0] && t.valueBlock.value[0].local ? h = e : h = r, typeof h[t.valueBlock.value[0].name] > "u" && (h[t.valueBlock.value[0].name] = []), h[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
3649
3649
  }
3650
3650
  } else if (o = ri(r, e.valueBlock.value[u - s], t.valueBlock.value[u]), o.verified === !1)
3651
3651
  if (t.valueBlock.value[u].optional)
@@ -3680,7 +3680,7 @@ function ri(r, e, t) {
3680
3680
  result: r
3681
3681
  };
3682
3682
  }
3683
- function xg(r, e) {
3683
+ function Sg(r, e) {
3684
3684
  if (!(e instanceof Object))
3685
3685
  return {
3686
3686
  verified: !1,
@@ -3720,7 +3720,7 @@ const Ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3720
3720
  OctetString: si,
3721
3721
  Primitive: fo,
3722
3722
  PrintableString: Ja,
3723
- RawData: bg,
3723
+ RawData: Ag,
3724
3724
  RelativeObjectIdentifier: Du,
3725
3725
  Repeated: Go,
3726
3726
  Sequence: mn,
@@ -3737,7 +3737,7 @@ const Ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3737
3737
  VisibleString: ho,
3738
3738
  compareSchema: ri,
3739
3739
  fromBER: Ui,
3740
- verifySchema: xg
3740
+ verifySchema: Sg
3741
3741
  }, Symbol.toStringTag, { value: "Module" }));
3742
3742
  var M;
3743
3743
  (function(r) {
@@ -3809,7 +3809,7 @@ class st {
3809
3809
  return new si({ name: e });
3810
3810
  }
3811
3811
  }
3812
- const Ag = {
3812
+ const _g = {
3813
3813
  fromASN: (r) => r instanceof li ? null : r.valueBeforeDecodeView,
3814
3814
  toASN: (r) => {
3815
3815
  if (r === null)
@@ -3819,28 +3819,28 @@ const Ag = {
3819
3819
  throw new Error(e.result.error);
3820
3820
  return e.result;
3821
3821
  }
3822
- }, Sg = {
3822
+ }, Eg = {
3823
3823
  fromASN: (r) => r.valueBlock.valueHexView.byteLength >= 4 ? r.valueBlock.toString() : r.valueBlock.valueDec,
3824
3824
  toASN: (r) => new nn({ value: +r })
3825
- }, _g = {
3825
+ }, Ig = {
3826
3826
  fromASN: (r) => r.valueBlock.valueDec,
3827
3827
  toASN: (r) => new Ka({ value: r })
3828
3828
  }, St = {
3829
3829
  fromASN: (r) => r.valueBlock.valueHexView,
3830
3830
  toASN: (r) => new nn({ valueHex: r })
3831
- }, Eg = {
3831
+ }, kg = {
3832
3832
  fromASN: (r) => r.valueBlock.valueHexView,
3833
3833
  toASN: (r) => new oi({ valueHex: r })
3834
- }, Ig = {
3834
+ }, Cg = {
3835
3835
  fromASN: (r) => r.valueBlock.toString(),
3836
3836
  toASN: (r) => new qa({ value: r })
3837
- }, kg = {
3837
+ }, Bg = {
3838
3838
  fromASN: (r) => r.valueBlock.value,
3839
3839
  toASN: (r) => new Ga({ value: r })
3840
3840
  }, Ko = {
3841
3841
  fromASN: (r) => r.valueBlock.valueHexView,
3842
3842
  toASN: (r) => new si({ valueHex: r })
3843
- }, Cg = {
3843
+ }, Og = {
3844
3844
  fromASN: (r) => new st(r.getValue()),
3845
3845
  toASN: (r) => r.toASN()
3846
3846
  };
@@ -3850,62 +3850,62 @@ function Nr(r) {
3850
3850
  toASN: (e) => new r({ value: e })
3851
3851
  };
3852
3852
  }
3853
- const kp = Nr(kn), Bg = Nr(Za), Og = Nr(Wa), Tg = Nr(Ya), Ng = Nr(Ja), Pg = Nr(Xa), jg = Nr(Qa), Rg = Nr(ec), Ug = Nr(tc), Dg = Nr(ho), $g = Nr(rc), Mg = Nr(nc), Vg = {
3853
+ const kp = Nr(kn), Tg = Nr(Za), Ng = Nr(Wa), Pg = Nr(Ya), jg = Nr(Ja), Rg = Nr(Xa), Ug = Nr(Qa), Dg = Nr(ec), $g = Nr(tc), Mg = Nr(ho), Vg = Nr(rc), Lg = Nr(nc), Hg = {
3854
3854
  fromASN: (r) => r.toDate(),
3855
3855
  toASN: (r) => new po({ valueDate: r })
3856
- }, Lg = {
3856
+ }, Fg = {
3857
3857
  fromASN: (r) => r.toDate(),
3858
3858
  toASN: (r) => new ic({ valueDate: r })
3859
- }, Hg = {
3859
+ }, zg = {
3860
3860
  fromASN: () => null,
3861
3861
  toASN: () => new li()
3862
3862
  };
3863
3863
  function zu(r) {
3864
3864
  switch (r) {
3865
3865
  case x.Any:
3866
- return Ag;
3866
+ return _g;
3867
3867
  case x.BitString:
3868
- return Eg;
3868
+ return kg;
3869
3869
  case x.BmpString:
3870
- return Bg;
3870
+ return Tg;
3871
3871
  case x.Boolean:
3872
- return kg;
3872
+ return Bg;
3873
3873
  case x.CharacterString:
3874
- return Mg;
3874
+ return Lg;
3875
3875
  case x.Enumerated:
3876
- return _g;
3876
+ return Ig;
3877
3877
  case x.GeneralString:
3878
- return $g;
3878
+ return Vg;
3879
3879
  case x.GeneralizedTime:
3880
- return Lg;
3880
+ return Fg;
3881
3881
  case x.GraphicString:
3882
- return Ug;
3882
+ return $g;
3883
3883
  case x.IA5String:
3884
- return Rg;
3884
+ return Dg;
3885
3885
  case x.Integer:
3886
- return Sg;
3886
+ return Eg;
3887
3887
  case x.Null:
3888
- return Hg;
3888
+ return zg;
3889
3889
  case x.NumericString:
3890
- return Tg;
3890
+ return Pg;
3891
3891
  case x.ObjectIdentifier:
3892
- return Ig;
3892
+ return Cg;
3893
3893
  case x.OctetString:
3894
3894
  return Ko;
3895
3895
  case x.PrintableString:
3896
- return Ng;
3896
+ return jg;
3897
3897
  case x.TeletexString:
3898
- return Pg;
3898
+ return Rg;
3899
3899
  case x.UTCTime:
3900
- return Vg;
3900
+ return Hg;
3901
3901
  case x.UniversalString:
3902
- return Og;
3902
+ return Ng;
3903
3903
  case x.Utf8String:
3904
3904
  return kp;
3905
3905
  case x.VideotexString:
3906
- return jg;
3906
+ return Ug;
3907
3907
  case x.VisibleString:
3908
- return Dg;
3908
+ return Mg;
3909
3909
  default:
3910
3910
  return null;
3911
3911
  }
@@ -3921,7 +3921,7 @@ function Cp(r) {
3921
3921
  }
3922
3922
  return !1;
3923
3923
  }
3924
- function Fg(r, e) {
3924
+ function Gg(r, e) {
3925
3925
  if (!(r && e) || r.byteLength !== e.byteLength)
3926
3926
  return !1;
3927
3927
  const t = new Uint8Array(r), n = new Uint8Array(e);
@@ -3930,7 +3930,7 @@ function Fg(r, e) {
3930
3930
  return !1;
3931
3931
  return !0;
3932
3932
  }
3933
- class zg {
3933
+ class Kg {
3934
3934
  constructor() {
3935
3935
  this.items = /* @__PURE__ */ new WeakMap();
3936
3936
  }
@@ -4038,7 +4038,7 @@ class zg {
4038
4038
  return t ? this.items.get(t) || this.findParentSchema(t) : null;
4039
4039
  }
4040
4040
  }
4041
- const Or = new zg(), F = (r) => (e) => {
4041
+ const Or = new Kg(), F = (r) => (e) => {
4042
4042
  let t;
4043
4043
  Or.has(e) ? t = Or.get(e) : (t = Or.createDefault(e), Or.set(e, t)), Object.assign(t, r);
4044
4044
  }, y = (r) => (e, t) => {
@@ -4058,7 +4058,7 @@ class Mf extends Error {
4058
4058
  super(...arguments), this.schemas = [];
4059
4059
  }
4060
4060
  }
4061
- class Gg {
4061
+ class qg {
4062
4062
  static parse(e, t) {
4063
4063
  const n = Ui(e);
4064
4064
  if (n.result.error)
@@ -4176,7 +4176,7 @@ class Gu {
4176
4176
  } else
4177
4177
  for (const o in n.items) {
4178
4178
  const c = n.items[o], u = e[o];
4179
- if (u === void 0 || c.defaultValue === u || typeof c.defaultValue == "object" && typeof u == "object" && Fg(this.serialize(c.defaultValue), this.serialize(u)))
4179
+ if (u === void 0 || c.defaultValue === u || typeof c.defaultValue == "object" && typeof u == "object" && Gg(this.serialize(c.defaultValue), this.serialize(u)))
4180
4180
  continue;
4181
4181
  const h = Gu.toAsnItem(c, o, t, u);
4182
4182
  if (typeof c.context == "number")
@@ -4270,7 +4270,7 @@ class q {
4270
4270
  return Gu.serialize(e);
4271
4271
  }
4272
4272
  static parse(e, t) {
4273
- return Gg.parse(e, t);
4273
+ return qg.parse(e, t);
4274
4274
  }
4275
4275
  static toString(e) {
4276
4276
  const t = W.isBufferSource(e) ? W.toArrayBuffer(e) : q.serialize(e), n = Ui(t);
@@ -4881,7 +4881,7 @@ let Ht = hl = class extends dl {
4881
4881
  Ht = hl = f([
4882
4882
  F({ type: M.Sequence })
4883
4883
  ], Ht);
4884
- const Kg = {
4884
+ const Zg = {
4885
4885
  fromASN: (r) => Lf.toString(Ko.fromASN(r)),
4886
4886
  toASN: (r) => Ko.toASN(Lf.fromString(r))
4887
4887
  };
@@ -4907,54 +4907,54 @@ f([
4907
4907
  f([
4908
4908
  y({ type: Xt, context: 1, implicit: !0 })
4909
4909
  ], Ku.prototype, "partyName", void 0);
4910
- let Ve = class {
4910
+ let Le = class {
4911
4911
  constructor(e = {}) {
4912
4912
  Object.assign(this, e);
4913
4913
  }
4914
4914
  };
4915
4915
  f([
4916
4916
  y({ type: Ds, context: 0, implicit: !0 })
4917
- ], Ve.prototype, "otherName", void 0);
4917
+ ], Le.prototype, "otherName", void 0);
4918
4918
  f([
4919
4919
  y({ type: x.IA5String, context: 1, implicit: !0 })
4920
- ], Ve.prototype, "rfc822Name", void 0);
4920
+ ], Le.prototype, "rfc822Name", void 0);
4921
4921
  f([
4922
4922
  y({ type: x.IA5String, context: 2, implicit: !0 })
4923
- ], Ve.prototype, "dNSName", void 0);
4923
+ ], Le.prototype, "dNSName", void 0);
4924
4924
  f([
4925
4925
  y({ type: x.Any, context: 3, implicit: !0 })
4926
- ], Ve.prototype, "x400Address", void 0);
4926
+ ], Le.prototype, "x400Address", void 0);
4927
4927
  f([
4928
4928
  y({ type: Ht, context: 4, implicit: !1 })
4929
- ], Ve.prototype, "directoryName", void 0);
4929
+ ], Le.prototype, "directoryName", void 0);
4930
4930
  f([
4931
4931
  y({ type: Ku, context: 5 })
4932
- ], Ve.prototype, "ediPartyName", void 0);
4932
+ ], Le.prototype, "ediPartyName", void 0);
4933
4933
  f([
4934
4934
  y({ type: x.IA5String, context: 6, implicit: !0 })
4935
- ], Ve.prototype, "uniformResourceIdentifier", void 0);
4935
+ ], Le.prototype, "uniformResourceIdentifier", void 0);
4936
4936
  f([
4937
- y({ type: x.OctetString, context: 7, implicit: !0, converter: Kg })
4938
- ], Ve.prototype, "iPAddress", void 0);
4937
+ y({ type: x.OctetString, context: 7, implicit: !0, converter: Zg })
4938
+ ], Le.prototype, "iPAddress", void 0);
4939
4939
  f([
4940
4940
  y({ type: x.ObjectIdentifier, context: 8, implicit: !0 })
4941
- ], Ve.prototype, "registeredID", void 0);
4942
- Ve = f([
4941
+ ], Le.prototype, "registeredID", void 0);
4942
+ Le = f([
4943
4943
  F({ type: M.Choice })
4944
- ], Ve);
4945
- const qu = "1.3.6.1.5.5.7", qg = `${qu}.1`, is = `${qu}.3`, ac = `${qu}.48`, Hf = `${ac}.1`, Ff = `${ac}.2`, zf = `${ac}.3`, Gf = `${ac}.5`, Yn = "2.5.29";
4944
+ ], Le);
4945
+ const qu = "1.3.6.1.5.5.7", Wg = `${qu}.1`, is = `${qu}.3`, ac = `${qu}.48`, Hf = `${ac}.1`, Ff = `${ac}.2`, zf = `${ac}.3`, Gf = `${ac}.5`, Yn = "2.5.29";
4946
4946
  var pl;
4947
- const yl = `${qg}.1`;
4947
+ const yl = `${Wg}.1`;
4948
4948
  class yo {
4949
4949
  constructor(e = {}) {
4950
- this.accessMethod = "", this.accessLocation = new Ve(), Object.assign(this, e);
4950
+ this.accessMethod = "", this.accessLocation = new Le(), Object.assign(this, e);
4951
4951
  }
4952
4952
  }
4953
4953
  f([
4954
4954
  y({ type: x.ObjectIdentifier })
4955
4955
  ], yo.prototype, "accessMethod", void 0);
4956
4956
  f([
4957
- y({ type: Ve })
4957
+ y({ type: Le })
4958
4958
  ], yo.prototype, "accessLocation", void 0);
4959
4959
  let ji = pl = class extends vt {
4960
4960
  constructor(e) {
@@ -4976,7 +4976,7 @@ f([
4976
4976
  y({ type: Zu, context: 0, optional: !0, implicit: !0 })
4977
4977
  ], ni.prototype, "keyIdentifier", void 0);
4978
4978
  f([
4979
- y({ type: Ve, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
4979
+ y({ type: Le, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
4980
4980
  ], ni.prototype, "authorityCertIssuer", void 0);
4981
4981
  f([
4982
4982
  y({
@@ -5006,7 +5006,7 @@ let cr = gl = class extends vt {
5006
5006
  }
5007
5007
  };
5008
5008
  cr = gl = f([
5009
- F({ type: M.Sequence, itemType: Ve })
5009
+ F({ type: M.Sequence, itemType: Le })
5010
5010
  ], cr);
5011
5011
  var vl;
5012
5012
  let Kf = vl = class extends cr {
@@ -5145,7 +5145,7 @@ let fi = class {
5145
5145
  }
5146
5146
  };
5147
5147
  f([
5148
- y({ type: Ve, context: 0, repeated: "sequence", implicit: !0 })
5148
+ y({ type: Le, context: 0, repeated: "sequence", implicit: !0 })
5149
5149
  ], fi.prototype, "fullName", void 0);
5150
5150
  f([
5151
5151
  y({ type: Li, context: 1, implicit: !0 })
@@ -5165,7 +5165,7 @@ f([
5165
5165
  y({ type: Np, context: 1, optional: !0, implicit: !0 })
5166
5166
  ], ss.prototype, "reasons", void 0);
5167
5167
  f([
5168
- y({ type: Ve, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
5168
+ y({ type: Le, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
5169
5169
  ], ss.prototype, "cRLIssuer", void 0);
5170
5170
  let Di = wl = class extends vt {
5171
5171
  constructor(e) {
@@ -5239,7 +5239,7 @@ let Xo = Sl = class extends vt {
5239
5239
  Xo = Sl = f([
5240
5240
  F({ type: M.Sequence, itemType: x.ObjectIdentifier })
5241
5241
  ], Xo);
5242
- const Zg = `${is}.1`, Wg = `${is}.2`, Yg = `${is}.3`, Jg = `${is}.4`, Xg = `${is}.8`, Qg = `${is}.9`;
5242
+ const Yg = `${is}.1`, Jg = `${is}.2`, Xg = `${is}.3`, Qg = `${is}.4`, ev = `${is}.8`, tv = `${is}.9`;
5243
5243
  let _l = class {
5244
5244
  constructor(e = new ArrayBuffer(0)) {
5245
5245
  this.value = e;
@@ -5288,11 +5288,11 @@ class Fc extends sc {
5288
5288
  var kl;
5289
5289
  class lc {
5290
5290
  constructor(e = {}) {
5291
- this.base = new Ve(), this.minimum = 0, Object.assign(this, e);
5291
+ this.base = new Le(), this.minimum = 0, Object.assign(this, e);
5292
5292
  }
5293
5293
  }
5294
5294
  f([
5295
- y({ type: Ve })
5295
+ y({ type: Le })
5296
5296
  ], lc.prototype, "base", void 0);
5297
5297
  f([
5298
5298
  y({ type: x.Integer, context: 0, defaultValue: 0, implicit: !0 })
@@ -5772,11 +5772,11 @@ th = f([
5772
5772
  ], th);
5773
5773
  class rf {
5774
5774
  constructor(e = {}) {
5775
- this.acIssuer = new Ve(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
5775
+ this.acIssuer = new Le(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
5776
5776
  }
5777
5777
  }
5778
5778
  f([
5779
- y({ type: Ve })
5779
+ y({ type: Le })
5780
5780
  ], rf.prototype, "acIssuer", void 0);
5781
5781
  f([
5782
5782
  y({ type: x.Integer })
@@ -5865,7 +5865,7 @@ let zi = class {
5865
5865
  }
5866
5866
  };
5867
5867
  f([
5868
- y({ type: Ve, repeated: "sequence" })
5868
+ y({ type: Le, repeated: "sequence" })
5869
5869
  ], zi.prototype, "v1Form", void 0);
5870
5870
  f([
5871
5871
  y({ type: dc, context: 0, implicit: !0 })
@@ -6014,7 +6014,7 @@ f([
6014
6014
  y({ type: Ii })
6015
6015
  ], vc.prototype, "targetCertificate", void 0);
6016
6016
  f([
6017
- y({ type: Ve, optional: !0 })
6017
+ y({ type: Le, optional: !0 })
6018
6018
  ], vc.prototype, "targetName", void 0);
6019
6019
  f([
6020
6020
  y({ type: ki, optional: !0 })
@@ -6025,10 +6025,10 @@ let Gi = class {
6025
6025
  }
6026
6026
  };
6027
6027
  f([
6028
- y({ type: Ve, context: 0, implicit: !0 })
6028
+ y({ type: Le, context: 0, implicit: !0 })
6029
6029
  ], Gi.prototype, "targetName", void 0);
6030
6030
  f([
6031
- y({ type: Ve, context: 1, implicit: !0 })
6031
+ y({ type: Le, context: 1, implicit: !0 })
6032
6032
  ], Gi.prototype, "targetGroup", void 0);
6033
6033
  f([
6034
6034
  y({ type: vc, context: 2, implicit: !0 })
@@ -6062,18 +6062,18 @@ f([
6062
6062
  y({ type: cr, implicit: !0, context: 0, optional: !0 })
6063
6063
  ], Hp.prototype, "roleAuthority", void 0);
6064
6064
  f([
6065
- y({ type: Ve, implicit: !0, context: 1 })
6065
+ y({ type: Le, implicit: !0, context: 1 })
6066
6066
  ], Hp.prototype, "roleName", void 0);
6067
6067
  class of {
6068
6068
  constructor(e = {}) {
6069
- this.service = new Ve(), this.ident = new Ve(), Object.assign(this, e);
6069
+ this.service = new Le(), this.ident = new Le(), Object.assign(this, e);
6070
6070
  }
6071
6071
  }
6072
6072
  f([
6073
- y({ type: Ve })
6073
+ y({ type: Le })
6074
6074
  ], of.prototype, "service", void 0);
6075
6075
  f([
6076
- y({ type: Ve })
6076
+ y({ type: Le })
6077
6077
  ], of.prototype, "ident", void 0);
6078
6078
  f([
6079
6079
  y({ type: st, optional: !0 })
@@ -6160,7 +6160,7 @@ f([
6160
6160
  y({ type: st, context: 0, implicit: !0, optional: !0 })
6161
6161
  ], Vs.prototype, "value", void 0);
6162
6162
  f([
6163
- y({ type: st, converter: Cg, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
6163
+ y({ type: st, converter: Og, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
6164
6164
  ], Vs.prototype, "constructedValue", void 0);
6165
6165
  Vs = f([
6166
6166
  F({ type: M.Choice })
@@ -6479,7 +6479,7 @@ f([
6479
6479
  f([
6480
6480
  y({ type: Zl, context: 1, implicit: !0, optional: !0 })
6481
6481
  ], Ao.prototype, "unprotectedAttrs", void 0);
6482
- const ev = "1.2.840.113549.1.7.1", Wl = "1.2.840.113549.1.7.2";
6482
+ const rv = "1.2.840.113549.1.7.1", Wl = "1.2.840.113549.1.7.2";
6483
6483
  var Yl;
6484
6484
  let la = Yl = class extends vt {
6485
6485
  constructor(e) {
@@ -6516,9 +6516,9 @@ const Ls = "1.2.840.10045.2.1", hf = "1.2.840.10045.4.1", Fp = "1.2.840.10045.4.
6516
6516
  function So(r) {
6517
6517
  return new ne({ algorithm: r });
6518
6518
  }
6519
- const tv = So(hf);
6519
+ const nv = So(hf);
6520
6520
  So(Fp);
6521
- const rv = So(df), nv = So(pf), iv = So(yf);
6521
+ const iv = So(df), sv = So(pf), ov = So(yf);
6522
6522
  let Hs = class {
6523
6523
  constructor(e = {}) {
6524
6524
  Object.assign(this, e);
@@ -6533,7 +6533,7 @@ f([
6533
6533
  Hs = f([
6534
6534
  F({ type: M.Sequence })
6535
6535
  ], Hs);
6536
- class sv extends st {
6536
+ class av extends st {
6537
6537
  }
6538
6538
  let Wi = class {
6539
6539
  constructor(e = {}) {
@@ -6571,7 +6571,7 @@ f([
6571
6571
  y({ type: Wi })
6572
6572
  ], _n.prototype, "curve", void 0);
6573
6573
  f([
6574
- y({ type: sv })
6574
+ y({ type: av })
6575
6575
  ], _n.prototype, "base", void 0);
6576
6576
  f([
6577
6577
  y({ type: x.Integer, converter: St })
@@ -6627,29 +6627,29 @@ f([
6627
6627
  f([
6628
6628
  y({ type: x.Integer, converter: St })
6629
6629
  ], ua.prototype, "s", void 0);
6630
- const wr = "1.2.840.113549.1.1", gi = `${wr}.1`, ov = `${wr}.7`, av = `${wr}.9`, Ps = `${wr}.10`, cv = `${wr}.2`, lv = `${wr}.4`, fa = `${wr}.5`, uv = `${wr}.14`, Xl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, zp = `${wr}.15`, Gp = `${wr}.16`, pa = "1.3.14.3.2.26", Kp = "2.16.840.1.101.3.4.2.4", ya = "2.16.840.1.101.3.4.2.1", ga = "2.16.840.1.101.3.4.2.2", va = "2.16.840.1.101.3.4.2.3", fv = "2.16.840.1.101.3.4.2.5", hv = "2.16.840.1.101.3.4.2.6", dv = "1.2.840.113549.2.2", pv = "1.2.840.113549.2.5", Sc = `${wr}.8`;
6630
+ const wr = "1.2.840.113549.1.1", gi = `${wr}.1`, cv = `${wr}.7`, lv = `${wr}.9`, Ps = `${wr}.10`, uv = `${wr}.2`, fv = `${wr}.4`, fa = `${wr}.5`, hv = `${wr}.14`, Xl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, zp = `${wr}.15`, Gp = `${wr}.16`, pa = "1.3.14.3.2.26", Kp = "2.16.840.1.101.3.4.2.4", ya = "2.16.840.1.101.3.4.2.1", ga = "2.16.840.1.101.3.4.2.2", va = "2.16.840.1.101.3.4.2.3", dv = "2.16.840.1.101.3.4.2.5", pv = "2.16.840.1.101.3.4.2.6", yv = "1.2.840.113549.2.2", gv = "1.2.840.113549.2.5", Sc = `${wr}.8`;
6631
6631
  function Ft(r) {
6632
6632
  return new ne({ algorithm: r, parameters: null });
6633
6633
  }
6634
- Ft(dv);
6635
- Ft(pv);
6634
+ Ft(yv);
6635
+ Ft(gv);
6636
6636
  const vi = Ft(pa);
6637
6637
  Ft(Kp);
6638
6638
  Ft(ya);
6639
6639
  Ft(ga);
6640
6640
  Ft(va);
6641
- Ft(fv);
6642
- Ft(hv);
6641
+ Ft(dv);
6642
+ Ft(pv);
6643
6643
  const qp = new ne({
6644
6644
  algorithm: Sc,
6645
6645
  parameters: q.serialize(vi)
6646
6646
  }), Zp = new ne({
6647
- algorithm: av,
6647
+ algorithm: lv,
6648
6648
  parameters: q.serialize(Ko.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
6649
6649
  });
6650
6650
  Ft(gi);
6651
- Ft(cv);
6652
- Ft(lv);
6651
+ Ft(uv);
6652
+ Ft(fv);
6653
6653
  Ft(fa);
6654
6654
  Ft(zp);
6655
6655
  Ft(Gp);
@@ -6675,7 +6675,7 @@ f([
6675
6675
  y({ type: ne, context: 2, defaultValue: Zp })
6676
6676
  ], _c.prototype, "pSourceAlgorithm", void 0);
6677
6677
  new ne({
6678
- algorithm: ov,
6678
+ algorithm: cv,
6679
6679
  parameters: q.serialize(new _c())
6680
6680
  });
6681
6681
  class mi {
@@ -6815,7 +6815,7 @@ function vf(r, e) {
6815
6815
  }
6816
6816
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
6817
6817
  }
6818
- function yv(r, e, t, n) {
6818
+ function vv(r, e, t, n) {
6819
6819
  function i(s) {
6820
6820
  return s instanceof t ? s : new t(function(o) {
6821
6821
  o(s);
@@ -6842,7 +6842,7 @@ function yv(r, e, t, n) {
6842
6842
  h((n = n.apply(r, [])).next());
6843
6843
  });
6844
6844
  }
6845
- function gv(r, e) {
6845
+ function mv(r, e) {
6846
6846
  var t = { label: 0, sent: function() {
6847
6847
  if (s[0] & 1) throw s[1];
6848
6848
  return s[1];
@@ -6934,9 +6934,9 @@ function ti() {
6934
6934
  r = r.concat(ma(arguments[e]));
6935
6935
  return r;
6936
6936
  }
6937
- var vv = "injectionTokens";
6938
- function mv(r) {
6939
- var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(vv, r) || {};
6937
+ var wv = "injectionTokens";
6938
+ function bv(r) {
6939
+ var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(wv, r) || {};
6940
6940
  return Object.keys(t).forEach(function(n) {
6941
6941
  e[+n] = t[n];
6942
6942
  }), e;
@@ -6984,13 +6984,13 @@ var Yp = function() {
6984
6984
  function Ni(r) {
6985
6985
  return typeof r == "string" || typeof r == "symbol";
6986
6986
  }
6987
- function wv(r) {
6987
+ function xv(r) {
6988
6988
  return typeof r == "object" && "token" in r && "multiple" in r;
6989
6989
  }
6990
6990
  function oh(r) {
6991
6991
  return typeof r == "object" && "token" in r && "transform" in r;
6992
6992
  }
6993
- function bv(r) {
6993
+ function Av(r) {
6994
6994
  return typeof r == "function" || r instanceof Yp;
6995
6995
  }
6996
6996
  function $o(r) {
@@ -6999,7 +6999,7 @@ function $o(r) {
6999
6999
  function Mo(r) {
7000
7000
  return r.useValue != null;
7001
7001
  }
7002
- function xv(r) {
7002
+ function Sv(r) {
7003
7003
  return Wp(r) || Mo(r) || $o(r) || nu(r);
7004
7004
  }
7005
7005
  var mf = function() {
@@ -7025,7 +7025,7 @@ var mf = function() {
7025
7025
  }, r.prototype.ensure = function(e) {
7026
7026
  this._registryMap.has(e) || this._registryMap.set(e, []);
7027
7027
  }, r;
7028
- }(), Av = function(r) {
7028
+ }(), _v = function(r) {
7029
7029
  vf(e, r);
7030
7030
  function e() {
7031
7031
  return r !== null && r.apply(this, arguments) || this;
@@ -7037,54 +7037,54 @@ var mf = function() {
7037
7037
  }
7038
7038
  return r;
7039
7039
  }();
7040
- function Sv(r, e) {
7040
+ function Ev(r, e) {
7041
7041
  if (r === null)
7042
7042
  return "at position #" + e;
7043
7043
  var t = r.split(",")[e].trim();
7044
7044
  return '"' + t + '" at position #' + e;
7045
7045
  }
7046
- function _v(r, e, t) {
7046
+ function Iv(r, e, t) {
7047
7047
  return t === void 0 && (t = " "), ti([r], e.message.split(`
7048
7048
  `).map(function(n) {
7049
7049
  return t + n;
7050
7050
  })).join(`
7051
7051
  `);
7052
7052
  }
7053
- function Ev(r, e, t) {
7054
- var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = Sv(s, e);
7055
- return _v("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7053
+ function kv(r, e, t) {
7054
+ var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = Ev(s, e);
7055
+ return Iv("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7056
7056
  }
7057
- function Iv(r) {
7057
+ function Cv(r) {
7058
7058
  if (typeof r.dispose != "function")
7059
7059
  return !1;
7060
7060
  var e = r.dispose;
7061
7061
  return !(e.length > 0);
7062
7062
  }
7063
- var kv = function(r) {
7063
+ var Bv = function(r) {
7064
7064
  vf(e, r);
7065
7065
  function e() {
7066
7066
  return r !== null && r.apply(this, arguments) || this;
7067
7067
  }
7068
7068
  return e;
7069
- }(mf), Cv = function(r) {
7069
+ }(mf), Ov = function(r) {
7070
7070
  vf(e, r);
7071
7071
  function e() {
7072
7072
  return r !== null && r.apply(this, arguments) || this;
7073
7073
  }
7074
7074
  return e;
7075
- }(mf), Bv = /* @__PURE__ */ function() {
7075
+ }(mf), Tv = /* @__PURE__ */ function() {
7076
7076
  function r() {
7077
- this.preResolution = new kv(), this.postResolution = new Cv();
7077
+ this.preResolution = new Bv(), this.postResolution = new Ov();
7078
7078
  }
7079
7079
  return r;
7080
- }(), Jp = /* @__PURE__ */ new Map(), Ov = function() {
7080
+ }(), Jp = /* @__PURE__ */ new Map(), Nv = function() {
7081
7081
  function r(e) {
7082
- this.parent = e, this._registry = new Av(), this.interceptors = new Bv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
7082
+ this.parent = e, this._registry = new _v(), this.interceptors = new Tv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
7083
7083
  }
7084
7084
  return r.prototype.register = function(e, t, n) {
7085
7085
  n === void 0 && (n = { lifecycle: dr.Transient }), this.ensureNotDisposed();
7086
7086
  var i;
7087
- if (xv(t) ? i = t : i = { useClass: t }, $o(i))
7087
+ if (Sv(t) ? i = t : i = { useClass: t }, $o(i))
7088
7088
  for (var s = [e], o = i; o != null; ) {
7089
7089
  var c = o.useToken;
7090
7090
  if (s.includes(c))
@@ -7131,7 +7131,7 @@ var kv = function(r) {
7131
7131
  var i = this.resolveRegistration(n, t);
7132
7132
  return this.executePostResolutionInterceptor(e, i, "Single"), i;
7133
7133
  }
7134
- if (bv(e)) {
7134
+ if (Av(e)) {
7135
7135
  var i = this.construct(e, t);
7136
7136
  return this.executePostResolutionInterceptor(e, i, "Single"), i;
7137
7137
  }
@@ -7258,9 +7258,9 @@ var kv = function(r) {
7258
7258
  options: n
7259
7259
  });
7260
7260
  }, r.prototype.dispose = function() {
7261
- return yv(this, void 0, void 0, function() {
7261
+ return vv(this, void 0, void 0, function() {
7262
7262
  var e;
7263
- return gv(this, function(t) {
7263
+ return mv(this, function(t) {
7264
7264
  switch (t.label) {
7265
7265
  case 0:
7266
7266
  return this.disposed = !0, e = [], this.disposables.forEach(function(n) {
@@ -7292,25 +7292,25 @@ var kv = function(r) {
7292
7292
  var o = s.map(n.resolveParams(t, e));
7293
7293
  return new (e.bind.apply(e, ti([void 0], o)))();
7294
7294
  }();
7295
- return Iv(i) && this.disposables.add(i), i;
7295
+ return Cv(i) && this.disposables.add(i), i;
7296
7296
  }, r.prototype.resolveParams = function(e, t) {
7297
7297
  var n = this;
7298
7298
  return function(i, s) {
7299
7299
  var o, c, u;
7300
7300
  try {
7301
- return wv(i) ? oh(i) ? i.multiple ? (o = n.resolve(i.transform)).transform.apply(o, ti([n.resolveAll(i.token)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, ti([n.resolve(i.token, e)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token) : n.resolve(i.token, e) : oh(i) ? (u = n.resolve(i.transform, e)).transform.apply(u, ti([n.resolve(i.token, e)], i.transformArgs)) : n.resolve(i, e);
7301
+ return xv(i) ? oh(i) ? i.multiple ? (o = n.resolve(i.transform)).transform.apply(o, ti([n.resolveAll(i.token)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, ti([n.resolve(i.token, e)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token) : n.resolve(i.token, e) : oh(i) ? (u = n.resolve(i.transform, e)).transform.apply(u, ti([n.resolve(i.token, e)], i.transformArgs)) : n.resolve(i, e);
7302
7302
  } catch (h) {
7303
- throw new Error(Ev(t, s, h));
7303
+ throw new Error(kv(t, s, h));
7304
7304
  }
7305
7305
  };
7306
7306
  }, r.prototype.ensureNotDisposed = function() {
7307
7307
  if (this.disposed)
7308
7308
  throw new Error("This container has been disposed, you cannot interact with a disposed container");
7309
7309
  }, r;
7310
- }(), lr = new Ov();
7310
+ }(), lr = new Nv();
7311
7311
  function kc() {
7312
7312
  return function(r) {
7313
- Jp.set(r, mv(r));
7313
+ Jp.set(r, bv(r));
7314
7314
  };
7315
7315
  }
7316
7316
  if (typeof Reflect > "u" || !Reflect.getMetadata)
@@ -7742,7 +7742,7 @@ f([
7742
7742
  *
7743
7743
  */
7744
7744
  const Io = "crypto.algorithm";
7745
- class Tv {
7745
+ class Pv {
7746
7746
  getAlgorithms() {
7747
7747
  return lr.resolveAll(Io);
7748
7748
  }
@@ -7778,7 +7778,7 @@ class Tv {
7778
7778
  }
7779
7779
  }
7780
7780
  const Yi = "crypto.algorithmProvider";
7781
- lr.registerSingleton(Yi, Tv);
7781
+ lr.registerSingleton(Yi, Pv);
7782
7782
  var Vo;
7783
7783
  const br = "1.3.36.3.3.2.8.1.1", Ih = `${br}.1`, kh = `${br}.2`, Ch = `${br}.3`, Bh = `${br}.4`, Oh = `${br}.5`, Th = `${br}.6`, Nh = `${br}.7`, Ph = `${br}.8`, jh = `${br}.9`, Rh = `${br}.10`, Uh = `${br}.11`, Dh = `${br}.12`, $h = `${br}.13`, Mh = `${br}.14`, Vh = "brainpoolP160r1", Lh = "brainpoolP160t1", Hh = "brainpoolP192r1", Fh = "brainpoolP192t1", zh = "brainpoolP224r1", Gh = "brainpoolP224t1", Kh = "brainpoolP256r1", qh = "brainpoolP256t1", Zh = "brainpoolP320r1", Wh = "brainpoolP320t1", Yh = "brainpoolP384r1", Jh = "brainpoolP384t1", Xh = "brainpoolP512r1", Qh = "brainpoolP512t1", Ct = "ECDSA";
7784
7784
  let zs = Vo = class {
@@ -7788,13 +7788,13 @@ let zs = Vo = class {
7788
7788
  if ("hash" in e)
7789
7789
  switch ((typeof e.hash == "string" ? e.hash : e.hash.name).toLowerCase()) {
7790
7790
  case "sha-1":
7791
- return tv;
7791
+ return nv;
7792
7792
  case "sha-256":
7793
- return rv;
7793
+ return iv;
7794
7794
  case "sha-384":
7795
- return nv;
7795
+ return sv;
7796
7796
  case "sha-512":
7797
- return iv;
7797
+ return ov;
7798
7798
  }
7799
7799
  else if ("namedCurve" in e) {
7800
7800
  let t = "";
@@ -7934,7 +7934,7 @@ class it {
7934
7934
  }
7935
7935
  it.NAME = s0;
7936
7936
  it.VALUE = o0;
7937
- class Nv {
7937
+ class jv {
7938
7938
  static toTextObject(e) {
7939
7939
  const t = new it("Algorithm Identifier", {}, Bn.toString(e.algorithm));
7940
7940
  if (e.parameters)
@@ -7964,7 +7964,7 @@ Bn.items = {
7964
7964
  [va]: "sha512",
7965
7965
  [gi]: "rsaEncryption",
7966
7966
  [fa]: "sha1WithRSAEncryption",
7967
- [uv]: "sha224WithRSAEncryption",
7967
+ [hv]: "sha224WithRSAEncryption",
7968
7968
  [Xl]: "sha256WithRSAEncryption",
7969
7969
  [ha]: "sha384WithRSAEncryption",
7970
7970
  [da]: "sha512WithRSAEncryption",
@@ -7974,12 +7974,12 @@ Bn.items = {
7974
7974
  [df]: "ecdsaWithSHA256",
7975
7975
  [pf]: "ecdsaWithSHA384",
7976
7976
  [yf]: "ecdsaWithSHA512",
7977
- [Zg]: "TLS WWW server authentication",
7978
- [Wg]: "TLS WWW client authentication",
7979
- [Yg]: "Code Signing",
7980
- [Jg]: "E-mail Protection",
7981
- [Xg]: "Time Stamping",
7982
- [Qg]: "OCSP Signing",
7977
+ [Yg]: "TLS WWW server authentication",
7978
+ [Jg]: "TLS WWW client authentication",
7979
+ [Xg]: "Code Signing",
7980
+ [Qg]: "E-mail Protection",
7981
+ [ev]: "Time Stamping",
7982
+ [tv]: "OCSP Signing",
7983
7983
  [Wl]: "Signed Data"
7984
7984
  };
7985
7985
  class Gn {
@@ -8036,7 +8036,7 @@ class Gn {
8036
8036
  }
8037
8037
  }
8038
8038
  Gn.oidSerializer = Bn;
8039
- Gn.algorithmSerializer = Nv;
8039
+ Gn.algorithmSerializer = jv;
8040
8040
  class Jn {
8041
8041
  constructor(...e) {
8042
8042
  if (e.length === 1) {
@@ -8155,9 +8155,9 @@ class Dn {
8155
8155
  }
8156
8156
  a0 = Symbol.toStringTag;
8157
8157
  Dn.DEFAULT = "default";
8158
- const Zt = new Dn(), Pv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8159
- function jv(r) {
8160
- return new RegExp(Pv).test(r);
8158
+ const Zt = new Dn(), Rv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8159
+ function Uv(r) {
8160
+ return new RegExp(Rv).test(r);
8161
8161
  }
8162
8162
  class c0 {
8163
8163
  constructor(e = {}) {
@@ -8169,7 +8169,7 @@ class c0 {
8169
8169
  return this.items[e] || null;
8170
8170
  }
8171
8171
  findId(e) {
8172
- return jv(e) ? e : this.get(e);
8172
+ return Uv(e) ? e : this.get(e);
8173
8173
  }
8174
8174
  register(e, t) {
8175
8175
  this.items[e] = t, this.items[t] = e;
@@ -8188,11 +8188,11 @@ mr.register("G", "2.5.4.42");
8188
8188
  mr.register("I", "2.5.4.43");
8189
8189
  mr.register("SN", "2.5.4.4");
8190
8190
  mr.register("T", "2.5.4.12");
8191
- function Rv(r, e) {
8191
+ function Dv(r, e) {
8192
8192
  return `\\${le.ToHex(le.FromUtf8String(e)).toUpperCase()}`;
8193
8193
  }
8194
- function Uv(r) {
8195
- return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Rv);
8194
+ function $v(r) {
8195
+ return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Dv);
8196
8196
  }
8197
8197
  class Hn {
8198
8198
  static isASCII(e) {
@@ -8225,7 +8225,7 @@ class Hn {
8225
8225
  }
8226
8226
  toString() {
8227
8227
  return this.asn.map((e) => e.map((t) => {
8228
- const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${le.ToHex(t.value.anyValue)}` : Uv(t.value.toString());
8228
+ const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${le.ToHex(t.value.anyValue)}` : $v(t.value.toString());
8229
8229
  return `${n}=${i}`;
8230
8230
  }).join("+")).join(", ");
8231
8231
  }
@@ -8319,7 +8319,7 @@ class Hn {
8319
8319
  return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (i = e[0] || i, n = e[1] || Zt.get()) : n = e[0] || Zt.get(), await n.subtle.digest(i, this.toArrayBuffer());
8320
8320
  }
8321
8321
  }
8322
- const l0 = "Cannot initialize GeneralName from ASN.1 data.", ed = `${l0} Unsupported string format in use.`, Dv = `${l0} Value doesn't match to GUID regular expression.`, td = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, rd = "1.3.6.1.4.1.311.25.1", nd = "1.3.6.1.4.1.311.20.2.3", zc = "dns", Gc = "dn", Kc = "email", qc = "ip", Zc = "url", Wc = "guid", Yc = "upn", No = "id";
8322
+ const l0 = "Cannot initialize GeneralName from ASN.1 data.", ed = `${l0} Unsupported string format in use.`, Mv = `${l0} Value doesn't match to GUID regular expression.`, td = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, rd = "1.3.6.1.4.1.311.25.1", nd = "1.3.6.1.4.1.311.20.2.3", zc = "dns", Gc = "dn", Kc = "email", qc = "ip", Zc = "url", Wc = "guid", Yc = "upn", No = "id";
8323
8323
  class $n extends Jn {
8324
8324
  constructor(...e) {
8325
8325
  let t;
@@ -8327,21 +8327,21 @@ class $n extends Jn {
8327
8327
  switch (e[0]) {
8328
8328
  case Gc: {
8329
8329
  const n = new Hn(e[1]).toArrayBuffer(), i = q.parse(n, Ht);
8330
- t = new Ve({ directoryName: i });
8330
+ t = new Le({ directoryName: i });
8331
8331
  break;
8332
8332
  }
8333
8333
  case zc:
8334
- t = new Ve({ dNSName: e[1] });
8334
+ t = new Le({ dNSName: e[1] });
8335
8335
  break;
8336
8336
  case Kc:
8337
- t = new Ve({ rfc822Name: e[1] });
8337
+ t = new Le({ rfc822Name: e[1] });
8338
8338
  break;
8339
8339
  case Wc: {
8340
8340
  const n = new RegExp(td, "i").exec(e[1]);
8341
8341
  if (!n)
8342
8342
  throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
8343
8343
  const i = n.slice(1).map((s, o) => o < 3 ? le.ToHex(new Uint8Array(le.FromHex(s)).reverse()) : s).join("");
8344
- t = new Ve({
8344
+ t = new Le({
8345
8345
  otherName: new Ds({
8346
8346
  typeId: rd,
8347
8347
  value: q.serialize(new st(le.FromHex(i)))
@@ -8350,13 +8350,13 @@ class $n extends Jn {
8350
8350
  break;
8351
8351
  }
8352
8352
  case qc:
8353
- t = new Ve({ iPAddress: e[1] });
8353
+ t = new Le({ iPAddress: e[1] });
8354
8354
  break;
8355
8355
  case No:
8356
- t = new Ve({ registeredID: e[1] });
8356
+ t = new Le({ registeredID: e[1] });
8357
8357
  break;
8358
8358
  case Yc: {
8359
- t = new Ve({
8359
+ t = new Le({
8360
8360
  otherName: new Ds({
8361
8361
  typeId: nd,
8362
8362
  value: q.serialize(kp.toASN(e[1]))
@@ -8365,12 +8365,12 @@ class $n extends Jn {
8365
8365
  break;
8366
8366
  }
8367
8367
  case Zc:
8368
- t = new Ve({ uniformResourceIdentifier: e[1] });
8368
+ t = new Le({ uniformResourceIdentifier: e[1] });
8369
8369
  break;
8370
8370
  default:
8371
8371
  throw new Error("Cannot create GeneralName. Unsupported type of the name");
8372
8372
  }
8373
- else W.isBufferSource(e[0]) ? t = q.parse(e[0], Ve) : t = e[0];
8373
+ else W.isBufferSource(e[0]) ? t = q.parse(e[0], Le) : t = e[0];
8374
8374
  super(t);
8375
8375
  }
8376
8376
  onInit(e) {
@@ -8391,7 +8391,7 @@ class $n extends Jn {
8391
8391
  this.type = Wc;
8392
8392
  const t = q.parse(e.otherName.value, st), n = new RegExp(td, "i").exec(le.ToHex(t));
8393
8393
  if (!n)
8394
- throw new Error(Dv);
8394
+ throw new Error(Mv);
8395
8395
  this.value = n.slice(1).map((i, s) => s < 3 ? le.ToHex(new Uint8Array(le.FromHex(i)).reverse()) : i).join("-");
8396
8396
  } else if (e.otherName.typeId === nd)
8397
8397
  this.type = Yc, this.value = q.parse(e.otherName.value, Xt).toString();
@@ -8436,10 +8436,10 @@ class Gs extends Jn {
8436
8436
  else if (Array.isArray(e)) {
8437
8437
  const n = [];
8438
8438
  for (const i of e)
8439
- if (i instanceof Ve)
8439
+ if (i instanceof Le)
8440
8440
  n.push(i);
8441
8441
  else {
8442
- const s = q.parse(new $n(i.type, i.value).rawData, Ve);
8442
+ const s = q.parse(new $n(i.type, i.value).rawData, Le);
8443
8443
  n.push(s);
8444
8444
  }
8445
8445
  t = new cr(n);
@@ -8476,7 +8476,7 @@ class Gs extends Jn {
8476
8476
  }
8477
8477
  }
8478
8478
  Gs.NAME = "GeneralNames";
8479
- const js = "-{5}", Ks = "\\n", $v = `[^${Ks}]+`, Mv = `${js}BEGIN (${$v}(?=${js}))${js}`, Vv = `${js}END \\1${js}`, Ji = "\\n", Lv = `[^:${Ks}]+`, Hv = `(?:[^${Ks}]+${Ji}(?: +[^${Ks}]+${Ji})*)`, Fv = "[a-zA-Z0-9=+/]+", zv = `(?:${Fv}${Ji})+`, id = `${Mv}${Ji}(?:((?:${Lv}: ${Hv})+))?${Ji}?(${zv})${Vv}`;
8479
+ const js = "-{5}", Ks = "\\n", Vv = `[^${Ks}]+`, Lv = `${js}BEGIN (${Vv}(?=${js}))${js}`, Hv = `${js}END \\1${js}`, Ji = "\\n", Fv = `[^:${Ks}]+`, zv = `(?:[^${Ks}]+${Ji}(?: +[^${Ks}]+${Ji})*)`, Gv = "[a-zA-Z0-9=+/]+", Kv = `(?:${Gv}${Ji})+`, id = `${Lv}${Ji}(?:((?:${Fv}: ${zv})+))?${Ji}?(${Kv})${Hv}`;
8480
8480
  class gr {
8481
8481
  static isPem(e) {
8482
8482
  return typeof e == "string" && new RegExp(id, "g").test(e);
@@ -8623,7 +8623,7 @@ class sn extends Fr {
8623
8623
  e.length > 1 ? (i = e[0] || i, n = e[1] || n, t = e[2] || Zt.get()) : t = e[0] || Zt.get();
8624
8624
  let s = this.rawData;
8625
8625
  const o = q.parse(this.rawData, rn);
8626
- return o.algorithm.algorithm === Ps && (s = Gv(o, s)), t.subtle.importKey("spki", s, i, !0, n);
8626
+ return o.algorithm.algorithm === Ps && (s = qv(o, s)), t.subtle.importKey("spki", s, i, !0, n);
8627
8627
  }
8628
8628
  onInit(e) {
8629
8629
  const t = lr.resolve(Yi), n = this.algorithm = t.toWebAlgorithm(e.algorithm);
@@ -8659,7 +8659,7 @@ class sn extends Fr {
8659
8659
  return e;
8660
8660
  }
8661
8661
  }
8662
- function Gv(r, e) {
8662
+ function qv(r, e) {
8663
8663
  return r.algorithm = new ne({
8664
8664
  algorithm: gi,
8665
8665
  parameters: null
@@ -8839,7 +8839,7 @@ class y0 extends jr {
8839
8839
  else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
8840
8840
  const i = e[0].map((o) => new ss({
8841
8841
  distributionPoint: new fi({
8842
- fullName: [new Ve({ uniformResourceIdentifier: o })]
8842
+ fullName: [new Le({ uniformResourceIdentifier: o })]
8843
8843
  })
8844
8844
  })), s = new Di(i);
8845
8845
  super(bl, e[1], q.serialize(s));
@@ -8919,7 +8919,7 @@ function jo(r, e, t, n) {
8919
8919
  i && (Array.isArray(i) ? i : [i]).forEach((o) => {
8920
8920
  typeof o == "string" && (o = new $n("url", o)), r.push(new yo({
8921
8921
  accessMethod: t,
8922
- accessLocation: q.parse(o.rawData, Ve)
8922
+ accessLocation: q.parse(o.rawData, Le)
8923
8923
  }));
8924
8924
  });
8925
8925
  }
@@ -9010,7 +9010,7 @@ class Pc {
9010
9010
  }
9011
9011
  Pc.items = /* @__PURE__ */ new Map();
9012
9012
  const jc = "crypto.signatureFormatter";
9013
- class Kv {
9013
+ class Zv {
9014
9014
  toAsnSignature(e, t) {
9015
9015
  return W.toArrayBuffer(t);
9016
9016
  }
@@ -9162,7 +9162,7 @@ class Tr {
9162
9162
  toWebSignature(e, t) {
9163
9163
  if (e.name === "ECDSA") {
9164
9164
  const n = q.parse(t, ua), i = e.namedCurve, s = Tr.namedCurveSize.get(i) || Tr.defaultNamedCurveSize, o = this.addPadding(s, this.removePadding(n.r)), c = this.addPadding(s, this.removePadding(n.s));
9165
- return sg(o, c);
9165
+ return ag(o, c);
9166
9166
  }
9167
9167
  return null;
9168
9168
  }
@@ -9222,7 +9222,7 @@ Su = f([
9222
9222
  kc()
9223
9223
  ], Su);
9224
9224
  lr.registerSingleton(Io, Su);
9225
- class qv extends Fr {
9225
+ class Wv extends Fr {
9226
9226
  constructor(e) {
9227
9227
  Fr.isAsnEncoded(e) ? super(e, Fs) : super(e), this.tag = gr.CertificateRequestTag;
9228
9228
  }
@@ -9281,7 +9281,7 @@ class qv extends Fr {
9281
9281
  }), e;
9282
9282
  }
9283
9283
  }
9284
- qv.NAME = "PKCS#10 Certificate Request";
9284
+ Wv.NAME = "PKCS#10 Certificate Request";
9285
9285
  class wi extends Fr {
9286
9286
  constructor(e) {
9287
9287
  Fr.isAsnEncoded(e) ? super(e, di) : super(e), this.tag = gr.CertificateTag;
@@ -9380,7 +9380,7 @@ class wi extends Fr {
9380
9380
  }
9381
9381
  }
9382
9382
  wi.NAME = "Certificate";
9383
- class Zv extends Array {
9383
+ class Yv extends Array {
9384
9384
  constructor(e) {
9385
9385
  if (super(), Fr.isAsnEncoded(e))
9386
9386
  this.import(e);
@@ -9392,7 +9392,7 @@ class Zv extends Array {
9392
9392
  }
9393
9393
  export(e) {
9394
9394
  const t = new xn();
9395
- t.version = 1, t.encapContentInfo.eContentType = ev, t.encapContentInfo.eContent = new Ki({
9395
+ t.version = 1, t.encapContentInfo.eContentType = rv, t.encapContentInfo.eContent = new Ki({
9396
9396
  single: new st()
9397
9397
  }), t.certificates = new Ms(this.map((s) => new pi({
9398
9398
  certificate: q.parse(s.rawData, di)
@@ -9449,12 +9449,12 @@ class Zv extends Array {
9449
9449
  });
9450
9450
  }
9451
9451
  }
9452
- class Wv {
9452
+ class Jv {
9453
9453
  constructor(e = {}) {
9454
9454
  this.certificates = [], e.certificates && (this.certificates = e.certificates);
9455
9455
  }
9456
9456
  async build(e, t = Zt.get()) {
9457
- const n = new Zv(e);
9457
+ const n = new Yv(e);
9458
9458
  let i = e;
9459
9459
  for (; i = await this.findIssuer(i, t); ) {
9460
9460
  const s = await i.getThumbprint(t);
@@ -9510,7 +9510,7 @@ Rr.register(bl, y0);
9510
9510
  Rr.register(yl, g0);
9511
9511
  Pc.register(i0, v0);
9512
9512
  Pc.register(wf, bf);
9513
- lr.registerSingleton(jc, Kv);
9513
+ lr.registerSingleton(jc, Zv);
9514
9514
  lr.registerSingleton(jc, Tr);
9515
9515
  Tr.namedCurveSize.set("P-256", 32);
9516
9516
  Tr.namedCurveSize.set("K-256", 32);
@@ -9518,7 +9518,7 @@ Tr.namedCurveSize.set("P-384", 48);
9518
9518
  Tr.namedCurveSize.set("P-521", 66);
9519
9519
  const me = { POS_INT: 0, NEG_INT: 1, BYTE_STRING: 2, UTF8_STRING: 3, ARRAY: 4, MAP: 5, TAG: 6, SIMPLE_FLOAT: 7 }, It = { DATE_STRING: 0, DATE_EPOCH: 1, POS_BIGINT: 2, NEG_BIGINT: 3, DECIMAL_FRAC: 4, BIGFLOAT: 5, BASE64URL_EXPECTED: 21, BASE64_EXPECTED: 22, BASE16_EXPECTED: 23, CBOR: 24, URI: 32, BASE64URL: 33, BASE64: 34, MIME: 36, SET: 258, JSON: 262, REGEXP: 21066, SELF_DESCRIBED: 55799, INVALID_16: 65535, INVALID_32: 4294967295, INVALID_64: 0xffffffffffffffffn }, At = { ZERO: 0, ONE: 24, TWO: 25, FOUR: 26, EIGHT: 27, INDEFINITE: 31 }, Mn = { FALSE: 20, TRUE: 21, NULL: 22, UNDEFINED: 23 };
9520
9520
  var Es;
9521
- let Er = (Es = class {
9521
+ let Ir = (Es = class {
9522
9522
  }, Ge(Es, "BREAK", Symbol.for("github.com/hildjj/cbor2/break")), Ge(Es, "ENCODED", Symbol.for("github.com/hildjj/cbor2/cbor-encoded")), Ge(Es, "LENGTH", Symbol.for("github.com/hildjj/cbor2/length")), Es);
9523
9523
  const Sa = { MIN: -(2n ** 63n), MAX: 2n ** 64n - 1n };
9524
9524
  var vn, Qr;
@@ -9562,13 +9562,13 @@ let Qe = (vn = class {
9562
9562
  }
9563
9563
  }, Qr = new WeakMap(), rr(vn, Qr, /* @__PURE__ */ new Map()), vn);
9564
9564
  function _a(r) {
9565
- if (r != null && typeof r == "object") return r[Er.ENCODED];
9565
+ if (r != null && typeof r == "object") return r[Ir.ENCODED];
9566
9566
  }
9567
- function Yv(r) {
9568
- if (r != null && typeof r == "object") return r[Er.LENGTH];
9567
+ function Xv(r) {
9568
+ if (r != null && typeof r == "object") return r[Ir.LENGTH];
9569
9569
  }
9570
9570
  function Zs(r, e) {
9571
- Object.defineProperty(r, Er.ENCODED, { configurable: !0, enumerable: !1, value: e });
9571
+ Object.defineProperty(r, Ir.ENCODED, { configurable: !0, enumerable: !1, value: e });
9572
9572
  }
9573
9573
  function Is(r, e) {
9574
9574
  const t = Object(r);
@@ -9584,7 +9584,7 @@ function m0(r) {
9584
9584
  function Vr(r) {
9585
9585
  return r.reduce((e, t) => e + t.toString(16).padStart(2, "0"), "");
9586
9586
  }
9587
- function Jv(r) {
9587
+ function Qv(r) {
9588
9588
  const e = r.reduce((i, s) => i + s.length, 0), t = new Uint8Array(e);
9589
9589
  let n = 0;
9590
9590
  for (const i of r) t.set(i, n), n += i.length;
@@ -9594,12 +9594,12 @@ function xf(r) {
9594
9594
  const e = atob(r);
9595
9595
  return Uint8Array.from(e, (t) => t.codePointAt(0));
9596
9596
  }
9597
- const Xv = { "-": "+", _: "/" };
9598
- function Qv(r) {
9599
- const e = r.replace(/[_-]/g, (t) => Xv[t]);
9597
+ const em = { "-": "+", _: "/" };
9598
+ function tm(r) {
9599
+ const e = r.replace(/[_-]/g, (t) => em[t]);
9600
9600
  return xf(e.padEnd(Math.ceil(e.length / 4) * 4, "="));
9601
9601
  }
9602
- function em() {
9602
+ function rm() {
9603
9603
  const r = new Uint8Array(4), e = new Uint32Array(r.buffer);
9604
9604
  return !((e[0] = 1) & r[0]);
9605
9605
  }
@@ -9630,51 +9630,51 @@ const Va = class Va {
9630
9630
  rr(this, Mt, 0);
9631
9631
  rr(this, Un, 0);
9632
9632
  if (kt(this, Rn, { ...Va.defaultOptions, ...e }), $(this, Rn).chunkSize < 8) throw new RangeError(`Expected size >= 8, got ${$(this, Rn).chunkSize}`);
9633
- Me(this, rt, Qn).call(this);
9633
+ Ve(this, rt, Qn).call(this);
9634
9634
  }
9635
9635
  get length() {
9636
9636
  return $(this, Un);
9637
9637
  }
9638
9638
  read() {
9639
- Me(this, rt, Ho).call(this);
9639
+ Ve(this, rt, Ho).call(this);
9640
9640
  const e = new Uint8Array($(this, Un));
9641
9641
  let t = 0;
9642
9642
  for (const n of $(this, Kt)) e.set(n, t), t += n.length;
9643
- return Me(this, rt, Qn).call(this), e;
9643
+ return Ve(this, rt, Qn).call(this), e;
9644
9644
  }
9645
9645
  write(e) {
9646
9646
  const t = e.length;
9647
- t > Me(this, rt, _u).call(this) ? (Me(this, rt, Ho).call(this), t > $(this, Rn).chunkSize ? ($(this, Kt).push(e), Me(this, rt, Qn).call(this)) : (Me(this, rt, Qn).call(this), $(this, Kt)[$(this, Kt).length - 1].set(e), kt(this, Mt, t))) : ($(this, Kt)[$(this, Kt).length - 1].set(e, $(this, Mt)), kt(this, Mt, $(this, Mt) + t)), kt(this, Un, $(this, Un) + t);
9647
+ t > Ve(this, rt, _u).call(this) ? (Ve(this, rt, Ho).call(this), t > $(this, Rn).chunkSize ? ($(this, Kt).push(e), Ve(this, rt, Qn).call(this)) : (Ve(this, rt, Qn).call(this), $(this, Kt)[$(this, Kt).length - 1].set(e), kt(this, Mt, t))) : ($(this, Kt)[$(this, Kt).length - 1].set(e, $(this, Mt)), kt(this, Mt, $(this, Mt) + t)), kt(this, Un, $(this, Un) + t);
9648
9648
  }
9649
9649
  writeUint8(e) {
9650
- Me(this, rt, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), Me(this, rt, Xr).call(this, 1);
9650
+ Ve(this, rt, Jr).call(this, 1), $(this, pr).setUint8($(this, Mt), e), Ve(this, rt, Xr).call(this, 1);
9651
9651
  }
9652
9652
  writeUint16(e, t = !1) {
9653
- Me(this, rt, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), Me(this, rt, Xr).call(this, 2);
9653
+ Ve(this, rt, Jr).call(this, 2), $(this, pr).setUint16($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 2);
9654
9654
  }
9655
9655
  writeUint32(e, t = !1) {
9656
- Me(this, rt, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), Me(this, rt, Xr).call(this, 4);
9656
+ Ve(this, rt, Jr).call(this, 4), $(this, pr).setUint32($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 4);
9657
9657
  }
9658
9658
  writeBigUint64(e, t = !1) {
9659
- Me(this, rt, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), Me(this, rt, Xr).call(this, 8);
9659
+ Ve(this, rt, Jr).call(this, 8), $(this, pr).setBigUint64($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 8);
9660
9660
  }
9661
9661
  writeInt16(e, t = !1) {
9662
- Me(this, rt, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), Me(this, rt, Xr).call(this, 2);
9662
+ Ve(this, rt, Jr).call(this, 2), $(this, pr).setInt16($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 2);
9663
9663
  }
9664
9664
  writeInt32(e, t = !1) {
9665
- Me(this, rt, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), Me(this, rt, Xr).call(this, 4);
9665
+ Ve(this, rt, Jr).call(this, 4), $(this, pr).setInt32($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 4);
9666
9666
  }
9667
9667
  writeBigInt64(e, t = !1) {
9668
- Me(this, rt, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), Me(this, rt, Xr).call(this, 8);
9668
+ Ve(this, rt, Jr).call(this, 8), $(this, pr).setBigInt64($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 8);
9669
9669
  }
9670
9670
  writeFloat32(e, t = !1) {
9671
- Me(this, rt, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), Me(this, rt, Xr).call(this, 4);
9671
+ Ve(this, rt, Jr).call(this, 4), $(this, pr).setFloat32($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 4);
9672
9672
  }
9673
9673
  writeFloat64(e, t = !1) {
9674
- Me(this, rt, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), Me(this, rt, Xr).call(this, 8);
9674
+ Ve(this, rt, Jr).call(this, 8), $(this, pr).setFloat64($(this, Mt), e, t), Ve(this, rt, Xr).call(this, 8);
9675
9675
  }
9676
9676
  clear() {
9677
- kt(this, Un, 0), kt(this, Kt, []), Me(this, rt, Qn).call(this);
9677
+ kt(this, Un, 0), kt(this, Kt, []), Ve(this, rt, Qn).call(this);
9678
9678
  }
9679
9679
  };
9680
9680
  Rn = new WeakMap(), Kt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(), Un = new WeakMap(), rt = new WeakSet(), Qn = function() {
@@ -9691,7 +9691,7 @@ Rn = new WeakMap(), Kt = new WeakMap(), pr = new WeakMap(), Mt = new WeakMap(),
9691
9691
  const e = $(this, Kt).length - 1;
9692
9692
  return $(this, Kt)[e].length - $(this, Mt);
9693
9693
  }, Jr = function(e) {
9694
- Me(this, rt, _u).call(this) < e && (Me(this, rt, Ho).call(this), Me(this, rt, Qn).call(this));
9694
+ Ve(this, rt, _u).call(this) < e && (Ve(this, rt, Ho).call(this), Ve(this, rt, Qn).call(this));
9695
9695
  }, Xr = function(e) {
9696
9696
  kt(this, Mt, $(this, Mt) + e), kt(this, Un, $(this, Un) + e);
9697
9697
  }, Ge(Va, "defaultOptions", { chunkSize: 4096 });
@@ -9704,7 +9704,7 @@ function b0(r, e = 0, t = !1) {
9704
9704
  } else if (i === 31) return s ? NaN : n * (1 / 0);
9705
9705
  return n * 2 ** (i - 25) * (1024 + s);
9706
9706
  }
9707
- function tm(r) {
9707
+ function nm(r) {
9708
9708
  const e = new DataView(new ArrayBuffer(4));
9709
9709
  e.setFloat32(0, r, !1);
9710
9710
  const t = e.getUint32(0, !1);
@@ -9719,7 +9719,7 @@ function tm(r) {
9719
9719
  else return null;
9720
9720
  return n;
9721
9721
  }
9722
- function rm(r) {
9722
+ function im(r) {
9723
9723
  if (r !== 0) {
9724
9724
  const e = new ArrayBuffer(8), t = new DataView(e);
9725
9725
  t.setFloat64(0, r, !1);
@@ -9728,7 +9728,7 @@ function rm(r) {
9728
9728
  }
9729
9729
  return r;
9730
9730
  }
9731
- function nm(r) {
9731
+ function sm(r) {
9732
9732
  switch (r.length) {
9733
9733
  case 2:
9734
9734
  b0(r, 0, !0);
@@ -9747,7 +9747,7 @@ function nm(r) {
9747
9747
  throw new TypeError(`Bad input to isSubnormal: ${r}`);
9748
9748
  }
9749
9749
  }
9750
- const fd = me.SIMPLE_FLOAT << 5 | At.TWO, im = me.SIMPLE_FLOAT << 5 | At.FOUR, sm = me.SIMPLE_FLOAT << 5 | At.EIGHT, om = me.SIMPLE_FLOAT << 5 | Mn.TRUE, am = me.SIMPLE_FLOAT << 5 | Mn.FALSE, cm = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, lm = me.SIMPLE_FLOAT << 5 | Mn.NULL, um = new TextEncoder(), fm = { ...Ea.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null }, x0 = { cde: !0, ignoreOriginalEncoding: !0, sortKeys: w0 }, hm = { ...x0, dcbor: !0, largeNegativeAsBigInt: !0, reduceUnsafeNumbers: !0, rejectCustomSimples: !0, rejectDuplicateKeys: !0, rejectUndefined: !0, simplifyNegativeZero: !0, stringNormalization: "NFC" };
9750
+ const fd = me.SIMPLE_FLOAT << 5 | At.TWO, om = me.SIMPLE_FLOAT << 5 | At.FOUR, am = me.SIMPLE_FLOAT << 5 | At.EIGHT, cm = me.SIMPLE_FLOAT << 5 | Mn.TRUE, lm = me.SIMPLE_FLOAT << 5 | Mn.FALSE, um = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, fm = me.SIMPLE_FLOAT << 5 | Mn.NULL, hm = new TextEncoder(), dm = { ...Ea.defaultOptions, avoidInts: !1, cde: !1, collapseBigInts: !0, dcbor: !1, float64: !1, flushToZero: !1, forceEndian: null, ignoreOriginalEncoding: !1, largeNegativeAsBigInt: !1, reduceUnsafeNumbers: !1, rejectBigInts: !1, rejectCustomSimples: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectUndefined: !1, simplifyNegativeZero: !1, sortKeys: null, stringNormalization: null }, x0 = { cde: !0, ignoreOriginalEncoding: !0, sortKeys: w0 }, pm = { ...x0, dcbor: !0, largeNegativeAsBigInt: !0, reduceUnsafeNumbers: !0, rejectCustomSimples: !0, rejectDuplicateKeys: !0, rejectUndefined: !0, simplifyNegativeZero: !0, stringNormalization: "NFC" };
9751
9751
  function A0(r) {
9752
9752
  const e = r < 0;
9753
9753
  return typeof r == "bigint" ? [e ? -r - 1n : r, e] : [e ? -r - 1 : r, e];
@@ -9756,9 +9756,9 @@ function Qc(r, e, t) {
9756
9756
  if (t.rejectFloats) throw new Error(`Attempt to encode an unwanted floating point number: ${r}`);
9757
9757
  if (isNaN(r)) e.writeUint8(fd), e.writeUint16(32256);
9758
9758
  else if (!t.float64 && Math.fround(r) === r) {
9759
- const n = tm(r);
9760
- n === null ? (e.writeUint8(im), e.writeFloat32(r)) : (e.writeUint8(fd), e.writeUint16(n));
9761
- } else e.writeUint8(sm), e.writeFloat64(r);
9759
+ const n = nm(r);
9760
+ n === null ? (e.writeUint8(om), e.writeFloat32(r)) : (e.writeUint8(fd), e.writeUint16(n));
9761
+ } else e.writeUint8(am), e.writeFloat64(r);
9762
9762
  }
9763
9763
  function zr(r, e, t) {
9764
9764
  const [n, i] = A0(r);
@@ -9766,7 +9766,7 @@ function zr(r, e, t) {
9766
9766
  t ?? (t = i ? me.NEG_INT : me.POS_INT), t <<= 5, n < 24 ? e.writeUint8(t | n) : n <= 255 ? (e.writeUint8(t | At.ONE), e.writeUint8(n)) : n <= 65535 ? (e.writeUint8(t | At.TWO), e.writeUint16(n)) : n <= 4294967295 ? (e.writeUint8(t | At.FOUR), e.writeUint32(n)) : (e.writeUint8(t | At.EIGHT), e.writeBigUint64(BigInt(n)));
9767
9767
  }
9768
9768
  function Ia(r, e, t) {
9769
- typeof r == "number" ? zr(r, e, me.TAG) : typeof r == "object" && !t.ignoreOriginalEncoding && Er.ENCODED in r ? e.write(r[Er.ENCODED]) : r <= Number.MAX_SAFE_INTEGER ? zr(Number(r), e, me.TAG) : (e.writeUint8(me.TAG << 5 | At.EIGHT), e.writeBigUint64(BigInt(r)));
9769
+ typeof r == "number" ? zr(r, e, me.TAG) : typeof r == "object" && !t.ignoreOriginalEncoding && Ir.ENCODED in r ? e.write(r[Ir.ENCODED]) : r <= Number.MAX_SAFE_INTEGER ? zr(Number(r), e, me.TAG) : (e.writeUint8(me.TAG << 5 | At.EIGHT), e.writeBigUint64(BigInt(r)));
9770
9770
  }
9771
9771
  function S0(r, e, t) {
9772
9772
  const [n, i] = A0(r);
@@ -9787,38 +9787,38 @@ function S0(r, e, t) {
9787
9787
  const u = m0(c + o);
9788
9788
  zr(u.length, e, me.BYTE_STRING), e.write(u);
9789
9789
  }
9790
- function dm(r, e, t) {
9791
- t.flushToZero && (r = rm(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Qc(0, e, t) : zr(0, e) : Qc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? S0(BigInt(r), e, t) : Qc(r, e, t);
9790
+ function ym(r, e, t) {
9791
+ t.flushToZero && (r = im(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Qc(0, e, t) : zr(0, e) : Qc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? zr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? S0(BigInt(r), e, t) : Qc(r, e, t);
9792
9792
  }
9793
- function pm(r, e, t) {
9794
- const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = um.encode(n);
9793
+ function gm(r, e, t) {
9794
+ const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = hm.encode(n);
9795
9795
  zr(i.length, e, me.UTF8_STRING), e.write(i);
9796
9796
  }
9797
- function ym(r, e, t) {
9797
+ function vm(r, e, t) {
9798
9798
  const n = r;
9799
9799
  Af(n, n.length, me.ARRAY, e, t);
9800
9800
  for (const i of n) ii(i, e, t);
9801
9801
  }
9802
- function gm(r, e) {
9802
+ function mm(r, e) {
9803
9803
  const t = r;
9804
9804
  zr(t.length, e, me.BYTE_STRING), e.write(t);
9805
9805
  }
9806
- const Eu = /* @__PURE__ */ new Map([[Array, ym], [Uint8Array, gm]]);
9806
+ const Eu = /* @__PURE__ */ new Map([[Array, vm], [Uint8Array, mm]]);
9807
9807
  function Rt(r, e) {
9808
9808
  const t = Eu.get(r);
9809
9809
  return Eu.set(r, e), t;
9810
9810
  }
9811
9811
  function Af(r, e, t, n, i) {
9812
- const s = Yv(r);
9812
+ const s = Xv(r);
9813
9813
  s && !i.ignoreOriginalEncoding ? n.write(s) : zr(e, n, t);
9814
9814
  }
9815
- function vm(r, e, t) {
9815
+ function wm(r, e, t) {
9816
9816
  if (r === null) {
9817
- e.writeUint8(lm);
9817
+ e.writeUint8(fm);
9818
9818
  return;
9819
9819
  }
9820
- if (!t.ignoreOriginalEncoding && Er.ENCODED in r) {
9821
- e.write(r[Er.ENCODED]);
9820
+ if (!t.ignoreOriginalEncoding && Ir.ENCODED in r) {
9821
+ e.write(r[Ir.ENCODED]);
9822
9822
  return;
9823
9823
  }
9824
9824
  const n = Eu.get(r.constructor);
@@ -9843,23 +9843,23 @@ function vm(r, e, t) {
9843
9843
  function ii(r, e, t) {
9844
9844
  switch (typeof r) {
9845
9845
  case "number":
9846
- dm(r, e, t);
9846
+ ym(r, e, t);
9847
9847
  break;
9848
9848
  case "bigint":
9849
9849
  S0(r, e, t);
9850
9850
  break;
9851
9851
  case "string":
9852
- pm(r, e, t);
9852
+ gm(r, e, t);
9853
9853
  break;
9854
9854
  case "boolean":
9855
- e.writeUint8(r ? om : am);
9855
+ e.writeUint8(r ? cm : lm);
9856
9856
  break;
9857
9857
  case "undefined":
9858
9858
  if (t.rejectUndefined) throw new Error("Attempt to encode unwanted undefined.");
9859
- e.writeUint8(cm);
9859
+ e.writeUint8(um);
9860
9860
  break;
9861
9861
  case "object":
9862
- vm(r, e, t);
9862
+ wm(r, e, t);
9863
9863
  break;
9864
9864
  case "symbol":
9865
9865
  throw new TypeError(`Unknown symbol: ${r.toString()}`);
@@ -9868,8 +9868,8 @@ function ii(r, e, t) {
9868
9868
  }
9869
9869
  }
9870
9870
  function Rc(r, e = {}) {
9871
- const t = { ...fm };
9872
- e.dcbor ? Object.assign(t, hm) : e.cde && Object.assign(t, x0), Object.assign(t, e);
9871
+ const t = { ...dm };
9872
+ e.dcbor ? Object.assign(t, pm) : e.cde && Object.assign(t, x0), Object.assign(t, e);
9873
9873
  const n = new Ea(t);
9874
9874
  return ii(r, n, t), n.read();
9875
9875
  }
@@ -9898,16 +9898,16 @@ const Tn = class Tn {
9898
9898
  };
9899
9899
  Ge(Tn, "KnownSimple", /* @__PURE__ */ new Map([[Mn.FALSE, !1], [Mn.TRUE, !0], [Mn.NULL, null], [Mn.UNDEFINED, void 0]]));
9900
9900
  let Ws = Tn;
9901
- const mm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9902
- var Ar, $r, qt, kr, Wt, ei, Iu, ks;
9901
+ const bm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9902
+ var Ar, $r, qt, Cr, Wt, ei, Iu, ks;
9903
9903
  const La = class La {
9904
9904
  constructor(e, t) {
9905
9905
  rr(this, Wt);
9906
9906
  rr(this, Ar);
9907
9907
  rr(this, $r);
9908
9908
  rr(this, qt, 0);
9909
- rr(this, kr);
9910
- if (kt(this, kr, { ...La.defaultOptions, ...t }), typeof e == "string") switch ($(this, kr).encoding) {
9909
+ rr(this, Cr);
9910
+ if (kt(this, Cr, { ...La.defaultOptions, ...t }), typeof e == "string") switch ($(this, Cr).encoding) {
9911
9911
  case "hex":
9912
9912
  kt(this, Ar, m0(e));
9913
9913
  break;
@@ -9915,7 +9915,7 @@ const La = class La {
9915
9915
  kt(this, Ar, xf(e));
9916
9916
  break;
9917
9917
  default:
9918
- throw new TypeError(`Encoding not implemented: "${$(this, kr).encoding}"`);
9918
+ throw new TypeError(`Encoding not implemented: "${$(this, Cr).encoding}"`);
9919
9919
  }
9920
9920
  else kt(this, Ar, e);
9921
9921
  kt(this, $r, new DataView($(this, Ar).buffer, $(this, Ar).byteOffset, $(this, Ar).byteLength));
@@ -9924,11 +9924,11 @@ const La = class La {
9924
9924
  return $(this, Ar).subarray(e, $(this, qt));
9925
9925
  }
9926
9926
  *[Symbol.iterator]() {
9927
- if (yield* Me(this, Wt, ei).call(this, 0), $(this, qt) !== $(this, Ar).length) throw new Error("Extra data in input");
9927
+ if (yield* Ve(this, Wt, ei).call(this, 0), $(this, qt) !== $(this, Ar).length) throw new Error("Extra data in input");
9928
9928
  }
9929
9929
  };
9930
- Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(), Wt = new WeakSet(), ei = function* (e) {
9931
- if (e++ > $(this, kr).maxDepth) throw new Error(`Maximum depth ${$(this, kr).maxDepth} exceeded`);
9930
+ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), Cr = new WeakMap(), Wt = new WeakSet(), ei = function* (e) {
9931
+ if (e++ > $(this, Cr).maxDepth) throw new Error(`Maximum depth ${$(this, Cr).maxDepth} exceeded`);
9932
9932
  const t = $(this, qt), n = $(this, $r).getUint8(Bf(this, qt)._++), i = n >> 5, s = n & 31;
9933
9933
  let o = s, c = !1, u = 0;
9934
9934
  switch (s) {
@@ -9936,19 +9936,19 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
9936
9936
  if (u = 1, o = $(this, $r).getUint8($(this, qt)), i === me.SIMPLE_FLOAT) {
9937
9937
  if (o < 32) throw new Error(`Invalid simple encoding in extra byte: ${o}`);
9938
9938
  c = !0;
9939
- } else if ($(this, kr).requirePreferred && o < 24) throw new Error(`Unexpectedly long integer encoding (1) for ${o}`);
9939
+ } else if ($(this, Cr).requirePreferred && o < 24) throw new Error(`Unexpectedly long integer encoding (1) for ${o}`);
9940
9940
  break;
9941
9941
  case At.TWO:
9942
9942
  if (u = 2, i === me.SIMPLE_FLOAT) o = b0($(this, Ar), $(this, qt));
9943
- else if (o = $(this, $r).getUint16($(this, qt), !1), $(this, kr).requirePreferred && o <= 255) throw new Error(`Unexpectedly long integer encoding (2) for ${o}`);
9943
+ else if (o = $(this, $r).getUint16($(this, qt), !1), $(this, Cr).requirePreferred && o <= 255) throw new Error(`Unexpectedly long integer encoding (2) for ${o}`);
9944
9944
  break;
9945
9945
  case At.FOUR:
9946
9946
  if (u = 4, i === me.SIMPLE_FLOAT) o = $(this, $r).getFloat32($(this, qt), !1);
9947
- else if (o = $(this, $r).getUint32($(this, qt), !1), $(this, kr).requirePreferred && o <= 65535) throw new Error(`Unexpectedly long integer encoding (4) for ${o}`);
9947
+ else if (o = $(this, $r).getUint32($(this, qt), !1), $(this, Cr).requirePreferred && o <= 65535) throw new Error(`Unexpectedly long integer encoding (4) for ${o}`);
9948
9948
  break;
9949
9949
  case At.EIGHT: {
9950
9950
  if (u = 8, i === me.SIMPLE_FLOAT) o = $(this, $r).getFloat64($(this, qt), !1);
9951
- else if (o = $(this, $r).getBigUint64($(this, qt), !1), o <= Number.MAX_SAFE_INTEGER && (o = Number(o)), $(this, kr).requirePreferred && o <= 4294967295) throw new Error(`Unexpectedly long integer encoding (8) for ${o}`);
9951
+ else if (o = $(this, $r).getBigUint64($(this, qt), !1), o <= Number.MAX_SAFE_INTEGER && (o = Number(o)), $(this, Cr).requirePreferred && o <= 4294967295) throw new Error(`Unexpectedly long integer encoding (8) for ${o}`);
9952
9952
  break;
9953
9953
  }
9954
9954
  case 28:
@@ -9962,7 +9962,7 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
9962
9962
  case me.TAG:
9963
9963
  throw new Error(`Invalid indefinite encoding for MT ${i}`);
9964
9964
  case me.SIMPLE_FLOAT:
9965
- yield [i, s, Er.BREAK, t, 0];
9965
+ yield [i, s, Ir.BREAK, t, 0];
9966
9966
  return;
9967
9967
  }
9968
9968
  o = 1 / 0;
@@ -9978,29 +9978,29 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
9978
9978
  yield [i, s, typeof o == "bigint" ? -1n - o : -1 - Number(o), t, u];
9979
9979
  break;
9980
9980
  case me.BYTE_STRING:
9981
- o === 1 / 0 ? yield* Me(this, Wt, ks).call(this, i, e, t) : yield [i, s, Me(this, Wt, Iu).call(this, o), t, o];
9981
+ o === 1 / 0 ? yield* Ve(this, Wt, ks).call(this, i, e, t) : yield [i, s, Ve(this, Wt, Iu).call(this, o), t, o];
9982
9982
  break;
9983
9983
  case me.UTF8_STRING:
9984
- o === 1 / 0 ? yield* Me(this, Wt, ks).call(this, i, e, t) : yield [i, s, mm.decode(Me(this, Wt, Iu).call(this, o)), t, o];
9984
+ o === 1 / 0 ? yield* Ve(this, Wt, ks).call(this, i, e, t) : yield [i, s, bm.decode(Ve(this, Wt, Iu).call(this, o)), t, o];
9985
9985
  break;
9986
9986
  case me.ARRAY:
9987
- if (o === 1 / 0) yield* Me(this, Wt, ks).call(this, i, e, t, !1);
9987
+ if (o === 1 / 0) yield* Ve(this, Wt, ks).call(this, i, e, t, !1);
9988
9988
  else {
9989
9989
  const h = Number(o);
9990
9990
  yield [i, s, h, t, u];
9991
- for (let v = 0; v < h; v++) yield* Me(this, Wt, ei).call(this, e + 1);
9991
+ for (let v = 0; v < h; v++) yield* Ve(this, Wt, ei).call(this, e + 1);
9992
9992
  }
9993
9993
  break;
9994
9994
  case me.MAP:
9995
- if (o === 1 / 0) yield* Me(this, Wt, ks).call(this, i, e, t, !1);
9995
+ if (o === 1 / 0) yield* Ve(this, Wt, ks).call(this, i, e, t, !1);
9996
9996
  else {
9997
9997
  const h = Number(o);
9998
9998
  yield [i, s, h, t, u];
9999
- for (let v = 0; v < h; v++) yield* Me(this, Wt, ei).call(this, e), yield* Me(this, Wt, ei).call(this, e);
9999
+ for (let v = 0; v < h; v++) yield* Ve(this, Wt, ei).call(this, e), yield* Ve(this, Wt, ei).call(this, e);
10000
10000
  }
10001
10001
  break;
10002
10002
  case me.TAG:
10003
- yield [i, s, o, t, u], yield* Me(this, Wt, ei).call(this, e);
10003
+ yield [i, s, o, t, u], yield* Ve(this, Wt, ei).call(this, e);
10004
10004
  break;
10005
10005
  case me.SIMPLE_FLOAT: {
10006
10006
  const h = o;
@@ -10014,8 +10014,8 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
10014
10014
  return t;
10015
10015
  }, ks = function* (e, t, n, i = !0) {
10016
10016
  for (yield [e, At.INDEFINITE, 1 / 0, n, 1 / 0]; ; ) {
10017
- const s = Me(this, Wt, ei).call(this, t), o = s.next(), [c, u, h] = o.value;
10018
- if (h === Er.BREAK) {
10017
+ const s = Ve(this, Wt, ei).call(this, t), o = s.next(), [c, u, h] = o.value;
10018
+ if (h === Ir.BREAK) {
10019
10019
  yield o.value, s.next();
10020
10020
  return;
10021
10021
  }
@@ -10027,7 +10027,7 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), kr = new WeakMap(),
10027
10027
  }
10028
10028
  }, Ge(La, "defaultOptions", { maxDepth: 1024, encoding: "hex", requirePreferred: !1 });
10029
10029
  let Ys = La;
10030
- const wm = /* @__PURE__ */ new Map([[At.ZERO, 1], [At.ONE, 2], [At.TWO, 3], [At.FOUR, 5], [At.EIGHT, 9]]), bm = new Uint8Array(0);
10030
+ const xm = /* @__PURE__ */ new Map([[At.ZERO, 1], [At.ONE, 2], [At.TWO, 3], [At.FOUR, 5], [At.EIGHT, 9]]), Am = new Uint8Array(0);
10031
10031
  var tn, ar, en, Ha, E0;
10032
10032
  let Nn = (tn = class {
10033
10033
  constructor(e, t, n, i) {
@@ -10068,10 +10068,10 @@ let Nn = (tn = class {
10068
10068
  const h = i.toHere(u);
10069
10069
  if (h.length !== 3 || h[1] !== 126 || h[2] !== 0) throw new Error(`Invalid NaN encoding: "${Vr(h)}"`);
10070
10070
  }
10071
- if (n.rejectSubnormals && nm(i.toHere(u + 1)), n.rejectLongFloats) {
10071
+ if (n.rejectSubnormals && sm(i.toHere(u + 1)), n.rejectLongFloats) {
10072
10072
  const h = Rc(c, { chunkSize: 9, reduceUnsafeNumbers: n.rejectUnsafeFloatInts });
10073
10073
  if (h[0] >> 5 !== s) throw new Error(`Should have been encoded as int, not float: ${c}`);
10074
- if (h.length < wm.get(o)) throw new Error(`Number should have been encoded shorter: ${c}`);
10074
+ if (h.length < xm.get(o)) throw new Error(`Number should have been encoded shorter: ${c}`);
10075
10075
  }
10076
10076
  if (typeof c == "number" && n.boxed) return Is(c, i.toHere(u));
10077
10077
  } else {
@@ -10120,7 +10120,7 @@ let Nn = (tn = class {
10120
10120
  t = this.children;
10121
10121
  break;
10122
10122
  case me.MAP: {
10123
- const n = Me(this, Ha, E0).call(this);
10123
+ const n = Ve(this, Ha, E0).call(this);
10124
10124
  if ($(this, ar).sortKeys) {
10125
10125
  let i;
10126
10126
  for (const s of n) {
@@ -10139,7 +10139,7 @@ let Nn = (tn = class {
10139
10139
  break;
10140
10140
  }
10141
10141
  case me.BYTE_STRING:
10142
- return Jv(this.children);
10142
+ return Qv(this.children);
10143
10143
  case me.UTF8_STRING: {
10144
10144
  const n = this.children.join("");
10145
10145
  t = $(this, ar).boxed ? Is(n, e.toHere(this.offset)) : n;
@@ -10158,11 +10158,11 @@ let Nn = (tn = class {
10158
10158
  if (t % 2) throw new Error("Missing map value");
10159
10159
  const n = new Array(t / 2);
10160
10160
  if ($(this, en)) for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], $(this, en)[i]];
10161
- else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], bm];
10161
+ else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], Am];
10162
10162
  return n;
10163
10163
  }, Ge(tn, "defaultDecodeOptions", { ...Ys.defaultOptions, ParentType: tn, boxed: !1, cde: !1, dcbor: !1, diagnosticSizes: _0.PREFERRED, convertUnsafeIntsToFloat: !1, pretty: !1, preferMap: !1, rejectLargeNegatives: !1, rejectBigInts: !1, rejectDuplicateKeys: !1, rejectFloats: !1, rejectInts: !1, rejectLongLoundNaN: !1, rejectLongFloats: !1, rejectNegativeZero: !1, rejectSimple: !1, rejectStreaming: !1, rejectStringsNotNormalizedAs: null, rejectSubnormals: !1, rejectUndefined: !1, rejectUnsafeFloatInts: !1, saveOriginal: !1, sortKeys: null }), Ge(tn, "cdeDecodeOptions", { cde: !0, rejectStreaming: !0, requirePreferred: !0, sortKeys: w0 }), Ge(tn, "dcborDecodeOptions", { ...tn.cdeDecodeOptions, dcbor: !0, convertUnsafeIntsToFloat: !0, rejectDuplicateKeys: !0, rejectLargeNegatives: !0, rejectLongLoundNaN: !0, rejectLongFloats: !0, rejectNegativeZero: !0, rejectSimple: !0, rejectUndefined: !0, rejectUnsafeFloatInts: !0, rejectStringsNotNormalizedAs: "NFC" }), tn);
10164
10164
  var xd, Ad;
10165
- class ku extends (Ad = Nn, xd = Er.ENCODED, Ad) {
10165
+ class ku extends (Ad = Nn, xd = Ir.ENCODED, Ad) {
10166
10166
  constructor(t, n, i, s) {
10167
10167
  super(t, n, i, s);
10168
10168
  Ge(this, "depth", 0);
@@ -10232,7 +10232,7 @@ function k0(r, e, t) {
10232
10232
  break;
10233
10233
  }
10234
10234
  case me.SIMPLE_FLOAT:
10235
- c === Er.BREAK ? n += "BREAK" : r.ai > At.ONE ? Object.is(c, -0) ? n += "Float: -0" : n += `Float: ${c}` : (n += "Simple: ", c instanceof Ws ? n += c.value : n += c);
10235
+ c === Ir.BREAK ? n += "BREAK" : r.ai > At.ONE ? Object.is(c, -0) ? n += "Float: -0" : n += `Float: ${c}` : (n += "Simple: ", c instanceof Ws ? n += c.value : n += c);
10236
10236
  break;
10237
10237
  }
10238
10238
  if (!o) if (r.leaf) {
@@ -10256,12 +10256,12 @@ function k0(r, e, t) {
10256
10256
  }
10257
10257
  return n;
10258
10258
  }
10259
- const xm = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10260
- function Am(r, e) {
10261
- const t = { ...xm, ...e, ParentType: ku, saveOriginal: !0 }, n = new Ys(r, t);
10259
+ const Sm = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10260
+ function _m(r, e) {
10261
+ const t = { ...Sm, ...e, ParentType: ku, saveOriginal: !0 }, n = new Ys(r, t);
10262
10262
  let i, s;
10263
10263
  for (const c of n) {
10264
- if (s = Nn.create(c, i, t, n), c[2] === Er.BREAK) if (i != null && i.isStreaming) i.left = 1;
10264
+ if (s = Nn.create(c, i, t, n), c[2] === Ir.BREAK) if (i != null && i.isStreaming) i.left = 1;
10265
10265
  else throw new Error("Unexpected BREAK");
10266
10266
  if (!I0(s)) {
10267
10267
  const v = new ku(c, 0, i, t);
@@ -10276,7 +10276,7 @@ function Am(r, e) {
10276
10276
  `;
10277
10277
  return o += k0(s, t), o;
10278
10278
  }
10279
- const hd = !em();
10279
+ const hd = !rm();
10280
10280
  function C0(r) {
10281
10281
  if (typeof r == "object" && r) {
10282
10282
  if (r.constructor !== Number) throw new Error(`Expected number: ${r}`);
@@ -10333,12 +10333,12 @@ tl.comment = (r, e, t) => {
10333
10333
  const o = i[s] & 31;
10334
10334
  let c = Vr(i.subarray(s, ++s));
10335
10335
  o >= 24 && (c += " ", c += Vr(i.subarray(s, s + 2 ** (o - 24)))), n.minCol = Math.max(n.minCol, (t + 1) * 2 + c.length);
10336
- const u = Am(r.contents, n);
10336
+ const u = _m(r.contents, n);
10337
10337
  let h = `Embedded CBOR
10338
10338
  `;
10339
10339
  return h += `${"".padStart((t + 1) * 2, " ")}${c}`.padEnd(n.minCol + 1, " "), h += `-- Bytes (Length: ${r.contents.length})
10340
10340
  `, h += u, h;
10341
- }, tl.noChildren = !0, Qe.registerDecoder(It.CBOR, tl), Qe.registerDecoder(It.URI, (r) => (Pn(r.contents), new URL(r.contents)), "URI"), Rt(URL, (r) => [It.URI, r.toString()]), Qe.registerDecoder(It.BASE64URL, (r) => (Pn(r.contents), Qv(r.contents)), "Base64url-encoded"), Qe.registerDecoder(It.BASE64, (r) => (Pn(r.contents), xf(r.contents)), "Base64-encoded"), Qe.registerDecoder(35, (r) => (Pn(r.contents), new RegExp(r.contents)), "RegExp"), Qe.registerDecoder(21065, (r) => {
10341
+ }, tl.noChildren = !0, Qe.registerDecoder(It.CBOR, tl), Qe.registerDecoder(It.URI, (r) => (Pn(r.contents), new URL(r.contents)), "URI"), Rt(URL, (r) => [It.URI, r.toString()]), Qe.registerDecoder(It.BASE64URL, (r) => (Pn(r.contents), tm(r.contents)), "Base64url-encoded"), Qe.registerDecoder(It.BASE64, (r) => (Pn(r.contents), xf(r.contents)), "Base64-encoded"), Qe.registerDecoder(35, (r) => (Pn(r.contents), new RegExp(r.contents)), "RegExp"), Qe.registerDecoder(21065, (r) => {
10342
10342
  Pn(r.contents);
10343
10343
  let e = r.contents.replace(new RegExp("(?<!\\\\)(?<!\\[(?:[^\\]]|\\\\\\])*)\\.", "g"), `[^
10344
10344
  \r]`);
@@ -10386,7 +10386,7 @@ function Ca(r, e = {}) {
10386
10386
  const n = new Ys(r, t);
10387
10387
  let i, s;
10388
10388
  for (const o of n) {
10389
- if (s = Nn.create(o, i, t, n), o[2] === Er.BREAK) if (i != null && i.isStreaming) i.left = 0;
10389
+ if (s = Nn.create(o, i, t, n), o[2] === Ir.BREAK) if (i != null && i.isStreaming) i.left = 0;
10390
10390
  else throw new Error("Unexpected BREAK");
10391
10391
  else i && i.push(s, n, o[3]);
10392
10392
  for (s instanceof Nn && (i = s); i != null && i.done; ) {
@@ -10501,8 +10501,8 @@ const re = lt.arrayToEnum([
10501
10501
  "invalid_intersection_types",
10502
10502
  "not_multiple_of",
10503
10503
  "not_finite"
10504
- ]), Sm = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10505
- class _r extends Error {
10504
+ ]), Em = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10505
+ class Er extends Error {
10506
10506
  constructor(e) {
10507
10507
  super(), this.issues = [], this.addIssue = (n) => {
10508
10508
  this.issues = [...this.issues, n];
@@ -10539,7 +10539,7 @@ class _r extends Error {
10539
10539
  return i(this), n;
10540
10540
  }
10541
10541
  static assert(e) {
10542
- if (!(e instanceof _r))
10542
+ if (!(e instanceof Er))
10543
10543
  throw new Error(`Not a ZodError: ${e}`);
10544
10544
  }
10545
10545
  toString() {
@@ -10561,7 +10561,7 @@ class _r extends Error {
10561
10561
  return this.flatten();
10562
10562
  }
10563
10563
  }
10564
- _r.create = (r) => new _r(r);
10564
+ Er.create = (r) => new Er(r);
10565
10565
  const Xi = (r, e) => {
10566
10566
  let t;
10567
10567
  switch (r.code) {
@@ -10619,7 +10619,7 @@ const Xi = (r, e) => {
10619
10619
  return { message: t };
10620
10620
  };
10621
10621
  let O0 = Xi;
10622
- function _m(r) {
10622
+ function Im(r) {
10623
10623
  O0 = r;
10624
10624
  }
10625
10625
  function Ba() {
@@ -10645,7 +10645,7 @@ const Oa = (r) => {
10645
10645
  path: s,
10646
10646
  message: c
10647
10647
  };
10648
- }, Em = [];
10648
+ }, km = [];
10649
10649
  function X(r, e) {
10650
10650
  const t = Ba(), n = Oa({
10651
10651
  issueData: e,
@@ -10736,7 +10736,7 @@ const vd = (r, e) => {
10736
10736
  get error() {
10737
10737
  if (this._error)
10738
10738
  return this._error;
10739
- const t = new _r(r.common.issues);
10739
+ const t = new Er(r.common.issues);
10740
10740
  return this._error = t, this._error;
10741
10741
  }
10742
10742
  };
@@ -10936,14 +10936,14 @@ class Ye {
10936
10936
  return this.safeParse(null).success;
10937
10937
  }
10938
10938
  }
10939
- const Im = /^c[^\s-]{8,}$/i, km = /^[0-9a-z]+$/, Cm = /^[0-9A-HJKMNP-TV-Z]{26}$/, Bm = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Om = /^[a-z0-9_-]{21}$/i, Tm = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Nm = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Pm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10939
+ const Cm = /^c[^\s-]{8,}$/i, Bm = /^[0-9a-z]+$/, Om = /^[0-9A-HJKMNP-TV-Z]{26}$/, Tm = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Nm = /^[a-z0-9_-]{21}$/i, Pm = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, jm = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Rm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10940
10940
  let nl;
10941
- const jm = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rm = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Um = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, N0 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Dm = new RegExp(`^${N0}$`);
10941
+ const Um = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Dm = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, $m = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, N0 = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Mm = new RegExp(`^${N0}$`);
10942
10942
  function P0(r) {
10943
10943
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
10944
10944
  return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
10945
10945
  }
10946
- function $m(r) {
10946
+ function Vm(r) {
10947
10947
  return new RegExp(`^${P0(r)}$`);
10948
10948
  }
10949
10949
  function j0(r) {
@@ -10951,8 +10951,8 @@ function j0(r) {
10951
10951
  const t = [];
10952
10952
  return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
10953
10953
  }
10954
- function Mm(r, e) {
10955
- return !!((e === "v4" || !e) && jm.test(r) || (e === "v6" || !e) && Rm.test(r));
10954
+ function Lm(r, e) {
10955
+ return !!((e === "v4" || !e) && Um.test(r) || (e === "v6" || !e) && Dm.test(r));
10956
10956
  }
10957
10957
  class Mr extends Ye {
10958
10958
  _parse(e) {
@@ -11003,43 +11003,43 @@ class Mr extends Ye {
11003
11003
  message: s.message
11004
11004
  }), n.dirty());
11005
11005
  } else if (s.kind === "email")
11006
- Nm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11006
+ jm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11007
11007
  validation: "email",
11008
11008
  code: z.invalid_string,
11009
11009
  message: s.message
11010
11010
  }), n.dirty());
11011
11011
  else if (s.kind === "emoji")
11012
- nl || (nl = new RegExp(Pm, "u")), nl.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11012
+ nl || (nl = new RegExp(Rm, "u")), nl.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11013
11013
  validation: "emoji",
11014
11014
  code: z.invalid_string,
11015
11015
  message: s.message
11016
11016
  }), n.dirty());
11017
11017
  else if (s.kind === "uuid")
11018
- Bm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11018
+ Tm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11019
11019
  validation: "uuid",
11020
11020
  code: z.invalid_string,
11021
11021
  message: s.message
11022
11022
  }), n.dirty());
11023
11023
  else if (s.kind === "nanoid")
11024
- Om.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11024
+ Nm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11025
11025
  validation: "nanoid",
11026
11026
  code: z.invalid_string,
11027
11027
  message: s.message
11028
11028
  }), n.dirty());
11029
11029
  else if (s.kind === "cuid")
11030
- Im.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11030
+ Cm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11031
11031
  validation: "cuid",
11032
11032
  code: z.invalid_string,
11033
11033
  message: s.message
11034
11034
  }), n.dirty());
11035
11035
  else if (s.kind === "cuid2")
11036
- km.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11036
+ Bm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11037
11037
  validation: "cuid2",
11038
11038
  code: z.invalid_string,
11039
11039
  message: s.message
11040
11040
  }), n.dirty());
11041
11041
  else if (s.kind === "ulid")
11042
- Cm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11042
+ Om.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11043
11043
  validation: "ulid",
11044
11044
  code: z.invalid_string,
11045
11045
  message: s.message
@@ -11074,23 +11074,23 @@ class Mr extends Ye {
11074
11074
  code: z.invalid_string,
11075
11075
  validation: "datetime",
11076
11076
  message: s.message
11077
- }), n.dirty()) : s.kind === "date" ? Dm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11077
+ }), n.dirty()) : s.kind === "date" ? Mm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11078
11078
  code: z.invalid_string,
11079
11079
  validation: "date",
11080
11080
  message: s.message
11081
- }), n.dirty()) : s.kind === "time" ? $m(s).test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11081
+ }), n.dirty()) : s.kind === "time" ? Vm(s).test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11082
11082
  code: z.invalid_string,
11083
11083
  validation: "time",
11084
11084
  message: s.message
11085
- }), n.dirty()) : s.kind === "duration" ? Tm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11085
+ }), n.dirty()) : s.kind === "duration" ? Pm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11086
11086
  validation: "duration",
11087
11087
  code: z.invalid_string,
11088
11088
  message: s.message
11089
- }), n.dirty()) : s.kind === "ip" ? Mm(e.data, s.version) || (i = this._getOrReturnCtx(e, i), X(i, {
11089
+ }), n.dirty()) : s.kind === "ip" ? Lm(e.data, s.version) || (i = this._getOrReturnCtx(e, i), X(i, {
11090
11090
  validation: "ip",
11091
11091
  code: z.invalid_string,
11092
11092
  message: s.message
11093
- }), n.dirty()) : s.kind === "base64" ? Um.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11093
+ }), n.dirty()) : s.kind === "base64" ? $m.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11094
11094
  validation: "base64",
11095
11095
  code: z.invalid_string,
11096
11096
  message: s.message
@@ -11312,7 +11312,7 @@ Mr.create = (r) => {
11312
11312
  ...Ke(r)
11313
11313
  });
11314
11314
  };
11315
- function Vm(r, e) {
11315
+ function Hm(r, e) {
11316
11316
  const t = (r.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, i = t > n ? t : n, s = parseInt(r.toFixed(i).replace(".", "")), o = parseInt(e.toFixed(i).replace(".", ""));
11317
11317
  return s % o / Math.pow(10, i);
11318
11318
  }
@@ -11351,7 +11351,7 @@ class Kn extends Ye {
11351
11351
  inclusive: s.inclusive,
11352
11352
  exact: !1,
11353
11353
  message: s.message
11354
- }), i.dirty()) : s.kind === "multipleOf" ? Vm(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), X(n, {
11354
+ }), i.dirty()) : s.kind === "multipleOf" ? Hm(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), X(n, {
11355
11355
  code: z.not_multiple_of,
11356
11356
  multipleOf: s.value,
11357
11357
  message: s.message
@@ -12204,7 +12204,7 @@ class ro extends Ye {
12204
12204
  for (const c of s)
12205
12205
  if (c.result.status === "dirty")
12206
12206
  return t.common.issues.push(...c.ctx.common.issues), c.result;
12207
- const o = s.map((c) => new _r(c.ctx.common.issues));
12207
+ const o = s.map((c) => new Er(c.ctx.common.issues));
12208
12208
  return X(t, {
12209
12209
  code: z.invalid_union,
12210
12210
  unionErrors: o
@@ -12251,7 +12251,7 @@ class ro extends Ye {
12251
12251
  }
12252
12252
  if (s)
12253
12253
  return t.common.issues.push(...s.ctx.common.issues), s.result;
12254
- const c = o.map((u) => new _r(u));
12254
+ const c = o.map((u) => new Er(u));
12255
12255
  return X(t, {
12256
12256
  code: z.invalid_union,
12257
12257
  unionErrors: c
@@ -12645,7 +12645,7 @@ class $i extends Ye {
12645
12645
  if (this._def.returns instanceof es) {
12646
12646
  const c = this;
12647
12647
  return ur(async function(...u) {
12648
- const h = new _r([]), v = await c._def.args.parseAsync(u, s).catch((T) => {
12648
+ const h = new Er([]), v = await c._def.args.parseAsync(u, s).catch((T) => {
12649
12649
  throw h.addIssue(n(u, T)), h;
12650
12650
  }), b = await Reflect.apply(o, this, v);
12651
12651
  return await c._def.returns._def.type.parseAsync(b, s).catch((T) => {
@@ -12657,10 +12657,10 @@ class $i extends Ye {
12657
12657
  return ur(function(...u) {
12658
12658
  const h = c._def.args.safeParse(u, s);
12659
12659
  if (!h.success)
12660
- throw new _r([n(u, h.error)]);
12660
+ throw new Er([n(u, h.error)]);
12661
12661
  const v = Reflect.apply(o, this, h.data), b = c._def.returns.safeParse(v, s);
12662
12662
  if (!b.success)
12663
- throw new _r([i(v, b.error)]);
12663
+ throw new Er([i(v, b.error)]);
12664
12664
  return b.data;
12665
12665
  });
12666
12666
  }
@@ -13011,7 +13011,7 @@ class lo extends Ye {
13011
13011
  status: "valid",
13012
13012
  value: s.status === "valid" ? s.value : this._def.catchValue({
13013
13013
  get error() {
13014
- return new _r(n.common.issues);
13014
+ return new Er(n.common.issues);
13015
13015
  },
13016
13016
  input: n.data
13017
13017
  })
@@ -13019,7 +13019,7 @@ class lo extends Ye {
13019
13019
  status: "valid",
13020
13020
  value: i.status === "valid" ? i.value : this._def.catchValue({
13021
13021
  get error() {
13022
- return new _r(n.common.issues);
13022
+ return new Er(n.common.issues);
13023
13023
  },
13024
13024
  input: n.data
13025
13025
  })
@@ -13052,7 +13052,7 @@ Ra.create = (r) => new Ra({
13052
13052
  typeName: Ie.ZodNaN,
13053
13053
  ...Ke(r)
13054
13054
  });
13055
- const Lm = Symbol("zod_brand");
13055
+ const Fm = Symbol("zod_brand");
13056
13056
  class Sf extends Ye {
13057
13057
  _parse(e) {
13058
13058
  const { ctx: t } = this._processInputParams(e), n = t.data;
@@ -13129,16 +13129,16 @@ function U0(r, e = {}, t) {
13129
13129
  }
13130
13130
  }) : Qi.create();
13131
13131
  }
13132
- const Hm = {
13132
+ const zm = {
13133
13133
  object: Ot.lazycreate
13134
13134
  };
13135
13135
  var Ie;
13136
13136
  (function(r) {
13137
13137
  r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
13138
13138
  })(Ie || (Ie = {}));
13139
- const Fm = (r, e = {
13139
+ const Gm = (r, e = {
13140
13140
  message: `Input not instance of ${r.name}`
13141
- }) => U0((t) => t instanceof r, e), D0 = Mr.create, $0 = Kn.create, zm = Ra.create, Gm = qn.create, M0 = Qs.create, Km = xi.create, qm = Na.create, Zm = eo.create, Wm = to.create, Ym = Qi.create, Jm = ai.create, Xm = En.create, Qm = Pa.create, e1 = Lr.create, t1 = Ot.create, r1 = Ot.strictCreate, n1 = ro.create, i1 = Uc.create, s1 = no.create, o1 = un.create, a1 = io.create, c1 = ja.create, l1 = Ai.create, u1 = $i.create, f1 = so.create, h1 = oo.create, d1 = Zn.create, p1 = ao.create, y1 = es.create, md = Gr.create, g1 = on.create, v1 = Wn.create, m1 = Gr.createWithPreprocess, w1 = ko.create, b1 = () => D0().optional(), x1 = () => $0().optional(), A1 = () => M0().optional(), S1 = {
13141
+ }) => U0((t) => t instanceof r, e), D0 = Mr.create, $0 = Kn.create, Km = Ra.create, qm = qn.create, M0 = Qs.create, Zm = xi.create, Wm = Na.create, Ym = eo.create, Jm = to.create, Xm = Qi.create, Qm = ai.create, e1 = En.create, t1 = Pa.create, r1 = Lr.create, n1 = Ot.create, i1 = Ot.strictCreate, s1 = ro.create, o1 = Uc.create, a1 = no.create, c1 = un.create, l1 = io.create, u1 = ja.create, f1 = Ai.create, h1 = $i.create, d1 = so.create, p1 = oo.create, y1 = Zn.create, g1 = ao.create, v1 = es.create, md = Gr.create, m1 = on.create, w1 = Wn.create, b1 = Gr.createWithPreprocess, x1 = ko.create, A1 = () => D0().optional(), S1 = () => $0().optional(), _1 = () => M0().optional(), E1 = {
13142
13142
  string: (r) => Mr.create({ ...r, coerce: !0 }),
13143
13143
  number: (r) => Kn.create({ ...r, coerce: !0 }),
13144
13144
  boolean: (r) => Qs.create({
@@ -13147,14 +13147,14 @@ const Fm = (r, e = {
13147
13147
  }),
13148
13148
  bigint: (r) => qn.create({ ...r, coerce: !0 }),
13149
13149
  date: (r) => xi.create({ ...r, coerce: !0 })
13150
- }, _1 = Ce;
13150
+ }, I1 = Ce;
13151
13151
  var Bt = /* @__PURE__ */ Object.freeze({
13152
13152
  __proto__: null,
13153
13153
  defaultErrorMap: Xi,
13154
- setErrorMap: _m,
13154
+ setErrorMap: Im,
13155
13155
  getErrorMap: Ba,
13156
13156
  makeIssue: Oa,
13157
- EMPTY_PATH: Em,
13157
+ EMPTY_PATH: km,
13158
13158
  addIssueToContext: X,
13159
13159
  ParseStatus: sr,
13160
13160
  INVALID: Ce,
@@ -13208,66 +13208,66 @@ var Bt = /* @__PURE__ */ Object.freeze({
13208
13208
  ZodDefault: co,
13209
13209
  ZodCatch: lo,
13210
13210
  ZodNaN: Ra,
13211
- BRAND: Lm,
13211
+ BRAND: Fm,
13212
13212
  ZodBranded: Sf,
13213
13213
  ZodPipeline: ko,
13214
13214
  ZodReadonly: uo,
13215
13215
  custom: U0,
13216
13216
  Schema: Ye,
13217
13217
  ZodSchema: Ye,
13218
- late: Hm,
13218
+ late: zm,
13219
13219
  get ZodFirstPartyTypeKind() {
13220
13220
  return Ie;
13221
13221
  },
13222
- coerce: S1,
13223
- any: Ym,
13224
- array: e1,
13225
- bigint: Gm,
13222
+ coerce: E1,
13223
+ any: Xm,
13224
+ array: r1,
13225
+ bigint: qm,
13226
13226
  boolean: M0,
13227
- date: Km,
13228
- discriminatedUnion: i1,
13227
+ date: Zm,
13228
+ discriminatedUnion: o1,
13229
13229
  effect: md,
13230
- enum: d1,
13231
- function: u1,
13232
- instanceof: Fm,
13233
- intersection: s1,
13234
- lazy: f1,
13235
- literal: h1,
13236
- map: c1,
13237
- nan: zm,
13238
- nativeEnum: p1,
13239
- never: Xm,
13240
- null: Wm,
13241
- nullable: v1,
13230
+ enum: y1,
13231
+ function: h1,
13232
+ instanceof: Gm,
13233
+ intersection: a1,
13234
+ lazy: d1,
13235
+ literal: p1,
13236
+ map: u1,
13237
+ nan: Km,
13238
+ nativeEnum: g1,
13239
+ never: e1,
13240
+ null: Jm,
13241
+ nullable: w1,
13242
13242
  number: $0,
13243
- object: t1,
13244
- oboolean: A1,
13245
- onumber: x1,
13246
- optional: g1,
13247
- ostring: b1,
13248
- pipeline: w1,
13249
- preprocess: m1,
13250
- promise: y1,
13251
- record: a1,
13252
- set: l1,
13253
- strictObject: r1,
13243
+ object: n1,
13244
+ oboolean: _1,
13245
+ onumber: S1,
13246
+ optional: m1,
13247
+ ostring: A1,
13248
+ pipeline: x1,
13249
+ preprocess: b1,
13250
+ promise: v1,
13251
+ record: l1,
13252
+ set: f1,
13253
+ strictObject: i1,
13254
13254
  string: D0,
13255
- symbol: qm,
13255
+ symbol: Wm,
13256
13256
  transformer: md,
13257
- tuple: o1,
13258
- undefined: Zm,
13259
- union: n1,
13260
- unknown: Jm,
13261
- void: Qm,
13262
- NEVER: _1,
13257
+ tuple: c1,
13258
+ undefined: Ym,
13259
+ union: s1,
13260
+ unknown: Qm,
13261
+ void: t1,
13262
+ NEVER: I1,
13263
13263
  ZodIssueCode: z,
13264
- quotelessJson: Sm,
13265
- ZodError: _r
13264
+ quotelessJson: Em,
13265
+ ZodError: Er
13266
13266
  });
13267
13267
  const Ua = new Uint8Array([48, 130, 2, 17, 48, 130, 1, 150, 160, 3, 2, 1, 2, 2, 17, 0, 249, 49, 117, 104, 27, 144, 175, 225, 29, 70, 204, 180, 228, 231, 248, 86, 48, 10, 6, 8, 42, 134, 72, 206, 61, 4, 3, 3, 48, 73, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 12, 6, 65, 109, 97, 122, 111, 110, 49, 12, 48, 10, 6, 3, 85, 4, 11, 12, 3, 65, 87, 83, 49, 27, 48, 25, 6, 3, 85, 4, 3, 12, 18, 97, 119, 115, 46, 110, 105, 116, 114, 111, 45, 101, 110, 99, 108, 97, 118, 101, 115, 48, 30, 23, 13, 49, 57, 49, 48, 50, 56, 49, 51, 50, 56, 48, 53, 90, 23, 13, 52, 57, 49, 48, 50, 56, 49, 52, 50, 56, 48, 53, 90, 48, 73, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 12, 6, 65, 109, 97, 122, 111, 110, 49, 12, 48, 10, 6, 3, 85, 4, 11, 12, 3, 65, 87, 83, 49, 27, 48, 25, 6, 3, 85, 4, 3, 12, 18, 97, 119, 115, 46, 110, 105, 116, 114, 111, 45, 101, 110, 99, 108, 97, 118, 101, 115, 48, 118, 48, 16, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 5, 43, 129, 4, 0, 34, 3, 98, 0, 4, 252, 2, 84, 235, 166, 8, 193, 243, 104, 112, 226, 154, 218, 144, 190, 70, 56, 50, 146, 115, 110, 137, 75, 255, 246, 114, 217, 137, 68, 75, 80, 81, 229, 52, 164, 177, 246, 219, 227, 192, 188, 88, 26, 50, 183, 177, 118, 7, 14, 222, 18, 214, 154, 63, 234, 33, 27, 102, 231, 82, 207, 125, 209, 221, 9, 95, 111, 19, 112, 244, 23, 8, 67, 217, 220, 16, 1, 33, 228, 207, 99, 1, 40, 9, 102, 68, 135, 201, 121, 98, 132, 48, 77, 197, 63, 244, 163, 66, 48, 64, 48, 15, 6, 3, 85, 29, 19, 1, 1, 255, 4, 5, 48, 3, 1, 1, 255, 48, 29, 6, 3, 85, 29, 14, 4, 22, 4, 20, 144, 37, 181, 13, 217, 5, 71, 231, 150, 195, 150, 250, 114, 157, 207, 153, 169, 223, 75, 150, 48, 14, 6, 3, 85, 29, 15, 1, 1, 255, 4, 4, 3, 2, 1, 134, 48, 10, 6, 8, 42, 134, 72, 206, 61, 4, 3, 3, 3, 105, 0, 48, 102, 2, 49, 0, 163, 127, 47, 145, 161, 201, 189, 94, 231, 184, 98, 124, 22, 152, 210, 85, 3, 142, 31, 3, 67, 249, 91, 99, 169, 98, 140, 61, 57, 128, 149, 69, 161, 30, 188, 191, 46, 59, 85, 216, 174, 238, 113, 180, 195, 214, 173, 243, 2, 49, 0, 162, 243, 155, 22, 5, 178, 112, 40, 165, 221, 75, 160, 105, 181, 1, 110, 101, 180, 251, 222, 143, 224, 6, 29, 106, 83, 25, 127, 156, 218, 245, 217, 67, 188, 97, 252, 43, 235, 3, 203, 111, 238, 141, 35, 2, 243, 223, 246]);
13268
13268
  if (!Ua || Ua.length === 0)
13269
13269
  throw new Error("AWS root certificate is empty or not loaded correctly");
13270
- const E1 = Bt.object({
13270
+ const k1 = Bt.object({
13271
13271
  module_id: Bt.string().min(1),
13272
13272
  digest: Bt.literal("SHA384"),
13273
13273
  timestamp: Bt.number().min(1677721600),
@@ -13277,18 +13277,18 @@ const E1 = Bt.object({
13277
13277
  public_key: Bt.nullable(Bt.instanceof(Uint8Array)),
13278
13278
  user_data: Bt.nullable(Bt.instanceof(Uint8Array)),
13279
13279
  nonce: Bt.nullable(Bt.instanceof(Uint8Array))
13280
- }), I1 = Bt.object({
13280
+ }), C1 = Bt.object({
13281
13281
  protected: Bt.instanceof(Uint8Array),
13282
13282
  // There's an "unprotected" header in the CBOR, but we never use it
13283
13283
  payload: Bt.instanceof(Uint8Array),
13284
13284
  signature: Bt.instanceof(Uint8Array)
13285
13285
  });
13286
- async function k1(r) {
13286
+ async function B1(r) {
13287
13287
  try {
13288
13288
  if (!r)
13289
13289
  throw new Error("Attestation document is empty.");
13290
13290
  const e = Rs(r), t = Ca(e), n = t[0], i = t[2], s = t[3];
13291
- return I1.parse({
13291
+ return C1.parse({
13292
13292
  protected: n,
13293
13293
  payload: i,
13294
13294
  signature: s
@@ -13297,15 +13297,15 @@ async function k1(r) {
13297
13297
  throw console.error("Error parsing document data:", e), new Error("Failed to parse document data.");
13298
13298
  }
13299
13299
  }
13300
- async function C1(r) {
13300
+ async function O1(r) {
13301
13301
  try {
13302
13302
  const e = Ca(r);
13303
- return E1.parse(e);
13303
+ return k1.parse(e);
13304
13304
  } catch (e) {
13305
13305
  throw console.error("Error parsing document payload:", e), new Error("Failed to parse document payload.");
13306
13306
  }
13307
13307
  }
13308
- function B1(r, e) {
13308
+ function T1(r, e) {
13309
13309
  const t = [
13310
13310
  "Signature1",
13311
13311
  // Context string
@@ -13318,11 +13318,11 @@ function B1(r, e) {
13318
13318
  ];
13319
13319
  return Rc(t);
13320
13320
  }
13321
- async function O1(r, e) {
13321
+ async function N1(r, e) {
13322
13322
  try {
13323
- console.log("SIGNATURE:"), console.log(Br(r.signature));
13324
- const t = B1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13325
- return console.log("SIGNATURE STRUCTURE DIGEST:"), console.log(Br(new Uint8Array(n))), await crypto.subtle.verify(
13323
+ console.log("SIGNATURE:"), console.log(_r(r.signature));
13324
+ const t = T1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13325
+ return console.log("SIGNATURE STRUCTURE DIGEST:"), console.log(_r(new Uint8Array(n))), await crypto.subtle.verify(
13326
13326
  // TODO: these could be derived from the document, but we're hardcoding them for now
13327
13327
  {
13328
13328
  name: "ECDSA",
@@ -13338,20 +13338,20 @@ async function O1(r, e) {
13338
13338
  }
13339
13339
  async function Si(r, e, t) {
13340
13340
  try {
13341
- const n = await k1(r), i = await C1(n.payload);
13341
+ const n = await B1(r), i = await O1(n.payload);
13342
13342
  if (!i.nonce)
13343
13343
  throw new Error("Attestation document does not have a nonce.");
13344
13344
  const o = new TextDecoder("utf-8").decode(i.nonce);
13345
13345
  if (t !== o)
13346
13346
  throw console.log("Nonce mismatch"), console.log("Provided nonce:", t), console.log("Attestation document nonce:", o), new Error("Attestation document's nonce does not match the provided nonce.");
13347
- const c = [], u = Br(i.cabundle[0]);
13348
- if (u !== Br(e))
13349
- throw console.error("Root cert doesn't match first cert"), console.log("First cert base64:", u), console.log("Trusted root cert base64:", Br(e)), new Error("Root cert does not match first cert in attestation document.");
13347
+ const c = [], u = _r(i.cabundle[0]);
13348
+ if (u !== _r(e))
13349
+ throw console.error("Root cert doesn't match first cert"), console.log("First cert base64:", u), console.log("Trusted root cert base64:", _r(e)), new Error("Root cert does not match first cert in attestation document.");
13350
13350
  for (let I = 0; I < i.cabundle.length; I++) {
13351
13351
  const P = new wi(i.cabundle[I]);
13352
13352
  c.push(P);
13353
13353
  }
13354
- const h = new wi(i.certificate), b = await new Wv({
13354
+ const h = new wi(i.certificate), b = await new Jv({
13355
13355
  certificates: c
13356
13356
  }).build(h);
13357
13357
  console.log("Chain items:", b);
@@ -13365,8 +13365,8 @@ async function Si(r, e, t) {
13365
13365
  if (b.length !== i.cabundle.length + 1)
13366
13366
  throw new Error("Certificate chain length does not match length of cabundle.");
13367
13367
  const m = h.publicKey;
13368
- console.log("PUBLIC KEY:"), console.log(Br(new Uint8Array(m.rawData)));
13369
- const A = await m.export(), k = await O1(n, A);
13368
+ console.log("PUBLIC KEY:"), console.log(_r(new Uint8Array(m.rawData)));
13369
+ const A = await m.export(), k = await N1(n, A);
13370
13370
  if (console.log("Signature verified:", k), !k)
13371
13371
  throw new Error("Signature verification failed.");
13372
13372
  return i;
@@ -13374,29 +13374,29 @@ async function Si(r, e, t) {
13374
13374
  throw console.error("Error verifying attestation document:", n), n;
13375
13375
  }
13376
13376
  }
13377
- const T1 = Bt.object({
13377
+ const P1 = Bt.object({
13378
13378
  public_key: Bt.nullable(Bt.instanceof(Uint8Array))
13379
13379
  });
13380
- async function N1(r) {
13380
+ async function j1(r) {
13381
13381
  const e = Rs(r), n = Ca(e)[2], i = Ca(n);
13382
- return await T1.parse(i);
13382
+ return await P1.parse(i);
13383
13383
  }
13384
- async function P1(r, e) {
13384
+ async function R1(r, e) {
13385
13385
  try {
13386
- const t = await nw(r, e), n = e || Y1();
13387
- return n && (n === "http://127.0.0.1:3000" || n === "http://localhost:3000" || n === "http://0.0.0.0:3000") ? (console.log("DEV MODE: Using fake attestation document"), await N1(t)) : await Si(t, Ua, r);
13386
+ const t = await iw(r, e), n = e || J1();
13387
+ return n && (n === "http://127.0.0.1:3000" || n === "http://localhost:3000" || n === "http://0.0.0.0:3000") ? (console.log("DEV MODE: Using fake attestation document"), await j1(t)) : await Si(t, Ua, r);
13388
13388
  } catch (t) {
13389
13389
  throw t instanceof Error ? (console.error("Error verifying attestation document:", t), new Error(`Couldn't process attestation document: ${t.message}`)) : (console.error("Error verifying attestation document:", t), new Error("Couldn't process attestation document."));
13390
13390
  }
13391
13391
  }
13392
- function j1(r) {
13392
+ function U1(r) {
13393
13393
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
13394
13394
  }
13395
13395
  var V0 = { exports: {} };
13396
- const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13396
+ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13397
13397
  __proto__: null,
13398
- default: R1
13399
- }, Symbol.toStringTag, { value: "Module" })), D1 = /* @__PURE__ */ eg(U1);
13398
+ default: D1
13399
+ }, Symbol.toStringTag, { value: "Module" })), M1 = /* @__PURE__ */ rg($1);
13400
13400
  (function(r) {
13401
13401
  (function(e) {
13402
13402
  var t = function(l) {
@@ -13423,12 +13423,12 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13423
13423
  return A(l, p, d, a, 32);
13424
13424
  }
13425
13425
  function P(l, p, d, a) {
13426
- for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, $e = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = $e, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13426
+ for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Me = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = Me, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13427
13427
  w = he + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, he ^= w << 18 | w >>> 14, w = Y + Ae | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Fe ^= w << 9 | w >>> 23, w = Fe + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Fe | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, qe ^= w << 7 | w >>> 25, w = qe + U | 0, te ^= w << 9 | w >>> 23, w = te + qe | 0, B ^= w << 13 | w >>> 19, w = B + te | 0, U ^= w << 18 | w >>> 14, w = ze + L | 0, de ^= w << 7 | w >>> 25, w = de + ze | 0, O ^= w << 9 | w >>> 23, w = O + de | 0, L ^= w << 13 | w >>> 19, w = L + O | 0, ze ^= w << 18 | w >>> 14, w = he + de | 0, Ae ^= w << 7 | w >>> 25, w = Ae + he | 0, te ^= w << 9 | w >>> 23, w = te + Ae | 0, de ^= w << 13 | w >>> 19, w = de + te | 0, he ^= w << 18 | w >>> 14, w = Y + ve | 0, B ^= w << 7 | w >>> 25, w = B + Y | 0, O ^= w << 9 | w >>> 23, w = O + B | 0, ve ^= w << 13 | w >>> 19, w = ve + O | 0, Y ^= w << 18 | w >>> 14, w = U + j | 0, L ^= w << 7 | w >>> 25, w = L + U | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, U ^= w << 18 | w >>> 14, w = ze + qe | 0, _e ^= w << 7 | w >>> 25, w = _e + ze | 0, Fe ^= w << 9 | w >>> 23, w = Fe + _e | 0, qe ^= w << 13 | w >>> 19, w = qe + Fe | 0, ze ^= w << 18 | w >>> 14;
13428
- he = he + g | 0, Ae = Ae + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + G | 0, Y = Y + we | 0, B = B + J | 0, O = O + ft | 0, V = V + oe | 0, j = j + Oe | 0, U = U + Ne | 0, L = L + He | 0, _e = _e + $e | 0, Fe = Fe + Pe | 0, qe = qe + Ue | 0, ze = ze + je | 0, l[0] = he >>> 0 & 255, l[1] = he >>> 8 & 255, l[2] = he >>> 16 & 255, l[3] = he >>> 24 & 255, l[4] = Ae >>> 0 & 255, l[5] = Ae >>> 8 & 255, l[6] = Ae >>> 16 & 255, l[7] = Ae >>> 24 & 255, l[8] = te >>> 0 & 255, l[9] = te >>> 8 & 255, l[10] = te >>> 16 & 255, l[11] = te >>> 24 & 255, l[12] = de >>> 0 & 255, l[13] = de >>> 8 & 255, l[14] = de >>> 16 & 255, l[15] = de >>> 24 & 255, l[16] = ve >>> 0 & 255, l[17] = ve >>> 8 & 255, l[18] = ve >>> 16 & 255, l[19] = ve >>> 24 & 255, l[20] = Y >>> 0 & 255, l[21] = Y >>> 8 & 255, l[22] = Y >>> 16 & 255, l[23] = Y >>> 24 & 255, l[24] = B >>> 0 & 255, l[25] = B >>> 8 & 255, l[26] = B >>> 16 & 255, l[27] = B >>> 24 & 255, l[28] = O >>> 0 & 255, l[29] = O >>> 8 & 255, l[30] = O >>> 16 & 255, l[31] = O >>> 24 & 255, l[32] = V >>> 0 & 255, l[33] = V >>> 8 & 255, l[34] = V >>> 16 & 255, l[35] = V >>> 24 & 255, l[36] = j >>> 0 & 255, l[37] = j >>> 8 & 255, l[38] = j >>> 16 & 255, l[39] = j >>> 24 & 255, l[40] = U >>> 0 & 255, l[41] = U >>> 8 & 255, l[42] = U >>> 16 & 255, l[43] = U >>> 24 & 255, l[44] = L >>> 0 & 255, l[45] = L >>> 8 & 255, l[46] = L >>> 16 & 255, l[47] = L >>> 24 & 255, l[48] = _e >>> 0 & 255, l[49] = _e >>> 8 & 255, l[50] = _e >>> 16 & 255, l[51] = _e >>> 24 & 255, l[52] = Fe >>> 0 & 255, l[53] = Fe >>> 8 & 255, l[54] = Fe >>> 16 & 255, l[55] = Fe >>> 24 & 255, l[56] = qe >>> 0 & 255, l[57] = qe >>> 8 & 255, l[58] = qe >>> 16 & 255, l[59] = qe >>> 24 & 255, l[60] = ze >>> 0 & 255, l[61] = ze >>> 8 & 255, l[62] = ze >>> 16 & 255, l[63] = ze >>> 24 & 255;
13428
+ he = he + g | 0, Ae = Ae + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + G | 0, Y = Y + we | 0, B = B + J | 0, O = O + ft | 0, V = V + oe | 0, j = j + Oe | 0, U = U + Ne | 0, L = L + He | 0, _e = _e + Me | 0, Fe = Fe + Pe | 0, qe = qe + Ue | 0, ze = ze + je | 0, l[0] = he >>> 0 & 255, l[1] = he >>> 8 & 255, l[2] = he >>> 16 & 255, l[3] = he >>> 24 & 255, l[4] = Ae >>> 0 & 255, l[5] = Ae >>> 8 & 255, l[6] = Ae >>> 16 & 255, l[7] = Ae >>> 24 & 255, l[8] = te >>> 0 & 255, l[9] = te >>> 8 & 255, l[10] = te >>> 16 & 255, l[11] = te >>> 24 & 255, l[12] = de >>> 0 & 255, l[13] = de >>> 8 & 255, l[14] = de >>> 16 & 255, l[15] = de >>> 24 & 255, l[16] = ve >>> 0 & 255, l[17] = ve >>> 8 & 255, l[18] = ve >>> 16 & 255, l[19] = ve >>> 24 & 255, l[20] = Y >>> 0 & 255, l[21] = Y >>> 8 & 255, l[22] = Y >>> 16 & 255, l[23] = Y >>> 24 & 255, l[24] = B >>> 0 & 255, l[25] = B >>> 8 & 255, l[26] = B >>> 16 & 255, l[27] = B >>> 24 & 255, l[28] = O >>> 0 & 255, l[29] = O >>> 8 & 255, l[30] = O >>> 16 & 255, l[31] = O >>> 24 & 255, l[32] = V >>> 0 & 255, l[33] = V >>> 8 & 255, l[34] = V >>> 16 & 255, l[35] = V >>> 24 & 255, l[36] = j >>> 0 & 255, l[37] = j >>> 8 & 255, l[38] = j >>> 16 & 255, l[39] = j >>> 24 & 255, l[40] = U >>> 0 & 255, l[41] = U >>> 8 & 255, l[42] = U >>> 16 & 255, l[43] = U >>> 24 & 255, l[44] = L >>> 0 & 255, l[45] = L >>> 8 & 255, l[46] = L >>> 16 & 255, l[47] = L >>> 24 & 255, l[48] = _e >>> 0 & 255, l[49] = _e >>> 8 & 255, l[50] = _e >>> 16 & 255, l[51] = _e >>> 24 & 255, l[52] = Fe >>> 0 & 255, l[53] = Fe >>> 8 & 255, l[54] = Fe >>> 16 & 255, l[55] = Fe >>> 24 & 255, l[56] = qe >>> 0 & 255, l[57] = qe >>> 8 & 255, l[58] = qe >>> 16 & 255, l[59] = qe >>> 24 & 255, l[60] = ze >>> 0 & 255, l[61] = ze >>> 8 & 255, l[62] = ze >>> 16 & 255, l[63] = ze >>> 24 & 255;
13429
13429
  }
13430
13430
  function D(l, p, d, a) {
13431
- for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, $e = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = $e, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13431
+ for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Me = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = Me, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13432
13432
  w = he + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, he ^= w << 18 | w >>> 14, w = Y + Ae | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Fe ^= w << 9 | w >>> 23, w = Fe + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Fe | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, qe ^= w << 7 | w >>> 25, w = qe + U | 0, te ^= w << 9 | w >>> 23, w = te + qe | 0, B ^= w << 13 | w >>> 19, w = B + te | 0, U ^= w << 18 | w >>> 14, w = ze + L | 0, de ^= w << 7 | w >>> 25, w = de + ze | 0, O ^= w << 9 | w >>> 23, w = O + de | 0, L ^= w << 13 | w >>> 19, w = L + O | 0, ze ^= w << 18 | w >>> 14, w = he + de | 0, Ae ^= w << 7 | w >>> 25, w = Ae + he | 0, te ^= w << 9 | w >>> 23, w = te + Ae | 0, de ^= w << 13 | w >>> 19, w = de + te | 0, he ^= w << 18 | w >>> 14, w = Y + ve | 0, B ^= w << 7 | w >>> 25, w = B + Y | 0, O ^= w << 9 | w >>> 23, w = O + B | 0, ve ^= w << 13 | w >>> 19, w = ve + O | 0, Y ^= w << 18 | w >>> 14, w = U + j | 0, L ^= w << 7 | w >>> 25, w = L + U | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, U ^= w << 18 | w >>> 14, w = ze + qe | 0, _e ^= w << 7 | w >>> 25, w = _e + ze | 0, Fe ^= w << 9 | w >>> 23, w = Fe + _e | 0, qe ^= w << 13 | w >>> 19, w = qe + Fe | 0, ze ^= w << 18 | w >>> 14;
13433
13433
  l[0] = he >>> 0 & 255, l[1] = he >>> 8 & 255, l[2] = he >>> 16 & 255, l[3] = he >>> 24 & 255, l[4] = Y >>> 0 & 255, l[5] = Y >>> 8 & 255, l[6] = Y >>> 16 & 255, l[7] = Y >>> 24 & 255, l[8] = U >>> 0 & 255, l[9] = U >>> 8 & 255, l[10] = U >>> 16 & 255, l[11] = U >>> 24 & 255, l[12] = ze >>> 0 & 255, l[13] = ze >>> 8 & 255, l[14] = ze >>> 16 & 255, l[15] = ze >>> 24 & 255, l[16] = B >>> 0 & 255, l[17] = B >>> 8 & 255, l[18] = B >>> 16 & 255, l[19] = B >>> 24 & 255, l[20] = O >>> 0 & 255, l[21] = O >>> 8 & 255, l[22] = O >>> 16 & 255, l[23] = O >>> 24 & 255, l[24] = V >>> 0 & 255, l[25] = V >>> 8 & 255, l[26] = V >>> 16 & 255, l[27] = V >>> 24 & 255, l[28] = j >>> 0 & 255, l[29] = j >>> 8 & 255, l[30] = j >>> 16 & 255, l[31] = j >>> 24 & 255;
13434
13434
  }
@@ -13485,8 +13485,8 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13485
13485
  p = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = p & 8191, d = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (p >>> 13 | d << 3) & 8191, a = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (d >>> 10 | a << 6) & 7939, g = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (a >>> 7 | g << 9) & 8191, S = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (g >>> 4 | S << 12) & 255, this.r[5] = S >>> 1 & 8190, E = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (S >>> 14 | E << 2) & 8191, R = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (E >>> 11 | R << 5) & 8065, G = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (R >>> 8 | G << 8) & 8191, this.r[9] = G >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
13486
13486
  };
13487
13487
  ue.prototype.blocks = function(l, p, d) {
13488
- for (var a = this.fin ? 0 : 2048, g, S, E, R, G, we, J, ft, oe, Oe, Ne, He, $e, Pe, Ue, je, he, Ae, te, de = this.h[0], ve = this.h[1], Y = this.h[2], B = this.h[3], O = this.h[4], V = this.h[5], j = this.h[6], U = this.h[7], L = this.h[8], _e = this.h[9], Fe = this.r[0], qe = this.r[1], ze = this.r[2], w = this.r[3], Xe = this.r[4], ht = this.r[5], dt = this.r[6], We = this.r[7], at = this.r[8], ct = this.r[9]; d >= 16; )
13489
- g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, de += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, Y += (S >>> 10 | E << 6) & 8191, R = l[p + 6] & 255 | (l[p + 7] & 255) << 8, B += (E >>> 7 | R << 9) & 8191, G = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | G << 12) & 8191, V += G >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (G >>> 14 | we << 2) & 8191, J = l[p + 12] & 255 | (l[p + 13] & 255) << 8, U += (we >>> 11 | J << 5) & 8191, ft = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (J >>> 8 | ft << 8) & 8191, _e += ft >>> 5 | a, oe = 0, Oe = oe, Oe += de * Fe, Oe += ve * (5 * ct), Oe += Y * (5 * at), Oe += B * (5 * We), Oe += O * (5 * dt), oe = Oe >>> 13, Oe &= 8191, Oe += V * (5 * ht), Oe += j * (5 * Xe), Oe += U * (5 * w), Oe += L * (5 * ze), Oe += _e * (5 * qe), oe += Oe >>> 13, Oe &= 8191, Ne = oe, Ne += de * qe, Ne += ve * Fe, Ne += Y * (5 * ct), Ne += B * (5 * at), Ne += O * (5 * We), oe = Ne >>> 13, Ne &= 8191, Ne += V * (5 * dt), Ne += j * (5 * ht), Ne += U * (5 * Xe), Ne += L * (5 * w), Ne += _e * (5 * ze), oe += Ne >>> 13, Ne &= 8191, He = oe, He += de * ze, He += ve * qe, He += Y * Fe, He += B * (5 * ct), He += O * (5 * at), oe = He >>> 13, He &= 8191, He += V * (5 * We), He += j * (5 * dt), He += U * (5 * ht), He += L * (5 * Xe), He += _e * (5 * w), oe += He >>> 13, He &= 8191, $e = oe, $e += de * w, $e += ve * ze, $e += Y * qe, $e += B * Fe, $e += O * (5 * ct), oe = $e >>> 13, $e &= 8191, $e += V * (5 * at), $e += j * (5 * We), $e += U * (5 * dt), $e += L * (5 * ht), $e += _e * (5 * Xe), oe += $e >>> 13, $e &= 8191, Pe = oe, Pe += de * Xe, Pe += ve * w, Pe += Y * ze, Pe += B * qe, Pe += O * Fe, oe = Pe >>> 13, Pe &= 8191, Pe += V * (5 * ct), Pe += j * (5 * at), Pe += U * (5 * We), Pe += L * (5 * dt), Pe += _e * (5 * ht), oe += Pe >>> 13, Pe &= 8191, Ue = oe, Ue += de * ht, Ue += ve * Xe, Ue += Y * w, Ue += B * ze, Ue += O * qe, oe = Ue >>> 13, Ue &= 8191, Ue += V * Fe, Ue += j * (5 * ct), Ue += U * (5 * at), Ue += L * (5 * We), Ue += _e * (5 * dt), oe += Ue >>> 13, Ue &= 8191, je = oe, je += de * dt, je += ve * ht, je += Y * Xe, je += B * w, je += O * ze, oe = je >>> 13, je &= 8191, je += V * qe, je += j * Fe, je += U * (5 * ct), je += L * (5 * at), je += _e * (5 * We), oe += je >>> 13, je &= 8191, he = oe, he += de * We, he += ve * dt, he += Y * ht, he += B * Xe, he += O * w, oe = he >>> 13, he &= 8191, he += V * ze, he += j * qe, he += U * Fe, he += L * (5 * ct), he += _e * (5 * at), oe += he >>> 13, he &= 8191, Ae = oe, Ae += de * at, Ae += ve * We, Ae += Y * dt, Ae += B * ht, Ae += O * Xe, oe = Ae >>> 13, Ae &= 8191, Ae += V * w, Ae += j * ze, Ae += U * qe, Ae += L * Fe, Ae += _e * (5 * ct), oe += Ae >>> 13, Ae &= 8191, te = oe, te += de * ct, te += ve * at, te += Y * We, te += B * dt, te += O * ht, oe = te >>> 13, te &= 8191, te += V * Xe, te += j * w, te += U * ze, te += L * qe, te += _e * Fe, oe += te >>> 13, te &= 8191, oe = (oe << 2) + oe | 0, oe = oe + Oe | 0, Oe = oe & 8191, oe = oe >>> 13, Ne += oe, de = Oe, ve = Ne, Y = He, B = $e, O = Pe, V = Ue, j = je, U = he, L = Ae, _e = te, p += 16, d -= 16;
13488
+ for (var a = this.fin ? 0 : 2048, g, S, E, R, G, we, J, ft, oe, Oe, Ne, He, Me, Pe, Ue, je, he, Ae, te, de = this.h[0], ve = this.h[1], Y = this.h[2], B = this.h[3], O = this.h[4], V = this.h[5], j = this.h[6], U = this.h[7], L = this.h[8], _e = this.h[9], Fe = this.r[0], qe = this.r[1], ze = this.r[2], w = this.r[3], Xe = this.r[4], ht = this.r[5], dt = this.r[6], We = this.r[7], at = this.r[8], ct = this.r[9]; d >= 16; )
13489
+ g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, de += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, Y += (S >>> 10 | E << 6) & 8191, R = l[p + 6] & 255 | (l[p + 7] & 255) << 8, B += (E >>> 7 | R << 9) & 8191, G = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | G << 12) & 8191, V += G >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (G >>> 14 | we << 2) & 8191, J = l[p + 12] & 255 | (l[p + 13] & 255) << 8, U += (we >>> 11 | J << 5) & 8191, ft = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (J >>> 8 | ft << 8) & 8191, _e += ft >>> 5 | a, oe = 0, Oe = oe, Oe += de * Fe, Oe += ve * (5 * ct), Oe += Y * (5 * at), Oe += B * (5 * We), Oe += O * (5 * dt), oe = Oe >>> 13, Oe &= 8191, Oe += V * (5 * ht), Oe += j * (5 * Xe), Oe += U * (5 * w), Oe += L * (5 * ze), Oe += _e * (5 * qe), oe += Oe >>> 13, Oe &= 8191, Ne = oe, Ne += de * qe, Ne += ve * Fe, Ne += Y * (5 * ct), Ne += B * (5 * at), Ne += O * (5 * We), oe = Ne >>> 13, Ne &= 8191, Ne += V * (5 * dt), Ne += j * (5 * ht), Ne += U * (5 * Xe), Ne += L * (5 * w), Ne += _e * (5 * ze), oe += Ne >>> 13, Ne &= 8191, He = oe, He += de * ze, He += ve * qe, He += Y * Fe, He += B * (5 * ct), He += O * (5 * at), oe = He >>> 13, He &= 8191, He += V * (5 * We), He += j * (5 * dt), He += U * (5 * ht), He += L * (5 * Xe), He += _e * (5 * w), oe += He >>> 13, He &= 8191, Me = oe, Me += de * w, Me += ve * ze, Me += Y * qe, Me += B * Fe, Me += O * (5 * ct), oe = Me >>> 13, Me &= 8191, Me += V * (5 * at), Me += j * (5 * We), Me += U * (5 * dt), Me += L * (5 * ht), Me += _e * (5 * Xe), oe += Me >>> 13, Me &= 8191, Pe = oe, Pe += de * Xe, Pe += ve * w, Pe += Y * ze, Pe += B * qe, Pe += O * Fe, oe = Pe >>> 13, Pe &= 8191, Pe += V * (5 * ct), Pe += j * (5 * at), Pe += U * (5 * We), Pe += L * (5 * dt), Pe += _e * (5 * ht), oe += Pe >>> 13, Pe &= 8191, Ue = oe, Ue += de * ht, Ue += ve * Xe, Ue += Y * w, Ue += B * ze, Ue += O * qe, oe = Ue >>> 13, Ue &= 8191, Ue += V * Fe, Ue += j * (5 * ct), Ue += U * (5 * at), Ue += L * (5 * We), Ue += _e * (5 * dt), oe += Ue >>> 13, Ue &= 8191, je = oe, je += de * dt, je += ve * ht, je += Y * Xe, je += B * w, je += O * ze, oe = je >>> 13, je &= 8191, je += V * qe, je += j * Fe, je += U * (5 * ct), je += L * (5 * at), je += _e * (5 * We), oe += je >>> 13, je &= 8191, he = oe, he += de * We, he += ve * dt, he += Y * ht, he += B * Xe, he += O * w, oe = he >>> 13, he &= 8191, he += V * ze, he += j * qe, he += U * Fe, he += L * (5 * ct), he += _e * (5 * at), oe += he >>> 13, he &= 8191, Ae = oe, Ae += de * at, Ae += ve * We, Ae += Y * dt, Ae += B * ht, Ae += O * Xe, oe = Ae >>> 13, Ae &= 8191, Ae += V * w, Ae += j * ze, Ae += U * qe, Ae += L * Fe, Ae += _e * (5 * ct), oe += Ae >>> 13, Ae &= 8191, te = oe, te += de * ct, te += ve * at, te += Y * We, te += B * dt, te += O * ht, oe = te >>> 13, te &= 8191, te += V * Xe, te += j * w, te += U * ze, te += L * qe, te += _e * Fe, oe += te >>> 13, te &= 8191, oe = (oe << 2) + oe | 0, oe = oe + Oe | 0, Oe = oe & 8191, oe = oe >>> 13, Ne += oe, de = Oe, ve = Ne, Y = He, B = Me, O = Pe, V = Ue, j = je, U = he, L = Ae, _e = te, p += 16, d -= 16;
13490
13490
  this.h[0] = de, this.h[1] = ve, this.h[2] = Y, this.h[3] = B, this.h[4] = O, this.h[5] = V, this.h[6] = j, this.h[7] = U, this.h[8] = L, this.h[9] = _e;
13491
13491
  }, ue.prototype.finish = function(l, p) {
13492
13492
  var d = new Uint16Array(10), a, g, S, E;
@@ -13583,8 +13583,8 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13583
13583
  for (var a = 0; a < 16; a++) l[a] = p[a] - d[a];
13584
13584
  }
13585
13585
  function Q(l, p, d) {
13586
- var a, g, S = 0, E = 0, R = 0, G = 0, we = 0, J = 0, ft = 0, oe = 0, Oe = 0, Ne = 0, He = 0, $e = 0, Pe = 0, Ue = 0, je = 0, he = 0, Ae = 0, te = 0, de = 0, ve = 0, Y = 0, B = 0, O = 0, V = 0, j = 0, U = 0, L = 0, _e = 0, Fe = 0, qe = 0, ze = 0, w = d[0], Xe = d[1], ht = d[2], dt = d[3], We = d[4], at = d[5], ct = d[6], $t = d[7], xt = d[8], Nt = d[9], Pt = d[10], jt = d[11], Lt = d[12], Qt = d[13], er = d[14], tr = d[15];
13587
- a = p[0], S += a * w, E += a * Xe, R += a * ht, G += a * dt, we += a * We, J += a * at, ft += a * ct, oe += a * $t, Oe += a * xt, Ne += a * Nt, He += a * Pt, $e += a * jt, Pe += a * Lt, Ue += a * Qt, je += a * er, he += a * tr, a = p[1], E += a * w, R += a * Xe, G += a * ht, we += a * dt, J += a * We, ft += a * at, oe += a * ct, Oe += a * $t, Ne += a * xt, He += a * Nt, $e += a * Pt, Pe += a * jt, Ue += a * Lt, je += a * Qt, he += a * er, Ae += a * tr, a = p[2], R += a * w, G += a * Xe, we += a * ht, J += a * dt, ft += a * We, oe += a * at, Oe += a * ct, Ne += a * $t, He += a * xt, $e += a * Nt, Pe += a * Pt, Ue += a * jt, je += a * Lt, he += a * Qt, Ae += a * er, te += a * tr, a = p[3], G += a * w, we += a * Xe, J += a * ht, ft += a * dt, oe += a * We, Oe += a * at, Ne += a * ct, He += a * $t, $e += a * xt, Pe += a * Nt, Ue += a * Pt, je += a * jt, he += a * Lt, Ae += a * Qt, te += a * er, de += a * tr, a = p[4], we += a * w, J += a * Xe, ft += a * ht, oe += a * dt, Oe += a * We, Ne += a * at, He += a * ct, $e += a * $t, Pe += a * xt, Ue += a * Nt, je += a * Pt, he += a * jt, Ae += a * Lt, te += a * Qt, de += a * er, ve += a * tr, a = p[5], J += a * w, ft += a * Xe, oe += a * ht, Oe += a * dt, Ne += a * We, He += a * at, $e += a * ct, Pe += a * $t, Ue += a * xt, je += a * Nt, he += a * Pt, Ae += a * jt, te += a * Lt, de += a * Qt, ve += a * er, Y += a * tr, a = p[6], ft += a * w, oe += a * Xe, Oe += a * ht, Ne += a * dt, He += a * We, $e += a * at, Pe += a * ct, Ue += a * $t, je += a * xt, he += a * Nt, Ae += a * Pt, te += a * jt, de += a * Lt, ve += a * Qt, Y += a * er, B += a * tr, a = p[7], oe += a * w, Oe += a * Xe, Ne += a * ht, He += a * dt, $e += a * We, Pe += a * at, Ue += a * ct, je += a * $t, he += a * xt, Ae += a * Nt, te += a * Pt, de += a * jt, ve += a * Lt, Y += a * Qt, B += a * er, O += a * tr, a = p[8], Oe += a * w, Ne += a * Xe, He += a * ht, $e += a * dt, Pe += a * We, Ue += a * at, je += a * ct, he += a * $t, Ae += a * xt, te += a * Nt, de += a * Pt, ve += a * jt, Y += a * Lt, B += a * Qt, O += a * er, V += a * tr, a = p[9], Ne += a * w, He += a * Xe, $e += a * ht, Pe += a * dt, Ue += a * We, je += a * at, he += a * ct, Ae += a * $t, te += a * xt, de += a * Nt, ve += a * Pt, Y += a * jt, B += a * Lt, O += a * Qt, V += a * er, j += a * tr, a = p[10], He += a * w, $e += a * Xe, Pe += a * ht, Ue += a * dt, je += a * We, he += a * at, Ae += a * ct, te += a * $t, de += a * xt, ve += a * Nt, Y += a * Pt, B += a * jt, O += a * Lt, V += a * Qt, j += a * er, U += a * tr, a = p[11], $e += a * w, Pe += a * Xe, Ue += a * ht, je += a * dt, he += a * We, Ae += a * at, te += a * ct, de += a * $t, ve += a * xt, Y += a * Nt, B += a * Pt, O += a * jt, V += a * Lt, j += a * Qt, U += a * er, L += a * tr, a = p[12], Pe += a * w, Ue += a * Xe, je += a * ht, he += a * dt, Ae += a * We, te += a * at, de += a * ct, ve += a * $t, Y += a * xt, B += a * Nt, O += a * Pt, V += a * jt, j += a * Lt, U += a * Qt, L += a * er, _e += a * tr, a = p[13], Ue += a * w, je += a * Xe, he += a * ht, Ae += a * dt, te += a * We, de += a * at, ve += a * ct, Y += a * $t, B += a * xt, O += a * Nt, V += a * Pt, j += a * jt, U += a * Lt, L += a * Qt, _e += a * er, Fe += a * tr, a = p[14], je += a * w, he += a * Xe, Ae += a * ht, te += a * dt, de += a * We, ve += a * at, Y += a * ct, B += a * $t, O += a * xt, V += a * Nt, j += a * Pt, U += a * jt, L += a * Lt, _e += a * Qt, Fe += a * er, qe += a * tr, a = p[15], he += a * w, Ae += a * Xe, te += a * ht, de += a * dt, ve += a * We, Y += a * at, B += a * ct, O += a * $t, V += a * xt, j += a * Nt, U += a * Pt, L += a * jt, _e += a * Lt, Fe += a * Qt, qe += a * er, ze += a * tr, S += 38 * Ae, E += 38 * te, R += 38 * de, G += 38 * ve, we += 38 * Y, J += 38 * B, ft += 38 * O, oe += 38 * V, Oe += 38 * j, Ne += 38 * U, He += 38 * L, $e += 38 * _e, Pe += 38 * Fe, Ue += 38 * qe, je += 38 * ze, g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = $e + g + 65535, g = Math.floor(a / 65536), $e = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = $e + g + 65535, g = Math.floor(a / 65536), $e = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), l[0] = S, l[1] = E, l[2] = R, l[3] = G, l[4] = we, l[5] = J, l[6] = ft, l[7] = oe, l[8] = Oe, l[9] = Ne, l[10] = He, l[11] = $e, l[12] = Pe, l[13] = Ue, l[14] = je, l[15] = he;
13586
+ var a, g, S = 0, E = 0, R = 0, G = 0, we = 0, J = 0, ft = 0, oe = 0, Oe = 0, Ne = 0, He = 0, Me = 0, Pe = 0, Ue = 0, je = 0, he = 0, Ae = 0, te = 0, de = 0, ve = 0, Y = 0, B = 0, O = 0, V = 0, j = 0, U = 0, L = 0, _e = 0, Fe = 0, qe = 0, ze = 0, w = d[0], Xe = d[1], ht = d[2], dt = d[3], We = d[4], at = d[5], ct = d[6], $t = d[7], xt = d[8], Nt = d[9], Pt = d[10], jt = d[11], Lt = d[12], Qt = d[13], er = d[14], tr = d[15];
13587
+ a = p[0], S += a * w, E += a * Xe, R += a * ht, G += a * dt, we += a * We, J += a * at, ft += a * ct, oe += a * $t, Oe += a * xt, Ne += a * Nt, He += a * Pt, Me += a * jt, Pe += a * Lt, Ue += a * Qt, je += a * er, he += a * tr, a = p[1], E += a * w, R += a * Xe, G += a * ht, we += a * dt, J += a * We, ft += a * at, oe += a * ct, Oe += a * $t, Ne += a * xt, He += a * Nt, Me += a * Pt, Pe += a * jt, Ue += a * Lt, je += a * Qt, he += a * er, Ae += a * tr, a = p[2], R += a * w, G += a * Xe, we += a * ht, J += a * dt, ft += a * We, oe += a * at, Oe += a * ct, Ne += a * $t, He += a * xt, Me += a * Nt, Pe += a * Pt, Ue += a * jt, je += a * Lt, he += a * Qt, Ae += a * er, te += a * tr, a = p[3], G += a * w, we += a * Xe, J += a * ht, ft += a * dt, oe += a * We, Oe += a * at, Ne += a * ct, He += a * $t, Me += a * xt, Pe += a * Nt, Ue += a * Pt, je += a * jt, he += a * Lt, Ae += a * Qt, te += a * er, de += a * tr, a = p[4], we += a * w, J += a * Xe, ft += a * ht, oe += a * dt, Oe += a * We, Ne += a * at, He += a * ct, Me += a * $t, Pe += a * xt, Ue += a * Nt, je += a * Pt, he += a * jt, Ae += a * Lt, te += a * Qt, de += a * er, ve += a * tr, a = p[5], J += a * w, ft += a * Xe, oe += a * ht, Oe += a * dt, Ne += a * We, He += a * at, Me += a * ct, Pe += a * $t, Ue += a * xt, je += a * Nt, he += a * Pt, Ae += a * jt, te += a * Lt, de += a * Qt, ve += a * er, Y += a * tr, a = p[6], ft += a * w, oe += a * Xe, Oe += a * ht, Ne += a * dt, He += a * We, Me += a * at, Pe += a * ct, Ue += a * $t, je += a * xt, he += a * Nt, Ae += a * Pt, te += a * jt, de += a * Lt, ve += a * Qt, Y += a * er, B += a * tr, a = p[7], oe += a * w, Oe += a * Xe, Ne += a * ht, He += a * dt, Me += a * We, Pe += a * at, Ue += a * ct, je += a * $t, he += a * xt, Ae += a * Nt, te += a * Pt, de += a * jt, ve += a * Lt, Y += a * Qt, B += a * er, O += a * tr, a = p[8], Oe += a * w, Ne += a * Xe, He += a * ht, Me += a * dt, Pe += a * We, Ue += a * at, je += a * ct, he += a * $t, Ae += a * xt, te += a * Nt, de += a * Pt, ve += a * jt, Y += a * Lt, B += a * Qt, O += a * er, V += a * tr, a = p[9], Ne += a * w, He += a * Xe, Me += a * ht, Pe += a * dt, Ue += a * We, je += a * at, he += a * ct, Ae += a * $t, te += a * xt, de += a * Nt, ve += a * Pt, Y += a * jt, B += a * Lt, O += a * Qt, V += a * er, j += a * tr, a = p[10], He += a * w, Me += a * Xe, Pe += a * ht, Ue += a * dt, je += a * We, he += a * at, Ae += a * ct, te += a * $t, de += a * xt, ve += a * Nt, Y += a * Pt, B += a * jt, O += a * Lt, V += a * Qt, j += a * er, U += a * tr, a = p[11], Me += a * w, Pe += a * Xe, Ue += a * ht, je += a * dt, he += a * We, Ae += a * at, te += a * ct, de += a * $t, ve += a * xt, Y += a * Nt, B += a * Pt, O += a * jt, V += a * Lt, j += a * Qt, U += a * er, L += a * tr, a = p[12], Pe += a * w, Ue += a * Xe, je += a * ht, he += a * dt, Ae += a * We, te += a * at, de += a * ct, ve += a * $t, Y += a * xt, B += a * Nt, O += a * Pt, V += a * jt, j += a * Lt, U += a * Qt, L += a * er, _e += a * tr, a = p[13], Ue += a * w, je += a * Xe, he += a * ht, Ae += a * dt, te += a * We, de += a * at, ve += a * ct, Y += a * $t, B += a * xt, O += a * Nt, V += a * Pt, j += a * jt, U += a * Lt, L += a * Qt, _e += a * er, Fe += a * tr, a = p[14], je += a * w, he += a * Xe, Ae += a * ht, te += a * dt, de += a * We, ve += a * at, Y += a * ct, B += a * $t, O += a * xt, V += a * Nt, j += a * Pt, U += a * jt, L += a * Lt, _e += a * Qt, Fe += a * er, qe += a * tr, a = p[15], he += a * w, Ae += a * Xe, te += a * ht, de += a * dt, ve += a * We, Y += a * at, B += a * ct, O += a * $t, V += a * xt, j += a * Nt, U += a * Pt, L += a * jt, _e += a * Lt, Fe += a * Qt, qe += a * er, ze += a * tr, S += 38 * Ae, E += 38 * te, R += 38 * de, G += 38 * ve, we += 38 * Y, J += 38 * B, ft += 38 * O, oe += 38 * V, Oe += 38 * j, Ne += 38 * U, He += 38 * L, Me += 38 * _e, Pe += 38 * Fe, Ue += 38 * qe, je += 38 * ze, g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), l[0] = S, l[1] = E, l[2] = R, l[3] = G, l[4] = we, l[5] = J, l[6] = ft, l[7] = oe, l[8] = Oe, l[9] = Ne, l[10] = He, l[11] = Me, l[12] = Pe, l[13] = Ue, l[14] = je, l[15] = he;
13588
13588
  }
13589
13589
  function gt(l, p) {
13590
13590
  Q(l, p, p);
@@ -13797,11 +13797,11 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13797
13797
  1246189591
13798
13798
  ];
13799
13799
  function gs(l, p, d, a) {
13800
- for (var g = new Int32Array(16), S = new Int32Array(16), E, R, G, we, J, ft, oe, Oe, Ne, He, $e, Pe, Ue, je, he, Ae, te, de, ve, Y, B, O, V, j, U, L, _e = l[0], Fe = l[1], qe = l[2], ze = l[3], w = l[4], Xe = l[5], ht = l[6], dt = l[7], We = p[0], at = p[1], ct = p[2], $t = p[3], xt = p[4], Nt = p[5], Pt = p[6], jt = p[7], Lt = 0; a >= 128; ) {
13800
+ for (var g = new Int32Array(16), S = new Int32Array(16), E, R, G, we, J, ft, oe, Oe, Ne, He, Me, Pe, Ue, je, he, Ae, te, de, ve, Y, B, O, V, j, U, L, _e = l[0], Fe = l[1], qe = l[2], ze = l[3], w = l[4], Xe = l[5], ht = l[6], dt = l[7], We = p[0], at = p[1], ct = p[2], $t = p[3], xt = p[4], Nt = p[5], Pt = p[6], jt = p[7], Lt = 0; a >= 128; ) {
13801
13801
  for (ve = 0; ve < 16; ve++)
13802
13802
  Y = 8 * ve + Lt, g[ve] = d[Y + 0] << 24 | d[Y + 1] << 16 | d[Y + 2] << 8 | d[Y + 3], S[ve] = d[Y + 4] << 24 | d[Y + 5] << 16 | d[Y + 6] << 8 | d[Y + 7];
13803
13803
  for (ve = 0; ve < 80; ve++)
13804
- if (E = _e, R = Fe, G = qe, we = ze, J = w, ft = Xe, oe = ht, Oe = dt, Ne = We, He = at, $e = ct, Pe = $t, Ue = xt, je = Nt, he = Pt, Ae = jt, B = dt, O = jt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (w >>> 14 | xt << 18) ^ (w >>> 18 | xt << 14) ^ (xt >>> 9 | w << 23), O = (xt >>> 14 | w << 18) ^ (xt >>> 18 | w << 14) ^ (w >>> 9 | xt << 23), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = w & Xe ^ ~w & ht, O = xt & Nt ^ ~xt & Pt, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = ys[ve * 2], O = ys[ve * 2 + 1], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = g[ve % 16], O = S[ve % 16], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, te = U & 65535 | L << 16, de = V & 65535 | j << 16, B = te, O = de, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (_e >>> 28 | We << 4) ^ (We >>> 2 | _e << 30) ^ (We >>> 7 | _e << 25), O = (We >>> 28 | _e << 4) ^ (_e >>> 2 | We << 30) ^ (_e >>> 7 | We << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = _e & Fe ^ _e & qe ^ Fe & qe, O = We & at ^ We & ct ^ at & ct, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, Oe = U & 65535 | L << 16, Ae = V & 65535 | j << 16, B = we, O = Pe, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = te, O = de, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, we = U & 65535 | L << 16, Pe = V & 65535 | j << 16, Fe = E, qe = R, ze = G, w = we, Xe = J, ht = ft, dt = oe, _e = Oe, at = Ne, ct = He, $t = $e, xt = Pe, Nt = Ue, Pt = je, jt = he, We = Ae, ve % 16 === 15)
13804
+ if (E = _e, R = Fe, G = qe, we = ze, J = w, ft = Xe, oe = ht, Oe = dt, Ne = We, He = at, Me = ct, Pe = $t, Ue = xt, je = Nt, he = Pt, Ae = jt, B = dt, O = jt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (w >>> 14 | xt << 18) ^ (w >>> 18 | xt << 14) ^ (xt >>> 9 | w << 23), O = (xt >>> 14 | w << 18) ^ (xt >>> 18 | w << 14) ^ (w >>> 9 | xt << 23), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = w & Xe ^ ~w & ht, O = xt & Nt ^ ~xt & Pt, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = ys[ve * 2], O = ys[ve * 2 + 1], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = g[ve % 16], O = S[ve % 16], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, te = U & 65535 | L << 16, de = V & 65535 | j << 16, B = te, O = de, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (_e >>> 28 | We << 4) ^ (We >>> 2 | _e << 30) ^ (We >>> 7 | _e << 25), O = (We >>> 28 | _e << 4) ^ (_e >>> 2 | We << 30) ^ (_e >>> 7 | We << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = _e & Fe ^ _e & qe ^ Fe & qe, O = We & at ^ We & ct ^ at & ct, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, Oe = U & 65535 | L << 16, Ae = V & 65535 | j << 16, B = we, O = Pe, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = te, O = de, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, we = U & 65535 | L << 16, Pe = V & 65535 | j << 16, Fe = E, qe = R, ze = G, w = we, Xe = J, ht = ft, dt = oe, _e = Oe, at = Ne, ct = He, $t = Me, xt = Pe, Nt = Ue, Pt = je, jt = he, We = Ae, ve % 16 === 15)
13805
13805
  for (Y = 0; Y < 16; Y++)
13806
13806
  B = g[Y], O = S[Y], V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = g[(Y + 9) % 16], O = S[(Y + 9) % 16], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, te = g[(Y + 1) % 16], de = S[(Y + 1) % 16], B = (te >>> 1 | de << 31) ^ (te >>> 8 | de << 24) ^ te >>> 7, O = (de >>> 1 | te << 31) ^ (de >>> 8 | te << 24) ^ (de >>> 7 | te << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, te = g[(Y + 14) % 16], de = S[(Y + 14) % 16], B = (te >>> 19 | de << 13) ^ (de >>> 29 | te << 3) ^ te >>> 6, O = (de >>> 19 | te << 13) ^ (te >>> 29 | de << 3) ^ (de >>> 6 | te << 26), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, g[Y] = U & 65535 | L << 16, S[Y] = V & 65535 | j << 16;
13807
13807
  B = _e, O = We, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[0], O = p[0], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[0] = _e = U & 65535 | L << 16, p[0] = We = V & 65535 | j << 16, B = Fe, O = at, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[1], O = p[1], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[1] = Fe = U & 65535 | L << 16, p[1] = at = V & 65535 | j << 16, B = qe, O = ct, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[2], O = p[2], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[2] = qe = U & 65535 | L << 16, p[2] = ct = V & 65535 | j << 16, B = ze, O = $t, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[3], O = p[3], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[3] = ze = U & 65535 | L << 16, p[3] = $t = V & 65535 | j << 16, B = w, O = xt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[4], O = p[4], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[4] = w = U & 65535 | L << 16, p[4] = xt = V & 65535 | j << 16, B = Xe, O = Nt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[5], O = p[5], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[5] = Xe = U & 65535 | L << 16, p[5] = Nt = V & 65535 | j << 16, B = ht, O = Pt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[6], O = p[6], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[6] = ht = U & 65535 | L << 16, p[6] = Pt = V & 65535 | j << 16, B = dt, O = jt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[7], O = p[7], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[7] = dt = U & 65535 | L << 16, p[7] = jt = V & 65535 | j << 16, Lt += 128, a -= 128;
@@ -13891,7 +13891,7 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13891
13891
  for (g = 0; g < d; g++) l[g] = p[g + 64];
13892
13892
  return d;
13893
13893
  }
13894
- var C = 32, N = 24, K = 32, be = 16, _t = 32, Et = 32, De = 32, Z = 32, ee = 32, ce = N, ge = K, tt = be, nt = 64, bt = 32, zt = 64, Ti = 32, Ss = 64;
13894
+ var C = 32, N = 24, K = 32, be = 16, _t = 32, Et = 32, $e = 32, Z = 32, ee = 32, ce = N, ge = K, tt = be, nt = 64, bt = 32, zt = 64, Ti = 32, Ss = 64;
13895
13895
  e.lowlevel = {
13896
13896
  crypto_core_hsalsa20: Ze,
13897
13897
  crypto_stream_xor: pt,
@@ -13921,7 +13921,7 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13921
13921
  crypto_secretbox_BOXZEROBYTES: be,
13922
13922
  crypto_scalarmult_BYTES: _t,
13923
13923
  crypto_scalarmult_SCALARBYTES: Et,
13924
- crypto_box_PUBLICKEYBYTES: De,
13924
+ crypto_box_PUBLICKEYBYTES: $e,
13925
13925
  crypto_box_SECRETKEYBYTES: Z,
13926
13926
  crypto_box_BEFORENMBYTES: ee,
13927
13927
  crypto_box_NONCEBYTES: ce,
@@ -13952,8 +13952,8 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13952
13952
  if (l.length !== C) throw new Error("bad key size");
13953
13953
  if (p.length !== N) throw new Error("bad nonce size");
13954
13954
  }
13955
- function Uy(l, p) {
13956
- if (l.length !== De) throw new Error("bad public key size");
13955
+ function $y(l, p) {
13956
+ if (l.length !== $e) throw new Error("bad public key size");
13957
13957
  if (p.length !== Z) throw new Error("bad secret key size");
13958
13958
  }
13959
13959
  function xr() {
@@ -13988,21 +13988,21 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13988
13988
  var g = e.box.before(d, a);
13989
13989
  return e.secretbox(l, p, g);
13990
13990
  }, e.box.before = function(l, p) {
13991
- xr(l, p), Uy(l, p);
13991
+ xr(l, p), $y(l, p);
13992
13992
  var d = new Uint8Array(ee);
13993
13993
  return pn(d, l, p), d;
13994
13994
  }, e.box.after = e.secretbox, e.box.open = function(l, p, d, a) {
13995
13995
  var g = e.box.before(d, a);
13996
13996
  return e.secretbox.open(l, p, g);
13997
13997
  }, e.box.open.after = e.secretbox.open, e.box.keyPair = function() {
13998
- var l = new Uint8Array(De), p = new Uint8Array(Z);
13998
+ var l = new Uint8Array($e), p = new Uint8Array(Z);
13999
13999
  return hs(l, p), { publicKey: l, secretKey: p };
14000
14000
  }, e.box.keyPair.fromSecretKey = function(l) {
14001
14001
  if (xr(l), l.length !== Z)
14002
14002
  throw new Error("bad secret key size");
14003
- var p = new Uint8Array(De);
14003
+ var p = new Uint8Array($e);
14004
14004
  return or(p, l), { publicKey: p, secretKey: new Uint8Array(l) };
14005
- }, e.box.publicKeyLength = De, e.box.secretKeyLength = Z, e.box.sharedKeyLength = ee, e.box.nonceLength = ce, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, p) {
14005
+ }, e.box.publicKeyLength = $e, e.box.secretKeyLength = Z, e.box.sharedKeyLength = ee, e.box.nonceLength = ce, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, p) {
14006
14006
  if (xr(l, p), p.length !== zt)
14007
14007
  throw new Error("bad secret key size");
14008
14008
  var d = new Uint8Array(nt + l.length);
@@ -14058,7 +14058,7 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14058
14058
  for (g = 0; g < a; g++) d[g] = S[g];
14059
14059
  kf(S);
14060
14060
  });
14061
- } else typeof j1 < "u" && (l = D1, l && l.randomBytes && e.setPRNG(function(d, a) {
14061
+ } else typeof U1 < "u" && (l = M1, l && l.randomBytes && e.setPRNG(function(d, a) {
14062
14062
  var g, S = l.randomBytes(a);
14063
14063
  for (g = 0; g < a; g++) d[g] = S[g];
14064
14064
  kf(S);
@@ -14066,9 +14066,9 @@ const R1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14066
14066
  }();
14067
14067
  })(r.exports ? r.exports : self.nacl = self.nacl || {});
14068
14068
  })(V0);
14069
- var $1 = V0.exports;
14070
- const L0 = /* @__PURE__ */ Qy($1);
14071
- function M1() {
14069
+ var V1 = V0.exports;
14070
+ const L0 = /* @__PURE__ */ tg(V1);
14071
+ function L1() {
14072
14072
  return L0.box.keyPair();
14073
14073
  }
14074
14074
  async function _i(r, e) {
@@ -14081,20 +14081,20 @@ async function _i(r, e) {
14081
14081
  }
14082
14082
  const i = window.crypto.randomUUID();
14083
14083
  console.log("Generated attestation nonce:", i);
14084
- const s = await P1(i, e);
14084
+ const s = await R1(i, e);
14085
14085
  if (s && s.public_key) {
14086
14086
  console.log("Attestation document verification succeeded");
14087
- const o = M1();
14087
+ const o = L1();
14088
14088
  console.log("Generated client key pair");
14089
- const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await iw(
14090
- Br(o.publicKey),
14089
+ const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await sw(
14090
+ _r(o.publicKey),
14091
14091
  i,
14092
14092
  e
14093
14093
  );
14094
14094
  console.log("Key exchange completed.");
14095
14095
  const v = L0.scalarMult(o.secretKey, c), b = Rs(u), H = 12, T = b.slice(0, H), m = b.slice(H), k = new Nu(v).open(T, m);
14096
14096
  if (k)
14097
- return console.log("Session key decrypted successfully"), window.sessionStorage.setItem("sessionKey", Br(k)), window.sessionStorage.setItem("sessionId", h), { sessionKey: k, sessionId: h };
14097
+ return console.log("Session key decrypted successfully"), window.sessionStorage.setItem("sessionKey", _r(k)), window.sessionStorage.setItem("sessionId", h), { sessionKey: k, sessionId: h };
14098
14098
  throw new Error("Failed to decrypt session key");
14099
14099
  } else
14100
14100
  throw new Error("Invalid attestation document");
@@ -14105,10 +14105,10 @@ async function _i(r, e) {
14105
14105
  }
14106
14106
  }
14107
14107
  let ut = "";
14108
- function V1(r) {
14108
+ function H1(r) {
14109
14109
  ut = r;
14110
14110
  }
14111
- async function L1(r, e) {
14111
+ async function F1(r, e) {
14112
14112
  return Tt(
14113
14113
  `${ut}/platform/login`,
14114
14114
  "POST",
@@ -14117,7 +14117,7 @@ async function L1(r, e) {
14117
14117
  "Failed to login"
14118
14118
  );
14119
14119
  }
14120
- async function H1(r, e, t, n) {
14120
+ async function z1(r, e, t, n) {
14121
14121
  return Tt(
14122
14122
  `${ut}/platform/register`,
14123
14123
  "POST",
@@ -14126,7 +14126,7 @@ async function H1(r, e, t, n) {
14126
14126
  "Failed to register"
14127
14127
  );
14128
14128
  }
14129
- async function F1(r) {
14129
+ async function G1(r) {
14130
14130
  return Tt(
14131
14131
  `${ut}/platform/logout`,
14132
14132
  "POST",
@@ -14135,7 +14135,7 @@ async function F1(r) {
14135
14135
  "Failed to logout"
14136
14136
  );
14137
14137
  }
14138
- async function z1() {
14138
+ async function K1() {
14139
14139
  const r = window.localStorage.getItem("refresh_token");
14140
14140
  if (!r) throw new Error("No refresh token available");
14141
14141
  const e = { refresh_token: r };
@@ -14208,12 +14208,12 @@ async function W0(r, e) {
14208
14208
  void 0
14209
14209
  );
14210
14210
  }
14211
- function G1(r) {
14211
+ function q1(r) {
14212
14212
  const e = /^[A-Za-z0-9+/]*[=]{0,2}$/, t = r.length % 4 === 0, n = e.test(r);
14213
14213
  return t && n;
14214
14214
  }
14215
14215
  async function Y0(r, e, t, n) {
14216
- if (!G1(n))
14216
+ if (!q1(n))
14217
14217
  throw new Error(
14218
14218
  "Secret must be base64 encoded. Use @stablelib/base64's encode function to encode your data."
14219
14219
  );
@@ -14323,7 +14323,7 @@ async function uy(r) {
14323
14323
  void 0
14324
14324
  );
14325
14325
  }
14326
- async function K1() {
14326
+ async function Z1() {
14327
14327
  return ke(`${ut}/platform/me`, "GET", void 0);
14328
14328
  }
14329
14329
  async function fy(r) {
@@ -14383,7 +14383,7 @@ async function py(r, e) {
14383
14383
  "Failed to change platform password"
14384
14384
  );
14385
14385
  }
14386
- class q1 {
14386
+ class W1 {
14387
14387
  constructor() {
14388
14388
  Ge(this, "_appApiUrl", "");
14389
14389
  Ge(this, "_platformApiUrl", "");
@@ -14438,7 +14438,7 @@ class q1 {
14438
14438
  return this.isPlatformPath(e) ? "platformRefreshToken" : "refreshToken";
14439
14439
  }
14440
14440
  }
14441
- const $a = new q1(), yy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14441
+ const $a = new W1(), yy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14442
14442
  __proto__: null,
14443
14443
  apiConfig: $a
14444
14444
  }, Symbol.toStringTag, { value: "Module" }));
@@ -14448,7 +14448,7 @@ async function ke(r, e, t, n) {
14448
14448
  if (s) {
14449
14449
  console.log("Refreshing access token");
14450
14450
  const u = $a.getRefreshFunction(r);
14451
- console.log(`Using ${u}`), u === "platformRefreshToken" ? await z1() : await Dc();
14451
+ console.log(`Using ${u}`), u === "platformRefreshToken" ? await K1() : await Dc();
14452
14452
  }
14453
14453
  const o = window.localStorage.getItem("access_token");
14454
14454
  if (!o)
@@ -14473,7 +14473,7 @@ async function ke(r, e, t, n) {
14473
14473
  };
14474
14474
  return i();
14475
14475
  }
14476
- async function Z1(r, e, t, n, i) {
14476
+ async function gy(r, e, t, n, i) {
14477
14477
  if (!i)
14478
14478
  return ke(r, e, t, n);
14479
14479
  const s = await _f(
@@ -14486,7 +14486,7 @@ async function Z1(r, e, t, n, i) {
14486
14486
  if (s.error)
14487
14487
  throw new Error(s.error);
14488
14488
  if (!s.data)
14489
- throw new Error(n);
14489
+ throw new Error(n || `Request to ${r} failed`);
14490
14490
  return s.data;
14491
14491
  }
14492
14492
  async function _f(r, e, t, n, i) {
@@ -14554,29 +14554,29 @@ async function Tt(r, e, t, n, i) {
14554
14554
  throw new Error("No data received from the server");
14555
14555
  return s.data;
14556
14556
  }
14557
- let Le = "";
14558
- function W1(r) {
14559
- Le = r;
14557
+ let De = "";
14558
+ function Y1(r) {
14559
+ De = r;
14560
14560
  }
14561
- function Y1() {
14562
- return Le;
14561
+ function J1() {
14562
+ return De;
14563
14563
  }
14564
- async function J1(r, e, t) {
14564
+ async function X1(r, e, t) {
14565
14565
  return Tt(
14566
- `${Le}/login`,
14566
+ `${De}/login`,
14567
14567
  "POST",
14568
14568
  { email: r, password: e, client_id: t }
14569
14569
  );
14570
14570
  }
14571
- async function X1(r, e, t) {
14571
+ async function Q1(r, e, t) {
14572
14572
  return Tt(
14573
- `${Le}/login`,
14573
+ `${De}/login`,
14574
14574
  "POST",
14575
14575
  { id: r, password: e, client_id: t }
14576
14576
  );
14577
14577
  }
14578
- async function Q1(r, e, t, n, i) {
14579
- return Tt(`${Le}/register`, "POST", {
14578
+ async function ew(r, e, t, n, i) {
14579
+ return Tt(`${De}/register`, "POST", {
14580
14580
  email: r,
14581
14581
  password: e,
14582
14582
  inviteCode: t.toLowerCase(),
@@ -14584,8 +14584,8 @@ async function Q1(r, e, t, n, i) {
14584
14584
  name: i
14585
14585
  });
14586
14586
  }
14587
- async function ew(r, e, t) {
14588
- return Tt(`${Le}/register`, "POST", {
14587
+ async function tw(r, e, t) {
14588
+ return Tt(`${De}/register`, "POST", {
14589
14589
  password: r,
14590
14590
  inviteCode: e.toLowerCase(),
14591
14591
  client_id: t
@@ -14597,7 +14597,7 @@ async function Dc() {
14597
14597
  const e = { refresh_token: r };
14598
14598
  try {
14599
14599
  const t = await Tt(
14600
- `${Le}/refresh`,
14600
+ `${De}/refresh`,
14601
14601
  "POST",
14602
14602
  e,
14603
14603
  void 0,
@@ -14608,34 +14608,34 @@ async function Dc() {
14608
14608
  throw console.error("Error refreshing token:", t), t;
14609
14609
  }
14610
14610
  }
14611
- async function tw() {
14611
+ async function rw() {
14612
14612
  return ke(
14613
- `${Le}/protected/user`,
14613
+ `${De}/protected/user`,
14614
14614
  "GET",
14615
14615
  void 0,
14616
14616
  "Failed to fetch user"
14617
14617
  );
14618
14618
  }
14619
- async function gy(r, e) {
14619
+ async function vy(r, e) {
14620
14620
  return ke(
14621
- `${Le}/protected/kv/${r}`,
14621
+ `${De}/protected/kv/${r}`,
14622
14622
  "PUT",
14623
14623
  e,
14624
14624
  "Failed to put key-value pair"
14625
14625
  );
14626
14626
  }
14627
- async function vy(r) {
14627
+ async function my(r) {
14628
14628
  return ke(
14629
- `${Le}/protected/kv/${r}`,
14629
+ `${De}/protected/kv/${r}`,
14630
14630
  "DELETE",
14631
14631
  void 0,
14632
14632
  "Failed to delete key-value pair"
14633
14633
  );
14634
14634
  }
14635
- async function my(r) {
14635
+ async function wy(r) {
14636
14636
  try {
14637
14637
  return await ke(
14638
- `${Le}/protected/kv/${r}`,
14638
+ `${De}/protected/kv/${r}`,
14639
14639
  "GET",
14640
14640
  void 0,
14641
14641
  "Failed to get key-value pair"
@@ -14645,21 +14645,21 @@ async function my(r) {
14645
14645
  return;
14646
14646
  }
14647
14647
  }
14648
- async function wy() {
14648
+ async function by() {
14649
14649
  return ke(
14650
- `${Le}/protected/kv`,
14650
+ `${De}/protected/kv`,
14651
14651
  "GET",
14652
14652
  void 0,
14653
14653
  "Failed to list key-value pairs"
14654
14654
  );
14655
14655
  }
14656
- async function rw(r) {
14656
+ async function nw(r) {
14657
14657
  const e = { refresh_token: r };
14658
- return Tt(`${Le}/logout`, "POST", e);
14658
+ return Tt(`${De}/logout`, "POST", e);
14659
14659
  }
14660
- async function by(r) {
14660
+ async function xy(r) {
14661
14661
  return Tt(
14662
- `${Le}/verify-email/${r}`,
14662
+ `${De}/verify-email/${r}`,
14663
14663
  "GET",
14664
14664
  void 0,
14665
14665
  void 0,
@@ -14668,20 +14668,20 @@ async function by(r) {
14668
14668
  }
14669
14669
  async function Ma() {
14670
14670
  return ke(
14671
- `${Le}/protected/request_verification`,
14671
+ `${De}/protected/request_verification`,
14672
14672
  "POST",
14673
14673
  void 0,
14674
14674
  "Failed to request new verification code"
14675
14675
  );
14676
14676
  }
14677
- async function nw(r, e) {
14678
- const n = await fetch(`${e || Le}/attestation/${r}`);
14677
+ async function iw(r, e) {
14678
+ const n = await fetch(`${e || De}/attestation/${r}`);
14679
14679
  if (!n.ok)
14680
14680
  throw new Error(`Request failed with status ${n.status}`);
14681
14681
  return (await n.json()).attestation_document;
14682
14682
  }
14683
- async function iw(r, e, t) {
14684
- const i = await fetch(`${t || Le}/key_exchange`, {
14683
+ async function sw(r, e, t) {
14684
+ const i = await fetch(`${t || De}/key_exchange`, {
14685
14685
  method: "POST",
14686
14686
  headers: {
14687
14687
  "Content-Type": "application/json"
@@ -14692,21 +14692,21 @@ async function iw(r, e, t) {
14692
14692
  throw new Error("Key exchange failed");
14693
14693
  return i.json();
14694
14694
  }
14695
- async function sw(r, e, t) {
14695
+ async function ow(r, e, t) {
14696
14696
  const n = {
14697
14697
  email: r,
14698
14698
  hashed_secret: e,
14699
14699
  client_id: t
14700
14700
  };
14701
14701
  return Tt(
14702
- `${Le}/password-reset/request`,
14702
+ `${De}/password-reset/request`,
14703
14703
  "POST",
14704
14704
  n,
14705
14705
  void 0,
14706
14706
  "Failed to request password reset"
14707
14707
  );
14708
14708
  }
14709
- async function ow(r, e, t, n, i) {
14709
+ async function aw(r, e, t, n, i) {
14710
14710
  const s = {
14711
14711
  email: r,
14712
14712
  alphanumeric_code: e,
@@ -14715,29 +14715,29 @@ async function ow(r, e, t, n, i) {
14715
14715
  client_id: i
14716
14716
  };
14717
14717
  return Tt(
14718
- `${Le}/password-reset/confirm`,
14718
+ `${De}/password-reset/confirm`,
14719
14719
  "POST",
14720
14720
  s,
14721
14721
  void 0,
14722
14722
  "Failed to confirm password reset"
14723
14723
  );
14724
14724
  }
14725
- async function xy(r, e) {
14725
+ async function Ay(r, e) {
14726
14726
  const t = {
14727
14727
  current_password: r,
14728
14728
  new_password: e
14729
14729
  };
14730
14730
  return ke(
14731
- `${Le}/protected/change_password`,
14731
+ `${De}/protected/change_password`,
14732
14732
  "POST",
14733
14733
  t,
14734
14734
  "Failed to change password"
14735
14735
  );
14736
14736
  }
14737
- async function aw(r, e) {
14737
+ async function cw(r, e) {
14738
14738
  try {
14739
14739
  return await Tt(
14740
- `${Le}/auth/github`,
14740
+ `${De}/auth/github`,
14741
14741
  "POST",
14742
14742
  e ? { invite_code: e, client_id: r } : { client_id: r },
14743
14743
  void 0,
@@ -14747,11 +14747,11 @@ async function aw(r, e) {
14747
14747
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14748
14748
  }
14749
14749
  }
14750
- async function cw(r, e, t) {
14750
+ async function lw(r, e, t) {
14751
14751
  const n = { code: r, state: e, invite_code: t };
14752
14752
  try {
14753
14753
  return await Tt(
14754
- `${Le}/auth/github/callback`,
14754
+ `${De}/auth/github/callback`,
14755
14755
  "POST",
14756
14756
  n,
14757
14757
  void 0,
@@ -14765,10 +14765,10 @@ async function cw(r, e, t) {
14765
14765
  ) : new Error("Failed to authenticate with GitHub. Please try again.") : i;
14766
14766
  }
14767
14767
  }
14768
- async function lw(r, e) {
14768
+ async function uw(r, e) {
14769
14769
  try {
14770
14770
  return await Tt(
14771
- `${Le}/auth/google`,
14771
+ `${De}/auth/google`,
14772
14772
  "POST",
14773
14773
  e ? { invite_code: e, client_id: r } : { client_id: r },
14774
14774
  void 0,
@@ -14778,11 +14778,11 @@ async function lw(r, e) {
14778
14778
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14779
14779
  }
14780
14780
  }
14781
- async function uw(r, e, t) {
14781
+ async function fw(r, e, t) {
14782
14782
  const n = { code: r, state: e, invite_code: t };
14783
14783
  try {
14784
14784
  return await Tt(
14785
- `${Le}/auth/google/callback`,
14785
+ `${De}/auth/google/callback`,
14786
14786
  "POST",
14787
14787
  n,
14788
14788
  void 0,
@@ -14796,10 +14796,10 @@ async function uw(r, e, t) {
14796
14796
  ) : new Error("Failed to authenticate with Google. Please try again.") : i;
14797
14797
  }
14798
14798
  }
14799
- async function fw(r, e) {
14799
+ async function hw(r, e) {
14800
14800
  try {
14801
14801
  return await Tt(
14802
- `${Le}/auth/apple`,
14802
+ `${De}/auth/apple`,
14803
14803
  "POST",
14804
14804
  e ? { invite_code: e, client_id: r } : { client_id: r },
14805
14805
  void 0,
@@ -14809,11 +14809,11 @@ async function fw(r, e) {
14809
14809
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14810
14810
  }
14811
14811
  }
14812
- async function hw(r, e, t) {
14812
+ async function dw(r, e, t) {
14813
14813
  const n = { code: r, state: e, invite_code: t };
14814
14814
  try {
14815
14815
  return await Tt(
14816
- `${Le}/auth/apple/callback`,
14816
+ `${De}/auth/apple/callback`,
14817
14817
  "POST",
14818
14818
  n,
14819
14819
  void 0,
@@ -14827,7 +14827,7 @@ async function hw(r, e, t) {
14827
14827
  ) : new Error("Failed to authenticate with Apple. Please try again.") : i;
14828
14828
  }
14829
14829
  }
14830
- async function dw(r, e, t) {
14830
+ async function pw(r, e, t) {
14831
14831
  const n = {
14832
14832
  ...r,
14833
14833
  client_id: e,
@@ -14835,7 +14835,7 @@ async function dw(r, e, t) {
14835
14835
  };
14836
14836
  try {
14837
14837
  return await Tt(
14838
- `${Le}/auth/apple/native`,
14838
+ `${De}/auth/apple/native`,
14839
14839
  "POST",
14840
14840
  n,
14841
14841
  void 0,
@@ -14849,8 +14849,8 @@ async function dw(r, e, t) {
14849
14849
  ) : i.message.includes("No email found") ? new Error("Unable to retrieve email from Apple. Please try another sign-in method.") : new Error("Failed to authenticate with Apple. Please try again.") : i;
14850
14850
  }
14851
14851
  }
14852
- async function Ay(r) {
14853
- let e = `${Le}/protected/private_key`;
14852
+ async function Sy(r) {
14853
+ let e = `${De}/protected/private_key`;
14854
14854
  const t = [];
14855
14855
  return r != null && r.seed_phrase_derivation_path && t.push(
14856
14856
  `seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
@@ -14863,8 +14863,8 @@ async function Ay(r) {
14863
14863
  "Failed to fetch private key"
14864
14864
  );
14865
14865
  }
14866
- async function Sy(r) {
14867
- let e = `${Le}/protected/private_key_bytes`;
14866
+ async function _y(r) {
14867
+ let e = `${De}/protected/private_key_bytes`;
14868
14868
  const t = [];
14869
14869
  return r != null && r.seed_phrase_derivation_path && t.push(
14870
14870
  `seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
@@ -14877,21 +14877,21 @@ async function Sy(r) {
14877
14877
  "Failed to fetch private key bytes"
14878
14878
  );
14879
14879
  }
14880
- async function _y(r, e, t) {
14880
+ async function Ey(r, e, t) {
14881
14881
  const i = {
14882
- message_base64: Br(r),
14882
+ message_base64: _r(r),
14883
14883
  algorithm: e,
14884
14884
  ...t && Object.keys(t).length > 0 && { key_options: t }
14885
14885
  };
14886
14886
  return ke(
14887
- `${Le}/protected/sign_message`,
14887
+ `${De}/protected/sign_message`,
14888
14888
  "POST",
14889
14889
  i,
14890
14890
  "Failed to sign message"
14891
14891
  );
14892
14892
  }
14893
- async function Ey(r, e) {
14894
- let t = `${Le}/protected/public_key?algorithm=${r}`;
14893
+ async function Iy(r, e) {
14894
+ let t = `${De}/protected/public_key?algorithm=${r}`;
14895
14895
  return e != null && e.seed_phrase_derivation_path && (t += `&seed_phrase_derivation_path=${encodeURIComponent(e.seed_phrase_derivation_path)}`), e != null && e.private_key_derivation_path && (t += `&private_key_derivation_path=${encodeURIComponent(e.private_key_derivation_path)}`), ke(
14896
14896
  t,
14897
14897
  "GET",
@@ -14899,78 +14899,78 @@ async function Ey(r, e) {
14899
14899
  "Failed to fetch public key"
14900
14900
  );
14901
14901
  }
14902
- async function pw(r, e, t) {
14902
+ async function yw(r, e, t) {
14903
14903
  const n = {
14904
14904
  email: r,
14905
14905
  password: e,
14906
14906
  ...t !== void 0 && { name: t }
14907
14907
  };
14908
14908
  return ke(
14909
- `${Le}/protected/convert_guest`,
14909
+ `${De}/protected/convert_guest`,
14910
14910
  "POST",
14911
14911
  n,
14912
14912
  "Failed to convert guest account"
14913
14913
  );
14914
14914
  }
14915
- async function yw(r) {
14915
+ async function gw(r) {
14916
14916
  return ke(
14917
- `${Le}/protected/third_party_token`,
14917
+ `${De}/protected/third_party_token`,
14918
14918
  "POST",
14919
14919
  r ? { audience: r } : {},
14920
14920
  "Failed to generate third party token"
14921
14921
  );
14922
14922
  }
14923
- async function Iy(r, e) {
14923
+ async function ky(r, e) {
14924
14924
  const t = {
14925
14925
  data: r,
14926
14926
  ...e && Object.keys(e).length > 0 && { key_options: e }
14927
14927
  };
14928
14928
  return ke(
14929
- `${Le}/protected/encrypt`,
14929
+ `${De}/protected/encrypt`,
14930
14930
  "POST",
14931
14931
  t,
14932
14932
  "Failed to encrypt data"
14933
14933
  );
14934
14934
  }
14935
- async function ky(r, e) {
14935
+ async function Cy(r, e) {
14936
14936
  const t = {
14937
14937
  encrypted_data: r,
14938
14938
  ...e && Object.keys(e).length > 0 && { key_options: e }
14939
14939
  };
14940
14940
  return ke(
14941
- `${Le}/protected/decrypt`,
14941
+ `${De}/protected/decrypt`,
14942
14942
  "POST",
14943
14943
  t,
14944
14944
  "Failed to decrypt data"
14945
14945
  );
14946
14946
  }
14947
- async function gw(r) {
14947
+ async function vw(r) {
14948
14948
  const e = {
14949
14949
  hashed_secret: r
14950
14950
  };
14951
14951
  return ke(
14952
- `${Le}/protected/delete-account/request`,
14952
+ `${De}/protected/delete-account/request`,
14953
14953
  "POST",
14954
14954
  e,
14955
14955
  "Failed to request account deletion"
14956
14956
  );
14957
14957
  }
14958
- async function vw(r, e) {
14958
+ async function mw(r, e) {
14959
14959
  const t = {
14960
14960
  confirmation_code: r,
14961
14961
  plaintext_secret: e
14962
14962
  };
14963
14963
  return ke(
14964
- `${Le}/protected/delete-account/confirm`,
14964
+ `${De}/protected/delete-account/confirm`,
14965
14965
  "POST",
14966
14966
  t,
14967
14967
  "Failed to confirm account deletion"
14968
14968
  );
14969
14969
  }
14970
- async function Cy(r) {
14970
+ async function By(r) {
14971
14971
  try {
14972
- const e = await Z1(
14973
- `${Le}/v1/models`,
14972
+ const e = await gy(
14973
+ `${De}/v1/models`,
14974
14974
  "GET",
14975
14975
  void 0,
14976
14976
  "Failed to fetch models",
@@ -14986,20 +14986,20 @@ async function Cy(r) {
14986
14986
  }
14987
14987
  }
14988
14988
  const wd = 10 * 1024 * 1024;
14989
- function mw(r) {
14989
+ function ww(r) {
14990
14990
  return new Promise((e) => setTimeout(e, r));
14991
14991
  }
14992
- async function By(r) {
14992
+ async function Oy(r) {
14993
14993
  return ke(
14994
- `${Le}/protected/api-keys`,
14994
+ `${De}/protected/api-keys`,
14995
14995
  "POST",
14996
14996
  { name: r },
14997
14997
  "Failed to create API key"
14998
14998
  );
14999
14999
  }
15000
- async function Oy() {
15000
+ async function Ty() {
15001
15001
  const r = await ke(
15002
- `${Le}/protected/api-keys`,
15002
+ `${De}/protected/api-keys`,
15003
15003
  "GET",
15004
15004
  void 0,
15005
15005
  "Failed to list API keys"
@@ -15008,10 +15008,10 @@ async function Oy() {
15008
15008
  (e, t) => new Date(t.created_at).getTime() - new Date(e.created_at).getTime()
15009
15009
  ), r;
15010
15010
  }
15011
- async function Ty(r) {
15011
+ async function Ny(r) {
15012
15012
  const e = encodeURIComponent(r);
15013
15013
  return ke(
15014
- `${Le}/protected/api-keys/${e}`,
15014
+ `${De}/protected/api-keys/${e}`,
15015
15015
  "DELETE",
15016
15016
  void 0,
15017
15017
  "Failed to delete API key"
@@ -15020,12 +15020,12 @@ async function Ty(r) {
15020
15020
  async function Ef(r) {
15021
15021
  if (r.size > wd)
15022
15022
  throw new Error(`File size exceeds maximum limit of ${wd / 1024 / 1024}MB`);
15023
- const e = await r.arrayBuffer(), t = new Uint8Array(e), n = Br(t), s = {
15023
+ const e = await r.arrayBuffer(), t = new Uint8Array(e), n = _r(t), s = {
15024
15024
  filename: r instanceof File ? r.name : "document",
15025
15025
  content_base64: n
15026
15026
  };
15027
15027
  return ke(
15028
- `${Le}/v1/documents/upload`,
15028
+ `${De}/v1/documents/upload`,
15029
15029
  "POST",
15030
15030
  s,
15031
15031
  "Failed to upload document"
@@ -15036,13 +15036,13 @@ async function If(r) {
15036
15036
  task_id: r
15037
15037
  };
15038
15038
  return ke(
15039
- `${Le}/v1/documents/status`,
15039
+ `${De}/v1/documents/status`,
15040
15040
  "POST",
15041
15041
  e,
15042
15042
  "Failed to check document status"
15043
15043
  );
15044
15044
  }
15045
- async function Ny(r, e) {
15045
+ async function Py(r, e) {
15046
15046
  const { pollInterval: t = 2e3, maxAttempts: n = 150, onProgress: i } = e || {}, s = await Ef(r);
15047
15047
  let o = 0;
15048
15048
  for (; o < n; ) {
@@ -15056,7 +15056,7 @@ async function Ny(r, e) {
15056
15056
  throw new Error(c.error || "Document processing failed");
15057
15057
  case "pending":
15058
15058
  case "started":
15059
- await mw(t), o++;
15059
+ await ww(t), o++;
15060
15060
  break;
15061
15061
  default:
15062
15062
  throw new Error(`Unknown document status: ${c.status}`);
@@ -15064,7 +15064,25 @@ async function Ny(r, e) {
15064
15064
  }
15065
15065
  throw new Error("Document processing timed out");
15066
15066
  }
15067
- function ww(r) {
15067
+ async function jy(r, e, t, n, i, s) {
15068
+ const o = await r.arrayBuffer(), c = new Uint8Array(o), u = _r(c), h = r instanceof File ? r.name : "audio", v = r.type || "audio/mpeg", b = {
15069
+ file: u,
15070
+ filename: h,
15071
+ content_type: v,
15072
+ model: e || "whisper-large-v3",
15073
+ ...t && { language: t },
15074
+ ...n && { prompt: n },
15075
+ ...i !== void 0 && { temperature: i }
15076
+ };
15077
+ return gy(
15078
+ `${De}/v1/audio/transcriptions`,
15079
+ "POST",
15080
+ b,
15081
+ "Failed to transcribe audio",
15082
+ s
15083
+ );
15084
+ }
15085
+ function bw(r) {
15068
15086
  return async (e, t) => {
15069
15087
  var i, s;
15070
15088
  const n = () => {
@@ -15108,7 +15126,7 @@ function ww(r) {
15108
15126
  const D = T.decode(P);
15109
15127
  m += D;
15110
15128
  let pe;
15111
- for (; pe = bw(m); )
15129
+ for (; pe = xw(m); )
15112
15130
  if (m = m.slice(pe.length), pe.trim().startsWith("data: ")) {
15113
15131
  const Ze = pe.slice(6).trim();
15114
15132
  if (Ze === "[DONE]")
@@ -15193,13 +15211,13 @@ function ww(r) {
15193
15211
  }
15194
15212
  };
15195
15213
  }
15196
- function bw(r) {
15214
+ function xw(r) {
15197
15215
  const e = r.indexOf(`
15198
15216
 
15199
15217
  `);
15200
15218
  return e === -1 ? null : r.slice(0, e + 2);
15201
15219
  }
15202
- const xw = [
15220
+ const Aw = [
15203
15221
  "eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
15204
15222
  "74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
15205
15223
  "9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
@@ -15207,7 +15225,7 @@ const xw = [
15207
15225
  "91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
15208
15226
  "859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
15209
15227
  "acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
15210
- ], Aw = [
15228
+ ], Sw = [
15211
15229
  "62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
15212
15230
  "cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
15213
15231
  "deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
@@ -15215,14 +15233,14 @@ const xw = [
15215
15233
  "669404ea71435b8f498b48db7816a5c2ab1d258b1a77685b11d84d15a73189504d79c4dee13a658de9f4a0cbfc39cfe8",
15216
15234
  "a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
15217
15235
  "c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
15218
- ], Sw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", _w = {
15236
+ ], _w = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", Ew = {
15219
15237
  prod: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrProdHistory.json",
15220
15238
  dev: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrDevHistory.json"
15221
15239
  };
15222
- async function Ew() {
15240
+ async function Iw() {
15223
15241
  try {
15224
15242
  const r = new Uint8Array(
15225
- atob(Sw).split("").map((e) => e.charCodeAt(0))
15243
+ atob(_w).split("").map((e) => e.charCodeAt(0))
15226
15244
  );
15227
15245
  return await crypto.subtle.importKey(
15228
15246
  "spki",
@@ -15244,9 +15262,9 @@ async function Ew() {
15244
15262
  throw console.error("Error importing verification key:", r), new Error("Failed to import PCR verification key");
15245
15263
  }
15246
15264
  }
15247
- async function Iw(r, e) {
15265
+ async function kw(r, e) {
15248
15266
  try {
15249
- const t = (e == null ? void 0 : e[r]) || _w[r], n = await fetch(t);
15267
+ const t = (e == null ? void 0 : e[r]) || Ew[r], n = await fetch(t);
15250
15268
  if (!n.ok)
15251
15269
  throw new Error(`Failed to fetch PCR history: ${n.status}`);
15252
15270
  return await n.json();
@@ -15254,7 +15272,7 @@ async function Iw(r, e) {
15254
15272
  throw console.error("Error fetching PCR history:", t), new Error("Failed to fetch PCR history");
15255
15273
  }
15256
15274
  }
15257
- async function kw(r, e, t) {
15275
+ async function Cw(r, e, t) {
15258
15276
  try {
15259
15277
  const i = new TextEncoder().encode(r), s = new Uint8Array(
15260
15278
  atob(e).split("").map((o) => o.charCodeAt(0))
@@ -15275,9 +15293,9 @@ async function kw(r, e, t) {
15275
15293
  }
15276
15294
  async function bd(r, e, t) {
15277
15295
  try {
15278
- const n = await Ew(), i = await Iw(e, t);
15296
+ const n = await Iw(), i = await kw(e, t);
15279
15297
  for (const s of i)
15280
- if (s.PCR0 === r && await kw(s.PCR0, s.signature, n))
15298
+ if (s.PCR0 === r && await Cw(s.PCR0, s.signature, n))
15281
15299
  return {
15282
15300
  isMatch: !0,
15283
15301
  text: "PCR0 matches remotely attested value",
@@ -15288,8 +15306,8 @@ async function bd(r, e, t) {
15288
15306
  return console.error("PCR remote validation error:", n), null;
15289
15307
  }
15290
15308
  }
15291
- async function Cw(r, e) {
15292
- const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...xw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...Aw];
15309
+ async function Bw(r, e) {
15310
+ const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...Aw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...Sw];
15293
15311
  if (t.includes(r))
15294
15312
  return {
15295
15313
  isMatch: !0,
@@ -15325,21 +15343,21 @@ async function Cw(r, e) {
15325
15343
  };
15326
15344
  }
15327
15345
  const ts = Ua, $c = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f79bb5b";
15328
- function Py(r) {
15346
+ function Ry(r) {
15329
15347
  return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
15330
15348
  }
15331
- async function Bw(r) {
15349
+ async function Ow(r) {
15332
15350
  const e = await crypto.subtle.digest("SHA-256", r);
15333
- return Py(new Uint8Array(e));
15351
+ return Ry(new Uint8Array(e));
15334
15352
  }
15335
15353
  async function rs(r, e, t) {
15336
15354
  console.log("Raw timestamp:", r.timestamp), console.log("Date object:", new Date(r.timestamp));
15337
15355
  const n = Array.from(r.pcrs.entries()).map(([v, b]) => ({
15338
15356
  id: v,
15339
- value: Py(b)
15357
+ value: Ry(b)
15340
15358
  })).filter((v) => !v.value.match(/^0+$/)), i = n.find((v) => v.id === 0);
15341
15359
  let s = null;
15342
- i && (s = await Cw(i.value, t));
15360
+ i && (s = await Bw(i.value, t));
15343
15361
  const o = [...e, r.certificate].map((v) => {
15344
15362
  const b = new wi(v);
15345
15363
  return {
@@ -15349,10 +15367,10 @@ async function rs(r, e, t) {
15349
15367
  pem: b.toString("pem"),
15350
15368
  isRoot: b.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
15351
15369
  };
15352
- }), c = new TextDecoder(), u = new wi(e[0]), h = await Bw(u.rawData);
15370
+ }), c = new TextDecoder(), u = new wi(e[0]), h = await Ow(u.rawData);
15353
15371
  return {
15354
15372
  moduleId: r.module_id,
15355
- publicKey: r.public_key ? Br(r.public_key) : null,
15373
+ publicKey: r.public_key ? _r(r.public_key) : null,
15356
15374
  timestamp: new Date(r.timestamp).toLocaleDateString("en-US", {
15357
15375
  year: "numeric",
15358
15376
  month: "long",
@@ -15371,7 +15389,7 @@ async function rs(r, e, t) {
15371
15389
  validatedPcr0Hash: s
15372
15390
  };
15373
15391
  }
15374
- const jy = _d({
15392
+ const Uy = _d({
15375
15393
  auth: {
15376
15394
  loading: !0,
15377
15395
  user: void 0
@@ -15396,16 +15414,16 @@ const jy = _d({
15396
15414
  },
15397
15415
  signOut: async () => {
15398
15416
  },
15399
- get: my,
15400
- put: gy,
15401
- list: wy,
15402
- del: vy,
15403
- verifyEmail: by,
15417
+ get: wy,
15418
+ put: vy,
15419
+ list: by,
15420
+ del: my,
15421
+ verifyEmail: xy,
15404
15422
  requestNewVerificationCode: Ma,
15405
15423
  requestNewVerificationEmail: Ma,
15406
15424
  refetchUser: async () => {
15407
15425
  },
15408
- changePassword: xy,
15426
+ changePassword: Ay,
15409
15427
  refreshAccessToken: Dc,
15410
15428
  requestPasswordReset: async () => {
15411
15429
  },
@@ -15426,10 +15444,10 @@ const jy = _d({
15426
15444
  },
15427
15445
  handleAppleNativeSignIn: async () => {
15428
15446
  },
15429
- getPrivateKey: Ay,
15430
- getPrivateKeyBytes: Sy,
15431
- getPublicKey: Ey,
15432
- signMessage: _y,
15447
+ getPrivateKey: Sy,
15448
+ getPrivateKeyBytes: _y,
15449
+ getPublicKey: Iy,
15450
+ signMessage: Ey,
15433
15451
  aiCustomFetch: async () => new Response(),
15434
15452
  apiUrl: "",
15435
15453
  pcrConfig: {},
@@ -15442,17 +15460,18 @@ const jy = _d({
15442
15460
  throw new Error("getAttestationDocument called outside of OpenSecretProvider");
15443
15461
  },
15444
15462
  generateThirdPartyToken: async () => ({ token: "" }),
15445
- encryptData: Iy,
15446
- decryptData: ky,
15447
- fetchModels: Cy,
15463
+ encryptData: ky,
15464
+ decryptData: Cy,
15465
+ fetchModels: By,
15448
15466
  uploadDocument: Ef,
15449
15467
  checkDocumentStatus: If,
15450
- uploadDocumentWithPolling: Ny,
15451
- createApiKey: By,
15452
- listApiKeys: Oy,
15453
- deleteApiKey: Ty
15468
+ uploadDocumentWithPolling: Py,
15469
+ createApiKey: Oy,
15470
+ listApiKeys: Ty,
15471
+ deleteApiKey: Ny,
15472
+ transcribeAudio: jy
15454
15473
  });
15455
- function Ox({
15474
+ function Tx({
15456
15475
  children: r,
15457
15476
  apiUrl: e,
15458
15477
  clientId: t,
@@ -15482,12 +15501,12 @@ function Ox({
15482
15501
  throw new Error(
15483
15502
  "OpenSecretProvider requires a non-empty clientId. Please provide a valid project UUID."
15484
15503
  );
15485
- W1(e), Promise.resolve().then(() => yy).then(({ apiConfig: ue }) => {
15504
+ Y1(e), Promise.resolve().then(() => yy).then(({ apiConfig: ue }) => {
15486
15505
  const fe = ue.platformApiUrl || "";
15487
15506
  ue.configure(e, fe);
15488
15507
  });
15489
15508
  }, [e, t]), Os(() => {
15490
- h(e ? () => ww(o ? { apiKey: o } : void 0) : void 0);
15509
+ h(e ? () => bw(o ? { apiKey: o } : void 0) : void 0);
15491
15510
  }, [e, o]);
15492
15511
  async function b() {
15493
15512
  const ue = window.localStorage.getItem("access_token"), fe = window.localStorage.getItem("refresh_token");
@@ -15499,7 +15518,7 @@ function Ox({
15499
15518
  return;
15500
15519
  }
15501
15520
  try {
15502
- const ye = await tw();
15521
+ const ye = await rw();
15503
15522
  s({
15504
15523
  loading: !1,
15505
15524
  user: ye
@@ -15517,7 +15536,7 @@ function Ox({
15517
15536
  async function H(ue, fe) {
15518
15537
  console.log("Signing in");
15519
15538
  try {
15520
- const { access_token: ye, refresh_token: xe } = await J1(ue, fe, t);
15539
+ const { access_token: ye, refresh_token: xe } = await X1(ue, fe, t);
15521
15540
  window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b();
15522
15541
  } catch (ye) {
15523
15542
  throw console.error(ye), ye;
@@ -15525,7 +15544,7 @@ function Ox({
15525
15544
  }
15526
15545
  async function T(ue, fe, ye, xe) {
15527
15546
  try {
15528
- const { access_token: Re, refresh_token: Je } = await Q1(
15547
+ const { access_token: Re, refresh_token: Je } = await ew(
15529
15548
  ue,
15530
15549
  fe,
15531
15550
  ye,
@@ -15540,7 +15559,7 @@ function Ox({
15540
15559
  async function m(ue, fe) {
15541
15560
  console.log("Signing in Guest");
15542
15561
  try {
15543
- const { access_token: ye, refresh_token: xe } = await X1(ue, fe, t);
15562
+ const { access_token: ye, refresh_token: xe } = await Q1(ue, fe, t);
15544
15563
  window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b();
15545
15564
  } catch (ye) {
15546
15565
  throw console.error(ye), ye;
@@ -15548,7 +15567,7 @@ function Ox({
15548
15567
  }
15549
15568
  async function A(ue, fe) {
15550
15569
  try {
15551
- const { access_token: ye, refresh_token: xe, id: Re } = await ew(
15570
+ const { access_token: ye, refresh_token: xe, id: Re } = await tw(
15552
15571
  ue,
15553
15572
  fe,
15554
15573
  t
@@ -15560,7 +15579,7 @@ function Ox({
15560
15579
  }
15561
15580
  async function k(ue, fe, ye) {
15562
15581
  try {
15563
- await pw(ue, fe, ye), await b();
15582
+ await yw(ue, fe, ye), await b();
15564
15583
  } catch (xe) {
15565
15584
  throw console.error(xe), xe;
15566
15585
  }
@@ -15569,7 +15588,7 @@ function Ox({
15569
15588
  const ue = window.localStorage.getItem("refresh_token");
15570
15589
  if (ue)
15571
15590
  try {
15572
- await rw(ue);
15591
+ await nw(ue);
15573
15592
  } catch (fe) {
15574
15593
  console.error("Error during logout:", fe);
15575
15594
  }
@@ -15589,30 +15608,30 @@ function Ox({
15589
15608
  signUp: T,
15590
15609
  signUpGuest: A,
15591
15610
  convertGuestToUserAccount: k,
15592
- get: my,
15593
- put: gy,
15594
- list: wy,
15595
- del: vy,
15611
+ get: wy,
15612
+ put: vy,
15613
+ list: by,
15614
+ del: my,
15596
15615
  refetchUser: b,
15597
- verifyEmail: by,
15616
+ verifyEmail: xy,
15598
15617
  requestNewVerificationCode: Ma,
15599
15618
  requestNewVerificationEmail: Ma,
15600
- changePassword: xy,
15619
+ changePassword: Ay,
15601
15620
  refreshAccessToken: Dc,
15602
- requestPasswordReset: (ue, fe) => sw(ue, fe, t),
15603
- confirmPasswordReset: (ue, fe, ye, xe) => ow(ue, fe, ye, xe, t),
15604
- requestAccountDeletion: gw,
15605
- confirmAccountDeletion: vw,
15621
+ requestPasswordReset: (ue, fe) => ow(ue, fe, t),
15622
+ confirmPasswordReset: (ue, fe, ye, xe) => aw(ue, fe, ye, xe, t),
15623
+ requestAccountDeletion: vw,
15624
+ confirmAccountDeletion: mw,
15606
15625
  initiateGitHubAuth: async (ue) => {
15607
15626
  try {
15608
- return await aw(t, ue);
15627
+ return await cw(t, ue);
15609
15628
  } catch (fe) {
15610
15629
  throw console.error("Failed to initiate GitHub auth:", fe), fe;
15611
15630
  }
15612
15631
  },
15613
15632
  handleGitHubCallback: async (ue, fe, ye) => {
15614
15633
  try {
15615
- const { access_token: xe, refresh_token: Re } = await cw(
15634
+ const { access_token: xe, refresh_token: Re } = await lw(
15616
15635
  ue,
15617
15636
  fe,
15618
15637
  ye
@@ -15624,14 +15643,14 @@ function Ox({
15624
15643
  },
15625
15644
  initiateGoogleAuth: async (ue) => {
15626
15645
  try {
15627
- return await lw(t, ue);
15646
+ return await uw(t, ue);
15628
15647
  } catch (fe) {
15629
15648
  throw console.error("Failed to initiate Google auth:", fe), fe;
15630
15649
  }
15631
15650
  },
15632
15651
  handleGoogleCallback: async (ue, fe, ye) => {
15633
15652
  try {
15634
- const { access_token: xe, refresh_token: Re } = await uw(
15653
+ const { access_token: xe, refresh_token: Re } = await fw(
15635
15654
  ue,
15636
15655
  fe,
15637
15656
  ye
@@ -15643,14 +15662,14 @@ function Ox({
15643
15662
  },
15644
15663
  initiateAppleAuth: async (ue) => {
15645
15664
  try {
15646
- return await fw(t, ue);
15665
+ return await hw(t, ue);
15647
15666
  } catch (fe) {
15648
15667
  throw console.error("Failed to initiate Apple auth:", fe), fe;
15649
15668
  }
15650
15669
  },
15651
15670
  handleAppleCallback: async (ue, fe, ye) => {
15652
15671
  try {
15653
- const { access_token: xe, refresh_token: Re } = await hw(
15672
+ const { access_token: xe, refresh_token: Re } = await dw(
15654
15673
  ue,
15655
15674
  fe,
15656
15675
  ye
@@ -15662,7 +15681,7 @@ function Ox({
15662
15681
  },
15663
15682
  handleAppleNativeSignIn: async (ue, fe) => {
15664
15683
  try {
15665
- const { access_token: ye, refresh_token: xe } = await dw(
15684
+ const { access_token: ye, refresh_token: xe } = await pw(
15666
15685
  ue,
15667
15686
  t,
15668
15687
  fe
@@ -15672,10 +15691,10 @@ function Ox({
15672
15691
  throw console.error("Apple native sign-in error:", ye), ye;
15673
15692
  }
15674
15693
  },
15675
- getPrivateKey: Ay,
15676
- getPrivateKeyBytes: Sy,
15677
- getPublicKey: Ey,
15678
- signMessage: _y,
15694
+ getPrivateKey: Sy,
15695
+ getPrivateKeyBytes: _y,
15696
+ getPublicKey: Iy,
15697
+ signMessage: Ey,
15679
15698
  aiCustomFetch: u || (async () => new Response()),
15680
15699
  apiUrl: e,
15681
15700
  pcrConfig: n,
@@ -15695,20 +15714,21 @@ function Ox({
15695
15714
  );
15696
15715
  return rs(xe, xe.cabundle, n);
15697
15716
  },
15698
- generateThirdPartyToken: yw,
15699
- encryptData: Iy,
15700
- decryptData: ky,
15701
- fetchModels: Cy,
15717
+ generateThirdPartyToken: gw,
15718
+ encryptData: ky,
15719
+ decryptData: Cy,
15720
+ fetchModels: By,
15702
15721
  uploadDocument: Ef,
15703
15722
  checkDocumentStatus: If,
15704
- uploadDocumentWithPolling: Ny,
15705
- createApiKey: By,
15706
- listApiKeys: Oy,
15707
- deleteApiKey: Ty
15723
+ uploadDocumentWithPolling: Py,
15724
+ createApiKey: Oy,
15725
+ listApiKeys: Ty,
15726
+ deleteApiKey: Ny,
15727
+ transcribeAudio: jy
15708
15728
  };
15709
- return /* @__PURE__ */ Sd(jy.Provider, { value: pt, children: r });
15729
+ return /* @__PURE__ */ Sd(Uy.Provider, { value: pt, children: r });
15710
15730
  }
15711
- const Ry = _d({
15731
+ const Dy = _d({
15712
15732
  auth: {
15713
15733
  loading: !0,
15714
15734
  developer: void 0
@@ -15765,7 +15785,7 @@ const Ry = _d({
15765
15785
  acceptInvite: uy,
15766
15786
  apiUrl: ""
15767
15787
  });
15768
- function Tx({
15788
+ function Nx({
15769
15789
  children: r,
15770
15790
  apiUrl: e,
15771
15791
  pcrConfig: t = {}
@@ -15779,7 +15799,7 @@ function Tx({
15779
15799
  throw new Error(
15780
15800
  "OpenSecretDeveloper requires a non-empty apiUrl. Please provide a valid API endpoint URL."
15781
15801
  );
15782
- V1(e), Promise.resolve().then(() => yy).then(({ apiConfig: v }) => {
15802
+ H1(e), Promise.resolve().then(() => yy).then(({ apiConfig: v }) => {
15783
15803
  const b = v.appApiUrl || "";
15784
15804
  v.configure(b, e);
15785
15805
  }).catch((v) => {
@@ -15798,7 +15818,7 @@ function Tx({
15798
15818
  return;
15799
15819
  }
15800
15820
  try {
15801
- const H = await K1();
15821
+ const H = await Z1();
15802
15822
  i({
15803
15823
  loading: !1,
15804
15824
  developer: {
@@ -15829,7 +15849,7 @@ function Tx({
15829
15849
  }, []);
15830
15850
  async function c(v, b) {
15831
15851
  try {
15832
- const { access_token: H, refresh_token: T } = await L1(v, b);
15852
+ const { access_token: H, refresh_token: T } = await F1(v, b);
15833
15853
  return window.localStorage.setItem("access_token", H), window.localStorage.setItem("refresh_token", T), await s(), { access_token: H, refresh_token: T, id: "", email: v };
15834
15854
  } catch (H) {
15835
15855
  throw console.error("Login error:", H), H;
@@ -15837,7 +15857,7 @@ function Tx({
15837
15857
  }
15838
15858
  async function u(v, b, H, T) {
15839
15859
  try {
15840
- const { access_token: m, refresh_token: A } = await H1(
15860
+ const { access_token: m, refresh_token: A } = await z1(
15841
15861
  v,
15842
15862
  b,
15843
15863
  H,
@@ -15857,7 +15877,7 @@ function Tx({
15857
15877
  const v = window.localStorage.getItem("refresh_token");
15858
15878
  if (v)
15859
15879
  try {
15860
- await F1(v);
15880
+ await G1(v);
15861
15881
  } catch (b) {
15862
15882
  console.error("Error during logout:", b);
15863
15883
  }
@@ -15904,34 +15924,34 @@ function Tx({
15904
15924
  acceptInvite: uy,
15905
15925
  apiUrl: e
15906
15926
  };
15907
- return /* @__PURE__ */ Sd(Ry.Provider, { value: h, children: r });
15908
- }
15909
- function Nx() {
15910
- return Ed(jy);
15927
+ return /* @__PURE__ */ Sd(Dy.Provider, { value: h, children: r });
15911
15928
  }
15912
15929
  function Px() {
15913
- return Ed(Ry);
15930
+ return Ed(Uy);
15914
15931
  }
15915
15932
  function jx() {
15933
+ return Ed(Dy);
15934
+ }
15935
+ function Rx() {
15916
15936
  const r = new Uint8Array(32);
15917
15937
  return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
15918
15938
  }
15919
- async function Rx(r) {
15939
+ async function Ux(r) {
15920
15940
  const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
15921
15941
  return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
15922
15942
  }
15923
15943
  export {
15924
- jy as OpenSecretContext,
15925
- Tx as OpenSecretDeveloper,
15926
- Ry as OpenSecretDeveloperContext,
15927
- Ox as OpenSecretProvider,
15944
+ Uy as OpenSecretContext,
15945
+ Nx as OpenSecretDeveloper,
15946
+ Dy as OpenSecretDeveloperContext,
15947
+ Tx as OpenSecretProvider,
15928
15948
  $a as apiConfig,
15929
- By as createApiKey,
15930
- ww as createCustomFetch,
15931
- Ty as deleteApiKey,
15932
- jx as generateSecureSecret,
15933
- Rx as hashSecret,
15934
- Oy as listApiKeys,
15935
- Nx as useOpenSecret,
15936
- Px as useOpenSecretDeveloper
15949
+ Oy as createApiKey,
15950
+ bw as createCustomFetch,
15951
+ Ny as deleteApiKey,
15952
+ Rx as generateSecureSecret,
15953
+ Ux as hashSecret,
15954
+ Ty as listApiKeys,
15955
+ Px as useOpenSecret,
15956
+ jx as useOpenSecretDeveloper
15937
15957
  };