@t2000/cli 10.20.2 → 10.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{chunk-LKSOKYLR.js → chunk-5MAY6SK7.js} +2 -6
  2. package/dist/{chunk-LKSOKYLR.js.map → chunk-5MAY6SK7.js.map} +1 -1
  3. package/dist/{chunk-SUSL7H4U.js → chunk-D3DUYZYR.js} +1 -20
  4. package/dist/{chunk-SUSL7H4U.js.map → chunk-D3DUYZYR.js.map} +1 -1
  5. package/dist/{chunk-XE63VG7O.js → chunk-JEIOQF6Q.js} +3 -3
  6. package/dist/{chunk-WHUYPKGH.js → chunk-R6QER65C.js} +3 -3
  7. package/dist/{chunk-3YV35WUN.js → chunk-SKQLFHJJ.js} +5 -5
  8. package/dist/{chunk-3ZUWXUSN.js → chunk-ZXXZGTWS.js} +71 -2
  9. package/dist/chunk-ZXXZGTWS.js.map +1 -0
  10. package/dist/{dist-2UQ2QGGD.js → dist-36BJD54E.js} +4 -5
  11. package/dist/{dist-2UQ2QGGD.js.map → dist-36BJD54E.js.map} +1 -1
  12. package/dist/{dist-3WU6OGLY.js → dist-MQVAPHMQ.js} +6 -7
  13. package/dist/{esm-B2D3HRCK.js → esm-4JYJHL2T.js} +2 -2
  14. package/dist/{grpc-5M6HXT6N.js → grpc-SHHHADW4.js} +4 -4
  15. package/dist/index.js +12314 -499
  16. package/dist/index.js.map +1 -1
  17. package/dist/{src-JJQKDNTF.js → src-4VRJNQ2G.js} +3 -5
  18. package/dist/{src-JJQKDNTF.js.map → src-4VRJNQ2G.js.map} +1 -1
  19. package/package.json +3 -3
  20. package/dist/_esm-K6TT5GJK.js +0 -3660
  21. package/dist/_esm-K6TT5GJK.js.map +0 -1
  22. package/dist/ccip-RH5RVHLF.js +0 -18
  23. package/dist/chunk-3ZUWXUSN.js.map +0 -1
  24. package/dist/chunk-4MFEND6E.js +0 -154
  25. package/dist/chunk-4MFEND6E.js.map +0 -1
  26. package/dist/chunk-5T7HEJY2.js +0 -620
  27. package/dist/chunk-5T7HEJY2.js.map +0 -1
  28. package/dist/chunk-65QFRTNV.js +0 -1918
  29. package/dist/chunk-65QFRTNV.js.map +0 -1
  30. package/dist/chunk-CPGDCKGM.js +0 -13603
  31. package/dist/chunk-CPGDCKGM.js.map +0 -1
  32. package/dist/chunk-HTE5A24I.js +0 -78
  33. package/dist/chunk-HTE5A24I.js.map +0 -1
  34. package/dist/chunk-OCLKPYUU.js +0 -2
  35. package/dist/chunk-PDKJSPAS.js +0 -243
  36. package/dist/chunk-PDKJSPAS.js.map +0 -1
  37. package/dist/chunk-QO46HIYL.js +0 -12
  38. package/dist/chunk-QO46HIYL.js.map +0 -1
  39. package/dist/chunk-R5V4MKT2.js +0 -968
  40. package/dist/chunk-R5V4MKT2.js.map +0 -1
  41. package/dist/chunk-RHWZZCW3.js +0 -265
  42. package/dist/chunk-RHWZZCW3.js.map +0 -1
  43. package/dist/chunk-RI6QL63V.js +0 -17061
  44. package/dist/chunk-RI6QL63V.js.map +0 -1
  45. package/dist/chunk-YDDF6B4R.js +0 -5206
  46. package/dist/chunk-YDDF6B4R.js.map +0 -1
  47. package/dist/client-JLZR2FS5.js +0 -16020
  48. package/dist/client-JLZR2FS5.js.map +0 -1
  49. package/dist/client-UP24NK7G.js +0 -150
  50. package/dist/client-UP24NK7G.js.map +0 -1
  51. package/dist/dist-3WU6OGLY.js.map +0 -1
  52. package/dist/dist-LRMCAOJQ.js +0 -37
  53. package/dist/dist-LRMCAOJQ.js.map +0 -1
  54. package/dist/dist-PB7J4ZXK.js +0 -440
  55. package/dist/dist-PB7J4ZXK.js.map +0 -1
  56. package/dist/grpc-5M6HXT6N.js.map +0 -1
  57. package/dist/secp256k1-L7272WAL.js +0 -20
  58. package/dist/secp256k1-L7272WAL.js.map +0 -1
  59. /package/dist/{chunk-XE63VG7O.js.map → chunk-JEIOQF6Q.js.map} +0 -0
  60. /package/dist/{chunk-WHUYPKGH.js.map → chunk-R6QER65C.js.map} +0 -0
  61. /package/dist/{chunk-3YV35WUN.js.map → chunk-SKQLFHJJ.js.map} +0 -0
  62. /package/dist/{ccip-RH5RVHLF.js.map → dist-MQVAPHMQ.js.map} +0 -0
  63. /package/dist/{esm-B2D3HRCK.js.map → esm-4JYJHL2T.js.map} +0 -0
  64. /package/dist/{chunk-OCLKPYUU.js.map → grpc-SHHHADW4.js.map} +0 -0
