@opensecret/react 1.5.0 → 1.5.1

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,9 +1,9 @@
1
- var Jy = Object.defineProperty;
1
+ var Xy = Object.defineProperty;
2
2
  var Cf = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var Xy = (r, e, t) => e in r ? Jy(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
- var Ke = (r, e, t) => Xy(r, typeof e != "symbol" ? e + "" : e, t), Vc = (r, e, t) => e.has(r) || Cf("Cannot " + t);
5
+ var Qy = (r, e, t) => e in r ? Xy(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
+ var Ke = (r, e, t) => Qy(r, typeof e != "symbol" ? e + "" : e, t), Vc = (r, e, t) => e.has(r) || Cf("Cannot " + t);
7
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) {
@@ -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 Qy {
19
+ class eg {
20
20
  // TODO(dchest): methods to encode chunk-by-chunk.
21
21
  constructor(e = "=") {
22
22
  Ke(this, "_paddingCharacter");
@@ -84,7 +84,7 @@ class Qy {
84
84
  return t;
85
85
  }
86
86
  }
87
- const Id = new Qy();
87
+ const Id = new eg();
88
88
  function _r(r) {
89
89
  return Id.encode(r);
90
90
  }
@@ -102,10 +102,10 @@ function Br(r) {
102
102
  r[e] = 0;
103
103
  return r;
104
104
  }
105
- const eg = 20;
106
- function tg(r, e, t) {
105
+ const tg = 20;
106
+ function rg(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, tt = s, De = o, Te = c, He = u, yt = h, pt = v, ue = b, fe = H, ye = T, Ae = m, Re = A, Je = k, ie = I, ke = P;
108
- for (let mt = 0; mt < eg; mt += 2)
108
+ for (let mt = 0; mt < tg; mt += 2)
109
109
  D = D + Te | 0, Re ^= D, Re = Re >>> 16 | Re << 16, ue = ue + Re | 0, Te ^= ue, Te = Te >>> 20 | Te << 12, pe = pe + He | 0, Je ^= pe, Je = Je >>> 16 | Je << 16, fe = fe + Je | 0, He ^= fe, He = He >>> 20 | He << 12, tt = tt + yt | 0, ie ^= tt, ie = ie >>> 16 | ie << 16, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 20 | yt << 12, De = De + pt | 0, ke ^= De, ke = ke >>> 16 | ke << 16, Ae = Ae + ke | 0, pt ^= Ae, pt = pt >>> 20 | pt << 12, tt = tt + yt | 0, ie ^= tt, ie = ie >>> 24 | ie << 8, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 25 | yt << 7, De = De + pt | 0, ke ^= De, ke = ke >>> 24 | ke << 8, Ae = Ae + ke | 0, pt ^= Ae, pt = pt >>> 25 | pt << 7, pe = pe + He | 0, Je ^= pe, Je = Je >>> 24 | Je << 8, fe = fe + Je | 0, He ^= fe, He = He >>> 25 | He << 7, D = D + Te | 0, Re ^= D, Re = Re >>> 24 | Re << 8, ue = ue + Re | 0, Te ^= ue, Te = Te >>> 25 | Te << 7, D = D + He | 0, ke ^= D, ke = ke >>> 16 | ke << 16, ye = ye + ke | 0, He ^= ye, He = He >>> 20 | He << 12, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 16 | Re << 16, Ae = Ae + Re | 0, yt ^= Ae, yt = yt >>> 20 | yt << 12, tt = tt + pt | 0, Je ^= tt, Je = Je >>> 16 | Je << 16, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 20 | pt << 12, De = De + Te | 0, ie ^= De, ie = ie >>> 16 | ie << 16, fe = fe + ie | 0, Te ^= fe, Te = Te >>> 20 | Te << 12, tt = tt + pt | 0, Je ^= tt, Je = Je >>> 24 | Je << 8, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 25 | pt << 7, De = De + Te | 0, ie ^= De, ie = ie >>> 24 | ie << 8, fe = fe + ie | 0, Te ^= fe, Te = Te >>> 25 | Te << 7, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 24 | Re << 8, Ae = Ae + Re | 0, yt ^= Ae, yt = yt >>> 25 | yt << 7, D = D + He | 0, ke ^= D, ke = ke >>> 24 | ke << 8, ye = ye + ke | 0, He ^= ye, He = He >>> 25 | He << 7;
110
110
  zt(D + n | 0, r, 0), zt(pe + i | 0, r, 4), zt(tt + s | 0, r, 8), zt(De + o | 0, r, 12), zt(Te + c | 0, r, 16), zt(He + u | 0, r, 20), zt(yt + h | 0, r, 24), zt(pt + v | 0, r, 28), zt(ue + b | 0, r, 32), zt(fe + H | 0, r, 36), zt(ye + T | 0, r, 40), zt(Ae + m | 0, r, 44), zt(Re + A | 0, r, 48), zt(Je + k | 0, r, 52), zt(ie + I | 0, r, 56), zt(ke + 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
- tg(c, s, r);
129
+ rg(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
- rg(s, 0, o);
132
+ ng(s, 0, o);
133
133
  }
134
134
  return Br(c), i === 0 && Br(s), n;
135
135
  }
136
136
  function Tf(r, e, t, n = 0) {
137
137
  return Br(t), il(r, e, t, t, n);
138
138
  }
139
- function rg(r, e, t) {
139
+ function ng(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 ng(r, e) {
146
+ function ig(r, e) {
147
147
  if (r.length !== e.length)
148
148
  return 0;
149
149
  let t = 0;
@@ -151,13 +151,13 @@ function ng(r, e) {
151
151
  t |= r[n] ^ e[n];
152
152
  return 1 & t - 1 >>> 8;
153
153
  }
154
- function ig(r, e) {
155
- return r.length === 0 || e.length === 0 ? !1 : ng(r, e) !== 0;
154
+ function sg(r, e) {
155
+ return r.length === 0 || e.length === 0 ? !1 : ig(r, e) !== 0;
156
156
  }
157
- const sg = 16;
158
- class og {
157
+ const og = 16;
158
+ class ag {
159
159
  constructor(e) {
160
- Ke(this, "digestLength", sg);
160
+ Ke(this, "digestLength", og);
161
161
  Ke(this, "_buffer", new Uint8Array(16));
162
162
  Ke(this, "_r", new Uint16Array(10));
163
163
  Ke(this, "_h", new Uint16Array(10));
@@ -271,16 +271,16 @@ class og {
271
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 ag = 32, cg = 12, lg = 16, Nf = new Uint8Array(16);
274
+ const cg = 32, lg = 12, ug = 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
- Ke(this, "nonceLength", cg);
281
- Ke(this, "tagLength", lg);
280
+ Ke(this, "nonceLength", lg);
281
+ Ke(this, "tagLength", ug);
282
282
  Ke(this, "_key");
283
- if (e.length !== ag)
283
+ if (e.length !== cg)
284
284
  throw new Error("ChaCha20Poly1305 needs 32-byte key");
285
285
  this._key = new Uint8Array(e);
286
286
  }
@@ -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), !ig(c, t.subarray(t.length - this.tagLength, t.length)))
339
+ if (this._authenticate(c, o, t.subarray(0, t.length - this.tagLength), n), !sg(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;
@@ -352,7 +352,7 @@ class Nu {
352
352
  return Br(this._key), this;
353
353
  }
354
354
  _authenticate(e, t, n, i) {
355
- const s = new og(t);
355
+ const s = new ag(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);
@@ -363,7 +363,7 @@ class Nu {
363
363
  }
364
364
  }
365
365
  const Pf = 65536;
366
- class ug {
366
+ class fg {
367
367
  constructor() {
368
368
  Ke(this, "isAvailable", !1);
369
369
  Ke(this, "isInstantiated", !1);
@@ -378,12 +378,12 @@ class ug {
378
378
  return t;
379
379
  }
380
380
  }
381
- const fg = new ug();
382
- function hg(r, e = fg) {
381
+ const hg = new fg();
382
+ function dg(r, e = hg) {
383
383
  return e.randomBytes(r);
384
384
  }
385
385
  function kd(r, e) {
386
- const t = new Nu(r), n = hg(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
386
+ const t = new Nu(r), n = dg(12), s = new TextEncoder().encode(e), o = t.seal(n, s), c = new Uint8Array(n.length + o.length);
387
387
  return c.set(n), c.set(o, n.length), _r(c);
388
388
  }
389
389
  function sl(r, e) {
@@ -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 dg(r) {
396
+ function pg(r) {
397
397
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
398
398
  }
399
- function pg(r) {
399
+ function yg(r) {
400
400
  if (r.__esModule) return r;
401
401
  var e = r.default;
402
402
  if (typeof e == "function") {
@@ -1250,10 +1250,10 @@ var jf;
1250
1250
  * SOFTWARE.
1251
1251
  *
1252
1252
  */
1253
- const yg = "[object ArrayBuffer]";
1253
+ const gg = "[object ArrayBuffer]";
1254
1254
  class W {
1255
1255
  static isArrayBuffer(e) {
1256
- return Object.prototype.toString.call(e) === yg;
1256
+ return Object.prototype.toString.call(e) === gg;
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", gg = /^[0-9a-f]+$/i, vg = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, mg = /^[a-zA-Z0-9-_]+$/;
1303
+ const Lc = "string", vg = /^[0-9a-f]+$/i, mg = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, wg = /^[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 && gg.test(e);
1338
+ return typeof e === Lc && vg.test(e);
1339
1339
  }
1340
1340
  static isBase64(e) {
1341
- return typeof e === Lc && vg.test(e);
1341
+ return typeof e === Lc && mg.test(e);
1342
1342
  }
1343
1343
  static isBase64Url(e) {
1344
- return typeof e === Lc && mg.test(e);
1344
+ return typeof e === Lc && wg.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 wg(...r) {
1505
+ function bg(...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 bg(r) {
1581
+ function xg(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 bg(r) {
1601
1601
  }
1602
1602
  return new ArrayBuffer(0);
1603
1603
  }
1604
- function xg(r, e) {
1604
+ function Ag(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", Ag = "isHexOnly", Sg = "idBlock", _g = "tagClass", Eg = "tagNumber", Ig = "isConstructed", kg = "fromBER", Cg = "toBER", Bg = "local", yr = "", Kr = new ArrayBuffer(0), Ga = new Uint8Array(0), Us = "EndOfContent", Bd = "OCTET STRING", Od = "BIT STRING";
1686
+ const _s = [new Uint8Array([1])], Uf = "0123456789", Hc = "name", Df = "valueHexView", Sg = "isHexOnly", _g = "idBlock", Eg = "tagClass", Ig = "tagNumber", kg = "isConstructed", Cg = "fromBER", Bg = "toBER", Og = "local", yr = "", Kr = new ArrayBuffer(0), Ga = 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 xg(t, n);
1978
+ return Ag(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 Og(r, e) {
2022
+ function Tg(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 = Og(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 = Tg(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 Tg(r, e) {
2194
+ function Ng(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 (; Tg(this.isIndefiniteForm, n) > 0; ) {
2208
+ for (; Ng(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 Ng(r, e) {
2526
+ function Pg(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 Pg(r, e) {
2564
+ function jg(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(bg(e));
2594
+ this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(xg(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 = Pg($f(n), t), o = "-";
2645
+ t = jg($f(n), t), o = "-";
2646
2646
  break;
2647
2647
  default:
2648
- t = Ng(t, $f(n));
2648
+ t = Pg(t, $f(n));
2649
2649
  }
2650
2650
  n++, i >>= 1;
2651
2651
  }
@@ -3463,7 +3463,7 @@ class zo extends ui {
3463
3463
  super(n), this.value = e, this.local = t;
3464
3464
  }
3465
3465
  }
3466
- class jg {
3466
+ class Rg {
3467
3467
  constructor({ data: e = Ga } = {}) {
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 (!(Sg in t))
3522
+ if (!(_g in t))
3523
3523
  return {
3524
3524
  verified: !1,
3525
3525
  result: { error: "Wrong ASN.1 schema" }
3526
3526
  };
3527
- if (!(kg in t.idBlock))
3527
+ if (!(Cg in t.idBlock))
3528
3528
  return {
3529
3529
  verified: !1,
3530
3530
  result: { error: "Wrong ASN.1 schema" }
3531
3531
  };
3532
- if (!(Cg in t.idBlock))
3532
+ if (!(Bg 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(_g) === !1)
3548
+ if (t.idBlock.hasOwnProperty(Eg) === !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(Eg) === !1)
3558
+ if (t.idBlock.hasOwnProperty(Ig) === !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(Ig) === !1)
3568
+ if (t.idBlock.hasOwnProperty(kg) === !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 (!(Ag in t.idBlock))
3578
+ if (!(Sg 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
- Bg 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
+ Og 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 Rg(r, e) {
3683
+ function Ug(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: jg,
3723
+ RawData: Rg,
3724
3724
  RelativeObjectIdentifier: Du,
3725
3725
  Repeated: zo,
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: Rg
3740
+ verifySchema: Ug
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 Ug = {
3812
+ const Dg = {
3813
3813
  fromASN: (r) => r instanceof li ? null : r.valueBeforeDecodeView,
3814
3814
  toASN: (r) => {
3815
3815
  if (r === null)
@@ -3819,28 +3819,28 @@ const Ug = {
3819
3819
  throw new Error(e.result.error);
3820
3820
  return e.result;
3821
3821
  }
3822
- }, Dg = {
3822
+ }, $g = {
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
+ }, Mg = {
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
- }, Mg = {
3831
+ }, Vg = {
3832
3832
  fromASN: (r) => r.valueBlock.valueHexView,
3833
3833
  toASN: (r) => new oi({ valueHex: r })
3834
- }, Vg = {
3834
+ }, Lg = {
3835
3835
  fromASN: (r) => r.valueBlock.toString(),
3836
3836
  toASN: (r) => new qa({ value: r })
3837
- }, Lg = {
3837
+ }, Hg = {
3838
3838
  fromASN: (r) => r.valueBlock.value,
3839
3839
  toASN: (r) => new za({ value: r })
3840
3840
  }, Ko = {
3841
3841
  fromASN: (r) => r.valueBlock.valueHexView,
3842
3842
  toASN: (r) => new si({ valueHex: r })
3843
- }, Hg = {
3843
+ }, Fg = {
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), Fg = Nr(Za), Gg = Nr(Wa), zg = Nr(Ya), Kg = Nr(Ja), qg = Nr(Xa), Zg = Nr(Qa), Wg = Nr(ec), Yg = Nr(tc), Jg = Nr(ho), Xg = Nr(rc), Qg = Nr(nc), ev = {
3853
+ const kp = Nr(kn), Gg = Nr(Za), zg = Nr(Wa), Kg = Nr(Ya), qg = Nr(Ja), Zg = Nr(Xa), Wg = Nr(Qa), Yg = Nr(ec), Jg = Nr(tc), Xg = Nr(ho), Qg = Nr(rc), ev = Nr(nc), tv = {
3854
3854
  fromASN: (r) => r.toDate(),
3855
3855
  toASN: (r) => new po({ valueDate: r })
3856
- }, tv = {
3856
+ }, rv = {
3857
3857
  fromASN: (r) => r.toDate(),
3858
3858
  toASN: (r) => new ic({ valueDate: r })
3859
- }, rv = {
3859
+ }, nv = {
3860
3860
  fromASN: () => null,
3861
3861
  toASN: () => new li()
3862
3862
  };
3863
3863
  function Gu(r) {
3864
3864
  switch (r) {
3865
3865
  case x.Any:
3866
- return Ug;
3866
+ return Dg;
3867
3867
  case x.BitString:
3868
- return Mg;
3868
+ return Vg;
3869
3869
  case x.BmpString:
3870
- return Fg;
3870
+ return Gg;
3871
3871
  case x.Boolean:
3872
- return Lg;
3872
+ return Hg;
3873
3873
  case x.CharacterString:
3874
- return Qg;
3874
+ return ev;
3875
3875
  case x.Enumerated:
3876
- return $g;
3876
+ return Mg;
3877
3877
  case x.GeneralString:
3878
- return Xg;
3878
+ return Qg;
3879
3879
  case x.GeneralizedTime:
3880
- return tv;
3880
+ return rv;
3881
3881
  case x.GraphicString:
3882
- return Yg;
3882
+ return Jg;
3883
3883
  case x.IA5String:
3884
- return Wg;
3884
+ return Yg;
3885
3885
  case x.Integer:
3886
- return Dg;
3886
+ return $g;
3887
3887
  case x.Null:
3888
- return rv;
3888
+ return nv;
3889
3889
  case x.NumericString:
3890
- return zg;
3890
+ return Kg;
3891
3891
  case x.ObjectIdentifier:
3892
- return Vg;
3892
+ return Lg;
3893
3893
  case x.OctetString:
3894
3894
  return Ko;
3895
3895
  case x.PrintableString:
3896
- return Kg;
3897
- case x.TeletexString:
3898
3896
  return qg;
3897
+ case x.TeletexString:
3898
+ return Zg;
3899
3899
  case x.UTCTime:
3900
- return ev;
3900
+ return tv;
3901
3901
  case x.UniversalString:
3902
- return Gg;
3902
+ return zg;
3903
3903
  case x.Utf8String:
3904
3904
  return kp;
3905
3905
  case x.VideotexString:
3906
- return Zg;
3906
+ return Wg;
3907
3907
  case x.VisibleString:
3908
- return Jg;
3908
+ return Xg;
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 nv(r, e) {
3924
+ function iv(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 nv(r, e) {
3930
3930
  return !1;
3931
3931
  return !0;
3932
3932
  }
3933
- class iv {
3933
+ class sv {
3934
3934
  constructor() {
3935
3935
  this.items = /* @__PURE__ */ new WeakMap();
3936
3936
  }
@@ -4038,7 +4038,7 @@ class iv {
4038
4038
  return t ? this.items.get(t) || this.findParentSchema(t) : null;
4039
4039
  }
4040
4040
  }
4041
- const Or = new iv(), F = (r) => (e) => {
4041
+ const Or = new sv(), 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 sv {
4061
+ class ov {
4062
4062
  static parse(e, t) {
4063
4063
  const n = Ui(e);
4064
4064
  if (n.result.error)
@@ -4176,7 +4176,7 @@ class zu {
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" && nv(this.serialize(c.defaultValue), this.serialize(u)))
4179
+ if (u === void 0 || c.defaultValue === u || typeof c.defaultValue == "object" && typeof u == "object" && iv(this.serialize(c.defaultValue), this.serialize(u)))
4180
4180
  continue;
4181
4181
  const h = zu.toAsnItem(c, o, t, u);
4182
4182
  if (typeof c.context == "number")
@@ -4270,7 +4270,7 @@ class q {
4270
4270
  return zu.serialize(e);
4271
4271
  }
4272
4272
  static parse(e, t) {
4273
- return sv.parse(e, t);
4273
+ return ov.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 ov = {
4884
+ const av = {
4885
4885
  fromASN: (r) => Lf.toString(Ko.fromASN(r)),
4886
4886
  toASN: (r) => Ko.toASN(Lf.fromString(r))
4887
4887
  };
@@ -4934,7 +4934,7 @@ f([
4934
4934
  y({ type: x.IA5String, context: 6, implicit: !0 })
4935
4935
  ], Le.prototype, "uniformResourceIdentifier", void 0);
4936
4936
  f([
4937
- y({ type: x.OctetString, context: 7, implicit: !0, converter: ov })
4937
+ y({ type: x.OctetString, context: 7, implicit: !0, converter: av })
4938
4938
  ], Le.prototype, "iPAddress", void 0);
4939
4939
  f([
4940
4940
  y({ type: x.ObjectIdentifier, context: 8, implicit: !0 })
@@ -4942,9 +4942,9 @@ f([
4942
4942
  Le = f([
4943
4943
  F({ type: M.Choice })
4944
4944
  ], Le);
4945
- const qu = "1.3.6.1.5.5.7", av = `${qu}.1`, is = `${qu}.3`, ac = `${qu}.48`, Hf = `${ac}.1`, Ff = `${ac}.2`, Gf = `${ac}.3`, zf = `${ac}.5`, Yn = "2.5.29";
4945
+ const qu = "1.3.6.1.5.5.7", cv = `${qu}.1`, is = `${qu}.3`, ac = `${qu}.48`, Hf = `${ac}.1`, Ff = `${ac}.2`, Gf = `${ac}.3`, zf = `${ac}.5`, Yn = "2.5.29";
4946
4946
  var pl;
4947
- const yl = `${av}.1`;
4947
+ const yl = `${cv}.1`;
4948
4948
  class yo {
4949
4949
  constructor(e = {}) {
4950
4950
  this.accessMethod = "", this.accessLocation = new Le(), Object.assign(this, 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 cv = `${is}.1`, lv = `${is}.2`, uv = `${is}.3`, fv = `${is}.4`, hv = `${is}.8`, dv = `${is}.9`;
5242
+ const lv = `${is}.1`, uv = `${is}.2`, fv = `${is}.3`, hv = `${is}.4`, dv = `${is}.8`, pv = `${is}.9`;
5243
5243
  let _l = class {
5244
5244
  constructor(e = new ArrayBuffer(0)) {
5245
5245
  this.value = e;
@@ -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: Hg, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
6163
+ y({ type: st, converter: Fg, 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 pv = "1.2.840.113549.1.7.1", Wl = "1.2.840.113549.1.7.2";
6482
+ const yv = "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 yv = So(hf);
6519
+ const gv = So(hf);
6520
6520
  So(Fp);
6521
- const gv = So(df), vv = So(pf), mv = So(yf);
6521
+ const vv = So(df), mv = So(pf), wv = 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 wv extends st {
6536
+ class bv 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: wv })
6574
+ y({ type: bv })
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`, bv = `${wr}.7`, xv = `${wr}.9`, Ps = `${wr}.10`, Av = `${wr}.2`, Sv = `${wr}.4`, fa = `${wr}.5`, _v = `${wr}.14`, Xl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, Gp = `${wr}.15`, zp = `${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", Ev = "2.16.840.1.101.3.4.2.5", Iv = "2.16.840.1.101.3.4.2.6", kv = "1.2.840.113549.2.2", Cv = "1.2.840.113549.2.5", Sc = `${wr}.8`;
6630
+ const wr = "1.2.840.113549.1.1", gi = `${wr}.1`, xv = `${wr}.7`, Av = `${wr}.9`, Ps = `${wr}.10`, Sv = `${wr}.2`, _v = `${wr}.4`, fa = `${wr}.5`, Ev = `${wr}.14`, Xl = `${wr}.11`, ha = `${wr}.12`, da = `${wr}.13`, Gp = `${wr}.15`, zp = `${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", Iv = "2.16.840.1.101.3.4.2.5", kv = "2.16.840.1.101.3.4.2.6", Cv = "1.2.840.113549.2.2", Bv = "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(kv);
6635
6634
  Ft(Cv);
6635
+ Ft(Bv);
6636
6636
  const vi = Ft(pa);
6637
6637
  Ft(Kp);
6638
6638
  Ft(ya);
6639
6639
  Ft(ga);
6640
6640
  Ft(va);
6641
- Ft(Ev);
6642
6641
  Ft(Iv);
6642
+ Ft(kv);
6643
6643
  const qp = new ne({
6644
6644
  algorithm: Sc,
6645
6645
  parameters: q.serialize(vi)
6646
6646
  }), Zp = new ne({
6647
- algorithm: xv,
6647
+ algorithm: Av,
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(Av);
6652
6651
  Ft(Sv);
6652
+ Ft(_v);
6653
6653
  Ft(fa);
6654
6654
  Ft(Gp);
6655
6655
  Ft(zp);
@@ -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: bv,
6678
+ algorithm: xv,
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 Bv(r, e, t, n) {
6818
+ function Ov(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 Bv(r, e, t, n) {
6842
6842
  h((n = n.apply(r, [])).next());
6843
6843
  });
6844
6844
  }
6845
- function Ov(r, e) {
6845
+ function Tv(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 Tv = "injectionTokens";
6938
- function Nv(r) {
6939
- var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(Tv, r) || {};
6937
+ var Nv = "injectionTokens";
6938
+ function Pv(r) {
6939
+ var e = Reflect.getMetadata("design:paramtypes", r) || [], t = Reflect.getOwnMetadata(Nv, 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 Pv(r) {
6987
+ function jv(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 jv(r) {
6993
+ function Rv(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 Rv(r) {
7002
+ function Uv(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
- }(), Uv = function(r) {
7028
+ }(), Dv = 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 Dv(r, e) {
7040
+ function $v(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 Mv(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 Mv(r, e, t) {
7054
- var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = Dv(s, e);
7055
- return $v("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7053
+ function Vv(r, e, t) {
7054
+ var n = ma(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = $v(s, e);
7055
+ return Mv("Cannot inject the dependency " + o + ' of "' + r.name + '" constructor. Reason:', t);
7056
7056
  }
7057
- function Vv(r) {
7057
+ function Lv(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 Lv = function(r) {
7063
+ var Hv = 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), Hv = function(r) {
7069
+ }(mf), Fv = 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), Fv = /* @__PURE__ */ function() {
7075
+ }(mf), Gv = /* @__PURE__ */ function() {
7076
7076
  function r() {
7077
- this.preResolution = new Lv(), this.postResolution = new Hv();
7077
+ this.preResolution = new Hv(), this.postResolution = new Fv();
7078
7078
  }
7079
7079
  return r;
7080
- }(), Jp = /* @__PURE__ */ new Map(), Gv = function() {
7080
+ }(), Jp = /* @__PURE__ */ new Map(), zv = function() {
7081
7081
  function r(e) {
7082
- this.parent = e, this._registry = new Uv(), this.interceptors = new Fv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
7082
+ this.parent = e, this._registry = new Dv(), this.interceptors = new Gv(), 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 (Rv(t) ? i = t : i = { useClass: t }, $o(i))
7087
+ if (Uv(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 Lv = function(r) {
7131
7131
  var i = this.resolveRegistration(n, t);
7132
7132
  return this.executePostResolutionInterceptor(e, i, "Single"), i;
7133
7133
  }
7134
- if (jv(e)) {
7134
+ if (Rv(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 Lv = function(r) {
7258
7258
  options: n
7259
7259
  });
7260
7260
  }, r.prototype.dispose = function() {
7261
- return Bv(this, void 0, void 0, function() {
7261
+ return Ov(this, void 0, void 0, function() {
7262
7262
  var e;
7263
- return Ov(this, function(t) {
7263
+ return Tv(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 Lv = 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 Vv(i) && this.disposables.add(i), i;
7295
+ return Lv(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 Pv(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 jv(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(Mv(t, s, h));
7303
+ throw new Error(Vv(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 Gv();
7310
+ }(), lr = new zv();
7311
7311
  function kc() {
7312
7312
  return function(r) {
7313
- Jp.set(r, Nv(r));
7313
+ Jp.set(r, Pv(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 zv {
7745
+ class Kv {
7746
7746
  getAlgorithms() {
7747
7747
  return lr.resolveAll(Io);
7748
7748
  }
@@ -7778,7 +7778,7 @@ class zv {
7778
7778
  }
7779
7779
  }
7780
7780
  const Yi = "crypto.algorithmProvider";
7781
- lr.registerSingleton(Yi, zv);
7781
+ lr.registerSingleton(Yi, Kv);
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", Gh = "brainpoolP224r1", zh = "brainpoolP224t1", Kh = "brainpoolP256r1", qh = "brainpoolP256t1", Zh = "brainpoolP320r1", Wh = "brainpoolP320t1", Yh = "brainpoolP384r1", Jh = "brainpoolP384t1", Xh = "brainpoolP512r1", Qh = "brainpoolP512t1", Ct = "ECDSA";
7784
7784
  let Gs = Vo = class {
@@ -7788,13 +7788,13 @@ let Gs = 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 yv;
7792
- case "sha-256":
7793
7791
  return gv;
7794
- case "sha-384":
7792
+ case "sha-256":
7795
7793
  return vv;
7796
- case "sha-512":
7794
+ case "sha-384":
7797
7795
  return mv;
7796
+ case "sha-512":
7797
+ return wv;
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 Kv {
7937
+ class qv {
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
- [_v]: "sha224WithRSAEncryption",
7967
+ [Ev]: "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
- [cv]: "TLS WWW server authentication",
7978
- [lv]: "TLS WWW client authentication",
7979
- [uv]: "Code Signing",
7980
- [fv]: "E-mail Protection",
7981
- [hv]: "Time Stamping",
7982
- [dv]: "OCSP Signing",
7977
+ [lv]: "TLS WWW server authentication",
7978
+ [uv]: "TLS WWW client authentication",
7979
+ [fv]: "Code Signing",
7980
+ [hv]: "E-mail Protection",
7981
+ [dv]: "Time Stamping",
7982
+ [pv]: "OCSP Signing",
7983
7983
  [Wl]: "Signed Data"
7984
7984
  };
7985
7985
  class zn {
@@ -8036,7 +8036,7 @@ class zn {
8036
8036
  }
8037
8037
  }
8038
8038
  zn.oidSerializer = Bn;
8039
- zn.algorithmSerializer = Kv;
8039
+ zn.algorithmSerializer = qv;
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(), qv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8159
- function Zv(r) {
8160
- return new RegExp(qv).test(r);
8158
+ const Zt = new Dn(), Zv = /^[0-2](?:\.[1-9][0-9]*)+$/;
8159
+ function Wv(r) {
8160
+ return new RegExp(Zv).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 Zv(e) ? e : this.get(e);
8172
+ return Wv(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 Wv(r, e) {
8191
+ function Yv(r, e) {
8192
8192
  return `\\${le.ToHex(le.FromUtf8String(e)).toUpperCase()}`;
8193
8193
  }
8194
- function Yv(r) {
8195
- return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Wv);
8194
+ function Jv(r) {
8195
+ return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Yv);
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)}` : Yv(t.value.toString());
8228
+ const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${le.ToHex(t.value.anyValue)}` : Jv(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.`, Jv = `${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", Gc = "dns", zc = "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.`, Xv = `${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", Gc = "dns", zc = "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;
@@ -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(Jv);
8394
+ throw new Error(Xv);
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();
@@ -8476,7 +8476,7 @@ class zs extends Jn {
8476
8476
  }
8477
8477
  }
8478
8478
  zs.NAME = "GeneralNames";
8479
- const js = "-{5}", Ks = "\\n", Xv = `[^${Ks}]+`, Qv = `${js}BEGIN (${Xv}(?=${js}))${js}`, em = `${js}END \\1${js}`, Ji = "\\n", tm = `[^:${Ks}]+`, rm = `(?:[^${Ks}]+${Ji}(?: +[^${Ks}]+${Ji})*)`, nm = "[a-zA-Z0-9=+/]+", im = `(?:${nm}${Ji})+`, id = `${Qv}${Ji}(?:((?:${tm}: ${rm})+))?${Ji}?(${im})${em}`;
8479
+ const js = "-{5}", Ks = "\\n", Qv = `[^${Ks}]+`, em = `${js}BEGIN (${Qv}(?=${js}))${js}`, tm = `${js}END \\1${js}`, Ji = "\\n", rm = `[^:${Ks}]+`, nm = `(?:[^${Ks}]+${Ji}(?: +[^${Ks}]+${Ji})*)`, im = "[a-zA-Z0-9=+/]+", sm = `(?:${im}${Ji})+`, id = `${em}${Ji}(?:((?:${rm}: ${nm})+))?${Ji}?(${sm})${tm}`;
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 = sm(o, s)), t.subtle.importKey("spki", s, i, !0, n);
8626
+ return o.algorithm.algorithm === Ps && (s = om(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 sm(r, e) {
8662
+ function om(r, e) {
8663
8663
  return r.algorithm = new ne({
8664
8664
  algorithm: gi,
8665
8665
  parameters: null
@@ -9010,7 +9010,7 @@ class Pc {
9010
9010
  }
9011
9011
  Pc.items = /* @__PURE__ */ new Map();
9012
9012
  const jc = "crypto.signatureFormatter";
9013
- class om {
9013
+ class am {
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 wg(o, c);
9165
+ return bg(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 am extends Fr {
9225
+ class cm 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 am extends Fr {
9281
9281
  }), e;
9282
9282
  }
9283
9283
  }
9284
- am.NAME = "PKCS#10 Certificate Request";
9284
+ cm.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 cm extends Array {
9383
+ class lm extends Array {
9384
9384
  constructor(e) {
9385
9385
  if (super(), Fr.isAsnEncoded(e))
9386
9386
  this.import(e);
@@ -9392,7 +9392,7 @@ class cm extends Array {
9392
9392
  }
9393
9393
  export(e) {
9394
9394
  const t = new xn();
9395
- t.version = 1, t.encapContentInfo.eContentType = pv, t.encapContentInfo.eContent = new Ki({
9395
+ t.version = 1, t.encapContentInfo.eContentType = yv, 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 cm extends Array {
9449
9449
  });
9450
9450
  }
9451
9451
  }
9452
- class lm {
9452
+ class um {
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 cm(e);
9457
+ const n = new lm(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, om);
9513
+ lr.registerSingleton(jc, am);
9514
9514
  lr.registerSingleton(jc, Tr);
9515
9515
  Tr.namedCurveSize.set("P-256", 32);
9516
9516
  Tr.namedCurveSize.set("K-256", 32);
@@ -9564,7 +9564,7 @@ let Qe = (vn = class {
9564
9564
  function _a(r) {
9565
9565
  if (r != null && typeof r == "object") return r[Ir.ENCODED];
9566
9566
  }
9567
- function um(r) {
9567
+ function fm(r) {
9568
9568
  if (r != null && typeof r == "object") return r[Ir.LENGTH];
9569
9569
  }
9570
9570
  function Zs(r, e) {
@@ -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 fm(r) {
9587
+ function hm(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 hm = { "-": "+", _: "/" };
9598
- function dm(r) {
9599
- const e = r.replace(/[_-]/g, (t) => hm[t]);
9597
+ const dm = { "-": "+", _: "/" };
9598
+ function pm(r) {
9599
+ const e = r.replace(/[_-]/g, (t) => dm[t]);
9600
9600
  return xf(e.padEnd(Math.ceil(e.length / 4) * 4, "="));
9601
9601
  }
9602
- function pm() {
9602
+ function ym() {
9603
9603
  const r = new Uint8Array(4), e = new Uint32Array(r.buffer);
9604
9604
  return !((e[0] = 1) & r[0]);
9605
9605
  }
@@ -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 ym(r) {
9707
+ function gm(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 ym(r) {
9719
9719
  else return null;
9720
9720
  return n;
9721
9721
  }
9722
- function gm(r) {
9722
+ function vm(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 gm(r) {
9728
9728
  }
9729
9729
  return r;
9730
9730
  }
9731
- function vm(r) {
9731
+ function mm(r) {
9732
9732
  switch (r.length) {
9733
9733
  case 2:
9734
9734
  b0(r, 0, !0);
@@ -9747,7 +9747,7 @@ function vm(r) {
9747
9747
  throw new TypeError(`Bad input to isSubnormal: ${r}`);
9748
9748
  }
9749
9749
  }
9750
- const fd = me.SIMPLE_FLOAT << 5 | At.TWO, mm = me.SIMPLE_FLOAT << 5 | At.FOUR, wm = me.SIMPLE_FLOAT << 5 | At.EIGHT, bm = me.SIMPLE_FLOAT << 5 | Mn.TRUE, xm = me.SIMPLE_FLOAT << 5 | Mn.FALSE, Am = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, Sm = me.SIMPLE_FLOAT << 5 | Mn.NULL, _m = new TextEncoder(), Em = { ...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 }, Im = { ...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, wm = me.SIMPLE_FLOAT << 5 | At.FOUR, bm = me.SIMPLE_FLOAT << 5 | At.EIGHT, xm = me.SIMPLE_FLOAT << 5 | Mn.TRUE, Am = me.SIMPLE_FLOAT << 5 | Mn.FALSE, Sm = me.SIMPLE_FLOAT << 5 | Mn.UNDEFINED, _m = me.SIMPLE_FLOAT << 5 | Mn.NULL, Em = new TextEncoder(), Im = { ...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 }, km = { ...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 = ym(r);
9760
- n === null ? (e.writeUint8(mm), e.writeFloat32(r)) : (e.writeUint8(fd), e.writeUint16(n));
9761
- } else e.writeUint8(wm), e.writeFloat64(r);
9759
+ const n = gm(r);
9760
+ n === null ? (e.writeUint8(wm), e.writeFloat32(r)) : (e.writeUint8(fd), e.writeUint16(n));
9761
+ } else e.writeUint8(bm), e.writeFloat64(r);
9762
9762
  }
9763
9763
  function Gr(r, e, t) {
9764
9764
  const [n, i] = A0(r);
@@ -9787,34 +9787,34 @@ function S0(r, e, t) {
9787
9787
  const u = m0(c + o);
9788
9788
  Gr(u.length, e, me.BYTE_STRING), e.write(u);
9789
9789
  }
9790
- function km(r, e, t) {
9791
- t.flushToZero && (r = gm(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Qc(0, e, t) : Gr(0, e) : Qc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? Gr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? S0(BigInt(r), e, t) : Qc(r, e, t);
9792
- }
9793
9790
  function Cm(r, e, t) {
9794
- const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = _m.encode(n);
9795
- Gr(i.length, e, me.UTF8_STRING), e.write(i);
9791
+ t.flushToZero && (r = vm(r)), Object.is(r, -0) ? t.simplifyNegativeZero ? t.avoidInts ? Qc(0, e, t) : Gr(0, e) : Qc(r, e, t) : !t.avoidInts && Number.isSafeInteger(r) ? Gr(r, e) : t.reduceUnsafeNumbers && Math.floor(r) === r && r >= Sa.MIN && r <= Sa.MAX ? S0(BigInt(r), e, t) : Qc(r, e, t);
9796
9792
  }
9797
9793
  function Bm(r, e, t) {
9794
+ const n = t.stringNormalization ? r.normalize(t.stringNormalization) : r, i = Em.encode(n);
9795
+ Gr(i.length, e, me.UTF8_STRING), e.write(i);
9796
+ }
9797
+ function Om(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 Om(r, e) {
9802
+ function Tm(r, e) {
9803
9803
  const t = r;
9804
9804
  Gr(t.length, e, me.BYTE_STRING), e.write(t);
9805
9805
  }
9806
- const Eu = /* @__PURE__ */ new Map([[Array, Bm], [Uint8Array, Om]]);
9806
+ const Eu = /* @__PURE__ */ new Map([[Array, Om], [Uint8Array, Tm]]);
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 = um(r);
9812
+ const s = fm(r);
9813
9813
  s && !i.ignoreOriginalEncoding ? n.write(s) : Gr(e, n, t);
9814
9814
  }
9815
- function Tm(r, e, t) {
9815
+ function Nm(r, e, t) {
9816
9816
  if (r === null) {
9817
- e.writeUint8(Sm);
9817
+ e.writeUint8(_m);
9818
9818
  return;
9819
9819
  }
9820
9820
  if (!t.ignoreOriginalEncoding && Ir.ENCODED in r) {
@@ -9843,23 +9843,23 @@ function Tm(r, e, t) {
9843
9843
  function ii(r, e, t) {
9844
9844
  switch (typeof r) {
9845
9845
  case "number":
9846
- km(r, e, t);
9846
+ Cm(r, e, t);
9847
9847
  break;
9848
9848
  case "bigint":
9849
9849
  S0(r, e, t);
9850
9850
  break;
9851
9851
  case "string":
9852
- Cm(r, e, t);
9852
+ Bm(r, e, t);
9853
9853
  break;
9854
9854
  case "boolean":
9855
- e.writeUint8(r ? bm : xm);
9855
+ e.writeUint8(r ? xm : Am);
9856
9856
  break;
9857
9857
  case "undefined":
9858
9858
  if (t.rejectUndefined) throw new Error("Attempt to encode unwanted undefined.");
9859
- e.writeUint8(Am);
9859
+ e.writeUint8(Sm);
9860
9860
  break;
9861
9861
  case "object":
9862
- Tm(r, e, t);
9862
+ Nm(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 = { ...Em };
9872
- e.dcbor ? Object.assign(t, Im) : e.cde && Object.assign(t, x0), Object.assign(t, e);
9871
+ const t = { ...Im };
9872
+ e.dcbor ? Object.assign(t, km) : 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,7 +9898,7 @@ const Tn = class Tn {
9898
9898
  };
9899
9899
  Ke(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 Nm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9901
+ const Pm = new TextDecoder("utf8", { fatal: !0, ignoreBOM: !0 });
9902
9902
  var Ar, $r, qt, Cr, Wt, ei, Iu, ks;
9903
9903
  const La = class La {
9904
9904
  constructor(e, t) {
@@ -9981,7 +9981,7 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), Cr = new WeakMap(),
9981
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* Ve(this, Wt, ks).call(this, i, e, t) : yield [i, s, Nm.decode(Ve(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, Pm.decode(Ve(this, Wt, Iu).call(this, o)), t, o];
9985
9985
  break;
9986
9986
  case me.ARRAY:
9987
9987
  if (o === 1 / 0) yield* Ve(this, Wt, ks).call(this, i, e, t, !1);
@@ -10027,7 +10027,7 @@ Ar = new WeakMap(), $r = new WeakMap(), qt = new WeakMap(), Cr = new WeakMap(),
10027
10027
  }
10028
10028
  }, Ke(La, "defaultOptions", { maxDepth: 1024, encoding: "hex", requirePreferred: !1 });
10029
10029
  let Ys = La;
10030
- const Pm = /* @__PURE__ */ new Map([[At.ZERO, 1], [At.ONE, 2], [At.TWO, 3], [At.FOUR, 5], [At.EIGHT, 9]]), jm = new Uint8Array(0);
10030
+ const jm = /* @__PURE__ */ new Map([[At.ZERO, 1], [At.ONE, 2], [At.TWO, 3], [At.FOUR, 5], [At.EIGHT, 9]]), Rm = 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 && vm(i.toHere(u + 1)), n.rejectLongFloats) {
10071
+ if (n.rejectSubnormals && mm(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 < Pm.get(o)) throw new Error(`Number should have been encoded shorter: ${c}`);
10074
+ if (h.length < jm.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 {
@@ -10139,7 +10139,7 @@ let Nn = (tn = class {
10139
10139
  break;
10140
10140
  }
10141
10141
  case me.BYTE_STRING:
10142
- return fm(this.children);
10142
+ return hm(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,7 +10158,7 @@ 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], jm];
10161
+ else for (let i = 0; i < t; i += 2) n[i >> 1] = [e[i], e[i + 1], Rm];
10162
10162
  return n;
10163
10163
  }, Ke(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 }), Ke(tn, "cdeDecodeOptions", { cde: !0, rejectStreaming: !0, requirePreferred: !0, sortKeys: w0 }), Ke(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;
@@ -10256,9 +10256,9 @@ function k0(r, e, t) {
10256
10256
  }
10257
10257
  return n;
10258
10258
  }
10259
- const Rm = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10260
- function Um(r, e) {
10261
- const t = { ...Rm, ...e, ParentType: ku, saveOriginal: !0 }, n = new Ys(r, t);
10259
+ const Um = { ...Nn.defaultDecodeOptions, initialDepth: 0, noPrefixHex: !1, minCol: 0 };
10260
+ function Dm(r, e) {
10261
+ const t = { ...Um, ...e, ParentType: ku, saveOriginal: !0 }, n = new Ys(r, t);
10262
10262
  let i, s;
10263
10263
  for (const c of n) {
10264
10264
  if (s = Nn.create(c, i, t, n), c[2] === Ir.BREAK) if (i != null && i.isStreaming) i.left = 1;
@@ -10276,7 +10276,7 @@ function Um(r, e) {
10276
10276
  `;
10277
10277
  return o += k0(s, t), o;
10278
10278
  }
10279
- const hd = !pm();
10279
+ const hd = !ym();
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 = Um(r.contents, n);
10336
+ const u = Dm(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), dm(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), pm(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]`);
@@ -10501,7 +10501,7 @@ const re = lt.arrayToEnum([
10501
10501
  "invalid_intersection_types",
10502
10502
  "not_multiple_of",
10503
10503
  "not_finite"
10504
- ]), Dm = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10504
+ ]), $m = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
10505
10505
  class Er extends Error {
10506
10506
  constructor(e) {
10507
10507
  super(), this.issues = [], this.addIssue = (n) => {
@@ -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 Mm(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
- }, Mm = [];
10648
+ }, Vm = [];
10649
10649
  function X(r, e) {
10650
10650
  const t = Ba(), n = Oa({
10651
10651
  issueData: e,
@@ -10936,14 +10936,14 @@ class Ye {
10936
10936
  return this.safeParse(null).success;
10937
10937
  }
10938
10938
  }
10939
- const Vm = /^c[^\s-]{8,}$/i, Lm = /^[0-9a-z]+$/, Hm = /^[0-9A-HJKMNP-TV-Z]{26}$/, Fm = /^[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, Gm = /^[a-z0-9_-]{21}$/i, zm = /^[-+]?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)?)??$/, Km = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, qm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10939
+ const Lm = /^c[^\s-]{8,}$/i, Hm = /^[0-9a-z]+$/, Fm = /^[0-9A-HJKMNP-TV-Z]{26}$/, Gm = /^[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, zm = /^[a-z0-9_-]{21}$/i, Km = /^[-+]?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)?)??$/, qm = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Zm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
10940
10940
  let nl;
10941
- const Zm = /^(?:(?: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])$/, Wm = /^(([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})))$/, Ym = /^([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])))", Jm = new RegExp(`^${N0}$`);
10941
+ const Wm = /^(?:(?: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])$/, Ym = /^(([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})))$/, Jm = /^([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])))", Xm = 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 Xm(r) {
10946
+ function Qm(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 Qm(r, e) {
10955
- return !!((e === "v4" || !e) && Zm.test(r) || (e === "v6" || !e) && Wm.test(r));
10954
+ function e1(r, e) {
10955
+ return !!((e === "v4" || !e) && Wm.test(r) || (e === "v6" || !e) && Ym.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
- Km.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11006
+ qm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11007
11007
  validation: "email",
11008
11008
  code: G.invalid_string,
11009
11009
  message: s.message
11010
11010
  }), n.dirty());
11011
11011
  else if (s.kind === "emoji")
11012
- nl || (nl = new RegExp(qm, "u")), nl.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11012
+ nl || (nl = new RegExp(Zm, "u")), nl.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11013
11013
  validation: "emoji",
11014
11014
  code: G.invalid_string,
11015
11015
  message: s.message
11016
11016
  }), n.dirty());
11017
11017
  else if (s.kind === "uuid")
11018
- Fm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11018
+ Gm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11019
11019
  validation: "uuid",
11020
11020
  code: G.invalid_string,
11021
11021
  message: s.message
11022
11022
  }), n.dirty());
11023
11023
  else if (s.kind === "nanoid")
11024
- Gm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11024
+ zm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11025
11025
  validation: "nanoid",
11026
11026
  code: G.invalid_string,
11027
11027
  message: s.message
11028
11028
  }), n.dirty());
11029
11029
  else if (s.kind === "cuid")
11030
- Vm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11030
+ Lm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11031
11031
  validation: "cuid",
11032
11032
  code: G.invalid_string,
11033
11033
  message: s.message
11034
11034
  }), n.dirty());
11035
11035
  else if (s.kind === "cuid2")
11036
- Lm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11036
+ Hm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11037
11037
  validation: "cuid2",
11038
11038
  code: G.invalid_string,
11039
11039
  message: s.message
11040
11040
  }), n.dirty());
11041
11041
  else if (s.kind === "ulid")
11042
- Hm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11042
+ Fm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11043
11043
  validation: "ulid",
11044
11044
  code: G.invalid_string,
11045
11045
  message: s.message
@@ -11074,23 +11074,23 @@ class Mr extends Ye {
11074
11074
  code: G.invalid_string,
11075
11075
  validation: "datetime",
11076
11076
  message: s.message
11077
- }), n.dirty()) : s.kind === "date" ? Jm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11077
+ }), n.dirty()) : s.kind === "date" ? Xm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11078
11078
  code: G.invalid_string,
11079
11079
  validation: "date",
11080
11080
  message: s.message
11081
- }), n.dirty()) : s.kind === "time" ? Xm(s).test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11081
+ }), n.dirty()) : s.kind === "time" ? Qm(s).test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11082
11082
  code: G.invalid_string,
11083
11083
  validation: "time",
11084
11084
  message: s.message
11085
- }), n.dirty()) : s.kind === "duration" ? zm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11085
+ }), n.dirty()) : s.kind === "duration" ? Km.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11086
11086
  validation: "duration",
11087
11087
  code: G.invalid_string,
11088
11088
  message: s.message
11089
- }), n.dirty()) : s.kind === "ip" ? Qm(e.data, s.version) || (i = this._getOrReturnCtx(e, i), X(i, {
11089
+ }), n.dirty()) : s.kind === "ip" ? e1(e.data, s.version) || (i = this._getOrReturnCtx(e, i), X(i, {
11090
11090
  validation: "ip",
11091
11091
  code: G.invalid_string,
11092
11092
  message: s.message
11093
- }), n.dirty()) : s.kind === "base64" ? Ym.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11093
+ }), n.dirty()) : s.kind === "base64" ? Jm.test(e.data) || (i = this._getOrReturnCtx(e, i), X(i, {
11094
11094
  validation: "base64",
11095
11095
  code: G.invalid_string,
11096
11096
  message: s.message
@@ -11312,7 +11312,7 @@ Mr.create = (r) => {
11312
11312
  ...qe(r)
11313
11313
  });
11314
11314
  };
11315
- function e1(r, e) {
11315
+ function t1(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" ? e1(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), X(n, {
11354
+ }), i.dirty()) : s.kind === "multipleOf" ? t1(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), X(n, {
11355
11355
  code: G.not_multiple_of,
11356
11356
  multipleOf: s.value,
11357
11357
  message: s.message
@@ -13052,7 +13052,7 @@ Ra.create = (r) => new Ra({
13052
13052
  typeName: Ce.ZodNaN,
13053
13053
  ...qe(r)
13054
13054
  });
13055
- const t1 = Symbol("zod_brand");
13055
+ const r1 = 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 r1 = {
13132
+ const n1 = {
13133
13133
  object: Ot.lazycreate
13134
13134
  };
13135
13135
  var Ce;
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
  })(Ce || (Ce = {}));
13139
- const n1 = (r, e = {
13139
+ const i1 = (r, e = {
13140
13140
  message: `Input not instance of ${r.name}`
13141
- }) => U0((t) => t instanceof r, e), D0 = Mr.create, $0 = Kn.create, i1 = Ra.create, s1 = qn.create, M0 = Qs.create, o1 = xi.create, a1 = Na.create, c1 = eo.create, l1 = to.create, u1 = Qi.create, f1 = ai.create, h1 = En.create, d1 = Pa.create, p1 = Lr.create, y1 = Ot.create, g1 = Ot.strictCreate, v1 = ro.create, m1 = Uc.create, w1 = no.create, b1 = un.create, x1 = io.create, A1 = ja.create, S1 = Ai.create, _1 = $i.create, E1 = so.create, I1 = oo.create, k1 = Zn.create, C1 = ao.create, B1 = es.create, md = zr.create, O1 = on.create, T1 = Wn.create, N1 = zr.createWithPreprocess, P1 = ko.create, j1 = () => D0().optional(), R1 = () => $0().optional(), U1 = () => M0().optional(), D1 = {
13141
+ }) => U0((t) => t instanceof r, e), D0 = Mr.create, $0 = Kn.create, s1 = Ra.create, o1 = qn.create, M0 = Qs.create, a1 = xi.create, c1 = Na.create, l1 = eo.create, u1 = to.create, f1 = Qi.create, h1 = ai.create, d1 = En.create, p1 = Pa.create, y1 = Lr.create, g1 = Ot.create, v1 = Ot.strictCreate, m1 = ro.create, w1 = Uc.create, b1 = no.create, x1 = un.create, A1 = io.create, S1 = ja.create, _1 = Ai.create, E1 = $i.create, I1 = so.create, k1 = oo.create, C1 = Zn.create, B1 = ao.create, O1 = es.create, md = zr.create, T1 = on.create, N1 = Wn.create, P1 = zr.createWithPreprocess, j1 = ko.create, R1 = () => D0().optional(), U1 = () => $0().optional(), D1 = () => M0().optional(), $1 = {
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 n1 = (r, e = {
13147
13147
  }),
13148
13148
  bigint: (r) => qn.create({ ...r, coerce: !0 }),
13149
13149
  date: (r) => xi.create({ ...r, coerce: !0 })
13150
- }, $1 = Be;
13150
+ }, M1 = Be;
13151
13151
  var Bt = /* @__PURE__ */ Object.freeze({
13152
13152
  __proto__: null,
13153
13153
  defaultErrorMap: Xi,
13154
- setErrorMap: $m,
13154
+ setErrorMap: Mm,
13155
13155
  getErrorMap: Ba,
13156
13156
  makeIssue: Oa,
13157
- EMPTY_PATH: Mm,
13157
+ EMPTY_PATH: Vm,
13158
13158
  addIssueToContext: X,
13159
13159
  ParseStatus: sr,
13160
13160
  INVALID: Be,
@@ -13208,66 +13208,66 @@ var Bt = /* @__PURE__ */ Object.freeze({
13208
13208
  ZodDefault: co,
13209
13209
  ZodCatch: lo,
13210
13210
  ZodNaN: Ra,
13211
- BRAND: t1,
13211
+ BRAND: r1,
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: r1,
13218
+ late: n1,
13219
13219
  get ZodFirstPartyTypeKind() {
13220
13220
  return Ce;
13221
13221
  },
13222
- coerce: D1,
13223
- any: u1,
13224
- array: p1,
13225
- bigint: s1,
13222
+ coerce: $1,
13223
+ any: f1,
13224
+ array: y1,
13225
+ bigint: o1,
13226
13226
  boolean: M0,
13227
- date: o1,
13228
- discriminatedUnion: m1,
13227
+ date: a1,
13228
+ discriminatedUnion: w1,
13229
13229
  effect: md,
13230
- enum: k1,
13231
- function: _1,
13232
- instanceof: n1,
13233
- intersection: w1,
13234
- lazy: E1,
13235
- literal: I1,
13236
- map: A1,
13237
- nan: i1,
13238
- nativeEnum: C1,
13239
- never: h1,
13240
- null: l1,
13241
- nullable: T1,
13230
+ enum: C1,
13231
+ function: E1,
13232
+ instanceof: i1,
13233
+ intersection: b1,
13234
+ lazy: I1,
13235
+ literal: k1,
13236
+ map: S1,
13237
+ nan: s1,
13238
+ nativeEnum: B1,
13239
+ never: d1,
13240
+ null: u1,
13241
+ nullable: N1,
13242
13242
  number: $0,
13243
- object: y1,
13244
- oboolean: U1,
13245
- onumber: R1,
13246
- optional: O1,
13247
- ostring: j1,
13248
- pipeline: P1,
13249
- preprocess: N1,
13250
- promise: B1,
13251
- record: x1,
13252
- set: S1,
13253
- strictObject: g1,
13243
+ object: g1,
13244
+ oboolean: D1,
13245
+ onumber: U1,
13246
+ optional: T1,
13247
+ ostring: R1,
13248
+ pipeline: j1,
13249
+ preprocess: P1,
13250
+ promise: O1,
13251
+ record: A1,
13252
+ set: _1,
13253
+ strictObject: v1,
13254
13254
  string: D0,
13255
- symbol: a1,
13255
+ symbol: c1,
13256
13256
  transformer: md,
13257
- tuple: b1,
13258
- undefined: c1,
13259
- union: v1,
13260
- unknown: f1,
13261
- void: d1,
13262
- NEVER: $1,
13257
+ tuple: x1,
13258
+ undefined: l1,
13259
+ union: m1,
13260
+ unknown: h1,
13261
+ void: p1,
13262
+ NEVER: M1,
13263
13263
  ZodIssueCode: G,
13264
- quotelessJson: Dm,
13264
+ quotelessJson: $m,
13265
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 M1 = Bt.object({
13270
+ const V1 = 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 M1 = 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
- }), V1 = Bt.object({
13280
+ }), L1 = 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 L1(r) {
13286
+ async function H1(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 V1.parse({
13291
+ return L1.parse({
13292
13292
  protected: n,
13293
13293
  payload: i,
13294
13294
  signature: s
@@ -13297,15 +13297,15 @@ async function L1(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 H1(r) {
13300
+ async function F1(r) {
13301
13301
  try {
13302
13302
  const e = Ca(r);
13303
- return M1.parse(e);
13303
+ return V1.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 F1(r, e) {
13308
+ function G1(r, e) {
13309
13309
  const t = [
13310
13310
  "Signature1",
13311
13311
  // Context string
@@ -13318,10 +13318,10 @@ function F1(r, e) {
13318
13318
  ];
13319
13319
  return Rc(t);
13320
13320
  }
13321
- async function G1(r, e) {
13321
+ async function z1(r, e) {
13322
13322
  try {
13323
13323
  console.log("SIGNATURE:"), console.log(_r(r.signature));
13324
- const t = F1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13324
+ const t = G1(r.protected, r.payload), n = await crypto.subtle.digest("SHA-384", t);
13325
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
  {
@@ -13338,7 +13338,7 @@ async function G1(r, e) {
13338
13338
  }
13339
13339
  async function Si(r, e, t) {
13340
13340
  try {
13341
- const n = await L1(r), i = await H1(n.payload);
13341
+ const n = await H1(r), i = await F1(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);
@@ -13351,7 +13351,7 @@ async function Si(r, e, t) {
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 lm({
13354
+ const h = new wi(i.certificate), b = await new um({
13355
13355
  certificates: c
13356
13356
  }).build(h);
13357
13357
  console.log("Chain items:", b);
@@ -13366,7 +13366,7 @@ async function Si(r, e, t) {
13366
13366
  throw new Error("Certificate chain length does not match length of cabundle.");
13367
13367
  const m = h.publicKey;
13368
13368
  console.log("PUBLIC KEY:"), console.log(_r(new Uint8Array(m.rawData)));
13369
- const A = await m.export(), k = await G1(n, A);
13369
+ const A = await m.export(), k = await z1(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 z1 = Bt.object({
13377
+ const K1 = Bt.object({
13378
13378
  public_key: Bt.nullable(Bt.instanceof(Uint8Array))
13379
13379
  });
13380
- async function K1(r) {
13380
+ async function q1(r) {
13381
13381
  const e = Rs(r), n = Ca(e)[2], i = Ca(n);
13382
- return await z1.parse(i);
13382
+ return await K1.parse(i);
13383
13383
  }
13384
- async function q1(r, e) {
13384
+ async function Z1(r, e) {
13385
13385
  try {
13386
- const t = await gw(r, e), n = e || lw();
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 K1(t)) : await Si(t, Ua, r);
13386
+ const t = await vw(r, e), n = e || uw();
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 q1(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 Z1(r) {
13392
+ function W1(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 W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13396
+ const Y1 = {}, J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13397
13397
  __proto__: null,
13398
- default: W1
13399
- }, Symbol.toStringTag, { value: "Module" })), J1 = /* @__PURE__ */ pg(Y1);
13398
+ default: Y1
13399
+ }, Symbol.toStringTag, { value: "Module" })), X1 = /* @__PURE__ */ yg(J1);
13400
13400
  (function(r) {
13401
13401
  (function(e) {
13402
13402
  var t = function(l) {
@@ -13423,12 +13423,12 @@ const W1 = {}, Y1 = /* @__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, z = 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, Fe = 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, Se = S, te = E, de = R, ve = z, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = Fe, Ie = Me, Ge = Pe, Ze = 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, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, be = 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, Fe = 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, Se = S, te = E, de = R, ve = z, Y = be, B = J, O = ft, V = oe, j = Oe, U = Ne, L = Fe, Ie = Me, Ge = Pe, Ze = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13427
13427
  w = he + Ie | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, Ie ^= w << 13 | w >>> 19, w = Ie + V | 0, he ^= w << 18 | w >>> 14, w = Y + Se | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Ge ^= w << 9 | w >>> 23, w = Ge + j | 0, Se ^= w << 13 | w >>> 19, w = Se + Ge | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, Ze ^= w << 7 | w >>> 25, w = Ze + U | 0, te ^= w << 9 | w >>> 23, w = te + Ze | 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, Se ^= w << 7 | w >>> 25, w = Se + he | 0, te ^= w << 9 | w >>> 23, w = te + Se | 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 + Ze | 0, Ie ^= w << 7 | w >>> 25, w = Ie + ze | 0, Ge ^= w << 9 | w >>> 23, w = Ge + Ie | 0, Ze ^= w << 13 | w >>> 19, w = Ze + Ge | 0, ze ^= w << 18 | w >>> 14;
13428
- he = he + g | 0, Se = Se + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + z | 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 + Fe | 0, Ie = Ie + Me | 0, Ge = Ge + Pe | 0, Ze = Ze + 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] = Se >>> 0 & 255, l[5] = Se >>> 8 & 255, l[6] = Se >>> 16 & 255, l[7] = Se >>> 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] = Ie >>> 0 & 255, l[49] = Ie >>> 8 & 255, l[50] = Ie >>> 16 & 255, l[51] = Ie >>> 24 & 255, l[52] = Ge >>> 0 & 255, l[53] = Ge >>> 8 & 255, l[54] = Ge >>> 16 & 255, l[55] = Ge >>> 24 & 255, l[56] = Ze >>> 0 & 255, l[57] = Ze >>> 8 & 255, l[58] = Ze >>> 16 & 255, l[59] = Ze >>> 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, Se = Se + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + z | 0, Y = Y + be | 0, B = B + J | 0, O = O + ft | 0, V = V + oe | 0, j = j + Oe | 0, U = U + Ne | 0, L = L + Fe | 0, Ie = Ie + Me | 0, Ge = Ge + Pe | 0, Ze = Ze + 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] = Se >>> 0 & 255, l[5] = Se >>> 8 & 255, l[6] = Se >>> 16 & 255, l[7] = Se >>> 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] = Ie >>> 0 & 255, l[49] = Ie >>> 8 & 255, l[50] = Ie >>> 16 & 255, l[51] = Ie >>> 24 & 255, l[52] = Ge >>> 0 & 255, l[53] = Ge >>> 8 & 255, l[54] = Ge >>> 16 & 255, l[55] = Ge >>> 24 & 255, l[56] = Ze >>> 0 & 255, l[57] = Ze >>> 8 & 255, l[58] = Ze >>> 16 & 255, l[59] = Ze >>> 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, z = 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, Fe = 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, Se = S, te = E, de = R, ve = z, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = Fe, Ie = Me, Ge = Pe, Ze = 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, z = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, be = 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, Fe = 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, Se = S, te = E, de = R, ve = z, Y = be, B = J, O = ft, V = oe, j = Oe, U = Ne, L = Fe, Ie = Me, Ge = Pe, Ze = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
13432
13432
  w = he + Ie | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, Ie ^= w << 13 | w >>> 19, w = Ie + V | 0, he ^= w << 18 | w >>> 14, w = Y + Se | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Ge ^= w << 9 | w >>> 23, w = Ge + j | 0, Se ^= w << 13 | w >>> 19, w = Se + Ge | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, Ze ^= w << 7 | w >>> 25, w = Ze + U | 0, te ^= w << 9 | w >>> 23, w = te + Ze | 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, Se ^= w << 7 | w >>> 25, w = Se + he | 0, te ^= w << 9 | w >>> 23, w = te + Se | 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 + Ze | 0, Ie ^= w << 7 | w >>> 25, w = Ie + ze | 0, Ge ^= w << 9 | w >>> 23, w = Ge + Ie | 0, Ze ^= w << 13 | w >>> 19, w = Ze + Ge | 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
  }
@@ -13440,13 +13440,13 @@ const W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13440
13440
  }
13441
13441
  var De = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
13442
13442
  function Te(l, p, d, a, g, S, E) {
13443
- var R = new Uint8Array(16), z = new Uint8Array(64), we, J;
13443
+ var R = new Uint8Array(16), z = new Uint8Array(64), be, J;
13444
13444
  for (J = 0; J < 16; J++) R[J] = 0;
13445
13445
  for (J = 0; J < 8; J++) R[J] = S[J];
13446
13446
  for (; g >= 64; ) {
13447
13447
  for (pe(z, R, E, De), J = 0; J < 64; J++) l[p + J] = d[a + J] ^ z[J];
13448
- for (we = 1, J = 8; J < 16; J++)
13449
- we = we + (R[J] & 255) | 0, R[J] = we & 255, we >>>= 8;
13448
+ for (be = 1, J = 8; J < 16; J++)
13449
+ be = be + (R[J] & 255) | 0, R[J] = be & 255, be >>>= 8;
13450
13450
  g -= 64, p += 64, a += 64;
13451
13451
  }
13452
13452
  if (g > 0)
@@ -13476,7 +13476,7 @@ const W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13476
13476
  function pt(l, p, d, a, g, S, E) {
13477
13477
  var R = new Uint8Array(32);
13478
13478
  tt(R, S, E, De);
13479
- for (var z = new Uint8Array(8), we = 0; we < 8; we++) z[we] = S[we + 16];
13479
+ for (var z = new Uint8Array(8), be = 0; be < 8; be++) z[be] = S[be + 16];
13480
13480
  return Te(l, p, d, a, g, z, R);
13481
13481
  }
13482
13482
  var ue = function(l) {
@@ -13485,8 +13485,8 @@ const W1 = {}, Y1 = /* @__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, z = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (R >>> 8 | z << 8) & 8191, this.r[9] = z >>> 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, z, we, J, ft, oe, Oe, Ne, Fe, Me, Pe, Ue, je, he, Se, 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], Ie = this.h[9], Ge = this.r[0], Ze = 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, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 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, Ie += ft >>> 5 | a, oe = 0, Oe = oe, Oe += de * Ge, 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 += Ie * (5 * Ze), oe += Oe >>> 13, Oe &= 8191, Ne = oe, Ne += de * Ze, Ne += ve * Ge, 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 += Ie * (5 * ze), oe += Ne >>> 13, Ne &= 8191, Fe = oe, Fe += de * ze, Fe += ve * Ze, Fe += Y * Ge, Fe += B * (5 * ct), Fe += O * (5 * at), oe = Fe >>> 13, Fe &= 8191, Fe += V * (5 * We), Fe += j * (5 * dt), Fe += U * (5 * ht), Fe += L * (5 * Xe), Fe += Ie * (5 * w), oe += Fe >>> 13, Fe &= 8191, Me = oe, Me += de * w, Me += ve * ze, Me += Y * Ze, Me += B * Ge, 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 += Ie * (5 * Xe), oe += Me >>> 13, Me &= 8191, Pe = oe, Pe += de * Xe, Pe += ve * w, Pe += Y * ze, Pe += B * Ze, Pe += O * Ge, oe = Pe >>> 13, Pe &= 8191, Pe += V * (5 * ct), Pe += j * (5 * at), Pe += U * (5 * We), Pe += L * (5 * dt), Pe += Ie * (5 * ht), oe += Pe >>> 13, Pe &= 8191, Ue = oe, Ue += de * ht, Ue += ve * Xe, Ue += Y * w, Ue += B * ze, Ue += O * Ze, oe = Ue >>> 13, Ue &= 8191, Ue += V * Ge, Ue += j * (5 * ct), Ue += U * (5 * at), Ue += L * (5 * We), Ue += Ie * (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 * Ze, je += j * Ge, je += U * (5 * ct), je += L * (5 * at), je += Ie * (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 * Ze, he += U * Ge, he += L * (5 * ct), he += Ie * (5 * at), oe += he >>> 13, he &= 8191, Se = oe, Se += de * at, Se += ve * We, Se += Y * dt, Se += B * ht, Se += O * Xe, oe = Se >>> 13, Se &= 8191, Se += V * w, Se += j * ze, Se += U * Ze, Se += L * Ge, Se += Ie * (5 * ct), oe += Se >>> 13, Se &= 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 * Ze, te += Ie * Ge, 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 = Fe, B = Me, O = Pe, V = Ue, j = je, U = he, L = Se, Ie = te, p += 16, d -= 16;
13488
+ for (var a = this.fin ? 0 : 2048, g, S, E, R, z, be, J, ft, oe, Oe, Ne, Fe, Me, Pe, Ue, je, he, Se, 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], Ie = this.h[9], Ge = this.r[0], Ze = 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, z = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | z << 12) & 8191, V += z >>> 1 & 8191, be = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (z >>> 14 | be << 2) & 8191, J = l[p + 12] & 255 | (l[p + 13] & 255) << 8, U += (be >>> 11 | J << 5) & 8191, ft = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (J >>> 8 | ft << 8) & 8191, Ie += ft >>> 5 | a, oe = 0, Oe = oe, Oe += de * Ge, 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 += Ie * (5 * Ze), oe += Oe >>> 13, Oe &= 8191, Ne = oe, Ne += de * Ze, Ne += ve * Ge, 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 += Ie * (5 * ze), oe += Ne >>> 13, Ne &= 8191, Fe = oe, Fe += de * ze, Fe += ve * Ze, Fe += Y * Ge, Fe += B * (5 * ct), Fe += O * (5 * at), oe = Fe >>> 13, Fe &= 8191, Fe += V * (5 * We), Fe += j * (5 * dt), Fe += U * (5 * ht), Fe += L * (5 * Xe), Fe += Ie * (5 * w), oe += Fe >>> 13, Fe &= 8191, Me = oe, Me += de * w, Me += ve * ze, Me += Y * Ze, Me += B * Ge, 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 += Ie * (5 * Xe), oe += Me >>> 13, Me &= 8191, Pe = oe, Pe += de * Xe, Pe += ve * w, Pe += Y * ze, Pe += B * Ze, Pe += O * Ge, oe = Pe >>> 13, Pe &= 8191, Pe += V * (5 * ct), Pe += j * (5 * at), Pe += U * (5 * We), Pe += L * (5 * dt), Pe += Ie * (5 * ht), oe += Pe >>> 13, Pe &= 8191, Ue = oe, Ue += de * ht, Ue += ve * Xe, Ue += Y * w, Ue += B * ze, Ue += O * Ze, oe = Ue >>> 13, Ue &= 8191, Ue += V * Ge, Ue += j * (5 * ct), Ue += U * (5 * at), Ue += L * (5 * We), Ue += Ie * (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 * Ze, je += j * Ge, je += U * (5 * ct), je += L * (5 * at), je += Ie * (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 * Ze, he += U * Ge, he += L * (5 * ct), he += Ie * (5 * at), oe += he >>> 13, he &= 8191, Se = oe, Se += de * at, Se += ve * We, Se += Y * dt, Se += B * ht, Se += O * Xe, oe = Se >>> 13, Se &= 8191, Se += V * w, Se += j * ze, Se += U * Ze, Se += L * Ge, Se += Ie * (5 * ct), oe += Se >>> 13, Se &= 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 * Ze, te += Ie * Ge, 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 = Fe, B = Me, O = Pe, V = Ue, j = je, U = he, L = Se, Ie = 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] = Ie;
13491
13491
  }, ue.prototype.finish = function(l, p) {
13492
13492
  var d = new Uint16Array(10), a, g, S, E;
@@ -13583,8 +13583,8 @@ const W1 = {}, Y1 = /* @__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, z = 0, we = 0, J = 0, ft = 0, oe = 0, Oe = 0, Ne = 0, Fe = 0, Me = 0, Pe = 0, Ue = 0, je = 0, he = 0, Se = 0, te = 0, de = 0, ve = 0, Y = 0, B = 0, O = 0, V = 0, j = 0, U = 0, L = 0, Ie = 0, Ge = 0, Ze = 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, z += a * dt, we += a * We, J += a * at, ft += a * ct, oe += a * $t, Oe += a * xt, Ne += a * Nt, Fe += 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, z += a * ht, we += a * dt, J += a * We, ft += a * at, oe += a * ct, Oe += a * $t, Ne += a * xt, Fe += a * Nt, Me += a * Pt, Pe += a * jt, Ue += a * Lt, je += a * Qt, he += a * er, Se += a * tr, a = p[2], R += a * w, z += a * Xe, we += a * ht, J += a * dt, ft += a * We, oe += a * at, Oe += a * ct, Ne += a * $t, Fe += a * xt, Me += a * Nt, Pe += a * Pt, Ue += a * jt, je += a * Lt, he += a * Qt, Se += a * er, te += a * tr, a = p[3], z += a * w, we += a * Xe, J += a * ht, ft += a * dt, oe += a * We, Oe += a * at, Ne += a * ct, Fe += a * $t, Me += a * xt, Pe += a * Nt, Ue += a * Pt, je += a * jt, he += a * Lt, Se += 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, Fe += a * ct, Me += a * $t, Pe += a * xt, Ue += a * Nt, je += a * Pt, he += a * jt, Se += 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, Fe += a * at, Me += a * ct, Pe += a * $t, Ue += a * xt, je += a * Nt, he += a * Pt, Se += 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, Fe += a * We, Me += a * at, Pe += a * ct, Ue += a * $t, je += a * xt, he += a * Nt, Se += 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, Fe += a * dt, Me += a * We, Pe += a * at, Ue += a * ct, je += a * $t, he += a * xt, Se += 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, Fe += a * ht, Me += a * dt, Pe += a * We, Ue += a * at, je += a * ct, he += a * $t, Se += 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, Fe += a * Xe, Me += a * ht, Pe += a * dt, Ue += a * We, je += a * at, he += a * ct, Se += 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], Fe += a * w, Me += a * Xe, Pe += a * ht, Ue += a * dt, je += a * We, he += a * at, Se += 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, Se += 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, Se += 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, Ie += a * tr, a = p[13], Ue += a * w, je += a * Xe, he += a * ht, Se += 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, Ie += a * er, Ge += a * tr, a = p[14], je += a * w, he += a * Xe, Se += 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, Ie += a * Qt, Ge += a * er, Ze += a * tr, a = p[15], he += a * w, Se += 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, Ie += a * Lt, Ge += a * Qt, Ze += a * er, ze += a * tr, S += 38 * Se, E += 38 * te, R += 38 * de, z += 38 * ve, we += 38 * Y, J += 38 * B, ft += 38 * O, oe += 38 * V, Oe += 38 * j, Ne += 38 * U, Fe += 38 * L, Me += 38 * Ie, Pe += 38 * Ge, Ue += 38 * Ze, 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 = z + g + 65535, g = Math.floor(a / 65536), z = 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 = Fe + g + 65535, g = Math.floor(a / 65536), Fe = 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 = z + g + 65535, g = Math.floor(a / 65536), z = 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 = Fe + g + 65535, g = Math.floor(a / 65536), Fe = 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] = z, l[4] = we, l[5] = J, l[6] = ft, l[7] = oe, l[8] = Oe, l[9] = Ne, l[10] = Fe, l[11] = Me, l[12] = Pe, l[13] = Ue, l[14] = je, l[15] = he;
13586
+ var a, g, S = 0, E = 0, R = 0, z = 0, be = 0, J = 0, ft = 0, oe = 0, Oe = 0, Ne = 0, Fe = 0, Me = 0, Pe = 0, Ue = 0, je = 0, he = 0, Se = 0, te = 0, de = 0, ve = 0, Y = 0, B = 0, O = 0, V = 0, j = 0, U = 0, L = 0, Ie = 0, Ge = 0, Ze = 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, z += a * dt, be += a * We, J += a * at, ft += a * ct, oe += a * $t, Oe += a * xt, Ne += a * Nt, Fe += 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, z += a * ht, be += a * dt, J += a * We, ft += a * at, oe += a * ct, Oe += a * $t, Ne += a * xt, Fe += a * Nt, Me += a * Pt, Pe += a * jt, Ue += a * Lt, je += a * Qt, he += a * er, Se += a * tr, a = p[2], R += a * w, z += a * Xe, be += a * ht, J += a * dt, ft += a * We, oe += a * at, Oe += a * ct, Ne += a * $t, Fe += a * xt, Me += a * Nt, Pe += a * Pt, Ue += a * jt, je += a * Lt, he += a * Qt, Se += a * er, te += a * tr, a = p[3], z += a * w, be += a * Xe, J += a * ht, ft += a * dt, oe += a * We, Oe += a * at, Ne += a * ct, Fe += a * $t, Me += a * xt, Pe += a * Nt, Ue += a * Pt, je += a * jt, he += a * Lt, Se += a * Qt, te += a * er, de += a * tr, a = p[4], be += a * w, J += a * Xe, ft += a * ht, oe += a * dt, Oe += a * We, Ne += a * at, Fe += a * ct, Me += a * $t, Pe += a * xt, Ue += a * Nt, je += a * Pt, he += a * jt, Se += 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, Fe += a * at, Me += a * ct, Pe += a * $t, Ue += a * xt, je += a * Nt, he += a * Pt, Se += 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, Fe += a * We, Me += a * at, Pe += a * ct, Ue += a * $t, je += a * xt, he += a * Nt, Se += 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, Fe += a * dt, Me += a * We, Pe += a * at, Ue += a * ct, je += a * $t, he += a * xt, Se += 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, Fe += a * ht, Me += a * dt, Pe += a * We, Ue += a * at, je += a * ct, he += a * $t, Se += 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, Fe += a * Xe, Me += a * ht, Pe += a * dt, Ue += a * We, je += a * at, he += a * ct, Se += 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], Fe += a * w, Me += a * Xe, Pe += a * ht, Ue += a * dt, je += a * We, he += a * at, Se += 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, Se += 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, Se += 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, Ie += a * tr, a = p[13], Ue += a * w, je += a * Xe, he += a * ht, Se += 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, Ie += a * er, Ge += a * tr, a = p[14], je += a * w, he += a * Xe, Se += 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, Ie += a * Qt, Ge += a * er, Ze += a * tr, a = p[15], he += a * w, Se += 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, Ie += a * Lt, Ge += a * Qt, Ze += a * er, ze += a * tr, S += 38 * Se, E += 38 * te, R += 38 * de, z += 38 * ve, be += 38 * Y, J += 38 * B, ft += 38 * O, oe += 38 * V, Oe += 38 * j, Ne += 38 * U, Fe += 38 * L, Me += 38 * Ie, Pe += 38 * Ge, Ue += 38 * Ze, 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 = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = be + g + 65535, g = Math.floor(a / 65536), be = 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 = Fe + g + 65535, g = Math.floor(a / 65536), Fe = 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 = z + g + 65535, g = Math.floor(a / 65536), z = a - g * 65536, a = be + g + 65535, g = Math.floor(a / 65536), be = 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 = Fe + g + 65535, g = Math.floor(a / 65536), Fe = 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] = z, l[4] = be, l[5] = J, l[6] = ft, l[7] = oe, l[8] = Oe, l[9] = Ne, l[10] = Fe, 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);
@@ -13604,14 +13604,14 @@ const W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13604
13604
  for (a = 0; a < 16; a++) l[a] = d[a];
13605
13605
  }
13606
13606
  function Ci(l, p, d) {
13607
- var a = new Uint8Array(32), g = new Float64Array(80), S, E, R = t(), z = t(), we = t(), J = t(), ft = t(), oe = t();
13607
+ var a = new Uint8Array(32), g = new Float64Array(80), S, E, R = t(), z = t(), be = t(), J = t(), ft = t(), oe = t();
13608
13608
  for (E = 0; E < 31; E++) a[E] = p[E];
13609
13609
  for (a[31] = p[31] & 127 | 64, a[0] &= 248, ae(g, d), E = 0; E < 16; E++)
13610
- z[E] = g[E], J[E] = R[E] = we[E] = 0;
13610
+ z[E] = g[E], J[E] = R[E] = be[E] = 0;
13611
13611
  for (R[0] = J[0] = 1, E = 254; E >= 0; --E)
13612
- S = a[E >>> 3] >>> (E & 7) & 1, ke(R, z, S), ke(we, J, S), ot(ft, R, we), wt(R, R, we), ot(we, z, J), wt(z, z, J), gt(J, ft), gt(oe, R), Q(R, we, R), Q(we, z, ft), ot(ft, R, we), wt(R, R, we), gt(z, R), wt(we, J, oe), Q(R, we, u), ot(R, R, J), Q(we, we, R), Q(R, J, oe), Q(J, z, g), gt(z, ft), ke(R, z, S), ke(we, J, S);
13612
+ S = a[E >>> 3] >>> (E & 7) & 1, ke(R, z, S), ke(be, J, S), ot(ft, R, be), wt(R, R, be), ot(be, z, J), wt(z, z, J), gt(J, ft), gt(oe, R), Q(R, be, R), Q(be, z, ft), ot(ft, R, be), wt(R, R, be), gt(z, R), wt(be, J, oe), Q(R, be, u), ot(R, R, J), Q(be, be, R), Q(R, J, oe), Q(J, z, g), gt(z, ft), ke(R, z, S), ke(be, J, S);
13613
13613
  for (E = 0; E < 16; E++)
13614
- g[E + 16] = R[E], g[E + 32] = we[E], g[E + 48] = z[E], g[E + 64] = J[E];
13614
+ g[E + 16] = R[E], g[E + 32] = be[E], g[E + 48] = z[E], g[E + 64] = J[E];
13615
13615
  var Oe = g.subarray(32), Ne = g.subarray(16);
13616
13616
  return Vt(Oe, Oe), Q(Ne, Ne, Oe), mt(l, Ne), 0;
13617
13617
  }
@@ -13797,11 +13797,11 @@ const W1 = {}, Y1 = /* @__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, z, we, J, ft, oe, Oe, Ne, Fe, Me, Pe, Ue, je, he, Se, te, de, ve, Y, B, O, V, j, U, L, Ie = l[0], Ge = l[1], Ze = 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, z, be, J, ft, oe, Oe, Ne, Fe, Me, Pe, Ue, je, he, Se, te, de, ve, Y, B, O, V, j, U, L, Ie = l[0], Ge = l[1], Ze = 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 = Ie, R = Ge, z = Ze, we = ze, J = w, ft = Xe, oe = ht, Oe = dt, Ne = We, Fe = at, Me = ct, Pe = $t, Ue = xt, je = Nt, he = Pt, Se = 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 = (Ie >>> 28 | We << 4) ^ (We >>> 2 | Ie << 30) ^ (We >>> 7 | Ie << 25), O = (We >>> 28 | Ie << 4) ^ (Ie >>> 2 | We << 30) ^ (Ie >>> 7 | We << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = Ie & Ge ^ Ie & Ze ^ Ge & Ze, 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, Se = 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, Ge = E, Ze = R, ze = z, w = we, Xe = J, ht = ft, dt = oe, Ie = Oe, at = Ne, ct = Fe, $t = Me, xt = Pe, Nt = Ue, Pt = je, jt = he, We = Se, ve % 16 === 15)
13804
+ if (E = Ie, R = Ge, z = Ze, be = ze, J = w, ft = Xe, oe = ht, Oe = dt, Ne = We, Fe = at, Me = ct, Pe = $t, Ue = xt, je = Nt, he = Pt, Se = 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 = (Ie >>> 28 | We << 4) ^ (We >>> 2 | Ie << 30) ^ (We >>> 7 | Ie << 25), O = (We >>> 28 | Ie << 4) ^ (Ie >>> 2 | We << 30) ^ (Ie >>> 7 | We << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = Ie & Ge ^ Ie & Ze ^ Ge & Ze, 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, Se = V & 65535 | j << 16, B = be, 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, be = U & 65535 | L << 16, Pe = V & 65535 | j << 16, Ge = E, Ze = R, ze = z, w = be, Xe = J, ht = ft, dt = oe, Ie = Oe, at = Ne, ct = Fe, $t = Me, xt = Pe, Nt = Ue, Pt = je, jt = he, We = Se, 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 = Ie, 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] = Ie = U & 65535 | L << 16, p[0] = We = V & 65535 | j << 16, B = Ge, 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] = Ge = U & 65535 | L << 16, p[1] = at = V & 65535 | j << 16, B = Ze, 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] = Ze = 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;
@@ -13815,8 +13815,8 @@ const W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13815
13815
  return 0;
13816
13816
  }
13817
13817
  function Xn(l, p) {
13818
- var d = t(), a = t(), g = t(), S = t(), E = t(), R = t(), z = t(), we = t(), J = t();
13819
- wt(d, l[1], l[0]), wt(J, p[1], p[0]), Q(d, d, J), ot(a, l[0], l[1]), ot(J, p[0], p[1]), Q(a, a, J), Q(g, l[3], p[3]), Q(g, g, v), Q(S, l[2], p[2]), ot(S, S, S), wt(E, a, d), wt(R, S, g), ot(z, S, g), ot(we, a, d), Q(l[0], E, R), Q(l[1], we, z), Q(l[2], z, R), Q(l[3], E, we);
13818
+ var d = t(), a = t(), g = t(), S = t(), E = t(), R = t(), z = t(), be = t(), J = t();
13819
+ wt(d, l[1], l[0]), wt(J, p[1], p[0]), Q(d, d, J), ot(a, l[0], l[1]), ot(J, p[0], p[1]), Q(a, a, J), Q(g, l[3], p[3]), Q(g, g, v), Q(S, l[2], p[2]), ot(S, S, S), wt(E, a, d), wt(R, S, g), ot(z, S, g), ot(be, a, d), Q(l[0], E, R), Q(l[1], be, z), Q(l[2], z, R), Q(l[3], E, be);
13820
13820
  }
13821
13821
  function Bi(l, p, d) {
13822
13822
  var a;
@@ -13862,18 +13862,18 @@ const W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
13862
13862
  bs(l, p);
13863
13863
  }
13864
13864
  function Bo(l, p, d, a) {
13865
- var g = new Uint8Array(64), S = new Uint8Array(64), E = new Uint8Array(64), R, z, we = new Float64Array(64), J = [t(), t(), t(), t()];
13865
+ var g = new Uint8Array(64), S = new Uint8Array(64), E = new Uint8Array(64), R, z, be = new Float64Array(64), J = [t(), t(), t(), t()];
13866
13866
  Zr(g, a, 32), g[0] &= 248, g[31] &= 127, g[31] |= 64;
13867
13867
  var ft = d + 64;
13868
13868
  for (R = 0; R < d; R++) l[64 + R] = p[R];
13869
13869
  for (R = 0; R < 32; R++) l[32 + R] = g[32 + R];
13870
13870
  for (Zr(E, l.subarray(32), d + 32), xs(E), Oi(J, E), vs(l, J), R = 32; R < 64; R++) l[R] = a[R];
13871
- for (Zr(S, l, d + 64), xs(S), R = 0; R < 64; R++) we[R] = 0;
13872
- for (R = 0; R < 32; R++) we[R] = E[R];
13871
+ for (Zr(S, l, d + 64), xs(S), R = 0; R < 64; R++) be[R] = 0;
13872
+ for (R = 0; R < 32; R++) be[R] = E[R];
13873
13873
  for (R = 0; R < 32; R++)
13874
13874
  for (z = 0; z < 32; z++)
13875
- we[R + z] += S[R] * g[z];
13876
- return bs(l.subarray(32), we), ft;
13875
+ be[R + z] += S[R] * g[z];
13876
+ return bs(l.subarray(32), be), ft;
13877
13877
  }
13878
13878
  function As(l, p) {
13879
13879
  var d = t(), a = t(), g = t(), S = t(), E = t(), R = t(), z = t();
@@ -13952,7 +13952,7 @@ const W1 = {}, Y1 = /* @__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 Yy(l, p) {
13955
+ function Jy(l, p) {
13956
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
  }
@@ -13988,7 +13988,7 @@ const W1 = {}, Y1 = /* @__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), Yy(l, p);
13991
+ xr(l, p), Jy(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) {
@@ -14058,7 +14058,7 @@ const W1 = {}, Y1 = /* @__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 Z1 < "u" && (l = J1, l && l.randomBytes && e.setPRNG(function(d, a) {
14061
+ } else typeof W1 < "u" && (l = X1, 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 W1 = {}, Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
14066
14066
  }();
14067
14067
  })(r.exports ? r.exports : self.nacl = self.nacl || {});
14068
14068
  })(V0);
14069
- var X1 = V0.exports;
14070
- const L0 = /* @__PURE__ */ dg(X1);
14071
- function Q1() {
14069
+ var Q1 = V0.exports;
14070
+ const L0 = /* @__PURE__ */ pg(Q1);
14071
+ function ew() {
14072
14072
  return L0.box.keyPair();
14073
14073
  }
14074
14074
  async function _i(r, e) {
@@ -14081,12 +14081,12 @@ 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 q1(i, e);
14084
+ const s = await Z1(i, e);
14085
14085
  if (s && s.public_key) {
14086
14086
  console.log("Attestation document verification succeeded");
14087
- const o = Q1();
14087
+ const o = ew();
14088
14088
  console.log("Generated client key pair");
14089
- const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await vw(
14089
+ const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: h } = await mw(
14090
14090
  _r(o.publicKey),
14091
14091
  i,
14092
14092
  e
@@ -14105,10 +14105,10 @@ async function _i(r, e) {
14105
14105
  }
14106
14106
  }
14107
14107
  let ut = "";
14108
- function ew(r) {
14108
+ function tw(r) {
14109
14109
  ut = r;
14110
14110
  }
14111
- async function tw(r, e) {
14111
+ async function rw(r, e) {
14112
14112
  return Tt(
14113
14113
  `${ut}/platform/login`,
14114
14114
  "POST",
@@ -14117,7 +14117,7 @@ async function tw(r, e) {
14117
14117
  "Failed to login"
14118
14118
  );
14119
14119
  }
14120
- async function rw(r, e, t, n) {
14120
+ async function nw(r, e, t, n) {
14121
14121
  return Tt(
14122
14122
  `${ut}/platform/register`,
14123
14123
  "POST",
@@ -14126,7 +14126,7 @@ async function rw(r, e, t, n) {
14126
14126
  "Failed to register"
14127
14127
  );
14128
14128
  }
14129
- async function nw(r) {
14129
+ async function iw(r) {
14130
14130
  return Tt(
14131
14131
  `${ut}/platform/logout`,
14132
14132
  "POST",
@@ -14135,7 +14135,7 @@ async function nw(r) {
14135
14135
  "Failed to logout"
14136
14136
  );
14137
14137
  }
14138
- async function iw() {
14138
+ async function sw() {
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 };
@@ -14153,113 +14153,113 @@ async function iw() {
14153
14153
  }
14154
14154
  }
14155
14155
  async function H0(r) {
14156
- return be(
14156
+ return we(
14157
14157
  `${ut}/platform/orgs`,
14158
14158
  "POST",
14159
14159
  { name: r }
14160
14160
  );
14161
14161
  }
14162
14162
  async function F0() {
14163
- return be(
14163
+ return we(
14164
14164
  `${ut}/platform/orgs`,
14165
14165
  "GET",
14166
14166
  void 0
14167
14167
  );
14168
14168
  }
14169
14169
  async function G0(r) {
14170
- return be(
14170
+ return we(
14171
14171
  `${ut}/platform/orgs/${r}`,
14172
14172
  "DELETE",
14173
14173
  void 0
14174
14174
  );
14175
14175
  }
14176
14176
  async function z0(r, e, t) {
14177
- return be(
14177
+ return we(
14178
14178
  `${ut}/platform/orgs/${r}/projects`,
14179
14179
  "POST",
14180
14180
  { name: e, description: t }
14181
14181
  );
14182
14182
  }
14183
14183
  async function K0(r) {
14184
- return be(
14184
+ return we(
14185
14185
  `${ut}/platform/orgs/${r}/projects`,
14186
14186
  "GET",
14187
14187
  void 0
14188
14188
  );
14189
14189
  }
14190
14190
  async function q0(r, e) {
14191
- return be(
14191
+ return we(
14192
14192
  `${ut}/platform/orgs/${r}/projects/${e}`,
14193
14193
  "GET",
14194
14194
  void 0
14195
14195
  );
14196
14196
  }
14197
14197
  async function Z0(r, e, t) {
14198
- return be(
14198
+ return we(
14199
14199
  `${ut}/platform/orgs/${r}/projects/${e}`,
14200
14200
  "PATCH",
14201
14201
  t
14202
14202
  );
14203
14203
  }
14204
14204
  async function W0(r, e) {
14205
- return be(
14205
+ return we(
14206
14206
  `${ut}/platform/orgs/${r}/projects/${e}`,
14207
14207
  "DELETE",
14208
14208
  void 0
14209
14209
  );
14210
14210
  }
14211
- function sw(r) {
14211
+ function ow(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 (!sw(n))
14216
+ if (!ow(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
  );
14220
- return be(
14220
+ return we(
14221
14221
  `${ut}/platform/orgs/${r}/projects/${e}/secrets`,
14222
14222
  "POST",
14223
14223
  { key_name: t, secret: n }
14224
14224
  );
14225
14225
  }
14226
14226
  async function J0(r, e) {
14227
- return be(
14227
+ return we(
14228
14228
  `${ut}/platform/orgs/${r}/projects/${e}/secrets`,
14229
14229
  "GET",
14230
14230
  void 0
14231
14231
  );
14232
14232
  }
14233
14233
  async function X0(r, e, t) {
14234
- return be(
14234
+ return we(
14235
14235
  `${ut}/platform/orgs/${r}/projects/${e}/secrets/${t}`,
14236
14236
  "DELETE",
14237
14237
  void 0
14238
14238
  );
14239
14239
  }
14240
14240
  async function Q0(r, e) {
14241
- return be(
14241
+ return we(
14242
14242
  `${ut}/platform/orgs/${r}/projects/${e}/settings/email`,
14243
14243
  "GET",
14244
14244
  void 0
14245
14245
  );
14246
14246
  }
14247
14247
  async function ey(r, e, t) {
14248
- return be(
14248
+ return we(
14249
14249
  `${ut}/platform/orgs/${r}/projects/${e}/settings/email`,
14250
14250
  "PUT",
14251
14251
  t
14252
14252
  );
14253
14253
  }
14254
14254
  async function ty(r, e) {
14255
- return be(
14255
+ return we(
14256
14256
  `${ut}/platform/orgs/${r}/projects/${e}/settings/oauth`,
14257
14257
  "GET",
14258
14258
  void 0
14259
14259
  );
14260
14260
  }
14261
14261
  async function ry(r, e, t) {
14262
- return be(
14262
+ return we(
14263
14263
  `${ut}/platform/orgs/${r}/projects/${e}/settings/oauth`,
14264
14264
  "PUT",
14265
14265
  t
@@ -14268,63 +14268,63 @@ async function ry(r, e, t) {
14268
14268
  async function ny(r, e, t) {
14269
14269
  if (!e || e.trim() === "")
14270
14270
  throw new Error("Email is required");
14271
- return be(
14271
+ return we(
14272
14272
  `${ut}/platform/orgs/${r}/invites`,
14273
14273
  "POST",
14274
14274
  { email: e, role: t }
14275
14275
  );
14276
14276
  }
14277
14277
  async function iy(r) {
14278
- return be(
14278
+ return we(
14279
14279
  `${ut}/platform/orgs/${r}/invites`,
14280
14280
  "GET",
14281
14281
  void 0
14282
14282
  );
14283
14283
  }
14284
14284
  async function sy(r, e) {
14285
- return be(
14285
+ return we(
14286
14286
  `${ut}/platform/orgs/${r}/invites/${e}`,
14287
14287
  "GET",
14288
14288
  void 0
14289
14289
  );
14290
14290
  }
14291
14291
  async function oy(r, e) {
14292
- return be(
14292
+ return we(
14293
14293
  `${ut}/platform/orgs/${r}/invites/${e}`,
14294
14294
  "DELETE",
14295
14295
  void 0
14296
14296
  );
14297
14297
  }
14298
14298
  async function ay(r) {
14299
- return be(
14299
+ return we(
14300
14300
  `${ut}/platform/orgs/${r}/memberships`,
14301
14301
  "GET",
14302
14302
  void 0
14303
14303
  );
14304
14304
  }
14305
14305
  async function cy(r, e, t) {
14306
- return be(
14306
+ return we(
14307
14307
  `${ut}/platform/orgs/${r}/memberships/${e}`,
14308
14308
  "PATCH",
14309
14309
  { role: t }
14310
14310
  );
14311
14311
  }
14312
14312
  async function ly(r, e) {
14313
- return be(
14313
+ return we(
14314
14314
  `${ut}/platform/orgs/${r}/memberships/${e}`,
14315
14315
  "DELETE",
14316
14316
  void 0
14317
14317
  );
14318
14318
  }
14319
14319
  async function uy(r) {
14320
- return be(
14320
+ return we(
14321
14321
  `${ut}/platform/accept_invite/${r}`,
14322
14322
  "POST",
14323
14323
  void 0
14324
14324
  );
14325
14325
  }
14326
- async function ow() {
14327
- return be(`${ut}/platform/me`, "GET", void 0);
14326
+ async function aw() {
14327
+ return we(`${ut}/platform/me`, "GET", void 0);
14328
14328
  }
14329
14329
  async function fy(r) {
14330
14330
  return Tt(
@@ -14336,7 +14336,7 @@ async function fy(r) {
14336
14336
  );
14337
14337
  }
14338
14338
  async function Da() {
14339
- return be(
14339
+ return we(
14340
14340
  `${ut}/platform/request_verification`,
14341
14341
  "POST",
14342
14342
  void 0,
@@ -14376,14 +14376,14 @@ async function py(r, e) {
14376
14376
  current_password: r,
14377
14377
  new_password: e
14378
14378
  };
14379
- return be(
14379
+ return we(
14380
14380
  `${ut}/platform/change-password`,
14381
14381
  "POST",
14382
14382
  t,
14383
14383
  "Failed to change platform password"
14384
14384
  );
14385
14385
  }
14386
- class aw {
14386
+ class cw {
14387
14387
  constructor() {
14388
14388
  Ke(this, "_appApiUrl", "");
14389
14389
  Ke(this, "_platformApiUrl", "");
@@ -14438,17 +14438,17 @@ class aw {
14438
14438
  return this.isPlatformPath(e) ? "platformRefreshToken" : "refreshToken";
14439
14439
  }
14440
14440
  }
14441
- const $a = new aw(), yy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14441
+ const $a = new cw(), yy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14442
14442
  __proto__: null,
14443
14443
  apiConfig: $a
14444
14444
  }, Symbol.toStringTag, { value: "Module" }));
14445
- async function be(r, e, t, n) {
14445
+ async function we(r, e, t, n) {
14446
14446
  const i = async (s = !1) => {
14447
14447
  try {
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 iw() : await Dc();
14451
+ console.log(`Using ${u}`), u === "platformRefreshToken" ? await sw() : await Dc();
14452
14452
  }
14453
14453
  const o = window.localStorage.getItem("access_token");
14454
14454
  if (!o)
@@ -14475,14 +14475,8 @@ async function be(r, e, t, n) {
14475
14475
  }
14476
14476
  async function gy(r, e, t, n, i) {
14477
14477
  if (!i)
14478
- return be(r, e, t, n);
14479
- const s = await _f(
14480
- r,
14481
- e,
14482
- t,
14483
- i,
14484
- n
14485
- );
14478
+ return we(r, e, t, n);
14479
+ const s = await _f(r, e, t, i, n);
14486
14480
  if (s.error)
14487
14481
  throw new Error(s.error);
14488
14482
  if (!s.data)
@@ -14555,27 +14549,27 @@ async function Tt(r, e, t, n, i) {
14555
14549
  return s.data;
14556
14550
  }
14557
14551
  let Ee = "";
14558
- function cw(r) {
14552
+ function lw(r) {
14559
14553
  Ee = r;
14560
14554
  }
14561
- function lw() {
14555
+ function uw() {
14562
14556
  return Ee;
14563
14557
  }
14564
- async function uw(r, e, t) {
14558
+ async function fw(r, e, t) {
14565
14559
  return Tt(
14566
14560
  `${Ee}/login`,
14567
14561
  "POST",
14568
14562
  { email: r, password: e, client_id: t }
14569
14563
  );
14570
14564
  }
14571
- async function fw(r, e, t) {
14565
+ async function hw(r, e, t) {
14572
14566
  return Tt(
14573
14567
  `${Ee}/login`,
14574
14568
  "POST",
14575
14569
  { id: r, password: e, client_id: t }
14576
14570
  );
14577
14571
  }
14578
- async function hw(r, e, t, n, i) {
14572
+ async function dw(r, e, t, n, i) {
14579
14573
  return Tt(`${Ee}/register`, "POST", {
14580
14574
  email: r,
14581
14575
  password: e,
@@ -14584,7 +14578,7 @@ async function hw(r, e, t, n, i) {
14584
14578
  name: i
14585
14579
  });
14586
14580
  }
14587
- async function dw(r, e, t) {
14581
+ async function pw(r, e, t) {
14588
14582
  return Tt(`${Ee}/register`, "POST", {
14589
14583
  password: r,
14590
14584
  inviteCode: e.toLowerCase(),
@@ -14608,8 +14602,8 @@ async function Dc() {
14608
14602
  throw console.error("Error refreshing token:", t), t;
14609
14603
  }
14610
14604
  }
14611
- async function pw() {
14612
- return be(
14605
+ async function yw() {
14606
+ return we(
14613
14607
  `${Ee}/protected/user`,
14614
14608
  "GET",
14615
14609
  void 0,
@@ -14617,7 +14611,7 @@ async function pw() {
14617
14611
  );
14618
14612
  }
14619
14613
  async function vy(r, e) {
14620
- return be(
14614
+ return we(
14621
14615
  `${Ee}/protected/kv/${r}`,
14622
14616
  "PUT",
14623
14617
  e,
@@ -14625,7 +14619,7 @@ async function vy(r, e) {
14625
14619
  );
14626
14620
  }
14627
14621
  async function my(r) {
14628
- return be(
14622
+ return we(
14629
14623
  `${Ee}/protected/kv/${r}`,
14630
14624
  "DELETE",
14631
14625
  void 0,
@@ -14634,7 +14628,7 @@ async function my(r) {
14634
14628
  }
14635
14629
  async function wy(r) {
14636
14630
  try {
14637
- return await be(
14631
+ return await we(
14638
14632
  `${Ee}/protected/kv/${r}`,
14639
14633
  "GET",
14640
14634
  void 0,
@@ -14646,14 +14640,14 @@ async function wy(r) {
14646
14640
  }
14647
14641
  }
14648
14642
  async function by() {
14649
- return be(
14643
+ return we(
14650
14644
  `${Ee}/protected/kv`,
14651
14645
  "GET",
14652
14646
  void 0,
14653
14647
  "Failed to list key-value pairs"
14654
14648
  );
14655
14649
  }
14656
- async function yw(r) {
14650
+ async function gw(r) {
14657
14651
  const e = { refresh_token: r };
14658
14652
  return Tt(`${Ee}/logout`, "POST", e);
14659
14653
  }
@@ -14667,20 +14661,20 @@ async function xy(r) {
14667
14661
  );
14668
14662
  }
14669
14663
  async function Ma() {
14670
- return be(
14664
+ return we(
14671
14665
  `${Ee}/protected/request_verification`,
14672
14666
  "POST",
14673
14667
  void 0,
14674
14668
  "Failed to request new verification code"
14675
14669
  );
14676
14670
  }
14677
- async function gw(r, e) {
14671
+ async function vw(r, e) {
14678
14672
  const n = await fetch(`${e || Ee}/attestation/${r}`);
14679
14673
  if (!n.ok)
14680
14674
  throw new Error(`Request failed with status ${n.status}`);
14681
14675
  return (await n.json()).attestation_document;
14682
14676
  }
14683
- async function vw(r, e, t) {
14677
+ async function mw(r, e, t) {
14684
14678
  const i = await fetch(`${t || Ee}/key_exchange`, {
14685
14679
  method: "POST",
14686
14680
  headers: {
@@ -14692,7 +14686,7 @@ async function vw(r, e, t) {
14692
14686
  throw new Error("Key exchange failed");
14693
14687
  return i.json();
14694
14688
  }
14695
- async function mw(r, e, t) {
14689
+ async function ww(r, e, t) {
14696
14690
  const n = {
14697
14691
  email: r,
14698
14692
  hashed_secret: e,
@@ -14706,7 +14700,7 @@ async function mw(r, e, t) {
14706
14700
  "Failed to request password reset"
14707
14701
  );
14708
14702
  }
14709
- async function ww(r, e, t, n, i) {
14703
+ async function bw(r, e, t, n, i) {
14710
14704
  const s = {
14711
14705
  email: r,
14712
14706
  alphanumeric_code: e,
@@ -14727,14 +14721,14 @@ async function Ay(r, e) {
14727
14721
  current_password: r,
14728
14722
  new_password: e
14729
14723
  };
14730
- return be(
14724
+ return we(
14731
14725
  `${Ee}/protected/change_password`,
14732
14726
  "POST",
14733
14727
  t,
14734
14728
  "Failed to change password"
14735
14729
  );
14736
14730
  }
14737
- async function bw(r, e) {
14731
+ async function xw(r, e) {
14738
14732
  try {
14739
14733
  return await Tt(
14740
14734
  `${Ee}/auth/github`,
@@ -14747,7 +14741,7 @@ async function bw(r, e) {
14747
14741
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14748
14742
  }
14749
14743
  }
14750
- async function xw(r, e, t) {
14744
+ async function Aw(r, e, t) {
14751
14745
  const n = { code: r, state: e, invite_code: t };
14752
14746
  try {
14753
14747
  return await Tt(
@@ -14765,7 +14759,7 @@ async function xw(r, e, t) {
14765
14759
  ) : new Error("Failed to authenticate with GitHub. Please try again.") : i;
14766
14760
  }
14767
14761
  }
14768
- async function Aw(r, e) {
14762
+ async function Sw(r, e) {
14769
14763
  try {
14770
14764
  return await Tt(
14771
14765
  `${Ee}/auth/google`,
@@ -14778,7 +14772,7 @@ async function Aw(r, e) {
14778
14772
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14779
14773
  }
14780
14774
  }
14781
- async function Sw(r, e, t) {
14775
+ async function _w(r, e, t) {
14782
14776
  const n = { code: r, state: e, invite_code: t };
14783
14777
  try {
14784
14778
  return await Tt(
@@ -14796,7 +14790,7 @@ async function Sw(r, e, t) {
14796
14790
  ) : new Error("Failed to authenticate with Google. Please try again.") : i;
14797
14791
  }
14798
14792
  }
14799
- async function _w(r, e) {
14793
+ async function Ew(r, e) {
14800
14794
  try {
14801
14795
  return await Tt(
14802
14796
  `${Ee}/auth/apple`,
@@ -14809,7 +14803,7 @@ async function _w(r, e) {
14809
14803
  throw t instanceof Error && t.message.includes("Invalid invite code") ? new Error("Invalid invite code. Please check and try again.") : t;
14810
14804
  }
14811
14805
  }
14812
- async function Ew(r, e, t) {
14806
+ async function Iw(r, e, t) {
14813
14807
  const n = { code: r, state: e, invite_code: t };
14814
14808
  try {
14815
14809
  return await Tt(
@@ -14827,7 +14821,7 @@ async function Ew(r, e, t) {
14827
14821
  ) : new Error("Failed to authenticate with Apple. Please try again.") : i;
14828
14822
  }
14829
14823
  }
14830
- async function Iw(r, e, t) {
14824
+ async function kw(r, e, t) {
14831
14825
  const n = {
14832
14826
  ...r,
14833
14827
  client_id: e,
@@ -14856,7 +14850,7 @@ async function Sy(r) {
14856
14850
  `seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
14857
14851
  ), r != null && r.private_key_derivation_path && t.push(
14858
14852
  `private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
14859
- ), t.length > 0 && (e += `?${t.join("&")}`), be(
14853
+ ), t.length > 0 && (e += `?${t.join("&")}`), we(
14860
14854
  e,
14861
14855
  "GET",
14862
14856
  void 0,
@@ -14870,7 +14864,7 @@ async function _y(r) {
14870
14864
  `seed_phrase_derivation_path=${encodeURIComponent(r.seed_phrase_derivation_path)}`
14871
14865
  ), r != null && r.private_key_derivation_path && t.push(
14872
14866
  `private_key_derivation_path=${encodeURIComponent(r.private_key_derivation_path)}`
14873
- ), t.length > 0 && (e += `?${t.join("&")}`), be(
14867
+ ), t.length > 0 && (e += `?${t.join("&")}`), we(
14874
14868
  e,
14875
14869
  "GET",
14876
14870
  void 0,
@@ -14883,7 +14877,7 @@ async function Ey(r, e, t) {
14883
14877
  algorithm: e,
14884
14878
  ...t && Object.keys(t).length > 0 && { key_options: t }
14885
14879
  };
14886
- return be(
14880
+ return we(
14887
14881
  `${Ee}/protected/sign_message`,
14888
14882
  "POST",
14889
14883
  i,
@@ -14892,28 +14886,28 @@ async function Ey(r, e, t) {
14892
14886
  }
14893
14887
  async function Iy(r, e) {
14894
14888
  let t = `${Ee}/protected/public_key?algorithm=${r}`;
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)}`), be(
14889
+ 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)}`), we(
14896
14890
  t,
14897
14891
  "GET",
14898
14892
  void 0,
14899
14893
  "Failed to fetch public key"
14900
14894
  );
14901
14895
  }
14902
- async function kw(r, e, t) {
14896
+ async function Cw(r, e, t) {
14903
14897
  const n = {
14904
14898
  email: r,
14905
14899
  password: e,
14906
14900
  ...t !== void 0 && { name: t }
14907
14901
  };
14908
- return be(
14902
+ return we(
14909
14903
  `${Ee}/protected/convert_guest`,
14910
14904
  "POST",
14911
14905
  n,
14912
14906
  "Failed to convert guest account"
14913
14907
  );
14914
14908
  }
14915
- async function Cw(r) {
14916
- return be(
14909
+ async function Bw(r) {
14910
+ return we(
14917
14911
  `${Ee}/protected/third_party_token`,
14918
14912
  "POST",
14919
14913
  r ? { audience: r } : {},
@@ -14925,7 +14919,7 @@ async function ky(r, e) {
14925
14919
  data: r,
14926
14920
  ...e && Object.keys(e).length > 0 && { key_options: e }
14927
14921
  };
14928
- return be(
14922
+ return we(
14929
14923
  `${Ee}/protected/encrypt`,
14930
14924
  "POST",
14931
14925
  t,
@@ -14937,30 +14931,30 @@ async function Cy(r, e) {
14937
14931
  encrypted_data: r,
14938
14932
  ...e && Object.keys(e).length > 0 && { key_options: e }
14939
14933
  };
14940
- return be(
14934
+ return we(
14941
14935
  `${Ee}/protected/decrypt`,
14942
14936
  "POST",
14943
14937
  t,
14944
14938
  "Failed to decrypt data"
14945
14939
  );
14946
14940
  }
14947
- async function Bw(r) {
14941
+ async function Ow(r) {
14948
14942
  const e = {
14949
14943
  hashed_secret: r
14950
14944
  };
14951
- return be(
14945
+ return we(
14952
14946
  `${Ee}/protected/delete-account/request`,
14953
14947
  "POST",
14954
14948
  e,
14955
14949
  "Failed to request account deletion"
14956
14950
  );
14957
14951
  }
14958
- async function Ow(r, e) {
14952
+ async function Tw(r, e) {
14959
14953
  const t = {
14960
14954
  confirmation_code: r,
14961
14955
  plaintext_secret: e
14962
14956
  };
14963
- return be(
14957
+ return we(
14964
14958
  `${Ee}/protected/delete-account/confirm`,
14965
14959
  "POST",
14966
14960
  t,
@@ -14986,11 +14980,11 @@ async function By(r) {
14986
14980
  }
14987
14981
  }
14988
14982
  const wd = 10 * 1024 * 1024;
14989
- function Tw(r) {
14983
+ function Nw(r) {
14990
14984
  return new Promise((e) => setTimeout(e, r));
14991
14985
  }
14992
14986
  async function Oy(r) {
14993
- return be(
14987
+ return we(
14994
14988
  `${Ee}/protected/api-keys`,
14995
14989
  "POST",
14996
14990
  { name: r },
@@ -14998,19 +14992,17 @@ async function Oy(r) {
14998
14992
  );
14999
14993
  }
15000
14994
  async function Ty() {
15001
- const r = await be(
14995
+ const r = await we(
15002
14996
  `${Ee}/protected/api-keys`,
15003
14997
  "GET",
15004
14998
  void 0,
15005
14999
  "Failed to list API keys"
15006
15000
  );
15007
- return r.keys.sort(
15008
- (e, t) => new Date(t.created_at).getTime() - new Date(e.created_at).getTime()
15009
- ), r;
15001
+ return r.keys.sort((e, t) => new Date(t.created_at).getTime() - new Date(e.created_at).getTime()), r;
15010
15002
  }
15011
15003
  async function Ny(r) {
15012
15004
  const e = encodeURIComponent(r);
15013
- return be(
15005
+ return we(
15014
15006
  `${Ee}/protected/api-keys/${e}`,
15015
15007
  "DELETE",
15016
15008
  void 0,
@@ -15024,7 +15016,7 @@ async function Ef(r) {
15024
15016
  filename: r instanceof File ? r.name : "document",
15025
15017
  content_base64: n
15026
15018
  };
15027
- return be(
15019
+ return we(
15028
15020
  `${Ee}/v1/documents/upload`,
15029
15021
  "POST",
15030
15022
  s,
@@ -15035,7 +15027,7 @@ async function If(r) {
15035
15027
  const e = {
15036
15028
  task_id: r
15037
15029
  };
15038
- return be(
15030
+ return we(
15039
15031
  `${Ee}/v1/documents/status`,
15040
15032
  "POST",
15041
15033
  e,
@@ -15056,7 +15048,7 @@ async function Py(r, e) {
15056
15048
  throw new Error(c.error || "Document processing failed");
15057
15049
  case "pending":
15058
15050
  case "started":
15059
- await Tw(t), o++;
15051
+ await Nw(t), o++;
15060
15052
  break;
15061
15053
  default:
15062
15054
  throw new Error(`Unknown document status: ${c.status}`);
@@ -15085,7 +15077,7 @@ async function jy(r, e, t, n, i, s) {
15085
15077
  async function Ry(r) {
15086
15078
  let e = `${Ee}/v1/responses`;
15087
15079
  const t = [];
15088
- return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), r != null && r.order && t.push(`order=${encodeURIComponent(r.order)}`), t.length > 0 && (e += `?${t.join("&")}`), be(
15080
+ return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), r != null && r.order && t.push(`order=${encodeURIComponent(r.order)}`), t.length > 0 && (e += `?${t.join("&")}`), we(
15089
15081
  e,
15090
15082
  "GET",
15091
15083
  void 0,
@@ -15093,7 +15085,7 @@ async function Ry(r) {
15093
15085
  );
15094
15086
  }
15095
15087
  async function Uy(r) {
15096
- return be(
15088
+ return we(
15097
15089
  `${Ee}/v1/responses/${encodeURIComponent(r)}`,
15098
15090
  "GET",
15099
15091
  void 0,
@@ -15101,90 +15093,98 @@ async function Uy(r) {
15101
15093
  );
15102
15094
  }
15103
15095
  async function Dy(r) {
15104
- return be(
15096
+ return we(
15105
15097
  `${Ee}/v1/responses/${encodeURIComponent(r)}/cancel`,
15106
15098
  "POST",
15107
15099
  void 0,
15108
15100
  "Failed to cancel response"
15109
15101
  );
15110
15102
  }
15111
- async function $y(r) {
15103
+ async function $y() {
15104
+ return we(
15105
+ `${Ee}/v1/conversations`,
15106
+ "DELETE",
15107
+ void 0,
15108
+ "Failed to delete conversations"
15109
+ );
15110
+ }
15111
+ async function My(r) {
15112
15112
  let e = `${Ee}/v1/conversations`;
15113
15113
  const t = [];
15114
- return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), t.length > 0 && (e += `?${t.join("&")}`), be(
15114
+ return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), t.length > 0 && (e += `?${t.join("&")}`), we(
15115
15115
  e,
15116
15116
  "GET",
15117
15117
  void 0,
15118
15118
  "Failed to list conversations"
15119
15119
  );
15120
15120
  }
15121
- async function My(r) {
15122
- return be(
15121
+ async function Vy(r) {
15122
+ return we(
15123
15123
  `${Ee}/v1/responses`,
15124
15124
  "POST",
15125
15125
  r,
15126
15126
  "Failed to create response"
15127
15127
  );
15128
15128
  }
15129
- async function Vy(r) {
15130
- return be(
15129
+ async function Ly(r) {
15130
+ return we(
15131
15131
  `${Ee}/v1/responses/${encodeURIComponent(r)}`,
15132
15132
  "DELETE",
15133
15133
  void 0,
15134
15134
  "Failed to delete response"
15135
15135
  );
15136
15136
  }
15137
- async function Ly(r) {
15138
- return be(
15137
+ async function Hy(r) {
15138
+ return we(
15139
15139
  `${Ee}/v1/instructions`,
15140
15140
  "POST",
15141
15141
  r,
15142
15142
  "Failed to create instruction"
15143
15143
  );
15144
15144
  }
15145
- async function Hy(r) {
15145
+ async function Fy(r) {
15146
15146
  let e = `${Ee}/v1/instructions`;
15147
15147
  const t = [];
15148
- return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), r != null && r.order && t.push(`order=${encodeURIComponent(r.order)}`), t.length > 0 && (e += `?${t.join("&")}`), be(
15148
+ return (r == null ? void 0 : r.limit) !== void 0 && t.push(`limit=${r.limit}`), r != null && r.after && t.push(`after=${encodeURIComponent(r.after)}`), r != null && r.before && t.push(`before=${encodeURIComponent(r.before)}`), r != null && r.order && t.push(`order=${encodeURIComponent(r.order)}`), t.length > 0 && (e += `?${t.join("&")}`), we(
15149
15149
  e,
15150
15150
  "GET",
15151
15151
  void 0,
15152
15152
  "Failed to list instructions"
15153
15153
  );
15154
15154
  }
15155
- async function Fy(r) {
15156
- return be(
15155
+ async function Gy(r) {
15156
+ return we(
15157
15157
  `${Ee}/v1/instructions/${encodeURIComponent(r)}`,
15158
15158
  "GET",
15159
15159
  void 0,
15160
15160
  "Failed to retrieve instruction"
15161
15161
  );
15162
15162
  }
15163
- async function Gy(r, e) {
15164
- return be(
15163
+ async function zy(r, e) {
15164
+ return we(
15165
15165
  `${Ee}/v1/instructions/${encodeURIComponent(r)}`,
15166
15166
  "POST",
15167
15167
  e,
15168
15168
  "Failed to update instruction"
15169
15169
  );
15170
15170
  }
15171
- async function zy(r) {
15172
- return be(
15171
+ async function Ky(r) {
15172
+ return we(
15173
15173
  `${Ee}/v1/instructions/${encodeURIComponent(r)}`,
15174
15174
  "DELETE",
15175
15175
  void 0,
15176
15176
  "Failed to delete instruction"
15177
15177
  );
15178
15178
  }
15179
- async function Ky(r) {
15180
- return be(
15179
+ async function qy(r) {
15180
+ return we(
15181
15181
  `${Ee}/v1/instructions/${encodeURIComponent(r)}/set-default`,
15182
15182
  "POST",
15183
15183
  void 0,
15184
15184
  "Failed to set default instruction"
15185
15185
  );
15186
15186
  }
15187
- function Nw(r) {
15187
+ function Pw(r) {
15188
15188
  return async (e, t) => {
15189
15189
  var i, s;
15190
15190
  const n = () => {
@@ -15228,7 +15228,7 @@ function Nw(r) {
15228
15228
  const D = T.decode(P);
15229
15229
  m += D;
15230
15230
  let pe;
15231
- for (; pe = Pw(m); ) {
15231
+ for (; pe = jw(m); ) {
15232
15232
  m = m.slice(pe.length);
15233
15233
  const tt = pe.split(`
15234
15234
  `);
@@ -15310,13 +15310,13 @@ function Nw(r) {
15310
15310
  }
15311
15311
  };
15312
15312
  }
15313
- function Pw(r) {
15313
+ function jw(r) {
15314
15314
  const e = r.indexOf(`
15315
15315
 
15316
15316
  `);
15317
15317
  return e === -1 ? null : r.slice(0, e + 2);
15318
15318
  }
15319
- const jw = [
15319
+ const Rw = [
15320
15320
  "eeddbb58f57c38894d6d5af5e575fbe791c5bf3bbcfb5df8da8cfcf0c2e1da1913108e6a762112444740b88c163d7f4b",
15321
15321
  "74ed417f88cb0ca76c4a3d10f278bd010f1d3f95eafb254d4732511bb50e404507a4049b779c5230137e4091a5582271",
15322
15322
  "9043fcab93b972d3c14ad2dc8fa78ca7ad374fc937c02435681772a003f7a72876bc4d578089b5c4cf3fe9b480f1aabb",
@@ -15324,7 +15324,7 @@ const jw = [
15324
15324
  "91cb67311e910cce68cd5b7d0de77aa40610d87c6681439b44c46c3ff786ae643956ab2c812478a1da8745b259f07a45",
15325
15325
  "859065ac81b81d3735130ba08b8af72a7256b603fefb74faabae25ed28cca6edcaa7c10ea32b5948d675c18a9b0f2b1d",
15326
15326
  "acd82a7d3943e23e95a9dc3ce0b0107ea358d6287f9e3afa245622f7c7e3e0a66142a928b6efcc02f594a95366d3a99d"
15327
- ], Rw = [
15327
+ ], Uw = [
15328
15328
  "62c0407056217a4c10764ed9045694c29fa93255d3cc04c2f989cdd9a1f8050c8b169714c71f1118ebce2fcc9951d1a9",
15329
15329
  "cb95519905443f9f66f05f63c548b61ad1561a27fd5717b69285861aaea3c3063fe12a2571773b67fea3c6c11b4d8ec6",
15330
15330
  "deb5895831b5e4286f5a2dcf5e9c27383821446f8df2b465f141d10743599be20ba3bb381ce063bf7139cc89f7f61d4c",
@@ -15332,14 +15332,14 @@ const jw = [
15332
15332
  "669404ea71435b8f498b48db7816a5c2ab1d258b1a77685b11d84d15a73189504d79c4dee13a658de9f4a0cbfc39cfe8",
15333
15333
  "a791bf92c25ffdfd372660e460a0e238c6778c090672df6509ae4bc065cf8668b6baac6b6a11d554af53ee0ff0172ad5",
15334
15334
  "c4285443b87b9b12a6cea3bef1064ec060f652b235a297095975af8f134e5ed65f92d70d4616fdec80af9dff48bb9f35"
15335
- ], Uw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", Dw = {
15335
+ ], Dw = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEHiUY9kFWK1GqBGzczohhwEwElXzgWLDZa9R6wBx3JOBocgSt9+UIzZlJbPDjYeGBfDUXh7Z62BG2vVsh2NgclLB5S7A2ucBBtb1wd8vSQHP8jpdPhZX1slauPgbnROIP", $w = {
15336
15336
  prod: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrProdHistory.json",
15337
15337
  dev: "https://raw.githubusercontent.com/OpenSecretCloud/opensecret/master/pcrDevHistory.json"
15338
15338
  };
15339
- async function $w() {
15339
+ async function Mw() {
15340
15340
  try {
15341
15341
  const r = new Uint8Array(
15342
- atob(Uw).split("").map((e) => e.charCodeAt(0))
15342
+ atob(Dw).split("").map((e) => e.charCodeAt(0))
15343
15343
  );
15344
15344
  return await crypto.subtle.importKey(
15345
15345
  "spki",
@@ -15361,9 +15361,9 @@ async function $w() {
15361
15361
  throw console.error("Error importing verification key:", r), new Error("Failed to import PCR verification key");
15362
15362
  }
15363
15363
  }
15364
- async function Mw(r, e) {
15364
+ async function Vw(r, e) {
15365
15365
  try {
15366
- const t = (e == null ? void 0 : e[r]) || Dw[r], n = await fetch(t);
15366
+ const t = (e == null ? void 0 : e[r]) || $w[r], n = await fetch(t);
15367
15367
  if (!n.ok)
15368
15368
  throw new Error(`Failed to fetch PCR history: ${n.status}`);
15369
15369
  return await n.json();
@@ -15371,7 +15371,7 @@ async function Mw(r, e) {
15371
15371
  throw console.error("Error fetching PCR history:", t), new Error("Failed to fetch PCR history");
15372
15372
  }
15373
15373
  }
15374
- async function Vw(r, e, t) {
15374
+ async function Lw(r, e, t) {
15375
15375
  try {
15376
15376
  const i = new TextEncoder().encode(r), s = new Uint8Array(
15377
15377
  atob(e).split("").map((o) => o.charCodeAt(0))
@@ -15392,9 +15392,9 @@ async function Vw(r, e, t) {
15392
15392
  }
15393
15393
  async function bd(r, e, t) {
15394
15394
  try {
15395
- const n = await $w(), i = await Mw(e, t);
15395
+ const n = await Mw(), i = await Vw(e, t);
15396
15396
  for (const s of i)
15397
- if (s.PCR0 === r && await Vw(s.PCR0, s.signature, n))
15397
+ if (s.PCR0 === r && await Lw(s.PCR0, s.signature, n))
15398
15398
  return {
15399
15399
  isMatch: !0,
15400
15400
  text: "PCR0 matches remotely attested value",
@@ -15405,8 +15405,8 @@ async function bd(r, e, t) {
15405
15405
  return console.error("PCR remote validation error:", n), null;
15406
15406
  }
15407
15407
  }
15408
- async function Lw(r, e) {
15409
- const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...jw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...Rw];
15408
+ async function Hw(r, e) {
15409
+ const t = [...(e == null ? void 0 : e.pcr0Values) || [], ...Rw], n = [...(e == null ? void 0 : e.pcr0DevValues) || [], ...Uw];
15410
15410
  if (t.includes(r))
15411
15411
  return {
15412
15412
  isMatch: !0,
@@ -15442,21 +15442,21 @@ async function Lw(r, e) {
15442
15442
  };
15443
15443
  }
15444
15444
  const ts = Ua, $c = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f79bb5b";
15445
- function qy(r) {
15445
+ function Zy(r) {
15446
15446
  return Array.from(r).map((e) => e.toString(16).padStart(2, "0")).join("");
15447
15447
  }
15448
- async function Hw(r) {
15448
+ async function Fw(r) {
15449
15449
  const e = await crypto.subtle.digest("SHA-256", r);
15450
- return qy(new Uint8Array(e));
15450
+ return Zy(new Uint8Array(e));
15451
15451
  }
15452
15452
  async function rs(r, e, t) {
15453
15453
  console.log("Raw timestamp:", r.timestamp), console.log("Date object:", new Date(r.timestamp));
15454
15454
  const n = Array.from(r.pcrs.entries()).map(([v, b]) => ({
15455
15455
  id: v,
15456
- value: qy(b)
15456
+ value: Zy(b)
15457
15457
  })).filter((v) => !v.value.match(/^0+$/)), i = n.find((v) => v.id === 0);
15458
15458
  let s = null;
15459
- i && (s = await Lw(i.value, t));
15459
+ i && (s = await Hw(i.value, t));
15460
15460
  const o = [...e, r.certificate].map((v) => {
15461
15461
  const b = new wi(v);
15462
15462
  return {
@@ -15466,7 +15466,7 @@ async function rs(r, e, t) {
15466
15466
  pem: b.toString("pem"),
15467
15467
  isRoot: b.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
15468
15468
  };
15469
- }), c = new TextDecoder(), u = new wi(e[0]), h = await Hw(u.rawData);
15469
+ }), c = new TextDecoder(), u = new wi(e[0]), h = await Fw(u.rawData);
15470
15470
  return {
15471
15471
  moduleId: r.module_id,
15472
15472
  publicKey: r.public_key ? _r(r.public_key) : null,
@@ -15488,7 +15488,7 @@ async function rs(r, e, t) {
15488
15488
  validatedPcr0Hash: s
15489
15489
  };
15490
15490
  }
15491
- const Zy = _d({
15491
+ const Wy = _d({
15492
15492
  auth: {
15493
15493
  loading: !0,
15494
15494
  user: void 0
@@ -15572,17 +15572,18 @@ const Zy = _d({
15572
15572
  fetchResponsesList: Ry,
15573
15573
  fetchResponse: Uy,
15574
15574
  cancelResponse: Dy,
15575
- deleteResponse: Vy,
15576
- createResponse: My,
15577
- listConversations: $y,
15578
- createInstruction: Ly,
15579
- listInstructions: Hy,
15580
- getInstruction: Fy,
15581
- updateInstruction: Gy,
15582
- deleteInstruction: zy,
15583
- setDefaultInstruction: Ky
15575
+ deleteResponse: Ly,
15576
+ createResponse: Vy,
15577
+ listConversations: My,
15578
+ deleteConversations: $y,
15579
+ createInstruction: Hy,
15580
+ listInstructions: Fy,
15581
+ getInstruction: Gy,
15582
+ updateInstruction: zy,
15583
+ deleteInstruction: Ky,
15584
+ setDefaultInstruction: qy
15584
15585
  });
15585
- function Fx({
15586
+ function Gx({
15586
15587
  children: r,
15587
15588
  apiUrl: e,
15588
15589
  clientId: t,
@@ -15612,12 +15613,12 @@ function Fx({
15612
15613
  throw new Error(
15613
15614
  "OpenSecretProvider requires a non-empty clientId. Please provide a valid project UUID."
15614
15615
  );
15615
- cw(e), Promise.resolve().then(() => yy).then(({ apiConfig: ue }) => {
15616
+ lw(e), Promise.resolve().then(() => yy).then(({ apiConfig: ue }) => {
15616
15617
  const fe = ue.platformApiUrl || "";
15617
15618
  ue.configure(e, fe);
15618
15619
  });
15619
15620
  }, [e, t]), Os(() => {
15620
- h(e ? () => Nw(o ? { apiKey: o } : void 0) : void 0);
15621
+ h(e ? () => Pw(o ? { apiKey: o } : void 0) : void 0);
15621
15622
  }, [e, o]);
15622
15623
  async function b() {
15623
15624
  const ue = window.localStorage.getItem("access_token"), fe = window.localStorage.getItem("refresh_token");
@@ -15629,7 +15630,7 @@ function Fx({
15629
15630
  return;
15630
15631
  }
15631
15632
  try {
15632
- const ye = await pw();
15633
+ const ye = await yw();
15633
15634
  s({
15634
15635
  loading: !1,
15635
15636
  user: ye
@@ -15647,7 +15648,7 @@ function Fx({
15647
15648
  async function H(ue, fe) {
15648
15649
  console.log("Signing in");
15649
15650
  try {
15650
- const { access_token: ye, refresh_token: Ae } = await uw(ue, fe, t);
15651
+ const { access_token: ye, refresh_token: Ae } = await fw(ue, fe, t);
15651
15652
  window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", Ae), v(void 0), await b();
15652
15653
  } catch (ye) {
15653
15654
  throw console.error(ye), ye;
@@ -15655,7 +15656,7 @@ function Fx({
15655
15656
  }
15656
15657
  async function T(ue, fe, ye, Ae) {
15657
15658
  try {
15658
- const { access_token: Re, refresh_token: Je } = await hw(
15659
+ const { access_token: Re, refresh_token: Je } = await dw(
15659
15660
  ue,
15660
15661
  fe,
15661
15662
  ye,
@@ -15670,7 +15671,7 @@ function Fx({
15670
15671
  async function m(ue, fe) {
15671
15672
  console.log("Signing in Guest");
15672
15673
  try {
15673
- const { access_token: ye, refresh_token: Ae } = await fw(ue, fe, t);
15674
+ const { access_token: ye, refresh_token: Ae } = await hw(ue, fe, t);
15674
15675
  window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", Ae), v(void 0), await b();
15675
15676
  } catch (ye) {
15676
15677
  throw console.error(ye), ye;
@@ -15678,7 +15679,7 @@ function Fx({
15678
15679
  }
15679
15680
  async function A(ue, fe) {
15680
15681
  try {
15681
- const { access_token: ye, refresh_token: Ae, id: Re } = await dw(
15682
+ const { access_token: ye, refresh_token: Ae, id: Re } = await pw(
15682
15683
  ue,
15683
15684
  fe,
15684
15685
  t
@@ -15690,7 +15691,7 @@ function Fx({
15690
15691
  }
15691
15692
  async function k(ue, fe, ye) {
15692
15693
  try {
15693
- await kw(ue, fe, ye), await b();
15694
+ await Cw(ue, fe, ye), await b();
15694
15695
  } catch (Ae) {
15695
15696
  throw console.error(Ae), Ae;
15696
15697
  }
@@ -15699,7 +15700,7 @@ function Fx({
15699
15700
  const ue = window.localStorage.getItem("refresh_token");
15700
15701
  if (ue)
15701
15702
  try {
15702
- await yw(ue);
15703
+ await gw(ue);
15703
15704
  } catch (fe) {
15704
15705
  console.error("Error during logout:", fe);
15705
15706
  }
@@ -15729,20 +15730,20 @@ function Fx({
15729
15730
  requestNewVerificationEmail: Ma,
15730
15731
  changePassword: Ay,
15731
15732
  refreshAccessToken: Dc,
15732
- requestPasswordReset: (ue, fe) => mw(ue, fe, t),
15733
- confirmPasswordReset: (ue, fe, ye, Ae) => ww(ue, fe, ye, Ae, t),
15734
- requestAccountDeletion: Bw,
15735
- confirmAccountDeletion: Ow,
15733
+ requestPasswordReset: (ue, fe) => ww(ue, fe, t),
15734
+ confirmPasswordReset: (ue, fe, ye, Ae) => bw(ue, fe, ye, Ae, t),
15735
+ requestAccountDeletion: Ow,
15736
+ confirmAccountDeletion: Tw,
15736
15737
  initiateGitHubAuth: async (ue) => {
15737
15738
  try {
15738
- return await bw(t, ue);
15739
+ return await xw(t, ue);
15739
15740
  } catch (fe) {
15740
15741
  throw console.error("Failed to initiate GitHub auth:", fe), fe;
15741
15742
  }
15742
15743
  },
15743
15744
  handleGitHubCallback: async (ue, fe, ye) => {
15744
15745
  try {
15745
- const { access_token: Ae, refresh_token: Re } = await xw(
15746
+ const { access_token: Ae, refresh_token: Re } = await Aw(
15746
15747
  ue,
15747
15748
  fe,
15748
15749
  ye
@@ -15754,14 +15755,14 @@ function Fx({
15754
15755
  },
15755
15756
  initiateGoogleAuth: async (ue) => {
15756
15757
  try {
15757
- return await Aw(t, ue);
15758
+ return await Sw(t, ue);
15758
15759
  } catch (fe) {
15759
15760
  throw console.error("Failed to initiate Google auth:", fe), fe;
15760
15761
  }
15761
15762
  },
15762
15763
  handleGoogleCallback: async (ue, fe, ye) => {
15763
15764
  try {
15764
- const { access_token: Ae, refresh_token: Re } = await Sw(
15765
+ const { access_token: Ae, refresh_token: Re } = await _w(
15765
15766
  ue,
15766
15767
  fe,
15767
15768
  ye
@@ -15773,14 +15774,14 @@ function Fx({
15773
15774
  },
15774
15775
  initiateAppleAuth: async (ue) => {
15775
15776
  try {
15776
- return await _w(t, ue);
15777
+ return await Ew(t, ue);
15777
15778
  } catch (fe) {
15778
15779
  throw console.error("Failed to initiate Apple auth:", fe), fe;
15779
15780
  }
15780
15781
  },
15781
15782
  handleAppleCallback: async (ue, fe, ye) => {
15782
15783
  try {
15783
- const { access_token: Ae, refresh_token: Re } = await Ew(
15784
+ const { access_token: Ae, refresh_token: Re } = await Iw(
15784
15785
  ue,
15785
15786
  fe,
15786
15787
  ye
@@ -15792,7 +15793,7 @@ function Fx({
15792
15793
  },
15793
15794
  handleAppleNativeSignIn: async (ue, fe) => {
15794
15795
  try {
15795
- const { access_token: ye, refresh_token: Ae } = await Iw(
15796
+ const { access_token: ye, refresh_token: Ae } = await kw(
15796
15797
  ue,
15797
15798
  t,
15798
15799
  fe
@@ -15825,7 +15826,7 @@ function Fx({
15825
15826
  );
15826
15827
  return rs(Ae, Ae.cabundle, n);
15827
15828
  },
15828
- generateThirdPartyToken: Cw,
15829
+ generateThirdPartyToken: Bw,
15829
15830
  encryptData: ky,
15830
15831
  decryptData: Cy,
15831
15832
  fetchModels: By,
@@ -15839,19 +15840,20 @@ function Fx({
15839
15840
  fetchResponsesList: Ry,
15840
15841
  fetchResponse: Uy,
15841
15842
  cancelResponse: Dy,
15842
- deleteResponse: Vy,
15843
- createResponse: My,
15844
- listConversations: $y,
15845
- createInstruction: Ly,
15846
- listInstructions: Hy,
15847
- getInstruction: Fy,
15848
- updateInstruction: Gy,
15849
- deleteInstruction: zy,
15850
- setDefaultInstruction: Ky
15843
+ deleteResponse: Ly,
15844
+ createResponse: Vy,
15845
+ listConversations: My,
15846
+ deleteConversations: $y,
15847
+ createInstruction: Hy,
15848
+ listInstructions: Fy,
15849
+ getInstruction: Gy,
15850
+ updateInstruction: zy,
15851
+ deleteInstruction: Ky,
15852
+ setDefaultInstruction: qy
15851
15853
  };
15852
- return /* @__PURE__ */ Sd(Zy.Provider, { value: pt, children: r });
15854
+ return /* @__PURE__ */ Sd(Wy.Provider, { value: pt, children: r });
15853
15855
  }
15854
- const Wy = _d({
15856
+ const Yy = _d({
15855
15857
  auth: {
15856
15858
  loading: !0,
15857
15859
  developer: void 0
@@ -15908,7 +15910,7 @@ const Wy = _d({
15908
15910
  acceptInvite: uy,
15909
15911
  apiUrl: ""
15910
15912
  });
15911
- function Gx({
15913
+ function zx({
15912
15914
  children: r,
15913
15915
  apiUrl: e,
15914
15916
  pcrConfig: t = {}
@@ -15922,7 +15924,7 @@ function Gx({
15922
15924
  throw new Error(
15923
15925
  "OpenSecretDeveloper requires a non-empty apiUrl. Please provide a valid API endpoint URL."
15924
15926
  );
15925
- ew(e), Promise.resolve().then(() => yy).then(({ apiConfig: v }) => {
15927
+ tw(e), Promise.resolve().then(() => yy).then(({ apiConfig: v }) => {
15926
15928
  const b = v.appApiUrl || "";
15927
15929
  v.configure(b, e);
15928
15930
  }).catch((v) => {
@@ -15941,7 +15943,7 @@ function Gx({
15941
15943
  return;
15942
15944
  }
15943
15945
  try {
15944
- const H = await ow();
15946
+ const H = await aw();
15945
15947
  i({
15946
15948
  loading: !1,
15947
15949
  developer: {
@@ -15972,7 +15974,7 @@ function Gx({
15972
15974
  }, []);
15973
15975
  async function c(v, b) {
15974
15976
  try {
15975
- const { access_token: H, refresh_token: T } = await tw(v, b);
15977
+ const { access_token: H, refresh_token: T } = await rw(v, b);
15976
15978
  return window.localStorage.setItem("access_token", H), window.localStorage.setItem("refresh_token", T), await s(), { access_token: H, refresh_token: T, id: "", email: v };
15977
15979
  } catch (H) {
15978
15980
  throw console.error("Login error:", H), H;
@@ -15980,7 +15982,7 @@ function Gx({
15980
15982
  }
15981
15983
  async function u(v, b, H, T) {
15982
15984
  try {
15983
- const { access_token: m, refresh_token: A } = await rw(
15985
+ const { access_token: m, refresh_token: A } = await nw(
15984
15986
  v,
15985
15987
  b,
15986
15988
  H,
@@ -16000,7 +16002,7 @@ function Gx({
16000
16002
  const v = window.localStorage.getItem("refresh_token");
16001
16003
  if (v)
16002
16004
  try {
16003
- await nw(v);
16005
+ await iw(v);
16004
16006
  } catch (b) {
16005
16007
  console.error("Error during logout:", b);
16006
16008
  }
@@ -16047,34 +16049,34 @@ function Gx({
16047
16049
  acceptInvite: uy,
16048
16050
  apiUrl: e
16049
16051
  };
16050
- return /* @__PURE__ */ Sd(Wy.Provider, { value: h, children: r });
16051
- }
16052
- function zx() {
16053
- return Ed(Zy);
16052
+ return /* @__PURE__ */ Sd(Yy.Provider, { value: h, children: r });
16054
16053
  }
16055
16054
  function Kx() {
16056
16055
  return Ed(Wy);
16057
16056
  }
16058
16057
  function qx() {
16058
+ return Ed(Yy);
16059
+ }
16060
+ function Zx() {
16059
16061
  const r = new Uint8Array(32);
16060
16062
  return crypto.getRandomValues(r), Array.from(r, (e) => e.toString(16).padStart(2, "0")).join("");
16061
16063
  }
16062
- async function Zx(r) {
16064
+ async function Wx(r) {
16063
16065
  const t = new TextEncoder().encode(r), n = await crypto.subtle.digest("SHA-256", t);
16064
16066
  return Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
16065
16067
  }
16066
16068
  export {
16067
- Zy as OpenSecretContext,
16068
- Gx as OpenSecretDeveloper,
16069
- Wy as OpenSecretDeveloperContext,
16070
- Fx as OpenSecretProvider,
16069
+ Wy as OpenSecretContext,
16070
+ zx as OpenSecretDeveloper,
16071
+ Yy as OpenSecretDeveloperContext,
16072
+ Gx as OpenSecretProvider,
16071
16073
  $a as apiConfig,
16072
16074
  Oy as createApiKey,
16073
- Nw as createCustomFetch,
16075
+ Pw as createCustomFetch,
16074
16076
  Ny as deleteApiKey,
16075
- qx as generateSecureSecret,
16076
- Zx as hashSecret,
16077
+ Zx as generateSecureSecret,
16078
+ Wx as hashSecret,
16077
16079
  Ty as listApiKeys,
16078
- zx as useOpenSecret,
16079
- Kx as useOpenSecretDeveloper
16080
+ Kx as useOpenSecret,
16081
+ qx as useOpenSecretDeveloper
16080
16082
  };