@pioneer-platform/pioneer-react 0.2.42 → 0.2.43

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 (91) hide show
  1. package/dist/index.d.ts +1 -6
  2. package/dist/index.js +16 -14
  3. package/dist/{index_2ae7b728.js → index_00dd884e.js} +5 -6
  4. package/dist/{index_d62adee3.js → index_089e7234.js} +1 -1
  5. package/dist/{index_6fc14522.js → index_1a6a5598.js} +5 -6
  6. package/dist/{index_5cbed275.js → index_1afbfab1.js} +246 -4473
  7. package/dist/{index_f59a43d2.js → index_2149ed8d.js} +8 -8
  8. package/dist/{index_7f071019.js → index_25e511bb.js} +15 -15
  9. package/dist/{index_b2be5e4e.js → index_28e5444b.js} +3 -4
  10. package/dist/{index_f575e7b4.js → index_31d055bf.js} +8 -9
  11. package/dist/{index_ebeabe97.js → index_3433fe56.js} +3 -4
  12. package/dist/{index_318d1d68.js → index_3ed7e242.js} +28 -28
  13. package/dist/{index_0d526d38.js → index_3fea9d52.js} +19 -19
  14. package/dist/{index_47b407db.js → index_40cbc1cb.js} +4 -5
  15. package/dist/{index_7d621758.js → index_40f2115a.js} +3 -4
  16. package/dist/{index_ed259edc.js → index_47217799.js} +5 -6
  17. package/dist/{index_5d556ec6.js → index_51bbd44a.js} +3 -4
  18. package/dist/{index_8e0864da.js → index_53605da3.js} +2 -2
  19. package/dist/{index_45b009da.js → index_5c12821e.js} +10 -11
  20. package/dist/{index_9fef85a2.js → index_5dc59e18.js} +3 -4
  21. package/dist/{index_ac8af4f0.js → index_61702928.js} +3 -4
  22. package/dist/{index_4b36612f.js → index_64ff18e7.js} +1 -1
  23. package/dist/{index_13b1e6a1.js → index_65017d87.js} +1 -1
  24. package/dist/{index_b752bc5a.js → index_6becad0b.js} +13 -13
  25. package/dist/{index_89463ea0.js → index_740490f1.js} +4 -5
  26. package/dist/{index_de955e45.js → index_75f700d8.js} +4 -5
  27. package/dist/{index_e525ec6b.js → index_7640e861.js} +8 -453
  28. package/dist/{index_d85153be.js → index_7c11b3c7.js} +3 -3
  29. package/dist/{index_61bfdb70.js → index_7c574e7d.js} +8 -9
  30. package/dist/{index_97f1ff39.js → index_7ddfebf7.js} +14 -14
  31. package/dist/{index_e47e2842.js → index_81dd7d0f.js} +7 -8
  32. package/dist/{index_a005a882.js → index_87afedd4.js} +8 -8
  33. package/dist/{index_0bbcbffb.js → index_87d14dd6.js} +6 -7
  34. package/dist/{index_aa947e34.js → index_9346dd3d.js} +7 -7
  35. package/dist/{index_70cc14bd.js → index_96d5aad1.js} +1223 -40
  36. package/dist/{index_ff288a7a.js → index_97081f9b.js} +7 -8
  37. package/dist/{index_4c07ec7c.js → index_9c378228.js} +11 -13
  38. package/dist/{index_54e4e367.js → index_a96dcbb2.js} +13 -13
  39. package/dist/{index_265bb459.js → index_a9d0b958.js} +29 -52
  40. package/dist/{index_d869d4f8.js → index_abaa7487.js} +6 -7
  41. package/dist/{index_d90e262e.js → index_b1b7d385.js} +13 -13
  42. package/dist/index_b4b501fc.js +449 -0
  43. package/dist/index_b62d8ff4.js +30 -0
  44. package/dist/{index_81d780b7.js → index_b6e5a809.js} +1 -1
  45. package/dist/{index_6424cb67.js → index_bd7bbccf.js} +2 -4
  46. package/dist/{index_381aee34.js → index_c2bc068c.js} +1 -1
  47. package/dist/{index_7861fcf0.js → index_c587fd1b.js} +3 -4
  48. package/dist/{index_239b8e07.js → index_c8c2dada.js} +1 -1
  49. package/dist/{index_bfa7b443.js → index_d26b5754.js} +7 -8
  50. package/dist/{index_015b6eba.js → index_d77fc157.js} +6154 -32027
  51. package/dist/{index_e4776b9a.js → index_db264e60.js} +13 -13
  52. package/dist/{index_2143ad7f.js → index_f044b02a.js} +1 -1
  53. package/dist/{index_1d49c612.js → index_fad80d95.js} +4 -5
  54. package/dist/lib/components/pioneer/Pioneer/Balances.js +4 -4
  55. package/dist/lib/components/pioneer/Pioneer/Paths.js +4 -4
  56. package/dist/lib/components/pioneer/Pioneer/Pubkeys.js +4 -4
  57. package/dist/lib/components/pioneer/Pioneer/Send.js +1 -1
  58. package/dist/lib/components/pioneer/Pioneer/Wallets.js +1 -1
  59. package/dist/lib/components/pioneer/index.js +7 -7
  60. package/dist/lib/pages/home/index.js +2 -9
  61. package/package.json +1 -1
  62. package/src/index.tsx +19 -19
  63. package/src/lib/components/pioneer/Pioneer/Balances.tsx +4 -4
  64. package/src/lib/components/pioneer/Pioneer/Paths.tsx +4 -4
  65. package/src/lib/components/pioneer/Pioneer/Pubkeys.tsx +4 -4
  66. package/src/lib/components/pioneer/Pioneer/Send.tsx +1 -1
  67. package/src/lib/components/pioneer/Pioneer/Wallets.tsx +2 -2
  68. package/src/lib/components/pioneer/index.tsx +6 -41
  69. package/src/lib/pages/home/index.tsx +5 -5
  70. package/dist/index_bbcb3c14.js +0 -31
  71. package/dist/lib/components/AssetSelect/index.d.ts +0 -4
  72. package/dist/lib/components/AssetSelect/index.js +0 -72
  73. package/dist/lib/components/BlockchainSelect/index.d.ts +0 -4
  74. package/dist/lib/components/BlockchainSelect/index.js +0 -88
  75. package/dist/lib/components/MiddleEllipsis/index.d.ts +0 -6
  76. package/dist/lib/components/MiddleEllipsis/index.js +0 -12
  77. package/dist/lib/components/Onboarding/index.d.ts +0 -6
  78. package/dist/lib/components/Onboarding/index.js +0 -113
  79. package/dist/lib/components/WalletSelect/index.d.ts +0 -4
  80. package/dist/lib/components/WalletSelect/index.js +0 -62
  81. package/dist/lib/components/modals/AssetModal.d.ts +0 -7
  82. package/dist/lib/components/modals/AssetModal.js +0 -28
  83. package/dist/lib/components/modals/SettingsModal.d.ts +0 -7
  84. package/dist/lib/components/modals/SettingsModal.js +0 -33
  85. package/src/lib/components/AssetSelect/index.tsx +0 -168
  86. package/src/lib/components/BlockchainSelect/index.tsx +0 -166
  87. package/src/lib/components/MiddleEllipsis/index.tsx +0 -27
  88. package/src/lib/components/Onboarding/index.tsx +0 -251
  89. package/src/lib/components/WalletSelect/index.tsx +0 -112
  90. package/src/lib/components/modals/AssetModal.tsx +0 -67
  91. package/src/lib/components/modals/SettingsModal.tsx +0 -95