@@ -1,620 +0,0 @@
1
- import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __pathDirname } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __pathDirname(__filename);
2
- import {
3
- Hash,
4
- abytes,
5
- add,
6
- add3H,
7
- add3L,
8
- add4H,
9
- add4L,
10
- add5H,
11
- add5L,
12
- aexists,
13
- ahash,
14
- aoutput,
15
- clean,
16
- createHasher,
17
- createView,
18
- rotr,
19
- rotrBH,
20
- rotrBL,
21
- rotrSH,
22
- rotrSL,
23
- shrSH,
24
- shrSL,
25
- split,
26
- toBytes
27
- } from "./chunk-PDKJSPAS.js";
28
-
29
- // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
30
- function setBigUint64(view, byteOffset, value, isLE) {
31
- if (typeof view.setBigUint64 === "function")
32
- return view.setBigUint64(byteOffset, value, isLE);
33
- const _32n = BigInt(32);
34
- const _u32_max = BigInt(4294967295);
35
- const wh = Number(value >> _32n & _u32_max);
36
- const wl = Number(value & _u32_max);
37
- const h = isLE ? 4 : 0;
38
- const l = isLE ? 0 : 4;
39
- view.setUint32(byteOffset + h, wh, isLE);
40
- view.setUint32(byteOffset + l, wl, isLE);
41
- }
42
- function Chi(a, b, c) {
43
- return a & b ^ ~a & c;
44
- }
45
- function Maj(a, b, c) {
46
- return a & b ^ a & c ^ b & c;
47
- }
48
- var HashMD = class extends Hash {
49
- constructor(blockLen, outputLen, padOffset, isLE) {
50
- super();
51
- this.finished = false;
52
- this.length = 0;
53
- this.pos = 0;
54
- this.destroyed = false;
55
- this.blockLen = blockLen;
56
- this.outputLen = outputLen;
57
- this.padOffset = padOffset;
58
- this.isLE = isLE;
59
- this.buffer = new Uint8Array(blockLen);
60
- this.view = createView(this.buffer);
61
- }
62
- update(data) {
63
- aexists(this);
64
- data = toBytes(data);
65
- abytes(data);
66
- const { view, buffer, blockLen } = this;
67
- const len = data.length;
68
- for (let pos = 0; pos < len; ) {
69
- const take = Math.min(blockLen - this.pos, len - pos);
70
- if (take === blockLen) {
71
- const dataView = createView(data);
72
- for (; blockLen <= len - pos; pos += blockLen)
73
- this.process(dataView, pos);
74
- continue;
75
- }
76
- buffer.set(data.subarray(pos, pos + take), this.pos);
77
- this.pos += take;
78
- pos += take;
79
- if (this.pos === blockLen) {
80
- this.process(view, 0);
81
- this.pos = 0;
82
- }
83
- }
84
- this.length += data.length;
85
- this.roundClean();
86
- return this;
87
- }
88
- digestInto(out) {
89
- aexists(this);
90
- aoutput(out, this);
91
- this.finished = true;
92
- const { buffer, view, blockLen, isLE } = this;
93
- let { pos } = this;
94
- buffer[pos++] = 128;
95
- clean(this.buffer.subarray(pos));
96
- if (this.padOffset > blockLen - pos) {
97
- this.process(view, 0);
98
- pos = 0;
99
- }
100
- for (let i = pos; i < blockLen; i++)
101
- buffer[i] = 0;
102
- setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE);
103
- this.process(view, 0);
104
- const oview = createView(out);
105
- const len = this.outputLen;
106
- if (len % 4)
107
- throw new Error("_sha2: outputLen should be aligned to 32bit");
108
- const outLen = len / 4;
109
- const state = this.get();
110
- if (outLen > state.length)
111
- throw new Error("_sha2: outputLen bigger than state");
112
- for (let i = 0; i < outLen; i++)
113
- oview.setUint32(4 * i, state[i], isLE);
114
- }
115
- digest() {
116
- const { buffer, outputLen } = this;
117
- this.digestInto(buffer);
118
- const res = buffer.slice(0, outputLen);
119
- this.destroy();
120
- return res;
121
- }
122
- _cloneInto(to) {
123
- to || (to = new this.constructor());
124
- to.set(...this.get());
125
- const { blockLen, buffer, length, finished, destroyed, pos } = this;
126
- to.destroyed = destroyed;
127
- to.finished = finished;
128
- to.length = length;
129
- to.pos = pos;
130
- if (length % blockLen)
131
- to.buffer.set(buffer);
132
- return to;
133
- }
134
- clone() {
135
- return this._cloneInto();
136
- }
137
- };
138
- var SHA256_IV = /* @__PURE__ */ Uint32Array.from([
139
- 1779033703,
140
- 3144134277,
141
- 1013904242,
142
- 2773480762,
143
- 1359893119,
144
- 2600822924,
145
- 528734635,
146
- 1541459225
147
- ]);
148
- var SHA384_IV = /* @__PURE__ */ Uint32Array.from([
149
- 3418070365,
150
- 3238371032,
151
- 1654270250,
152
- 914150663,
153
- 2438529370,
154
- 812702999,
155
- 355462360,
156
- 4144912697,
157
- 1731405415,
158
- 4290775857,
159
- 2394180231,
160
- 1750603025,
161
- 3675008525,
162
- 1694076839,
163
- 1203062813,
164
- 3204075428
165
- ]);
166
- var SHA512_IV = /* @__PURE__ */ Uint32Array.from([
167
- 1779033703,
168
- 4089235720,
169
- 3144134277,
170
- 2227873595,
171
- 1013904242,
172
- 4271175723,
173
- 2773480762,
174
- 1595750129,
175
- 1359893119,
176
- 2917565137,
177
- 2600822924,
178
- 725511199,
179
- 528734635,
180
- 4215389547,
181
- 1541459225,
182
- 327033209
183
- ]);
184
-
185
- // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js
186
- var SHA256_K = /* @__PURE__ */ Uint32Array.from([
187
- 1116352408,
188
- 1899447441,
189
- 3049323471,
190
- 3921009573,
191
- 961987163,
192
- 1508970993,
193
- 2453635748,
194
- 2870763221,
195
- 3624381080,
196
- 310598401,
197
- 607225278,
198
- 1426881987,
199
- 1925078388,
200
- 2162078206,
201
- 2614888103,
202
- 3248222580,
203
- 3835390401,
204
- 4022224774,
205
- 264347078,
206
- 604807628,
207
- 770255983,
208
- 1249150122,
209
- 1555081692,
210
- 1996064986,
211
- 2554220882,
212
- 2821834349,
213
- 2952996808,
214
- 3210313671,
215
- 3336571891,
216
- 3584528711,
217
- 113926993,
218
- 338241895,
219
- 666307205,
220
- 773529912,
221
- 1294757372,
222
- 1396182291,
223
- 1695183700,
224
- 1986661051,
225
- 2177026350,
226
- 2456956037,
227
- 2730485921,
228
- 2820302411,
229
- 3259730800,
230
- 3345764771,
231
- 3516065817,
232
- 3600352804,
233
- 4094571909,
234
- 275423344,
235
- 430227734,
236
- 506948616,
237
- 659060556,
238
- 883997877,
239
- 958139571,
240
- 1322822218,
241
- 1537002063,
242
- 1747873779,
243
- 1955562222,
244
- 2024104815,
245
- 2227730452,
246
- 2361852424,
247
- 2428436474,
248
- 2756734187,
249
- 3204031479,
250
- 3329325298
251
- ]);
252
- var SHA256_W = /* @__PURE__ */ new Uint32Array(64);
253
- var SHA256 = class extends HashMD {
254
- constructor(outputLen = 32) {
255
- super(64, outputLen, 8, false);
256
- this.A = SHA256_IV[0] | 0;
257
- this.B = SHA256_IV[1] | 0;
258
- this.C = SHA256_IV[2] | 0;
259
- this.D = SHA256_IV[3] | 0;
260
- this.E = SHA256_IV[4] | 0;
261
- this.F = SHA256_IV[5] | 0;
262
- this.G = SHA256_IV[6] | 0;
263
- this.H = SHA256_IV[7] | 0;
264
- }
265
- get() {
266
- const { A, B, C, D, E, F, G, H } = this;
267
- return [A, B, C, D, E, F, G, H];
268
- }
269
- // prettier-ignore
270
- set(A, B, C, D, E, F, G, H) {
271
- this.A = A | 0;
272
- this.B = B | 0;
273
- this.C = C | 0;
274
- this.D = D | 0;
275
- this.E = E | 0;
276
- this.F = F | 0;
277
- this.G = G | 0;
278
- this.H = H | 0;
279
- }
280
- process(view, offset) {
281
- for (let i = 0; i < 16; i++, offset += 4)
282
- SHA256_W[i] = view.getUint32(offset, false);
283
- for (let i = 16; i < 64; i++) {
284
- const W15 = SHA256_W[i - 15];
285
- const W2 = SHA256_W[i - 2];
286
- const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ W15 >>> 3;
287
- const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ W2 >>> 10;
288
- SHA256_W[i] = s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16] | 0;
289
- }
290
- let { A, B, C, D, E, F, G, H } = this;
291
- for (let i = 0; i < 64; i++) {
292
- const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
293
- const T1 = H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i] | 0;
294
- const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
295
- const T2 = sigma0 + Maj(A, B, C) | 0;
296
- H = G;
297
- G = F;
298
- F = E;
299
- E = D + T1 | 0;
300
- D = C;
301
- C = B;
302
- B = A;
303
- A = T1 + T2 | 0;
304
- }
305
- A = A + this.A | 0;
306
- B = B + this.B | 0;
307
- C = C + this.C | 0;
308
- D = D + this.D | 0;
309
- E = E + this.E | 0;
310
- F = F + this.F | 0;
311
- G = G + this.G | 0;
312
- H = H + this.H | 0;
313
- this.set(A, B, C, D, E, F, G, H);
314
- }
315
- roundClean() {
316
- clean(SHA256_W);
317
- }
318
- destroy() {
319
- this.set(0, 0, 0, 0, 0, 0, 0, 0);
320
- clean(this.buffer);
321
- }
322
- };
323
- var K512 = /* @__PURE__ */ (() => split([
324
- "0x428a2f98d728ae22",
325
- "0x7137449123ef65cd",
326
- "0xb5c0fbcfec4d3b2f",
327
- "0xe9b5dba58189dbbc",
328
- "0x3956c25bf348b538",
329
- "0x59f111f1b605d019",
330
- "0x923f82a4af194f9b",
331
- "0xab1c5ed5da6d8118",
332
- "0xd807aa98a3030242",
333
- "0x12835b0145706fbe",
334
- "0x243185be4ee4b28c",
335
- "0x550c7dc3d5ffb4e2",
336
- "0x72be5d74f27b896f",
337
- "0x80deb1fe3b1696b1",
338
- "0x9bdc06a725c71235",
339
- "0xc19bf174cf692694",
340
- "0xe49b69c19ef14ad2",
341
- "0xefbe4786384f25e3",
342
- "0x0fc19dc68b8cd5b5",
343
- "0x240ca1cc77ac9c65",
344
- "0x2de92c6f592b0275",
345
- "0x4a7484aa6ea6e483",
346
- "0x5cb0a9dcbd41fbd4",
347
- "0x76f988da831153b5",
348
- "0x983e5152ee66dfab",
349
- "0xa831c66d2db43210",
350
- "0xb00327c898fb213f",
351
- "0xbf597fc7beef0ee4",
352
- "0xc6e00bf33da88fc2",
353
- "0xd5a79147930aa725",
354
- "0x06ca6351e003826f",
355
- "0x142929670a0e6e70",
356
- "0x27b70a8546d22ffc",
357
- "0x2e1b21385c26c926",
358
- "0x4d2c6dfc5ac42aed",
359
- "0x53380d139d95b3df",
360
- "0x650a73548baf63de",
361
- "0x766a0abb3c77b2a8",
362
- "0x81c2c92e47edaee6",
363
- "0x92722c851482353b",
364
- "0xa2bfe8a14cf10364",
365
- "0xa81a664bbc423001",
366
- "0xc24b8b70d0f89791",
367
- "0xc76c51a30654be30",
368
- "0xd192e819d6ef5218",
369
- "0xd69906245565a910",
370
- "0xf40e35855771202a",
371
- "0x106aa07032bbd1b8",
372
- "0x19a4c116b8d2d0c8",
373
- "0x1e376c085141ab53",
374
- "0x2748774cdf8eeb99",
375
- "0x34b0bcb5e19b48a8",
376
- "0x391c0cb3c5c95a63",
377
- "0x4ed8aa4ae3418acb",
378
- "0x5b9cca4f7763e373",
379
- "0x682e6ff3d6b2b8a3",
380
- "0x748f82ee5defb2fc",
381
- "0x78a5636f43172f60",
382
- "0x84c87814a1f0ab72",
383
- "0x8cc702081a6439ec",
384
- "0x90befffa23631e28",
385
- "0xa4506cebde82bde9",
386
- "0xbef9a3f7b2c67915",
387
- "0xc67178f2e372532b",
388
- "0xca273eceea26619c",
389
- "0xd186b8c721c0c207",
390
- "0xeada7dd6cde0eb1e",
391
- "0xf57d4f7fee6ed178",
392
- "0x06f067aa72176fba",
393
- "0x0a637dc5a2c898a6",
394
- "0x113f9804bef90dae",
395
- "0x1b710b35131c471b",
396
- "0x28db77f523047d84",
397
- "0x32caab7b40c72493",
398
- "0x3c9ebe0a15c9bebc",
399
- "0x431d67c49c100d4c",
400
- "0x4cc5d4becb3e42b6",
401
- "0x597f299cfc657e2a",
402
- "0x5fcb6fab3ad6faec",
403
- "0x6c44198c4a475817"
404
- ].map((n) => BigInt(n))))();
405
- var SHA512_Kh = /* @__PURE__ */ (() => K512[0])();
406
- var SHA512_Kl = /* @__PURE__ */ (() => K512[1])();
407
- var SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);
408
- var SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);
409
- var SHA512 = class extends HashMD {
410
- constructor(outputLen = 64) {
411
- super(128, outputLen, 16, false);
412
- this.Ah = SHA512_IV[0] | 0;
413
- this.Al = SHA512_IV[1] | 0;
414
- this.Bh = SHA512_IV[2] | 0;
415
- this.Bl = SHA512_IV[3] | 0;
416
- this.Ch = SHA512_IV[4] | 0;
417
- this.Cl = SHA512_IV[5] | 0;
418
- this.Dh = SHA512_IV[6] | 0;
419
- this.Dl = SHA512_IV[7] | 0;
420
- this.Eh = SHA512_IV[8] | 0;
421
- this.El = SHA512_IV[9] | 0;
422
- this.Fh = SHA512_IV[10] | 0;
423
- this.Fl = SHA512_IV[11] | 0;
424
- this.Gh = SHA512_IV[12] | 0;
425
- this.Gl = SHA512_IV[13] | 0;
426
- this.Hh = SHA512_IV[14] | 0;
427
- this.Hl = SHA512_IV[15] | 0;
428
- }
429
- // prettier-ignore
430
- get() {
431
- const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
432
- return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];
433
- }
434
- // prettier-ignore
435
- set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {
436
- this.Ah = Ah | 0;
437
- this.Al = Al | 0;
438
- this.Bh = Bh | 0;
439
- this.Bl = Bl | 0;
440
- this.Ch = Ch | 0;
441
- this.Cl = Cl | 0;
442
- this.Dh = Dh | 0;
443
- this.Dl = Dl | 0;
444
- this.Eh = Eh | 0;
445
- this.El = El | 0;
446
- this.Fh = Fh | 0;
447
- this.Fl = Fl | 0;
448
- this.Gh = Gh | 0;
449
- this.Gl = Gl | 0;
450
- this.Hh = Hh | 0;
451
- this.Hl = Hl | 0;
452
- }
453
- process(view, offset) {
454
- for (let i = 0; i < 16; i++, offset += 4) {
455
- SHA512_W_H[i] = view.getUint32(offset);
456
- SHA512_W_L[i] = view.getUint32(offset += 4);
457
- }
458
- for (let i = 16; i < 80; i++) {
459
- const W15h = SHA512_W_H[i - 15] | 0;
460
- const W15l = SHA512_W_L[i - 15] | 0;
461
- const s0h = rotrSH(W15h, W15l, 1) ^ rotrSH(W15h, W15l, 8) ^ shrSH(W15h, W15l, 7);
462
- const s0l = rotrSL(W15h, W15l, 1) ^ rotrSL(W15h, W15l, 8) ^ shrSL(W15h, W15l, 7);
463
- const W2h = SHA512_W_H[i - 2] | 0;
464
- const W2l = SHA512_W_L[i - 2] | 0;
465
- const s1h = rotrSH(W2h, W2l, 19) ^ rotrBH(W2h, W2l, 61) ^ shrSH(W2h, W2l, 6);
466
- const s1l = rotrSL(W2h, W2l, 19) ^ rotrBL(W2h, W2l, 61) ^ shrSL(W2h, W2l, 6);
467
- const SUMl = add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
468
- const SUMh = add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
469
- SHA512_W_H[i] = SUMh | 0;
470
- SHA512_W_L[i] = SUMl | 0;
471
- }
472
- let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
473
- for (let i = 0; i < 80; i++) {
474
- const sigma1h = rotrSH(Eh, El, 14) ^ rotrSH(Eh, El, 18) ^ rotrBH(Eh, El, 41);
475
- const sigma1l = rotrSL(Eh, El, 14) ^ rotrSL(Eh, El, 18) ^ rotrBL(Eh, El, 41);
476
- const CHIh = Eh & Fh ^ ~Eh & Gh;
477
- const CHIl = El & Fl ^ ~El & Gl;
478
- const T1ll = add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
479
- const T1h = add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
480
- const T1l = T1ll | 0;
481
- const sigma0h = rotrSH(Ah, Al, 28) ^ rotrBH(Ah, Al, 34) ^ rotrBH(Ah, Al, 39);
482
- const sigma0l = rotrSL(Ah, Al, 28) ^ rotrBL(Ah, Al, 34) ^ rotrBL(Ah, Al, 39);
483
- const MAJh = Ah & Bh ^ Ah & Ch ^ Bh & Ch;
484
- const MAJl = Al & Bl ^ Al & Cl ^ Bl & Cl;
485
- Hh = Gh | 0;
486
- Hl = Gl | 0;
487
- Gh = Fh | 0;
488
- Gl = Fl | 0;
489
- Fh = Eh | 0;
490
- Fl = El | 0;
491
- ({ h: Eh, l: El } = add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
492
- Dh = Ch | 0;
493
- Dl = Cl | 0;
494
- Ch = Bh | 0;
495
- Cl = Bl | 0;
496
- Bh = Ah | 0;
497
- Bl = Al | 0;
498
- const All = add3L(T1l, sigma0l, MAJl);
499
- Ah = add3H(All, T1h, sigma0h, MAJh);
500
- Al = All | 0;
501
- }
502
- ({ h: Ah, l: Al } = add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
503
- ({ h: Bh, l: Bl } = add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
504
- ({ h: Ch, l: Cl } = add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
505
- ({ h: Dh, l: Dl } = add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
506
- ({ h: Eh, l: El } = add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
507
- ({ h: Fh, l: Fl } = add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
508
- ({ h: Gh, l: Gl } = add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
509
- ({ h: Hh, l: Hl } = add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
510
- this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);
511
- }
512
- roundClean() {
513
- clean(SHA512_W_H, SHA512_W_L);
514
- }
515
- destroy() {
516
- clean(this.buffer);
517
- this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
518
- }
519
- };
520
- var SHA384 = class extends SHA512 {
521
- constructor() {
522
- super(48);
523
- this.Ah = SHA384_IV[0] | 0;
524
- this.Al = SHA384_IV[1] | 0;
525
- this.Bh = SHA384_IV[2] | 0;
526
- this.Bl = SHA384_IV[3] | 0;
527
- this.Ch = SHA384_IV[4] | 0;
528
- this.Cl = SHA384_IV[5] | 0;
529
- this.Dh = SHA384_IV[6] | 0;
530
- this.Dl = SHA384_IV[7] | 0;
531
- this.Eh = SHA384_IV[8] | 0;
532
- this.El = SHA384_IV[9] | 0;
533
- this.Fh = SHA384_IV[10] | 0;
534
- this.Fl = SHA384_IV[11] | 0;
535
- this.Gh = SHA384_IV[12] | 0;
536
- this.Gl = SHA384_IV[13] | 0;
537
- this.Hh = SHA384_IV[14] | 0;
538
- this.Hl = SHA384_IV[15] | 0;
539
- }
540
- };
541
- var sha256 = /* @__PURE__ */ createHasher(() => new SHA256());
542
- var sha512 = /* @__PURE__ */ createHasher(() => new SHA512());
543
- var sha384 = /* @__PURE__ */ createHasher(() => new SHA384());
544
-
545
- // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
546
- var HMAC = class extends Hash {
547
- constructor(hash, _key) {
548
- super();
549
- this.finished = false;
550
- this.destroyed = false;
551
- ahash(hash);
552
- const key = toBytes(_key);
553
- this.iHash = hash.create();
554
- if (typeof this.iHash.update !== "function")
555
- throw new Error("Expected instance of class which extends utils.Hash");
556
- this.blockLen = this.iHash.blockLen;
557
- this.outputLen = this.iHash.outputLen;
558
- const blockLen = this.blockLen;
559
- const pad = new Uint8Array(blockLen);
560
- pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
561
- for (let i = 0; i < pad.length; i++)
562
- pad[i] ^= 54;
563
- this.iHash.update(pad);
564
- this.oHash = hash.create();
565
- for (let i = 0; i < pad.length; i++)
566
- pad[i] ^= 54 ^ 92;
567
- this.oHash.update(pad);
568
- clean(pad);
569
- }
570
- update(buf) {
571
- aexists(this);
572
- this.iHash.update(buf);
573
- return this;
574
- }
575
- digestInto(out) {
576
- aexists(this);
577
- abytes(out, this.outputLen);
578
- this.finished = true;
579
- this.iHash.digestInto(out);
580
- this.oHash.update(out);
581
- this.oHash.digestInto(out);
582
- this.destroy();
583
- }
584
- digest() {
585
- const out = new Uint8Array(this.oHash.outputLen);
586
- this.digestInto(out);
587
- return out;
588
- }
589
- _cloneInto(to) {
590
- to || (to = Object.create(Object.getPrototypeOf(this), {}));
591
- const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
592
- to = to;
593
- to.finished = finished;
594
- to.destroyed = destroyed;
595
- to.blockLen = blockLen;
596
- to.outputLen = outputLen;
597
- to.oHash = oHash._cloneInto(to.oHash);
598
- to.iHash = iHash._cloneInto(to.iHash);
599
- return to;
600
- }
601
- clone() {
602
- return this._cloneInto();
603
- }
604
- destroy() {
605
- this.destroyed = true;
606
- this.oHash.destroy();
607
- this.iHash.destroy();
608
- }
609
- };
610
- var hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
611
- hmac.create = (hash, key) => new HMAC(hash, key);
612
-
613
- export {
614
- HashMD,
615
- sha256,
616
- sha512,
617
- sha384,
618
- hmac
619
- };
620
- //# sourceMappingURL=chunk-5T7HEJY2.js.map