@honeybbq/teamspeak-client 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/address-BR-5unVo.cjs.map +1 -1
- package/dist/address-BfmovVpp.js.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/client.d.ts +16 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/command/index.cjs +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/parser.d.ts.map +1 -1
- package/dist/command-BLe-C2L2.js.map +1 -1
- package/dist/command-DAK4pUBP.cjs.map +1 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/crypt-handshake-CQkQreLx.cjs.map +1 -1
- package/dist/crypt-handshake-DziOY4Lq.js.map +1 -1
- package/dist/{crypt-init2-D70ha4LB.js → crypt-init2-BcGT--df.js} +2 -2
- package/dist/crypt-init2-BcGT--df.js.map +1 -0
- package/dist/{crypt-init2-DparLekm.cjs → crypt-init2-Bkee1YxV.cjs} +2 -2
- package/dist/crypt-init2-Bkee1YxV.cjs.map +1 -0
- package/dist/crypto/crypt.d.ts.map +1 -1
- package/dist/crypto/eax.d.ts.map +1 -1
- package/dist/crypto/identity.d.ts +13 -1
- package/dist/crypto/identity.d.ts.map +1 -1
- package/dist/crypto/index.cjs +1 -1
- package/dist/crypto/index.d.ts +2 -1
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.mjs +3 -3
- package/dist/{crypto-CDlweUL3.cjs → crypto-BfDd9DP6.cjs} +2 -2
- package/dist/crypto-BfDd9DP6.cjs.map +1 -0
- package/dist/{crypto-Bg02m4ZE.js → crypto-DLV3oH5F.js} +12 -12
- package/dist/crypto-DLV3oH5F.js.map +1 -0
- package/dist/discovery/resolver.d.ts.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/{handler-DI_abe9c.js → handler-BpdZFsKo.js} +104 -102
- package/dist/handler-BpdZFsKo.js.map +1 -0
- package/dist/handler-aywHvv7I.cjs +2 -0
- package/dist/handler-aywHvv7I.cjs.map +1 -0
- package/dist/handshake/index.cjs +1 -1
- package/dist/handshake/index.mjs +1 -1
- package/dist/handshake/license.d.ts.map +1 -1
- package/dist/handshake.d.ts +9 -0
- package/dist/handshake.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +314 -279
- package/dist/index.mjs.map +1 -1
- package/dist/{parser-DZMv3Jm-.js → parser-BX8NEiBe.js} +4 -4
- package/dist/parser-BX8NEiBe.js.map +1 -0
- package/dist/parser-BfwYH2fT.cjs +2 -0
- package/dist/parser-BfwYH2fT.cjs.map +1 -0
- package/dist/{primitives-xIr6Tjk4.js → primitives-CdX74Rgu.js} +194 -190
- package/dist/primitives-CdX74Rgu.js.map +1 -0
- package/dist/primitives-DkwW7wcP.cjs +2 -0
- package/dist/primitives-DkwW7wcP.cjs.map +1 -0
- package/dist/resolver-6B8dI9gr.js.map +1 -1
- package/dist/resolver-DCcmyWSK.cjs.map +1 -1
- package/dist/throttle.d.ts.map +1 -1
- package/dist/transfer.d.ts.map +1 -1
- package/dist/transport/generation-window.d.ts.map +1 -1
- package/dist/transport/handler.d.ts +9 -1
- package/dist/transport/handler.d.ts.map +1 -1
- package/dist/transport/index.cjs +1 -1
- package/dist/transport/index.mjs +1 -1
- package/dist/transport/quicklz.d.ts.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -6
- package/dist/address.test.d.ts +0 -2
- package/dist/address.test.d.ts.map +0 -1
- package/dist/api.test.d.ts +0 -2
- package/dist/api.test.d.ts.map +0 -1
- package/dist/command/command.test.d.ts +0 -2
- package/dist/command/command.test.d.ts.map +0 -1
- package/dist/crypt-init2-D70ha4LB.js.map +0 -1
- package/dist/crypt-init2-DparLekm.cjs.map +0 -1
- package/dist/crypto/eax.test.d.ts +0 -2
- package/dist/crypto/eax.test.d.ts.map +0 -1
- package/dist/crypto/identity.test.d.ts +0 -2
- package/dist/crypto/identity.test.d.ts.map +0 -1
- package/dist/crypto-Bg02m4ZE.js.map +0 -1
- package/dist/crypto-CDlweUL3.cjs.map +0 -1
- package/dist/handler-DI_abe9c.js.map +0 -1
- package/dist/handler-DuwoO5RC.cjs +0 -2
- package/dist/handler-DuwoO5RC.cjs.map +0 -1
- package/dist/handshake.test.d.ts +0 -2
- package/dist/handshake.test.d.ts.map +0 -1
- package/dist/helpers.test.d.ts +0 -2
- package/dist/helpers.test.d.ts.map +0 -1
- package/dist/integration.test.d.ts +0 -12
- package/dist/integration.test.d.ts.map +0 -1
- package/dist/notifications.test.d.ts +0 -2
- package/dist/notifications.test.d.ts.map +0 -1
- package/dist/parser-CL33R9tr.cjs +0 -2
- package/dist/parser-CL33R9tr.cjs.map +0 -1
- package/dist/parser-DZMv3Jm-.js.map +0 -1
- package/dist/primitives-cNNAeFCo.cjs +0 -2
- package/dist/primitives-cNNAeFCo.cjs.map +0 -1
- package/dist/primitives-xIr6Tjk4.js.map +0 -1
- package/dist/throttle.test.d.ts +0 -2
- package/dist/throttle.test.d.ts.map +0 -1
- package/dist/transport/generation-window.test.d.ts +0 -2
- package/dist/transport/generation-window.test.d.ts.map +0 -1
- package/dist/transport/packet.test.d.ts +0 -2
- package/dist/transport/packet.test.d.ts.map +0 -1
- package/dist/transport/quicklz.test.d.ts +0 -2
- package/dist/transport/quicklz.test.d.ts.map +0 -1
- package/dist/transport/whisper.test.d.ts +0 -2
- package/dist/transport/whisper.test.d.ts.map +0 -1
|
@@ -51,24 +51,24 @@ var c = class extends Error {
|
|
|
51
51
|
}
|
|
52
52
|
publicKeyBase64() {
|
|
53
53
|
let e = this.privateKey.export({ format: "jwk" });
|
|
54
|
-
return e.x === void 0 || e.y === void 0 || typeof e.x != "string" || typeof e.y != "string" ? "" :
|
|
54
|
+
return e.x === void 0 || e.y === void 0 || typeof e.x != "string" || typeof e.y != "string" ? "" : ee(ce(e.x, v), ce(e.y, v));
|
|
55
55
|
}
|
|
56
56
|
toString() {
|
|
57
57
|
let e = this.privateKey.export({ format: "jwk" });
|
|
58
58
|
if (!e.d) return `:${this.offset}`;
|
|
59
|
-
let t =
|
|
59
|
+
let t = ce(e.d, v);
|
|
60
60
|
return `${Buffer.from(t).toString("base64")}:${this.offset}`;
|
|
61
61
|
}
|
|
62
62
|
securityLevel() {
|
|
63
63
|
let e = t("sha1");
|
|
64
|
-
return e.update(this.publicKeyBase64()), e.update(this.offset.toString(10)),
|
|
64
|
+
return e.update(this.publicKeyBase64()), e.update(this.offset.toString(10)), le(e.digest());
|
|
65
65
|
}
|
|
66
66
|
async upgradeToLevel(e, n) {
|
|
67
67
|
let r = this.publicKeyBase64();
|
|
68
68
|
for (;;) {
|
|
69
69
|
if (n?.aborted) throw n.reason;
|
|
70
70
|
let i = t("sha1");
|
|
71
|
-
if (i.update(r), i.update(this.offset.toString(10)),
|
|
71
|
+
if (i.update(r), i.update(this.offset.toString(10)), le(i.digest()) >= e) return;
|
|
72
72
|
this.offset++, this.offset % 10000n == 0n && await new Promise((e) => setImmediate(e));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -98,19 +98,23 @@ function C(e) {
|
|
|
98
98
|
let { privateKey: n } = o("ec", { namedCurve: "prime256v1" }), r = new x(n, 0n), i = r.publicKeyBase64();
|
|
99
99
|
for (;;) {
|
|
100
100
|
let n = t("sha1");
|
|
101
|
-
if (n.update(i), n.update(r.offset.toString(10)),
|
|
101
|
+
if (n.update(i), n.update(r.offset.toString(10)), le(n.digest()) >= e) return r;
|
|
102
102
|
r.offset++;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function w(e) {
|
|
106
|
-
let
|
|
107
|
-
return
|
|
106
|
+
let t = Number.parseInt(e, 10);
|
|
107
|
+
return Number.isNaN(t) || t < 6 ? "sha1" : "sha256";
|
|
108
108
|
}
|
|
109
|
-
function T(e) {
|
|
109
|
+
function T(e, n = "sha1") {
|
|
110
|
+
let r = t(n).update(e).digest();
|
|
111
|
+
return Buffer.from(r).toString("base64");
|
|
112
|
+
}
|
|
113
|
+
function E(e) {
|
|
110
114
|
return t("sha512").update(e).digest();
|
|
111
115
|
}
|
|
112
|
-
function
|
|
113
|
-
let n = O(3, Buffer.from([7, 0])), r = O(2,
|
|
116
|
+
function ee(e, t) {
|
|
117
|
+
let n = O(3, Buffer.from([7, 0])), r = O(2, oe(32)), i = O(2, oe(e)), a = O(2, oe(t));
|
|
114
118
|
return O(48, Buffer.concat([
|
|
115
119
|
n,
|
|
116
120
|
r,
|
|
@@ -118,8 +122,8 @@ function E(e, t) {
|
|
|
118
122
|
a
|
|
119
123
|
])).toString("base64");
|
|
120
124
|
}
|
|
121
|
-
function
|
|
122
|
-
let t =
|
|
125
|
+
function D(e) {
|
|
126
|
+
let t = te(e), n = {
|
|
123
127
|
kty: "EC",
|
|
124
128
|
crv: "P-256",
|
|
125
129
|
x: Buffer.from(t.slice(1, 33)).toString("base64url"),
|
|
@@ -130,13 +134,13 @@ function ee(e) {
|
|
|
130
134
|
format: "jwk"
|
|
131
135
|
});
|
|
132
136
|
}
|
|
133
|
-
function
|
|
137
|
+
function te(e) {
|
|
134
138
|
try {
|
|
135
|
-
return
|
|
139
|
+
return ne(e);
|
|
136
140
|
} catch {}
|
|
137
|
-
return
|
|
141
|
+
return re(e);
|
|
138
142
|
}
|
|
139
|
-
function
|
|
143
|
+
function ne(e) {
|
|
140
144
|
let t = k(e, 48).value, n = 0, r = k(t, 3, n);
|
|
141
145
|
n += r.consumed;
|
|
142
146
|
let i = k(t, 2, n);
|
|
@@ -144,35 +148,35 @@ function te(e) {
|
|
|
144
148
|
let a = k(t, 2, n);
|
|
145
149
|
n += a.consumed;
|
|
146
150
|
let o = k(t, 2, n);
|
|
147
|
-
return
|
|
151
|
+
return ie(se(a.value, v), se(o.value, v));
|
|
148
152
|
}
|
|
149
|
-
function
|
|
153
|
+
function re(e) {
|
|
150
154
|
let t = k(e, 48).value, n = 0, r = k(t, 2, n);
|
|
151
155
|
n += r.consumed;
|
|
152
156
|
let i = k(t, 2, n);
|
|
153
|
-
return
|
|
157
|
+
return ie(se(r.value, v), se(i.value, v));
|
|
154
158
|
}
|
|
155
|
-
function
|
|
159
|
+
function ie(e, t) {
|
|
156
160
|
if (e.length > v || t.length > v) throw Error("invalid public key point encoding");
|
|
157
161
|
let n = new Uint8Array(y);
|
|
158
162
|
return n[0] = b, n.set(e, 33 - e.length), n.set(t, 65 - t.length), n;
|
|
159
163
|
}
|
|
160
164
|
function O(e, t) {
|
|
161
|
-
let n =
|
|
165
|
+
let n = ae(t.length);
|
|
162
166
|
return Buffer.concat([
|
|
163
167
|
Buffer.from([e]),
|
|
164
168
|
n,
|
|
165
169
|
t
|
|
166
170
|
]);
|
|
167
171
|
}
|
|
168
|
-
function
|
|
172
|
+
function ae(e) {
|
|
169
173
|
return e < 128 ? Buffer.from([e]) : e < 256 ? Buffer.from([129, e]) : Buffer.from([
|
|
170
174
|
130,
|
|
171
175
|
e >> 8 & 255,
|
|
172
176
|
e & 255
|
|
173
177
|
]);
|
|
174
178
|
}
|
|
175
|
-
function
|
|
179
|
+
function oe(e) {
|
|
176
180
|
if (typeof e == "number") {
|
|
177
181
|
let t = [], n = e;
|
|
178
182
|
do
|
|
@@ -197,7 +201,7 @@ function k(e, t, n = 0) {
|
|
|
197
201
|
consumed: r - n + i
|
|
198
202
|
};
|
|
199
203
|
}
|
|
200
|
-
function
|
|
204
|
+
function se(e, t) {
|
|
201
205
|
let n = 0;
|
|
202
206
|
for (; n < e.length - 1 && e[n] === 0;) n++;
|
|
203
207
|
let r = e.slice(n);
|
|
@@ -206,13 +210,13 @@ function A(e, t) {
|
|
|
206
210
|
let i = new Uint8Array(t);
|
|
207
211
|
return i.set(r, t - r.length), i;
|
|
208
212
|
}
|
|
209
|
-
function
|
|
213
|
+
function ce(e, t) {
|
|
210
214
|
let n = Buffer.from(e, "base64url");
|
|
211
215
|
if (n.length === t) return n;
|
|
212
216
|
let r = Buffer.alloc(t);
|
|
213
217
|
return n.copy(r, t - n.length), r;
|
|
214
218
|
}
|
|
215
|
-
function
|
|
219
|
+
function le(e) {
|
|
216
220
|
let t = 0;
|
|
217
221
|
for (let n of e) if (n === 0) t += 8;
|
|
218
222
|
else for (let e = 0; e < 8; e++) if (!(n & 1 << e)) t++;
|
|
@@ -221,31 +225,31 @@ function se(e) {
|
|
|
221
225
|
}
|
|
222
226
|
//#endregion
|
|
223
227
|
//#region node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
|
|
224
|
-
var
|
|
225
|
-
function
|
|
228
|
+
var ue = /* @__PURE__ */ BigInt(2 ** 32 - 1), de = /* @__PURE__ */ BigInt(32);
|
|
229
|
+
function fe(e, t = !1) {
|
|
226
230
|
return t ? {
|
|
227
|
-
h: Number(e &
|
|
228
|
-
l: Number(e >>
|
|
231
|
+
h: Number(e & ue),
|
|
232
|
+
l: Number(e >> de & ue)
|
|
229
233
|
} : {
|
|
230
|
-
h: Number(e >>
|
|
231
|
-
l: Number(e &
|
|
234
|
+
h: Number(e >> de & ue) | 0,
|
|
235
|
+
l: Number(e & ue) | 0
|
|
232
236
|
};
|
|
233
237
|
}
|
|
234
|
-
function
|
|
238
|
+
function pe(e, t = !1) {
|
|
235
239
|
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
236
240
|
for (let a = 0; a < n; a++) {
|
|
237
|
-
let { h: n, l: o } =
|
|
241
|
+
let { h: n, l: o } = fe(e[a], t);
|
|
238
242
|
[r[a], i[a]] = [n, o];
|
|
239
243
|
}
|
|
240
244
|
return [r, i];
|
|
241
245
|
}
|
|
242
|
-
var
|
|
243
|
-
function
|
|
244
|
-
let i =
|
|
246
|
+
var me = (e) => e / 2 ** 32 | 0, he = (e) => e >>> 0;
|
|
247
|
+
function ge(e, t, n, r) {
|
|
248
|
+
let i = me(n), a = he(n);
|
|
245
249
|
e.setUint32(t, r ? a : i, r), e.setUint32(t + 4, r ? i : a, r);
|
|
246
250
|
}
|
|
247
|
-
var
|
|
248
|
-
function
|
|
251
|
+
var _e = (e, t, n) => e >>> n, ve = (e, t, n) => e << 32 - n | t >>> n, A = (e, t, n) => e >>> n | t << 32 - n, j = (e, t, n) => e << 32 - n | t >>> n, M = (e, t, n) => e << 64 - n | t >>> n - 32, N = (e, t, n) => e >>> n - 32 | t << 64 - n;
|
|
252
|
+
function P(e, t, n, r) {
|
|
249
253
|
let i = (t >>> 0) + (r >>> 0);
|
|
250
254
|
return {
|
|
251
255
|
h: e + n + (i / 2 ** 32 | 0) | 0,
|
|
@@ -259,14 +263,14 @@ function Te(e) {
|
|
|
259
263
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
|
|
260
264
|
}
|
|
261
265
|
var Ee = (e) => e ? `"${e}" ` : "";
|
|
262
|
-
function
|
|
266
|
+
function F(e, t = "") {
|
|
263
267
|
if (typeof e != "number") throw TypeError(Ee(t) + "expected number, got " + typeof e);
|
|
264
268
|
if (!Number.isSafeInteger(e) || e < 0) throw RangeError(Ee(t) + "expected integer >= 0, got " + e);
|
|
265
269
|
return e;
|
|
266
270
|
}
|
|
267
|
-
function
|
|
271
|
+
function I(e, t, n = "") {
|
|
268
272
|
if (Te(e) && (t === void 0 || e.length === t)) return e;
|
|
269
|
-
t !== void 0 &&
|
|
273
|
+
t !== void 0 && F(t, "length");
|
|
270
274
|
let r = Te(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = Ee(n) + "expected Uint8Array" + i + ", got " + a;
|
|
271
275
|
throw r ? RangeError(o) : TypeError(o);
|
|
272
276
|
}
|
|
@@ -283,7 +287,7 @@ function ke(e, t = !0) {
|
|
|
283
287
|
if (t && e.finished) throw Error("digest() was already called");
|
|
284
288
|
}
|
|
285
289
|
function Ae(e, t) {
|
|
286
|
-
|
|
290
|
+
I(e, void 0, "output");
|
|
287
291
|
let n = t.outputLen;
|
|
288
292
|
if (!(e.length >= n)) throw RangeError("\"output\" expected length >= " + n);
|
|
289
293
|
}
|
|
@@ -295,7 +299,7 @@ function Me(e) {
|
|
|
295
299
|
}
|
|
296
300
|
var Ne = typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Pe = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
297
301
|
function Fe(e) {
|
|
298
|
-
if (
|
|
302
|
+
if (I(e), Ne) return e.toHex();
|
|
299
303
|
let t = "";
|
|
300
304
|
for (let n = 0; n < e.length; n++) t += Pe[e[n]];
|
|
301
305
|
return t;
|
|
@@ -327,7 +331,7 @@ function Re(...e) {
|
|
|
327
331
|
let t = 0;
|
|
328
332
|
for (let n = 0; n < e.length; n++) {
|
|
329
333
|
let r = e[n];
|
|
330
|
-
|
|
334
|
+
I(r), t += r.length;
|
|
331
335
|
}
|
|
332
336
|
let n = new Uint8Array(t);
|
|
333
337
|
for (let t = 0, r = 0; t < e.length; t++) {
|
|
@@ -346,7 +350,7 @@ function Be(e, t = {}) {
|
|
|
346
350
|
return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
|
|
347
351
|
}
|
|
348
352
|
function Ve(e = 32) {
|
|
349
|
-
|
|
353
|
+
F(e, "bytesLength");
|
|
350
354
|
let t = typeof globalThis == "object" ? globalThis.crypto : null;
|
|
351
355
|
if (typeof t?.getRandomValues != "function") throw Error("crypto.getRandomValues must be defined");
|
|
352
356
|
if (e > 65536) throw RangeError(`"bytesLength" expected <= 65536, got ${e}`);
|
|
@@ -380,7 +384,7 @@ var He = (e) => ({ oid: Uint8Array.from([
|
|
|
380
384
|
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = Me(this.buffer);
|
|
381
385
|
}
|
|
382
386
|
update(e) {
|
|
383
|
-
ke(this),
|
|
387
|
+
ke(this), I(e);
|
|
384
388
|
let { view: t, buffer: n, blockLen: r } = this, i = e.length, a = !1;
|
|
385
389
|
for (let o = 0; o < i;) {
|
|
386
390
|
let s = Math.min(r - this.pos, i - o);
|
|
@@ -397,7 +401,7 @@ var He = (e) => ({ oid: Uint8Array.from([
|
|
|
397
401
|
digestInto(e) {
|
|
398
402
|
ke(this), Ae(e, this), this.finished = !0;
|
|
399
403
|
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
400
|
-
t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)),
|
|
404
|
+
t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), ge(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
|
|
401
405
|
let o = e === t ? n : Me(e), s = this.outputLen, c = s / 4, l = this.get();
|
|
402
406
|
if (s % 4 || c > l.length) throw Error("invalid outputLen");
|
|
403
407
|
for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
|
|
@@ -432,7 +436,7 @@ var He = (e) => ({ oid: Uint8Array.from([
|
|
|
432
436
|
4215389547,
|
|
433
437
|
1541459225,
|
|
434
438
|
327033209
|
|
435
|
-
]), Ge = /* @__PURE__ */
|
|
439
|
+
]), Ge = /* @__PURE__ */ pe((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ke = Ge[0], qe = Ge[1], L = /* @__PURE__ */ new Uint32Array(80), R = /* @__PURE__ */ new Uint32Array(80), Je = class extends Ue {
|
|
436
440
|
Ah = 0;
|
|
437
441
|
Al = 0;
|
|
438
442
|
Bh = 0;
|
|
@@ -480,22 +484,22 @@ var He = (e) => ({ oid: Uint8Array.from([
|
|
|
480
484
|
return (e ||= new this.constructor()).set(...this.get()), this._cloneIntoMeta(e);
|
|
481
485
|
}
|
|
482
486
|
process(e, t) {
|
|
483
|
-
for (let n = 0; n < 16; n++, t += 4)
|
|
487
|
+
for (let n = 0; n < 16; n++, t += 4) L[n] = e.getUint32(t), R[n] = e.getUint32(t += 4);
|
|
484
488
|
for (let e = 16; e < 80; e++) {
|
|
485
|
-
let t =
|
|
486
|
-
|
|
489
|
+
let t = L[e - 15] | 0, n = R[e - 15] | 0, r = A(t, n, 1) ^ A(t, n, 8) ^ _e(t, n, 7), i = j(t, n, 1) ^ j(t, n, 8) ^ ve(t, n, 7), a = L[e - 2] | 0, o = R[e - 2] | 0, s = A(a, o, 19) ^ M(a, o, 61) ^ _e(a, o, 6), c = xe(i, j(a, o, 19) ^ N(a, o, 61) ^ ve(a, o, 6), R[e - 7], R[e - 16]), l = Se(c, r, s, L[e - 7], L[e - 16]);
|
|
490
|
+
L[e] = l | 0, R[e] = c | 0;
|
|
487
491
|
}
|
|
488
492
|
let { Ah: n, Al: r, Bh: i, Bl: a, Ch: o, Cl: s, Dh: c, Dl: l, Eh: u, El: d, Fh: f, Fl: p, Gh: m, Gl: h, Hh: g, Hl: _ } = this;
|
|
489
493
|
for (let e = 0; e < 80; e++) {
|
|
490
|
-
let t =
|
|
491
|
-
g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} =
|
|
494
|
+
let t = A(u, d, 14) ^ A(u, d, 18) ^ M(u, d, 41), v = j(u, d, 14) ^ j(u, d, 18) ^ N(u, d, 41), y = u & f ^ ~u & m, b = d & p ^ ~d & h, x = Ce(_, v, b, qe[e], R[e]), S = we(x, g, t, y, Ke[e], L[e]), C = x | 0, w = A(n, r, 28) ^ M(n, r, 34) ^ M(n, r, 39), T = j(n, r, 28) ^ N(n, r, 34) ^ N(n, r, 39), E = n & i ^ n & o ^ i & o, ee = r & a ^ r & s ^ a & s;
|
|
495
|
+
g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = P(c | 0, l | 0, S | 0, C | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
|
|
492
496
|
let D = ye(C, T, ee);
|
|
493
497
|
n = be(D, S, w, E), r = D | 0;
|
|
494
498
|
}
|
|
495
|
-
({h: n, l: r} =
|
|
499
|
+
({h: n, l: r} = P(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = P(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = P(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = P(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = P(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = P(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = P(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = P(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
|
|
496
500
|
}
|
|
497
501
|
roundClean() {
|
|
498
|
-
je(
|
|
502
|
+
je(L, R);
|
|
499
503
|
}
|
|
500
504
|
destroy() {
|
|
501
505
|
this.destroyed = !0, je(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
@@ -512,27 +516,27 @@ function Ze(e, t, n = () => {}) {
|
|
|
512
516
|
for (let r = 0; r < e.length; r++) n(e[r], `${t}[${r}]`);
|
|
513
517
|
return e;
|
|
514
518
|
}
|
|
515
|
-
var
|
|
516
|
-
function
|
|
519
|
+
var z = (e, t, n) => I(e, t, n), Qe = F;
|
|
520
|
+
function B(e, t = "object") {
|
|
517
521
|
if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError(t === "object" ? "expected valid options object" : `"${t}" expected object, got type=${typeof e}`);
|
|
518
522
|
return e;
|
|
519
523
|
}
|
|
520
|
-
function
|
|
524
|
+
function V(e, t) {
|
|
521
525
|
if (typeof e != "function") throw TypeError(`"${t}" is invalid: expected function, got ${typeof e}`);
|
|
522
526
|
return e;
|
|
523
527
|
}
|
|
524
|
-
var $e = Fe, et = (...e) => Re(...e), tt = (e) => Le(e), nt = Te, rt = (e) => Ve(e),
|
|
525
|
-
function
|
|
526
|
-
if (typeof e != "boolean") throw TypeError(
|
|
528
|
+
var $e = Fe, et = (...e) => Re(...e), tt = (e) => Le(e), nt = Te, rt = (e) => Ve(e), H = /* @__PURE__ */ BigInt(0), it = /* @__PURE__ */ BigInt(1), at = (e) => e ? `"${e}" ` : "";
|
|
529
|
+
function U(e, t = "") {
|
|
530
|
+
if (typeof e != "boolean") throw TypeError(at(t) + "expected boolean, got type=" + typeof e);
|
|
527
531
|
return e;
|
|
528
532
|
}
|
|
529
|
-
function
|
|
533
|
+
function ot(e) {
|
|
530
534
|
if (typeof e == "bigint") {
|
|
531
|
-
if (!
|
|
535
|
+
if (!W(e)) throw RangeError("positive bigint expected, got " + e);
|
|
532
536
|
} else Qe(e);
|
|
533
537
|
return e;
|
|
534
538
|
}
|
|
535
|
-
function
|
|
539
|
+
function st(e, t = "") {
|
|
536
540
|
if (typeof e != "number") {
|
|
537
541
|
let n = t && `"${t}" `;
|
|
538
542
|
throw TypeError(n + "expected number, got type=" + typeof e);
|
|
@@ -544,17 +548,17 @@ function H(e, t = "") {
|
|
|
544
548
|
}
|
|
545
549
|
function ct(e) {
|
|
546
550
|
if (typeof e != "string") throw TypeError("hex string expected, got " + typeof e);
|
|
547
|
-
return e === "" ?
|
|
551
|
+
return e === "" ? H : BigInt("0x" + e);
|
|
548
552
|
}
|
|
549
553
|
function lt(e) {
|
|
550
554
|
return ct(Fe(e));
|
|
551
555
|
}
|
|
552
556
|
function ut(e) {
|
|
553
|
-
return ct(Fe(pt(
|
|
557
|
+
return ct(Fe(pt(I(e)).reverse()));
|
|
554
558
|
}
|
|
555
559
|
function dt(e, t) {
|
|
556
|
-
if (
|
|
557
|
-
e =
|
|
560
|
+
if (F(t), t === 0) throw Error("zero output length is invalid");
|
|
561
|
+
e = ot(e);
|
|
558
562
|
let n = t * 2, r = e.toString(16);
|
|
559
563
|
if (r.length > n) throw RangeError("number is too large");
|
|
560
564
|
return Le(r.padStart(n, "0"));
|
|
@@ -563,24 +567,24 @@ function ft(e, t) {
|
|
|
563
567
|
return dt(e, t).reverse();
|
|
564
568
|
}
|
|
565
569
|
function pt(e) {
|
|
566
|
-
return Uint8Array.from(
|
|
570
|
+
return Uint8Array.from(z(e));
|
|
567
571
|
}
|
|
568
|
-
function
|
|
569
|
-
return typeof e == "bigint" &&
|
|
572
|
+
function W(e) {
|
|
573
|
+
return typeof e == "bigint" && H <= e;
|
|
570
574
|
}
|
|
571
575
|
function mt(e, t, n) {
|
|
572
|
-
return
|
|
576
|
+
return W(e) && W(t) && W(n) && t <= e && e < n;
|
|
573
577
|
}
|
|
574
578
|
function ht(e, t, n, r) {
|
|
575
579
|
if (!mt(t, n, r)) throw RangeError("expected valid " + e + ": " + n + " <= n < " + r + ", got " + t);
|
|
576
580
|
}
|
|
577
581
|
function gt(e) {
|
|
578
|
-
if (e <
|
|
579
|
-
return e ===
|
|
582
|
+
if (e < H) throw Error("expected non-negative bigint, got " + e);
|
|
583
|
+
return e === H ? 0 : e.toString(2).length;
|
|
580
584
|
}
|
|
581
|
-
var _t = (e) => (
|
|
582
|
-
function
|
|
583
|
-
|
|
585
|
+
var _t = (e) => (st(e, "n"), (it << BigInt(e)) - it);
|
|
586
|
+
function G(e, t = {}, n = {}, r = "object") {
|
|
587
|
+
B(e, r), B(t, "fields"), B(n, "optFields");
|
|
584
588
|
function i(t, n, i) {
|
|
585
589
|
let a = r === "object" ? `param "${String(t)}"` : `"${r}.${String(t)}"`, o = e[t];
|
|
586
590
|
if (!Object.hasOwn(e, t) && (i ? o !== void 0 : n !== "function")) throw TypeError(`${a} is invalid: expected own property`);
|
|
@@ -593,28 +597,28 @@ function W(e, t = {}, n = {}, r = "object") {
|
|
|
593
597
|
}
|
|
594
598
|
//#endregion
|
|
595
599
|
//#region node_modules/.pnpm/@noble+curves@2.4.0/node_modules/@noble/curves/abstract/modular.js
|
|
596
|
-
var
|
|
597
|
-
function
|
|
598
|
-
if (t <=
|
|
600
|
+
var K = /* @__PURE__ */ BigInt(0), q = /* @__PURE__ */ BigInt(1), J = /* @__PURE__ */ BigInt(2), vt = /* @__PURE__ */ BigInt(3), yt = /* @__PURE__ */ BigInt(4), bt = /* @__PURE__ */ BigInt(5), xt = /* @__PURE__ */ BigInt(7), St = /* @__PURE__ */ BigInt(8), Ct = /* @__PURE__ */ BigInt(9), wt = /* @__PURE__ */ BigInt(15), Tt = /* @__PURE__ */ BigInt(16), Et = /* @__PURE__ */ BigInt("0x10000000000000000");
|
|
601
|
+
function Y(e, t) {
|
|
602
|
+
if (t <= K) throw Error("mod: expected positive modulus, got " + t);
|
|
599
603
|
let n = e % t;
|
|
600
|
-
return n >=
|
|
604
|
+
return n >= K ? n : t + n;
|
|
601
605
|
}
|
|
602
606
|
function Dt(e, t, n) {
|
|
603
|
-
if (n <=
|
|
607
|
+
if (n <= q) throw Error("pow: expected modulus > 1, got " + n);
|
|
604
608
|
if (typeof t != "bigint") throw TypeError("invalid exponent: expected bigint, got " + typeof t);
|
|
605
|
-
if (t <
|
|
606
|
-
if (t ===
|
|
607
|
-
if (t ===
|
|
609
|
+
if (t < K) throw Error("invalid exponent, negatives unsupported");
|
|
610
|
+
if (t === K) return q;
|
|
611
|
+
if (t === q) return e;
|
|
608
612
|
let r = e % n;
|
|
609
|
-
if (r <
|
|
610
|
-
let e =
|
|
611
|
-
for (; t >
|
|
613
|
+
if (r < K && (r += n), t < Et) {
|
|
614
|
+
let e = q;
|
|
615
|
+
for (; t > K;) t & q && (e = e * r % n), r = r * r % n, t >>= q;
|
|
612
616
|
return e;
|
|
613
617
|
}
|
|
614
618
|
let i = [];
|
|
615
|
-
for (; t >
|
|
619
|
+
for (; t > K;) i.push(Number(t & wt)), t >>= yt;
|
|
616
620
|
let a = Array(16);
|
|
617
|
-
a[0] =
|
|
621
|
+
a[0] = q, a[1] = r;
|
|
618
622
|
for (let e = 2; e < 16; e++) a[e] = a[e - 1] * r % n;
|
|
619
623
|
let o = a[i[i.length - 1]];
|
|
620
624
|
for (let e = i.length - 2; e >= 0; e--) {
|
|
@@ -624,37 +628,37 @@ function Dt(e, t, n) {
|
|
|
624
628
|
}
|
|
625
629
|
return o;
|
|
626
630
|
}
|
|
627
|
-
function
|
|
628
|
-
if (n <=
|
|
629
|
-
if (t <
|
|
631
|
+
function X(e, t, n) {
|
|
632
|
+
if (n <= q) throw Error("pow2: expected modulus > 1, got " + n);
|
|
633
|
+
if (t < K) throw Error("pow2: expected non-negative exponent, got " + t);
|
|
630
634
|
let r = e;
|
|
631
|
-
for (; t-- >
|
|
635
|
+
for (; t-- > K;) r *= r, r %= n;
|
|
632
636
|
return r;
|
|
633
637
|
}
|
|
634
638
|
function Ot(e, t) {
|
|
635
|
-
if (e ===
|
|
636
|
-
if (t <=
|
|
637
|
-
let n =
|
|
638
|
-
for (; n !==
|
|
639
|
+
if (e === K) throw Error("invert: expected non-zero number");
|
|
640
|
+
if (t <= q) throw Error("invert: expected modulus > 1, got " + t);
|
|
641
|
+
let n = Y(e, t), r = t, i = K, a = q;
|
|
642
|
+
for (; n !== K;) {
|
|
639
643
|
let e = r / n, t = r - n * e, o = i - a * e;
|
|
640
644
|
r = n, n = t, i = a, a = o;
|
|
641
645
|
}
|
|
642
|
-
if (r !==
|
|
643
|
-
return
|
|
646
|
+
if (r !== q) throw Error("invert: does not exist");
|
|
647
|
+
return Y(i, t);
|
|
644
648
|
}
|
|
645
649
|
function kt(e, t, n) {
|
|
646
650
|
let r = e;
|
|
647
651
|
if (!r.eql(r.sqr(t), n)) throw Error("Cannot find square root");
|
|
648
652
|
}
|
|
649
653
|
function At(e, t) {
|
|
650
|
-
if ((e &
|
|
654
|
+
if ((e & q) === K) throw Error(t + ": expected odd modulus, got " + e);
|
|
651
655
|
}
|
|
652
656
|
function jt(e, t) {
|
|
653
|
-
let n = e, r = (n.ORDER +
|
|
657
|
+
let n = e, r = (n.ORDER + q) / yt, i = n.pow(t, r);
|
|
654
658
|
return kt(n, i, t), i;
|
|
655
659
|
}
|
|
656
660
|
function Mt(e, t) {
|
|
657
|
-
let n = e, r = (n.ORDER - bt) / St, i = n.mul(t,
|
|
661
|
+
let n = e, r = (n.ORDER - bt) / St, i = n.mul(t, J), a = n.pow(i, r), o = n.mul(t, a), s = n.mul(n.mul(o, J), a), c = n.mul(o, n.sub(s, n.ONE));
|
|
658
662
|
return kt(n, c, t), c;
|
|
659
663
|
}
|
|
660
664
|
function Nt(e) {
|
|
@@ -669,12 +673,12 @@ function Nt(e) {
|
|
|
669
673
|
function Pt(e) {
|
|
670
674
|
if (e < vt) throw Error("sqrt is not defined for small field");
|
|
671
675
|
At(e, "tonelliShanks");
|
|
672
|
-
let t = e -
|
|
673
|
-
for (; t %
|
|
674
|
-
let r =
|
|
676
|
+
let t = e - q, n = 0;
|
|
677
|
+
for (; t % J === K;) t /= J, n++;
|
|
678
|
+
let r = J, i = Ut(e);
|
|
675
679
|
for (; zt(i, r) === 1;) if (r++ > 1e3) throw Error("Cannot find square root: probably non-prime P");
|
|
676
680
|
if (n === 1) return jt;
|
|
677
|
-
let a = i.pow(r, t), o = (t +
|
|
681
|
+
let a = i.pow(r, t), o = (t + q) / J;
|
|
678
682
|
return function(e, r) {
|
|
679
683
|
let i = e;
|
|
680
684
|
if (i.is0(r)) return r;
|
|
@@ -684,7 +688,7 @@ function Pt(e) {
|
|
|
684
688
|
if (i.is0(l)) throw Error("Cannot find square root: probably non-prime P");
|
|
685
689
|
let e = 1, t = i.sqr(l);
|
|
686
690
|
for (; !i.eql(t, i.ONE);) if (e++, t = i.sqr(t), e === s) throw Error("Cannot find square root");
|
|
687
|
-
let n =
|
|
691
|
+
let n = q << BigInt(s - e - 1), r = i.pow(c, n);
|
|
688
692
|
s = e, c = i.sqr(r), l = i.mul(l, c), u = i.mul(u, r);
|
|
689
693
|
}
|
|
690
694
|
return u;
|
|
@@ -693,7 +697,7 @@ function Pt(e) {
|
|
|
693
697
|
function Ft(e) {
|
|
694
698
|
return At(e, "Fp.sqrt"), e % yt === vt ? jt : e % St === bt ? Mt : e % Tt === Ct ? Nt(e) : Pt(e);
|
|
695
699
|
}
|
|
696
|
-
var It = (e, t) => (
|
|
700
|
+
var It = (e, t) => (Y(e, t) & q) === q, Lt = [
|
|
697
701
|
"create",
|
|
698
702
|
"isValid",
|
|
699
703
|
"is0",
|
|
@@ -712,29 +716,29 @@ var It = (e, t) => (J(e, t) & K) === K, Lt = [
|
|
|
712
716
|
"mulN",
|
|
713
717
|
"sqrN"
|
|
714
718
|
];
|
|
715
|
-
function
|
|
716
|
-
if (
|
|
717
|
-
|
|
718
|
-
for (let t of Lt)
|
|
719
|
+
function Z(e) {
|
|
720
|
+
if (B(e, "field"), typeof e.ORDER != "bigint") throw TypeError("param \"ORDER\" is invalid: expected bigint, got " + typeof e.ORDER);
|
|
721
|
+
st(e.BYTES, "BYTES"), st(e.BITS, "BITS");
|
|
722
|
+
for (let t of Lt) V(e[t], "field." + t);
|
|
719
723
|
if (e.BYTES < 1 || e.BITS < 1) throw Error("invalid field: expected BYTES/BITS > 0");
|
|
720
|
-
if (e.ORDER <=
|
|
724
|
+
if (e.ORDER <= q) throw Error("invalid field: expected ORDER > 1, got " + e.ORDER);
|
|
721
725
|
return e;
|
|
722
726
|
}
|
|
723
727
|
function Rt(e, t, n = !1) {
|
|
724
|
-
|
|
728
|
+
Z(e), Ze(t, "nums"), U(n, "passZero");
|
|
725
729
|
let r = e, i = Array(t.length).fill(n ? r.ZERO : void 0), a = t.reduce((e, t, n) => r.is0(t) ? e : (i[n] = e, r.mul(e, t)), r.ONE), o = r.inv(a);
|
|
726
730
|
return t.reduceRight((e, t, n) => r.is0(t) ? e : (i[n] = r.mul(e, i[n]), r.mul(e, t)), o), i;
|
|
727
731
|
}
|
|
728
732
|
function zt(e, t) {
|
|
729
|
-
|
|
733
|
+
Z(e);
|
|
730
734
|
let n = e;
|
|
731
735
|
At(n.ORDER, "FpLegendre");
|
|
732
|
-
let r = (n.ORDER -
|
|
736
|
+
let r = (n.ORDER - q) / J, i = n.pow(t, r), a = n.eql(i, n.ONE), o = n.eql(i, n.ZERO), s = n.eql(i, n.neg(n.ONE));
|
|
733
737
|
if (!a && !o && !s) throw Error("invalid Legendre symbol result");
|
|
734
738
|
return a ? 1 : o ? 0 : -1;
|
|
735
739
|
}
|
|
736
740
|
function Bt(e, t) {
|
|
737
|
-
if (t !== void 0 && Qe(t), e <=
|
|
741
|
+
if (t !== void 0 && Qe(t), e <= K) throw Error("invalid n length: expected positive n, got " + e);
|
|
738
742
|
if (t !== void 0 && t < 1) throw Error("invalid n length: expected positive bit length, got " + t);
|
|
739
743
|
let n = gt(e);
|
|
740
744
|
if (t !== void 0 && t < n) throw Error(`invalid n length: expected nBitLength (${t}) >= bitLen(n) (${n})`);
|
|
@@ -749,12 +753,12 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = class {
|
|
|
749
753
|
BITS;
|
|
750
754
|
BYTES;
|
|
751
755
|
isLE;
|
|
752
|
-
ZERO =
|
|
753
|
-
ONE =
|
|
756
|
+
ZERO = K;
|
|
757
|
+
ONE = q;
|
|
754
758
|
_lengths;
|
|
755
759
|
_mod;
|
|
756
760
|
constructor(e, t = {}) {
|
|
757
|
-
if (e <=
|
|
761
|
+
if (e <= q) throw Error("invalid field: expected ORDER > 1, got " + e);
|
|
758
762
|
let n;
|
|
759
763
|
this.isLE = !1, typeof t == "object" && t && (typeof t.BITS == "number" && (n = t.BITS), typeof t.sqrt == "function" && Object.defineProperty(this, "sqrt", {
|
|
760
764
|
value: t.sqrt,
|
|
@@ -765,44 +769,44 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = class {
|
|
|
765
769
|
this.ORDER = e, this.BITS = r, this.BYTES = i, Object.freeze(this);
|
|
766
770
|
}
|
|
767
771
|
create(e) {
|
|
768
|
-
return
|
|
772
|
+
return Y(e, this.ORDER);
|
|
769
773
|
}
|
|
770
774
|
isValid(e) {
|
|
771
775
|
if (typeof e != "bigint") throw TypeError("invalid field element: expected bigint, got " + typeof e);
|
|
772
|
-
return
|
|
776
|
+
return K <= e && e < this.ORDER;
|
|
773
777
|
}
|
|
774
778
|
is0(e) {
|
|
775
|
-
return e ===
|
|
779
|
+
return e === K;
|
|
776
780
|
}
|
|
777
781
|
isValidNot0(e) {
|
|
778
782
|
return !this.is0(e) && this.isValid(e);
|
|
779
783
|
}
|
|
780
784
|
isOdd(e) {
|
|
781
|
-
return (e &
|
|
785
|
+
return (e & q) === q;
|
|
782
786
|
}
|
|
783
787
|
neg(e) {
|
|
784
|
-
return
|
|
788
|
+
return Y(-e, this.ORDER);
|
|
785
789
|
}
|
|
786
790
|
eql(e, t) {
|
|
787
791
|
return e === t;
|
|
788
792
|
}
|
|
789
793
|
sqr(e) {
|
|
790
|
-
return
|
|
794
|
+
return Y(e * e, this.ORDER);
|
|
791
795
|
}
|
|
792
796
|
add(e, t) {
|
|
793
|
-
return
|
|
797
|
+
return Y(e + t, this.ORDER);
|
|
794
798
|
}
|
|
795
799
|
sub(e, t) {
|
|
796
|
-
return
|
|
800
|
+
return Y(e - t, this.ORDER);
|
|
797
801
|
}
|
|
798
802
|
mul(e, t) {
|
|
799
|
-
return
|
|
803
|
+
return Y(e * t, this.ORDER);
|
|
800
804
|
}
|
|
801
805
|
pow(e, t) {
|
|
802
806
|
return Dt(e, t, this.ORDER);
|
|
803
807
|
}
|
|
804
808
|
div(e, t) {
|
|
805
|
-
return
|
|
809
|
+
return Y(e * Ot(t, this.ORDER), this.ORDER);
|
|
806
810
|
}
|
|
807
811
|
sqrN(e) {
|
|
808
812
|
return e * e;
|
|
@@ -827,7 +831,7 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = class {
|
|
|
827
831
|
return this.isLE ? ft(e, this.BYTES) : dt(e, this.BYTES);
|
|
828
832
|
}
|
|
829
833
|
fromBytes(e, t = !1) {
|
|
830
|
-
|
|
834
|
+
z(e);
|
|
831
835
|
let { _lengths: n, BYTES: r, isLE: i, ORDER: a, _mod: o } = this;
|
|
832
836
|
if (n) {
|
|
833
837
|
if (e.length < 1 || !n.includes(e.length) || e.length > r) throw Error("Field.fromBytes: expected " + n + " bytes, got " + e.length);
|
|
@@ -836,14 +840,14 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = class {
|
|
|
836
840
|
}
|
|
837
841
|
if (e.length !== r) throw Error("Field.fromBytes: expected " + r + " bytes, got " + e.length);
|
|
838
842
|
let s = i ? ut(e) : lt(e);
|
|
839
|
-
if (o && (s =
|
|
843
|
+
if (o && (s = Y(s, a)), !t && !this.isValid(s)) throw Error("invalid field element: outside of range 0..ORDER");
|
|
840
844
|
return s;
|
|
841
845
|
}
|
|
842
846
|
invertBatch(e) {
|
|
843
847
|
return Rt(this, e, !0);
|
|
844
848
|
}
|
|
845
849
|
cmov(e, t, n) {
|
|
846
|
-
return
|
|
850
|
+
return U(n, "condition"), n ? t : e;
|
|
847
851
|
}
|
|
848
852
|
};
|
|
849
853
|
function Ut(e, t = {}) {
|
|
@@ -851,11 +855,11 @@ function Ut(e, t = {}) {
|
|
|
851
855
|
}
|
|
852
856
|
//#endregion
|
|
853
857
|
//#region node_modules/.pnpm/@noble+curves@2.4.0/node_modules/@noble/curves/abstract/curve.js
|
|
854
|
-
var Wt = /* @__PURE__ */ BigInt(0),
|
|
858
|
+
var Wt = /* @__PURE__ */ BigInt(0), Q = /* @__PURE__ */ BigInt(1), Gt = /* @__PURE__ */ BigInt(4), Kt = 16, qt = 128, Jt = 5, Yt = 2 ** 31;
|
|
855
859
|
function Xt(e) {
|
|
856
860
|
let t = e;
|
|
857
861
|
if (typeof t != "function") throw TypeError("\"Point\" expected constructor, got type=" + typeof e);
|
|
858
|
-
|
|
862
|
+
V(t.fromAffine, "Point.fromAffine"), V(t.fromBytes, "Point.fromBytes"), V(t.fromHex, "Point.fromHex"), B(t.BASE, "Point.BASE"), B(t.ZERO, "Point.ZERO"), Z(t.Fp), Z(t.Fn);
|
|
859
863
|
}
|
|
860
864
|
function Zt(e, t) {
|
|
861
865
|
Xt(e), tn(t, e);
|
|
@@ -871,7 +875,7 @@ function $t(e, t) {
|
|
|
871
875
|
}
|
|
872
876
|
function en(e, t) {
|
|
873
877
|
if (e !== void 0) {
|
|
874
|
-
|
|
878
|
+
V(e, "randomBytes");
|
|
875
879
|
try {
|
|
876
880
|
let n = e(t);
|
|
877
881
|
if (!nt(n) || n.length !== t) return;
|
|
@@ -889,7 +893,7 @@ function tn(e, t) {
|
|
|
889
893
|
function nn(e, t, n) {
|
|
890
894
|
if (!Array.isArray(e)) throw Error("array of scalars expected");
|
|
891
895
|
e.forEach((e, r) => {
|
|
892
|
-
if (!(n === void 0 ? t.isValid(e) :
|
|
896
|
+
if (!(n === void 0 ? t.isValid(e) : W(e) && e < n)) throw Error("invalid scalar at index " + r);
|
|
893
897
|
});
|
|
894
898
|
}
|
|
895
899
|
var rn = /* @__PURE__ */ new WeakMap();
|
|
@@ -905,7 +909,7 @@ function sn(e, t) {
|
|
|
905
909
|
let n = 2 ** t, r = n / 2, i = BigInt(n - 1), a = [];
|
|
906
910
|
for (; e > Wt;) {
|
|
907
911
|
let t = 0;
|
|
908
|
-
e &
|
|
912
|
+
e & Q && (t = Number(e & i), t >= r && (t -= n), e -= BigInt(t)), a.push(t), e >>= Q;
|
|
909
913
|
}
|
|
910
914
|
return a;
|
|
911
915
|
}
|
|
@@ -913,7 +917,7 @@ function cn(e, t, n) {
|
|
|
913
917
|
let r = 2 ** t, i = r / 2, a = BigInt(r - 1), o = BigInt(t), s = [];
|
|
914
918
|
for (let t = 0; t < n; t++) {
|
|
915
919
|
let t = Number(e & a);
|
|
916
|
-
e >>= o, t > i && (t -= r, e +=
|
|
920
|
+
e >>= o, t > i && (t -= r, e += Q), s.push(t);
|
|
917
921
|
}
|
|
918
922
|
if (e !== Wt) throw Error("invalid wnaf");
|
|
919
923
|
return s;
|
|
@@ -983,7 +987,7 @@ var un = class {
|
|
|
983
987
|
if (!(e instanceof this.Point)) throw TypeError("\"point\" expected Point instance, got type=" + typeof e);
|
|
984
988
|
}
|
|
985
989
|
validateMulInput(e, t) {
|
|
986
|
-
if (this.assertPoint(e), !mt(t,
|
|
990
|
+
if (this.assertPoint(e), !mt(t, Q, this.Point.Fn.ORDER)) throw Error("invalid scalar");
|
|
987
991
|
}
|
|
988
992
|
runCT(e, t, n, r) {
|
|
989
993
|
let i = an(e);
|
|
@@ -1017,13 +1021,13 @@ var un = class {
|
|
|
1017
1021
|
};
|
|
1018
1022
|
}
|
|
1019
1023
|
shouldBlind(e, t) {
|
|
1020
|
-
return this.randomBytes === void 0 ? !1 : t ===
|
|
1024
|
+
return this.randomBytes === void 0 ? !1 : t === Q || e === this.BASE && (this.baseCanBeBlinded === void 0 && (this.baseCanBeBlinded = this.mulUnsafe(this.BASE, this.Point.Fn.ORDER).is0()), this.baseCanBeBlinded);
|
|
1021
1025
|
}
|
|
1022
1026
|
mulSecret(e, t, n, r) {
|
|
1023
1027
|
return this.shouldBlind(e, n) ? this.mulCTBlinded(e, t, r) : this.mulCT(e, t, r);
|
|
1024
1028
|
}
|
|
1025
1029
|
mulUnsafe(e, t, n) {
|
|
1026
|
-
if (this.assertPoint(e), !
|
|
1030
|
+
if (this.assertPoint(e), !W(t)) throw Error("invalid scalar");
|
|
1027
1031
|
let r = an(e);
|
|
1028
1032
|
if (r === 1 || t >= this.Point.Fn.ORDER) return dn(this.Point, [e], [t], !0);
|
|
1029
1033
|
let i = this.getWnafPrecomputes(r, e, this.bits, n);
|
|
@@ -1037,28 +1041,28 @@ var un = class {
|
|
|
1037
1041
|
}
|
|
1038
1042
|
};
|
|
1039
1043
|
function dn(e, t, n, r = !1) {
|
|
1040
|
-
if (Xt(e), tn(t, e),
|
|
1044
|
+
if (Xt(e), tn(t, e), U(r, "allowOversized"), nn(n, e.Fn, r ? e.Fn.ORDER ** Gt : void 0), t.length !== n.length) throw Error("arrays of points and scalars must have equal length");
|
|
1041
1045
|
let i = t.map((e) => on(e, 4)), a = n.map((e) => sn(e, 4));
|
|
1042
1046
|
return ln(e.ZERO, i, a);
|
|
1043
1047
|
}
|
|
1044
1048
|
function fn(e, t, n) {
|
|
1045
1049
|
if (t) {
|
|
1046
1050
|
if (t.ORDER !== e) throw Error("Field.ORDER must match order: Fp == p, Fn == n");
|
|
1047
|
-
return
|
|
1051
|
+
return Z(t), t;
|
|
1048
1052
|
}
|
|
1049
1053
|
return Ut(e, { isLE: n });
|
|
1050
1054
|
}
|
|
1051
1055
|
function pn(e, t, n = {}, r) {
|
|
1052
1056
|
if (e !== "weierstrass" && e !== "edwards") throw Error("expected curve type \"weierstrass\" or \"edwards\"");
|
|
1053
1057
|
if (r === void 0 && (r = e === "edwards"), !t || typeof t != "object") throw Error(`expected valid ${e} CURVE object`);
|
|
1054
|
-
|
|
1058
|
+
G(n);
|
|
1055
1059
|
for (let e of [
|
|
1056
1060
|
"p",
|
|
1057
1061
|
"n",
|
|
1058
1062
|
"h"
|
|
1059
1063
|
]) {
|
|
1060
1064
|
let n = t[e];
|
|
1061
|
-
if (!(
|
|
1065
|
+
if (!(W(n) && n !== Wt)) throw Error(`CURVE.${e} must be positive bigint`);
|
|
1062
1066
|
}
|
|
1063
1067
|
let i = fn(t.p, n.Fp, r), a = fn(t.n, n.Fn, r), o = [
|
|
1064
1068
|
"Gx",
|
|
@@ -1090,11 +1094,11 @@ function bn(e, t, n, r) {
|
|
|
1090
1094
|
return e.eql(o, s);
|
|
1091
1095
|
}
|
|
1092
1096
|
function xn(e, t = {}) {
|
|
1093
|
-
|
|
1097
|
+
G(t, {}, {}, "extraOpts");
|
|
1094
1098
|
let n = t, r = pn("edwards", e, n, n.FpFnLE), { Fp: i, Fn: a } = r, o = r.CURVE, { h: s } = o;
|
|
1095
1099
|
if (zt(i, o.a) !== 1) throw Error("edwards: CURVE.a must be a square in Fp for complete addition formulas");
|
|
1096
1100
|
if (zt(i, o.d) !== -1) throw Error("edwards: CURVE.d must be a non-square in Fp for complete addition formulas");
|
|
1097
|
-
|
|
1101
|
+
G(n, {}, {
|
|
1098
1102
|
uvRatio: "function",
|
|
1099
1103
|
randomBytes: "function"
|
|
1100
1104
|
});
|
|
@@ -1147,7 +1151,7 @@ function xn(e, t = {}) {
|
|
|
1147
1151
|
}
|
|
1148
1152
|
static fromBytes(e, t = !1) {
|
|
1149
1153
|
let n = i.BYTES, { a: r, d: a } = o;
|
|
1150
|
-
e = pt(
|
|
1154
|
+
e = pt(z(e, n, "point")), U(t, "zip215");
|
|
1151
1155
|
let s = pt(e), c = e[n - 1];
|
|
1152
1156
|
s[n - 1] = c & -129;
|
|
1153
1157
|
let f = ut(s);
|
|
@@ -1255,7 +1259,7 @@ function xn(e, t = {}) {
|
|
|
1255
1259
|
function Sn(e, t, n = {}) {
|
|
1256
1260
|
if (Xt(e), typeof t != "function") throw Error("\"hash\" function param is required");
|
|
1257
1261
|
let r = t, i = n;
|
|
1258
|
-
|
|
1262
|
+
G(i, {}, {
|
|
1259
1263
|
adjustScalarBytes: "function",
|
|
1260
1264
|
randomBytes: "function",
|
|
1261
1265
|
domain: "function",
|
|
@@ -1266,9 +1270,9 @@ function Sn(e, t, n = {}) {
|
|
|
1266
1270
|
toMontgomerySecret: "function"
|
|
1267
1271
|
});
|
|
1268
1272
|
let { prehash: a } = i, { BASE: o, Fp: s, Fn: c } = e, l = r.outputLen, u = 2 * s.BYTES;
|
|
1269
|
-
if (l !== void 0 && (
|
|
1273
|
+
if (l !== void 0 && (st(l, "hash.outputLen"), l !== u)) throw Error(`hash.outputLen must be ${u}, got ${l}`);
|
|
1270
1274
|
let d = i.randomBytes === void 0 ? rt : i.randomBytes, f = i.toMontgomery, p = i.toMontgomerySecret, m = i.adjustScalarBytes === void 0 ? (e) => e : i.adjustScalarBytes, h = i.domain === void 0 ? (e, t, n) => {
|
|
1271
|
-
if (
|
|
1275
|
+
if (U(n, "phflag"), t.length || n) throw Error("Contexts/pre-hash are not supported");
|
|
1272
1276
|
return e;
|
|
1273
1277
|
} : i.domain;
|
|
1274
1278
|
function g(e) {
|
|
@@ -1276,8 +1280,8 @@ function Sn(e, t, n = {}) {
|
|
|
1276
1280
|
}
|
|
1277
1281
|
function _(e) {
|
|
1278
1282
|
let t = T.secretKey;
|
|
1279
|
-
|
|
1280
|
-
let n =
|
|
1283
|
+
z(e, T.secretKey, "secretKey");
|
|
1284
|
+
let n = z(r(e), 2 * t, "hashedSecretKey"), i = m(n.slice(0, t));
|
|
1281
1285
|
return {
|
|
1282
1286
|
head: i,
|
|
1283
1287
|
prefix: n.slice(t, 2 * t),
|
|
@@ -1299,19 +1303,19 @@ function Sn(e, t, n = {}) {
|
|
|
1299
1303
|
}
|
|
1300
1304
|
function b(e = Uint8Array.of(), ...t) {
|
|
1301
1305
|
let n = et(...t);
|
|
1302
|
-
return g(r(h(n,
|
|
1306
|
+
return g(r(h(n, z(e, void 0, "context"), !!a)));
|
|
1303
1307
|
}
|
|
1304
1308
|
function x(e, t, n = {}) {
|
|
1305
|
-
|
|
1309
|
+
G(n, {}, {}, "options"), e = pt(z(e, void 0, "message")), a && (e = a(e));
|
|
1306
1310
|
let { prefix: r, scalar: i, pointBytes: s } = v(t), l = b(n.context, r, e), u = o.multiply(l).toBytes(), d = b(n.context, u, s, e), f = c.create(l + d * i);
|
|
1307
1311
|
if (!c.isValid(f)) throw Error("sign failed: invalid s");
|
|
1308
|
-
return
|
|
1312
|
+
return z(et(u, c.toBytes(f)), T.signature, "result");
|
|
1309
1313
|
}
|
|
1310
1314
|
let S = { zip215: i.zip215 };
|
|
1311
1315
|
function C(t, n, r, i = S) {
|
|
1312
|
-
|
|
1316
|
+
G(i);
|
|
1313
1317
|
let { context: s } = i, c = i.zip215 === void 0 ? !!S.zip215 : i.zip215, l = T.signature;
|
|
1314
|
-
t =
|
|
1318
|
+
t = z(t, l, "signature"), n = z(n, void 0, "message"), r = z(r, T.publicKey, "publicKey"), c !== void 0 && U(c, "zip215"), a && (n = a(n));
|
|
1315
1319
|
let u = l / 2, d = t.subarray(0, u), f = ut(t.subarray(u, l)), p, m, h;
|
|
1316
1320
|
try {
|
|
1317
1321
|
p = e.fromBytes(r, c), m = e.fromBytes(d, c), h = o.multiplyUnsafe(f);
|
|
@@ -1329,7 +1333,7 @@ function Sn(e, t, n = {}) {
|
|
|
1329
1333
|
seed: w
|
|
1330
1334
|
};
|
|
1331
1335
|
function E(e) {
|
|
1332
|
-
return e = e === void 0 ? d(T.seed) : e,
|
|
1336
|
+
return e = e === void 0 ? d(T.seed) : e, z(e, T.seed, "seed");
|
|
1333
1337
|
}
|
|
1334
1338
|
function ee(e) {
|
|
1335
1339
|
return nt(e) && e.length === T.secretKey;
|
|
@@ -1377,9 +1381,9 @@ var Cn = /* @__PURE__ */ BigInt(1), wn = /* @__PURE__ */ BigInt(2), Tn = /* @__P
|
|
|
1377
1381
|
Gy: BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")
|
|
1378
1382
|
};
|
|
1379
1383
|
function kn(e) {
|
|
1380
|
-
let t = BigInt(10), n = BigInt(20), r = BigInt(40), i = BigInt(80), a = Dn, o = e * e % a * e % a, s =
|
|
1384
|
+
let t = BigInt(10), n = BigInt(20), r = BigInt(40), i = BigInt(80), a = Dn, o = e * e % a * e % a, s = X(X(o, wn, a) * o % a, Cn, a) * e % a, c = X(s, Tn, a) * s % a, l = X(c, t, a) * c % a, u = X(l, n, a) * l % a, d = X(u, r, a) * u % a;
|
|
1381
1385
|
return {
|
|
1382
|
-
pow_p_5_8:
|
|
1386
|
+
pow_p_5_8: X(X(X(X(d, i, a) * d % a, i, a) * d % a, t, a) * c % a, wn, a) * e % a,
|
|
1383
1387
|
b2: o
|
|
1384
1388
|
};
|
|
1385
1389
|
}
|
|
@@ -1388,8 +1392,8 @@ function An(e) {
|
|
|
1388
1392
|
}
|
|
1389
1393
|
var jn = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
|
|
1390
1394
|
function Mn(e, t) {
|
|
1391
|
-
let n = Dn, r =
|
|
1392
|
-
return l && (a = s), (u || d) && (a = c), It(a, n) && (a =
|
|
1395
|
+
let n = Dn, r = Y(t * t * t, n), i = kn(e * Y(r * r * t, n)).pow_p_5_8, a = Y(e * r * i, n), o = Y(t * a * a, n), s = a, c = Y(a * jn, n), l = o === e, u = o === Y(-e, n), d = o === Y(-e * jn, n);
|
|
1396
|
+
return l && (a = s), (u || d) && (a = c), It(a, n) && (a = Y(-a, n)), {
|
|
1393
1397
|
isValid: l || u,
|
|
1394
1398
|
value: a
|
|
1395
1399
|
};
|
|
@@ -1401,7 +1405,7 @@ function Fn(e) {
|
|
|
1401
1405
|
}
|
|
1402
1406
|
function In(e) {
|
|
1403
1407
|
let t = Nn.Fp.BYTES;
|
|
1404
|
-
return
|
|
1408
|
+
return I(e, t), An(Xe(e.subarray(0, t))).subarray(0, t);
|
|
1405
1409
|
}
|
|
1406
1410
|
function Ln(e) {
|
|
1407
1411
|
return Sn(Nn, Xe, Object.assign({
|
|
@@ -1411,21 +1415,21 @@ function Ln(e) {
|
|
|
1411
1415
|
zip215: !0
|
|
1412
1416
|
}, e));
|
|
1413
1417
|
}
|
|
1414
|
-
var
|
|
1415
|
-
function
|
|
1416
|
-
e.length <
|
|
1418
|
+
var $ = /* @__PURE__ */ Ln({}), Rn = 32, zn = 248, Bn = 127, Vn = 64, Hn = 128, Un = 127;
|
|
1419
|
+
function Wn(e) {
|
|
1420
|
+
e.length < Rn || (e[0] = (e[0] ?? 0) & zn, e[31] = (e[31] ?? 0) & Bn | Vn);
|
|
1417
1421
|
}
|
|
1418
|
-
function
|
|
1419
|
-
let e = new Uint8Array(s(
|
|
1420
|
-
|
|
1421
|
-
let t =
|
|
1422
|
-
return [
|
|
1422
|
+
function Gn() {
|
|
1423
|
+
let e = new Uint8Array(s(Rn));
|
|
1424
|
+
Wn(e);
|
|
1425
|
+
let t = Xn(e) % $.Point.CURVE().n;
|
|
1426
|
+
return [$.Point.BASE.multiply(t).toBytes(), Uint8Array.from(e)];
|
|
1423
1427
|
}
|
|
1424
|
-
function
|
|
1428
|
+
function Kn(e, t) {
|
|
1425
1429
|
let n = i("SHA256");
|
|
1426
1430
|
return n.update(t), n.sign(e);
|
|
1427
1431
|
}
|
|
1428
|
-
function
|
|
1432
|
+
function qn(e, t, n) {
|
|
1429
1433
|
try {
|
|
1430
1434
|
let r = a("SHA256");
|
|
1431
1435
|
return r.update(t), r.verify(e, Buffer.from(n));
|
|
@@ -1433,25 +1437,25 @@ function Kn(e, t, n) {
|
|
|
1433
1437
|
return !1;
|
|
1434
1438
|
}
|
|
1435
1439
|
}
|
|
1436
|
-
function
|
|
1437
|
-
if (e.length !==
|
|
1440
|
+
function Jn(e, n) {
|
|
1441
|
+
if (e.length !== Rn || n.length !== Rn) throw Error("invalid key length");
|
|
1438
1442
|
let r = Uint8Array.from(n);
|
|
1439
|
-
r[31] = (r[31] ?? 0) &
|
|
1440
|
-
let i =
|
|
1441
|
-
return a[31] = (a[31] ?? 0) ^
|
|
1442
|
-
}
|
|
1443
|
-
function
|
|
1444
|
-
let n =
|
|
1445
|
-
if (t < n) return t === 0n ?
|
|
1446
|
-
let r = t % n, i = t / n, a = r === 0n ?
|
|
1443
|
+
r[31] = (r[31] ?? 0) & Un;
|
|
1444
|
+
let i = Xn(r), a = Yn($.Point.fromBytes(e).negate(), i).toBytes();
|
|
1445
|
+
return a[31] = (a[31] ?? 0) ^ Hn, t("sha512").update(a).digest();
|
|
1446
|
+
}
|
|
1447
|
+
function Yn(e, t) {
|
|
1448
|
+
let n = $.Point.CURVE().n;
|
|
1449
|
+
if (t < n) return t === 0n ? $.Point.ZERO : e.multiply(t);
|
|
1450
|
+
let r = t % n, i = t / n, a = r === 0n ? $.Point.ZERO : e.multiply(r), o = e.multiply(n - 1n).add(e).multiply(i);
|
|
1447
1451
|
return a.add(o);
|
|
1448
1452
|
}
|
|
1449
|
-
function
|
|
1453
|
+
function Xn(e) {
|
|
1450
1454
|
let t = 0n;
|
|
1451
1455
|
for (let n = e.length - 1; n >= 0; n--) t = t << 8n | BigInt(e[n]);
|
|
1452
1456
|
return t;
|
|
1453
1457
|
}
|
|
1454
1458
|
//#endregion
|
|
1455
|
-
export {
|
|
1459
|
+
export { _ as C, h as S, c as T, u as _, Yn as a, p as b, $ as c, T as d, E as f, d as g, w as h, Jn as i, x as l, D as m, Wn as n, Kn as o, S as p, Gn as r, qn as s, Xn as t, C as u, g as v, l as w, m as x, f as y };
|
|
1456
1460
|
|
|
1457
|
-
//# sourceMappingURL=primitives-
|
|
1461
|
+
//# sourceMappingURL=primitives-CdX74Rgu.js.map
|