@@ -1,7 +1,6 @@
1
- import { b as build$3 } from "./index_2143ad7f.js";
2
- import { b as buffer, c as commonjsGlobal, r as require$$0, o as pbkdf2$1, k as sha512$1, s as sha256$1, _ as _assert, u as utils$1, t as _u64, d as getAugmentedNamespace, p as process, v as _sha2 } from "./index_015b6eba.js";
3
- import { a as bnExports, b as build$4 } from "./index_e525ec6b.js";
4
- import { e as elliptic } from "./index_13b1e6a1.js";
1
+ import { c as commonjsGlobal, a as base64Js, d as bech32$2, f as buffer, _ as _assert, u as utils$1, h as _sha2, r as require$$0, s as sha256$1, j as getAugmentedNamespace, p as process } from "./index_d77fc157.js";
2
+ import { b as bnExports } from "./index_7640e861.js";
3
+ import { e as elliptic } from "./index_65017d87.js";
5
4
  function _mergeNamespaces(n, m) {
6
5
  for (var i = 0; i < m.length; i++) {
7
6
  const e = m[i];
@@ -21,11 +20,690 @@ function _mergeNamespaces(n, m) {
21
20
  }
22
21
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
23
22
  }
24
- var build$2 = {};
23
+ var build$4 = {};
24
+ var decimal = {};
25
+ var __importDefault$3 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
26
+ return mod && mod.__esModule ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(decimal, "__esModule", { value: true });
29
+ decimal.Decimal = void 0;
30
+ const bn_js_1$2 = __importDefault$3(bnExports);
31
+ const maxFractionalDigits = 100;
32
+ class Decimal {
33
+ static fromUserInput(input, fractionalDigits) {
34
+ Decimal.verifyFractionalDigits(fractionalDigits);
35
+ const badCharacter = input.match(/[^0-9.]/);
36
+ if (badCharacter) {
37
+ throw new Error(`Invalid character at position ${badCharacter.index + 1}`);
38
+ }
39
+ let whole;
40
+ let fractional;
41
+ if (input === "") {
42
+ whole = "0";
43
+ fractional = "";
44
+ } else if (input.search(/\./) === -1) {
45
+ whole = input;
46
+ fractional = "";
47
+ } else {
48
+ const parts = input.split(".");
49
+ switch (parts.length) {
50
+ case 0:
51
+ case 1:
52
+ throw new Error("Fewer than two elements in split result. This must not happen here.");
53
+ case 2:
54
+ if (!parts[1])
55
+ throw new Error("Fractional part missing");
56
+ whole = parts[0];
57
+ fractional = parts[1].replace(/0+$/, "");
58
+ break;
59
+ default:
60
+ throw new Error("More than one separator found");
61
+ }
62
+ }
63
+ if (fractional.length > fractionalDigits) {
64
+ throw new Error("Got more fractional digits than supported");
65
+ }
66
+ const quantity = `${whole}${fractional.padEnd(fractionalDigits, "0")}`;
67
+ return new Decimal(quantity, fractionalDigits);
68
+ }
69
+ static fromAtomics(atomics, fractionalDigits) {
70
+ Decimal.verifyFractionalDigits(fractionalDigits);
71
+ return new Decimal(atomics, fractionalDigits);
72
+ }
73
+ /**
74
+ * Creates a Decimal with value 0.0 and the given number of fractial digits.
75
+ *
76
+ * Fractional digits are not relevant for the value but needed to be able
77
+ * to perform arithmetic operations with other decimals.
78
+ */
79
+ static zero(fractionalDigits) {
80
+ Decimal.verifyFractionalDigits(fractionalDigits);
81
+ return new Decimal("0", fractionalDigits);
82
+ }
83
+ /**
84
+ * Creates a Decimal with value 1.0 and the given number of fractial digits.
85
+ *
86
+ * Fractional digits are not relevant for the value but needed to be able
87
+ * to perform arithmetic operations with other decimals.
88
+ */
89
+ static one(fractionalDigits) {
90
+ Decimal.verifyFractionalDigits(fractionalDigits);
91
+ return new Decimal("1" + "0".repeat(fractionalDigits), fractionalDigits);
92
+ }
93
+ static verifyFractionalDigits(fractionalDigits) {
94
+ if (!Number.isInteger(fractionalDigits))
95
+ throw new Error("Fractional digits is not an integer");
96
+ if (fractionalDigits < 0)
97
+ throw new Error("Fractional digits must not be negative");
98
+ if (fractionalDigits > maxFractionalDigits) {
99
+ throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`);
100
+ }
101
+ }
102
+ static compare(a, b) {
103
+ if (a.fractionalDigits !== b.fractionalDigits)
104
+ throw new Error("Fractional digits do not match");
105
+ return a.data.atomics.cmp(new bn_js_1$2.default(b.atomics));
106
+ }
107
+ get atomics() {
108
+ return this.data.atomics.toString();
109
+ }
110
+ get fractionalDigits() {
111
+ return this.data.fractionalDigits;
112
+ }
113
+ constructor(atomics, fractionalDigits) {
114
+ if (!atomics.match(/^[0-9]+$/)) {
115
+ throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");
116
+ }
117
+ this.data = {
118
+ atomics: new bn_js_1$2.default(atomics),
119
+ fractionalDigits
120
+ };
121
+ }
122
+ /** Creates a new instance with the same value */
123
+ clone() {
124
+ return new Decimal(this.atomics, this.fractionalDigits);
125
+ }
126
+ /** Returns the greatest decimal <= this which has no fractional part (rounding down) */
127
+ floor() {
128
+ const factor = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits));
129
+ const whole = this.data.atomics.div(factor);
130
+ const fractional = this.data.atomics.mod(factor);
131
+ if (fractional.isZero()) {
132
+ return this.clone();
133
+ } else {
134
+ return Decimal.fromAtomics(whole.mul(factor).toString(), this.fractionalDigits);
135
+ }
136
+ }
137
+ /** Returns the smallest decimal >= this which has no fractional part (rounding up) */
138
+ ceil() {
139
+ const factor = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits));
140
+ const whole = this.data.atomics.div(factor);
141
+ const fractional = this.data.atomics.mod(factor);
142
+ if (fractional.isZero()) {
143
+ return this.clone();
144
+ } else {
145
+ return Decimal.fromAtomics(whole.addn(1).mul(factor).toString(), this.fractionalDigits);
146
+ }
147
+ }
148
+ toString() {
149
+ const factor = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits));
150
+ const whole = this.data.atomics.div(factor);
151
+ const fractional = this.data.atomics.mod(factor);
152
+ if (fractional.isZero()) {
153
+ return whole.toString();
154
+ } else {
155
+ const fullFractionalPart = fractional.toString().padStart(this.data.fractionalDigits, "0");
156
+ const trimmedFractionalPart = fullFractionalPart.replace(/0+$/, "");
157
+ return `${whole.toString()}.${trimmedFractionalPart}`;
158
+ }
159
+ }
160
+ /**
161
+ * Returns an approximation as a float type. Only use this if no
162
+ * exact calculation is required.
163
+ */
164
+ toFloatApproximation() {
165
+ const out = Number(this.toString());
166
+ if (Number.isNaN(out))
167
+ throw new Error("Conversion to number failed");
168
+ return out;
169
+ }
170
+ /**
171
+ * a.plus(b) returns a+b.
172
+ *
173
+ * Both values need to have the same fractional digits.
174
+ */
175
+ plus(b) {
176
+ if (this.fractionalDigits !== b.fractionalDigits)
177
+ throw new Error("Fractional digits do not match");
178
+ const sum = this.data.atomics.add(new bn_js_1$2.default(b.atomics));
179
+ return new Decimal(sum.toString(), this.fractionalDigits);
180
+ }
181
+ /**
182
+ * a.minus(b) returns a-b.
183
+ *
184
+ * Both values need to have the same fractional digits.
185
+ * The resulting difference needs to be non-negative.
186
+ */
187
+ minus(b) {
188
+ if (this.fractionalDigits !== b.fractionalDigits)
189
+ throw new Error("Fractional digits do not match");
190
+ const difference = this.data.atomics.sub(new bn_js_1$2.default(b.atomics));
191
+ if (difference.ltn(0))
192
+ throw new Error("Difference must not be negative");
193
+ return new Decimal(difference.toString(), this.fractionalDigits);
194
+ }
195
+ /**
196
+ * a.multiply(b) returns a*b.
197
+ *
198
+ * We only allow multiplication by unsigned integers to avoid rounding errors.
199
+ */
200
+ multiply(b) {
201
+ const product = this.data.atomics.mul(new bn_js_1$2.default(b.toString()));
202
+ return new Decimal(product.toString(), this.fractionalDigits);
203
+ }
204
+ equals(b) {
205
+ return Decimal.compare(this, b) === 0;
206
+ }
207
+ isLessThan(b) {
208
+ return Decimal.compare(this, b) < 0;
209
+ }
210
+ isLessThanOrEqual(b) {
211
+ return Decimal.compare(this, b) <= 0;
212
+ }
213
+ isGreaterThan(b) {
214
+ return Decimal.compare(this, b) > 0;
215
+ }
216
+ isGreaterThanOrEqual(b) {
217
+ return Decimal.compare(this, b) >= 0;
218
+ }
219
+ }
220
+ decimal.Decimal = Decimal;
221
+ var integers = {};
222
+ var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
223
+ return mod && mod.__esModule ? mod : { "default": mod };
224
+ };
225
+ Object.defineProperty(integers, "__esModule", { value: true });
226
+ integers.Uint64 = integers.Uint53 = integers.Int53 = integers.Uint32 = void 0;
227
+ const bn_js_1$1 = __importDefault$2(bnExports);
228
+ const uint64MaxValue = new bn_js_1$1.default("18446744073709551615", 10, "be");
229
+ class Uint32 {
230
+ /** @deprecated use Uint32.fromBytes */
231
+ static fromBigEndianBytes(bytes) {
232
+ return Uint32.fromBytes(bytes);
233
+ }
234
+ /**
235
+ * Creates a Uint32 from a fixed length byte array.
236
+ *
237
+ * @param bytes a list of exactly 4 bytes
238
+ * @param endianess defaults to big endian
239
+ */
240
+ static fromBytes(bytes, endianess = "be") {
241
+ if (bytes.length !== 4) {
242
+ throw new Error("Invalid input length. Expected 4 bytes.");
243
+ }
244
+ for (let i = 0; i < bytes.length; ++i) {
245
+ if (!Number.isInteger(bytes[i]) || bytes[i] > 255 || bytes[i] < 0) {
246
+ throw new Error("Invalid value in byte. Found: " + bytes[i]);
247
+ }
248
+ }
249
+ const beBytes = endianess === "be" ? bytes : Array.from(bytes).reverse();
250
+ return new Uint32(beBytes[0] * 2 ** 24 + beBytes[1] * 2 ** 16 + beBytes[2] * 2 ** 8 + beBytes[3]);
251
+ }
252
+ static fromString(str) {
253
+ if (!str.match(/^[0-9]+$/)) {
254
+ throw new Error("Invalid string format");
255
+ }
256
+ return new Uint32(Number.parseInt(str, 10));
257
+ }
258
+ constructor(input) {
259
+ if (Number.isNaN(input)) {
260
+ throw new Error("Input is not a number");
261
+ }
262
+ if (!Number.isInteger(input)) {
263
+ throw new Error("Input is not an integer");
264
+ }
265
+ if (input < 0 || input > 4294967295) {
266
+ throw new Error("Input not in uint32 range: " + input.toString());
267
+ }
268
+ this.data = input;
269
+ }
270
+ toBytesBigEndian() {
271
+ return new Uint8Array([
272
+ Math.floor(this.data / 2 ** 24) & 255,
273
+ Math.floor(this.data / 2 ** 16) & 255,
274
+ Math.floor(this.data / 2 ** 8) & 255,
275
+ Math.floor(this.data / 2 ** 0) & 255
276
+ ]);
277
+ }
278
+ toBytesLittleEndian() {
279
+ return new Uint8Array([
280
+ Math.floor(this.data / 2 ** 0) & 255,
281
+ Math.floor(this.data / 2 ** 8) & 255,
282
+ Math.floor(this.data / 2 ** 16) & 255,
283
+ Math.floor(this.data / 2 ** 24) & 255
284
+ ]);
285
+ }
286
+ toNumber() {
287
+ return this.data;
288
+ }
289
+ toBigInt() {
290
+ return BigInt(this.toNumber());
291
+ }
292
+ toString() {
293
+ return this.data.toString();
294
+ }
295
+ }
296
+ integers.Uint32 = Uint32;
297
+ class Int53 {
298
+ static fromString(str) {
299
+ if (!str.match(/^-?[0-9]+$/)) {
300
+ throw new Error("Invalid string format");
301
+ }
302
+ return new Int53(Number.parseInt(str, 10));
303
+ }
304
+ constructor(input) {
305
+ if (Number.isNaN(input)) {
306
+ throw new Error("Input is not a number");
307
+ }
308
+ if (!Number.isInteger(input)) {
309
+ throw new Error("Input is not an integer");
310
+ }
311
+ if (input < Number.MIN_SAFE_INTEGER || input > Number.MAX_SAFE_INTEGER) {
312
+ throw new Error("Input not in int53 range: " + input.toString());
313
+ }
314
+ this.data = input;
315
+ }
316
+ toNumber() {
317
+ return this.data;
318
+ }
319
+ toBigInt() {
320
+ return BigInt(this.toNumber());
321
+ }
322
+ toString() {
323
+ return this.data.toString();
324
+ }
325
+ }
326
+ integers.Int53 = Int53;
327
+ class Uint53 {
328
+ static fromString(str) {
329
+ const signed = Int53.fromString(str);
330
+ return new Uint53(signed.toNumber());
331
+ }
332
+ constructor(input) {
333
+ const signed = new Int53(input);
334
+ if (signed.toNumber() < 0) {
335
+ throw new Error("Input is negative");
336
+ }
337
+ this.data = signed;
338
+ }
339
+ toNumber() {
340
+ return this.data.toNumber();
341
+ }
342
+ toBigInt() {
343
+ return BigInt(this.toNumber());
344
+ }
345
+ toString() {
346
+ return this.data.toString();
347
+ }
348
+ }
349
+ integers.Uint53 = Uint53;
350
+ class Uint64 {
351
+ /** @deprecated use Uint64.fromBytes */
352
+ static fromBytesBigEndian(bytes) {
353
+ return Uint64.fromBytes(bytes);
354
+ }
355
+ /**
356
+ * Creates a Uint64 from a fixed length byte array.
357
+ *
358
+ * @param bytes a list of exactly 8 bytes
359
+ * @param endianess defaults to big endian
360
+ */
361
+ static fromBytes(bytes, endianess = "be") {
362
+ if (bytes.length !== 8) {
363
+ throw new Error("Invalid input length. Expected 8 bytes.");
364
+ }
365
+ for (let i = 0; i < bytes.length; ++i) {
366
+ if (!Number.isInteger(bytes[i]) || bytes[i] > 255 || bytes[i] < 0) {
367
+ throw new Error("Invalid value in byte. Found: " + bytes[i]);
368
+ }
369
+ }
370
+ const beBytes = endianess === "be" ? Array.from(bytes) : Array.from(bytes).reverse();
371
+ return new Uint64(new bn_js_1$1.default(beBytes));
372
+ }
373
+ static fromString(str) {
374
+ if (!str.match(/^[0-9]+$/)) {
375
+ throw new Error("Invalid string format");
376
+ }
377
+ return new Uint64(new bn_js_1$1.default(str, 10, "be"));
378
+ }
379
+ static fromNumber(input) {
380
+ if (Number.isNaN(input)) {
381
+ throw new Error("Input is not a number");
382
+ }
383
+ if (!Number.isInteger(input)) {
384
+ throw new Error("Input is not an integer");
385
+ }
386
+ let bigint;
387
+ try {
388
+ bigint = new bn_js_1$1.default(input);
389
+ } catch {
390
+ throw new Error("Input is not a safe integer");
391
+ }
392
+ return new Uint64(bigint);
393
+ }
394
+ constructor(data) {
395
+ if (data.isNeg()) {
396
+ throw new Error("Input is negative");
397
+ }
398
+ if (data.gt(uint64MaxValue)) {
399
+ throw new Error("Input exceeds uint64 range");
400
+ }
401
+ this.data = data;
402
+ }
403
+ toBytesBigEndian() {
404
+ return Uint8Array.from(this.data.toArray("be", 8));
405
+ }
406
+ toBytesLittleEndian() {
407
+ return Uint8Array.from(this.data.toArray("le", 8));
408
+ }
409
+ toString() {
410
+ return this.data.toString(10);
411
+ }
412
+ toBigInt() {
413
+ return BigInt(this.toString());
414
+ }
415
+ toNumber() {
416
+ return this.data.toNumber();
417
+ }
418
+ }
419
+ integers.Uint64 = Uint64;
420
+ (function(exports) {
421
+ Object.defineProperty(exports, "__esModule", { value: true });
422
+ exports.Uint64 = exports.Uint53 = exports.Uint32 = exports.Int53 = exports.Decimal = void 0;
423
+ var decimal_1 = decimal;
424
+ Object.defineProperty(exports, "Decimal", { enumerable: true, get: function() {
425
+ return decimal_1.Decimal;
426
+ } });
427
+ var integers_1 = integers;
428
+ Object.defineProperty(exports, "Int53", { enumerable: true, get: function() {
429
+ return integers_1.Int53;
430
+ } });
431
+ Object.defineProperty(exports, "Uint32", { enumerable: true, get: function() {
432
+ return integers_1.Uint32;
433
+ } });
434
+ Object.defineProperty(exports, "Uint53", { enumerable: true, get: function() {
435
+ return integers_1.Uint53;
436
+ } });
437
+ Object.defineProperty(exports, "Uint64", { enumerable: true, get: function() {
438
+ return integers_1.Uint64;
439
+ } });
440
+ })(build$4);
441
+ var build$3 = {};
25
442
  var addresses = {};
26
- var build$1 = {};
443
+ var build$2 = {};
27
444
  var bip39 = {};
28
- var pbkdf2 = {};
445
+ var build$1 = {};
446
+ var ascii = {};
447
+ Object.defineProperty(ascii, "__esModule", { value: true });
448
+ ascii.fromAscii = ascii.toAscii = void 0;
449
+ function toAscii(input) {
450
+ const toNums = (str) => str.split("").map((x) => {
451
+ const charCode = x.charCodeAt(0);
452
+ if (charCode < 32 || charCode > 126) {
453
+ throw new Error("Cannot encode character that is out of printable ASCII range: " + charCode);
454
+ }
455
+ return charCode;
456
+ });
457
+ return Uint8Array.from(toNums(input));
458
+ }
459
+ ascii.toAscii = toAscii;
460
+ function fromAscii(data) {
461
+ const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {
462
+ if (x < 32 || x > 126) {
463
+ throw new Error("Cannot decode character that is out of printable ASCII range: " + x);
464
+ }
465
+ return String.fromCharCode(x);
466
+ });
467
+ return fromNums(Array.from(data)).join("");
468
+ }
469
+ ascii.fromAscii = fromAscii;
470
+ var base64 = {};
471
+ var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
472
+ if (k2 === void 0)
473
+ k2 = k;
474
+ var desc = Object.getOwnPropertyDescriptor(m, k);
475
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
476
+ desc = { enumerable: true, get: function() {
477
+ return m[k];
478
+ } };
479
+ }
480
+ Object.defineProperty(o, k2, desc);
481
+ } : function(o, m, k, k2) {
482
+ if (k2 === void 0)
483
+ k2 = k;
484
+ o[k2] = m[k];
485
+ });
486
+ var __setModuleDefault$2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
487
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
488
+ } : function(o, v) {
489
+ o["default"] = v;
490
+ });
491
+ var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
492
+ if (mod && mod.__esModule)
493
+ return mod;
494
+ var result = {};
495
+ if (mod != null) {
496
+ for (var k in mod)
497
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
498
+ __createBinding$2(result, mod, k);
499
+ }
500
+ __setModuleDefault$2(result, mod);
501
+ return result;
502
+ };
503
+ Object.defineProperty(base64, "__esModule", { value: true });
504
+ base64.fromBase64 = base64.toBase64 = void 0;
505
+ const base64js = __importStar$2(base64Js);
506
+ function toBase64(data) {
507
+ return base64js.fromByteArray(data);
508
+ }
509
+ base64.toBase64 = toBase64;
510
+ function fromBase64(base64String) {
511
+ if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) {
512
+ throw new Error("Invalid base64 string format");
513
+ }
514
+ return base64js.toByteArray(base64String);
515
+ }
516
+ base64.fromBase64 = fromBase64;
517
+ var bech32$1 = {};
518
+ var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
519
+ if (k2 === void 0)
520
+ k2 = k;
521
+ var desc = Object.getOwnPropertyDescriptor(m, k);
522
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
523
+ desc = { enumerable: true, get: function() {
524
+ return m[k];
525
+ } };
526
+ }
527
+ Object.defineProperty(o, k2, desc);
528
+ } : function(o, m, k, k2) {
529
+ if (k2 === void 0)
530
+ k2 = k;
531
+ o[k2] = m[k];
532
+ });
533
+ var __setModuleDefault$1 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
534
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
535
+ } : function(o, v) {
536
+ o["default"] = v;
537
+ });
538
+ var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
539
+ if (mod && mod.__esModule)
540
+ return mod;
541
+ var result = {};
542
+ if (mod != null) {
543
+ for (var k in mod)
544
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
545
+ __createBinding$1(result, mod, k);
546
+ }
547
+ __setModuleDefault$1(result, mod);
548
+ return result;
549
+ };
550
+ Object.defineProperty(bech32$1, "__esModule", { value: true });
551
+ bech32$1.normalizeBech32 = bech32$1.fromBech32 = bech32$1.toBech32 = void 0;
552
+ const bech32 = __importStar$1(bech32$2);
553
+ function toBech32(prefix, data, limit) {
554
+ const address = bech32.encode(prefix, bech32.toWords(data), limit);
555
+ return address;
556
+ }
557
+ bech32$1.toBech32 = toBech32;
558
+ function fromBech32(address, limit = Infinity) {
559
+ const decodedAddress = bech32.decode(address, limit);
560
+ return {
561
+ prefix: decodedAddress.prefix,
562
+ data: new Uint8Array(bech32.fromWords(decodedAddress.words))
563
+ };
564
+ }
565
+ bech32$1.fromBech32 = fromBech32;
566
+ function normalizeBech32(address) {
567
+ const { prefix, data } = fromBech32(address);
568
+ return toBech32(prefix, data);
569
+ }
570
+ bech32$1.normalizeBech32 = normalizeBech32;
571
+ var hex = {};
572
+ Object.defineProperty(hex, "__esModule", { value: true });
573
+ hex.fromHex = hex.toHex = void 0;
574
+ function toHex(data) {
575
+ let out = "";
576
+ for (const byte of data) {
577
+ out += ("0" + byte.toString(16)).slice(-2);
578
+ }
579
+ return out;
580
+ }
581
+ hex.toHex = toHex;
582
+ function fromHex(hexstring) {
583
+ if (hexstring.length % 2 !== 0) {
584
+ throw new Error("hex string length must be a multiple of 2");
585
+ }
586
+ const out = new Uint8Array(hexstring.length / 2);
587
+ for (let i = 0; i < out.length; i++) {
588
+ const j = 2 * i;
589
+ const hexByteAsString = hexstring.slice(j, j + 2);
590
+ if (!hexByteAsString.match(/[0-9a-f]{2}/i)) {
591
+ throw new Error("hex string contains invalid characters");
592
+ }
593
+ out[i] = parseInt(hexByteAsString, 16);
594
+ }
595
+ return out;
596
+ }
597
+ hex.fromHex = fromHex;
598
+ var rfc3339 = {};
599
+ Object.defineProperty(rfc3339, "__esModule", { value: true });
600
+ rfc3339.toRfc3339 = rfc3339.fromRfc3339 = void 0;
601
+ const rfc3339Matcher = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;
602
+ function padded(integer, length = 2) {
603
+ return integer.toString().padStart(length, "0");
604
+ }
605
+ function fromRfc3339(str) {
606
+ const matches = rfc3339Matcher.exec(str);
607
+ if (!matches) {
608
+ throw new Error("Date string is not in RFC3339 format");
609
+ }
610
+ const year = +matches[1];
611
+ const month = +matches[2];
612
+ const day = +matches[3];
613
+ const hour = +matches[4];
614
+ const minute = +matches[5];
615
+ const second = +matches[6];
616
+ const milliSeconds = matches[7] ? Math.floor(+matches[7] * 1e3) : 0;
617
+ let tzOffsetSign;
618
+ let tzOffsetHours;
619
+ let tzOffsetMinutes;
620
+ if (matches[8] === "Z") {
621
+ tzOffsetSign = 1;
622
+ tzOffsetHours = 0;
623
+ tzOffsetMinutes = 0;
624
+ } else {
625
+ tzOffsetSign = matches[8].substring(0, 1) === "-" ? -1 : 1;
626
+ tzOffsetHours = +matches[8].substring(1, 3);
627
+ tzOffsetMinutes = +matches[8].substring(4, 6);
628
+ }
629
+ const tzOffset = tzOffsetSign * (tzOffsetHours * 60 + tzOffsetMinutes) * 60;
630
+ const timestamp = Date.UTC(year, month - 1, day, hour, minute, second, milliSeconds) - tzOffset * 1e3;
631
+ return new Date(timestamp);
632
+ }
633
+ rfc3339.fromRfc3339 = fromRfc3339;
634
+ function toRfc3339(date) {
635
+ const year = date.getUTCFullYear();
636
+ const month = padded(date.getUTCMonth() + 1);
637
+ const day = padded(date.getUTCDate());
638
+ const hour = padded(date.getUTCHours());
639
+ const minute = padded(date.getUTCMinutes());
640
+ const second = padded(date.getUTCSeconds());
641
+ const ms = padded(date.getUTCMilliseconds(), 3);
642
+ return `${year}-${month}-${day}T${hour}:${minute}:${second}.${ms}Z`;
643
+ }
644
+ rfc3339.toRfc3339 = toRfc3339;
645
+ var utf8 = {};
646
+ Object.defineProperty(utf8, "__esModule", { value: true });
647
+ utf8.fromUtf8 = utf8.toUtf8 = void 0;
648
+ function toUtf8(str) {
649
+ return new TextEncoder().encode(str);
650
+ }
651
+ utf8.toUtf8 = toUtf8;
652
+ function fromUtf8(data, lossy = false) {
653
+ const fatal = !lossy;
654
+ return new TextDecoder("utf-8", { fatal }).decode(data);
655
+ }
656
+ utf8.fromUtf8 = fromUtf8;
657
+ (function(exports) {
658
+ Object.defineProperty(exports, "__esModule", { value: true });
659
+ exports.toUtf8 = exports.fromUtf8 = exports.toRfc3339 = exports.fromRfc3339 = exports.toHex = exports.fromHex = exports.toBech32 = exports.normalizeBech32 = exports.fromBech32 = exports.toBase64 = exports.fromBase64 = exports.toAscii = exports.fromAscii = void 0;
660
+ var ascii_1 = ascii;
661
+ Object.defineProperty(exports, "fromAscii", { enumerable: true, get: function() {
662
+ return ascii_1.fromAscii;
663
+ } });
664
+ Object.defineProperty(exports, "toAscii", { enumerable: true, get: function() {
665
+ return ascii_1.toAscii;
666
+ } });
667
+ var base64_1 = base64;
668
+ Object.defineProperty(exports, "fromBase64", { enumerable: true, get: function() {
669
+ return base64_1.fromBase64;
670
+ } });
671
+ Object.defineProperty(exports, "toBase64", { enumerable: true, get: function() {
672
+ return base64_1.toBase64;
673
+ } });
674
+ var bech32_1 = bech32$1;
675
+ Object.defineProperty(exports, "fromBech32", { enumerable: true, get: function() {
676
+ return bech32_1.fromBech32;
677
+ } });
678
+ Object.defineProperty(exports, "normalizeBech32", { enumerable: true, get: function() {
679
+ return bech32_1.normalizeBech32;
680
+ } });
681
+ Object.defineProperty(exports, "toBech32", { enumerable: true, get: function() {
682
+ return bech32_1.toBech32;
683
+ } });
684
+ var hex_1 = hex;
685
+ Object.defineProperty(exports, "fromHex", { enumerable: true, get: function() {
686
+ return hex_1.fromHex;
687
+ } });
688
+ Object.defineProperty(exports, "toHex", { enumerable: true, get: function() {
689
+ return hex_1.toHex;
690
+ } });
691
+ var rfc3339_1 = rfc3339;
692
+ Object.defineProperty(exports, "fromRfc3339", { enumerable: true, get: function() {
693
+ return rfc3339_1.fromRfc3339;
694
+ } });
695
+ Object.defineProperty(exports, "toRfc3339", { enumerable: true, get: function() {
696
+ return rfc3339_1.toRfc3339;
697
+ } });
698
+ var utf8_1 = utf8;
699
+ Object.defineProperty(exports, "fromUtf8", { enumerable: true, get: function() {
700
+ return utf8_1.fromUtf8;
701
+ } });
702
+ Object.defineProperty(exports, "toUtf8", { enumerable: true, get: function() {
703
+ return utf8_1.toUtf8;
704
+ } });
705
+ })(build$1);
706
+ var pbkdf2$2 = {};
29
707
  var build = {};
30
708
  var arrays = {};
31
709
  Object.defineProperty(arrays, "__esModule", { value: true });
@@ -136,6 +814,510 @@ typechecks.isDefined = isDefined;
136
814
  return typechecks_1.isUint8Array;
137
815
  } });
138
816
  })(build);
817
+ var pbkdf2$1 = {};
818
+ var hmac$1 = {};
819
+ (function(exports) {
820
+ Object.defineProperty(exports, "__esModule", { value: true });
821
+ exports.hmac = exports.HMAC = void 0;
822
+ const _assert_js_12 = _assert;
823
+ const utils_js_12 = utils$1;
824
+ class HMAC extends utils_js_12.Hash {
825
+ constructor(hash, _key) {
826
+ super();
827
+ this.finished = false;
828
+ this.destroyed = false;
829
+ (0, _assert_js_12.hash)(hash);
830
+ const key = (0, utils_js_12.toBytes)(_key);
831
+ this.iHash = hash.create();
832
+ if (typeof this.iHash.update !== "function")
833
+ throw new Error("Expected instance of class which extends utils.Hash");
834
+ this.blockLen = this.iHash.blockLen;
835
+ this.outputLen = this.iHash.outputLen;
836
+ const blockLen = this.blockLen;
837
+ const pad = new Uint8Array(blockLen);
838
+ pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
839
+ for (let i = 0; i < pad.length; i++)
840
+ pad[i] ^= 54;
841
+ this.iHash.update(pad);
842
+ this.oHash = hash.create();
843
+ for (let i = 0; i < pad.length; i++)
844
+ pad[i] ^= 54 ^ 92;
845
+ this.oHash.update(pad);
846
+ pad.fill(0);
847
+ }
848
+ update(buf) {
849
+ (0, _assert_js_12.exists)(this);
850
+ this.iHash.update(buf);
851
+ return this;
852
+ }
853
+ digestInto(out) {
854
+ (0, _assert_js_12.exists)(this);
855
+ (0, _assert_js_12.bytes)(out, this.outputLen);
856
+ this.finished = true;
857
+ this.iHash.digestInto(out);
858
+ this.oHash.update(out);
859
+ this.oHash.digestInto(out);
860
+ this.destroy();
861
+ }
862
+ digest() {
863
+ const out = new Uint8Array(this.oHash.outputLen);
864
+ this.digestInto(out);
865
+ return out;
866
+ }
867
+ _cloneInto(to) {
868
+ to || (to = Object.create(Object.getPrototypeOf(this), {}));
869
+ const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
870
+ to = to;
871
+ to.finished = finished;
872
+ to.destroyed = destroyed;
873
+ to.blockLen = blockLen;
874
+ to.outputLen = outputLen;
875
+ to.oHash = oHash._cloneInto(to.oHash);
876
+ to.iHash = iHash._cloneInto(to.iHash);
877
+ return to;
878
+ }
879
+ destroy() {
880
+ this.destroyed = true;
881
+ this.oHash.destroy();
882
+ this.iHash.destroy();
883
+ }
884
+ }
885
+ exports.HMAC = HMAC;
886
+ const hmac2 = (hash, key, message) => new HMAC(hash, key).update(message).digest();
887
+ exports.hmac = hmac2;
888
+ exports.hmac.create = (hash, key) => new HMAC(hash, key);
889
+ })(hmac$1);
890
+ Object.defineProperty(pbkdf2$1, "__esModule", { value: true });
891
+ pbkdf2$1.pbkdf2Async = pbkdf2$1.pbkdf2 = void 0;
892
+ const _assert_js_1$1 = _assert;
893
+ const hmac_js_1 = hmac$1;
894
+ const utils_js_1$3 = utils$1;
895
+ function pbkdf2Init(hash, _password, _salt, _opts) {
896
+ (0, _assert_js_1$1.hash)(hash);
897
+ const opts = (0, utils_js_1$3.checkOpts)({ dkLen: 32, asyncTick: 10 }, _opts);
898
+ const { c, dkLen, asyncTick } = opts;
899
+ (0, _assert_js_1$1.number)(c);
900
+ (0, _assert_js_1$1.number)(dkLen);
901
+ (0, _assert_js_1$1.number)(asyncTick);
902
+ if (c < 1)
903
+ throw new Error("PBKDF2: iterations (c) should be >= 1");
904
+ const password = (0, utils_js_1$3.toBytes)(_password);
905
+ const salt = (0, utils_js_1$3.toBytes)(_salt);
906
+ const DK = new Uint8Array(dkLen);
907
+ const PRF = hmac_js_1.hmac.create(hash, password);
908
+ const PRFSalt = PRF._cloneInto().update(salt);
909
+ return { c, dkLen, asyncTick, DK, PRF, PRFSalt };
910
+ }
911
+ function pbkdf2Output(PRF, PRFSalt, DK, prfW, u) {
912
+ PRF.destroy();
913
+ PRFSalt.destroy();
914
+ if (prfW)
915
+ prfW.destroy();
916
+ u.fill(0);
917
+ return DK;
918
+ }
919
+ function pbkdf2(hash, password, salt, opts) {
920
+ const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);
921
+ let prfW;
922
+ const arr = new Uint8Array(4);
923
+ const view = (0, utils_js_1$3.createView)(arr);
924
+ const u = new Uint8Array(PRF.outputLen);
925
+ for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {
926
+ const Ti = DK.subarray(pos, pos + PRF.outputLen);
927
+ view.setInt32(0, ti, false);
928
+ (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);
929
+ Ti.set(u.subarray(0, Ti.length));
930
+ for (let ui = 1; ui < c; ui++) {
931
+ PRF._cloneInto(prfW).update(u).digestInto(u);
932
+ for (let i = 0; i < Ti.length; i++)
933
+ Ti[i] ^= u[i];
934
+ }
935
+ }
936
+ return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);
937
+ }
938
+ pbkdf2$1.pbkdf2 = pbkdf2;
939
+ async function pbkdf2Async(hash, password, salt, opts) {
940
+ const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);
941
+ let prfW;
942
+ const arr = new Uint8Array(4);
943
+ const view = (0, utils_js_1$3.createView)(arr);
944
+ const u = new Uint8Array(PRF.outputLen);
945
+ for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {
946
+ const Ti = DK.subarray(pos, pos + PRF.outputLen);
947
+ view.setInt32(0, ti, false);
948
+ (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);
949
+ Ti.set(u.subarray(0, Ti.length));
950
+ await (0, utils_js_1$3.asyncLoop)(c - 1, asyncTick, () => {
951
+ PRF._cloneInto(prfW).update(u).digestInto(u);
952
+ for (let i = 0; i < Ti.length; i++)
953
+ Ti[i] ^= u[i];
954
+ });
955
+ }
956
+ return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);
957
+ }
958
+ pbkdf2$1.pbkdf2Async = pbkdf2Async;
959
+ var sha512$1 = {};
960
+ var _u64 = {};
961
+ Object.defineProperty(_u64, "__esModule", { value: true });
962
+ _u64.add5L = _u64.add5H = _u64.add4H = _u64.add4L = _u64.add3H = _u64.add3L = _u64.add = _u64.rotlBL = _u64.rotlBH = _u64.rotlSL = _u64.rotlSH = _u64.rotr32L = _u64.rotr32H = _u64.rotrBL = _u64.rotrBH = _u64.rotrSL = _u64.rotrSH = _u64.shrSL = _u64.shrSH = _u64.toBig = _u64.split = _u64.fromBig = void 0;
963
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
964
+ const _32n = /* @__PURE__ */ BigInt(32);
965
+ function fromBig(n, le = false) {
966
+ if (le)
967
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
968
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
969
+ }
970
+ _u64.fromBig = fromBig;
971
+ function split(lst, le = false) {
972
+ let Ah = new Uint32Array(lst.length);
973
+ let Al = new Uint32Array(lst.length);
974
+ for (let i = 0; i < lst.length; i++) {
975
+ const { h, l } = fromBig(lst[i], le);
976
+ [Ah[i], Al[i]] = [h, l];
977
+ }
978
+ return [Ah, Al];
979
+ }
980
+ _u64.split = split;
981
+ const toBig = (h, l) => BigInt(h >>> 0) << _32n | BigInt(l >>> 0);
982
+ _u64.toBig = toBig;
983
+ const shrSH = (h, _l, s) => h >>> s;
984
+ _u64.shrSH = shrSH;
985
+ const shrSL = (h, l, s) => h << 32 - s | l >>> s;
986
+ _u64.shrSL = shrSL;
987
+ const rotrSH = (h, l, s) => h >>> s | l << 32 - s;
988
+ _u64.rotrSH = rotrSH;
989
+ const rotrSL = (h, l, s) => h << 32 - s | l >>> s;
990
+ _u64.rotrSL = rotrSL;
991
+ const rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
992
+ _u64.rotrBH = rotrBH;
993
+ const rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
994
+ _u64.rotrBL = rotrBL;
995
+ const rotr32H = (_h, l) => l;
996
+ _u64.rotr32H = rotr32H;
997
+ const rotr32L = (h, _l) => h;
998
+ _u64.rotr32L = rotr32L;
999
+ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
1000
+ _u64.rotlSH = rotlSH;
1001
+ const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
1002
+ _u64.rotlSL = rotlSL;
1003
+ const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
1004
+ _u64.rotlBH = rotlBH;
1005
+ const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
1006
+ _u64.rotlBL = rotlBL;
1007
+ function add(Ah, Al, Bh, Bl) {
1008
+ const l = (Al >>> 0) + (Bl >>> 0);
1009
+ return { h: Ah + Bh + (l / 2 ** 32 | 0) | 0, l: l | 0 };
1010
+ }
1011
+ _u64.add = add;
1012
+ const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
1013
+ _u64.add3L = add3L;
1014
+ const add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
1015
+ _u64.add3H = add3H;
1016
+ const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
1017
+ _u64.add4L = add4L;
1018
+ const add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
1019
+ _u64.add4H = add4H;
1020
+ const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
1021
+ _u64.add5L = add5L;
1022
+ const add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
1023
+ _u64.add5H = add5H;
1024
+ const u64 = {
1025
+ fromBig,
1026
+ split,
1027
+ toBig,
1028
+ shrSH,
1029
+ shrSL,
1030
+ rotrSH,
1031
+ rotrSL,
1032
+ rotrBH,
1033
+ rotrBL,
1034
+ rotr32H,
1035
+ rotr32L,
1036
+ rotlSH,
1037
+ rotlSL,
1038
+ rotlBH,
1039
+ rotlBL,
1040
+ add,
1041
+ add3L,
1042
+ add3H,
1043
+ add4L,
1044
+ add4H,
1045
+ add5H,
1046
+ add5L
1047
+ };
1048
+ _u64.default = u64;
1049
+ Object.defineProperty(sha512$1, "__esModule", { value: true });
1050
+ sha512$1.sha384 = sha512$1.sha512_256 = sha512$1.sha512_224 = sha512$1.sha512 = sha512$1.SHA512 = void 0;
1051
+ const _sha2_js_1$1 = _sha2;
1052
+ const _u64_js_1$1 = _u64;
1053
+ const utils_js_1$2 = utils$1;
1054
+ const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => _u64_js_1$1.default.split([
1055
+ "0x428a2f98d728ae22",
1056
+ "0x7137449123ef65cd",
1057
+ "0xb5c0fbcfec4d3b2f",
1058
+ "0xe9b5dba58189dbbc",
1059
+ "0x3956c25bf348b538",
1060
+ "0x59f111f1b605d019",
1061
+ "0x923f82a4af194f9b",
1062
+ "0xab1c5ed5da6d8118",
1063
+ "0xd807aa98a3030242",
1064
+ "0x12835b0145706fbe",
1065
+ "0x243185be4ee4b28c",
1066
+ "0x550c7dc3d5ffb4e2",
1067
+ "0x72be5d74f27b896f",
1068
+ "0x80deb1fe3b1696b1",
1069
+ "0x9bdc06a725c71235",
1070
+ "0xc19bf174cf692694",
1071
+ "0xe49b69c19ef14ad2",
1072
+ "0xefbe4786384f25e3",
1073
+ "0x0fc19dc68b8cd5b5",
1074
+ "0x240ca1cc77ac9c65",
1075
+ "0x2de92c6f592b0275",
1076
+ "0x4a7484aa6ea6e483",
1077
+ "0x5cb0a9dcbd41fbd4",
1078
+ "0x76f988da831153b5",
1079
+ "0x983e5152ee66dfab",
1080
+ "0xa831c66d2db43210",
1081
+ "0xb00327c898fb213f",
1082
+ "0xbf597fc7beef0ee4",
1083
+ "0xc6e00bf33da88fc2",
1084
+ "0xd5a79147930aa725",
1085
+ "0x06ca6351e003826f",
1086
+ "0x142929670a0e6e70",
1087
+ "0x27b70a8546d22ffc",
1088
+ "0x2e1b21385c26c926",
1089
+ "0x4d2c6dfc5ac42aed",
1090
+ "0x53380d139d95b3df",
1091
+ "0x650a73548baf63de",
1092
+ "0x766a0abb3c77b2a8",
1093
+ "0x81c2c92e47edaee6",
1094
+ "0x92722c851482353b",
1095
+ "0xa2bfe8a14cf10364",
1096
+ "0xa81a664bbc423001",
1097
+ "0xc24b8b70d0f89791",
1098
+ "0xc76c51a30654be30",
1099
+ "0xd192e819d6ef5218",
1100
+ "0xd69906245565a910",
1101
+ "0xf40e35855771202a",
1102
+ "0x106aa07032bbd1b8",
1103
+ "0x19a4c116b8d2d0c8",
1104
+ "0x1e376c085141ab53",
1105
+ "0x2748774cdf8eeb99",
1106
+ "0x34b0bcb5e19b48a8",
1107
+ "0x391c0cb3c5c95a63",
1108
+ "0x4ed8aa4ae3418acb",
1109
+ "0x5b9cca4f7763e373",
1110
+ "0x682e6ff3d6b2b8a3",
1111
+ "0x748f82ee5defb2fc",
1112
+ "0x78a5636f43172f60",
1113
+ "0x84c87814a1f0ab72",
1114
+ "0x8cc702081a6439ec",
1115
+ "0x90befffa23631e28",
1116
+ "0xa4506cebde82bde9",
1117
+ "0xbef9a3f7b2c67915",
1118
+ "0xc67178f2e372532b",
1119
+ "0xca273eceea26619c",
1120
+ "0xd186b8c721c0c207",
1121
+ "0xeada7dd6cde0eb1e",
1122
+ "0xf57d4f7fee6ed178",
1123
+ "0x06f067aa72176fba",
1124
+ "0x0a637dc5a2c898a6",
1125
+ "0x113f9804bef90dae",
1126
+ "0x1b710b35131c471b",
1127
+ "0x28db77f523047d84",
1128
+ "0x32caab7b40c72493",
1129
+ "0x3c9ebe0a15c9bebc",
1130
+ "0x431d67c49c100d4c",
1131
+ "0x4cc5d4becb3e42b6",
1132
+ "0x597f299cfc657e2a",
1133
+ "0x5fcb6fab3ad6faec",
1134
+ "0x6c44198c4a475817"
1135
+ ].map((n) => BigInt(n))))();
1136
+ const SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);
1137
+ const SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);
1138
+ class SHA512 extends _sha2_js_1$1.SHA2 {
1139
+ constructor() {
1140
+ super(128, 64, 16, false);
1141
+ this.Ah = 1779033703 | 0;
1142
+ this.Al = 4089235720 | 0;
1143
+ this.Bh = 3144134277 | 0;
1144
+ this.Bl = 2227873595 | 0;
1145
+ this.Ch = 1013904242 | 0;
1146
+ this.Cl = 4271175723 | 0;
1147
+ this.Dh = 2773480762 | 0;
1148
+ this.Dl = 1595750129 | 0;
1149
+ this.Eh = 1359893119 | 0;
1150
+ this.El = 2917565137 | 0;
1151
+ this.Fh = 2600822924 | 0;
1152
+ this.Fl = 725511199 | 0;
1153
+ this.Gh = 528734635 | 0;
1154
+ this.Gl = 4215389547 | 0;
1155
+ this.Hh = 1541459225 | 0;
1156
+ this.Hl = 327033209 | 0;
1157
+ }
1158
+ // prettier-ignore
1159
+ get() {
1160
+ const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
1161
+ return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];
1162
+ }
1163
+ // prettier-ignore
1164
+ set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {
1165
+ this.Ah = Ah | 0;
1166
+ this.Al = Al | 0;
1167
+ this.Bh = Bh | 0;
1168
+ this.Bl = Bl | 0;
1169
+ this.Ch = Ch | 0;
1170
+ this.Cl = Cl | 0;
1171
+ this.Dh = Dh | 0;
1172
+ this.Dl = Dl | 0;
1173
+ this.Eh = Eh | 0;
1174
+ this.El = El | 0;
1175
+ this.Fh = Fh | 0;
1176
+ this.Fl = Fl | 0;
1177
+ this.Gh = Gh | 0;
1178
+ this.Gl = Gl | 0;
1179
+ this.Hh = Hh | 0;
1180
+ this.Hl = Hl | 0;
1181
+ }
1182
+ process(view, offset) {
1183
+ for (let i = 0; i < 16; i++, offset += 4) {
1184
+ SHA512_W_H[i] = view.getUint32(offset);
1185
+ SHA512_W_L[i] = view.getUint32(offset += 4);
1186
+ }
1187
+ for (let i = 16; i < 80; i++) {
1188
+ const W15h = SHA512_W_H[i - 15] | 0;
1189
+ const W15l = SHA512_W_L[i - 15] | 0;
1190
+ const s0h = _u64_js_1$1.default.rotrSH(W15h, W15l, 1) ^ _u64_js_1$1.default.rotrSH(W15h, W15l, 8) ^ _u64_js_1$1.default.shrSH(W15h, W15l, 7);
1191
+ const s0l = _u64_js_1$1.default.rotrSL(W15h, W15l, 1) ^ _u64_js_1$1.default.rotrSL(W15h, W15l, 8) ^ _u64_js_1$1.default.shrSL(W15h, W15l, 7);
1192
+ const W2h = SHA512_W_H[i - 2] | 0;
1193
+ const W2l = SHA512_W_L[i - 2] | 0;
1194
+ const s1h = _u64_js_1$1.default.rotrSH(W2h, W2l, 19) ^ _u64_js_1$1.default.rotrBH(W2h, W2l, 61) ^ _u64_js_1$1.default.shrSH(W2h, W2l, 6);
1195
+ const s1l = _u64_js_1$1.default.rotrSL(W2h, W2l, 19) ^ _u64_js_1$1.default.rotrBL(W2h, W2l, 61) ^ _u64_js_1$1.default.shrSL(W2h, W2l, 6);
1196
+ const SUMl = _u64_js_1$1.default.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
1197
+ const SUMh = _u64_js_1$1.default.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
1198
+ SHA512_W_H[i] = SUMh | 0;
1199
+ SHA512_W_L[i] = SUMl | 0;
1200
+ }
1201
+ let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
1202
+ for (let i = 0; i < 80; i++) {
1203
+ const sigma1h = _u64_js_1$1.default.rotrSH(Eh, El, 14) ^ _u64_js_1$1.default.rotrSH(Eh, El, 18) ^ _u64_js_1$1.default.rotrBH(Eh, El, 41);
1204
+ const sigma1l = _u64_js_1$1.default.rotrSL(Eh, El, 14) ^ _u64_js_1$1.default.rotrSL(Eh, El, 18) ^ _u64_js_1$1.default.rotrBL(Eh, El, 41);
1205
+ const CHIh = Eh & Fh ^ ~Eh & Gh;
1206
+ const CHIl = El & Fl ^ ~El & Gl;
1207
+ const T1ll = _u64_js_1$1.default.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
1208
+ const T1h = _u64_js_1$1.default.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
1209
+ const T1l = T1ll | 0;
1210
+ const sigma0h = _u64_js_1$1.default.rotrSH(Ah, Al, 28) ^ _u64_js_1$1.default.rotrBH(Ah, Al, 34) ^ _u64_js_1$1.default.rotrBH(Ah, Al, 39);
1211
+ const sigma0l = _u64_js_1$1.default.rotrSL(Ah, Al, 28) ^ _u64_js_1$1.default.rotrBL(Ah, Al, 34) ^ _u64_js_1$1.default.rotrBL(Ah, Al, 39);
1212
+ const MAJh = Ah & Bh ^ Ah & Ch ^ Bh & Ch;
1213
+ const MAJl = Al & Bl ^ Al & Cl ^ Bl & Cl;
1214
+ Hh = Gh | 0;
1215
+ Hl = Gl | 0;
1216
+ Gh = Fh | 0;
1217
+ Gl = Fl | 0;
1218
+ Fh = Eh | 0;
1219
+ Fl = El | 0;
1220
+ ({ h: Eh, l: El } = _u64_js_1$1.default.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
1221
+ Dh = Ch | 0;
1222
+ Dl = Cl | 0;
1223
+ Ch = Bh | 0;
1224
+ Cl = Bl | 0;
1225
+ Bh = Ah | 0;
1226
+ Bl = Al | 0;
1227
+ const All = _u64_js_1$1.default.add3L(T1l, sigma0l, MAJl);
1228
+ Ah = _u64_js_1$1.default.add3H(All, T1h, sigma0h, MAJh);
1229
+ Al = All | 0;
1230
+ }
1231
+ ({ h: Ah, l: Al } = _u64_js_1$1.default.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
1232
+ ({ h: Bh, l: Bl } = _u64_js_1$1.default.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
1233
+ ({ h: Ch, l: Cl } = _u64_js_1$1.default.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
1234
+ ({ h: Dh, l: Dl } = _u64_js_1$1.default.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
1235
+ ({ h: Eh, l: El } = _u64_js_1$1.default.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
1236
+ ({ h: Fh, l: Fl } = _u64_js_1$1.default.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
1237
+ ({ h: Gh, l: Gl } = _u64_js_1$1.default.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
1238
+ ({ h: Hh, l: Hl } = _u64_js_1$1.default.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
1239
+ this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);
1240
+ }
1241
+ roundClean() {
1242
+ SHA512_W_H.fill(0);
1243
+ SHA512_W_L.fill(0);
1244
+ }
1245
+ destroy() {
1246
+ this.buffer.fill(0);
1247
+ this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1248
+ }
1249
+ }
1250
+ sha512$1.SHA512 = SHA512;
1251
+ class SHA512_224 extends SHA512 {
1252
+ constructor() {
1253
+ super();
1254
+ this.Ah = 2352822216 | 0;
1255
+ this.Al = 424955298 | 0;
1256
+ this.Bh = 1944164710 | 0;
1257
+ this.Bl = 2312950998 | 0;
1258
+ this.Ch = 502970286 | 0;
1259
+ this.Cl = 855612546 | 0;
1260
+ this.Dh = 1738396948 | 0;
1261
+ this.Dl = 1479516111 | 0;
1262
+ this.Eh = 258812777 | 0;
1263
+ this.El = 2077511080 | 0;
1264
+ this.Fh = 2011393907 | 0;
1265
+ this.Fl = 79989058 | 0;
1266
+ this.Gh = 1067287976 | 0;
1267
+ this.Gl = 1780299464 | 0;
1268
+ this.Hh = 286451373 | 0;
1269
+ this.Hl = 2446758561 | 0;
1270
+ this.outputLen = 28;
1271
+ }
1272
+ }
1273
+ class SHA512_256 extends SHA512 {
1274
+ constructor() {
1275
+ super();
1276
+ this.Ah = 573645204 | 0;
1277
+ this.Al = 4230739756 | 0;
1278
+ this.Bh = 2673172387 | 0;
1279
+ this.Bl = 3360449730 | 0;
1280
+ this.Ch = 596883563 | 0;
1281
+ this.Cl = 1867755857 | 0;
1282
+ this.Dh = 2520282905 | 0;
1283
+ this.Dl = 1497426621 | 0;
1284
+ this.Eh = 2519219938 | 0;
1285
+ this.El = 2827943907 | 0;
1286
+ this.Fh = 3193839141 | 0;
1287
+ this.Fl = 1401305490 | 0;
1288
+ this.Gh = 721525244 | 0;
1289
+ this.Gl = 746961066 | 0;
1290
+ this.Hh = 246885852 | 0;
1291
+ this.Hl = 2177182882 | 0;
1292
+ this.outputLen = 32;
1293
+ }
1294
+ }
1295
+ class SHA384 extends SHA512 {
1296
+ constructor() {
1297
+ super();
1298
+ this.Ah = 3418070365 | 0;
1299
+ this.Al = 3238371032 | 0;
1300
+ this.Bh = 1654270250 | 0;
1301
+ this.Bl = 914150663 | 0;
1302
+ this.Ch = 2438529370 | 0;
1303
+ this.Cl = 812702999 | 0;
1304
+ this.Dh = 355462360 | 0;
1305
+ this.Dl = 4144912697 | 0;
1306
+ this.Eh = 1731405415 | 0;
1307
+ this.El = 4290775857 | 0;
1308
+ this.Fh = 2394180231 | 0;
1309
+ this.Fl = 1750603025 | 0;
1310
+ this.Gh = 3675008525 | 0;
1311
+ this.Gl = 1694076839 | 0;
1312
+ this.Hh = 1203062813 | 0;
1313
+ this.Hl = 3204075428 | 0;
1314
+ this.outputLen = 48;
1315
+ }
1316
+ }
1317
+ sha512$1.sha512 = (0, utils_js_1$2.wrapConstructor)(() => new SHA512());
1318
+ sha512$1.sha512_224 = (0, utils_js_1$2.wrapConstructor)(() => new SHA512_224());
1319
+ sha512$1.sha512_256 = (0, utils_js_1$2.wrapConstructor)(() => new SHA512_256());
1320
+ sha512$1.sha384 = (0, utils_js_1$2.wrapConstructor)(() => new SHA384());
139
1321
  var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
140
1322
  if (k2 === void 0)
141
1323
  k2 = k;
@@ -168,8 +1350,8 @@ var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod
168
1350
  __setModuleDefault(result, mod);
169
1351
  return result;
170
1352
  };
171
- Object.defineProperty(pbkdf2, "__esModule", { value: true });
172
- pbkdf2.pbkdf2Sha512 = pbkdf2.pbkdf2Sha512Noble = pbkdf2.pbkdf2Sha512NodeCrypto = pbkdf2.pbkdf2Sha512Subtle = pbkdf2.getSubtle = pbkdf2.getNodeCrypto = void 0;
1353
+ Object.defineProperty(pbkdf2$2, "__esModule", { value: true });
1354
+ pbkdf2$2.pbkdf2Sha512 = pbkdf2$2.pbkdf2Sha512Noble = pbkdf2$2.pbkdf2Sha512NodeCrypto = pbkdf2$2.pbkdf2Sha512Subtle = pbkdf2$2.getSubtle = pbkdf2$2.getNodeCrypto = void 0;
173
1355
  const utils_1$6 = build;
174
1356
  const pbkdf2_1$1 = pbkdf2$1;
175
1357
  const sha512_1$1 = sha512$1;
@@ -184,7 +1366,7 @@ async function getNodeCrypto() {
184
1366
  return void 0;
185
1367
  }
186
1368
  }
187
- pbkdf2.getNodeCrypto = getNodeCrypto;
1369
+ pbkdf2$2.getNodeCrypto = getNodeCrypto;
188
1370
  async function getSubtle() {
189
1371
  var _a, _b, _c;
190
1372
  let subtle = (_a = globalThis == null ? void 0 : globalThis.crypto) == null ? void 0 : _a.subtle;
@@ -192,7 +1374,7 @@ async function getSubtle() {
192
1374
  subtle = (_c = (_b = globalThis == null ? void 0 : globalThis.crypto) == null ? void 0 : _b.webcrypto) == null ? void 0 : _c.subtle;
193
1375
  return subtle;
194
1376
  }
195
- pbkdf2.getSubtle = getSubtle;
1377
+ pbkdf2$2.getSubtle = getSubtle;
196
1378
  async function pbkdf2Sha512Subtle(subtle, secret, salt, iterations, keylen) {
197
1379
  (0, utils_1$6.assert)(subtle, "Argument subtle is falsy");
198
1380
  (0, utils_1$6.assert)(typeof subtle === "object", "Argument subtle is not of type object");
@@ -205,7 +1387,7 @@ async function pbkdf2Sha512Subtle(subtle, secret, salt, iterations, keylen) {
205
1387
  hash: { name: "SHA-512" }
206
1388
  }, key, keylen * 8).then((buffer2) => new Uint8Array(buffer2)));
207
1389
  }
208
- pbkdf2.pbkdf2Sha512Subtle = pbkdf2Sha512Subtle;
1390
+ pbkdf2$2.pbkdf2Sha512Subtle = pbkdf2Sha512Subtle;
209
1391
  async function pbkdf2Sha512NodeCrypto(nodeCrypto, secret, salt, iterations, keylen) {
210
1392
  (0, utils_1$6.assert)(nodeCrypto, "Argument nodeCrypto is falsy");
211
1393
  (0, utils_1$6.assert)(typeof nodeCrypto === "object", "Argument nodeCrypto is not of type object");
@@ -220,11 +1402,11 @@ async function pbkdf2Sha512NodeCrypto(nodeCrypto, secret, salt, iterations, keyl
220
1402
  });
221
1403
  });
222
1404
  }
223
- pbkdf2.pbkdf2Sha512NodeCrypto = pbkdf2Sha512NodeCrypto;
1405
+ pbkdf2$2.pbkdf2Sha512NodeCrypto = pbkdf2Sha512NodeCrypto;
224
1406
  async function pbkdf2Sha512Noble(secret, salt, iterations, keylen) {
225
1407
  return (0, pbkdf2_1$1.pbkdf2Async)(sha512_1$1.sha512, secret, salt, { c: iterations, dkLen: keylen });
226
1408
  }
227
- pbkdf2.pbkdf2Sha512Noble = pbkdf2Sha512Noble;
1409
+ pbkdf2$2.pbkdf2Sha512Noble = pbkdf2Sha512Noble;
228
1410
  async function pbkdf2Sha512(secret, salt, iterations, keylen) {
229
1411
  const subtle = await getSubtle();
230
1412
  if (subtle) {
@@ -238,7 +1420,7 @@ async function pbkdf2Sha512(secret, salt, iterations, keylen) {
238
1420
  }
239
1421
  }
240
1422
  }
241
- pbkdf2.pbkdf2Sha512 = pbkdf2Sha512;
1423
+ pbkdf2$2.pbkdf2Sha512 = pbkdf2Sha512;
242
1424
  var sha = {};
243
1425
  var utils = {};
244
1426
  Object.defineProperty(utils, "__esModule", { value: true });
@@ -299,8 +1481,8 @@ function sha512(data) {
299
1481
  sha.sha512 = sha512;
300
1482
  Object.defineProperty(bip39, "__esModule", { value: true });
301
1483
  bip39.Bip39 = bip39.EnglishMnemonic = bip39.mnemonicToEntropy = bip39.entropyToMnemonic = void 0;
302
- const encoding_1$8 = build$3;
303
- const pbkdf2_1 = pbkdf2;
1484
+ const encoding_1$8 = build$1;
1485
+ const pbkdf2_1 = pbkdf2$2;
304
1486
  const sha_1 = sha;
305
1487
  const wordlist = [
306
1488
  "abandon",
@@ -2715,7 +3897,7 @@ function keccak256(data) {
2715
3897
  keccak.keccak256 = keccak256;
2716
3898
  var libsodium = {};
2717
3899
  var libsodiumWrappers = {};
2718
- const __dirname = "/Users/highlander/WebstormProjects/pioneer-react-v2/node_modules/.pnpm/registry.npmjs.org+libsodium-sumo@0.7.13/node_modules/libsodium-sumo/dist/modules-sumo";
3900
+ const __dirname = "/Users/highlander/WebstormProjects/pioneer-react-v2/node_modules/.pnpm/libsodium-sumo@0.7.13/node_modules/libsodium-sumo/dist/modules-sumo";
2719
3901
  var libsodiumSumo = { exports: {} };
2720
3902
  function normalizeArray(parts, allowAboveRoot) {
2721
3903
  var up = 0;
@@ -10497,7 +11679,7 @@ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || functi
10497
11679
  };
10498
11680
  Object.defineProperty(secp256k1$1, "__esModule", { value: true });
10499
11681
  secp256k1$1.Secp256k1 = void 0;
10500
- const encoding_1$7 = build$3;
11682
+ const encoding_1$7 = build$1;
10501
11683
  const bn_js_1 = __importDefault(bnExports);
10502
11684
  const elliptic_1 = __importDefault(elliptic);
10503
11685
  const secp256k1signature_1 = secp256k1signature;
@@ -10620,7 +11802,7 @@ var slip10 = {};
10620
11802
  };
10621
11803
  Object.defineProperty(exports, "__esModule", { value: true });
10622
11804
  exports.stringToPath = exports.pathToString = exports.Slip10 = exports.Slip10RawIndex = exports.slip10CurveFromString = exports.Slip10Curve = void 0;
10623
- const encoding_12 = build$3;
11805
+ const encoding_12 = build$1;
10624
11806
  const math_12 = build$4;
10625
11807
  const bn_js_12 = __importDefault2(bnExports);
10626
11808
  const elliptic_12 = __importDefault2(elliptic);
@@ -10869,7 +12051,7 @@ var slip10 = {};
10869
12051
  Object.defineProperty(exports, "stringToPath", { enumerable: true, get: function() {
10870
12052
  return slip10_1.stringToPath;
10871
12053
  } });
10872
- })(build$1);
12054
+ })(build$2);
10873
12055
  var encoding = {};
10874
12056
  var pubkeys = {};
10875
12057
  (function(exports) {
@@ -10904,7 +12086,7 @@ var pubkeys = {};
10904
12086
  })(pubkeys);
10905
12087
  Object.defineProperty(encoding, "__esModule", { value: true });
10906
12088
  encoding.encodeBech32Pubkey = encoding.encodeAminoPubkey = encoding.decodeBech32Pubkey = encoding.decodeAminoPubkey = encoding.encodeEd25519Pubkey = encoding.encodeSecp256k1Pubkey = void 0;
10907
- const encoding_1$6 = build$3;
12089
+ const encoding_1$6 = build$1;
10908
12090
  const math_1$3 = build$4;
10909
12091
  const utils_1$1 = build;
10910
12092
  const pubkeys_1$2 = pubkeys;
@@ -11059,8 +12241,8 @@ function encodeBech32Pubkey(pubkey, prefix) {
11059
12241
  encoding.encodeBech32Pubkey = encodeBech32Pubkey;
11060
12242
  Object.defineProperty(addresses, "__esModule", { value: true });
11061
12243
  addresses.pubkeyToAddress = addresses.pubkeyToRawAddress = addresses.rawSecp256k1PubkeyToRawAddress = addresses.rawEd25519PubkeyToRawAddress = void 0;
11062
- const crypto_1$3 = build$1;
11063
- const encoding_1$5 = build$3;
12244
+ const crypto_1$3 = build$2;
12245
+ const encoding_1$5 = build$1;
11064
12246
  const encoding_2$1 = encoding;
11065
12247
  const pubkeys_1$1 = pubkeys;
11066
12248
  function rawEd25519PubkeyToRawAddress(pubkeyData) {
@@ -11148,7 +12330,7 @@ coins$1.addCoins = addCoins;
11148
12330
  var multisig = {};
11149
12331
  Object.defineProperty(multisig, "__esModule", { value: true });
11150
12332
  multisig.createMultisigThresholdPubkey = multisig.compareArrays = void 0;
11151
- const encoding_1$4 = build$3;
12333
+ const encoding_1$4 = build$1;
11152
12334
  const math_1$1 = build$4;
11153
12335
  const addresses_1$2 = addresses;
11154
12336
  function compareArrays(a, b) {
@@ -11179,7 +12361,7 @@ multisig.createMultisigThresholdPubkey = createMultisigThresholdPubkey;
11179
12361
  var paths = {};
11180
12362
  Object.defineProperty(paths, "__esModule", { value: true });
11181
12363
  paths.makeCosmoshubPath = void 0;
11182
- const crypto_1$2 = build$1;
12364
+ const crypto_1$2 = build$2;
11183
12365
  function makeCosmoshubPath(a) {
11184
12366
  return [
11185
12367
  crypto_1$2.Slip10RawIndex.hardened(44),
@@ -11194,7 +12376,7 @@ var secp256k1hdwallet = {};
11194
12376
  var signature = {};
11195
12377
  Object.defineProperty(signature, "__esModule", { value: true });
11196
12378
  signature.decodeSignature = signature.encodeSecp256k1Signature = void 0;
11197
- const encoding_1$3 = build$3;
12379
+ const encoding_1$3 = build$1;
11198
12380
  const encoding_2 = encoding;
11199
12381
  const pubkeys_1 = pubkeys;
11200
12382
  function encodeSecp256k1Signature(pubkey, signature2) {
@@ -11222,7 +12404,7 @@ signature.decodeSignature = decodeSignature;
11222
12404
  var signdoc = {};
11223
12405
  Object.defineProperty(signdoc, "__esModule", { value: true });
11224
12406
  signdoc.serializeSignDoc = signdoc.escapeCharacters = signdoc.makeSignDoc = signdoc.sortedJsonStringify = void 0;
11225
- const encoding_1$2 = build$3;
12407
+ const encoding_1$2 = build$1;
11226
12408
  const math_1 = build$4;
11227
12409
  function sortedObject(obj) {
11228
12410
  if (typeof obj !== "object" || obj === null) {
@@ -11269,8 +12451,8 @@ var wallet = {};
11269
12451
  (function(exports) {
11270
12452
  Object.defineProperty(exports, "__esModule", { value: true });
11271
12453
  exports.decrypt = exports.encrypt = exports.supportedAlgorithms = exports.executeKdf = exports.cosmjsSalt = void 0;
11272
- const crypto_12 = build$1;
11273
- const encoding_12 = build$3;
12454
+ const crypto_12 = build$2;
12455
+ const encoding_12 = build$1;
11274
12456
  exports.cosmjsSalt = (0, encoding_12.toAscii)("The CosmJS salt.");
11275
12457
  async function executeKdf(password, configuration) {
11276
12458
  switch (configuration.algorithm) {
@@ -11316,8 +12498,8 @@ var wallet = {};
11316
12498
  })(wallet);
11317
12499
  Object.defineProperty(secp256k1hdwallet, "__esModule", { value: true });
11318
12500
  secp256k1hdwallet.Secp256k1HdWallet = secp256k1hdwallet.extractKdfConfiguration = void 0;
11319
- const crypto_1$1 = build$1;
11320
- const encoding_1$1 = build$3;
12501
+ const crypto_1$1 = build$2;
12502
+ const encoding_1$1 = build$1;
11321
12503
  const utils_1 = build;
11322
12504
  const addresses_1$1 = addresses;
11323
12505
  const paths_1 = paths;
@@ -11554,8 +12736,8 @@ secp256k1hdwallet.Secp256k1HdWallet = Secp256k1HdWallet;
11554
12736
  var secp256k1wallet = {};
11555
12737
  Object.defineProperty(secp256k1wallet, "__esModule", { value: true });
11556
12738
  secp256k1wallet.Secp256k1Wallet = void 0;
11557
- const crypto_1 = build$1;
11558
- const encoding_1 = build$3;
12739
+ const crypto_1 = build$2;
12740
+ const encoding_1 = build$1;
11559
12741
  const addresses_1 = addresses;
11560
12742
  const signature_1 = signature;
11561
12743
  const signdoc_1 = signdoc;
@@ -11726,16 +12908,17 @@ stdtx.makeStdTx = makeStdTx;
11726
12908
  Object.defineProperty(exports, "executeKdf", { enumerable: true, get: function() {
11727
12909
  return wallet_12.executeKdf;
11728
12910
  } });
11729
- })(build$2);
12911
+ })(build$3);
11730
12912
  const index = /* @__PURE__ */ _mergeNamespaces({
11731
12913
  __proto__: null
11732
- }, [build$2]);
12914
+ }, [build$3]);
11733
12915
  export {
11734
- build$2 as a,
12916
+ build$1 as a,
11735
12917
  build as b,
11736
- build$1 as c,
12918
+ build$2 as c,
12919
+ build$3 as d,
12920
+ build$4 as e,
11737
12921
  index as i,
11738
- libsodiumWrappers as l,
11739
12922
  ripemd160$1 as r,
11740
- sha3 as s
12923
+ sha512$1 as s
11741
12924
  };