@hinkal/common 0.0.17 → 0.0.20

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,100 +1,75 @@
1
- var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function Yr(f) {
3
- return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
4
- }
5
- function ot(f) {
6
- if (f.__esModule)
7
- return f;
8
- var h = f.default;
9
- if (typeof h == "function") {
10
- var s = function y() {
11
- return this instanceof y ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
12
- };
13
- s.prototype = h.prototype;
14
- } else
15
- s = {};
16
- return Object.defineProperty(s, "__esModule", { value: !0 }), Object.keys(f).forEach(function(y) {
17
- var w = Object.getOwnPropertyDescriptor(f, y);
18
- Object.defineProperty(s, y, w.get ? w : {
19
- enumerable: !0,
20
- get: function() {
21
- return f[y];
22
- }
23
- });
24
- }), s;
25
- }
26
- var xr = {}, X = {};
27
- X.byteLength = zr;
28
- X.toByteArray = Xr;
29
- X.fromByteArray = Kr;
30
- var L = [], R = [], qr = typeof Uint8Array < "u" ? Uint8Array : Array, v = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
31
- for (var G = 0, Hr = v.length; G < Hr; ++G)
32
- L[G] = v[G], R[v.charCodeAt(G)] = G;
33
- R[45] = 62;
34
- R[95] = 63;
35
- function dr(f) {
36
- var h = f.length;
37
- if (h % 4 > 0)
1
+ var F = {}, V = {};
2
+ V.byteLength = Jr;
3
+ V.toByteArray = Kr;
4
+ V.fromByteArray = rt;
5
+ var M = [], b = [], Hr = typeof Uint8Array < "u" ? Uint8Array : Array, er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6
+ for (var W = 0, Vr = er.length; W < Vr; ++W)
7
+ M[W] = er[W], b[er.charCodeAt(W)] = W;
8
+ b[45] = 62;
9
+ b[95] = 63;
10
+ function Er(h) {
11
+ var f = h.length;
12
+ if (f % 4 > 0)
38
13
  throw new Error("Invalid string. Length must be a multiple of 4");
39
- var s = f.indexOf("=");
40
- s === -1 && (s = h);
41
- var y = s === h ? 0 : 4 - s % 4;
42
- return [s, y];
14
+ var p = h.indexOf("=");
15
+ p === -1 && (p = f);
16
+ var x = p === f ? 0 : 4 - p % 4;
17
+ return [p, x];
43
18
  }
44
- function zr(f) {
45
- var h = dr(f), s = h[0], y = h[1];
46
- return (s + y) * 3 / 4 - y;
19
+ function Jr(h) {
20
+ var f = Er(h), p = f[0], x = f[1];
21
+ return (p + x) * 3 / 4 - x;
47
22
  }
48
- function Vr(f, h, s) {
49
- return (h + s) * 3 / 4 - s;
23
+ function Qr(h, f, p) {
24
+ return (f + p) * 3 / 4 - p;
50
25
  }
51
- function Xr(f) {
52
- var h, s = dr(f), y = s[0], w = s[1], a = new qr(Vr(f, y, w)), p = 0, o = w > 0 ? y - 4 : y, d;
53
- for (d = 0; d < o; d += 4)
54
- h = R[f.charCodeAt(d)] << 18 | R[f.charCodeAt(d + 1)] << 12 | R[f.charCodeAt(d + 2)] << 6 | R[f.charCodeAt(d + 3)], a[p++] = h >> 16 & 255, a[p++] = h >> 8 & 255, a[p++] = h & 255;
55
- return w === 2 && (h = R[f.charCodeAt(d)] << 2 | R[f.charCodeAt(d + 1)] >> 4, a[p++] = h & 255), w === 1 && (h = R[f.charCodeAt(d)] << 10 | R[f.charCodeAt(d + 1)] << 4 | R[f.charCodeAt(d + 2)] >> 2, a[p++] = h >> 8 & 255, a[p++] = h & 255), a;
26
+ function Kr(h) {
27
+ var f, p = Er(h), x = p[0], w = p[1], s = new Hr(Qr(h, x, w)), l = 0, I = w > 0 ? x - 4 : x, B;
28
+ for (B = 0; B < I; B += 4)
29
+ f = b[h.charCodeAt(B)] << 18 | b[h.charCodeAt(B + 1)] << 12 | b[h.charCodeAt(B + 2)] << 6 | b[h.charCodeAt(B + 3)], s[l++] = f >> 16 & 255, s[l++] = f >> 8 & 255, s[l++] = f & 255;
30
+ return w === 2 && (f = b[h.charCodeAt(B)] << 2 | b[h.charCodeAt(B + 1)] >> 4, s[l++] = f & 255), w === 1 && (f = b[h.charCodeAt(B)] << 10 | b[h.charCodeAt(B + 1)] << 4 | b[h.charCodeAt(B + 2)] >> 2, s[l++] = f >> 8 & 255, s[l++] = f & 255), s;
56
31
  }
57
- function Jr(f) {
58
- return L[f >> 18 & 63] + L[f >> 12 & 63] + L[f >> 6 & 63] + L[f & 63];
32
+ function Zr(h) {
33
+ return M[h >> 18 & 63] + M[h >> 12 & 63] + M[h >> 6 & 63] + M[h & 63];
59
34
  }
60
- function Qr(f, h, s) {
61
- for (var y, w = [], a = h; a < s; a += 3)
62
- y = (f[a] << 16 & 16711680) + (f[a + 1] << 8 & 65280) + (f[a + 2] & 255), w.push(Jr(y));
35
+ function vr(h, f, p) {
36
+ for (var x, w = [], s = f; s < p; s += 3)
37
+ x = (h[s] << 16 & 16711680) + (h[s + 1] << 8 & 65280) + (h[s + 2] & 255), w.push(Zr(x));
63
38
  return w.join("");
64
39
  }
65
- function Kr(f) {
66
- for (var h, s = f.length, y = s % 3, w = [], a = 16383, p = 0, o = s - y; p < o; p += a)
67
- w.push(Qr(f, p, p + a > o ? o : p + a));
68
- return y === 1 ? (h = f[s - 1], w.push(
69
- L[h >> 2] + L[h << 4 & 63] + "=="
70
- )) : y === 2 && (h = (f[s - 2] << 8) + f[s - 1], w.push(
71
- L[h >> 10] + L[h >> 4 & 63] + L[h << 2 & 63] + "="
40
+ function rt(h) {
41
+ for (var f, p = h.length, x = p % 3, w = [], s = 16383, l = 0, I = p - x; l < I; l += s)
42
+ w.push(vr(h, l, l + s > I ? I : l + s));
43
+ return x === 1 ? (f = h[p - 1], w.push(
44
+ M[f >> 2] + M[f << 4 & 63] + "=="
45
+ )) : x === 2 && (f = (h[p - 2] << 8) + h[p - 1], w.push(
46
+ M[f >> 10] + M[f >> 4 & 63] + M[f << 2 & 63] + "="
72
47
  )), w.join("");
73
48
  }
74
- var er = {};
49
+ var or = {};
75
50
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
76
- er.read = function(f, h, s, y, w) {
77
- var a, p, o = w * 8 - y - 1, d = (1 << o) - 1, C = d >> 1, F = -7, A = s ? w - 1 : 0, k = s ? -1 : 1, U = f[h + A];
78
- for (A += k, a = U & (1 << -F) - 1, U >>= -F, F += o; F > 0; a = a * 256 + f[h + A], A += k, F -= 8)
51
+ or.read = function(h, f, p, x, w) {
52
+ var s, l, I = w * 8 - x - 1, B = (1 << I) - 1, A = B >> 1, o = -7, U = p ? w - 1 : 0, k = p ? -1 : 1, C = h[f + U];
53
+ for (U += k, s = C & (1 << -o) - 1, C >>= -o, o += I; o > 0; s = s * 256 + h[f + U], U += k, o -= 8)
79
54
  ;
80
- for (p = a & (1 << -F) - 1, a >>= -F, F += y; F > 0; p = p * 256 + f[h + A], A += k, F -= 8)
55
+ for (l = s & (1 << -o) - 1, s >>= -o, o += x; o > 0; l = l * 256 + h[f + U], U += k, o -= 8)
81
56
  ;
82
- if (a === 0)
83
- a = 1 - C;
57
+ if (s === 0)
58
+ s = 1 - A;
84
59
  else {
85
- if (a === d)
86
- return p ? NaN : (U ? -1 : 1) * (1 / 0);
87
- p = p + Math.pow(2, y), a = a - C;
60
+ if (s === B)
61
+ return l ? NaN : (C ? -1 : 1) * (1 / 0);
62
+ l = l + Math.pow(2, x), s = s - A;
88
63
  }
89
- return (U ? -1 : 1) * p * Math.pow(2, a - y);
64
+ return (C ? -1 : 1) * l * Math.pow(2, s - x);
90
65
  };
91
- er.write = function(f, h, s, y, w, a) {
92
- var p, o, d, C = a * 8 - w - 1, F = (1 << C) - 1, A = F >> 1, k = w === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, U = y ? 0 : a - 1, Y = y ? 1 : -1, q = h < 0 || h === 0 && 1 / h < 0 ? 1 : 0;
93
- for (h = Math.abs(h), isNaN(h) || h === 1 / 0 ? (o = isNaN(h) ? 1 : 0, p = F) : (p = Math.floor(Math.log(h) / Math.LN2), h * (d = Math.pow(2, -p)) < 1 && (p--, d *= 2), p + A >= 1 ? h += k / d : h += k * Math.pow(2, 1 - A), h * d >= 2 && (p++, d /= 2), p + A >= F ? (o = 0, p = F) : p + A >= 1 ? (o = (h * d - 1) * Math.pow(2, w), p = p + A) : (o = h * Math.pow(2, A - 1) * Math.pow(2, w), p = 0)); w >= 8; f[s + U] = o & 255, U += Y, o /= 256, w -= 8)
66
+ or.write = function(h, f, p, x, w, s) {
67
+ var l, I, B, A = s * 8 - w - 1, o = (1 << A) - 1, U = o >> 1, k = w === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = x ? 0 : s - 1, P = x ? 1 : -1, J = f < 0 || f === 0 && 1 / f < 0 ? 1 : 0;
68
+ for (f = Math.abs(f), isNaN(f) || f === 1 / 0 ? (I = isNaN(f) ? 1 : 0, l = o) : (l = Math.floor(Math.log(f) / Math.LN2), f * (B = Math.pow(2, -l)) < 1 && (l--, B *= 2), l + U >= 1 ? f += k / B : f += k * Math.pow(2, 1 - U), f * B >= 2 && (l++, B /= 2), l + U >= o ? (I = 0, l = o) : l + U >= 1 ? (I = (f * B - 1) * Math.pow(2, w), l = l + U) : (I = f * Math.pow(2, U - 1) * Math.pow(2, w), l = 0)); w >= 8; h[p + C] = I & 255, C += P, I /= 256, w -= 8)
94
69
  ;
95
- for (p = p << w | o, C += w; C > 0; f[s + U] = p & 255, U += Y, p /= 256, C -= 8)
70
+ for (l = l << w | I, A += w; A > 0; h[p + C] = l & 255, C += P, l /= 256, A -= 8)
96
71
  ;
97
- f[s + U - Y] |= q * 128;
72
+ h[p + C - P] |= J * 128;
98
73
  };
99
74
  /*!
100
75
  * The buffer module from node.js, for the browser.
@@ -102,19 +77,21 @@ er.write = function(f, h, s, y, w, a) {
102
77
  * @author Feross Aboukhadijeh <https://feross.org>
103
78
  * @license MIT
104
79
  */
105
- (function(f) {
106
- const h = X, s = er, y = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
107
- f.Buffer = o, f.SlowBuffer = Fr, f.INSPECT_MAX_BYTES = 50;
80
+ (function(h) {
81
+ const f = V, p = or, x = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
82
+ h.Buffer = o, h.SlowBuffer = Rr, h.INSPECT_MAX_BYTES = 50;
108
83
  const w = 2147483647;
109
- f.kMaxLength = w, o.TYPED_ARRAY_SUPPORT = a(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
84
+ h.kMaxLength = w;
85
+ const { Uint8Array: s, ArrayBuffer: l, SharedArrayBuffer: I } = globalThis;
86
+ o.TYPED_ARRAY_SUPPORT = B(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
110
87
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
111
88
  );
112
- function a() {
89
+ function B() {
113
90
  try {
114
- const e = new Uint8Array(1), r = { foo: function() {
91
+ const e = new s(1), r = { foo: function() {
115
92
  return 42;
116
93
  } };
117
- return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(e, r), e.foo() === 42;
94
+ return Object.setPrototypeOf(r, s.prototype), Object.setPrototypeOf(e, r), e.foo() === 42;
118
95
  } catch {
119
96
  return !1;
120
97
  }
@@ -132,10 +109,10 @@ er.write = function(f, h, s, y, w, a) {
132
109
  return this.byteOffset;
133
110
  }
134
111
  });
135
- function p(e) {
112
+ function A(e) {
136
113
  if (e > w)
137
114
  throw new RangeError('The value "' + e + '" is invalid for option "size"');
138
- const r = new Uint8Array(e);
115
+ const r = new s(e);
139
116
  return Object.setPrototypeOf(r, o.prototype), r;
140
117
  }
141
118
  function o(e, r, t) {
@@ -144,22 +121,22 @@ er.write = function(f, h, s, y, w, a) {
144
121
  throw new TypeError(
145
122
  'The "string" argument must be of type string. Received type number'
146
123
  );
147
- return A(e);
124
+ return P(e);
148
125
  }
149
- return d(e, r, t);
126
+ return U(e, r, t);
150
127
  }
151
128
  o.poolSize = 8192;
152
- function d(e, r, t) {
129
+ function U(e, r, t) {
153
130
  if (typeof e == "string")
154
- return k(e, r);
155
- if (ArrayBuffer.isView(e))
156
- return Y(e);
131
+ return J(e, r);
132
+ if (l.isView(e))
133
+ return Ar(e);
157
134
  if (e == null)
158
135
  throw new TypeError(
159
136
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e
160
137
  );
161
- if (b(e, ArrayBuffer) || e && b(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (b(e, SharedArrayBuffer) || e && b(e.buffer, SharedArrayBuffer)))
162
- return q(e, r, t);
138
+ if (S(e, l) || e && S(e.buffer, l) || typeof I < "u" && (S(e, I) || e && S(e.buffer, I)))
139
+ return K(e, r, t);
163
140
  if (typeof e == "number")
164
141
  throw new TypeError(
165
142
  'The "value" argument must not be of type number. Received type number'
@@ -167,7 +144,7 @@ er.write = function(f, h, s, y, w, a) {
167
144
  const n = e.valueOf && e.valueOf();
168
145
  if (n != null && n !== e)
169
146
  return o.from(n, r, t);
170
- const i = Ir(e);
147
+ const i = Ur(e);
171
148
  if (i)
172
149
  return i;
173
150
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function")
@@ -177,79 +154,79 @@ er.write = function(f, h, s, y, w, a) {
177
154
  );
178
155
  }
179
156
  o.from = function(e, r, t) {
180
- return d(e, r, t);
181
- }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
182
- function C(e) {
157
+ return U(e, r, t);
158
+ }, Object.setPrototypeOf(o.prototype, s.prototype), Object.setPrototypeOf(o, s);
159
+ function k(e) {
183
160
  if (typeof e != "number")
184
161
  throw new TypeError('"size" argument must be of type number');
185
162
  if (e < 0)
186
163
  throw new RangeError('The value "' + e + '" is invalid for option "size"');
187
164
  }
188
- function F(e, r, t) {
189
- return C(e), e <= 0 ? p(e) : r !== void 0 ? typeof t == "string" ? p(e).fill(r, t) : p(e).fill(r) : p(e);
165
+ function C(e, r, t) {
166
+ return k(e), e <= 0 ? A(e) : r !== void 0 ? typeof t == "string" ? A(e).fill(r, t) : A(e).fill(r) : A(e);
190
167
  }
191
168
  o.alloc = function(e, r, t) {
192
- return F(e, r, t);
169
+ return C(e, r, t);
193
170
  };
194
- function A(e) {
195
- return C(e), p(e < 0 ? 0 : J(e) | 0);
171
+ function P(e) {
172
+ return k(e), A(e < 0 ? 0 : Z(e) | 0);
196
173
  }
197
174
  o.allocUnsafe = function(e) {
198
- return A(e);
175
+ return P(e);
199
176
  }, o.allocUnsafeSlow = function(e) {
200
- return A(e);
177
+ return P(e);
201
178
  };
202
- function k(e, r) {
179
+ function J(e, r) {
203
180
  if ((typeof r != "string" || r === "") && (r = "utf8"), !o.isEncoding(r))
204
181
  throw new TypeError("Unknown encoding: " + r);
205
- const t = nr(e, r) | 0;
206
- let n = p(t);
182
+ const t = ur(e, r) | 0;
183
+ let n = A(t);
207
184
  const i = n.write(e, r);
208
185
  return i !== t && (n = n.slice(0, i)), n;
209
186
  }
210
- function U(e) {
211
- const r = e.length < 0 ? 0 : J(e.length) | 0, t = p(r);
187
+ function Q(e) {
188
+ const r = e.length < 0 ? 0 : Z(e.length) | 0, t = A(r);
212
189
  for (let n = 0; n < r; n += 1)
213
190
  t[n] = e[n] & 255;
214
191
  return t;
215
192
  }
216
- function Y(e) {
217
- if (b(e, Uint8Array)) {
218
- const r = new Uint8Array(e);
219
- return q(r.buffer, r.byteOffset, r.byteLength);
193
+ function Ar(e) {
194
+ if (S(e, s)) {
195
+ const r = new s(e);
196
+ return K(r.buffer, r.byteOffset, r.byteLength);
220
197
  }
221
- return U(e);
198
+ return Q(e);
222
199
  }
223
- function q(e, r, t) {
200
+ function K(e, r, t) {
224
201
  if (r < 0 || e.byteLength < r)
225
202
  throw new RangeError('"offset" is outside of buffer bounds');
226
203
  if (e.byteLength < r + (t || 0))
227
204
  throw new RangeError('"length" is outside of buffer bounds');
228
205
  let n;
229
- return r === void 0 && t === void 0 ? n = new Uint8Array(e) : t === void 0 ? n = new Uint8Array(e, r) : n = new Uint8Array(e, r, t), Object.setPrototypeOf(n, o.prototype), n;
206
+ return r === void 0 && t === void 0 ? n = new s(e) : t === void 0 ? n = new s(e, r) : n = new s(e, r, t), Object.setPrototypeOf(n, o.prototype), n;
230
207
  }
231
- function Ir(e) {
208
+ function Ur(e) {
232
209
  if (o.isBuffer(e)) {
233
- const r = J(e.length) | 0, t = p(r);
210
+ const r = Z(e.length) | 0, t = A(r);
234
211
  return t.length === 0 || e.copy(t, 0, 0, r), t;
235
212
  }
236
213
  if (e.length !== void 0)
237
- return typeof e.length != "number" || Z(e.length) ? p(0) : U(e);
214
+ return typeof e.length != "number" || tr(e.length) ? A(0) : Q(e);
238
215
  if (e.type === "Buffer" && Array.isArray(e.data))
239
- return U(e.data);
216
+ return Q(e.data);
240
217
  }
241
- function J(e) {
218
+ function Z(e) {
242
219
  if (e >= w)
243
220
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes");
244
221
  return e | 0;
245
222
  }
246
- function Fr(e) {
223
+ function Rr(e) {
247
224
  return +e != e && (e = 0), o.alloc(+e);
248
225
  }
249
226
  o.isBuffer = function(r) {
250
227
  return r != null && r._isBuffer === !0 && r !== o.prototype;
251
228
  }, o.compare = function(r, t) {
252
- if (b(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), b(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(r) || !o.isBuffer(t))
229
+ if (S(r, s) && (r = o.from(r, r.offset, r.byteLength)), S(t, s) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(r) || !o.isBuffer(t))
253
230
  throw new TypeError(
254
231
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
255
232
  );
@@ -292,8 +269,8 @@ er.write = function(f, h, s, y, w, a) {
292
269
  let u = 0;
293
270
  for (n = 0; n < r.length; ++n) {
294
271
  let c = r[n];
295
- if (b(c, Uint8Array))
296
- u + c.length > i.length ? (o.isBuffer(c) || (c = o.from(c)), c.copy(i, u)) : Uint8Array.prototype.set.call(
272
+ if (S(c, s))
273
+ u + c.length > i.length ? (o.isBuffer(c) || (c = o.from(c)), c.copy(i, u)) : s.prototype.set.call(
297
274
  i,
298
275
  c,
299
276
  u
@@ -306,10 +283,10 @@ er.write = function(f, h, s, y, w, a) {
306
283
  }
307
284
  return i;
308
285
  };
309
- function nr(e, r) {
286
+ function ur(e, r) {
310
287
  if (o.isBuffer(e))
311
288
  return e.length;
312
- if (ArrayBuffer.isView(e) || b(e, ArrayBuffer))
289
+ if (l.isView(e) || S(e, l))
313
290
  return e.byteLength;
314
291
  if (typeof e != "string")
315
292
  throw new TypeError(
@@ -327,7 +304,7 @@ er.write = function(f, h, s, y, w, a) {
327
304
  return t;
328
305
  case "utf8":
329
306
  case "utf-8":
330
- return K(e).length;
307
+ return rr(e).length;
331
308
  case "ucs2":
332
309
  case "ucs-2":
333
310
  case "utf16le":
@@ -336,37 +313,37 @@ er.write = function(f, h, s, y, w, a) {
336
313
  case "hex":
337
314
  return t >>> 1;
338
315
  case "base64":
339
- return wr(e).length;
316
+ return dr(e).length;
340
317
  default:
341
318
  if (i)
342
- return n ? -1 : K(e).length;
319
+ return n ? -1 : rr(e).length;
343
320
  r = ("" + r).toLowerCase(), i = !0;
344
321
  }
345
322
  }
346
- o.byteLength = nr;
347
- function Ar(e, r, t) {
323
+ o.byteLength = ur;
324
+ function Cr(e, r, t) {
348
325
  let n = !1;
349
326
  if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, r >>>= 0, t <= r))
350
327
  return "";
351
328
  for (e || (e = "utf8"); ; )
352
329
  switch (e) {
353
330
  case "hex":
354
- return Nr(this, r, t);
331
+ return Pr(this, r, t);
355
332
  case "utf8":
356
333
  case "utf-8":
357
- return ur(this, r, t);
334
+ return fr(this, r, t);
358
335
  case "ascii":
359
- return Lr(this, r, t);
336
+ return Dr(this, r, t);
360
337
  case "latin1":
361
338
  case "binary":
362
- return Mr(this, r, t);
339
+ return $r(this, r, t);
363
340
  case "base64":
364
- return _r(this, r, t);
341
+ return kr(this, r, t);
365
342
  case "ucs2":
366
343
  case "ucs-2":
367
344
  case "utf16le":
368
345
  case "utf-16le":
369
- return kr(this, r, t);
346
+ return Or(this, r, t);
370
347
  default:
371
348
  if (n)
372
349
  throw new TypeError("Unknown encoding: " + e);
@@ -374,7 +351,7 @@ er.write = function(f, h, s, y, w, a) {
374
351
  }
375
352
  }
376
353
  o.prototype._isBuffer = !0;
377
- function P(e, r, t) {
354
+ function O(e, r, t) {
378
355
  const n = e[r];
379
356
  e[r] = e[t], e[t] = n;
380
357
  }
@@ -383,35 +360,35 @@ er.write = function(f, h, s, y, w, a) {
383
360
  if (r % 2 !== 0)
384
361
  throw new RangeError("Buffer size must be a multiple of 16-bits");
385
362
  for (let t = 0; t < r; t += 2)
386
- P(this, t, t + 1);
363
+ O(this, t, t + 1);
387
364
  return this;
388
365
  }, o.prototype.swap32 = function() {
389
366
  const r = this.length;
390
367
  if (r % 4 !== 0)
391
368
  throw new RangeError("Buffer size must be a multiple of 32-bits");
392
369
  for (let t = 0; t < r; t += 4)
393
- P(this, t, t + 3), P(this, t + 1, t + 2);
370
+ O(this, t, t + 3), O(this, t + 1, t + 2);
394
371
  return this;
395
372
  }, o.prototype.swap64 = function() {
396
373
  const r = this.length;
397
374
  if (r % 8 !== 0)
398
375
  throw new RangeError("Buffer size must be a multiple of 64-bits");
399
376
  for (let t = 0; t < r; t += 8)
400
- P(this, t, t + 7), P(this, t + 1, t + 6), P(this, t + 2, t + 5), P(this, t + 3, t + 4);
377
+ O(this, t, t + 7), O(this, t + 1, t + 6), O(this, t + 2, t + 5), O(this, t + 3, t + 4);
401
378
  return this;
402
379
  }, o.prototype.toString = function() {
403
380
  const r = this.length;
404
- return r === 0 ? "" : arguments.length === 0 ? ur(this, 0, r) : Ar.apply(this, arguments);
381
+ return r === 0 ? "" : arguments.length === 0 ? fr(this, 0, r) : Cr.apply(this, arguments);
405
382
  }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(r) {
406
383
  if (!o.isBuffer(r))
407
384
  throw new TypeError("Argument must be a Buffer");
408
385
  return this === r ? !0 : o.compare(this, r) === 0;
409
386
  }, o.prototype.inspect = function() {
410
387
  let r = "";
411
- const t = f.INSPECT_MAX_BYTES;
388
+ const t = h.INSPECT_MAX_BYTES;
412
389
  return r = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (r += " ... "), "<Buffer " + r + ">";
413
- }, y && (o.prototype[y] = o.prototype.inspect), o.prototype.compare = function(r, t, n, i, u) {
414
- if (b(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r))
390
+ }, x && (o.prototype[x] = o.prototype.inspect), o.prototype.compare = function(r, t, n, i, u) {
391
+ if (S(r, s) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r))
415
392
  throw new TypeError(
416
393
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
417
394
  );
@@ -425,19 +402,19 @@ er.write = function(f, h, s, y, w, a) {
425
402
  return 1;
426
403
  if (t >>>= 0, n >>>= 0, i >>>= 0, u >>>= 0, this === r)
427
404
  return 0;
428
- let c = u - i, l = n - t;
429
- const E = Math.min(c, l), B = this.slice(i, u), g = r.slice(t, n);
430
- for (let x = 0; x < E; ++x)
431
- if (B[x] !== g[x]) {
432
- c = B[x], l = g[x];
405
+ let c = u - i, a = n - t;
406
+ const E = Math.min(c, a), d = this.slice(i, u), g = r.slice(t, n);
407
+ for (let y = 0; y < E; ++y)
408
+ if (d[y] !== g[y]) {
409
+ c = d[y], a = g[y];
433
410
  break;
434
411
  }
435
- return c < l ? -1 : l < c ? 1 : 0;
412
+ return c < a ? -1 : a < c ? 1 : 0;
436
413
  };
437
- function ir(e, r, t, n, i) {
414
+ function cr(e, r, t, n, i) {
438
415
  if (e.length === 0)
439
416
  return -1;
440
- if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, Z(t) && (t = i ? 0 : e.length - 1), t < 0 && (t = e.length + t), t >= e.length) {
417
+ if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, tr(t) && (t = i ? 0 : e.length - 1), t < 0 && (t = e.length + t), t >= e.length) {
441
418
  if (i)
442
419
  return -1;
443
420
  t = e.length - 1;
@@ -447,51 +424,51 @@ er.write = function(f, h, s, y, w, a) {
447
424
  else
448
425
  return -1;
449
426
  if (typeof r == "string" && (r = o.from(r, n)), o.isBuffer(r))
450
- return r.length === 0 ? -1 : or(e, r, t, n, i);
427
+ return r.length === 0 ? -1 : hr(e, r, t, n, i);
451
428
  if (typeof r == "number")
452
- return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(e, r, t) : Uint8Array.prototype.lastIndexOf.call(e, r, t) : or(e, [r], t, n, i);
429
+ return r = r & 255, typeof s.prototype.indexOf == "function" ? i ? s.prototype.indexOf.call(e, r, t) : s.prototype.lastIndexOf.call(e, r, t) : hr(e, [r], t, n, i);
453
430
  throw new TypeError("val must be string, number or Buffer");
454
431
  }
455
- function or(e, r, t, n, i) {
456
- let u = 1, c = e.length, l = r.length;
432
+ function hr(e, r, t, n, i) {
433
+ let u = 1, c = e.length, a = r.length;
457
434
  if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
458
435
  if (e.length < 2 || r.length < 2)
459
436
  return -1;
460
- u = 2, c /= 2, l /= 2, t /= 2;
437
+ u = 2, c /= 2, a /= 2, t /= 2;
461
438
  }
462
- function E(g, x) {
463
- return u === 1 ? g[x] : g.readUInt16BE(x * u);
439
+ function E(g, y) {
440
+ return u === 1 ? g[y] : g.readUInt16BE(y * u);
464
441
  }
465
- let B;
442
+ let d;
466
443
  if (i) {
467
444
  let g = -1;
468
- for (B = t; B < c; B++)
469
- if (E(e, B) === E(r, g === -1 ? 0 : B - g)) {
470
- if (g === -1 && (g = B), B - g + 1 === l)
445
+ for (d = t; d < c; d++)
446
+ if (E(e, d) === E(r, g === -1 ? 0 : d - g)) {
447
+ if (g === -1 && (g = d), d - g + 1 === a)
471
448
  return g * u;
472
449
  } else
473
- g !== -1 && (B -= B - g), g = -1;
450
+ g !== -1 && (d -= d - g), g = -1;
474
451
  } else
475
- for (t + l > c && (t = c - l), B = t; B >= 0; B--) {
452
+ for (t + a > c && (t = c - a), d = t; d >= 0; d--) {
476
453
  let g = !0;
477
- for (let x = 0; x < l; x++)
478
- if (E(e, B + x) !== E(r, x)) {
454
+ for (let y = 0; y < a; y++)
455
+ if (E(e, d + y) !== E(r, y)) {
479
456
  g = !1;
480
457
  break;
481
458
  }
482
459
  if (g)
483
- return B;
460
+ return d;
484
461
  }
485
462
  return -1;
486
463
  }
487
464
  o.prototype.includes = function(r, t, n) {
488
465
  return this.indexOf(r, t, n) !== -1;
489
466
  }, o.prototype.indexOf = function(r, t, n) {
490
- return ir(this, r, t, n, !0);
467
+ return cr(this, r, t, n, !0);
491
468
  }, o.prototype.lastIndexOf = function(r, t, n) {
492
- return ir(this, r, t, n, !1);
469
+ return cr(this, r, t, n, !1);
493
470
  };
494
- function Ur(e, r, t, n) {
471
+ function br(e, r, t, n) {
495
472
  t = Number(t) || 0;
496
473
  const i = e.length - t;
497
474
  n ? (n = Number(n), n > i && (n = i)) : n = i;
@@ -499,24 +476,24 @@ er.write = function(f, h, s, y, w, a) {
499
476
  n > u / 2 && (n = u / 2);
500
477
  let c;
501
478
  for (c = 0; c < n; ++c) {
502
- const l = parseInt(r.substr(c * 2, 2), 16);
503
- if (Z(l))
479
+ const a = parseInt(r.substr(c * 2, 2), 16);
480
+ if (tr(a))
504
481
  return c;
505
- e[t + c] = l;
482
+ e[t + c] = a;
506
483
  }
507
484
  return c;
508
485
  }
509
- function Tr(e, r, t, n) {
510
- return z(K(r, e.length - t), e, t, n);
486
+ function Sr(e, r, t, n) {
487
+ return z(rr(r, e.length - t), e, t, n);
511
488
  }
512
- function Rr(e, r, t, n) {
513
- return z(Or(r), e, t, n);
489
+ function _r(e, r, t, n) {
490
+ return z(Wr(r), e, t, n);
514
491
  }
515
- function Cr(e, r, t, n) {
516
- return z(wr(r), e, t, n);
492
+ function Lr(e, r, t, n) {
493
+ return z(dr(r), e, t, n);
517
494
  }
518
- function br(e, r, t, n) {
519
- return z(jr(r, e.length - t), e, t, n);
495
+ function Mr(e, r, t, n) {
496
+ return z(qr(r, e.length - t), e, t, n);
520
497
  }
521
498
  o.prototype.write = function(r, t, n, i) {
522
499
  if (t === void 0)
@@ -537,21 +514,21 @@ er.write = function(f, h, s, y, w, a) {
537
514
  for (; ; )
538
515
  switch (i) {
539
516
  case "hex":
540
- return Ur(this, r, t, n);
517
+ return br(this, r, t, n);
541
518
  case "utf8":
542
519
  case "utf-8":
543
- return Tr(this, r, t, n);
520
+ return Sr(this, r, t, n);
544
521
  case "ascii":
545
522
  case "latin1":
546
523
  case "binary":
547
- return Rr(this, r, t, n);
524
+ return _r(this, r, t, n);
548
525
  case "base64":
549
- return Cr(this, r, t, n);
526
+ return Lr(this, r, t, n);
550
527
  case "ucs2":
551
528
  case "ucs-2":
552
529
  case "utf16le":
553
530
  case "utf-16le":
554
- return br(this, r, t, n);
531
+ return Mr(this, r, t, n);
555
532
  default:
556
533
  if (c)
557
534
  throw new TypeError("Unknown encoding: " + i);
@@ -563,72 +540,72 @@ er.write = function(f, h, s, y, w, a) {
563
540
  data: Array.prototype.slice.call(this._arr || this, 0)
564
541
  };
565
542
  };
566
- function _r(e, r, t) {
567
- return r === 0 && t === e.length ? h.fromByteArray(e) : h.fromByteArray(e.slice(r, t));
543
+ function kr(e, r, t) {
544
+ return r === 0 && t === e.length ? f.fromByteArray(e) : f.fromByteArray(e.slice(r, t));
568
545
  }
569
- function ur(e, r, t) {
546
+ function fr(e, r, t) {
570
547
  t = Math.min(e.length, t);
571
548
  const n = [];
572
549
  let i = r;
573
550
  for (; i < t; ) {
574
551
  const u = e[i];
575
- let c = null, l = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
576
- if (i + l <= t) {
577
- let E, B, g, x;
578
- switch (l) {
552
+ let c = null, a = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
553
+ if (i + a <= t) {
554
+ let E, d, g, y;
555
+ switch (a) {
579
556
  case 1:
580
557
  u < 128 && (c = u);
581
558
  break;
582
559
  case 2:
583
- E = e[i + 1], (E & 192) === 128 && (x = (u & 31) << 6 | E & 63, x > 127 && (c = x));
560
+ E = e[i + 1], (E & 192) === 128 && (y = (u & 31) << 6 | E & 63, y > 127 && (c = y));
584
561
  break;
585
562
  case 3:
586
- E = e[i + 1], B = e[i + 2], (E & 192) === 128 && (B & 192) === 128 && (x = (u & 15) << 12 | (E & 63) << 6 | B & 63, x > 2047 && (x < 55296 || x > 57343) && (c = x));
563
+ E = e[i + 1], d = e[i + 2], (E & 192) === 128 && (d & 192) === 128 && (y = (u & 15) << 12 | (E & 63) << 6 | d & 63, y > 2047 && (y < 55296 || y > 57343) && (c = y));
587
564
  break;
588
565
  case 4:
589
- E = e[i + 1], B = e[i + 2], g = e[i + 3], (E & 192) === 128 && (B & 192) === 128 && (g & 192) === 128 && (x = (u & 15) << 18 | (E & 63) << 12 | (B & 63) << 6 | g & 63, x > 65535 && x < 1114112 && (c = x));
566
+ E = e[i + 1], d = e[i + 2], g = e[i + 3], (E & 192) === 128 && (d & 192) === 128 && (g & 192) === 128 && (y = (u & 15) << 18 | (E & 63) << 12 | (d & 63) << 6 | g & 63, y > 65535 && y < 1114112 && (c = y));
590
567
  }
591
568
  }
592
- c === null ? (c = 65533, l = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), i += l;
569
+ c === null ? (c = 65533, a = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), i += a;
593
570
  }
594
- return Sr(n);
571
+ return Nr(n);
595
572
  }
596
- const cr = 4096;
597
- function Sr(e) {
573
+ const sr = 4096;
574
+ function Nr(e) {
598
575
  const r = e.length;
599
- if (r <= cr)
576
+ if (r <= sr)
600
577
  return String.fromCharCode.apply(String, e);
601
578
  let t = "", n = 0;
602
579
  for (; n < r; )
603
580
  t += String.fromCharCode.apply(
604
581
  String,
605
- e.slice(n, n += cr)
582
+ e.slice(n, n += sr)
606
583
  );
607
584
  return t;
608
585
  }
609
- function Lr(e, r, t) {
586
+ function Dr(e, r, t) {
610
587
  let n = "";
611
588
  t = Math.min(e.length, t);
612
589
  for (let i = r; i < t; ++i)
613
590
  n += String.fromCharCode(e[i] & 127);
614
591
  return n;
615
592
  }
616
- function Mr(e, r, t) {
593
+ function $r(e, r, t) {
617
594
  let n = "";
618
595
  t = Math.min(e.length, t);
619
596
  for (let i = r; i < t; ++i)
620
597
  n += String.fromCharCode(e[i]);
621
598
  return n;
622
599
  }
623
- function Nr(e, r, t) {
600
+ function Pr(e, r, t) {
624
601
  const n = e.length;
625
602
  (!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
626
603
  let i = "";
627
604
  for (let u = r; u < t; ++u)
628
- i += Gr[e[u]];
605
+ i += Xr[e[u]];
629
606
  return i;
630
607
  }
631
- function kr(e, r, t) {
608
+ function Or(e, r, t) {
632
609
  const n = e.slice(r, t);
633
610
  let i = "";
634
611
  for (let u = 0; u < n.length - 1; u += 2)
@@ -641,95 +618,95 @@ er.write = function(f, h, s, y, w, a) {
641
618
  const i = this.subarray(r, t);
642
619
  return Object.setPrototypeOf(i, o.prototype), i;
643
620
  };
644
- function I(e, r, t) {
621
+ function T(e, r, t) {
645
622
  if (e % 1 !== 0 || e < 0)
646
623
  throw new RangeError("offset is not uint");
647
624
  if (e + r > t)
648
625
  throw new RangeError("Trying to access beyond buffer length");
649
626
  }
650
627
  o.prototype.readUintLE = o.prototype.readUIntLE = function(r, t, n) {
651
- r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
628
+ r = r >>> 0, t = t >>> 0, n || T(r, t, this.length);
652
629
  let i = this[r], u = 1, c = 0;
653
630
  for (; ++c < t && (u *= 256); )
654
631
  i += this[r + c] * u;
655
632
  return i;
656
633
  }, o.prototype.readUintBE = o.prototype.readUIntBE = function(r, t, n) {
657
- r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
634
+ r = r >>> 0, t = t >>> 0, n || T(r, t, this.length);
658
635
  let i = this[r + --t], u = 1;
659
636
  for (; t > 0 && (u *= 256); )
660
637
  i += this[r + --t] * u;
661
638
  return i;
662
639
  }, o.prototype.readUint8 = o.prototype.readUInt8 = function(r, t) {
663
- return r = r >>> 0, t || I(r, 1, this.length), this[r];
640
+ return r = r >>> 0, t || T(r, 1, this.length), this[r];
664
641
  }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(r, t) {
665
- return r = r >>> 0, t || I(r, 2, this.length), this[r] | this[r + 1] << 8;
642
+ return r = r >>> 0, t || T(r, 2, this.length), this[r] | this[r + 1] << 8;
666
643
  }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(r, t) {
667
- return r = r >>> 0, t || I(r, 2, this.length), this[r] << 8 | this[r + 1];
644
+ return r = r >>> 0, t || T(r, 2, this.length), this[r] << 8 | this[r + 1];
668
645
  }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(r, t) {
669
- return r = r >>> 0, t || I(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
646
+ return r = r >>> 0, t || T(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
670
647
  }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(r, t) {
671
- return r = r >>> 0, t || I(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
672
- }, o.prototype.readBigUInt64LE = D(function(r) {
673
- r = r >>> 0, j(r, "offset");
648
+ return r = r >>> 0, t || T(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
649
+ }, o.prototype.readBigUInt64LE = $(function(r) {
650
+ r = r >>> 0, Y(r, "offset");
674
651
  const t = this[r], n = this[r + 7];
675
- (t === void 0 || n === void 0) && H(r, this.length - 8);
652
+ (t === void 0 || n === void 0) && X(r, this.length - 8);
676
653
  const i = t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, u = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + n * 2 ** 24;
677
654
  return BigInt(i) + (BigInt(u) << BigInt(32));
678
- }), o.prototype.readBigUInt64BE = D(function(r) {
679
- r = r >>> 0, j(r, "offset");
655
+ }), o.prototype.readBigUInt64BE = $(function(r) {
656
+ r = r >>> 0, Y(r, "offset");
680
657
  const t = this[r], n = this[r + 7];
681
- (t === void 0 || n === void 0) && H(r, this.length - 8);
658
+ (t === void 0 || n === void 0) && X(r, this.length - 8);
682
659
  const i = t * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], u = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n;
683
660
  return (BigInt(i) << BigInt(32)) + BigInt(u);
684
661
  }), o.prototype.readIntLE = function(r, t, n) {
685
- r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
662
+ r = r >>> 0, t = t >>> 0, n || T(r, t, this.length);
686
663
  let i = this[r], u = 1, c = 0;
687
664
  for (; ++c < t && (u *= 256); )
688
665
  i += this[r + c] * u;
689
666
  return u *= 128, i >= u && (i -= Math.pow(2, 8 * t)), i;
690
667
  }, o.prototype.readIntBE = function(r, t, n) {
691
- r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
668
+ r = r >>> 0, t = t >>> 0, n || T(r, t, this.length);
692
669
  let i = t, u = 1, c = this[r + --i];
693
670
  for (; i > 0 && (u *= 256); )
694
671
  c += this[r + --i] * u;
695
672
  return u *= 128, c >= u && (c -= Math.pow(2, 8 * t)), c;
696
673
  }, o.prototype.readInt8 = function(r, t) {
697
- return r = r >>> 0, t || I(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
674
+ return r = r >>> 0, t || T(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
698
675
  }, o.prototype.readInt16LE = function(r, t) {
699
- r = r >>> 0, t || I(r, 2, this.length);
676
+ r = r >>> 0, t || T(r, 2, this.length);
700
677
  const n = this[r] | this[r + 1] << 8;
701
678
  return n & 32768 ? n | 4294901760 : n;
702
679
  }, o.prototype.readInt16BE = function(r, t) {
703
- r = r >>> 0, t || I(r, 2, this.length);
680
+ r = r >>> 0, t || T(r, 2, this.length);
704
681
  const n = this[r + 1] | this[r] << 8;
705
682
  return n & 32768 ? n | 4294901760 : n;
706
683
  }, o.prototype.readInt32LE = function(r, t) {
707
- return r = r >>> 0, t || I(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
684
+ return r = r >>> 0, t || T(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
708
685
  }, o.prototype.readInt32BE = function(r, t) {
709
- return r = r >>> 0, t || I(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
710
- }, o.prototype.readBigInt64LE = D(function(r) {
711
- r = r >>> 0, j(r, "offset");
686
+ return r = r >>> 0, t || T(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
687
+ }, o.prototype.readBigInt64LE = $(function(r) {
688
+ r = r >>> 0, Y(r, "offset");
712
689
  const t = this[r], n = this[r + 7];
713
- (t === void 0 || n === void 0) && H(r, this.length - 8);
690
+ (t === void 0 || n === void 0) && X(r, this.length - 8);
714
691
  const i = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (n << 24);
715
692
  return (BigInt(i) << BigInt(32)) + BigInt(t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
716
- }), o.prototype.readBigInt64BE = D(function(r) {
717
- r = r >>> 0, j(r, "offset");
693
+ }), o.prototype.readBigInt64BE = $(function(r) {
694
+ r = r >>> 0, Y(r, "offset");
718
695
  const t = this[r], n = this[r + 7];
719
- (t === void 0 || n === void 0) && H(r, this.length - 8);
696
+ (t === void 0 || n === void 0) && X(r, this.length - 8);
720
697
  const i = (t << 24) + // Overflow
721
698
  this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
722
699
  return (BigInt(i) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n);
723
700
  }), o.prototype.readFloatLE = function(r, t) {
724
- return r = r >>> 0, t || I(r, 4, this.length), s.read(this, r, !0, 23, 4);
701
+ return r = r >>> 0, t || T(r, 4, this.length), p.read(this, r, !0, 23, 4);
725
702
  }, o.prototype.readFloatBE = function(r, t) {
726
- return r = r >>> 0, t || I(r, 4, this.length), s.read(this, r, !1, 23, 4);
703
+ return r = r >>> 0, t || T(r, 4, this.length), p.read(this, r, !1, 23, 4);
727
704
  }, o.prototype.readDoubleLE = function(r, t) {
728
- return r = r >>> 0, t || I(r, 8, this.length), s.read(this, r, !0, 52, 8);
705
+ return r = r >>> 0, t || T(r, 8, this.length), p.read(this, r, !0, 52, 8);
729
706
  }, o.prototype.readDoubleBE = function(r, t) {
730
- return r = r >>> 0, t || I(r, 8, this.length), s.read(this, r, !1, 52, 8);
707
+ return r = r >>> 0, t || T(r, 8, this.length), p.read(this, r, !1, 52, 8);
731
708
  };
732
- function T(e, r, t, n, i, u) {
709
+ function R(e, r, t, n, i, u) {
733
710
  if (!o.isBuffer(e))
734
711
  throw new TypeError('"buffer" argument must be a Buffer instance');
735
712
  if (r > i || r < u)
@@ -739,8 +716,8 @@ er.write = function(f, h, s, y, w, a) {
739
716
  }
740
717
  o.prototype.writeUintLE = o.prototype.writeUIntLE = function(r, t, n, i) {
741
718
  if (r = +r, t = t >>> 0, n = n >>> 0, !i) {
742
- const l = Math.pow(2, 8 * n) - 1;
743
- T(this, r, t, n, l, 0);
719
+ const a = Math.pow(2, 8 * n) - 1;
720
+ R(this, r, t, n, a, 0);
744
721
  }
745
722
  let u = 1, c = 0;
746
723
  for (this[t] = r & 255; ++c < n && (u *= 256); )
@@ -748,96 +725,96 @@ er.write = function(f, h, s, y, w, a) {
748
725
  return t + n;
749
726
  }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(r, t, n, i) {
750
727
  if (r = +r, t = t >>> 0, n = n >>> 0, !i) {
751
- const l = Math.pow(2, 8 * n) - 1;
752
- T(this, r, t, n, l, 0);
728
+ const a = Math.pow(2, 8 * n) - 1;
729
+ R(this, r, t, n, a, 0);
753
730
  }
754
731
  let u = n - 1, c = 1;
755
732
  for (this[t + u] = r & 255; --u >= 0 && (c *= 256); )
756
733
  this[t + u] = r / c & 255;
757
734
  return t + n;
758
735
  }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(r, t, n) {
759
- return r = +r, t = t >>> 0, n || T(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
736
+ return r = +r, t = t >>> 0, n || R(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
760
737
  }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(r, t, n) {
761
- return r = +r, t = t >>> 0, n || T(this, r, t, 2, 65535, 0), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
738
+ return r = +r, t = t >>> 0, n || R(this, r, t, 2, 65535, 0), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
762
739
  }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(r, t, n) {
763
- return r = +r, t = t >>> 0, n || T(this, r, t, 2, 65535, 0), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
740
+ return r = +r, t = t >>> 0, n || R(this, r, t, 2, 65535, 0), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
764
741
  }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(r, t, n) {
765
- return r = +r, t = t >>> 0, n || T(this, r, t, 4, 4294967295, 0), this[t + 3] = r >>> 24, this[t + 2] = r >>> 16, this[t + 1] = r >>> 8, this[t] = r & 255, t + 4;
742
+ return r = +r, t = t >>> 0, n || R(this, r, t, 4, 4294967295, 0), this[t + 3] = r >>> 24, this[t + 2] = r >>> 16, this[t + 1] = r >>> 8, this[t] = r & 255, t + 4;
766
743
  }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(r, t, n) {
767
- return r = +r, t = t >>> 0, n || T(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
744
+ return r = +r, t = t >>> 0, n || R(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
768
745
  };
769
- function fr(e, r, t, n, i) {
770
- yr(r, n, i, e, t, 7);
746
+ function lr(e, r, t, n, i) {
747
+ Br(r, n, i, e, t, 7);
771
748
  let u = Number(r & BigInt(4294967295));
772
749
  e[t++] = u, u = u >> 8, e[t++] = u, u = u >> 8, e[t++] = u, u = u >> 8, e[t++] = u;
773
750
  let c = Number(r >> BigInt(32) & BigInt(4294967295));
774
751
  return e[t++] = c, c = c >> 8, e[t++] = c, c = c >> 8, e[t++] = c, c = c >> 8, e[t++] = c, t;
775
752
  }
776
- function hr(e, r, t, n, i) {
777
- yr(r, n, i, e, t, 7);
753
+ function pr(e, r, t, n, i) {
754
+ Br(r, n, i, e, t, 7);
778
755
  let u = Number(r & BigInt(4294967295));
779
756
  e[t + 7] = u, u = u >> 8, e[t + 6] = u, u = u >> 8, e[t + 5] = u, u = u >> 8, e[t + 4] = u;
780
757
  let c = Number(r >> BigInt(32) & BigInt(4294967295));
781
758
  return e[t + 3] = c, c = c >> 8, e[t + 2] = c, c = c >> 8, e[t + 1] = c, c = c >> 8, e[t] = c, t + 8;
782
759
  }
783
- o.prototype.writeBigUInt64LE = D(function(r, t = 0) {
784
- return fr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
785
- }), o.prototype.writeBigUInt64BE = D(function(r, t = 0) {
786
- return hr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
760
+ o.prototype.writeBigUInt64LE = $(function(r, t = 0) {
761
+ return lr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
762
+ }), o.prototype.writeBigUInt64BE = $(function(r, t = 0) {
763
+ return pr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
787
764
  }), o.prototype.writeIntLE = function(r, t, n, i) {
788
765
  if (r = +r, t = t >>> 0, !i) {
789
766
  const E = Math.pow(2, 8 * n - 1);
790
- T(this, r, t, n, E - 1, -E);
767
+ R(this, r, t, n, E - 1, -E);
791
768
  }
792
- let u = 0, c = 1, l = 0;
769
+ let u = 0, c = 1, a = 0;
793
770
  for (this[t] = r & 255; ++u < n && (c *= 256); )
794
- r < 0 && l === 0 && this[t + u - 1] !== 0 && (l = 1), this[t + u] = (r / c >> 0) - l & 255;
771
+ r < 0 && a === 0 && this[t + u - 1] !== 0 && (a = 1), this[t + u] = (r / c >> 0) - a & 255;
795
772
  return t + n;
796
773
  }, o.prototype.writeIntBE = function(r, t, n, i) {
797
774
  if (r = +r, t = t >>> 0, !i) {
798
775
  const E = Math.pow(2, 8 * n - 1);
799
- T(this, r, t, n, E - 1, -E);
776
+ R(this, r, t, n, E - 1, -E);
800
777
  }
801
- let u = n - 1, c = 1, l = 0;
778
+ let u = n - 1, c = 1, a = 0;
802
779
  for (this[t + u] = r & 255; --u >= 0 && (c *= 256); )
803
- r < 0 && l === 0 && this[t + u + 1] !== 0 && (l = 1), this[t + u] = (r / c >> 0) - l & 255;
780
+ r < 0 && a === 0 && this[t + u + 1] !== 0 && (a = 1), this[t + u] = (r / c >> 0) - a & 255;
804
781
  return t + n;
805
782
  }, o.prototype.writeInt8 = function(r, t, n) {
806
- return r = +r, t = t >>> 0, n || T(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
783
+ return r = +r, t = t >>> 0, n || R(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
807
784
  }, o.prototype.writeInt16LE = function(r, t, n) {
808
- return r = +r, t = t >>> 0, n || T(this, r, t, 2, 32767, -32768), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
785
+ return r = +r, t = t >>> 0, n || R(this, r, t, 2, 32767, -32768), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
809
786
  }, o.prototype.writeInt16BE = function(r, t, n) {
810
- return r = +r, t = t >>> 0, n || T(this, r, t, 2, 32767, -32768), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
787
+ return r = +r, t = t >>> 0, n || R(this, r, t, 2, 32767, -32768), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
811
788
  }, o.prototype.writeInt32LE = function(r, t, n) {
812
- return r = +r, t = t >>> 0, n || T(this, r, t, 4, 2147483647, -2147483648), this[t] = r & 255, this[t + 1] = r >>> 8, this[t + 2] = r >>> 16, this[t + 3] = r >>> 24, t + 4;
789
+ return r = +r, t = t >>> 0, n || R(this, r, t, 4, 2147483647, -2147483648), this[t] = r & 255, this[t + 1] = r >>> 8, this[t + 2] = r >>> 16, this[t + 3] = r >>> 24, t + 4;
813
790
  }, o.prototype.writeInt32BE = function(r, t, n) {
814
- return r = +r, t = t >>> 0, n || T(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
815
- }, o.prototype.writeBigInt64LE = D(function(r, t = 0) {
816
- return fr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
817
- }), o.prototype.writeBigInt64BE = D(function(r, t = 0) {
818
- return hr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
791
+ return r = +r, t = t >>> 0, n || R(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
792
+ }, o.prototype.writeBigInt64LE = $(function(r, t = 0) {
793
+ return lr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
794
+ }), o.prototype.writeBigInt64BE = $(function(r, t = 0) {
795
+ return pr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
819
796
  });
820
- function sr(e, r, t, n, i, u) {
797
+ function ar(e, r, t, n, i, u) {
821
798
  if (t + n > e.length)
822
799
  throw new RangeError("Index out of range");
823
800
  if (t < 0)
824
801
  throw new RangeError("Index out of range");
825
802
  }
826
- function pr(e, r, t, n, i) {
827
- return r = +r, t = t >>> 0, i || sr(e, r, t, 4), s.write(e, r, t, n, 23, 4), t + 4;
803
+ function wr(e, r, t, n, i) {
804
+ return r = +r, t = t >>> 0, i || ar(e, r, t, 4), p.write(e, r, t, n, 23, 4), t + 4;
828
805
  }
829
806
  o.prototype.writeFloatLE = function(r, t, n) {
830
- return pr(this, r, t, !0, n);
807
+ return wr(this, r, t, !0, n);
831
808
  }, o.prototype.writeFloatBE = function(r, t, n) {
832
- return pr(this, r, t, !1, n);
809
+ return wr(this, r, t, !1, n);
833
810
  };
834
- function lr(e, r, t, n, i) {
835
- return r = +r, t = t >>> 0, i || sr(e, r, t, 8), s.write(e, r, t, n, 52, 8), t + 8;
811
+ function yr(e, r, t, n, i) {
812
+ return r = +r, t = t >>> 0, i || ar(e, r, t, 8), p.write(e, r, t, n, 52, 8), t + 8;
836
813
  }
837
814
  o.prototype.writeDoubleLE = function(r, t, n) {
838
- return lr(this, r, t, !0, n);
815
+ return yr(this, r, t, !0, n);
839
816
  }, o.prototype.writeDoubleBE = function(r, t, n) {
840
- return lr(this, r, t, !1, n);
817
+ return yr(this, r, t, !1, n);
841
818
  }, o.prototype.copy = function(r, t, n, i) {
842
819
  if (!o.isBuffer(r))
843
820
  throw new TypeError("argument should be a Buffer");
@@ -851,7 +828,7 @@ er.write = function(f, h, s, y, w, a) {
851
828
  throw new RangeError("sourceEnd out of bounds");
852
829
  i > this.length && (i = this.length), r.length - t < i - n && (i = r.length - t + n);
853
830
  const u = i - n;
854
- return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, n, i) : Uint8Array.prototype.set.call(
831
+ return this === r && typeof s.prototype.copyWithin == "function" ? this.copyWithin(t, n, i) : s.prototype.set.call(
855
832
  r,
856
833
  this.subarray(n, i),
857
834
  t
@@ -878,17 +855,17 @@ er.write = function(f, h, s, y, w, a) {
878
855
  for (u = t; u < n; ++u)
879
856
  this[u] = r;
880
857
  else {
881
- const c = o.isBuffer(r) ? r : o.from(r, i), l = c.length;
882
- if (l === 0)
858
+ const c = o.isBuffer(r) ? r : o.from(r, i), a = c.length;
859
+ if (a === 0)
883
860
  throw new TypeError('The value "' + r + '" is invalid for argument "value"');
884
861
  for (u = 0; u < n - t; ++u)
885
- this[u + t] = c[u % l];
862
+ this[u + t] = c[u % a];
886
863
  }
887
864
  return this;
888
865
  };
889
- const O = {};
890
- function Q(e, r, t) {
891
- O[e] = class extends t {
866
+ const G = {};
867
+ function v(e, r, t) {
868
+ G[e] = class extends t {
892
869
  constructor() {
893
870
  super(), Object.defineProperty(this, "message", {
894
871
  value: r.apply(this, arguments),
@@ -912,64 +889,64 @@ er.write = function(f, h, s, y, w, a) {
912
889
  }
913
890
  };
914
891
  }
915
- Q(
892
+ v(
916
893
  "ERR_BUFFER_OUT_OF_BOUNDS",
917
894
  function(e) {
918
895
  return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
919
896
  },
920
897
  RangeError
921
- ), Q(
898
+ ), v(
922
899
  "ERR_INVALID_ARG_TYPE",
923
900
  function(e, r) {
924
901
  return `The "${e}" argument must be of type number. Received type ${typeof r}`;
925
902
  },
926
903
  TypeError
927
- ), Q(
904
+ ), v(
928
905
  "ERR_OUT_OF_RANGE",
929
906
  function(e, r, t) {
930
907
  let n = `The value of "${e}" is out of range.`, i = t;
931
- return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? i = ar(String(t)) : typeof t == "bigint" && (i = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (i = ar(i)), i += "n"), n += ` It must be ${r}. Received ${i}`, n;
908
+ return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? i = xr(String(t)) : typeof t == "bigint" && (i = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (i = xr(i)), i += "n"), n += ` It must be ${r}. Received ${i}`, n;
932
909
  },
933
910
  RangeError
934
911
  );
935
- function ar(e) {
912
+ function xr(e) {
936
913
  let r = "", t = e.length;
937
914
  const n = e[0] === "-" ? 1 : 0;
938
915
  for (; t >= n + 4; t -= 3)
939
916
  r = `_${e.slice(t - 3, t)}${r}`;
940
917
  return `${e.slice(0, t)}${r}`;
941
918
  }
942
- function Dr(e, r, t) {
943
- j(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && H(r, e.length - (t + 1));
919
+ function jr(e, r, t) {
920
+ Y(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && X(r, e.length - (t + 1));
944
921
  }
945
- function yr(e, r, t, n, i, u) {
922
+ function Br(e, r, t, n, i, u) {
946
923
  if (e > t || e < r) {
947
924
  const c = typeof r == "bigint" ? "n" : "";
948
- let l;
949
- throw u > 3 ? r === 0 || r === BigInt(0) ? l = `>= 0${c} and < 2${c} ** ${(u + 1) * 8}${c}` : l = `>= -(2${c} ** ${(u + 1) * 8 - 1}${c}) and < 2 ** ${(u + 1) * 8 - 1}${c}` : l = `>= ${r}${c} and <= ${t}${c}`, new O.ERR_OUT_OF_RANGE("value", l, e);
925
+ let a;
926
+ throw u > 3 ? r === 0 || r === BigInt(0) ? a = `>= 0${c} and < 2${c} ** ${(u + 1) * 8}${c}` : a = `>= -(2${c} ** ${(u + 1) * 8 - 1}${c}) and < 2 ** ${(u + 1) * 8 - 1}${c}` : a = `>= ${r}${c} and <= ${t}${c}`, new G.ERR_OUT_OF_RANGE("value", a, e);
950
927
  }
951
- Dr(n, i, u);
928
+ jr(n, i, u);
952
929
  }
953
- function j(e, r) {
930
+ function Y(e, r) {
954
931
  if (typeof e != "number")
955
- throw new O.ERR_INVALID_ARG_TYPE(r, "number", e);
932
+ throw new G.ERR_INVALID_ARG_TYPE(r, "number", e);
956
933
  }
957
- function H(e, r, t) {
958
- throw Math.floor(e) !== e ? (j(e, t), new O.ERR_OUT_OF_RANGE(t || "offset", "an integer", e)) : r < 0 ? new O.ERR_BUFFER_OUT_OF_BOUNDS() : new O.ERR_OUT_OF_RANGE(
934
+ function X(e, r, t) {
935
+ throw Math.floor(e) !== e ? (Y(e, t), new G.ERR_OUT_OF_RANGE(t || "offset", "an integer", e)) : r < 0 ? new G.ERR_BUFFER_OUT_OF_BOUNDS() : new G.ERR_OUT_OF_RANGE(
959
936
  t || "offset",
960
937
  `>= ${t ? 1 : 0} and <= ${r}`,
961
938
  e
962
939
  );
963
940
  }
964
- const Pr = /[^+/0-9A-Za-z-_]/g;
965
- function $r(e) {
966
- if (e = e.split("=")[0], e = e.trim().replace(Pr, ""), e.length < 2)
941
+ const Gr = /[^+/0-9A-Za-z-_]/g;
942
+ function Yr(e) {
943
+ if (e = e.split("=")[0], e = e.trim().replace(Gr, ""), e.length < 2)
967
944
  return "";
968
945
  for (; e.length % 4 !== 0; )
969
946
  e = e + "=";
970
947
  return e;
971
948
  }
972
- function K(e, r) {
949
+ function rr(e, r) {
973
950
  r = r || 1 / 0;
974
951
  let t;
975
952
  const n = e.length;
@@ -1028,21 +1005,21 @@ er.write = function(f, h, s, y, w, a) {
1028
1005
  }
1029
1006
  return u;
1030
1007
  }
1031
- function Or(e) {
1008
+ function Wr(e) {
1032
1009
  const r = [];
1033
1010
  for (let t = 0; t < e.length; ++t)
1034
1011
  r.push(e.charCodeAt(t) & 255);
1035
1012
  return r;
1036
1013
  }
1037
- function jr(e, r) {
1014
+ function qr(e, r) {
1038
1015
  let t, n, i;
1039
1016
  const u = [];
1040
1017
  for (let c = 0; c < e.length && !((r -= 2) < 0); ++c)
1041
1018
  t = e.charCodeAt(c), n = t >> 8, i = t % 256, u.push(i), u.push(n);
1042
1019
  return u;
1043
1020
  }
1044
- function wr(e) {
1045
- return h.toByteArray($r(e));
1021
+ function dr(e) {
1022
+ return f.toByteArray(Yr(e));
1046
1023
  }
1047
1024
  function z(e, r, t, n) {
1048
1025
  let i;
@@ -1050,13 +1027,13 @@ er.write = function(f, h, s, y, w, a) {
1050
1027
  r[i + t] = e[i];
1051
1028
  return i;
1052
1029
  }
1053
- function b(e, r) {
1030
+ function S(e, r) {
1054
1031
  return e instanceof r || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === r.name;
1055
1032
  }
1056
- function Z(e) {
1033
+ function tr(e) {
1057
1034
  return e !== e;
1058
1035
  }
1059
- const Gr = function() {
1036
+ const Xr = function() {
1060
1037
  const e = "0123456789abcdef", r = new Array(256);
1061
1038
  for (let t = 0; t < 16; ++t) {
1062
1039
  const n = t * 16;
@@ -1065,89 +1042,114 @@ er.write = function(f, h, s, y, w, a) {
1065
1042
  }
1066
1043
  return r;
1067
1044
  }();
1068
- function D(e) {
1069
- return typeof BigInt > "u" ? Wr : e;
1045
+ function $(e) {
1046
+ return typeof BigInt > "u" ? zr : e;
1070
1047
  }
1071
- function Wr() {
1048
+ function zr() {
1072
1049
  throw new Error("BigInt not supported");
1073
1050
  }
1074
- })(xr);
1075
- var Br = { exports: {} }, m = Br.exports = {}, _, S;
1076
- function rr() {
1051
+ })(F);
1052
+ const tt = F.Buffer, et = F.Blob, nt = F.BlobOptions, gr = F.Buffer, it = F.File, ot = F.FileOptions, ut = F.INSPECT_MAX_BYTES, ct = F.SlowBuffer, ht = F.TranscodeEncoding, ft = F.atob, st = F.btoa, lt = F.constants, pt = F.isAscii, at = F.isUtf8, wt = F.kMaxLength, yt = F.kStringMaxLength, xt = F.resolveObjectURL, Bt = F.transcode;
1053
+ var Ut = /* @__PURE__ */ Object.freeze({
1054
+ __proto__: null,
1055
+ Blob: et,
1056
+ BlobOptions: nt,
1057
+ Buffer: gr,
1058
+ File: it,
1059
+ FileOptions: ot,
1060
+ INSPECT_MAX_BYTES: ut,
1061
+ SlowBuffer: ct,
1062
+ TranscodeEncoding: ht,
1063
+ atob: ft,
1064
+ btoa: st,
1065
+ constants: lt,
1066
+ default: tt,
1067
+ isAscii: pt,
1068
+ isUtf8: at,
1069
+ kMaxLength: wt,
1070
+ kStringMaxLength: yt,
1071
+ resolveObjectURL: xt,
1072
+ transcode: Bt
1073
+ });
1074
+ function dt(h) {
1075
+ return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
1076
+ }
1077
+ var mr = { exports: {} }, m = mr.exports = {}, _, L;
1078
+ function nr() {
1077
1079
  throw new Error("setTimeout has not been defined");
1078
1080
  }
1079
- function tr() {
1081
+ function ir() {
1080
1082
  throw new Error("clearTimeout has not been defined");
1081
1083
  }
1082
1084
  (function() {
1083
1085
  try {
1084
- typeof setTimeout == "function" ? _ = setTimeout : _ = rr;
1086
+ typeof setTimeout == "function" ? _ = setTimeout : _ = nr;
1085
1087
  } catch {
1086
- _ = rr;
1088
+ _ = nr;
1087
1089
  }
1088
1090
  try {
1089
- typeof clearTimeout == "function" ? S = clearTimeout : S = tr;
1091
+ typeof clearTimeout == "function" ? L = clearTimeout : L = ir;
1090
1092
  } catch {
1091
- S = tr;
1093
+ L = ir;
1092
1094
  }
1093
1095
  })();
1094
- function Er(f) {
1096
+ function Ir(h) {
1095
1097
  if (_ === setTimeout)
1096
- return setTimeout(f, 0);
1097
- if ((_ === rr || !_) && setTimeout)
1098
- return _ = setTimeout, setTimeout(f, 0);
1098
+ return setTimeout(h, 0);
1099
+ if ((_ === nr || !_) && setTimeout)
1100
+ return _ = setTimeout, setTimeout(h, 0);
1099
1101
  try {
1100
- return _(f, 0);
1102
+ return _(h, 0);
1101
1103
  } catch {
1102
1104
  try {
1103
- return _.call(null, f, 0);
1105
+ return _.call(null, h, 0);
1104
1106
  } catch {
1105
- return _.call(this, f, 0);
1107
+ return _.call(this, h, 0);
1106
1108
  }
1107
1109
  }
1108
1110
  }
1109
- function Zr(f) {
1110
- if (S === clearTimeout)
1111
- return clearTimeout(f);
1112
- if ((S === tr || !S) && clearTimeout)
1113
- return S = clearTimeout, clearTimeout(f);
1111
+ function Et(h) {
1112
+ if (L === clearTimeout)
1113
+ return clearTimeout(h);
1114
+ if ((L === ir || !L) && clearTimeout)
1115
+ return L = clearTimeout, clearTimeout(h);
1114
1116
  try {
1115
- return S(f);
1117
+ return L(h);
1116
1118
  } catch {
1117
1119
  try {
1118
- return S.call(null, f);
1120
+ return L.call(null, h);
1119
1121
  } catch {
1120
- return S.call(this, f);
1122
+ return L.call(this, h);
1121
1123
  }
1122
1124
  }
1123
1125
  }
1124
- var M = [], W = !1, $, V = -1;
1125
- function vr() {
1126
- !W || !$ || (W = !1, $.length ? M = $.concat(M) : V = -1, M.length && gr());
1126
+ var N = [], q = !1, j, H = -1;
1127
+ function gt() {
1128
+ !q || !j || (q = !1, j.length ? N = j.concat(N) : H = -1, N.length && Fr());
1127
1129
  }
1128
- function gr() {
1129
- if (!W) {
1130
- var f = Er(vr);
1131
- W = !0;
1132
- for (var h = M.length; h; ) {
1133
- for ($ = M, M = []; ++V < h; )
1134
- $ && $[V].run();
1135
- V = -1, h = M.length;
1130
+ function Fr() {
1131
+ if (!q) {
1132
+ var h = Ir(gt);
1133
+ q = !0;
1134
+ for (var f = N.length; f; ) {
1135
+ for (j = N, N = []; ++H < f; )
1136
+ j && j[H].run();
1137
+ H = -1, f = N.length;
1136
1138
  }
1137
- $ = null, W = !1, Zr(f);
1139
+ j = null, q = !1, Et(h);
1138
1140
  }
1139
1141
  }
1140
- m.nextTick = function(f) {
1141
- var h = new Array(arguments.length - 1);
1142
+ m.nextTick = function(h) {
1143
+ var f = new Array(arguments.length - 1);
1142
1144
  if (arguments.length > 1)
1143
- for (var s = 1; s < arguments.length; s++)
1144
- h[s - 1] = arguments[s];
1145
- M.push(new mr(f, h)), M.length === 1 && !W && Er(gr);
1145
+ for (var p = 1; p < arguments.length; p++)
1146
+ f[p - 1] = arguments[p];
1147
+ N.push(new Tr(h, f)), N.length === 1 && !q && Ir(Fr);
1146
1148
  };
1147
- function mr(f, h) {
1148
- this.fun = f, this.array = h;
1149
+ function Tr(h, f) {
1150
+ this.fun = h, this.array = f;
1149
1151
  }
1150
- mr.prototype.run = function() {
1152
+ Tr.prototype.run = function() {
1151
1153
  this.fun.apply(null, this.array);
1152
1154
  };
1153
1155
  m.title = "browser";
@@ -1156,52 +1158,50 @@ m.env = {};
1156
1158
  m.argv = [];
1157
1159
  m.version = "";
1158
1160
  m.versions = {};
1159
- function N() {
1161
+ function D() {
1160
1162
  }
1161
- m.on = N;
1162
- m.addListener = N;
1163
- m.once = N;
1164
- m.off = N;
1165
- m.removeListener = N;
1166
- m.removeAllListeners = N;
1167
- m.emit = N;
1168
- m.prependListener = N;
1169
- m.prependOnceListener = N;
1170
- m.listeners = function(f) {
1163
+ m.on = D;
1164
+ m.addListener = D;
1165
+ m.once = D;
1166
+ m.off = D;
1167
+ m.removeListener = D;
1168
+ m.removeAllListeners = D;
1169
+ m.emit = D;
1170
+ m.prependListener = D;
1171
+ m.prependOnceListener = D;
1172
+ m.listeners = function(h) {
1171
1173
  return [];
1172
1174
  };
1173
- m.binding = function(f) {
1175
+ m.binding = function(h) {
1174
1176
  throw new Error("process.binding is not supported");
1175
1177
  };
1176
1178
  m.cwd = function() {
1177
1179
  return "/";
1178
1180
  };
1179
- m.chdir = function(f) {
1181
+ m.chdir = function(h) {
1180
1182
  throw new Error("process.chdir is not supported");
1181
1183
  };
1182
1184
  m.umask = function() {
1183
1185
  return 0;
1184
1186
  };
1185
- var rt = Br.exports, tt = /* @__PURE__ */ Yr(rt);
1186
- const et = () => {
1187
- self.addEventListener("unhandledrejection", (f) => {
1188
- throw new Error(f.reason);
1187
+ var mt = mr.exports;
1188
+ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1189
+ self.addEventListener("unhandledrejection", (h) => {
1190
+ throw new Error(h.reason);
1189
1191
  });
1190
1192
  };
1191
- globalThis.process = tt;
1192
- globalThis.Buffer = xr.Buffer;
1193
- const nt = import("./zkProofWorkerLogic-BwAAGTST.js").then(function(f) {
1194
- return f.z;
1193
+ globalThis.process = It;
1194
+ globalThis.Buffer = gr;
1195
+ const Tt = import("./zkProofWorkerLogic-g413cUJh.js").then(function(h) {
1196
+ return h.z;
1195
1197
  });
1196
- addEventListener("message", async (f) => {
1197
- const { onWorkerMessage: h } = await nt;
1198
- h(f.data);
1198
+ addEventListener("message", async (h) => {
1199
+ const { onWorkerMessage: f } = await Tt;
1200
+ f(h.data);
1199
1201
  });
1200
- et();
1202
+ Ft();
1201
1203
  export {
1202
- Yr as a,
1203
- xr as b,
1204
- it as c,
1205
- X as d,
1206
- ot as g
1204
+ tt as B,
1205
+ Ut as d,
1206
+ It as p
1207
1207
  };