@hinkal/common 0.0.48 → 0.0.49
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/assets/{snarkjsWorkerLogic-DW8NKN0Y.js → snarkjsWorkerLogic-DbrJr4-w.js} +2 -2
- package/assets/{utxoWorkerLogic-CtW3IrAW.js → utxoWorkerLogic-By4KcwDW.js} +2 -2
- package/assets/{viteWorkerURL.constant-BjQXDRFv.js → viteWorkerURL.constant-DEbfFZ0L.js} +2 -2
- package/assets/{zkProofWorkerLauncher-CmF_4P7I.js → zkProofWorkerLauncher-D_IzjZQA.js} +1 -1
- package/assets/{zkProofWorkerLogic-CPA7BZFf.js → zkProofWorkerLogic-B9UZuAuk.js} +1144 -1147
- package/{index-Dq7UlO_Y.mjs → index-CuKgAovW.mjs} +4 -4
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-DZN3iDQQ.mjs → snarkjsWorkerLogic-CPNblrWp.mjs} +2 -2
- package/{utxoWorkerLogic-Du8GirBL.mjs → utxoWorkerLogic-n4SsZdO1.mjs} +2 -2
- package/{viteWorkerURL.constant-fQn49p33.mjs → viteWorkerURL.constant-CKA2Mv-E.mjs} +2 -2
- package/{workerProxy-CEcUtvQC.mjs → workerProxy-6DABrlVb.mjs} +1 -1
- package/{zkProofWorkerLogic-n6r6YdcN.mjs → zkProofWorkerLogic-uK-R_y-C.mjs} +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-
|
|
1
|
+
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-D_IzjZQA.js";
|
|
2
2
|
const hexLen = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
3
3
|
function fromString$1(a, d) {
|
|
4
4
|
if (!d || d == 10)
|
|
@@ -14316,1162 +14316,1159 @@ Buffer.from([0]);
|
|
|
14316
14316
|
Buffer.from([128]);
|
|
14317
14317
|
var bn$6 = { exports: {} };
|
|
14318
14318
|
bn$6.exports;
|
|
14319
|
-
|
|
14320
|
-
function
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
function
|
|
14328
|
-
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14319
|
+
(function(a) {
|
|
14320
|
+
(function(d, n) {
|
|
14321
|
+
function c(w, E) {
|
|
14322
|
+
if (!w)
|
|
14323
|
+
throw new Error(E || "Assertion failed");
|
|
14324
|
+
}
|
|
14325
|
+
function u(w, E) {
|
|
14326
|
+
w.super_ = E;
|
|
14327
|
+
var Y = function() {
|
|
14328
|
+
};
|
|
14329
|
+
Y.prototype = E.prototype, w.prototype = new Y(), w.prototype.constructor = w;
|
|
14330
|
+
}
|
|
14331
|
+
function p(w, E, Y) {
|
|
14332
|
+
if (p.isBN(w))
|
|
14333
|
+
return w;
|
|
14334
|
+
this.negative = 0, this.words = null, this.length = 0, this.red = null, w !== null && ((E === "le" || E === "be") && (Y = E, E = 10), this._init(w || 0, E || 10, Y || "be"));
|
|
14335
|
+
}
|
|
14336
|
+
typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
|
|
14337
|
+
var h;
|
|
14338
|
+
try {
|
|
14339
|
+
typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
|
|
14340
|
+
} catch {
|
|
14341
|
+
}
|
|
14342
|
+
p.isBN = function(E) {
|
|
14343
|
+
return E instanceof p ? !0 : E !== null && typeof E == "object" && E.constructor.wordSize === p.wordSize && Array.isArray(E.words);
|
|
14344
|
+
}, p.max = function(E, Y) {
|
|
14345
|
+
return E.cmp(Y) > 0 ? E : Y;
|
|
14346
|
+
}, p.min = function(E, Y) {
|
|
14347
|
+
return E.cmp(Y) < 0 ? E : Y;
|
|
14348
|
+
}, p.prototype._init = function(E, Y, q) {
|
|
14349
|
+
if (typeof E == "number")
|
|
14350
|
+
return this._initNumber(E, Y, q);
|
|
14351
|
+
if (typeof E == "object")
|
|
14352
|
+
return this._initArray(E, Y, q);
|
|
14353
|
+
Y === "hex" && (Y = 16), c(Y === (Y | 0) && Y >= 2 && Y <= 36), E = E.toString().replace(/\s+/g, "");
|
|
14354
|
+
var Q = 0;
|
|
14355
|
+
E[0] === "-" && (Q++, this.negative = 1), Q < E.length && (Y === 16 ? this._parseHex(E, Q, q) : (this._parseBase(E, Y, Q), q === "le" && this._initArray(this.toArray(), Y, q)));
|
|
14356
|
+
}, p.prototype._initNumber = function(E, Y, q) {
|
|
14357
|
+
E < 0 && (this.negative = 1, E = -E), E < 67108864 ? (this.words = [E & 67108863], this.length = 1) : E < 4503599627370496 ? (this.words = [
|
|
14358
|
+
E & 67108863,
|
|
14359
|
+
E / 67108864 & 67108863
|
|
14360
|
+
], this.length = 2) : (c(E < 9007199254740992), this.words = [
|
|
14361
|
+
E & 67108863,
|
|
14362
|
+
E / 67108864 & 67108863,
|
|
14363
|
+
1
|
|
14364
|
+
], this.length = 3), q === "le" && this._initArray(this.toArray(), Y, q);
|
|
14365
|
+
}, p.prototype._initArray = function(E, Y, q) {
|
|
14366
|
+
if (c(typeof E.length == "number"), E.length <= 0)
|
|
14367
|
+
return this.words = [0], this.length = 1, this;
|
|
14368
|
+
this.length = Math.ceil(E.length / 3), this.words = new Array(this.length);
|
|
14369
|
+
for (var Q = 0; Q < this.length; Q++)
|
|
14370
|
+
this.words[Q] = 0;
|
|
14371
|
+
var ae, te, B = 0;
|
|
14372
|
+
if (q === "be")
|
|
14373
|
+
for (Q = E.length - 1, ae = 0; Q >= 0; Q -= 3)
|
|
14374
|
+
te = E[Q] | E[Q - 1] << 8 | E[Q - 2] << 16, this.words[ae] |= te << B & 67108863, this.words[ae + 1] = te >>> 26 - B & 67108863, B += 24, B >= 26 && (B -= 26, ae++);
|
|
14375
|
+
else if (q === "le")
|
|
14376
|
+
for (Q = 0, ae = 0; Q < E.length; Q += 3)
|
|
14377
|
+
te = E[Q] | E[Q + 1] << 8 | E[Q + 2] << 16, this.words[ae] |= te << B & 67108863, this.words[ae + 1] = te >>> 26 - B & 67108863, B += 24, B >= 26 && (B -= 26, ae++);
|
|
14378
|
+
return this._strip();
|
|
14379
|
+
};
|
|
14380
|
+
function D(w, E) {
|
|
14381
|
+
var Y = w.charCodeAt(E);
|
|
14382
|
+
if (Y >= 48 && Y <= 57)
|
|
14383
|
+
return Y - 48;
|
|
14384
|
+
if (Y >= 65 && Y <= 70)
|
|
14385
|
+
return Y - 55;
|
|
14386
|
+
if (Y >= 97 && Y <= 102)
|
|
14387
|
+
return Y - 87;
|
|
14388
|
+
c(!1, "Invalid character in " + w);
|
|
14389
|
+
}
|
|
14390
|
+
function G(w, E, Y) {
|
|
14391
|
+
var q = D(w, Y);
|
|
14392
|
+
return Y - 1 >= E && (q |= D(w, Y - 1) << 4), q;
|
|
14393
|
+
}
|
|
14394
|
+
p.prototype._parseHex = function(E, Y, q) {
|
|
14395
|
+
this.length = Math.ceil((E.length - Y) / 6), this.words = new Array(this.length);
|
|
14396
|
+
for (var Q = 0; Q < this.length; Q++)
|
|
14397
|
+
this.words[Q] = 0;
|
|
14398
|
+
var ae = 0, te = 0, B;
|
|
14399
|
+
if (q === "be")
|
|
14400
|
+
for (Q = E.length - 1; Q >= Y; Q -= 2)
|
|
14401
|
+
B = G(E, Y, Q) << ae, this.words[te] |= B & 67108863, ae >= 18 ? (ae -= 18, te += 1, this.words[te] |= B >>> 26) : ae += 8;
|
|
14402
|
+
else {
|
|
14403
|
+
var k = E.length - Y;
|
|
14404
|
+
for (Q = k % 2 === 0 ? Y + 1 : Y; Q < E.length; Q += 2)
|
|
14405
|
+
B = G(E, Y, Q) << ae, this.words[te] |= B & 67108863, ae >= 18 ? (ae -= 18, te += 1, this.words[te] |= B >>> 26) : ae += 8;
|
|
14332
14406
|
}
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
|
|
14336
|
-
|
|
14407
|
+
this._strip();
|
|
14408
|
+
};
|
|
14409
|
+
function U(w, E, Y, q) {
|
|
14410
|
+
for (var Q = 0, ae = 0, te = Math.min(w.length, Y), B = E; B < te; B++) {
|
|
14411
|
+
var k = w.charCodeAt(B) - 48;
|
|
14412
|
+
Q *= q, k >= 49 ? ae = k - 49 + 10 : k >= 17 ? ae = k - 17 + 10 : ae = k, c(k >= 0 && ae < q, "Invalid character"), Q += ae;
|
|
14337
14413
|
}
|
|
14338
|
-
|
|
14339
|
-
|
|
14414
|
+
return Q;
|
|
14415
|
+
}
|
|
14416
|
+
p.prototype._parseBase = function(E, Y, q) {
|
|
14417
|
+
this.words = [0], this.length = 1;
|
|
14418
|
+
for (var Q = 0, ae = 1; ae <= 67108863; ae *= Y)
|
|
14419
|
+
Q++;
|
|
14420
|
+
Q--, ae = ae / Y | 0;
|
|
14421
|
+
for (var te = E.length - q, B = te % Q, k = Math.min(te, te - B) + q, ie = 0, pe = q; pe < k; pe += Q)
|
|
14422
|
+
ie = U(E, pe, pe + Q, Y), this.imuln(ae), this.words[0] + ie < 67108864 ? this.words[0] += ie : this._iaddn(ie);
|
|
14423
|
+
if (B !== 0) {
|
|
14424
|
+
var ge = 1;
|
|
14425
|
+
for (ie = U(E, pe, E.length, Y), pe = 0; pe < B; pe++)
|
|
14426
|
+
ge *= Y;
|
|
14427
|
+
this.imuln(ge), this.words[0] + ie < 67108864 ? this.words[0] += ie : this._iaddn(ie);
|
|
14428
|
+
}
|
|
14429
|
+
this._strip();
|
|
14430
|
+
}, p.prototype.copy = function(E) {
|
|
14431
|
+
E.words = new Array(this.length);
|
|
14432
|
+
for (var Y = 0; Y < this.length; Y++)
|
|
14433
|
+
E.words[Y] = this.words[Y];
|
|
14434
|
+
E.length = this.length, E.negative = this.negative, E.red = this.red;
|
|
14435
|
+
};
|
|
14436
|
+
function H(w, E) {
|
|
14437
|
+
w.words = E.words, w.length = E.length, w.negative = E.negative, w.red = E.red;
|
|
14438
|
+
}
|
|
14439
|
+
if (p.prototype._move = function(E) {
|
|
14440
|
+
H(E, this);
|
|
14441
|
+
}, p.prototype.clone = function() {
|
|
14442
|
+
var E = new p(null);
|
|
14443
|
+
return this.copy(E), E;
|
|
14444
|
+
}, p.prototype._expand = function(E) {
|
|
14445
|
+
for (; this.length < E; )
|
|
14446
|
+
this.words[this.length++] = 0;
|
|
14447
|
+
return this;
|
|
14448
|
+
}, p.prototype._strip = function() {
|
|
14449
|
+
for (; this.length > 1 && this.words[this.length - 1] === 0; )
|
|
14450
|
+
this.length--;
|
|
14451
|
+
return this._normSign();
|
|
14452
|
+
}, p.prototype._normSign = function() {
|
|
14453
|
+
return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this;
|
|
14454
|
+
}, typeof Symbol < "u" && typeof Symbol.for == "function")
|
|
14340
14455
|
try {
|
|
14341
|
-
|
|
14456
|
+
p.prototype[Symbol.for("nodejs.util.inspect.custom")] = ne;
|
|
14342
14457
|
} catch {
|
|
14458
|
+
p.prototype.inspect = ne;
|
|
14343
14459
|
}
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14460
|
+
else
|
|
14461
|
+
p.prototype.inspect = ne;
|
|
14462
|
+
function ne() {
|
|
14463
|
+
return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">";
|
|
14464
|
+
}
|
|
14465
|
+
var S = [
|
|
14466
|
+
"",
|
|
14467
|
+
"0",
|
|
14468
|
+
"00",
|
|
14469
|
+
"000",
|
|
14470
|
+
"0000",
|
|
14471
|
+
"00000",
|
|
14472
|
+
"000000",
|
|
14473
|
+
"0000000",
|
|
14474
|
+
"00000000",
|
|
14475
|
+
"000000000",
|
|
14476
|
+
"0000000000",
|
|
14477
|
+
"00000000000",
|
|
14478
|
+
"000000000000",
|
|
14479
|
+
"0000000000000",
|
|
14480
|
+
"00000000000000",
|
|
14481
|
+
"000000000000000",
|
|
14482
|
+
"0000000000000000",
|
|
14483
|
+
"00000000000000000",
|
|
14484
|
+
"000000000000000000",
|
|
14485
|
+
"0000000000000000000",
|
|
14486
|
+
"00000000000000000000",
|
|
14487
|
+
"000000000000000000000",
|
|
14488
|
+
"0000000000000000000000",
|
|
14489
|
+
"00000000000000000000000",
|
|
14490
|
+
"000000000000000000000000",
|
|
14491
|
+
"0000000000000000000000000"
|
|
14492
|
+
], fe = [
|
|
14493
|
+
0,
|
|
14494
|
+
0,
|
|
14495
|
+
25,
|
|
14496
|
+
16,
|
|
14497
|
+
12,
|
|
14498
|
+
11,
|
|
14499
|
+
10,
|
|
14500
|
+
9,
|
|
14501
|
+
8,
|
|
14502
|
+
8,
|
|
14503
|
+
7,
|
|
14504
|
+
7,
|
|
14505
|
+
7,
|
|
14506
|
+
7,
|
|
14507
|
+
6,
|
|
14508
|
+
6,
|
|
14509
|
+
6,
|
|
14510
|
+
6,
|
|
14511
|
+
6,
|
|
14512
|
+
6,
|
|
14513
|
+
6,
|
|
14514
|
+
5,
|
|
14515
|
+
5,
|
|
14516
|
+
5,
|
|
14517
|
+
5,
|
|
14518
|
+
5,
|
|
14519
|
+
5,
|
|
14520
|
+
5,
|
|
14521
|
+
5,
|
|
14522
|
+
5,
|
|
14523
|
+
5,
|
|
14524
|
+
5,
|
|
14525
|
+
5,
|
|
14526
|
+
5,
|
|
14527
|
+
5,
|
|
14528
|
+
5,
|
|
14529
|
+
5
|
|
14530
|
+
], se = [
|
|
14531
|
+
0,
|
|
14532
|
+
0,
|
|
14533
|
+
33554432,
|
|
14534
|
+
43046721,
|
|
14535
|
+
16777216,
|
|
14536
|
+
48828125,
|
|
14537
|
+
60466176,
|
|
14538
|
+
40353607,
|
|
14539
|
+
16777216,
|
|
14540
|
+
43046721,
|
|
14541
|
+
1e7,
|
|
14542
|
+
19487171,
|
|
14543
|
+
35831808,
|
|
14544
|
+
62748517,
|
|
14545
|
+
7529536,
|
|
14546
|
+
11390625,
|
|
14547
|
+
16777216,
|
|
14548
|
+
24137569,
|
|
14549
|
+
34012224,
|
|
14550
|
+
47045881,
|
|
14551
|
+
64e6,
|
|
14552
|
+
4084101,
|
|
14553
|
+
5153632,
|
|
14554
|
+
6436343,
|
|
14555
|
+
7962624,
|
|
14556
|
+
9765625,
|
|
14557
|
+
11881376,
|
|
14558
|
+
14348907,
|
|
14559
|
+
17210368,
|
|
14560
|
+
20511149,
|
|
14561
|
+
243e5,
|
|
14562
|
+
28629151,
|
|
14563
|
+
33554432,
|
|
14564
|
+
39135393,
|
|
14565
|
+
45435424,
|
|
14566
|
+
52521875,
|
|
14567
|
+
60466176
|
|
14568
|
+
];
|
|
14569
|
+
p.prototype.toString = function(E, Y) {
|
|
14570
|
+
E = E || 10, Y = Y | 0 || 1;
|
|
14571
|
+
var q;
|
|
14572
|
+
if (E === 16 || E === "hex") {
|
|
14573
|
+
q = "";
|
|
14574
|
+
for (var Q = 0, ae = 0, te = 0; te < this.length; te++) {
|
|
14575
|
+
var B = this.words[te], k = ((B << Q | ae) & 16777215).toString(16);
|
|
14576
|
+
ae = B >>> 24 - Q & 16777215, Q += 2, Q >= 26 && (Q -= 26, te--), ae !== 0 || te !== this.length - 1 ? q = S[6 - k.length] + k + q : q = k + q;
|
|
14577
|
+
}
|
|
14578
|
+
for (ae !== 0 && (q = ae.toString(16) + q); q.length % Y !== 0; )
|
|
14579
|
+
q = "0" + q;
|
|
14580
|
+
return this.negative !== 0 && (q = "-" + q), q;
|
|
14581
|
+
}
|
|
14582
|
+
if (E === (E | 0) && E >= 2 && E <= 36) {
|
|
14583
|
+
var ie = fe[E], pe = se[E];
|
|
14584
|
+
q = "";
|
|
14585
|
+
var ge = this.clone();
|
|
14586
|
+
for (ge.negative = 0; !ge.isZero(); ) {
|
|
14587
|
+
var be = ge.modrn(pe).toString(E);
|
|
14588
|
+
ge = ge.idivn(pe), ge.isZero() ? q = be + q : q = S[ie - be.length] + be + q;
|
|
14589
|
+
}
|
|
14590
|
+
for (this.isZero() && (q = "0" + q); q.length % Y !== 0; )
|
|
14591
|
+
q = "0" + q;
|
|
14592
|
+
return this.negative !== 0 && (q = "-" + q), q;
|
|
14593
|
+
}
|
|
14594
|
+
c(!1, "Base should be between 2 and 36");
|
|
14595
|
+
}, p.prototype.toNumber = function() {
|
|
14596
|
+
var E = this.words[0];
|
|
14597
|
+
return this.length === 2 ? E += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? E += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && c(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -E : E;
|
|
14598
|
+
}, p.prototype.toJSON = function() {
|
|
14599
|
+
return this.toString(16, 2);
|
|
14600
|
+
}, h && (p.prototype.toBuffer = function(E, Y) {
|
|
14601
|
+
return this.toArrayLike(h, E, Y);
|
|
14602
|
+
}), p.prototype.toArray = function(E, Y) {
|
|
14603
|
+
return this.toArrayLike(Array, E, Y);
|
|
14604
|
+
};
|
|
14605
|
+
var F = function(E, Y) {
|
|
14606
|
+
return E.allocUnsafe ? E.allocUnsafe(Y) : new E(Y);
|
|
14607
|
+
};
|
|
14608
|
+
p.prototype.toArrayLike = function(E, Y, q) {
|
|
14609
|
+
this._strip();
|
|
14610
|
+
var Q = this.byteLength(), ae = q || Math.max(1, Q);
|
|
14611
|
+
c(Q <= ae, "byte array longer than desired length"), c(ae > 0, "Requested array length <= 0");
|
|
14612
|
+
var te = F(E, ae), B = Y === "le" ? "LE" : "BE";
|
|
14613
|
+
return this["_toArrayLike" + B](te, Q), te;
|
|
14614
|
+
}, p.prototype._toArrayLikeLE = function(E, Y) {
|
|
14615
|
+
for (var q = 0, Q = 0, ae = 0, te = 0; ae < this.length; ae++) {
|
|
14616
|
+
var B = this.words[ae] << te | Q;
|
|
14617
|
+
E[q++] = B & 255, q < E.length && (E[q++] = B >> 8 & 255), q < E.length && (E[q++] = B >> 16 & 255), te === 6 ? (q < E.length && (E[q++] = B >> 24 & 255), Q = 0, te = 0) : (Q = B >>> 24, te += 2);
|
|
14618
|
+
}
|
|
14619
|
+
if (q < E.length)
|
|
14620
|
+
for (E[q++] = Q; q < E.length; )
|
|
14621
|
+
E[q++] = 0;
|
|
14622
|
+
}, p.prototype._toArrayLikeBE = function(E, Y) {
|
|
14623
|
+
for (var q = E.length - 1, Q = 0, ae = 0, te = 0; ae < this.length; ae++) {
|
|
14624
|
+
var B = this.words[ae] << te | Q;
|
|
14625
|
+
E[q--] = B & 255, q >= 0 && (E[q--] = B >> 8 & 255), q >= 0 && (E[q--] = B >> 16 & 255), te === 6 ? (q >= 0 && (E[q--] = B >> 24 & 255), Q = 0, te = 0) : (Q = B >>> 24, te += 2);
|
|
14626
|
+
}
|
|
14627
|
+
if (q >= 0)
|
|
14628
|
+
for (E[q--] = Q; q >= 0; )
|
|
14629
|
+
E[q--] = 0;
|
|
14630
|
+
}, Math.clz32 ? p.prototype._countBits = function(E) {
|
|
14631
|
+
return 32 - Math.clz32(E);
|
|
14632
|
+
} : p.prototype._countBits = function(E) {
|
|
14633
|
+
var Y = E, q = 0;
|
|
14634
|
+
return Y >= 4096 && (q += 13, Y >>>= 13), Y >= 64 && (q += 7, Y >>>= 7), Y >= 8 && (q += 4, Y >>>= 4), Y >= 2 && (q += 2, Y >>>= 2), q + Y;
|
|
14635
|
+
}, p.prototype._zeroBits = function(E) {
|
|
14636
|
+
if (E === 0)
|
|
14637
|
+
return 26;
|
|
14638
|
+
var Y = E, q = 0;
|
|
14639
|
+
return Y & 8191 || (q += 13, Y >>>= 13), Y & 127 || (q += 7, Y >>>= 7), Y & 15 || (q += 4, Y >>>= 4), Y & 3 || (q += 2, Y >>>= 2), Y & 1 || q++, q;
|
|
14640
|
+
}, p.prototype.bitLength = function() {
|
|
14641
|
+
var E = this.words[this.length - 1], Y = this._countBits(E);
|
|
14642
|
+
return (this.length - 1) * 26 + Y;
|
|
14643
|
+
};
|
|
14644
|
+
function Z(w) {
|
|
14645
|
+
for (var E = new Array(w.bitLength()), Y = 0; Y < E.length; Y++) {
|
|
14646
|
+
var q = Y / 26 | 0, Q = Y % 26;
|
|
14647
|
+
E[Y] = w.words[q] >>> Q & 1;
|
|
14417
14648
|
}
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
if (
|
|
14426
|
-
|
|
14427
|
-
for (ie = U(E, pe, E.length, Y), pe = 0; pe < B; pe++)
|
|
14428
|
-
ge *= Y;
|
|
14429
|
-
this.imuln(ge), this.words[0] + ie < 67108864 ? this.words[0] += ie : this._iaddn(ie);
|
|
14430
|
-
}
|
|
14431
|
-
this._strip();
|
|
14432
|
-
}, p.prototype.copy = function(E) {
|
|
14433
|
-
E.words = new Array(this.length);
|
|
14434
|
-
for (var Y = 0; Y < this.length; Y++)
|
|
14435
|
-
E.words[Y] = this.words[Y];
|
|
14436
|
-
E.length = this.length, E.negative = this.negative, E.red = this.red;
|
|
14437
|
-
};
|
|
14438
|
-
function H(w, E) {
|
|
14439
|
-
w.words = E.words, w.length = E.length, w.negative = E.negative, w.red = E.red;
|
|
14649
|
+
return E;
|
|
14650
|
+
}
|
|
14651
|
+
p.prototype.zeroBits = function() {
|
|
14652
|
+
if (this.isZero())
|
|
14653
|
+
return 0;
|
|
14654
|
+
for (var E = 0, Y = 0; Y < this.length; Y++) {
|
|
14655
|
+
var q = this._zeroBits(this.words[Y]);
|
|
14656
|
+
if (E += q, q !== 26)
|
|
14657
|
+
break;
|
|
14440
14658
|
}
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14659
|
+
return E;
|
|
14660
|
+
}, p.prototype.byteLength = function() {
|
|
14661
|
+
return Math.ceil(this.bitLength() / 8);
|
|
14662
|
+
}, p.prototype.toTwos = function(E) {
|
|
14663
|
+
return this.negative !== 0 ? this.abs().inotn(E).iaddn(1) : this.clone();
|
|
14664
|
+
}, p.prototype.fromTwos = function(E) {
|
|
14665
|
+
return this.testn(E - 1) ? this.notn(E).iaddn(1).ineg() : this.clone();
|
|
14666
|
+
}, p.prototype.isNeg = function() {
|
|
14667
|
+
return this.negative !== 0;
|
|
14668
|
+
}, p.prototype.neg = function() {
|
|
14669
|
+
return this.clone().ineg();
|
|
14670
|
+
}, p.prototype.ineg = function() {
|
|
14671
|
+
return this.isZero() || (this.negative ^= 1), this;
|
|
14672
|
+
}, p.prototype.iuor = function(E) {
|
|
14673
|
+
for (; this.length < E.length; )
|
|
14674
|
+
this.words[this.length++] = 0;
|
|
14675
|
+
for (var Y = 0; Y < E.length; Y++)
|
|
14676
|
+
this.words[Y] = this.words[Y] | E.words[Y];
|
|
14677
|
+
return this._strip();
|
|
14678
|
+
}, p.prototype.ior = function(E) {
|
|
14679
|
+
return c((this.negative | E.negative) === 0), this.iuor(E);
|
|
14680
|
+
}, p.prototype.or = function(E) {
|
|
14681
|
+
return this.length > E.length ? this.clone().ior(E) : E.clone().ior(this);
|
|
14682
|
+
}, p.prototype.uor = function(E) {
|
|
14683
|
+
return this.length > E.length ? this.clone().iuor(E) : E.clone().iuor(this);
|
|
14684
|
+
}, p.prototype.iuand = function(E) {
|
|
14685
|
+
var Y;
|
|
14686
|
+
this.length > E.length ? Y = E : Y = this;
|
|
14687
|
+
for (var q = 0; q < Y.length; q++)
|
|
14688
|
+
this.words[q] = this.words[q] & E.words[q];
|
|
14689
|
+
return this.length = Y.length, this._strip();
|
|
14690
|
+
}, p.prototype.iand = function(E) {
|
|
14691
|
+
return c((this.negative | E.negative) === 0), this.iuand(E);
|
|
14692
|
+
}, p.prototype.and = function(E) {
|
|
14693
|
+
return this.length > E.length ? this.clone().iand(E) : E.clone().iand(this);
|
|
14694
|
+
}, p.prototype.uand = function(E) {
|
|
14695
|
+
return this.length > E.length ? this.clone().iuand(E) : E.clone().iuand(this);
|
|
14696
|
+
}, p.prototype.iuxor = function(E) {
|
|
14697
|
+
var Y, q;
|
|
14698
|
+
this.length > E.length ? (Y = this, q = E) : (Y = E, q = this);
|
|
14699
|
+
for (var Q = 0; Q < q.length; Q++)
|
|
14700
|
+
this.words[Q] = Y.words[Q] ^ q.words[Q];
|
|
14701
|
+
if (this !== Y)
|
|
14702
|
+
for (; Q < Y.length; Q++)
|
|
14703
|
+
this.words[Q] = Y.words[Q];
|
|
14704
|
+
return this.length = Y.length, this._strip();
|
|
14705
|
+
}, p.prototype.ixor = function(E) {
|
|
14706
|
+
return c((this.negative | E.negative) === 0), this.iuxor(E);
|
|
14707
|
+
}, p.prototype.xor = function(E) {
|
|
14708
|
+
return this.length > E.length ? this.clone().ixor(E) : E.clone().ixor(this);
|
|
14709
|
+
}, p.prototype.uxor = function(E) {
|
|
14710
|
+
return this.length > E.length ? this.clone().iuxor(E) : E.clone().iuxor(this);
|
|
14711
|
+
}, p.prototype.inotn = function(E) {
|
|
14712
|
+
c(typeof E == "number" && E >= 0);
|
|
14713
|
+
var Y = Math.ceil(E / 26) | 0, q = E % 26;
|
|
14714
|
+
this._expand(Y), q > 0 && Y--;
|
|
14715
|
+
for (var Q = 0; Q < Y; Q++)
|
|
14716
|
+
this.words[Q] = ~this.words[Q] & 67108863;
|
|
14717
|
+
return q > 0 && (this.words[Q] = ~this.words[Q] & 67108863 >> 26 - q), this._strip();
|
|
14718
|
+
}, p.prototype.notn = function(E) {
|
|
14719
|
+
return this.clone().inotn(E);
|
|
14720
|
+
}, p.prototype.setn = function(E, Y) {
|
|
14721
|
+
c(typeof E == "number" && E >= 0);
|
|
14722
|
+
var q = E / 26 | 0, Q = E % 26;
|
|
14723
|
+
return this._expand(q + 1), Y ? this.words[q] = this.words[q] | 1 << Q : this.words[q] = this.words[q] & ~(1 << Q), this._strip();
|
|
14724
|
+
}, p.prototype.iadd = function(E) {
|
|
14725
|
+
var Y;
|
|
14726
|
+
if (this.negative !== 0 && E.negative === 0)
|
|
14727
|
+
return this.negative = 0, Y = this.isub(E), this.negative ^= 1, this._normSign();
|
|
14728
|
+
if (this.negative === 0 && E.negative !== 0)
|
|
14729
|
+
return E.negative = 0, Y = this.isub(E), E.negative = 1, Y._normSign();
|
|
14730
|
+
var q, Q;
|
|
14731
|
+
this.length > E.length ? (q = this, Q = E) : (q = E, Q = this);
|
|
14732
|
+
for (var ae = 0, te = 0; te < Q.length; te++)
|
|
14733
|
+
Y = (q.words[te] | 0) + (Q.words[te] | 0) + ae, this.words[te] = Y & 67108863, ae = Y >>> 26;
|
|
14734
|
+
for (; ae !== 0 && te < q.length; te++)
|
|
14735
|
+
Y = (q.words[te] | 0) + ae, this.words[te] = Y & 67108863, ae = Y >>> 26;
|
|
14736
|
+
if (this.length = q.length, ae !== 0)
|
|
14737
|
+
this.words[this.length] = ae, this.length++;
|
|
14738
|
+
else if (q !== this)
|
|
14739
|
+
for (; te < q.length; te++)
|
|
14740
|
+
this.words[te] = q.words[te];
|
|
14741
|
+
return this;
|
|
14742
|
+
}, p.prototype.add = function(E) {
|
|
14743
|
+
var Y;
|
|
14744
|
+
return E.negative !== 0 && this.negative === 0 ? (E.negative = 0, Y = this.sub(E), E.negative ^= 1, Y) : E.negative === 0 && this.negative !== 0 ? (this.negative = 0, Y = E.sub(this), this.negative = 1, Y) : this.length > E.length ? this.clone().iadd(E) : E.clone().iadd(this);
|
|
14745
|
+
}, p.prototype.isub = function(E) {
|
|
14746
|
+
if (E.negative !== 0) {
|
|
14747
|
+
E.negative = 0;
|
|
14748
|
+
var Y = this.iadd(E);
|
|
14749
|
+
return E.negative = 1, Y._normSign();
|
|
14750
|
+
} else if (this.negative !== 0)
|
|
14751
|
+
return this.negative = 0, this.iadd(E), this.negative = 1, this._normSign();
|
|
14752
|
+
var q = this.cmp(E);
|
|
14753
|
+
if (q === 0)
|
|
14754
|
+
return this.negative = 0, this.length = 1, this.words[0] = 0, this;
|
|
14755
|
+
var Q, ae;
|
|
14756
|
+
q > 0 ? (Q = this, ae = E) : (Q = E, ae = this);
|
|
14757
|
+
for (var te = 0, B = 0; B < ae.length; B++)
|
|
14758
|
+
Y = (Q.words[B] | 0) - (ae.words[B] | 0) + te, te = Y >> 26, this.words[B] = Y & 67108863;
|
|
14759
|
+
for (; te !== 0 && B < Q.length; B++)
|
|
14760
|
+
Y = (Q.words[B] | 0) + te, te = Y >> 26, this.words[B] = Y & 67108863;
|
|
14761
|
+
if (te === 0 && B < Q.length && Q !== this)
|
|
14762
|
+
for (; B < Q.length; B++)
|
|
14763
|
+
this.words[B] = Q.words[B];
|
|
14764
|
+
return this.length = Math.max(this.length, B), Q !== this && (this.negative = 1), this._strip();
|
|
14765
|
+
}, p.prototype.sub = function(E) {
|
|
14766
|
+
return this.clone().isub(E);
|
|
14767
|
+
};
|
|
14768
|
+
function $(w, E, Y) {
|
|
14769
|
+
Y.negative = E.negative ^ w.negative;
|
|
14770
|
+
var q = w.length + E.length | 0;
|
|
14771
|
+
Y.length = q, q = q - 1 | 0;
|
|
14772
|
+
var Q = w.words[0] | 0, ae = E.words[0] | 0, te = Q * ae, B = te & 67108863, k = te / 67108864 | 0;
|
|
14773
|
+
Y.words[0] = B;
|
|
14774
|
+
for (var ie = 1; ie < q; ie++) {
|
|
14775
|
+
for (var pe = k >>> 26, ge = k & 67108863, be = Math.min(ie, E.length - 1), ye = Math.max(0, ie - w.length + 1); ye <= be; ye++) {
|
|
14776
|
+
var Fe = ie - ye | 0;
|
|
14777
|
+
Q = w.words[Fe] | 0, ae = E.words[ye] | 0, te = Q * ae + ge, pe += te / 67108864 | 0, ge = te & 67108863;
|
|
14778
|
+
}
|
|
14779
|
+
Y.words[ie] = ge | 0, k = pe | 0;
|
|
14780
|
+
}
|
|
14781
|
+
return k !== 0 ? Y.words[ie] = k | 0 : Y.length--, Y._strip();
|
|
14782
|
+
}
|
|
14783
|
+
var O = function(E, Y, q) {
|
|
14784
|
+
var Q = E.words, ae = Y.words, te = q.words, B = 0, k, ie, pe, ge = Q[0] | 0, be = ge & 8191, ye = ge >>> 13, Fe = Q[1] | 0, Te = Fe & 8191, aa = Fe >>> 13, ra = Q[2] | 0, Ze = ra & 8191, Aa = ra >>> 13, Ge = Q[3] | 0, He = Ge & 8191, Qa = Ge >>> 13, Ce = Q[4] | 0, Ne = Ce & 8191, qe = Ce >>> 13, la = Q[5] | 0, he = la & 8191, Ta = la >>> 13, e0 = Q[6] | 0, q0 = e0 & 8191, Ka = e0 >>> 13, Za = Q[7] | 0, G0 = Za & 8191, Q0 = Za >>> 13, U0 = Q[8] | 0, dd = U0 & 8191, X0 = U0 >>> 13, j0 = Q[9] | 0, Ft = j0 & 8191, E0 = j0 >>> 13, ua = ae[0] | 0, ma = ua & 8191, g0 = ua >>> 13, ve = ae[1] | 0, We = ve & 8191, ca = ve >>> 13, f0 = ae[2] | 0, Wa = f0 & 8191, r0 = f0 >>> 13, $0 = ae[3] | 0, At = $0 & 8191, H0 = $0 >>> 13, dt = ae[4] | 0, zt = dt & 8191, K0 = dt >>> 13, it = ae[5] | 0, pd = it & 8191, rt = it >>> 13, bt = ae[6] | 0, hd = bt & 8191, et = bt >>> 13, _t = ae[7] | 0, Ld = _t & 8191, Ct = _t >>> 13, Jt = ae[8] | 0, Yd = Jt & 8191, oa = Jt >>> 13, Gt = ae[9] | 0, fa = Gt & 8191, ha = Gt >>> 13;
|
|
14785
|
+
q.negative = E.negative ^ Y.negative, q.length = 19, k = Math.imul(be, ma), ie = Math.imul(be, g0), ie = ie + Math.imul(ye, ma) | 0, pe = Math.imul(ye, g0);
|
|
14786
|
+
var Ra = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14787
|
+
B = (pe + (ie >>> 13) | 0) + (Ra >>> 26) | 0, Ra &= 67108863, k = Math.imul(Te, ma), ie = Math.imul(Te, g0), ie = ie + Math.imul(aa, ma) | 0, pe = Math.imul(aa, g0), k = k + Math.imul(be, We) | 0, ie = ie + Math.imul(be, ca) | 0, ie = ie + Math.imul(ye, We) | 0, pe = pe + Math.imul(ye, ca) | 0;
|
|
14788
|
+
var Ha = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14789
|
+
B = (pe + (ie >>> 13) | 0) + (Ha >>> 26) | 0, Ha &= 67108863, k = Math.imul(Ze, ma), ie = Math.imul(Ze, g0), ie = ie + Math.imul(Aa, ma) | 0, pe = Math.imul(Aa, g0), k = k + Math.imul(Te, We) | 0, ie = ie + Math.imul(Te, ca) | 0, ie = ie + Math.imul(aa, We) | 0, pe = pe + Math.imul(aa, ca) | 0, k = k + Math.imul(be, Wa) | 0, ie = ie + Math.imul(be, r0) | 0, ie = ie + Math.imul(ye, Wa) | 0, pe = pe + Math.imul(ye, r0) | 0;
|
|
14790
|
+
var Xa = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14791
|
+
B = (pe + (ie >>> 13) | 0) + (Xa >>> 26) | 0, Xa &= 67108863, k = Math.imul(He, ma), ie = Math.imul(He, g0), ie = ie + Math.imul(Qa, ma) | 0, pe = Math.imul(Qa, g0), k = k + Math.imul(Ze, We) | 0, ie = ie + Math.imul(Ze, ca) | 0, ie = ie + Math.imul(Aa, We) | 0, pe = pe + Math.imul(Aa, ca) | 0, k = k + Math.imul(Te, Wa) | 0, ie = ie + Math.imul(Te, r0) | 0, ie = ie + Math.imul(aa, Wa) | 0, pe = pe + Math.imul(aa, r0) | 0, k = k + Math.imul(be, At) | 0, ie = ie + Math.imul(be, H0) | 0, ie = ie + Math.imul(ye, At) | 0, pe = pe + Math.imul(ye, H0) | 0;
|
|
14792
|
+
var _0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14793
|
+
B = (pe + (ie >>> 13) | 0) + (_0 >>> 26) | 0, _0 &= 67108863, k = Math.imul(Ne, ma), ie = Math.imul(Ne, g0), ie = ie + Math.imul(qe, ma) | 0, pe = Math.imul(qe, g0), k = k + Math.imul(He, We) | 0, ie = ie + Math.imul(He, ca) | 0, ie = ie + Math.imul(Qa, We) | 0, pe = pe + Math.imul(Qa, ca) | 0, k = k + Math.imul(Ze, Wa) | 0, ie = ie + Math.imul(Ze, r0) | 0, ie = ie + Math.imul(Aa, Wa) | 0, pe = pe + Math.imul(Aa, r0) | 0, k = k + Math.imul(Te, At) | 0, ie = ie + Math.imul(Te, H0) | 0, ie = ie + Math.imul(aa, At) | 0, pe = pe + Math.imul(aa, H0) | 0, k = k + Math.imul(be, zt) | 0, ie = ie + Math.imul(be, K0) | 0, ie = ie + Math.imul(ye, zt) | 0, pe = pe + Math.imul(ye, K0) | 0;
|
|
14794
|
+
var O0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14795
|
+
B = (pe + (ie >>> 13) | 0) + (O0 >>> 26) | 0, O0 &= 67108863, k = Math.imul(he, ma), ie = Math.imul(he, g0), ie = ie + Math.imul(Ta, ma) | 0, pe = Math.imul(Ta, g0), k = k + Math.imul(Ne, We) | 0, ie = ie + Math.imul(Ne, ca) | 0, ie = ie + Math.imul(qe, We) | 0, pe = pe + Math.imul(qe, ca) | 0, k = k + Math.imul(He, Wa) | 0, ie = ie + Math.imul(He, r0) | 0, ie = ie + Math.imul(Qa, Wa) | 0, pe = pe + Math.imul(Qa, r0) | 0, k = k + Math.imul(Ze, At) | 0, ie = ie + Math.imul(Ze, H0) | 0, ie = ie + Math.imul(Aa, At) | 0, pe = pe + Math.imul(Aa, H0) | 0, k = k + Math.imul(Te, zt) | 0, ie = ie + Math.imul(Te, K0) | 0, ie = ie + Math.imul(aa, zt) | 0, pe = pe + Math.imul(aa, K0) | 0, k = k + Math.imul(be, pd) | 0, ie = ie + Math.imul(be, rt) | 0, ie = ie + Math.imul(ye, pd) | 0, pe = pe + Math.imul(ye, rt) | 0;
|
|
14796
|
+
var z0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14797
|
+
B = (pe + (ie >>> 13) | 0) + (z0 >>> 26) | 0, z0 &= 67108863, k = Math.imul(q0, ma), ie = Math.imul(q0, g0), ie = ie + Math.imul(Ka, ma) | 0, pe = Math.imul(Ka, g0), k = k + Math.imul(he, We) | 0, ie = ie + Math.imul(he, ca) | 0, ie = ie + Math.imul(Ta, We) | 0, pe = pe + Math.imul(Ta, ca) | 0, k = k + Math.imul(Ne, Wa) | 0, ie = ie + Math.imul(Ne, r0) | 0, ie = ie + Math.imul(qe, Wa) | 0, pe = pe + Math.imul(qe, r0) | 0, k = k + Math.imul(He, At) | 0, ie = ie + Math.imul(He, H0) | 0, ie = ie + Math.imul(Qa, At) | 0, pe = pe + Math.imul(Qa, H0) | 0, k = k + Math.imul(Ze, zt) | 0, ie = ie + Math.imul(Ze, K0) | 0, ie = ie + Math.imul(Aa, zt) | 0, pe = pe + Math.imul(Aa, K0) | 0, k = k + Math.imul(Te, pd) | 0, ie = ie + Math.imul(Te, rt) | 0, ie = ie + Math.imul(aa, pd) | 0, pe = pe + Math.imul(aa, rt) | 0, k = k + Math.imul(be, hd) | 0, ie = ie + Math.imul(be, et) | 0, ie = ie + Math.imul(ye, hd) | 0, pe = pe + Math.imul(ye, et) | 0;
|
|
14798
|
+
var It = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14799
|
+
B = (pe + (ie >>> 13) | 0) + (It >>> 26) | 0, It &= 67108863, k = Math.imul(G0, ma), ie = Math.imul(G0, g0), ie = ie + Math.imul(Q0, ma) | 0, pe = Math.imul(Q0, g0), k = k + Math.imul(q0, We) | 0, ie = ie + Math.imul(q0, ca) | 0, ie = ie + Math.imul(Ka, We) | 0, pe = pe + Math.imul(Ka, ca) | 0, k = k + Math.imul(he, Wa) | 0, ie = ie + Math.imul(he, r0) | 0, ie = ie + Math.imul(Ta, Wa) | 0, pe = pe + Math.imul(Ta, r0) | 0, k = k + Math.imul(Ne, At) | 0, ie = ie + Math.imul(Ne, H0) | 0, ie = ie + Math.imul(qe, At) | 0, pe = pe + Math.imul(qe, H0) | 0, k = k + Math.imul(He, zt) | 0, ie = ie + Math.imul(He, K0) | 0, ie = ie + Math.imul(Qa, zt) | 0, pe = pe + Math.imul(Qa, K0) | 0, k = k + Math.imul(Ze, pd) | 0, ie = ie + Math.imul(Ze, rt) | 0, ie = ie + Math.imul(Aa, pd) | 0, pe = pe + Math.imul(Aa, rt) | 0, k = k + Math.imul(Te, hd) | 0, ie = ie + Math.imul(Te, et) | 0, ie = ie + Math.imul(aa, hd) | 0, pe = pe + Math.imul(aa, et) | 0, k = k + Math.imul(be, Ld) | 0, ie = ie + Math.imul(be, Ct) | 0, ie = ie + Math.imul(ye, Ld) | 0, pe = pe + Math.imul(ye, Ct) | 0;
|
|
14800
|
+
var Bt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14801
|
+
B = (pe + (ie >>> 13) | 0) + (Bt >>> 26) | 0, Bt &= 67108863, k = Math.imul(dd, ma), ie = Math.imul(dd, g0), ie = ie + Math.imul(X0, ma) | 0, pe = Math.imul(X0, g0), k = k + Math.imul(G0, We) | 0, ie = ie + Math.imul(G0, ca) | 0, ie = ie + Math.imul(Q0, We) | 0, pe = pe + Math.imul(Q0, ca) | 0, k = k + Math.imul(q0, Wa) | 0, ie = ie + Math.imul(q0, r0) | 0, ie = ie + Math.imul(Ka, Wa) | 0, pe = pe + Math.imul(Ka, r0) | 0, k = k + Math.imul(he, At) | 0, ie = ie + Math.imul(he, H0) | 0, ie = ie + Math.imul(Ta, At) | 0, pe = pe + Math.imul(Ta, H0) | 0, k = k + Math.imul(Ne, zt) | 0, ie = ie + Math.imul(Ne, K0) | 0, ie = ie + Math.imul(qe, zt) | 0, pe = pe + Math.imul(qe, K0) | 0, k = k + Math.imul(He, pd) | 0, ie = ie + Math.imul(He, rt) | 0, ie = ie + Math.imul(Qa, pd) | 0, pe = pe + Math.imul(Qa, rt) | 0, k = k + Math.imul(Ze, hd) | 0, ie = ie + Math.imul(Ze, et) | 0, ie = ie + Math.imul(Aa, hd) | 0, pe = pe + Math.imul(Aa, et) | 0, k = k + Math.imul(Te, Ld) | 0, ie = ie + Math.imul(Te, Ct) | 0, ie = ie + Math.imul(aa, Ld) | 0, pe = pe + Math.imul(aa, Ct) | 0, k = k + Math.imul(be, Yd) | 0, ie = ie + Math.imul(be, oa) | 0, ie = ie + Math.imul(ye, Yd) | 0, pe = pe + Math.imul(ye, oa) | 0;
|
|
14802
|
+
var Kt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14803
|
+
B = (pe + (ie >>> 13) | 0) + (Kt >>> 26) | 0, Kt &= 67108863, k = Math.imul(Ft, ma), ie = Math.imul(Ft, g0), ie = ie + Math.imul(E0, ma) | 0, pe = Math.imul(E0, g0), k = k + Math.imul(dd, We) | 0, ie = ie + Math.imul(dd, ca) | 0, ie = ie + Math.imul(X0, We) | 0, pe = pe + Math.imul(X0, ca) | 0, k = k + Math.imul(G0, Wa) | 0, ie = ie + Math.imul(G0, r0) | 0, ie = ie + Math.imul(Q0, Wa) | 0, pe = pe + Math.imul(Q0, r0) | 0, k = k + Math.imul(q0, At) | 0, ie = ie + Math.imul(q0, H0) | 0, ie = ie + Math.imul(Ka, At) | 0, pe = pe + Math.imul(Ka, H0) | 0, k = k + Math.imul(he, zt) | 0, ie = ie + Math.imul(he, K0) | 0, ie = ie + Math.imul(Ta, zt) | 0, pe = pe + Math.imul(Ta, K0) | 0, k = k + Math.imul(Ne, pd) | 0, ie = ie + Math.imul(Ne, rt) | 0, ie = ie + Math.imul(qe, pd) | 0, pe = pe + Math.imul(qe, rt) | 0, k = k + Math.imul(He, hd) | 0, ie = ie + Math.imul(He, et) | 0, ie = ie + Math.imul(Qa, hd) | 0, pe = pe + Math.imul(Qa, et) | 0, k = k + Math.imul(Ze, Ld) | 0, ie = ie + Math.imul(Ze, Ct) | 0, ie = ie + Math.imul(Aa, Ld) | 0, pe = pe + Math.imul(Aa, Ct) | 0, k = k + Math.imul(Te, Yd) | 0, ie = ie + Math.imul(Te, oa) | 0, ie = ie + Math.imul(aa, Yd) | 0, pe = pe + Math.imul(aa, oa) | 0, k = k + Math.imul(be, fa) | 0, ie = ie + Math.imul(be, ha) | 0, ie = ie + Math.imul(ye, fa) | 0, pe = pe + Math.imul(ye, ha) | 0;
|
|
14804
|
+
var Ed = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14805
|
+
B = (pe + (ie >>> 13) | 0) + (Ed >>> 26) | 0, Ed &= 67108863, k = Math.imul(Ft, We), ie = Math.imul(Ft, ca), ie = ie + Math.imul(E0, We) | 0, pe = Math.imul(E0, ca), k = k + Math.imul(dd, Wa) | 0, ie = ie + Math.imul(dd, r0) | 0, ie = ie + Math.imul(X0, Wa) | 0, pe = pe + Math.imul(X0, r0) | 0, k = k + Math.imul(G0, At) | 0, ie = ie + Math.imul(G0, H0) | 0, ie = ie + Math.imul(Q0, At) | 0, pe = pe + Math.imul(Q0, H0) | 0, k = k + Math.imul(q0, zt) | 0, ie = ie + Math.imul(q0, K0) | 0, ie = ie + Math.imul(Ka, zt) | 0, pe = pe + Math.imul(Ka, K0) | 0, k = k + Math.imul(he, pd) | 0, ie = ie + Math.imul(he, rt) | 0, ie = ie + Math.imul(Ta, pd) | 0, pe = pe + Math.imul(Ta, rt) | 0, k = k + Math.imul(Ne, hd) | 0, ie = ie + Math.imul(Ne, et) | 0, ie = ie + Math.imul(qe, hd) | 0, pe = pe + Math.imul(qe, et) | 0, k = k + Math.imul(He, Ld) | 0, ie = ie + Math.imul(He, Ct) | 0, ie = ie + Math.imul(Qa, Ld) | 0, pe = pe + Math.imul(Qa, Ct) | 0, k = k + Math.imul(Ze, Yd) | 0, ie = ie + Math.imul(Ze, oa) | 0, ie = ie + Math.imul(Aa, Yd) | 0, pe = pe + Math.imul(Aa, oa) | 0, k = k + Math.imul(Te, fa) | 0, ie = ie + Math.imul(Te, ha) | 0, ie = ie + Math.imul(aa, fa) | 0, pe = pe + Math.imul(aa, ha) | 0;
|
|
14806
|
+
var P = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14807
|
+
B = (pe + (ie >>> 13) | 0) + (P >>> 26) | 0, P &= 67108863, k = Math.imul(Ft, Wa), ie = Math.imul(Ft, r0), ie = ie + Math.imul(E0, Wa) | 0, pe = Math.imul(E0, r0), k = k + Math.imul(dd, At) | 0, ie = ie + Math.imul(dd, H0) | 0, ie = ie + Math.imul(X0, At) | 0, pe = pe + Math.imul(X0, H0) | 0, k = k + Math.imul(G0, zt) | 0, ie = ie + Math.imul(G0, K0) | 0, ie = ie + Math.imul(Q0, zt) | 0, pe = pe + Math.imul(Q0, K0) | 0, k = k + Math.imul(q0, pd) | 0, ie = ie + Math.imul(q0, rt) | 0, ie = ie + Math.imul(Ka, pd) | 0, pe = pe + Math.imul(Ka, rt) | 0, k = k + Math.imul(he, hd) | 0, ie = ie + Math.imul(he, et) | 0, ie = ie + Math.imul(Ta, hd) | 0, pe = pe + Math.imul(Ta, et) | 0, k = k + Math.imul(Ne, Ld) | 0, ie = ie + Math.imul(Ne, Ct) | 0, ie = ie + Math.imul(qe, Ld) | 0, pe = pe + Math.imul(qe, Ct) | 0, k = k + Math.imul(He, Yd) | 0, ie = ie + Math.imul(He, oa) | 0, ie = ie + Math.imul(Qa, Yd) | 0, pe = pe + Math.imul(Qa, oa) | 0, k = k + Math.imul(Ze, fa) | 0, ie = ie + Math.imul(Ze, ha) | 0, ie = ie + Math.imul(Aa, fa) | 0, pe = pe + Math.imul(Aa, ha) | 0;
|
|
14808
|
+
var t = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14809
|
+
B = (pe + (ie >>> 13) | 0) + (t >>> 26) | 0, t &= 67108863, k = Math.imul(Ft, At), ie = Math.imul(Ft, H0), ie = ie + Math.imul(E0, At) | 0, pe = Math.imul(E0, H0), k = k + Math.imul(dd, zt) | 0, ie = ie + Math.imul(dd, K0) | 0, ie = ie + Math.imul(X0, zt) | 0, pe = pe + Math.imul(X0, K0) | 0, k = k + Math.imul(G0, pd) | 0, ie = ie + Math.imul(G0, rt) | 0, ie = ie + Math.imul(Q0, pd) | 0, pe = pe + Math.imul(Q0, rt) | 0, k = k + Math.imul(q0, hd) | 0, ie = ie + Math.imul(q0, et) | 0, ie = ie + Math.imul(Ka, hd) | 0, pe = pe + Math.imul(Ka, et) | 0, k = k + Math.imul(he, Ld) | 0, ie = ie + Math.imul(he, Ct) | 0, ie = ie + Math.imul(Ta, Ld) | 0, pe = pe + Math.imul(Ta, Ct) | 0, k = k + Math.imul(Ne, Yd) | 0, ie = ie + Math.imul(Ne, oa) | 0, ie = ie + Math.imul(qe, Yd) | 0, pe = pe + Math.imul(qe, oa) | 0, k = k + Math.imul(He, fa) | 0, ie = ie + Math.imul(He, ha) | 0, ie = ie + Math.imul(Qa, fa) | 0, pe = pe + Math.imul(Qa, ha) | 0;
|
|
14810
|
+
var A = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14811
|
+
B = (pe + (ie >>> 13) | 0) + (A >>> 26) | 0, A &= 67108863, k = Math.imul(Ft, zt), ie = Math.imul(Ft, K0), ie = ie + Math.imul(E0, zt) | 0, pe = Math.imul(E0, K0), k = k + Math.imul(dd, pd) | 0, ie = ie + Math.imul(dd, rt) | 0, ie = ie + Math.imul(X0, pd) | 0, pe = pe + Math.imul(X0, rt) | 0, k = k + Math.imul(G0, hd) | 0, ie = ie + Math.imul(G0, et) | 0, ie = ie + Math.imul(Q0, hd) | 0, pe = pe + Math.imul(Q0, et) | 0, k = k + Math.imul(q0, Ld) | 0, ie = ie + Math.imul(q0, Ct) | 0, ie = ie + Math.imul(Ka, Ld) | 0, pe = pe + Math.imul(Ka, Ct) | 0, k = k + Math.imul(he, Yd) | 0, ie = ie + Math.imul(he, oa) | 0, ie = ie + Math.imul(Ta, Yd) | 0, pe = pe + Math.imul(Ta, oa) | 0, k = k + Math.imul(Ne, fa) | 0, ie = ie + Math.imul(Ne, ha) | 0, ie = ie + Math.imul(qe, fa) | 0, pe = pe + Math.imul(qe, ha) | 0;
|
|
14812
|
+
var qd = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14813
|
+
B = (pe + (ie >>> 13) | 0) + (qd >>> 26) | 0, qd &= 67108863, k = Math.imul(Ft, pd), ie = Math.imul(Ft, rt), ie = ie + Math.imul(E0, pd) | 0, pe = Math.imul(E0, rt), k = k + Math.imul(dd, hd) | 0, ie = ie + Math.imul(dd, et) | 0, ie = ie + Math.imul(X0, hd) | 0, pe = pe + Math.imul(X0, et) | 0, k = k + Math.imul(G0, Ld) | 0, ie = ie + Math.imul(G0, Ct) | 0, ie = ie + Math.imul(Q0, Ld) | 0, pe = pe + Math.imul(Q0, Ct) | 0, k = k + Math.imul(q0, Yd) | 0, ie = ie + Math.imul(q0, oa) | 0, ie = ie + Math.imul(Ka, Yd) | 0, pe = pe + Math.imul(Ka, oa) | 0, k = k + Math.imul(he, fa) | 0, ie = ie + Math.imul(he, ha) | 0, ie = ie + Math.imul(Ta, fa) | 0, pe = pe + Math.imul(Ta, ha) | 0;
|
|
14814
|
+
var wt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14815
|
+
B = (pe + (ie >>> 13) | 0) + (wt >>> 26) | 0, wt &= 67108863, k = Math.imul(Ft, hd), ie = Math.imul(Ft, et), ie = ie + Math.imul(E0, hd) | 0, pe = Math.imul(E0, et), k = k + Math.imul(dd, Ld) | 0, ie = ie + Math.imul(dd, Ct) | 0, ie = ie + Math.imul(X0, Ld) | 0, pe = pe + Math.imul(X0, Ct) | 0, k = k + Math.imul(G0, Yd) | 0, ie = ie + Math.imul(G0, oa) | 0, ie = ie + Math.imul(Q0, Yd) | 0, pe = pe + Math.imul(Q0, oa) | 0, k = k + Math.imul(q0, fa) | 0, ie = ie + Math.imul(q0, ha) | 0, ie = ie + Math.imul(Ka, fa) | 0, pe = pe + Math.imul(Ka, ha) | 0;
|
|
14816
|
+
var Xd = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14817
|
+
B = (pe + (ie >>> 13) | 0) + (Xd >>> 26) | 0, Xd &= 67108863, k = Math.imul(Ft, Ld), ie = Math.imul(Ft, Ct), ie = ie + Math.imul(E0, Ld) | 0, pe = Math.imul(E0, Ct), k = k + Math.imul(dd, Yd) | 0, ie = ie + Math.imul(dd, oa) | 0, ie = ie + Math.imul(X0, Yd) | 0, pe = pe + Math.imul(X0, oa) | 0, k = k + Math.imul(G0, fa) | 0, ie = ie + Math.imul(G0, ha) | 0, ie = ie + Math.imul(Q0, fa) | 0, pe = pe + Math.imul(Q0, ha) | 0;
|
|
14818
|
+
var nn = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14819
|
+
B = (pe + (ie >>> 13) | 0) + (nn >>> 26) | 0, nn &= 67108863, k = Math.imul(Ft, Yd), ie = Math.imul(Ft, oa), ie = ie + Math.imul(E0, Yd) | 0, pe = Math.imul(E0, oa), k = k + Math.imul(dd, fa) | 0, ie = ie + Math.imul(dd, ha) | 0, ie = ie + Math.imul(X0, fa) | 0, pe = pe + Math.imul(X0, ha) | 0;
|
|
14820
|
+
var Vn = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14821
|
+
B = (pe + (ie >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, k = Math.imul(Ft, fa), ie = Math.imul(Ft, ha), ie = ie + Math.imul(E0, fa) | 0, pe = Math.imul(E0, ha);
|
|
14822
|
+
var Mc = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14823
|
+
return B = (pe + (ie >>> 13) | 0) + (Mc >>> 26) | 0, Mc &= 67108863, te[0] = Ra, te[1] = Ha, te[2] = Xa, te[3] = _0, te[4] = O0, te[5] = z0, te[6] = It, te[7] = Bt, te[8] = Kt, te[9] = Ed, te[10] = P, te[11] = t, te[12] = A, te[13] = qd, te[14] = wt, te[15] = Xd, te[16] = nn, te[17] = Vn, te[18] = Mc, B !== 0 && (te[19] = B, q.length++), q;
|
|
14824
|
+
};
|
|
14825
|
+
Math.imul || (O = $);
|
|
14826
|
+
function J(w, E, Y) {
|
|
14827
|
+
Y.negative = E.negative ^ w.negative, Y.length = w.length + E.length;
|
|
14828
|
+
for (var q = 0, Q = 0, ae = 0; ae < Y.length - 1; ae++) {
|
|
14829
|
+
var te = Q;
|
|
14830
|
+
Q = 0;
|
|
14831
|
+
for (var B = q & 67108863, k = Math.min(ae, E.length - 1), ie = Math.max(0, ae - w.length + 1); ie <= k; ie++) {
|
|
14832
|
+
var pe = ae - ie, ge = w.words[pe] | 0, be = E.words[ie] | 0, ye = ge * be, Fe = ye & 67108863;
|
|
14833
|
+
te = te + (ye / 67108864 | 0) | 0, Fe = Fe + B | 0, B = Fe & 67108863, te = te + (Fe >>> 26) | 0, Q += te >>> 26, te &= 67108863;
|
|
14834
|
+
}
|
|
14835
|
+
Y.words[ae] = B, q = te, te = Q;
|
|
14836
|
+
}
|
|
14837
|
+
return q !== 0 ? Y.words[ae] = q : Y.length--, Y._strip();
|
|
14838
|
+
}
|
|
14839
|
+
function oe(w, E, Y) {
|
|
14840
|
+
return J(w, E, Y);
|
|
14841
|
+
}
|
|
14842
|
+
p.prototype.mulTo = function(E, Y) {
|
|
14843
|
+
var q, Q = this.length + E.length;
|
|
14844
|
+
return this.length === 10 && E.length === 10 ? q = O(this, E, Y) : Q < 63 ? q = $(this, E, Y) : Q < 1024 ? q = J(this, E, Y) : q = oe(this, E, Y), q;
|
|
14845
|
+
}, p.prototype.mul = function(E) {
|
|
14846
|
+
var Y = new p(null);
|
|
14847
|
+
return Y.words = new Array(this.length + E.length), this.mulTo(E, Y);
|
|
14848
|
+
}, p.prototype.mulf = function(E) {
|
|
14849
|
+
var Y = new p(null);
|
|
14850
|
+
return Y.words = new Array(this.length + E.length), oe(this, E, Y);
|
|
14851
|
+
}, p.prototype.imul = function(E) {
|
|
14852
|
+
return this.clone().mulTo(E, this);
|
|
14853
|
+
}, p.prototype.imuln = function(E) {
|
|
14854
|
+
var Y = E < 0;
|
|
14855
|
+
Y && (E = -E), c(typeof E == "number"), c(E < 67108864);
|
|
14856
|
+
for (var q = 0, Q = 0; Q < this.length; Q++) {
|
|
14857
|
+
var ae = (this.words[Q] | 0) * E, te = (ae & 67108863) + (q & 67108863);
|
|
14858
|
+
q >>= 26, q += ae / 67108864 | 0, q += te >>> 26, this.words[Q] = te & 67108863;
|
|
14859
|
+
}
|
|
14860
|
+
return q !== 0 && (this.words[Q] = q, this.length++), Y ? this.ineg() : this;
|
|
14861
|
+
}, p.prototype.muln = function(E) {
|
|
14862
|
+
return this.clone().imuln(E);
|
|
14863
|
+
}, p.prototype.sqr = function() {
|
|
14864
|
+
return this.mul(this);
|
|
14865
|
+
}, p.prototype.isqr = function() {
|
|
14866
|
+
return this.imul(this.clone());
|
|
14867
|
+
}, p.prototype.pow = function(E) {
|
|
14868
|
+
var Y = Z(E);
|
|
14869
|
+
if (Y.length === 0)
|
|
14870
|
+
return new p(1);
|
|
14871
|
+
for (var q = this, Q = 0; Q < Y.length && Y[Q] === 0; Q++, q = q.sqr())
|
|
14872
|
+
;
|
|
14873
|
+
if (++Q < Y.length)
|
|
14874
|
+
for (var ae = q.sqr(); Q < Y.length; Q++, ae = ae.sqr())
|
|
14875
|
+
Y[Q] !== 0 && (q = q.mul(ae));
|
|
14876
|
+
return q;
|
|
14877
|
+
}, p.prototype.iushln = function(E) {
|
|
14878
|
+
c(typeof E == "number" && E >= 0);
|
|
14879
|
+
var Y = E % 26, q = (E - Y) / 26, Q = 67108863 >>> 26 - Y << 26 - Y, ae;
|
|
14880
|
+
if (Y !== 0) {
|
|
14881
|
+
var te = 0;
|
|
14882
|
+
for (ae = 0; ae < this.length; ae++) {
|
|
14883
|
+
var B = this.words[ae] & Q, k = (this.words[ae] | 0) - B << Y;
|
|
14884
|
+
this.words[ae] = k | te, te = B >>> 26 - Y;
|
|
14885
|
+
}
|
|
14886
|
+
te && (this.words[ae] = te, this.length++);
|
|
14887
|
+
}
|
|
14888
|
+
if (q !== 0) {
|
|
14889
|
+
for (ae = this.length - 1; ae >= 0; ae--)
|
|
14890
|
+
this.words[ae + q] = this.words[ae];
|
|
14891
|
+
for (ae = 0; ae < q; ae++)
|
|
14892
|
+
this.words[ae] = 0;
|
|
14893
|
+
this.length += q;
|
|
14894
|
+
}
|
|
14895
|
+
return this._strip();
|
|
14896
|
+
}, p.prototype.ishln = function(E) {
|
|
14897
|
+
return c(this.negative === 0), this.iushln(E);
|
|
14898
|
+
}, p.prototype.iushrn = function(E, Y, q) {
|
|
14899
|
+
c(typeof E == "number" && E >= 0);
|
|
14900
|
+
var Q;
|
|
14901
|
+
Y ? Q = (Y - Y % 26) / 26 : Q = 0;
|
|
14902
|
+
var ae = E % 26, te = Math.min((E - ae) / 26, this.length), B = 67108863 ^ 67108863 >>> ae << ae, k = q;
|
|
14903
|
+
if (Q -= te, Q = Math.max(0, Q), k) {
|
|
14904
|
+
for (var ie = 0; ie < te; ie++)
|
|
14905
|
+
k.words[ie] = this.words[ie];
|
|
14906
|
+
k.length = te;
|
|
14907
|
+
}
|
|
14908
|
+
if (te !== 0)
|
|
14909
|
+
if (this.length > te)
|
|
14910
|
+
for (this.length -= te, ie = 0; ie < this.length; ie++)
|
|
14911
|
+
this.words[ie] = this.words[ie + te];
|
|
14912
|
+
else
|
|
14913
|
+
this.words[0] = 0, this.length = 1;
|
|
14914
|
+
var pe = 0;
|
|
14915
|
+
for (ie = this.length - 1; ie >= 0 && (pe !== 0 || ie >= Q); ie--) {
|
|
14916
|
+
var ge = this.words[ie] | 0;
|
|
14917
|
+
this.words[ie] = pe << 26 - ae | ge >>> ae, pe = ge & B;
|
|
14918
|
+
}
|
|
14919
|
+
return k && pe !== 0 && (k.words[k.length++] = pe), this.length === 0 && (this.words[0] = 0, this.length = 1), this._strip();
|
|
14920
|
+
}, p.prototype.ishrn = function(E, Y, q) {
|
|
14921
|
+
return c(this.negative === 0), this.iushrn(E, Y, q);
|
|
14922
|
+
}, p.prototype.shln = function(E) {
|
|
14923
|
+
return this.clone().ishln(E);
|
|
14924
|
+
}, p.prototype.ushln = function(E) {
|
|
14925
|
+
return this.clone().iushln(E);
|
|
14926
|
+
}, p.prototype.shrn = function(E) {
|
|
14927
|
+
return this.clone().ishrn(E);
|
|
14928
|
+
}, p.prototype.ushrn = function(E) {
|
|
14929
|
+
return this.clone().iushrn(E);
|
|
14930
|
+
}, p.prototype.testn = function(E) {
|
|
14931
|
+
c(typeof E == "number" && E >= 0);
|
|
14932
|
+
var Y = E % 26, q = (E - Y) / 26, Q = 1 << Y;
|
|
14933
|
+
if (this.length <= q)
|
|
14934
|
+
return !1;
|
|
14935
|
+
var ae = this.words[q];
|
|
14936
|
+
return !!(ae & Q);
|
|
14937
|
+
}, p.prototype.imaskn = function(E) {
|
|
14938
|
+
c(typeof E == "number" && E >= 0);
|
|
14939
|
+
var Y = E % 26, q = (E - Y) / 26;
|
|
14940
|
+
if (c(this.negative === 0, "imaskn works only with positive numbers"), this.length <= q)
|
|
14449
14941
|
return this;
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14942
|
+
if (Y !== 0 && q++, this.length = Math.min(q, this.length), Y !== 0) {
|
|
14943
|
+
var Q = 67108863 ^ 67108863 >>> Y << Y;
|
|
14944
|
+
this.words[this.length - 1] &= Q;
|
|
14945
|
+
}
|
|
14946
|
+
return this._strip();
|
|
14947
|
+
}, p.prototype.maskn = function(E) {
|
|
14948
|
+
return this.clone().imaskn(E);
|
|
14949
|
+
}, p.prototype.iaddn = function(E) {
|
|
14950
|
+
return c(typeof E == "number"), c(E < 67108864), E < 0 ? this.isubn(-E) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) <= E ? (this.words[0] = E - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(E), this.negative = 1, this) : this._iaddn(E);
|
|
14951
|
+
}, p.prototype._iaddn = function(E) {
|
|
14952
|
+
this.words[0] += E;
|
|
14953
|
+
for (var Y = 0; Y < this.length && this.words[Y] >= 67108864; Y++)
|
|
14954
|
+
this.words[Y] -= 67108864, Y === this.length - 1 ? this.words[Y + 1] = 1 : this.words[Y + 1]++;
|
|
14955
|
+
return this.length = Math.max(this.length, Y + 1), this;
|
|
14956
|
+
}, p.prototype.isubn = function(E) {
|
|
14957
|
+
if (c(typeof E == "number"), c(E < 67108864), E < 0)
|
|
14958
|
+
return this.iaddn(-E);
|
|
14959
|
+
if (this.negative !== 0)
|
|
14960
|
+
return this.negative = 0, this.iaddn(E), this.negative = 1, this;
|
|
14961
|
+
if (this.words[0] -= E, this.length === 1 && this.words[0] < 0)
|
|
14962
|
+
this.words[0] = -this.words[0], this.negative = 1;
|
|
14462
14963
|
else
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
"000000000000000000",
|
|
14487
|
-
"0000000000000000000",
|
|
14488
|
-
"00000000000000000000",
|
|
14489
|
-
"000000000000000000000",
|
|
14490
|
-
"0000000000000000000000",
|
|
14491
|
-
"00000000000000000000000",
|
|
14492
|
-
"000000000000000000000000",
|
|
14493
|
-
"0000000000000000000000000"
|
|
14494
|
-
], fe = [
|
|
14495
|
-
0,
|
|
14496
|
-
0,
|
|
14497
|
-
25,
|
|
14498
|
-
16,
|
|
14499
|
-
12,
|
|
14500
|
-
11,
|
|
14501
|
-
10,
|
|
14502
|
-
9,
|
|
14503
|
-
8,
|
|
14504
|
-
8,
|
|
14505
|
-
7,
|
|
14506
|
-
7,
|
|
14507
|
-
7,
|
|
14508
|
-
7,
|
|
14509
|
-
6,
|
|
14510
|
-
6,
|
|
14511
|
-
6,
|
|
14512
|
-
6,
|
|
14513
|
-
6,
|
|
14514
|
-
6,
|
|
14515
|
-
6,
|
|
14516
|
-
5,
|
|
14517
|
-
5,
|
|
14518
|
-
5,
|
|
14519
|
-
5,
|
|
14520
|
-
5,
|
|
14521
|
-
5,
|
|
14522
|
-
5,
|
|
14523
|
-
5,
|
|
14524
|
-
5,
|
|
14525
|
-
5,
|
|
14526
|
-
5,
|
|
14527
|
-
5,
|
|
14528
|
-
5,
|
|
14529
|
-
5,
|
|
14530
|
-
5,
|
|
14531
|
-
5
|
|
14532
|
-
], se = [
|
|
14533
|
-
0,
|
|
14534
|
-
0,
|
|
14535
|
-
33554432,
|
|
14536
|
-
43046721,
|
|
14537
|
-
16777216,
|
|
14538
|
-
48828125,
|
|
14539
|
-
60466176,
|
|
14540
|
-
40353607,
|
|
14541
|
-
16777216,
|
|
14542
|
-
43046721,
|
|
14543
|
-
1e7,
|
|
14544
|
-
19487171,
|
|
14545
|
-
35831808,
|
|
14546
|
-
62748517,
|
|
14547
|
-
7529536,
|
|
14548
|
-
11390625,
|
|
14549
|
-
16777216,
|
|
14550
|
-
24137569,
|
|
14551
|
-
34012224,
|
|
14552
|
-
47045881,
|
|
14553
|
-
64e6,
|
|
14554
|
-
4084101,
|
|
14555
|
-
5153632,
|
|
14556
|
-
6436343,
|
|
14557
|
-
7962624,
|
|
14558
|
-
9765625,
|
|
14559
|
-
11881376,
|
|
14560
|
-
14348907,
|
|
14561
|
-
17210368,
|
|
14562
|
-
20511149,
|
|
14563
|
-
243e5,
|
|
14564
|
-
28629151,
|
|
14565
|
-
33554432,
|
|
14566
|
-
39135393,
|
|
14567
|
-
45435424,
|
|
14568
|
-
52521875,
|
|
14569
|
-
60466176
|
|
14570
|
-
];
|
|
14571
|
-
p.prototype.toString = function(E, Y) {
|
|
14572
|
-
E = E || 10, Y = Y | 0 || 1;
|
|
14573
|
-
var q;
|
|
14574
|
-
if (E === 16 || E === "hex") {
|
|
14575
|
-
q = "";
|
|
14576
|
-
for (var Q = 0, ae = 0, te = 0; te < this.length; te++) {
|
|
14577
|
-
var B = this.words[te], k = ((B << Q | ae) & 16777215).toString(16);
|
|
14578
|
-
ae = B >>> 24 - Q & 16777215, Q += 2, Q >= 26 && (Q -= 26, te--), ae !== 0 || te !== this.length - 1 ? q = S[6 - k.length] + k + q : q = k + q;
|
|
14579
|
-
}
|
|
14580
|
-
for (ae !== 0 && (q = ae.toString(16) + q); q.length % Y !== 0; )
|
|
14581
|
-
q = "0" + q;
|
|
14582
|
-
return this.negative !== 0 && (q = "-" + q), q;
|
|
14583
|
-
}
|
|
14584
|
-
if (E === (E | 0) && E >= 2 && E <= 36) {
|
|
14585
|
-
var ie = fe[E], pe = se[E];
|
|
14586
|
-
q = "";
|
|
14587
|
-
var ge = this.clone();
|
|
14588
|
-
for (ge.negative = 0; !ge.isZero(); ) {
|
|
14589
|
-
var be = ge.modrn(pe).toString(E);
|
|
14590
|
-
ge = ge.idivn(pe), ge.isZero() ? q = be + q : q = S[ie - be.length] + be + q;
|
|
14591
|
-
}
|
|
14592
|
-
for (this.isZero() && (q = "0" + q); q.length % Y !== 0; )
|
|
14593
|
-
q = "0" + q;
|
|
14594
|
-
return this.negative !== 0 && (q = "-" + q), q;
|
|
14595
|
-
}
|
|
14596
|
-
c(!1, "Base should be between 2 and 36");
|
|
14597
|
-
}, p.prototype.toNumber = function() {
|
|
14598
|
-
var E = this.words[0];
|
|
14599
|
-
return this.length === 2 ? E += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? E += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && c(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -E : E;
|
|
14600
|
-
}, p.prototype.toJSON = function() {
|
|
14601
|
-
return this.toString(16, 2);
|
|
14602
|
-
}, h && (p.prototype.toBuffer = function(E, Y) {
|
|
14603
|
-
return this.toArrayLike(h, E, Y);
|
|
14604
|
-
}), p.prototype.toArray = function(E, Y) {
|
|
14605
|
-
return this.toArrayLike(Array, E, Y);
|
|
14606
|
-
};
|
|
14607
|
-
var F = function(E, Y) {
|
|
14608
|
-
return E.allocUnsafe ? E.allocUnsafe(Y) : new E(Y);
|
|
14609
|
-
};
|
|
14610
|
-
p.prototype.toArrayLike = function(E, Y, q) {
|
|
14611
|
-
this._strip();
|
|
14612
|
-
var Q = this.byteLength(), ae = q || Math.max(1, Q);
|
|
14613
|
-
c(Q <= ae, "byte array longer than desired length"), c(ae > 0, "Requested array length <= 0");
|
|
14614
|
-
var te = F(E, ae), B = Y === "le" ? "LE" : "BE";
|
|
14615
|
-
return this["_toArrayLike" + B](te, Q), te;
|
|
14616
|
-
}, p.prototype._toArrayLikeLE = function(E, Y) {
|
|
14617
|
-
for (var q = 0, Q = 0, ae = 0, te = 0; ae < this.length; ae++) {
|
|
14618
|
-
var B = this.words[ae] << te | Q;
|
|
14619
|
-
E[q++] = B & 255, q < E.length && (E[q++] = B >> 8 & 255), q < E.length && (E[q++] = B >> 16 & 255), te === 6 ? (q < E.length && (E[q++] = B >> 24 & 255), Q = 0, te = 0) : (Q = B >>> 24, te += 2);
|
|
14620
|
-
}
|
|
14621
|
-
if (q < E.length)
|
|
14622
|
-
for (E[q++] = Q; q < E.length; )
|
|
14623
|
-
E[q++] = 0;
|
|
14624
|
-
}, p.prototype._toArrayLikeBE = function(E, Y) {
|
|
14625
|
-
for (var q = E.length - 1, Q = 0, ae = 0, te = 0; ae < this.length; ae++) {
|
|
14626
|
-
var B = this.words[ae] << te | Q;
|
|
14627
|
-
E[q--] = B & 255, q >= 0 && (E[q--] = B >> 8 & 255), q >= 0 && (E[q--] = B >> 16 & 255), te === 6 ? (q >= 0 && (E[q--] = B >> 24 & 255), Q = 0, te = 0) : (Q = B >>> 24, te += 2);
|
|
14628
|
-
}
|
|
14629
|
-
if (q >= 0)
|
|
14630
|
-
for (E[q--] = Q; q >= 0; )
|
|
14631
|
-
E[q--] = 0;
|
|
14632
|
-
}, Math.clz32 ? p.prototype._countBits = function(E) {
|
|
14633
|
-
return 32 - Math.clz32(E);
|
|
14634
|
-
} : p.prototype._countBits = function(E) {
|
|
14635
|
-
var Y = E, q = 0;
|
|
14636
|
-
return Y >= 4096 && (q += 13, Y >>>= 13), Y >= 64 && (q += 7, Y >>>= 7), Y >= 8 && (q += 4, Y >>>= 4), Y >= 2 && (q += 2, Y >>>= 2), q + Y;
|
|
14637
|
-
}, p.prototype._zeroBits = function(E) {
|
|
14638
|
-
if (E === 0)
|
|
14639
|
-
return 26;
|
|
14640
|
-
var Y = E, q = 0;
|
|
14641
|
-
return Y & 8191 || (q += 13, Y >>>= 13), Y & 127 || (q += 7, Y >>>= 7), Y & 15 || (q += 4, Y >>>= 4), Y & 3 || (q += 2, Y >>>= 2), Y & 1 || q++, q;
|
|
14642
|
-
}, p.prototype.bitLength = function() {
|
|
14643
|
-
var E = this.words[this.length - 1], Y = this._countBits(E);
|
|
14644
|
-
return (this.length - 1) * 26 + Y;
|
|
14645
|
-
};
|
|
14646
|
-
function Z(w) {
|
|
14647
|
-
for (var E = new Array(w.bitLength()), Y = 0; Y < E.length; Y++) {
|
|
14648
|
-
var q = Y / 26 | 0, Q = Y % 26;
|
|
14649
|
-
E[Y] = w.words[q] >>> Q & 1;
|
|
14650
|
-
}
|
|
14651
|
-
return E;
|
|
14652
|
-
}
|
|
14653
|
-
p.prototype.zeroBits = function() {
|
|
14654
|
-
if (this.isZero())
|
|
14655
|
-
return 0;
|
|
14656
|
-
for (var E = 0, Y = 0; Y < this.length; Y++) {
|
|
14657
|
-
var q = this._zeroBits(this.words[Y]);
|
|
14658
|
-
if (E += q, q !== 26)
|
|
14659
|
-
break;
|
|
14660
|
-
}
|
|
14661
|
-
return E;
|
|
14662
|
-
}, p.prototype.byteLength = function() {
|
|
14663
|
-
return Math.ceil(this.bitLength() / 8);
|
|
14664
|
-
}, p.prototype.toTwos = function(E) {
|
|
14665
|
-
return this.negative !== 0 ? this.abs().inotn(E).iaddn(1) : this.clone();
|
|
14666
|
-
}, p.prototype.fromTwos = function(E) {
|
|
14667
|
-
return this.testn(E - 1) ? this.notn(E).iaddn(1).ineg() : this.clone();
|
|
14668
|
-
}, p.prototype.isNeg = function() {
|
|
14669
|
-
return this.negative !== 0;
|
|
14670
|
-
}, p.prototype.neg = function() {
|
|
14671
|
-
return this.clone().ineg();
|
|
14672
|
-
}, p.prototype.ineg = function() {
|
|
14673
|
-
return this.isZero() || (this.negative ^= 1), this;
|
|
14674
|
-
}, p.prototype.iuor = function(E) {
|
|
14675
|
-
for (; this.length < E.length; )
|
|
14676
|
-
this.words[this.length++] = 0;
|
|
14677
|
-
for (var Y = 0; Y < E.length; Y++)
|
|
14678
|
-
this.words[Y] = this.words[Y] | E.words[Y];
|
|
14679
|
-
return this._strip();
|
|
14680
|
-
}, p.prototype.ior = function(E) {
|
|
14681
|
-
return c((this.negative | E.negative) === 0), this.iuor(E);
|
|
14682
|
-
}, p.prototype.or = function(E) {
|
|
14683
|
-
return this.length > E.length ? this.clone().ior(E) : E.clone().ior(this);
|
|
14684
|
-
}, p.prototype.uor = function(E) {
|
|
14685
|
-
return this.length > E.length ? this.clone().iuor(E) : E.clone().iuor(this);
|
|
14686
|
-
}, p.prototype.iuand = function(E) {
|
|
14687
|
-
var Y;
|
|
14688
|
-
this.length > E.length ? Y = E : Y = this;
|
|
14689
|
-
for (var q = 0; q < Y.length; q++)
|
|
14690
|
-
this.words[q] = this.words[q] & E.words[q];
|
|
14691
|
-
return this.length = Y.length, this._strip();
|
|
14692
|
-
}, p.prototype.iand = function(E) {
|
|
14693
|
-
return c((this.negative | E.negative) === 0), this.iuand(E);
|
|
14694
|
-
}, p.prototype.and = function(E) {
|
|
14695
|
-
return this.length > E.length ? this.clone().iand(E) : E.clone().iand(this);
|
|
14696
|
-
}, p.prototype.uand = function(E) {
|
|
14697
|
-
return this.length > E.length ? this.clone().iuand(E) : E.clone().iuand(this);
|
|
14698
|
-
}, p.prototype.iuxor = function(E) {
|
|
14699
|
-
var Y, q;
|
|
14700
|
-
this.length > E.length ? (Y = this, q = E) : (Y = E, q = this);
|
|
14701
|
-
for (var Q = 0; Q < q.length; Q++)
|
|
14702
|
-
this.words[Q] = Y.words[Q] ^ q.words[Q];
|
|
14703
|
-
if (this !== Y)
|
|
14704
|
-
for (; Q < Y.length; Q++)
|
|
14705
|
-
this.words[Q] = Y.words[Q];
|
|
14706
|
-
return this.length = Y.length, this._strip();
|
|
14707
|
-
}, p.prototype.ixor = function(E) {
|
|
14708
|
-
return c((this.negative | E.negative) === 0), this.iuxor(E);
|
|
14709
|
-
}, p.prototype.xor = function(E) {
|
|
14710
|
-
return this.length > E.length ? this.clone().ixor(E) : E.clone().ixor(this);
|
|
14711
|
-
}, p.prototype.uxor = function(E) {
|
|
14712
|
-
return this.length > E.length ? this.clone().iuxor(E) : E.clone().iuxor(this);
|
|
14713
|
-
}, p.prototype.inotn = function(E) {
|
|
14714
|
-
c(typeof E == "number" && E >= 0);
|
|
14715
|
-
var Y = Math.ceil(E / 26) | 0, q = E % 26;
|
|
14716
|
-
this._expand(Y), q > 0 && Y--;
|
|
14717
|
-
for (var Q = 0; Q < Y; Q++)
|
|
14718
|
-
this.words[Q] = ~this.words[Q] & 67108863;
|
|
14719
|
-
return q > 0 && (this.words[Q] = ~this.words[Q] & 67108863 >> 26 - q), this._strip();
|
|
14720
|
-
}, p.prototype.notn = function(E) {
|
|
14721
|
-
return this.clone().inotn(E);
|
|
14722
|
-
}, p.prototype.setn = function(E, Y) {
|
|
14723
|
-
c(typeof E == "number" && E >= 0);
|
|
14724
|
-
var q = E / 26 | 0, Q = E % 26;
|
|
14725
|
-
return this._expand(q + 1), Y ? this.words[q] = this.words[q] | 1 << Q : this.words[q] = this.words[q] & ~(1 << Q), this._strip();
|
|
14726
|
-
}, p.prototype.iadd = function(E) {
|
|
14727
|
-
var Y;
|
|
14728
|
-
if (this.negative !== 0 && E.negative === 0)
|
|
14729
|
-
return this.negative = 0, Y = this.isub(E), this.negative ^= 1, this._normSign();
|
|
14730
|
-
if (this.negative === 0 && E.negative !== 0)
|
|
14731
|
-
return E.negative = 0, Y = this.isub(E), E.negative = 1, Y._normSign();
|
|
14732
|
-
var q, Q;
|
|
14733
|
-
this.length > E.length ? (q = this, Q = E) : (q = E, Q = this);
|
|
14734
|
-
for (var ae = 0, te = 0; te < Q.length; te++)
|
|
14735
|
-
Y = (q.words[te] | 0) + (Q.words[te] | 0) + ae, this.words[te] = Y & 67108863, ae = Y >>> 26;
|
|
14736
|
-
for (; ae !== 0 && te < q.length; te++)
|
|
14737
|
-
Y = (q.words[te] | 0) + ae, this.words[te] = Y & 67108863, ae = Y >>> 26;
|
|
14738
|
-
if (this.length = q.length, ae !== 0)
|
|
14739
|
-
this.words[this.length] = ae, this.length++;
|
|
14740
|
-
else if (q !== this)
|
|
14741
|
-
for (; te < q.length; te++)
|
|
14742
|
-
this.words[te] = q.words[te];
|
|
14743
|
-
return this;
|
|
14744
|
-
}, p.prototype.add = function(E) {
|
|
14745
|
-
var Y;
|
|
14746
|
-
return E.negative !== 0 && this.negative === 0 ? (E.negative = 0, Y = this.sub(E), E.negative ^= 1, Y) : E.negative === 0 && this.negative !== 0 ? (this.negative = 0, Y = E.sub(this), this.negative = 1, Y) : this.length > E.length ? this.clone().iadd(E) : E.clone().iadd(this);
|
|
14747
|
-
}, p.prototype.isub = function(E) {
|
|
14748
|
-
if (E.negative !== 0) {
|
|
14749
|
-
E.negative = 0;
|
|
14750
|
-
var Y = this.iadd(E);
|
|
14751
|
-
return E.negative = 1, Y._normSign();
|
|
14752
|
-
} else if (this.negative !== 0)
|
|
14753
|
-
return this.negative = 0, this.iadd(E), this.negative = 1, this._normSign();
|
|
14754
|
-
var q = this.cmp(E);
|
|
14755
|
-
if (q === 0)
|
|
14756
|
-
return this.negative = 0, this.length = 1, this.words[0] = 0, this;
|
|
14757
|
-
var Q, ae;
|
|
14758
|
-
q > 0 ? (Q = this, ae = E) : (Q = E, ae = this);
|
|
14759
|
-
for (var te = 0, B = 0; B < ae.length; B++)
|
|
14760
|
-
Y = (Q.words[B] | 0) - (ae.words[B] | 0) + te, te = Y >> 26, this.words[B] = Y & 67108863;
|
|
14761
|
-
for (; te !== 0 && B < Q.length; B++)
|
|
14762
|
-
Y = (Q.words[B] | 0) + te, te = Y >> 26, this.words[B] = Y & 67108863;
|
|
14763
|
-
if (te === 0 && B < Q.length && Q !== this)
|
|
14764
|
-
for (; B < Q.length; B++)
|
|
14765
|
-
this.words[B] = Q.words[B];
|
|
14766
|
-
return this.length = Math.max(this.length, B), Q !== this && (this.negative = 1), this._strip();
|
|
14767
|
-
}, p.prototype.sub = function(E) {
|
|
14768
|
-
return this.clone().isub(E);
|
|
14769
|
-
};
|
|
14770
|
-
function $(w, E, Y) {
|
|
14771
|
-
Y.negative = E.negative ^ w.negative;
|
|
14772
|
-
var q = w.length + E.length | 0;
|
|
14773
|
-
Y.length = q, q = q - 1 | 0;
|
|
14774
|
-
var Q = w.words[0] | 0, ae = E.words[0] | 0, te = Q * ae, B = te & 67108863, k = te / 67108864 | 0;
|
|
14775
|
-
Y.words[0] = B;
|
|
14776
|
-
for (var ie = 1; ie < q; ie++) {
|
|
14777
|
-
for (var pe = k >>> 26, ge = k & 67108863, be = Math.min(ie, E.length - 1), ye = Math.max(0, ie - w.length + 1); ye <= be; ye++) {
|
|
14778
|
-
var Fe = ie - ye | 0;
|
|
14779
|
-
Q = w.words[Fe] | 0, ae = E.words[ye] | 0, te = Q * ae + ge, pe += te / 67108864 | 0, ge = te & 67108863;
|
|
14780
|
-
}
|
|
14781
|
-
Y.words[ie] = ge | 0, k = pe | 0;
|
|
14782
|
-
}
|
|
14783
|
-
return k !== 0 ? Y.words[ie] = k | 0 : Y.length--, Y._strip();
|
|
14784
|
-
}
|
|
14785
|
-
var O = function(E, Y, q) {
|
|
14786
|
-
var Q = E.words, ae = Y.words, te = q.words, B = 0, k, ie, pe, ge = Q[0] | 0, be = ge & 8191, ye = ge >>> 13, Fe = Q[1] | 0, Te = Fe & 8191, aa = Fe >>> 13, ra = Q[2] | 0, Ze = ra & 8191, Aa = ra >>> 13, Ge = Q[3] | 0, He = Ge & 8191, Qa = Ge >>> 13, Ce = Q[4] | 0, Ne = Ce & 8191, qe = Ce >>> 13, la = Q[5] | 0, he = la & 8191, Ta = la >>> 13, e0 = Q[6] | 0, q0 = e0 & 8191, Ka = e0 >>> 13, Za = Q[7] | 0, G0 = Za & 8191, Q0 = Za >>> 13, U0 = Q[8] | 0, dd = U0 & 8191, X0 = U0 >>> 13, j0 = Q[9] | 0, Ft = j0 & 8191, E0 = j0 >>> 13, ua = ae[0] | 0, ma = ua & 8191, g0 = ua >>> 13, ve = ae[1] | 0, We = ve & 8191, ca = ve >>> 13, f0 = ae[2] | 0, Wa = f0 & 8191, r0 = f0 >>> 13, $0 = ae[3] | 0, At = $0 & 8191, H0 = $0 >>> 13, dt = ae[4] | 0, zt = dt & 8191, K0 = dt >>> 13, it = ae[5] | 0, pd = it & 8191, rt = it >>> 13, bt = ae[6] | 0, hd = bt & 8191, et = bt >>> 13, _t = ae[7] | 0, Ld = _t & 8191, Ct = _t >>> 13, Jt = ae[8] | 0, Yd = Jt & 8191, oa = Jt >>> 13, Gt = ae[9] | 0, fa = Gt & 8191, ha = Gt >>> 13;
|
|
14787
|
-
q.negative = E.negative ^ Y.negative, q.length = 19, k = Math.imul(be, ma), ie = Math.imul(be, g0), ie = ie + Math.imul(ye, ma) | 0, pe = Math.imul(ye, g0);
|
|
14788
|
-
var Ra = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14789
|
-
B = (pe + (ie >>> 13) | 0) + (Ra >>> 26) | 0, Ra &= 67108863, k = Math.imul(Te, ma), ie = Math.imul(Te, g0), ie = ie + Math.imul(aa, ma) | 0, pe = Math.imul(aa, g0), k = k + Math.imul(be, We) | 0, ie = ie + Math.imul(be, ca) | 0, ie = ie + Math.imul(ye, We) | 0, pe = pe + Math.imul(ye, ca) | 0;
|
|
14790
|
-
var Ha = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14791
|
-
B = (pe + (ie >>> 13) | 0) + (Ha >>> 26) | 0, Ha &= 67108863, k = Math.imul(Ze, ma), ie = Math.imul(Ze, g0), ie = ie + Math.imul(Aa, ma) | 0, pe = Math.imul(Aa, g0), k = k + Math.imul(Te, We) | 0, ie = ie + Math.imul(Te, ca) | 0, ie = ie + Math.imul(aa, We) | 0, pe = pe + Math.imul(aa, ca) | 0, k = k + Math.imul(be, Wa) | 0, ie = ie + Math.imul(be, r0) | 0, ie = ie + Math.imul(ye, Wa) | 0, pe = pe + Math.imul(ye, r0) | 0;
|
|
14792
|
-
var Xa = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14793
|
-
B = (pe + (ie >>> 13) | 0) + (Xa >>> 26) | 0, Xa &= 67108863, k = Math.imul(He, ma), ie = Math.imul(He, g0), ie = ie + Math.imul(Qa, ma) | 0, pe = Math.imul(Qa, g0), k = k + Math.imul(Ze, We) | 0, ie = ie + Math.imul(Ze, ca) | 0, ie = ie + Math.imul(Aa, We) | 0, pe = pe + Math.imul(Aa, ca) | 0, k = k + Math.imul(Te, Wa) | 0, ie = ie + Math.imul(Te, r0) | 0, ie = ie + Math.imul(aa, Wa) | 0, pe = pe + Math.imul(aa, r0) | 0, k = k + Math.imul(be, At) | 0, ie = ie + Math.imul(be, H0) | 0, ie = ie + Math.imul(ye, At) | 0, pe = pe + Math.imul(ye, H0) | 0;
|
|
14794
|
-
var _0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14795
|
-
B = (pe + (ie >>> 13) | 0) + (_0 >>> 26) | 0, _0 &= 67108863, k = Math.imul(Ne, ma), ie = Math.imul(Ne, g0), ie = ie + Math.imul(qe, ma) | 0, pe = Math.imul(qe, g0), k = k + Math.imul(He, We) | 0, ie = ie + Math.imul(He, ca) | 0, ie = ie + Math.imul(Qa, We) | 0, pe = pe + Math.imul(Qa, ca) | 0, k = k + Math.imul(Ze, Wa) | 0, ie = ie + Math.imul(Ze, r0) | 0, ie = ie + Math.imul(Aa, Wa) | 0, pe = pe + Math.imul(Aa, r0) | 0, k = k + Math.imul(Te, At) | 0, ie = ie + Math.imul(Te, H0) | 0, ie = ie + Math.imul(aa, At) | 0, pe = pe + Math.imul(aa, H0) | 0, k = k + Math.imul(be, zt) | 0, ie = ie + Math.imul(be, K0) | 0, ie = ie + Math.imul(ye, zt) | 0, pe = pe + Math.imul(ye, K0) | 0;
|
|
14796
|
-
var O0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14797
|
-
B = (pe + (ie >>> 13) | 0) + (O0 >>> 26) | 0, O0 &= 67108863, k = Math.imul(he, ma), ie = Math.imul(he, g0), ie = ie + Math.imul(Ta, ma) | 0, pe = Math.imul(Ta, g0), k = k + Math.imul(Ne, We) | 0, ie = ie + Math.imul(Ne, ca) | 0, ie = ie + Math.imul(qe, We) | 0, pe = pe + Math.imul(qe, ca) | 0, k = k + Math.imul(He, Wa) | 0, ie = ie + Math.imul(He, r0) | 0, ie = ie + Math.imul(Qa, Wa) | 0, pe = pe + Math.imul(Qa, r0) | 0, k = k + Math.imul(Ze, At) | 0, ie = ie + Math.imul(Ze, H0) | 0, ie = ie + Math.imul(Aa, At) | 0, pe = pe + Math.imul(Aa, H0) | 0, k = k + Math.imul(Te, zt) | 0, ie = ie + Math.imul(Te, K0) | 0, ie = ie + Math.imul(aa, zt) | 0, pe = pe + Math.imul(aa, K0) | 0, k = k + Math.imul(be, pd) | 0, ie = ie + Math.imul(be, rt) | 0, ie = ie + Math.imul(ye, pd) | 0, pe = pe + Math.imul(ye, rt) | 0;
|
|
14798
|
-
var z0 = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14799
|
-
B = (pe + (ie >>> 13) | 0) + (z0 >>> 26) | 0, z0 &= 67108863, k = Math.imul(q0, ma), ie = Math.imul(q0, g0), ie = ie + Math.imul(Ka, ma) | 0, pe = Math.imul(Ka, g0), k = k + Math.imul(he, We) | 0, ie = ie + Math.imul(he, ca) | 0, ie = ie + Math.imul(Ta, We) | 0, pe = pe + Math.imul(Ta, ca) | 0, k = k + Math.imul(Ne, Wa) | 0, ie = ie + Math.imul(Ne, r0) | 0, ie = ie + Math.imul(qe, Wa) | 0, pe = pe + Math.imul(qe, r0) | 0, k = k + Math.imul(He, At) | 0, ie = ie + Math.imul(He, H0) | 0, ie = ie + Math.imul(Qa, At) | 0, pe = pe + Math.imul(Qa, H0) | 0, k = k + Math.imul(Ze, zt) | 0, ie = ie + Math.imul(Ze, K0) | 0, ie = ie + Math.imul(Aa, zt) | 0, pe = pe + Math.imul(Aa, K0) | 0, k = k + Math.imul(Te, pd) | 0, ie = ie + Math.imul(Te, rt) | 0, ie = ie + Math.imul(aa, pd) | 0, pe = pe + Math.imul(aa, rt) | 0, k = k + Math.imul(be, hd) | 0, ie = ie + Math.imul(be, et) | 0, ie = ie + Math.imul(ye, hd) | 0, pe = pe + Math.imul(ye, et) | 0;
|
|
14800
|
-
var It = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14801
|
-
B = (pe + (ie >>> 13) | 0) + (It >>> 26) | 0, It &= 67108863, k = Math.imul(G0, ma), ie = Math.imul(G0, g0), ie = ie + Math.imul(Q0, ma) | 0, pe = Math.imul(Q0, g0), k = k + Math.imul(q0, We) | 0, ie = ie + Math.imul(q0, ca) | 0, ie = ie + Math.imul(Ka, We) | 0, pe = pe + Math.imul(Ka, ca) | 0, k = k + Math.imul(he, Wa) | 0, ie = ie + Math.imul(he, r0) | 0, ie = ie + Math.imul(Ta, Wa) | 0, pe = pe + Math.imul(Ta, r0) | 0, k = k + Math.imul(Ne, At) | 0, ie = ie + Math.imul(Ne, H0) | 0, ie = ie + Math.imul(qe, At) | 0, pe = pe + Math.imul(qe, H0) | 0, k = k + Math.imul(He, zt) | 0, ie = ie + Math.imul(He, K0) | 0, ie = ie + Math.imul(Qa, zt) | 0, pe = pe + Math.imul(Qa, K0) | 0, k = k + Math.imul(Ze, pd) | 0, ie = ie + Math.imul(Ze, rt) | 0, ie = ie + Math.imul(Aa, pd) | 0, pe = pe + Math.imul(Aa, rt) | 0, k = k + Math.imul(Te, hd) | 0, ie = ie + Math.imul(Te, et) | 0, ie = ie + Math.imul(aa, hd) | 0, pe = pe + Math.imul(aa, et) | 0, k = k + Math.imul(be, Ld) | 0, ie = ie + Math.imul(be, Ct) | 0, ie = ie + Math.imul(ye, Ld) | 0, pe = pe + Math.imul(ye, Ct) | 0;
|
|
14802
|
-
var Bt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14803
|
-
B = (pe + (ie >>> 13) | 0) + (Bt >>> 26) | 0, Bt &= 67108863, k = Math.imul(dd, ma), ie = Math.imul(dd, g0), ie = ie + Math.imul(X0, ma) | 0, pe = Math.imul(X0, g0), k = k + Math.imul(G0, We) | 0, ie = ie + Math.imul(G0, ca) | 0, ie = ie + Math.imul(Q0, We) | 0, pe = pe + Math.imul(Q0, ca) | 0, k = k + Math.imul(q0, Wa) | 0, ie = ie + Math.imul(q0, r0) | 0, ie = ie + Math.imul(Ka, Wa) | 0, pe = pe + Math.imul(Ka, r0) | 0, k = k + Math.imul(he, At) | 0, ie = ie + Math.imul(he, H0) | 0, ie = ie + Math.imul(Ta, At) | 0, pe = pe + Math.imul(Ta, H0) | 0, k = k + Math.imul(Ne, zt) | 0, ie = ie + Math.imul(Ne, K0) | 0, ie = ie + Math.imul(qe, zt) | 0, pe = pe + Math.imul(qe, K0) | 0, k = k + Math.imul(He, pd) | 0, ie = ie + Math.imul(He, rt) | 0, ie = ie + Math.imul(Qa, pd) | 0, pe = pe + Math.imul(Qa, rt) | 0, k = k + Math.imul(Ze, hd) | 0, ie = ie + Math.imul(Ze, et) | 0, ie = ie + Math.imul(Aa, hd) | 0, pe = pe + Math.imul(Aa, et) | 0, k = k + Math.imul(Te, Ld) | 0, ie = ie + Math.imul(Te, Ct) | 0, ie = ie + Math.imul(aa, Ld) | 0, pe = pe + Math.imul(aa, Ct) | 0, k = k + Math.imul(be, Yd) | 0, ie = ie + Math.imul(be, oa) | 0, ie = ie + Math.imul(ye, Yd) | 0, pe = pe + Math.imul(ye, oa) | 0;
|
|
14804
|
-
var Kt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14805
|
-
B = (pe + (ie >>> 13) | 0) + (Kt >>> 26) | 0, Kt &= 67108863, k = Math.imul(Ft, ma), ie = Math.imul(Ft, g0), ie = ie + Math.imul(E0, ma) | 0, pe = Math.imul(E0, g0), k = k + Math.imul(dd, We) | 0, ie = ie + Math.imul(dd, ca) | 0, ie = ie + Math.imul(X0, We) | 0, pe = pe + Math.imul(X0, ca) | 0, k = k + Math.imul(G0, Wa) | 0, ie = ie + Math.imul(G0, r0) | 0, ie = ie + Math.imul(Q0, Wa) | 0, pe = pe + Math.imul(Q0, r0) | 0, k = k + Math.imul(q0, At) | 0, ie = ie + Math.imul(q0, H0) | 0, ie = ie + Math.imul(Ka, At) | 0, pe = pe + Math.imul(Ka, H0) | 0, k = k + Math.imul(he, zt) | 0, ie = ie + Math.imul(he, K0) | 0, ie = ie + Math.imul(Ta, zt) | 0, pe = pe + Math.imul(Ta, K0) | 0, k = k + Math.imul(Ne, pd) | 0, ie = ie + Math.imul(Ne, rt) | 0, ie = ie + Math.imul(qe, pd) | 0, pe = pe + Math.imul(qe, rt) | 0, k = k + Math.imul(He, hd) | 0, ie = ie + Math.imul(He, et) | 0, ie = ie + Math.imul(Qa, hd) | 0, pe = pe + Math.imul(Qa, et) | 0, k = k + Math.imul(Ze, Ld) | 0, ie = ie + Math.imul(Ze, Ct) | 0, ie = ie + Math.imul(Aa, Ld) | 0, pe = pe + Math.imul(Aa, Ct) | 0, k = k + Math.imul(Te, Yd) | 0, ie = ie + Math.imul(Te, oa) | 0, ie = ie + Math.imul(aa, Yd) | 0, pe = pe + Math.imul(aa, oa) | 0, k = k + Math.imul(be, fa) | 0, ie = ie + Math.imul(be, ha) | 0, ie = ie + Math.imul(ye, fa) | 0, pe = pe + Math.imul(ye, ha) | 0;
|
|
14806
|
-
var Ed = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14807
|
-
B = (pe + (ie >>> 13) | 0) + (Ed >>> 26) | 0, Ed &= 67108863, k = Math.imul(Ft, We), ie = Math.imul(Ft, ca), ie = ie + Math.imul(E0, We) | 0, pe = Math.imul(E0, ca), k = k + Math.imul(dd, Wa) | 0, ie = ie + Math.imul(dd, r0) | 0, ie = ie + Math.imul(X0, Wa) | 0, pe = pe + Math.imul(X0, r0) | 0, k = k + Math.imul(G0, At) | 0, ie = ie + Math.imul(G0, H0) | 0, ie = ie + Math.imul(Q0, At) | 0, pe = pe + Math.imul(Q0, H0) | 0, k = k + Math.imul(q0, zt) | 0, ie = ie + Math.imul(q0, K0) | 0, ie = ie + Math.imul(Ka, zt) | 0, pe = pe + Math.imul(Ka, K0) | 0, k = k + Math.imul(he, pd) | 0, ie = ie + Math.imul(he, rt) | 0, ie = ie + Math.imul(Ta, pd) | 0, pe = pe + Math.imul(Ta, rt) | 0, k = k + Math.imul(Ne, hd) | 0, ie = ie + Math.imul(Ne, et) | 0, ie = ie + Math.imul(qe, hd) | 0, pe = pe + Math.imul(qe, et) | 0, k = k + Math.imul(He, Ld) | 0, ie = ie + Math.imul(He, Ct) | 0, ie = ie + Math.imul(Qa, Ld) | 0, pe = pe + Math.imul(Qa, Ct) | 0, k = k + Math.imul(Ze, Yd) | 0, ie = ie + Math.imul(Ze, oa) | 0, ie = ie + Math.imul(Aa, Yd) | 0, pe = pe + Math.imul(Aa, oa) | 0, k = k + Math.imul(Te, fa) | 0, ie = ie + Math.imul(Te, ha) | 0, ie = ie + Math.imul(aa, fa) | 0, pe = pe + Math.imul(aa, ha) | 0;
|
|
14808
|
-
var P = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14809
|
-
B = (pe + (ie >>> 13) | 0) + (P >>> 26) | 0, P &= 67108863, k = Math.imul(Ft, Wa), ie = Math.imul(Ft, r0), ie = ie + Math.imul(E0, Wa) | 0, pe = Math.imul(E0, r0), k = k + Math.imul(dd, At) | 0, ie = ie + Math.imul(dd, H0) | 0, ie = ie + Math.imul(X0, At) | 0, pe = pe + Math.imul(X0, H0) | 0, k = k + Math.imul(G0, zt) | 0, ie = ie + Math.imul(G0, K0) | 0, ie = ie + Math.imul(Q0, zt) | 0, pe = pe + Math.imul(Q0, K0) | 0, k = k + Math.imul(q0, pd) | 0, ie = ie + Math.imul(q0, rt) | 0, ie = ie + Math.imul(Ka, pd) | 0, pe = pe + Math.imul(Ka, rt) | 0, k = k + Math.imul(he, hd) | 0, ie = ie + Math.imul(he, et) | 0, ie = ie + Math.imul(Ta, hd) | 0, pe = pe + Math.imul(Ta, et) | 0, k = k + Math.imul(Ne, Ld) | 0, ie = ie + Math.imul(Ne, Ct) | 0, ie = ie + Math.imul(qe, Ld) | 0, pe = pe + Math.imul(qe, Ct) | 0, k = k + Math.imul(He, Yd) | 0, ie = ie + Math.imul(He, oa) | 0, ie = ie + Math.imul(Qa, Yd) | 0, pe = pe + Math.imul(Qa, oa) | 0, k = k + Math.imul(Ze, fa) | 0, ie = ie + Math.imul(Ze, ha) | 0, ie = ie + Math.imul(Aa, fa) | 0, pe = pe + Math.imul(Aa, ha) | 0;
|
|
14810
|
-
var t = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14811
|
-
B = (pe + (ie >>> 13) | 0) + (t >>> 26) | 0, t &= 67108863, k = Math.imul(Ft, At), ie = Math.imul(Ft, H0), ie = ie + Math.imul(E0, At) | 0, pe = Math.imul(E0, H0), k = k + Math.imul(dd, zt) | 0, ie = ie + Math.imul(dd, K0) | 0, ie = ie + Math.imul(X0, zt) | 0, pe = pe + Math.imul(X0, K0) | 0, k = k + Math.imul(G0, pd) | 0, ie = ie + Math.imul(G0, rt) | 0, ie = ie + Math.imul(Q0, pd) | 0, pe = pe + Math.imul(Q0, rt) | 0, k = k + Math.imul(q0, hd) | 0, ie = ie + Math.imul(q0, et) | 0, ie = ie + Math.imul(Ka, hd) | 0, pe = pe + Math.imul(Ka, et) | 0, k = k + Math.imul(he, Ld) | 0, ie = ie + Math.imul(he, Ct) | 0, ie = ie + Math.imul(Ta, Ld) | 0, pe = pe + Math.imul(Ta, Ct) | 0, k = k + Math.imul(Ne, Yd) | 0, ie = ie + Math.imul(Ne, oa) | 0, ie = ie + Math.imul(qe, Yd) | 0, pe = pe + Math.imul(qe, oa) | 0, k = k + Math.imul(He, fa) | 0, ie = ie + Math.imul(He, ha) | 0, ie = ie + Math.imul(Qa, fa) | 0, pe = pe + Math.imul(Qa, ha) | 0;
|
|
14812
|
-
var A = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14813
|
-
B = (pe + (ie >>> 13) | 0) + (A >>> 26) | 0, A &= 67108863, k = Math.imul(Ft, zt), ie = Math.imul(Ft, K0), ie = ie + Math.imul(E0, zt) | 0, pe = Math.imul(E0, K0), k = k + Math.imul(dd, pd) | 0, ie = ie + Math.imul(dd, rt) | 0, ie = ie + Math.imul(X0, pd) | 0, pe = pe + Math.imul(X0, rt) | 0, k = k + Math.imul(G0, hd) | 0, ie = ie + Math.imul(G0, et) | 0, ie = ie + Math.imul(Q0, hd) | 0, pe = pe + Math.imul(Q0, et) | 0, k = k + Math.imul(q0, Ld) | 0, ie = ie + Math.imul(q0, Ct) | 0, ie = ie + Math.imul(Ka, Ld) | 0, pe = pe + Math.imul(Ka, Ct) | 0, k = k + Math.imul(he, Yd) | 0, ie = ie + Math.imul(he, oa) | 0, ie = ie + Math.imul(Ta, Yd) | 0, pe = pe + Math.imul(Ta, oa) | 0, k = k + Math.imul(Ne, fa) | 0, ie = ie + Math.imul(Ne, ha) | 0, ie = ie + Math.imul(qe, fa) | 0, pe = pe + Math.imul(qe, ha) | 0;
|
|
14814
|
-
var qd = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14815
|
-
B = (pe + (ie >>> 13) | 0) + (qd >>> 26) | 0, qd &= 67108863, k = Math.imul(Ft, pd), ie = Math.imul(Ft, rt), ie = ie + Math.imul(E0, pd) | 0, pe = Math.imul(E0, rt), k = k + Math.imul(dd, hd) | 0, ie = ie + Math.imul(dd, et) | 0, ie = ie + Math.imul(X0, hd) | 0, pe = pe + Math.imul(X0, et) | 0, k = k + Math.imul(G0, Ld) | 0, ie = ie + Math.imul(G0, Ct) | 0, ie = ie + Math.imul(Q0, Ld) | 0, pe = pe + Math.imul(Q0, Ct) | 0, k = k + Math.imul(q0, Yd) | 0, ie = ie + Math.imul(q0, oa) | 0, ie = ie + Math.imul(Ka, Yd) | 0, pe = pe + Math.imul(Ka, oa) | 0, k = k + Math.imul(he, fa) | 0, ie = ie + Math.imul(he, ha) | 0, ie = ie + Math.imul(Ta, fa) | 0, pe = pe + Math.imul(Ta, ha) | 0;
|
|
14816
|
-
var wt = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14817
|
-
B = (pe + (ie >>> 13) | 0) + (wt >>> 26) | 0, wt &= 67108863, k = Math.imul(Ft, hd), ie = Math.imul(Ft, et), ie = ie + Math.imul(E0, hd) | 0, pe = Math.imul(E0, et), k = k + Math.imul(dd, Ld) | 0, ie = ie + Math.imul(dd, Ct) | 0, ie = ie + Math.imul(X0, Ld) | 0, pe = pe + Math.imul(X0, Ct) | 0, k = k + Math.imul(G0, Yd) | 0, ie = ie + Math.imul(G0, oa) | 0, ie = ie + Math.imul(Q0, Yd) | 0, pe = pe + Math.imul(Q0, oa) | 0, k = k + Math.imul(q0, fa) | 0, ie = ie + Math.imul(q0, ha) | 0, ie = ie + Math.imul(Ka, fa) | 0, pe = pe + Math.imul(Ka, ha) | 0;
|
|
14818
|
-
var Xd = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14819
|
-
B = (pe + (ie >>> 13) | 0) + (Xd >>> 26) | 0, Xd &= 67108863, k = Math.imul(Ft, Ld), ie = Math.imul(Ft, Ct), ie = ie + Math.imul(E0, Ld) | 0, pe = Math.imul(E0, Ct), k = k + Math.imul(dd, Yd) | 0, ie = ie + Math.imul(dd, oa) | 0, ie = ie + Math.imul(X0, Yd) | 0, pe = pe + Math.imul(X0, oa) | 0, k = k + Math.imul(G0, fa) | 0, ie = ie + Math.imul(G0, ha) | 0, ie = ie + Math.imul(Q0, fa) | 0, pe = pe + Math.imul(Q0, ha) | 0;
|
|
14820
|
-
var nn = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14821
|
-
B = (pe + (ie >>> 13) | 0) + (nn >>> 26) | 0, nn &= 67108863, k = Math.imul(Ft, Yd), ie = Math.imul(Ft, oa), ie = ie + Math.imul(E0, Yd) | 0, pe = Math.imul(E0, oa), k = k + Math.imul(dd, fa) | 0, ie = ie + Math.imul(dd, ha) | 0, ie = ie + Math.imul(X0, fa) | 0, pe = pe + Math.imul(X0, ha) | 0;
|
|
14822
|
-
var Vn = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14823
|
-
B = (pe + (ie >>> 13) | 0) + (Vn >>> 26) | 0, Vn &= 67108863, k = Math.imul(Ft, fa), ie = Math.imul(Ft, ha), ie = ie + Math.imul(E0, fa) | 0, pe = Math.imul(E0, ha);
|
|
14824
|
-
var Mc = (B + k | 0) + ((ie & 8191) << 13) | 0;
|
|
14825
|
-
return B = (pe + (ie >>> 13) | 0) + (Mc >>> 26) | 0, Mc &= 67108863, te[0] = Ra, te[1] = Ha, te[2] = Xa, te[3] = _0, te[4] = O0, te[5] = z0, te[6] = It, te[7] = Bt, te[8] = Kt, te[9] = Ed, te[10] = P, te[11] = t, te[12] = A, te[13] = qd, te[14] = wt, te[15] = Xd, te[16] = nn, te[17] = Vn, te[18] = Mc, B !== 0 && (te[19] = B, q.length++), q;
|
|
14826
|
-
};
|
|
14827
|
-
Math.imul || (O = $);
|
|
14828
|
-
function J(w, E, Y) {
|
|
14829
|
-
Y.negative = E.negative ^ w.negative, Y.length = w.length + E.length;
|
|
14830
|
-
for (var q = 0, Q = 0, ae = 0; ae < Y.length - 1; ae++) {
|
|
14831
|
-
var te = Q;
|
|
14832
|
-
Q = 0;
|
|
14833
|
-
for (var B = q & 67108863, k = Math.min(ae, E.length - 1), ie = Math.max(0, ae - w.length + 1); ie <= k; ie++) {
|
|
14834
|
-
var pe = ae - ie, ge = w.words[pe] | 0, be = E.words[ie] | 0, ye = ge * be, Fe = ye & 67108863;
|
|
14835
|
-
te = te + (ye / 67108864 | 0) | 0, Fe = Fe + B | 0, B = Fe & 67108863, te = te + (Fe >>> 26) | 0, Q += te >>> 26, te &= 67108863;
|
|
14836
|
-
}
|
|
14837
|
-
Y.words[ae] = B, q = te, te = Q;
|
|
14838
|
-
}
|
|
14839
|
-
return q !== 0 ? Y.words[ae] = q : Y.length--, Y._strip();
|
|
14840
|
-
}
|
|
14841
|
-
function oe(w, E, Y) {
|
|
14842
|
-
return J(w, E, Y);
|
|
14843
|
-
}
|
|
14844
|
-
p.prototype.mulTo = function(E, Y) {
|
|
14845
|
-
var q, Q = this.length + E.length;
|
|
14846
|
-
return this.length === 10 && E.length === 10 ? q = O(this, E, Y) : Q < 63 ? q = $(this, E, Y) : Q < 1024 ? q = J(this, E, Y) : q = oe(this, E, Y), q;
|
|
14847
|
-
}, p.prototype.mul = function(E) {
|
|
14848
|
-
var Y = new p(null);
|
|
14849
|
-
return Y.words = new Array(this.length + E.length), this.mulTo(E, Y);
|
|
14850
|
-
}, p.prototype.mulf = function(E) {
|
|
14851
|
-
var Y = new p(null);
|
|
14852
|
-
return Y.words = new Array(this.length + E.length), oe(this, E, Y);
|
|
14853
|
-
}, p.prototype.imul = function(E) {
|
|
14854
|
-
return this.clone().mulTo(E, this);
|
|
14855
|
-
}, p.prototype.imuln = function(E) {
|
|
14856
|
-
var Y = E < 0;
|
|
14857
|
-
Y && (E = -E), c(typeof E == "number"), c(E < 67108864);
|
|
14858
|
-
for (var q = 0, Q = 0; Q < this.length; Q++) {
|
|
14859
|
-
var ae = (this.words[Q] | 0) * E, te = (ae & 67108863) + (q & 67108863);
|
|
14860
|
-
q >>= 26, q += ae / 67108864 | 0, q += te >>> 26, this.words[Q] = te & 67108863;
|
|
14861
|
-
}
|
|
14862
|
-
return q !== 0 && (this.words[Q] = q, this.length++), Y ? this.ineg() : this;
|
|
14863
|
-
}, p.prototype.muln = function(E) {
|
|
14864
|
-
return this.clone().imuln(E);
|
|
14865
|
-
}, p.prototype.sqr = function() {
|
|
14866
|
-
return this.mul(this);
|
|
14867
|
-
}, p.prototype.isqr = function() {
|
|
14868
|
-
return this.imul(this.clone());
|
|
14869
|
-
}, p.prototype.pow = function(E) {
|
|
14870
|
-
var Y = Z(E);
|
|
14871
|
-
if (Y.length === 0)
|
|
14872
|
-
return new p(1);
|
|
14873
|
-
for (var q = this, Q = 0; Q < Y.length && Y[Q] === 0; Q++, q = q.sqr())
|
|
14874
|
-
;
|
|
14875
|
-
if (++Q < Y.length)
|
|
14876
|
-
for (var ae = q.sqr(); Q < Y.length; Q++, ae = ae.sqr())
|
|
14877
|
-
Y[Q] !== 0 && (q = q.mul(ae));
|
|
14878
|
-
return q;
|
|
14879
|
-
}, p.prototype.iushln = function(E) {
|
|
14880
|
-
c(typeof E == "number" && E >= 0);
|
|
14881
|
-
var Y = E % 26, q = (E - Y) / 26, Q = 67108863 >>> 26 - Y << 26 - Y, ae;
|
|
14882
|
-
if (Y !== 0) {
|
|
14883
|
-
var te = 0;
|
|
14884
|
-
for (ae = 0; ae < this.length; ae++) {
|
|
14885
|
-
var B = this.words[ae] & Q, k = (this.words[ae] | 0) - B << Y;
|
|
14886
|
-
this.words[ae] = k | te, te = B >>> 26 - Y;
|
|
14887
|
-
}
|
|
14888
|
-
te && (this.words[ae] = te, this.length++);
|
|
14889
|
-
}
|
|
14890
|
-
if (q !== 0) {
|
|
14891
|
-
for (ae = this.length - 1; ae >= 0; ae--)
|
|
14892
|
-
this.words[ae + q] = this.words[ae];
|
|
14893
|
-
for (ae = 0; ae < q; ae++)
|
|
14894
|
-
this.words[ae] = 0;
|
|
14895
|
-
this.length += q;
|
|
14896
|
-
}
|
|
14897
|
-
return this._strip();
|
|
14898
|
-
}, p.prototype.ishln = function(E) {
|
|
14899
|
-
return c(this.negative === 0), this.iushln(E);
|
|
14900
|
-
}, p.prototype.iushrn = function(E, Y, q) {
|
|
14901
|
-
c(typeof E == "number" && E >= 0);
|
|
14902
|
-
var Q;
|
|
14903
|
-
Y ? Q = (Y - Y % 26) / 26 : Q = 0;
|
|
14904
|
-
var ae = E % 26, te = Math.min((E - ae) / 26, this.length), B = 67108863 ^ 67108863 >>> ae << ae, k = q;
|
|
14905
|
-
if (Q -= te, Q = Math.max(0, Q), k) {
|
|
14906
|
-
for (var ie = 0; ie < te; ie++)
|
|
14907
|
-
k.words[ie] = this.words[ie];
|
|
14908
|
-
k.length = te;
|
|
14909
|
-
}
|
|
14910
|
-
if (te !== 0)
|
|
14911
|
-
if (this.length > te)
|
|
14912
|
-
for (this.length -= te, ie = 0; ie < this.length; ie++)
|
|
14913
|
-
this.words[ie] = this.words[ie + te];
|
|
14914
|
-
else
|
|
14915
|
-
this.words[0] = 0, this.length = 1;
|
|
14916
|
-
var pe = 0;
|
|
14917
|
-
for (ie = this.length - 1; ie >= 0 && (pe !== 0 || ie >= Q); ie--) {
|
|
14918
|
-
var ge = this.words[ie] | 0;
|
|
14919
|
-
this.words[ie] = pe << 26 - ae | ge >>> ae, pe = ge & B;
|
|
14920
|
-
}
|
|
14921
|
-
return k && pe !== 0 && (k.words[k.length++] = pe), this.length === 0 && (this.words[0] = 0, this.length = 1), this._strip();
|
|
14922
|
-
}, p.prototype.ishrn = function(E, Y, q) {
|
|
14923
|
-
return c(this.negative === 0), this.iushrn(E, Y, q);
|
|
14924
|
-
}, p.prototype.shln = function(E) {
|
|
14925
|
-
return this.clone().ishln(E);
|
|
14926
|
-
}, p.prototype.ushln = function(E) {
|
|
14927
|
-
return this.clone().iushln(E);
|
|
14928
|
-
}, p.prototype.shrn = function(E) {
|
|
14929
|
-
return this.clone().ishrn(E);
|
|
14930
|
-
}, p.prototype.ushrn = function(E) {
|
|
14931
|
-
return this.clone().iushrn(E);
|
|
14932
|
-
}, p.prototype.testn = function(E) {
|
|
14933
|
-
c(typeof E == "number" && E >= 0);
|
|
14934
|
-
var Y = E % 26, q = (E - Y) / 26, Q = 1 << Y;
|
|
14935
|
-
if (this.length <= q)
|
|
14936
|
-
return !1;
|
|
14937
|
-
var ae = this.words[q];
|
|
14938
|
-
return !!(ae & Q);
|
|
14939
|
-
}, p.prototype.imaskn = function(E) {
|
|
14940
|
-
c(typeof E == "number" && E >= 0);
|
|
14941
|
-
var Y = E % 26, q = (E - Y) / 26;
|
|
14942
|
-
if (c(this.negative === 0, "imaskn works only with positive numbers"), this.length <= q)
|
|
14943
|
-
return this;
|
|
14944
|
-
if (Y !== 0 && q++, this.length = Math.min(q, this.length), Y !== 0) {
|
|
14945
|
-
var Q = 67108863 ^ 67108863 >>> Y << Y;
|
|
14946
|
-
this.words[this.length - 1] &= Q;
|
|
14947
|
-
}
|
|
14948
|
-
return this._strip();
|
|
14949
|
-
}, p.prototype.maskn = function(E) {
|
|
14950
|
-
return this.clone().imaskn(E);
|
|
14951
|
-
}, p.prototype.iaddn = function(E) {
|
|
14952
|
-
return c(typeof E == "number"), c(E < 67108864), E < 0 ? this.isubn(-E) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) <= E ? (this.words[0] = E - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(E), this.negative = 1, this) : this._iaddn(E);
|
|
14953
|
-
}, p.prototype._iaddn = function(E) {
|
|
14954
|
-
this.words[0] += E;
|
|
14955
|
-
for (var Y = 0; Y < this.length && this.words[Y] >= 67108864; Y++)
|
|
14956
|
-
this.words[Y] -= 67108864, Y === this.length - 1 ? this.words[Y + 1] = 1 : this.words[Y + 1]++;
|
|
14957
|
-
return this.length = Math.max(this.length, Y + 1), this;
|
|
14958
|
-
}, p.prototype.isubn = function(E) {
|
|
14959
|
-
if (c(typeof E == "number"), c(E < 67108864), E < 0)
|
|
14960
|
-
return this.iaddn(-E);
|
|
14961
|
-
if (this.negative !== 0)
|
|
14962
|
-
return this.negative = 0, this.iaddn(E), this.negative = 1, this;
|
|
14963
|
-
if (this.words[0] -= E, this.length === 1 && this.words[0] < 0)
|
|
14964
|
-
this.words[0] = -this.words[0], this.negative = 1;
|
|
14965
|
-
else
|
|
14966
|
-
for (var Y = 0; Y < this.length && this.words[Y] < 0; Y++)
|
|
14967
|
-
this.words[Y] += 67108864, this.words[Y + 1] -= 1;
|
|
14964
|
+
for (var Y = 0; Y < this.length && this.words[Y] < 0; Y++)
|
|
14965
|
+
this.words[Y] += 67108864, this.words[Y + 1] -= 1;
|
|
14966
|
+
return this._strip();
|
|
14967
|
+
}, p.prototype.addn = function(E) {
|
|
14968
|
+
return this.clone().iaddn(E);
|
|
14969
|
+
}, p.prototype.subn = function(E) {
|
|
14970
|
+
return this.clone().isubn(E);
|
|
14971
|
+
}, p.prototype.iabs = function() {
|
|
14972
|
+
return this.negative = 0, this;
|
|
14973
|
+
}, p.prototype.abs = function() {
|
|
14974
|
+
return this.clone().iabs();
|
|
14975
|
+
}, p.prototype._ishlnsubmul = function(E, Y, q) {
|
|
14976
|
+
var Q = E.length + q, ae;
|
|
14977
|
+
this._expand(Q);
|
|
14978
|
+
var te, B = 0;
|
|
14979
|
+
for (ae = 0; ae < E.length; ae++) {
|
|
14980
|
+
te = (this.words[ae + q] | 0) + B;
|
|
14981
|
+
var k = (E.words[ae] | 0) * Y;
|
|
14982
|
+
te -= k & 67108863, B = (te >> 26) - (k / 67108864 | 0), this.words[ae + q] = te & 67108863;
|
|
14983
|
+
}
|
|
14984
|
+
for (; ae < this.length - q; ae++)
|
|
14985
|
+
te = (this.words[ae + q] | 0) + B, B = te >> 26, this.words[ae + q] = te & 67108863;
|
|
14986
|
+
if (B === 0)
|
|
14968
14987
|
return this._strip();
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
var
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
q = 26 - B, q !== 0 && (ae = ae.ushln(q), Q.iushln(q), te = ae.words[ae.length - 1] | 0);
|
|
14996
|
-
var k = Q.length - ae.length, ie;
|
|
14997
|
-
if (Y !== "mod") {
|
|
14998
|
-
ie = new p(null), ie.length = k + 1, ie.words = new Array(ie.length);
|
|
14999
|
-
for (var pe = 0; pe < ie.length; pe++)
|
|
15000
|
-
ie.words[pe] = 0;
|
|
15001
|
-
}
|
|
15002
|
-
var ge = Q.clone()._ishlnsubmul(ae, 1, k);
|
|
15003
|
-
ge.negative === 0 && (Q = ge, ie && (ie.words[k] = 1));
|
|
15004
|
-
for (var be = k - 1; be >= 0; be--) {
|
|
15005
|
-
var ye = (Q.words[ae.length + be] | 0) * 67108864 + (Q.words[ae.length + be - 1] | 0);
|
|
15006
|
-
for (ye = Math.min(ye / te | 0, 67108863), Q._ishlnsubmul(ae, ye, be); Q.negative !== 0; )
|
|
15007
|
-
ye--, Q.negative = 0, Q._ishlnsubmul(ae, 1, be), Q.isZero() || (Q.negative ^= 1);
|
|
15008
|
-
ie && (ie.words[be] = ye);
|
|
15009
|
-
}
|
|
15010
|
-
return ie && ie._strip(), Q._strip(), Y !== "div" && q !== 0 && Q.iushrn(q), {
|
|
15011
|
-
div: ie || null,
|
|
15012
|
-
mod: Q
|
|
15013
|
-
};
|
|
15014
|
-
}, p.prototype.divmod = function(E, Y, q) {
|
|
15015
|
-
if (c(!E.isZero()), this.isZero())
|
|
15016
|
-
return {
|
|
15017
|
-
div: new p(0),
|
|
15018
|
-
mod: new p(0)
|
|
15019
|
-
};
|
|
15020
|
-
var Q, ae, te;
|
|
15021
|
-
return this.negative !== 0 && E.negative === 0 ? (te = this.neg().divmod(E, Y), Y !== "mod" && (Q = te.div.neg()), Y !== "div" && (ae = te.mod.neg(), q && ae.negative !== 0 && ae.iadd(E)), {
|
|
15022
|
-
div: Q,
|
|
15023
|
-
mod: ae
|
|
15024
|
-
}) : this.negative === 0 && E.negative !== 0 ? (te = this.divmod(E.neg(), Y), Y !== "mod" && (Q = te.div.neg()), {
|
|
15025
|
-
div: Q,
|
|
15026
|
-
mod: te.mod
|
|
15027
|
-
}) : this.negative & E.negative ? (te = this.neg().divmod(E.neg(), Y), Y !== "div" && (ae = te.mod.neg(), q && ae.negative !== 0 && ae.isub(E)), {
|
|
15028
|
-
div: te.div,
|
|
15029
|
-
mod: ae
|
|
15030
|
-
}) : E.length > this.length || this.cmp(E) < 0 ? {
|
|
15031
|
-
div: new p(0),
|
|
15032
|
-
mod: this
|
|
15033
|
-
} : E.length === 1 ? Y === "div" ? {
|
|
15034
|
-
div: this.divn(E.words[0]),
|
|
15035
|
-
mod: null
|
|
15036
|
-
} : Y === "mod" ? {
|
|
15037
|
-
div: null,
|
|
15038
|
-
mod: new p(this.modrn(E.words[0]))
|
|
15039
|
-
} : {
|
|
15040
|
-
div: this.divn(E.words[0]),
|
|
15041
|
-
mod: new p(this.modrn(E.words[0]))
|
|
15042
|
-
} : this._wordDiv(E, Y);
|
|
15043
|
-
}, p.prototype.div = function(E) {
|
|
15044
|
-
return this.divmod(E, "div", !1).div;
|
|
15045
|
-
}, p.prototype.mod = function(E) {
|
|
15046
|
-
return this.divmod(E, "mod", !1).mod;
|
|
15047
|
-
}, p.prototype.umod = function(E) {
|
|
15048
|
-
return this.divmod(E, "mod", !0).mod;
|
|
15049
|
-
}, p.prototype.divRound = function(E) {
|
|
15050
|
-
var Y = this.divmod(E);
|
|
15051
|
-
if (Y.mod.isZero())
|
|
15052
|
-
return Y.div;
|
|
15053
|
-
var q = Y.div.negative !== 0 ? Y.mod.isub(E) : Y.mod, Q = E.ushrn(1), ae = E.andln(1), te = q.cmp(Q);
|
|
15054
|
-
return te < 0 || ae === 1 && te === 0 ? Y.div : Y.div.negative !== 0 ? Y.div.isubn(1) : Y.div.iaddn(1);
|
|
15055
|
-
}, p.prototype.modrn = function(E) {
|
|
15056
|
-
var Y = E < 0;
|
|
15057
|
-
Y && (E = -E), c(E <= 67108863);
|
|
15058
|
-
for (var q = (1 << 26) % E, Q = 0, ae = this.length - 1; ae >= 0; ae--)
|
|
15059
|
-
Q = (q * Q + (this.words[ae] | 0)) % E;
|
|
15060
|
-
return Y ? -Q : Q;
|
|
15061
|
-
}, p.prototype.modn = function(E) {
|
|
15062
|
-
return this.modrn(E);
|
|
15063
|
-
}, p.prototype.idivn = function(E) {
|
|
15064
|
-
var Y = E < 0;
|
|
15065
|
-
Y && (E = -E), c(E <= 67108863);
|
|
15066
|
-
for (var q = 0, Q = this.length - 1; Q >= 0; Q--) {
|
|
15067
|
-
var ae = (this.words[Q] | 0) + q * 67108864;
|
|
15068
|
-
this.words[Q] = ae / E | 0, q = ae % E;
|
|
15069
|
-
}
|
|
15070
|
-
return this._strip(), Y ? this.ineg() : this;
|
|
15071
|
-
}, p.prototype.divn = function(E) {
|
|
15072
|
-
return this.clone().idivn(E);
|
|
15073
|
-
}, p.prototype.egcd = function(E) {
|
|
15074
|
-
c(E.negative === 0), c(!E.isZero());
|
|
15075
|
-
var Y = this, q = E.clone();
|
|
15076
|
-
Y.negative !== 0 ? Y = Y.umod(E) : Y = Y.clone();
|
|
15077
|
-
for (var Q = new p(1), ae = new p(0), te = new p(0), B = new p(1), k = 0; Y.isEven() && q.isEven(); )
|
|
15078
|
-
Y.iushrn(1), q.iushrn(1), ++k;
|
|
15079
|
-
for (var ie = q.clone(), pe = Y.clone(); !Y.isZero(); ) {
|
|
15080
|
-
for (var ge = 0, be = 1; !(Y.words[0] & be) && ge < 26; ++ge, be <<= 1)
|
|
15081
|
-
;
|
|
15082
|
-
if (ge > 0)
|
|
15083
|
-
for (Y.iushrn(ge); ge-- > 0; )
|
|
15084
|
-
(Q.isOdd() || ae.isOdd()) && (Q.iadd(ie), ae.isub(pe)), Q.iushrn(1), ae.iushrn(1);
|
|
15085
|
-
for (var ye = 0, Fe = 1; !(q.words[0] & Fe) && ye < 26; ++ye, Fe <<= 1)
|
|
15086
|
-
;
|
|
15087
|
-
if (ye > 0)
|
|
15088
|
-
for (q.iushrn(ye); ye-- > 0; )
|
|
15089
|
-
(te.isOdd() || B.isOdd()) && (te.iadd(ie), B.isub(pe)), te.iushrn(1), B.iushrn(1);
|
|
15090
|
-
Y.cmp(q) >= 0 ? (Y.isub(q), Q.isub(te), ae.isub(B)) : (q.isub(Y), te.isub(Q), B.isub(ae));
|
|
15091
|
-
}
|
|
14988
|
+
for (c(B === -1), B = 0, ae = 0; ae < this.length; ae++)
|
|
14989
|
+
te = -(this.words[ae] | 0) + B, B = te >> 26, this.words[ae] = te & 67108863;
|
|
14990
|
+
return this.negative = 1, this._strip();
|
|
14991
|
+
}, p.prototype._wordDiv = function(E, Y) {
|
|
14992
|
+
var q = this.length - E.length, Q = this.clone(), ae = E, te = ae.words[ae.length - 1] | 0, B = this._countBits(te);
|
|
14993
|
+
q = 26 - B, q !== 0 && (ae = ae.ushln(q), Q.iushln(q), te = ae.words[ae.length - 1] | 0);
|
|
14994
|
+
var k = Q.length - ae.length, ie;
|
|
14995
|
+
if (Y !== "mod") {
|
|
14996
|
+
ie = new p(null), ie.length = k + 1, ie.words = new Array(ie.length);
|
|
14997
|
+
for (var pe = 0; pe < ie.length; pe++)
|
|
14998
|
+
ie.words[pe] = 0;
|
|
14999
|
+
}
|
|
15000
|
+
var ge = Q.clone()._ishlnsubmul(ae, 1, k);
|
|
15001
|
+
ge.negative === 0 && (Q = ge, ie && (ie.words[k] = 1));
|
|
15002
|
+
for (var be = k - 1; be >= 0; be--) {
|
|
15003
|
+
var ye = (Q.words[ae.length + be] | 0) * 67108864 + (Q.words[ae.length + be - 1] | 0);
|
|
15004
|
+
for (ye = Math.min(ye / te | 0, 67108863), Q._ishlnsubmul(ae, ye, be); Q.negative !== 0; )
|
|
15005
|
+
ye--, Q.negative = 0, Q._ishlnsubmul(ae, 1, be), Q.isZero() || (Q.negative ^= 1);
|
|
15006
|
+
ie && (ie.words[be] = ye);
|
|
15007
|
+
}
|
|
15008
|
+
return ie && ie._strip(), Q._strip(), Y !== "div" && q !== 0 && Q.iushrn(q), {
|
|
15009
|
+
div: ie || null,
|
|
15010
|
+
mod: Q
|
|
15011
|
+
};
|
|
15012
|
+
}, p.prototype.divmod = function(E, Y, q) {
|
|
15013
|
+
if (c(!E.isZero()), this.isZero())
|
|
15092
15014
|
return {
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
gcd: q.iushln(k)
|
|
15015
|
+
div: new p(0),
|
|
15016
|
+
mod: new p(0)
|
|
15096
15017
|
};
|
|
15097
|
-
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
|
|
15103
|
-
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15114
|
-
|
|
15115
|
-
|
|
15116
|
-
}
|
|
15117
|
-
|
|
15118
|
-
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
|
|
15125
|
-
|
|
15126
|
-
|
|
15127
|
-
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15150
|
-
|
|
15151
|
-
|
|
15152
|
-
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
|
|
15161
|
-
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15190
|
-
Q < ae ? Y = -1 : Q > ae && (Y = 1);
|
|
15191
|
-
break;
|
|
15192
|
-
}
|
|
15193
|
-
}
|
|
15194
|
-
return Y;
|
|
15195
|
-
}, p.prototype.gtn = function(E) {
|
|
15196
|
-
return this.cmpn(E) === 1;
|
|
15197
|
-
}, p.prototype.gt = function(E) {
|
|
15198
|
-
return this.cmp(E) === 1;
|
|
15199
|
-
}, p.prototype.gten = function(E) {
|
|
15200
|
-
return this.cmpn(E) >= 0;
|
|
15201
|
-
}, p.prototype.gte = function(E) {
|
|
15202
|
-
return this.cmp(E) >= 0;
|
|
15203
|
-
}, p.prototype.ltn = function(E) {
|
|
15204
|
-
return this.cmpn(E) === -1;
|
|
15205
|
-
}, p.prototype.lt = function(E) {
|
|
15206
|
-
return this.cmp(E) === -1;
|
|
15207
|
-
}, p.prototype.lten = function(E) {
|
|
15208
|
-
return this.cmpn(E) <= 0;
|
|
15209
|
-
}, p.prototype.lte = function(E) {
|
|
15210
|
-
return this.cmp(E) <= 0;
|
|
15211
|
-
}, p.prototype.eqn = function(E) {
|
|
15212
|
-
return this.cmpn(E) === 0;
|
|
15213
|
-
}, p.prototype.eq = function(E) {
|
|
15214
|
-
return this.cmp(E) === 0;
|
|
15215
|
-
}, p.red = function(E) {
|
|
15216
|
-
return new j(E);
|
|
15217
|
-
}, p.prototype.toRed = function(E) {
|
|
15218
|
-
return c(!this.red, "Already a number in reduction context"), c(this.negative === 0, "red works only with positives"), E.convertTo(this)._forceRed(E);
|
|
15219
|
-
}, p.prototype.fromRed = function() {
|
|
15220
|
-
return c(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this);
|
|
15221
|
-
}, p.prototype._forceRed = function(E) {
|
|
15222
|
-
return this.red = E, this;
|
|
15223
|
-
}, p.prototype.forceRed = function(E) {
|
|
15224
|
-
return c(!this.red, "Already a number in reduction context"), this._forceRed(E);
|
|
15225
|
-
}, p.prototype.redAdd = function(E) {
|
|
15226
|
-
return c(this.red, "redAdd works only with red numbers"), this.red.add(this, E);
|
|
15227
|
-
}, p.prototype.redIAdd = function(E) {
|
|
15228
|
-
return c(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, E);
|
|
15229
|
-
}, p.prototype.redSub = function(E) {
|
|
15230
|
-
return c(this.red, "redSub works only with red numbers"), this.red.sub(this, E);
|
|
15231
|
-
}, p.prototype.redISub = function(E) {
|
|
15232
|
-
return c(this.red, "redISub works only with red numbers"), this.red.isub(this, E);
|
|
15233
|
-
}, p.prototype.redShl = function(E) {
|
|
15234
|
-
return c(this.red, "redShl works only with red numbers"), this.red.shl(this, E);
|
|
15235
|
-
}, p.prototype.redMul = function(E) {
|
|
15236
|
-
return c(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.mul(this, E);
|
|
15237
|
-
}, p.prototype.redIMul = function(E) {
|
|
15238
|
-
return c(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.imul(this, E);
|
|
15239
|
-
}, p.prototype.redSqr = function() {
|
|
15240
|
-
return c(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this);
|
|
15241
|
-
}, p.prototype.redISqr = function() {
|
|
15242
|
-
return c(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this);
|
|
15243
|
-
}, p.prototype.redSqrt = function() {
|
|
15244
|
-
return c(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this);
|
|
15245
|
-
}, p.prototype.redInvm = function() {
|
|
15246
|
-
return c(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this);
|
|
15247
|
-
}, p.prototype.redNeg = function() {
|
|
15248
|
-
return c(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this);
|
|
15249
|
-
}, p.prototype.redPow = function(E) {
|
|
15250
|
-
return c(this.red && !E.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, E);
|
|
15251
|
-
};
|
|
15252
|
-
var me = {
|
|
15253
|
-
k256: null,
|
|
15254
|
-
p224: null,
|
|
15255
|
-
p192: null,
|
|
15256
|
-
p25519: null
|
|
15257
|
-
};
|
|
15258
|
-
function Me(w, E) {
|
|
15259
|
-
this.name = w, this.p = new p(E, 16), this.n = this.p.bitLength(), this.k = new p(1).iushln(this.n).isub(this.p), this.tmp = this._tmp();
|
|
15018
|
+
var Q, ae, te;
|
|
15019
|
+
return this.negative !== 0 && E.negative === 0 ? (te = this.neg().divmod(E, Y), Y !== "mod" && (Q = te.div.neg()), Y !== "div" && (ae = te.mod.neg(), q && ae.negative !== 0 && ae.iadd(E)), {
|
|
15020
|
+
div: Q,
|
|
15021
|
+
mod: ae
|
|
15022
|
+
}) : this.negative === 0 && E.negative !== 0 ? (te = this.divmod(E.neg(), Y), Y !== "mod" && (Q = te.div.neg()), {
|
|
15023
|
+
div: Q,
|
|
15024
|
+
mod: te.mod
|
|
15025
|
+
}) : this.negative & E.negative ? (te = this.neg().divmod(E.neg(), Y), Y !== "div" && (ae = te.mod.neg(), q && ae.negative !== 0 && ae.isub(E)), {
|
|
15026
|
+
div: te.div,
|
|
15027
|
+
mod: ae
|
|
15028
|
+
}) : E.length > this.length || this.cmp(E) < 0 ? {
|
|
15029
|
+
div: new p(0),
|
|
15030
|
+
mod: this
|
|
15031
|
+
} : E.length === 1 ? Y === "div" ? {
|
|
15032
|
+
div: this.divn(E.words[0]),
|
|
15033
|
+
mod: null
|
|
15034
|
+
} : Y === "mod" ? {
|
|
15035
|
+
div: null,
|
|
15036
|
+
mod: new p(this.modrn(E.words[0]))
|
|
15037
|
+
} : {
|
|
15038
|
+
div: this.divn(E.words[0]),
|
|
15039
|
+
mod: new p(this.modrn(E.words[0]))
|
|
15040
|
+
} : this._wordDiv(E, Y);
|
|
15041
|
+
}, p.prototype.div = function(E) {
|
|
15042
|
+
return this.divmod(E, "div", !1).div;
|
|
15043
|
+
}, p.prototype.mod = function(E) {
|
|
15044
|
+
return this.divmod(E, "mod", !1).mod;
|
|
15045
|
+
}, p.prototype.umod = function(E) {
|
|
15046
|
+
return this.divmod(E, "mod", !0).mod;
|
|
15047
|
+
}, p.prototype.divRound = function(E) {
|
|
15048
|
+
var Y = this.divmod(E);
|
|
15049
|
+
if (Y.mod.isZero())
|
|
15050
|
+
return Y.div;
|
|
15051
|
+
var q = Y.div.negative !== 0 ? Y.mod.isub(E) : Y.mod, Q = E.ushrn(1), ae = E.andln(1), te = q.cmp(Q);
|
|
15052
|
+
return te < 0 || ae === 1 && te === 0 ? Y.div : Y.div.negative !== 0 ? Y.div.isubn(1) : Y.div.iaddn(1);
|
|
15053
|
+
}, p.prototype.modrn = function(E) {
|
|
15054
|
+
var Y = E < 0;
|
|
15055
|
+
Y && (E = -E), c(E <= 67108863);
|
|
15056
|
+
for (var q = (1 << 26) % E, Q = 0, ae = this.length - 1; ae >= 0; ae--)
|
|
15057
|
+
Q = (q * Q + (this.words[ae] | 0)) % E;
|
|
15058
|
+
return Y ? -Q : Q;
|
|
15059
|
+
}, p.prototype.modn = function(E) {
|
|
15060
|
+
return this.modrn(E);
|
|
15061
|
+
}, p.prototype.idivn = function(E) {
|
|
15062
|
+
var Y = E < 0;
|
|
15063
|
+
Y && (E = -E), c(E <= 67108863);
|
|
15064
|
+
for (var q = 0, Q = this.length - 1; Q >= 0; Q--) {
|
|
15065
|
+
var ae = (this.words[Q] | 0) + q * 67108864;
|
|
15066
|
+
this.words[Q] = ae / E | 0, q = ae % E;
|
|
15067
|
+
}
|
|
15068
|
+
return this._strip(), Y ? this.ineg() : this;
|
|
15069
|
+
}, p.prototype.divn = function(E) {
|
|
15070
|
+
return this.clone().idivn(E);
|
|
15071
|
+
}, p.prototype.egcd = function(E) {
|
|
15072
|
+
c(E.negative === 0), c(!E.isZero());
|
|
15073
|
+
var Y = this, q = E.clone();
|
|
15074
|
+
Y.negative !== 0 ? Y = Y.umod(E) : Y = Y.clone();
|
|
15075
|
+
for (var Q = new p(1), ae = new p(0), te = new p(0), B = new p(1), k = 0; Y.isEven() && q.isEven(); )
|
|
15076
|
+
Y.iushrn(1), q.iushrn(1), ++k;
|
|
15077
|
+
for (var ie = q.clone(), pe = Y.clone(); !Y.isZero(); ) {
|
|
15078
|
+
for (var ge = 0, be = 1; !(Y.words[0] & be) && ge < 26; ++ge, be <<= 1)
|
|
15079
|
+
;
|
|
15080
|
+
if (ge > 0)
|
|
15081
|
+
for (Y.iushrn(ge); ge-- > 0; )
|
|
15082
|
+
(Q.isOdd() || ae.isOdd()) && (Q.iadd(ie), ae.isub(pe)), Q.iushrn(1), ae.iushrn(1);
|
|
15083
|
+
for (var ye = 0, Fe = 1; !(q.words[0] & Fe) && ye < 26; ++ye, Fe <<= 1)
|
|
15084
|
+
;
|
|
15085
|
+
if (ye > 0)
|
|
15086
|
+
for (q.iushrn(ye); ye-- > 0; )
|
|
15087
|
+
(te.isOdd() || B.isOdd()) && (te.iadd(ie), B.isub(pe)), te.iushrn(1), B.iushrn(1);
|
|
15088
|
+
Y.cmp(q) >= 0 ? (Y.isub(q), Q.isub(te), ae.isub(B)) : (q.isub(Y), te.isub(Q), B.isub(ae));
|
|
15089
|
+
}
|
|
15090
|
+
return {
|
|
15091
|
+
a: te,
|
|
15092
|
+
b: B,
|
|
15093
|
+
gcd: q.iushln(k)
|
|
15094
|
+
};
|
|
15095
|
+
}, p.prototype._invmp = function(E) {
|
|
15096
|
+
c(E.negative === 0), c(!E.isZero());
|
|
15097
|
+
var Y = this, q = E.clone();
|
|
15098
|
+
Y.negative !== 0 ? Y = Y.umod(E) : Y = Y.clone();
|
|
15099
|
+
for (var Q = new p(1), ae = new p(0), te = q.clone(); Y.cmpn(1) > 0 && q.cmpn(1) > 0; ) {
|
|
15100
|
+
for (var B = 0, k = 1; !(Y.words[0] & k) && B < 26; ++B, k <<= 1)
|
|
15101
|
+
;
|
|
15102
|
+
if (B > 0)
|
|
15103
|
+
for (Y.iushrn(B); B-- > 0; )
|
|
15104
|
+
Q.isOdd() && Q.iadd(te), Q.iushrn(1);
|
|
15105
|
+
for (var ie = 0, pe = 1; !(q.words[0] & pe) && ie < 26; ++ie, pe <<= 1)
|
|
15106
|
+
;
|
|
15107
|
+
if (ie > 0)
|
|
15108
|
+
for (q.iushrn(ie); ie-- > 0; )
|
|
15109
|
+
ae.isOdd() && ae.iadd(te), ae.iushrn(1);
|
|
15110
|
+
Y.cmp(q) >= 0 ? (Y.isub(q), Q.isub(ae)) : (q.isub(Y), ae.isub(Q));
|
|
15260
15111
|
}
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
)
|
|
15112
|
+
var ge;
|
|
15113
|
+
return Y.cmpn(1) === 0 ? ge = Q : ge = ae, ge.cmpn(0) < 0 && ge.iadd(E), ge;
|
|
15114
|
+
}, p.prototype.gcd = function(E) {
|
|
15115
|
+
if (this.isZero())
|
|
15116
|
+
return E.abs();
|
|
15117
|
+
if (E.isZero())
|
|
15118
|
+
return this.abs();
|
|
15119
|
+
var Y = this.clone(), q = E.clone();
|
|
15120
|
+
Y.negative = 0, q.negative = 0;
|
|
15121
|
+
for (var Q = 0; Y.isEven() && q.isEven(); Q++)
|
|
15122
|
+
Y.iushrn(1), q.iushrn(1);
|
|
15123
|
+
do {
|
|
15124
|
+
for (; Y.isEven(); )
|
|
15125
|
+
Y.iushrn(1);
|
|
15126
|
+
for (; q.isEven(); )
|
|
15127
|
+
q.iushrn(1);
|
|
15128
|
+
var ae = Y.cmp(q);
|
|
15129
|
+
if (ae < 0) {
|
|
15130
|
+
var te = Y;
|
|
15131
|
+
Y = q, q = te;
|
|
15132
|
+
} else if (ae === 0 || q.cmpn(1) === 0)
|
|
15133
|
+
break;
|
|
15134
|
+
Y.isub(q);
|
|
15135
|
+
} while (!0);
|
|
15136
|
+
return q.iushln(Q);
|
|
15137
|
+
}, p.prototype.invm = function(E) {
|
|
15138
|
+
return this.egcd(E).a.umod(E);
|
|
15139
|
+
}, p.prototype.isEven = function() {
|
|
15140
|
+
return (this.words[0] & 1) === 0;
|
|
15141
|
+
}, p.prototype.isOdd = function() {
|
|
15142
|
+
return (this.words[0] & 1) === 1;
|
|
15143
|
+
}, p.prototype.andln = function(E) {
|
|
15144
|
+
return this.words[0] & E;
|
|
15145
|
+
}, p.prototype.bincn = function(E) {
|
|
15146
|
+
c(typeof E == "number");
|
|
15147
|
+
var Y = E % 26, q = (E - Y) / 26, Q = 1 << Y;
|
|
15148
|
+
if (this.length <= q)
|
|
15149
|
+
return this._expand(q + 1), this.words[q] |= Q, this;
|
|
15150
|
+
for (var ae = Q, te = q; ae !== 0 && te < this.length; te++) {
|
|
15151
|
+
var B = this.words[te] | 0;
|
|
15152
|
+
B += ae, ae = B >>> 26, B &= 67108863, this.words[te] = B;
|
|
15153
|
+
}
|
|
15154
|
+
return ae !== 0 && (this.words[te] = ae, this.length++), this;
|
|
15155
|
+
}, p.prototype.isZero = function() {
|
|
15156
|
+
return this.length === 1 && this.words[0] === 0;
|
|
15157
|
+
}, p.prototype.cmpn = function(E) {
|
|
15158
|
+
var Y = E < 0;
|
|
15159
|
+
if (this.negative !== 0 && !Y)
|
|
15160
|
+
return -1;
|
|
15161
|
+
if (this.negative === 0 && Y)
|
|
15162
|
+
return 1;
|
|
15163
|
+
this._strip();
|
|
15164
|
+
var q;
|
|
15165
|
+
if (this.length > 1)
|
|
15166
|
+
q = 1;
|
|
15167
|
+
else {
|
|
15168
|
+
Y && (E = -E), c(E <= 67108863, "Number is too big");
|
|
15169
|
+
var Q = this.words[0] | 0;
|
|
15170
|
+
q = Q === E ? 0 : Q < E ? -1 : 1;
|
|
15282
15171
|
}
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15172
|
+
return this.negative !== 0 ? -q | 0 : q;
|
|
15173
|
+
}, p.prototype.cmp = function(E) {
|
|
15174
|
+
if (this.negative !== 0 && E.negative === 0)
|
|
15175
|
+
return -1;
|
|
15176
|
+
if (this.negative === 0 && E.negative !== 0)
|
|
15177
|
+
return 1;
|
|
15178
|
+
var Y = this.ucmp(E);
|
|
15179
|
+
return this.negative !== 0 ? -Y | 0 : Y;
|
|
15180
|
+
}, p.prototype.ucmp = function(E) {
|
|
15181
|
+
if (this.length > E.length)
|
|
15182
|
+
return 1;
|
|
15183
|
+
if (this.length < E.length)
|
|
15184
|
+
return -1;
|
|
15185
|
+
for (var Y = 0, q = this.length - 1; q >= 0; q--) {
|
|
15186
|
+
var Q = this.words[q] | 0, ae = E.words[q] | 0;
|
|
15187
|
+
if (Q !== ae) {
|
|
15188
|
+
Q < ae ? Y = -1 : Q > ae && (Y = 1);
|
|
15189
|
+
break;
|
|
15301
15190
|
}
|
|
15302
|
-
return E.words[E.length - 1] === 0 && (E.length--, E.words[E.length - 1] === 0 && E.length--), E;
|
|
15303
|
-
};
|
|
15304
|
-
function we() {
|
|
15305
|
-
Me.call(
|
|
15306
|
-
this,
|
|
15307
|
-
"p224",
|
|
15308
|
-
"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"
|
|
15309
|
-
);
|
|
15310
15191
|
}
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15192
|
+
return Y;
|
|
15193
|
+
}, p.prototype.gtn = function(E) {
|
|
15194
|
+
return this.cmpn(E) === 1;
|
|
15195
|
+
}, p.prototype.gt = function(E) {
|
|
15196
|
+
return this.cmp(E) === 1;
|
|
15197
|
+
}, p.prototype.gten = function(E) {
|
|
15198
|
+
return this.cmpn(E) >= 0;
|
|
15199
|
+
}, p.prototype.gte = function(E) {
|
|
15200
|
+
return this.cmp(E) >= 0;
|
|
15201
|
+
}, p.prototype.ltn = function(E) {
|
|
15202
|
+
return this.cmpn(E) === -1;
|
|
15203
|
+
}, p.prototype.lt = function(E) {
|
|
15204
|
+
return this.cmp(E) === -1;
|
|
15205
|
+
}, p.prototype.lten = function(E) {
|
|
15206
|
+
return this.cmpn(E) <= 0;
|
|
15207
|
+
}, p.prototype.lte = function(E) {
|
|
15208
|
+
return this.cmp(E) <= 0;
|
|
15209
|
+
}, p.prototype.eqn = function(E) {
|
|
15210
|
+
return this.cmpn(E) === 0;
|
|
15211
|
+
}, p.prototype.eq = function(E) {
|
|
15212
|
+
return this.cmp(E) === 0;
|
|
15213
|
+
}, p.red = function(E) {
|
|
15214
|
+
return new j(E);
|
|
15215
|
+
}, p.prototype.toRed = function(E) {
|
|
15216
|
+
return c(!this.red, "Already a number in reduction context"), c(this.negative === 0, "red works only with positives"), E.convertTo(this)._forceRed(E);
|
|
15217
|
+
}, p.prototype.fromRed = function() {
|
|
15218
|
+
return c(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this);
|
|
15219
|
+
}, p.prototype._forceRed = function(E) {
|
|
15220
|
+
return this.red = E, this;
|
|
15221
|
+
}, p.prototype.forceRed = function(E) {
|
|
15222
|
+
return c(!this.red, "Already a number in reduction context"), this._forceRed(E);
|
|
15223
|
+
}, p.prototype.redAdd = function(E) {
|
|
15224
|
+
return c(this.red, "redAdd works only with red numbers"), this.red.add(this, E);
|
|
15225
|
+
}, p.prototype.redIAdd = function(E) {
|
|
15226
|
+
return c(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, E);
|
|
15227
|
+
}, p.prototype.redSub = function(E) {
|
|
15228
|
+
return c(this.red, "redSub works only with red numbers"), this.red.sub(this, E);
|
|
15229
|
+
}, p.prototype.redISub = function(E) {
|
|
15230
|
+
return c(this.red, "redISub works only with red numbers"), this.red.isub(this, E);
|
|
15231
|
+
}, p.prototype.redShl = function(E) {
|
|
15232
|
+
return c(this.red, "redShl works only with red numbers"), this.red.shl(this, E);
|
|
15233
|
+
}, p.prototype.redMul = function(E) {
|
|
15234
|
+
return c(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.mul(this, E);
|
|
15235
|
+
}, p.prototype.redIMul = function(E) {
|
|
15236
|
+
return c(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.imul(this, E);
|
|
15237
|
+
}, p.prototype.redSqr = function() {
|
|
15238
|
+
return c(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this);
|
|
15239
|
+
}, p.prototype.redISqr = function() {
|
|
15240
|
+
return c(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this);
|
|
15241
|
+
}, p.prototype.redSqrt = function() {
|
|
15242
|
+
return c(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this);
|
|
15243
|
+
}, p.prototype.redInvm = function() {
|
|
15244
|
+
return c(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this);
|
|
15245
|
+
}, p.prototype.redNeg = function() {
|
|
15246
|
+
return c(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this);
|
|
15247
|
+
}, p.prototype.redPow = function(E) {
|
|
15248
|
+
return c(this.red && !E.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, E);
|
|
15249
|
+
};
|
|
15250
|
+
var me = {
|
|
15251
|
+
k256: null,
|
|
15252
|
+
p224: null,
|
|
15253
|
+
p192: null,
|
|
15254
|
+
p25519: null
|
|
15255
|
+
};
|
|
15256
|
+
function Me(w, E) {
|
|
15257
|
+
this.name = w, this.p = new p(E, 16), this.n = this.p.bitLength(), this.k = new p(1).iushln(this.n).isub(this.p), this.tmp = this._tmp();
|
|
15258
|
+
}
|
|
15259
|
+
Me.prototype._tmp = function() {
|
|
15260
|
+
var E = new p(null);
|
|
15261
|
+
return E.words = new Array(Math.ceil(this.n / 13)), E;
|
|
15262
|
+
}, Me.prototype.ireduce = function(E) {
|
|
15263
|
+
var Y = E, q;
|
|
15264
|
+
do
|
|
15265
|
+
this.split(Y, this.tmp), Y = this.imulK(Y), Y = Y.iadd(this.tmp), q = Y.bitLength();
|
|
15266
|
+
while (q > this.n);
|
|
15267
|
+
var Q = q < this.n ? -1 : Y.ucmp(this.p);
|
|
15268
|
+
return Q === 0 ? (Y.words[0] = 0, Y.length = 1) : Q > 0 ? Y.isub(this.p) : Y.strip !== void 0 ? Y.strip() : Y._strip(), Y;
|
|
15269
|
+
}, Me.prototype.split = function(E, Y) {
|
|
15270
|
+
E.iushrn(this.n, 0, Y);
|
|
15271
|
+
}, Me.prototype.imulK = function(E) {
|
|
15272
|
+
return E.imul(this.k);
|
|
15273
|
+
};
|
|
15274
|
+
function ee() {
|
|
15275
|
+
Me.call(
|
|
15276
|
+
this,
|
|
15277
|
+
"k256",
|
|
15278
|
+
"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f"
|
|
15279
|
+
);
|
|
15280
|
+
}
|
|
15281
|
+
u(ee, Me), ee.prototype.split = function(E, Y) {
|
|
15282
|
+
for (var q = 4194303, Q = Math.min(E.length, 9), ae = 0; ae < Q; ae++)
|
|
15283
|
+
Y.words[ae] = E.words[ae];
|
|
15284
|
+
if (Y.length = Q, E.length <= 9) {
|
|
15285
|
+
E.words[0] = 0, E.length = 1;
|
|
15286
|
+
return;
|
|
15318
15287
|
}
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15323
|
-
"25519",
|
|
15324
|
-
"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"
|
|
15325
|
-
);
|
|
15288
|
+
var te = E.words[9];
|
|
15289
|
+
for (Y.words[Y.length++] = te & q, ae = 10; ae < E.length; ae++) {
|
|
15290
|
+
var B = E.words[ae] | 0;
|
|
15291
|
+
E.words[ae - 10] = (B & q) << 4 | te >>> 22, te = B;
|
|
15326
15292
|
}
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
}, p._prime = function(E) {
|
|
15334
|
-
if (me[E])
|
|
15335
|
-
return me[E];
|
|
15336
|
-
var Y;
|
|
15337
|
-
if (E === "k256")
|
|
15338
|
-
Y = new ee();
|
|
15339
|
-
else if (E === "p224")
|
|
15340
|
-
Y = new we();
|
|
15341
|
-
else if (E === "p192")
|
|
15342
|
-
Y = new V();
|
|
15343
|
-
else if (E === "p25519")
|
|
15344
|
-
Y = new Ie();
|
|
15345
|
-
else
|
|
15346
|
-
throw new Error("Unknown prime " + E);
|
|
15347
|
-
return me[E] = Y, Y;
|
|
15348
|
-
};
|
|
15349
|
-
function j(w) {
|
|
15350
|
-
if (typeof w == "string") {
|
|
15351
|
-
var E = p._prime(w);
|
|
15352
|
-
this.m = E.p, this.prime = E;
|
|
15353
|
-
} else
|
|
15354
|
-
c(w.gtn(1), "modulus must be greater than 1"), this.m = w, this.prime = null;
|
|
15293
|
+
te >>>= 22, E.words[ae - 10] = te, te === 0 && E.length > 10 ? E.length -= 10 : E.length -= 9;
|
|
15294
|
+
}, ee.prototype.imulK = function(E) {
|
|
15295
|
+
E.words[E.length] = 0, E.words[E.length + 1] = 0, E.length += 2;
|
|
15296
|
+
for (var Y = 0, q = 0; q < E.length; q++) {
|
|
15297
|
+
var Q = E.words[q] | 0;
|
|
15298
|
+
Y += Q * 977, E.words[q] = Y & 67108863, Y = Q * 64 + (Y / 67108864 | 0);
|
|
15355
15299
|
}
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
this
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
this
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
}
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15300
|
+
return E.words[E.length - 1] === 0 && (E.length--, E.words[E.length - 1] === 0 && E.length--), E;
|
|
15301
|
+
};
|
|
15302
|
+
function we() {
|
|
15303
|
+
Me.call(
|
|
15304
|
+
this,
|
|
15305
|
+
"p224",
|
|
15306
|
+
"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"
|
|
15307
|
+
);
|
|
15308
|
+
}
|
|
15309
|
+
u(we, Me);
|
|
15310
|
+
function V() {
|
|
15311
|
+
Me.call(
|
|
15312
|
+
this,
|
|
15313
|
+
"p192",
|
|
15314
|
+
"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff"
|
|
15315
|
+
);
|
|
15316
|
+
}
|
|
15317
|
+
u(V, Me);
|
|
15318
|
+
function Ie() {
|
|
15319
|
+
Me.call(
|
|
15320
|
+
this,
|
|
15321
|
+
"25519",
|
|
15322
|
+
"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"
|
|
15323
|
+
);
|
|
15324
|
+
}
|
|
15325
|
+
u(Ie, Me), Ie.prototype.imulK = function(E) {
|
|
15326
|
+
for (var Y = 0, q = 0; q < E.length; q++) {
|
|
15327
|
+
var Q = (E.words[q] | 0) * 19 + Y, ae = Q & 67108863;
|
|
15328
|
+
Q >>>= 26, E.words[q] = ae, Y = Q;
|
|
15329
|
+
}
|
|
15330
|
+
return Y !== 0 && (E.words[E.length++] = Y), E;
|
|
15331
|
+
}, p._prime = function(E) {
|
|
15332
|
+
if (me[E])
|
|
15333
|
+
return me[E];
|
|
15334
|
+
var Y;
|
|
15335
|
+
if (E === "k256")
|
|
15336
|
+
Y = new ee();
|
|
15337
|
+
else if (E === "p224")
|
|
15338
|
+
Y = new we();
|
|
15339
|
+
else if (E === "p192")
|
|
15340
|
+
Y = new V();
|
|
15341
|
+
else if (E === "p25519")
|
|
15342
|
+
Y = new Ie();
|
|
15343
|
+
else
|
|
15344
|
+
throw new Error("Unknown prime " + E);
|
|
15345
|
+
return me[E] = Y, Y;
|
|
15346
|
+
};
|
|
15347
|
+
function j(w) {
|
|
15348
|
+
if (typeof w == "string") {
|
|
15349
|
+
var E = p._prime(w);
|
|
15350
|
+
this.m = E.p, this.prime = E;
|
|
15351
|
+
} else
|
|
15352
|
+
c(w.gtn(1), "modulus must be greater than 1"), this.m = w, this.prime = null;
|
|
15353
|
+
}
|
|
15354
|
+
j.prototype._verify1 = function(E) {
|
|
15355
|
+
c(E.negative === 0, "red works only with positives"), c(E.red, "red works only with red numbers");
|
|
15356
|
+
}, j.prototype._verify2 = function(E, Y) {
|
|
15357
|
+
c((E.negative | Y.negative) === 0, "red works only with positives"), c(
|
|
15358
|
+
E.red && E.red === Y.red,
|
|
15359
|
+
"red works only with red numbers"
|
|
15360
|
+
);
|
|
15361
|
+
}, j.prototype.imod = function(E) {
|
|
15362
|
+
return this.prime ? this.prime.ireduce(E)._forceRed(this) : (H(E, E.umod(this.m)._forceRed(this)), E);
|
|
15363
|
+
}, j.prototype.neg = function(E) {
|
|
15364
|
+
return E.isZero() ? E.clone() : this.m.sub(E)._forceRed(this);
|
|
15365
|
+
}, j.prototype.add = function(E, Y) {
|
|
15366
|
+
this._verify2(E, Y);
|
|
15367
|
+
var q = E.add(Y);
|
|
15368
|
+
return q.cmp(this.m) >= 0 && q.isub(this.m), q._forceRed(this);
|
|
15369
|
+
}, j.prototype.iadd = function(E, Y) {
|
|
15370
|
+
this._verify2(E, Y);
|
|
15371
|
+
var q = E.iadd(Y);
|
|
15372
|
+
return q.cmp(this.m) >= 0 && q.isub(this.m), q;
|
|
15373
|
+
}, j.prototype.sub = function(E, Y) {
|
|
15374
|
+
this._verify2(E, Y);
|
|
15375
|
+
var q = E.sub(Y);
|
|
15376
|
+
return q.cmpn(0) < 0 && q.iadd(this.m), q._forceRed(this);
|
|
15377
|
+
}, j.prototype.isub = function(E, Y) {
|
|
15378
|
+
this._verify2(E, Y);
|
|
15379
|
+
var q = E.isub(Y);
|
|
15380
|
+
return q.cmpn(0) < 0 && q.iadd(this.m), q;
|
|
15381
|
+
}, j.prototype.shl = function(E, Y) {
|
|
15382
|
+
return this._verify1(E), this.imod(E.ushln(Y));
|
|
15383
|
+
}, j.prototype.imul = function(E, Y) {
|
|
15384
|
+
return this._verify2(E, Y), this.imod(E.imul(Y));
|
|
15385
|
+
}, j.prototype.mul = function(E, Y) {
|
|
15386
|
+
return this._verify2(E, Y), this.imod(E.mul(Y));
|
|
15387
|
+
}, j.prototype.isqr = function(E) {
|
|
15388
|
+
return this.imul(E, E.clone());
|
|
15389
|
+
}, j.prototype.sqr = function(E) {
|
|
15390
|
+
return this.mul(E, E);
|
|
15391
|
+
}, j.prototype.sqrt = function(E) {
|
|
15392
|
+
if (E.isZero())
|
|
15393
|
+
return E.clone();
|
|
15394
|
+
var Y = this.m.andln(3);
|
|
15395
|
+
if (c(Y % 2 === 1), Y === 3) {
|
|
15396
|
+
var q = this.m.add(new p(1)).iushrn(2);
|
|
15397
|
+
return this.pow(E, q);
|
|
15398
|
+
}
|
|
15399
|
+
for (var Q = this.m.subn(1), ae = 0; !Q.isZero() && Q.andln(1) === 0; )
|
|
15400
|
+
ae++, Q.iushrn(1);
|
|
15401
|
+
c(!Q.isZero());
|
|
15402
|
+
var te = new p(1).toRed(this), B = te.redNeg(), k = this.m.subn(1).iushrn(1), ie = this.m.bitLength();
|
|
15403
|
+
for (ie = new p(2 * ie * ie).toRed(this); this.pow(ie, k).cmp(B) !== 0; )
|
|
15404
|
+
ie.redIAdd(B);
|
|
15405
|
+
for (var pe = this.pow(ie, Q), ge = this.pow(E, Q.addn(1).iushrn(1)), be = this.pow(E, Q), ye = ae; be.cmp(te) !== 0; ) {
|
|
15406
|
+
for (var Fe = be, Te = 0; Fe.cmp(te) !== 0; Te++)
|
|
15407
|
+
Fe = Fe.redSqr();
|
|
15408
|
+
c(Te < ye);
|
|
15409
|
+
var aa = this.pow(pe, new p(1).iushln(ye - Te - 1));
|
|
15410
|
+
ge = ge.redMul(aa), pe = aa.redSqr(), be = be.redMul(pe), ye = Te;
|
|
15411
|
+
}
|
|
15412
|
+
return ge;
|
|
15413
|
+
}, j.prototype.invm = function(E) {
|
|
15414
|
+
var Y = E._invmp(this.m);
|
|
15415
|
+
return Y.negative !== 0 ? (Y.negative = 0, this.imod(Y).redNeg()) : this.imod(Y);
|
|
15416
|
+
}, j.prototype.pow = function(E, Y) {
|
|
15417
|
+
if (Y.isZero())
|
|
15418
|
+
return new p(1).toRed(this);
|
|
15419
|
+
if (Y.cmpn(1) === 0)
|
|
15420
|
+
return E.clone();
|
|
15421
|
+
var q = 4, Q = new Array(1 << q);
|
|
15422
|
+
Q[0] = new p(1).toRed(this), Q[1] = E;
|
|
15423
|
+
for (var ae = 2; ae < Q.length; ae++)
|
|
15424
|
+
Q[ae] = this.mul(Q[ae - 1], E);
|
|
15425
|
+
var te = Q[0], B = 0, k = 0, ie = Y.bitLength() % 26;
|
|
15426
|
+
for (ie === 0 && (ie = 26), ae = Y.length - 1; ae >= 0; ae--) {
|
|
15427
|
+
for (var pe = Y.words[ae], ge = ie - 1; ge >= 0; ge--) {
|
|
15428
|
+
var be = pe >> ge & 1;
|
|
15429
|
+
if (te !== Q[0] && (te = this.sqr(te)), be === 0 && B === 0) {
|
|
15430
|
+
k = 0;
|
|
15431
|
+
continue;
|
|
15436
15432
|
}
|
|
15437
|
-
|
|
15438
|
-
}
|
|
15439
|
-
|
|
15440
|
-
}
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
|
|
15455
|
-
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
return
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
return
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
}
|
|
15474
|
-
|
|
15433
|
+
B <<= 1, B |= be, k++, !(k !== q && (ae !== 0 || ge !== 0)) && (te = this.mul(te, Q[B]), k = 0, B = 0);
|
|
15434
|
+
}
|
|
15435
|
+
ie = 26;
|
|
15436
|
+
}
|
|
15437
|
+
return te;
|
|
15438
|
+
}, j.prototype.convertTo = function(E) {
|
|
15439
|
+
var Y = E.umod(this.m);
|
|
15440
|
+
return Y === E ? Y.clone() : Y;
|
|
15441
|
+
}, j.prototype.convertFrom = function(E) {
|
|
15442
|
+
var Y = E.clone();
|
|
15443
|
+
return Y.red = null, Y;
|
|
15444
|
+
}, p.mont = function(E) {
|
|
15445
|
+
return new C(E);
|
|
15446
|
+
};
|
|
15447
|
+
function C(w) {
|
|
15448
|
+
j.call(this, w), this.shift = this.m.bitLength(), this.shift % 26 !== 0 && (this.shift += 26 - this.shift % 26), this.r = new p(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv);
|
|
15449
|
+
}
|
|
15450
|
+
u(C, j), C.prototype.convertTo = function(E) {
|
|
15451
|
+
return this.imod(E.ushln(this.shift));
|
|
15452
|
+
}, C.prototype.convertFrom = function(E) {
|
|
15453
|
+
var Y = this.imod(E.mul(this.rinv));
|
|
15454
|
+
return Y.red = null, Y;
|
|
15455
|
+
}, C.prototype.imul = function(E, Y) {
|
|
15456
|
+
if (E.isZero() || Y.isZero())
|
|
15457
|
+
return E.words[0] = 0, E.length = 1, E;
|
|
15458
|
+
var q = E.imul(Y), Q = q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), ae = q.isub(Q).iushrn(this.shift), te = ae;
|
|
15459
|
+
return ae.cmp(this.m) >= 0 ? te = ae.isub(this.m) : ae.cmpn(0) < 0 && (te = ae.iadd(this.m)), te._forceRed(this);
|
|
15460
|
+
}, C.prototype.mul = function(E, Y) {
|
|
15461
|
+
if (E.isZero() || Y.isZero())
|
|
15462
|
+
return new p(0)._forceRed(this);
|
|
15463
|
+
var q = E.mul(Y), Q = q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), ae = q.isub(Q).iushrn(this.shift), te = ae;
|
|
15464
|
+
return ae.cmp(this.m) >= 0 ? te = ae.isub(this.m) : ae.cmpn(0) < 0 && (te = ae.iadd(this.m)), te._forceRed(this);
|
|
15465
|
+
}, C.prototype.invm = function(E) {
|
|
15466
|
+
var Y = this.imod(E._invmp(this.m).mul(this.r2));
|
|
15467
|
+
return Y._forceRed(this);
|
|
15468
|
+
};
|
|
15469
|
+
})(a, commonjsGlobal);
|
|
15470
|
+
})(bn$6);
|
|
15471
|
+
var bnExports = bn$6.exports, BN$1 = /* @__PURE__ */ getDefaultExportFromCjs(bnExports);
|
|
15475
15472
|
const version$s = "logger/5.7.0";
|
|
15476
15473
|
let _permanentCensorErrors = !1, _censorErrors = !1;
|
|
15477
15474
|
const LogLevels = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 };
|
|
@@ -61857,7 +61854,7 @@ function requireBrowserifyRsa() {
|
|
|
61857
61854
|
if (hasRequiredBrowserifyRsa)
|
|
61858
61855
|
return browserifyRsa;
|
|
61859
61856
|
hasRequiredBrowserifyRsa = 1;
|
|
61860
|
-
var a =
|
|
61857
|
+
var a = bnExports, d = requireBrowser$a();
|
|
61861
61858
|
function n(p) {
|
|
61862
61859
|
var h = c(p), D = h.toRed(a.mont(p.modulus)).redPow(new a(p.publicExponent)).fromRed();
|
|
61863
61860
|
return { blinder: D, unblinder: h.invm(p.modulus) };
|
|
@@ -67756,7 +67753,7 @@ function requireSign() {
|
|
|
67756
67753
|
if (hasRequiredSign)
|
|
67757
67754
|
return sign.exports;
|
|
67758
67755
|
hasRequiredSign = 1;
|
|
67759
|
-
var a = requireSafeBuffer$1().Buffer, d = requireBrowser$8(), n = requireBrowserifyRsa(), c = requireElliptic().ec, u =
|
|
67756
|
+
var a = requireSafeBuffer$1().Buffer, d = requireBrowser$8(), n = requireBrowserifyRsa(), c = requireElliptic().ec, u = bnExports, p = requireParseAsn1(), h = require$$4$2, D = 1;
|
|
67760
67757
|
function G($, O, J, oe, me) {
|
|
67761
67758
|
var Me = p(O);
|
|
67762
67759
|
if (Me.curve) {
|
|
@@ -67845,7 +67842,7 @@ function requireVerify() {
|
|
|
67845
67842
|
if (hasRequiredVerify)
|
|
67846
67843
|
return verify_1;
|
|
67847
67844
|
hasRequiredVerify = 1;
|
|
67848
|
-
var a = requireSafeBuffer$1().Buffer, d =
|
|
67845
|
+
var a = requireSafeBuffer$1().Buffer, d = bnExports, n = requireElliptic().ec, c = requireParseAsn1(), u = require$$4$2;
|
|
67849
67846
|
function p(U, H, ne, S, fe) {
|
|
67850
67847
|
var se = c(ne);
|
|
67851
67848
|
if (se.type === "ec") {
|
|
@@ -165245,7 +165242,7 @@ class WorkerFactory {
|
|
|
165245
165242
|
constructor() {
|
|
165246
165243
|
}
|
|
165247
165244
|
static resolveWorkerURL = async (d) => {
|
|
165248
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
165245
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-DEbfFZ0L.js");
|
|
165249
165246
|
return new URL(c[d], n);
|
|
165250
165247
|
};
|
|
165251
165248
|
static createWorker = async (d) => {
|
|
@@ -165253,12 +165250,12 @@ class WorkerFactory {
|
|
|
165253
165250
|
let c;
|
|
165254
165251
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
165255
165252
|
/* @vite-ignore */
|
|
165256
|
-
"./snarkjsWorkerLogic-
|
|
165253
|
+
"./snarkjsWorkerLogic-DbrJr4-w.js"
|
|
165257
165254
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
165258
165255
|
return zkProofWorkerLogic;
|
|
165259
165256
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
165260
165257
|
/* @vite-ignore */
|
|
165261
|
-
"./utxoWorkerLogic-
|
|
165258
|
+
"./utxoWorkerLogic-By4KcwDW.js"
|
|
165262
165259
|
)), c.default;
|
|
165263
165260
|
}
|
|
165264
165261
|
const n = await WorkerFactory.resolveWorkerURL(d);
|
|
@@ -190082,7 +190079,7 @@ var AxelarQueryAPI$1 = {}, AxelarQueryClient$1 = {}, build$b = {}, accounts = {}
|
|
|
190082
190079
|
};
|
|
190083
190080
|
Object.defineProperty(decimal, "__esModule", { value: !0 });
|
|
190084
190081
|
decimal.Decimal = void 0;
|
|
190085
|
-
const bn_js_1$2 = __importDefault$o(
|
|
190082
|
+
const bn_js_1$2 = __importDefault$o(bnExports), maxFractionalDigits = 100;
|
|
190086
190083
|
class Decimal {
|
|
190087
190084
|
static fromUserInput(d, n) {
|
|
190088
190085
|
Decimal.verifyFractionalDigits(n);
|
|
@@ -190251,7 +190248,7 @@ var integers = {}, __importDefault$n = commonjsGlobal && commonjsGlobal.__import
|
|
|
190251
190248
|
};
|
|
190252
190249
|
Object.defineProperty(integers, "__esModule", { value: !0 });
|
|
190253
190250
|
integers.Uint64 = integers.Uint53 = integers.Int53 = integers.Uint32 = void 0;
|
|
190254
|
-
const bn_js_1$1 = __importDefault$n(
|
|
190251
|
+
const bn_js_1$1 = __importDefault$n(bnExports), uint64MaxValue = new bn_js_1$1.default("18446744073709551615", 10, "be");
|
|
190255
190252
|
class Uint32 {
|
|
190256
190253
|
/** @deprecated use Uint32.fromBytes */
|
|
190257
190254
|
static fromBigEndianBytes(d) {
|
|
@@ -204388,7 +204385,7 @@ var __importDefault$k = commonjsGlobal && commonjsGlobal.__importDefault || func
|
|
|
204388
204385
|
};
|
|
204389
204386
|
Object.defineProperty(secp256k1$1, "__esModule", { value: !0 });
|
|
204390
204387
|
secp256k1$1.Secp256k1 = void 0;
|
|
204391
|
-
const encoding_1$p = build$6, bn_js_1 = __importDefault$k(
|
|
204388
|
+
const encoding_1$p = build$6, bn_js_1 = __importDefault$k(bnExports), elliptic_1 = __importDefault$k(requireElliptic()), secp256k1signature_1 = secp256k1signature, secp256k1 = new elliptic_1.default.ec("secp256k1"), secp256k1N = new bn_js_1.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141", "hex");
|
|
204392
204389
|
class Secp256k1 {
|
|
204393
204390
|
/**
|
|
204394
204391
|
* Takes a 32 byte private key and returns a privkey/pubkey pair.
|
|
@@ -204493,7 +204490,7 @@ var slip10 = {};
|
|
|
204493
204490
|
return F && F.__esModule ? F : { default: F };
|
|
204494
204491
|
};
|
|
204495
204492
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.stringToPath = a.pathToString = a.Slip10 = a.Slip10RawIndex = a.slip10CurveFromString = a.Slip10Curve = void 0;
|
|
204496
|
-
const n = build$6, c = build$a, u = d(
|
|
204493
|
+
const n = build$6, c = build$a, u = d(bnExports), p = d(requireElliptic()), h = hmac, D = sha;
|
|
204497
204494
|
var G;
|
|
204498
204495
|
(function(F) {
|
|
204499
204496
|
F.Secp256k1 = "Bitcoin seed", F.Ed25519 = "ed25519 seed";
|