orion-design 0.1.48 → 0.1.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/base64-KVpG-D_n.js +103 -0
- package/dist/base64-KVpG-D_n.js.map +1 -0
- package/dist/components/Button/index.d.ts +217 -4
- package/dist/components/Button/index.js +17 -25
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +1 -3
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +3 -100
- package/dist/components/Form/Form.vue.d.ts +2 -70
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +21526 -1248
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +21526 -1248
- package/dist/components/Form/index.d.ts +2 -38
- package/dist/components/Form/index.js +126 -127
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +2 -262
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +2 -178
- package/dist/components/LovTable/index.d.ts +4 -233
- package/dist/components/Message/index.d.ts +27 -0
- package/dist/components/Message/index.js +16 -0
- package/dist/components/Message/index.js.map +1 -0
- package/dist/components/MessageBox/index.d.ts +13 -0
- package/dist/components/MessageBox/index.js +27 -0
- package/dist/components/MessageBox/index.js.map +1 -0
- package/dist/components/Space/index.d.ts +1 -10
- package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +2 -262
- package/dist/components/TableSelectPagetable/index.d.ts +2 -136
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +2 -160
- package/dist/components/Tree/index.d.ts +2 -84
- package/dist/components/_util/dom/element.js +1 -1
- package/dist/components/_util/dom/style.js +1 -1
- package/dist/components/_util/error.js +1 -1
- package/dist/components/_util/functions.js +1 -1
- package/dist/components/_util/index.js +1 -1
- package/dist/components/_util/objects.js +1 -1
- package/dist/components/_util/strings.js +2 -2
- package/dist/components/_util/types.js +2 -2
- package/dist/components/_util/vue/install.js +1 -1
- package/dist/components/_util/vue/props/runtime.js +1 -1
- package/dist/components/_util/vue/refs.js +1 -1
- package/dist/components/_util/vue/vnode.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +38 -34
- package/dist/components/index.js.map +1 -1
- package/dist/{functions-DzLqXvGt.js → functions-LOH6x_02.js} +2 -2
- package/dist/functions-LOH6x_02.js.map +1 -0
- package/dist/index-BW3nOBfD.js +714 -0
- package/dist/index-BW3nOBfD.js.map +1 -0
- package/dist/index.js +24 -20
- package/dist/index.js.map +1 -1
- package/dist/request/disivion/DivisionErrorHandler.d.ts +0 -2
- package/dist/request/disivion/DivisionErrorHandler.js +18 -28
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
- package/dist/request/disivion/index.d.ts +1 -0
- package/dist/request/disivion/index.js +73 -168
- package/dist/request/disivion/index.js.map +1 -1
- package/dist/request/error/ResponseError404.d.ts +7 -0
- package/dist/request/error/ResponseError404.js +10 -0
- package/dist/request/error/ResponseError404.js.map +1 -0
- package/dist/request/error/ResponseError500.d.ts +6 -0
- package/dist/request/error/ResponseError500.js +10 -0
- package/dist/request/error/ResponseError500.js.map +1 -0
- package/dist/request/error/{BizExceptionResponseError.d.ts → ResponseErrorBizException.d.ts} +1 -1
- package/dist/request/error/{BizExceptionResponseError.js → ResponseErrorBizException.js} +2 -2
- package/dist/request/error/ResponseErrorBizException.js.map +1 -0
- package/dist/request/error/{ExceptionResponseError.d.ts → ResponseErrorException.d.ts} +1 -1
- package/dist/request/error/{ExceptionResponseError.js → ResponseErrorException.js} +2 -2
- package/dist/request/error/ResponseErrorException.js.map +1 -0
- package/dist/request/error/{SessionExceptionResponseError.d.ts → ResponseErrorSessionException.d.ts} +1 -1
- package/dist/request/error/{SessionExceptionResponseError.js → ResponseErrorSessionException.js} +2 -2
- package/dist/request/error/{SessionExceptionResponseError.js.map → ResponseErrorSessionException.js.map} +1 -1
- package/dist/request/index.d.ts +12 -3
- package/dist/request/index.js +35 -11
- package/dist/request/index.js.map +1 -1
- package/dist/request/leaf7/Leaf7EncryptRequestParser.d.ts +8 -0
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js +28 -0
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js.map +1 -0
- package/dist/request/leaf7/Leaf7EncryptResponseParser.d.ts +8 -0
- package/dist/request/leaf7/Leaf7EncryptResponseParser.js +42 -0
- package/dist/request/leaf7/Leaf7EncryptResponseParser.js.map +1 -0
- package/dist/request/leaf7/Leaf7ErrorHandler.d.ts +7 -0
- package/dist/request/leaf7/Leaf7ErrorHandler.js +51 -0
- package/dist/request/leaf7/Leaf7ErrorHandler.js.map +1 -0
- package/dist/request/leaf7/Leaf7ResponseParser.d.ts +5 -0
- package/dist/request/leaf7/Leaf7ResponseParser.js +17 -0
- package/dist/request/leaf7/Leaf7ResponseParser.js.map +1 -0
- package/dist/request/leaf7/index.d.ts +20 -0
- package/dist/request/leaf7/index.js +130 -0
- package/dist/request/leaf7/index.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm2/asn1.d.ts +14 -0
- package/dist/request/leaf7/smCrypto/sm2/asn1.js +81 -0
- package/dist/request/leaf7/smCrypto/sm2/asn1.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm2/ec.d.ts +119 -0
- package/dist/request/leaf7/smCrypto/sm2/ec.js +199 -0
- package/dist/request/leaf7/smCrypto/sm2/ec.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm2/index.d.ts +45 -0
- package/dist/request/leaf7/smCrypto/sm2/index.js +102 -0
- package/dist/request/leaf7/smCrypto/sm2/index.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm2/sm3.d.ts +10 -0
- package/dist/request/leaf7/smCrypto/sm2/sm3.js +69 -0
- package/dist/request/leaf7/smCrypto/sm2/sm3.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm2/utils.d.ts +66 -0
- package/dist/request/leaf7/smCrypto/sm2/utils.js +91 -0
- package/dist/request/leaf7/smCrypto/sm2/utils.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm3/index.d.ts +1 -0
- package/dist/request/leaf7/smCrypto/sm3/index.js +45 -0
- package/dist/request/leaf7/smCrypto/sm3/index.js.map +1 -0
- package/dist/request/leaf7/smCrypto/sm4/index.d.ts +5 -0
- package/dist/request/leaf7/smCrypto/sm4/index.js +399 -0
- package/dist/request/leaf7/smCrypto/sm4/index.js.map +1 -0
- package/dist/request/leaf7/smCrypto/smCrypto.d.ts +3 -0
- package/dist/request/leaf7/smCrypto/smCrypto.js +9 -0
- package/dist/request/leaf7/smCrypto/smCrypto.js.map +1 -0
- package/dist/request/leaf7/types.d.ts +11 -0
- package/dist/request/leaf7/types.js +2 -0
- package/dist/request/leaf7/types.js.map +1 -0
- package/dist/request/utils/readBlob.d.ts +1 -0
- package/dist/request/utils/readBlob.js +12 -0
- package/dist/request/utils/readBlob.js.map +1 -0
- package/dist/utils/functions.js +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/Button/Button.vue.d.ts +0 -16
- package/dist/functions-DzLqXvGt.js.map +0 -1
- package/dist/request/error/BizExceptionResponseError.js.map +0 -1
- package/dist/request/error/ExceptionResponseError.js.map +0 -1
@@ -0,0 +1,714 @@
|
|
1
|
+
import { c as Hi } from "./_commonjsHelpers-DaMA6jEr.js";
|
2
|
+
var Y = { exports: {} };
|
3
|
+
(function($, Ji) {
|
4
|
+
(function() {
|
5
|
+
var D, x = 244837814094590, Z = (x & 16777215) == 15715070;
|
6
|
+
function s(t, i, e) {
|
7
|
+
t != null && (typeof t == "number" ? this.fromNumber(t, i, e) : i == null && typeof t != "string" ? this.fromString(t, 256) : this.fromString(t, i));
|
8
|
+
}
|
9
|
+
function u() {
|
10
|
+
return new s(null);
|
11
|
+
}
|
12
|
+
function tt(t, i, e, o, r, n) {
|
13
|
+
for (; --n >= 0; ) {
|
14
|
+
var h = i * this[t++] + e[o] + r;
|
15
|
+
r = Math.floor(h / 67108864), e[o++] = h & 67108863;
|
16
|
+
}
|
17
|
+
return r;
|
18
|
+
}
|
19
|
+
function it(t, i, e, o, r, n) {
|
20
|
+
for (var h = i & 32767, f = i >> 15; --n >= 0; ) {
|
21
|
+
var p = this[t] & 32767, l = this[t++] >> 15, y = f * p + l * h;
|
22
|
+
p = h * p + ((y & 32767) << 15) + e[o] + (r & 1073741823), r = (p >>> 30) + (y >>> 15) + f * l + (r >>> 30), e[o++] = p & 1073741823;
|
23
|
+
}
|
24
|
+
return r;
|
25
|
+
}
|
26
|
+
function et(t, i, e, o, r, n) {
|
27
|
+
for (var h = i & 16383, f = i >> 14; --n >= 0; ) {
|
28
|
+
var p = this[t] & 16383, l = this[t++] >> 14, y = f * p + l * h;
|
29
|
+
p = h * p + ((y & 16383) << 14) + e[o] + r, r = (p >> 28) + (y >> 14) + f * l, e[o++] = p & 268435455;
|
30
|
+
}
|
31
|
+
return r;
|
32
|
+
}
|
33
|
+
var j = typeof navigator < "u";
|
34
|
+
j && Z && navigator.appName == "Microsoft Internet Explorer" ? (s.prototype.am = it, D = 30) : j && Z && navigator.appName != "Netscape" ? (s.prototype.am = tt, D = 26) : (s.prototype.am = et, D = 28), s.prototype.DB = D, s.prototype.DM = (1 << D) - 1, s.prototype.DV = 1 << D;
|
35
|
+
var q = 52;
|
36
|
+
s.prototype.FV = Math.pow(2, q), s.prototype.F1 = q - D, s.prototype.F2 = 2 * D - q;
|
37
|
+
var ot = "0123456789abcdefghijklmnopqrstuvwxyz", N = new Array(), A, T;
|
38
|
+
for (A = 48, T = 0; T <= 9; ++T) N[A++] = T;
|
39
|
+
for (A = 97, T = 10; T < 36; ++T) N[A++] = T;
|
40
|
+
for (A = 65, T = 10; T < 36; ++T) N[A++] = T;
|
41
|
+
function z(t) {
|
42
|
+
return ot.charAt(t);
|
43
|
+
}
|
44
|
+
function U(t, i) {
|
45
|
+
var e = N[t.charCodeAt(i)];
|
46
|
+
return e ?? -1;
|
47
|
+
}
|
48
|
+
function rt(t) {
|
49
|
+
for (var i = this.t - 1; i >= 0; --i) t[i] = this[i];
|
50
|
+
t.t = this.t, t.s = this.s;
|
51
|
+
}
|
52
|
+
function st(t) {
|
53
|
+
this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0;
|
54
|
+
}
|
55
|
+
function S(t) {
|
56
|
+
var i = u();
|
57
|
+
return i.fromInt(t), i;
|
58
|
+
}
|
59
|
+
function nt(t, i) {
|
60
|
+
var e;
|
61
|
+
if (i == 16) e = 4;
|
62
|
+
else if (i == 8) e = 3;
|
63
|
+
else if (i == 256) e = 8;
|
64
|
+
else if (i == 2) e = 1;
|
65
|
+
else if (i == 32) e = 5;
|
66
|
+
else if (i == 4) e = 2;
|
67
|
+
else {
|
68
|
+
this.fromRadix(t, i);
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
this.t = 0, this.s = 0;
|
72
|
+
for (var o = t.length, r = !1, n = 0; --o >= 0; ) {
|
73
|
+
var h = e == 8 ? t[o] & 255 : U(t, o);
|
74
|
+
if (h < 0) {
|
75
|
+
t.charAt(o) == "-" && (r = !0);
|
76
|
+
continue;
|
77
|
+
}
|
78
|
+
r = !1, n == 0 ? this[this.t++] = h : n + e > this.DB ? (this[this.t - 1] |= (h & (1 << this.DB - n) - 1) << n, this[this.t++] = h >> this.DB - n) : this[this.t - 1] |= h << n, n += e, n >= this.DB && (n -= this.DB);
|
79
|
+
}
|
80
|
+
e == 8 && t[0] & 128 && (this.s = -1, n > 0 && (this[this.t - 1] |= (1 << this.DB - n) - 1 << n)), this.clamp(), r && s.ZERO.subTo(this, this);
|
81
|
+
}
|
82
|
+
function ht() {
|
83
|
+
for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t; ) --this.t;
|
84
|
+
}
|
85
|
+
function ft(t) {
|
86
|
+
if (this.s < 0) return "-" + this.negate().toString(t);
|
87
|
+
var i;
|
88
|
+
if (t == 16) i = 4;
|
89
|
+
else if (t == 8) i = 3;
|
90
|
+
else if (t == 2) i = 1;
|
91
|
+
else if (t == 32) i = 5;
|
92
|
+
else if (t == 4) i = 2;
|
93
|
+
else return this.toRadix(t);
|
94
|
+
var e = (1 << i) - 1, o, r = !1, n = "", h = this.t, f = this.DB - h * this.DB % i;
|
95
|
+
if (h-- > 0)
|
96
|
+
for (f < this.DB && (o = this[h] >> f) > 0 && (r = !0, n = z(o)); h >= 0; )
|
97
|
+
f < i ? (o = (this[h] & (1 << f) - 1) << i - f, o |= this[--h] >> (f += this.DB - i)) : (o = this[h] >> (f -= i) & e, f <= 0 && (f += this.DB, --h)), o > 0 && (r = !0), r && (n += z(o));
|
98
|
+
return r ? n : "0";
|
99
|
+
}
|
100
|
+
function ut() {
|
101
|
+
var t = u();
|
102
|
+
return s.ZERO.subTo(this, t), t;
|
103
|
+
}
|
104
|
+
function pt() {
|
105
|
+
return this.s < 0 ? this.negate() : this;
|
106
|
+
}
|
107
|
+
function at(t) {
|
108
|
+
var i = this.s - t.s;
|
109
|
+
if (i != 0) return i;
|
110
|
+
var e = this.t;
|
111
|
+
if (i = e - t.t, i != 0) return this.s < 0 ? -i : i;
|
112
|
+
for (; --e >= 0; ) if ((i = this[e] - t[e]) != 0) return i;
|
113
|
+
return 0;
|
114
|
+
}
|
115
|
+
function V(t) {
|
116
|
+
var i = 1, e;
|
117
|
+
return (e = t >>> 16) != 0 && (t = e, i += 16), (e = t >> 8) != 0 && (t = e, i += 8), (e = t >> 4) != 0 && (t = e, i += 4), (e = t >> 2) != 0 && (t = e, i += 2), (e = t >> 1) != 0 && (t = e, i += 1), i;
|
118
|
+
}
|
119
|
+
function lt() {
|
120
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + V(this[this.t - 1] ^ this.s & this.DM);
|
121
|
+
}
|
122
|
+
function ct(t, i) {
|
123
|
+
var e;
|
124
|
+
for (e = this.t - 1; e >= 0; --e) i[e + t] = this[e];
|
125
|
+
for (e = t - 1; e >= 0; --e) i[e] = 0;
|
126
|
+
i.t = this.t + t, i.s = this.s;
|
127
|
+
}
|
128
|
+
function vt(t, i) {
|
129
|
+
for (var e = t; e < this.t; ++e) i[e - t] = this[e];
|
130
|
+
i.t = Math.max(this.t - t, 0), i.s = this.s;
|
131
|
+
}
|
132
|
+
function mt(t, i) {
|
133
|
+
var e = t % this.DB, o = this.DB - e, r = (1 << o) - 1, n = Math.floor(t / this.DB), h = this.s << e & this.DM, f;
|
134
|
+
for (f = this.t - 1; f >= 0; --f)
|
135
|
+
i[f + n + 1] = this[f] >> o | h, h = (this[f] & r) << e;
|
136
|
+
for (f = n - 1; f >= 0; --f) i[f] = 0;
|
137
|
+
i[n] = h, i.t = this.t + n + 1, i.s = this.s, i.clamp();
|
138
|
+
}
|
139
|
+
function Tt(t, i) {
|
140
|
+
i.s = this.s;
|
141
|
+
var e = Math.floor(t / this.DB);
|
142
|
+
if (e >= this.t) {
|
143
|
+
i.t = 0;
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
var o = t % this.DB, r = this.DB - o, n = (1 << o) - 1;
|
147
|
+
i[0] = this[e] >> o;
|
148
|
+
for (var h = e + 1; h < this.t; ++h)
|
149
|
+
i[h - e - 1] |= (this[h] & n) << r, i[h - e] = this[h] >> o;
|
150
|
+
o > 0 && (i[this.t - e - 1] |= (this.s & n) << r), i.t = this.t - e, i.clamp();
|
151
|
+
}
|
152
|
+
function yt(t, i) {
|
153
|
+
for (var e = 0, o = 0, r = Math.min(t.t, this.t); e < r; )
|
154
|
+
o += this[e] - t[e], i[e++] = o & this.DM, o >>= this.DB;
|
155
|
+
if (t.t < this.t) {
|
156
|
+
for (o -= t.s; e < this.t; )
|
157
|
+
o += this[e], i[e++] = o & this.DM, o >>= this.DB;
|
158
|
+
o += this.s;
|
159
|
+
} else {
|
160
|
+
for (o += this.s; e < t.t; )
|
161
|
+
o -= t[e], i[e++] = o & this.DM, o >>= this.DB;
|
162
|
+
o -= t.s;
|
163
|
+
}
|
164
|
+
i.s = o < 0 ? -1 : 0, o < -1 ? i[e++] = this.DV + o : o > 0 && (i[e++] = o), i.t = e, i.clamp();
|
165
|
+
}
|
166
|
+
function dt(t, i) {
|
167
|
+
var e = this.abs(), o = t.abs(), r = e.t;
|
168
|
+
for (i.t = r + o.t; --r >= 0; ) i[r] = 0;
|
169
|
+
for (r = 0; r < o.t; ++r) i[r + e.t] = e.am(0, o[r], i, r, 0, e.t);
|
170
|
+
i.s = 0, i.clamp(), this.s != t.s && s.ZERO.subTo(i, i);
|
171
|
+
}
|
172
|
+
function bt(t) {
|
173
|
+
for (var i = this.abs(), e = t.t = 2 * i.t; --e >= 0; ) t[e] = 0;
|
174
|
+
for (e = 0; e < i.t - 1; ++e) {
|
175
|
+
var o = i.am(e, i[e], t, 2 * e, 0, 1);
|
176
|
+
(t[e + i.t] += i.am(e + 1, 2 * i[e], t, 2 * e + 1, o, i.t - e - 1)) >= i.DV && (t[e + i.t] -= i.DV, t[e + i.t + 1] = 1);
|
177
|
+
}
|
178
|
+
t.t > 0 && (t[t.t - 1] += i.am(e, i[e], t, 2 * e, 0, 1)), t.s = 0, t.clamp();
|
179
|
+
}
|
180
|
+
function wt(t, i, e) {
|
181
|
+
var o = t.abs();
|
182
|
+
if (!(o.t <= 0)) {
|
183
|
+
var r = this.abs();
|
184
|
+
if (r.t < o.t) {
|
185
|
+
i != null && i.fromInt(0), e != null && this.copyTo(e);
|
186
|
+
return;
|
187
|
+
}
|
188
|
+
e == null && (e = u());
|
189
|
+
var n = u(), h = this.s, f = t.s, p = this.DB - V(o[o.t - 1]);
|
190
|
+
p > 0 ? (o.lShiftTo(p, n), r.lShiftTo(p, e)) : (o.copyTo(n), r.copyTo(e));
|
191
|
+
var l = n.t, y = n[l - 1];
|
192
|
+
if (y != 0) {
|
193
|
+
var m = y * (1 << this.F1) + (l > 1 ? n[l - 2] >> this.F2 : 0), g = this.FV / m, C = (1 << this.F1) / m, b = 1 << this.F2, w = e.t, L = w - l, B = i ?? u();
|
194
|
+
for (n.dlShiftTo(L, B), e.compareTo(B) >= 0 && (e[e.t++] = 1, e.subTo(B, e)), s.ONE.dlShiftTo(l, B), B.subTo(n, n); n.t < l; ) n[n.t++] = 0;
|
195
|
+
for (; --L >= 0; ) {
|
196
|
+
var k = e[--w] == y ? this.DM : Math.floor(e[w] * g + (e[w - 1] + b) * C);
|
197
|
+
if ((e[w] += n.am(0, k, e, L, 0, l)) < k)
|
198
|
+
for (n.dlShiftTo(L, B), e.subTo(B, e); e[w] < --k; ) e.subTo(B, e);
|
199
|
+
}
|
200
|
+
i != null && (e.drShiftTo(l, i), h != f && s.ZERO.subTo(i, i)), e.t = l, e.clamp(), p > 0 && e.rShiftTo(p, e), h < 0 && s.ZERO.subTo(e, e);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
function gt(t) {
|
205
|
+
var i = u();
|
206
|
+
return this.abs().divRemTo(t, null, i), this.s < 0 && i.compareTo(s.ZERO) > 0 && t.subTo(i, i), i;
|
207
|
+
}
|
208
|
+
function M(t) {
|
209
|
+
this.m = t;
|
210
|
+
}
|
211
|
+
function Dt(t) {
|
212
|
+
return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t;
|
213
|
+
}
|
214
|
+
function St(t) {
|
215
|
+
return t;
|
216
|
+
}
|
217
|
+
function Bt(t) {
|
218
|
+
t.divRemTo(this.m, null, t);
|
219
|
+
}
|
220
|
+
function Mt(t, i, e) {
|
221
|
+
t.multiplyTo(i, e), this.reduce(e);
|
222
|
+
}
|
223
|
+
function Rt(t, i) {
|
224
|
+
t.squareTo(i), this.reduce(i);
|
225
|
+
}
|
226
|
+
M.prototype.convert = Dt, M.prototype.revert = St, M.prototype.reduce = Bt, M.prototype.mulTo = Mt, M.prototype.sqrTo = Rt;
|
227
|
+
function Et() {
|
228
|
+
if (this.t < 1) return 0;
|
229
|
+
var t = this[0];
|
230
|
+
if (!(t & 1)) return 0;
|
231
|
+
var i = t & 3;
|
232
|
+
return i = i * (2 - (t & 15) * i) & 15, i = i * (2 - (t & 255) * i) & 255, i = i * (2 - ((t & 65535) * i & 65535)) & 65535, i = i * (2 - t * i % this.DV) % this.DV, i > 0 ? this.DV - i : -i;
|
233
|
+
}
|
234
|
+
function R(t) {
|
235
|
+
this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
|
236
|
+
}
|
237
|
+
function At(t) {
|
238
|
+
var i = u();
|
239
|
+
return t.abs().dlShiftTo(this.m.t, i), i.divRemTo(this.m, null, i), t.s < 0 && i.compareTo(s.ZERO) > 0 && this.m.subTo(i, i), i;
|
240
|
+
}
|
241
|
+
function Ot(t) {
|
242
|
+
var i = u();
|
243
|
+
return t.copyTo(i), this.reduce(i), i;
|
244
|
+
}
|
245
|
+
function Nt(t) {
|
246
|
+
for (; t.t <= this.mt2; )
|
247
|
+
t[t.t++] = 0;
|
248
|
+
for (var i = 0; i < this.m.t; ++i) {
|
249
|
+
var e = t[i] & 32767, o = e * this.mpl + ((e * this.mph + (t[i] >> 15) * this.mpl & this.um) << 15) & t.DM;
|
250
|
+
for (e = i + this.m.t, t[e] += this.m.am(0, o, t, i, 0, this.m.t); t[e] >= t.DV; )
|
251
|
+
t[e] -= t.DV, t[++e]++;
|
252
|
+
}
|
253
|
+
t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t);
|
254
|
+
}
|
255
|
+
function Vt(t, i) {
|
256
|
+
t.squareTo(i), this.reduce(i);
|
257
|
+
}
|
258
|
+
function It(t, i, e) {
|
259
|
+
t.multiplyTo(i, e), this.reduce(e);
|
260
|
+
}
|
261
|
+
R.prototype.convert = At, R.prototype.revert = Ot, R.prototype.reduce = Nt, R.prototype.mulTo = It, R.prototype.sqrTo = Vt;
|
262
|
+
function Ct() {
|
263
|
+
return (this.t > 0 ? this[0] & 1 : this.s) == 0;
|
264
|
+
}
|
265
|
+
function Lt(t, i) {
|
266
|
+
if (t > 4294967295 || t < 1) return s.ONE;
|
267
|
+
var e = u(), o = u(), r = i.convert(this), n = V(t) - 1;
|
268
|
+
for (r.copyTo(e); --n >= 0; )
|
269
|
+
if (i.sqrTo(e, o), (t & 1 << n) > 0) i.mulTo(o, r, e);
|
270
|
+
else {
|
271
|
+
var h = e;
|
272
|
+
e = o, o = h;
|
273
|
+
}
|
274
|
+
return i.revert(e);
|
275
|
+
}
|
276
|
+
function qt(t, i) {
|
277
|
+
var e;
|
278
|
+
return t < 256 || i.isEven() ? e = new M(i) : e = new R(i), this.exp(t, e);
|
279
|
+
}
|
280
|
+
s.prototype.copyTo = rt, s.prototype.fromInt = st, s.prototype.fromString = nt, s.prototype.clamp = ht, s.prototype.dlShiftTo = ct, s.prototype.drShiftTo = vt, s.prototype.lShiftTo = mt, s.prototype.rShiftTo = Tt, s.prototype.subTo = yt, s.prototype.multiplyTo = dt, s.prototype.squareTo = bt, s.prototype.divRemTo = wt, s.prototype.invDigit = Et, s.prototype.isEven = Ct, s.prototype.exp = Lt, s.prototype.toString = ft, s.prototype.negate = ut, s.prototype.abs = pt, s.prototype.compareTo = at, s.prototype.bitLength = lt, s.prototype.mod = gt, s.prototype.modPowInt = qt, s.ZERO = S(0), s.ONE = S(1);
|
281
|
+
function _t() {
|
282
|
+
var t = u();
|
283
|
+
return this.copyTo(t), t;
|
284
|
+
}
|
285
|
+
function Ft() {
|
286
|
+
if (this.s < 0) {
|
287
|
+
if (this.t == 1) return this[0] - this.DV;
|
288
|
+
if (this.t == 0) return -1;
|
289
|
+
} else {
|
290
|
+
if (this.t == 1) return this[0];
|
291
|
+
if (this.t == 0) return 0;
|
292
|
+
}
|
293
|
+
return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
|
294
|
+
}
|
295
|
+
function Pt() {
|
296
|
+
return this.t == 0 ? this.s : this[0] << 24 >> 24;
|
297
|
+
}
|
298
|
+
function kt() {
|
299
|
+
return this.t == 0 ? this.s : this[0] << 16 >> 16;
|
300
|
+
}
|
301
|
+
function Zt(t) {
|
302
|
+
return Math.floor(Math.LN2 * this.DB / Math.log(t));
|
303
|
+
}
|
304
|
+
function jt() {
|
305
|
+
return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
|
306
|
+
}
|
307
|
+
function zt(t) {
|
308
|
+
if (t == null && (t = 10), this.signum() == 0 || t < 2 || t > 36) return "0";
|
309
|
+
var i = this.chunkSize(t), e = Math.pow(t, i), o = S(e), r = u(), n = u(), h = "";
|
310
|
+
for (this.divRemTo(o, r, n); r.signum() > 0; )
|
311
|
+
h = (e + n.intValue()).toString(t).substr(1) + h, r.divRemTo(o, r, n);
|
312
|
+
return n.intValue().toString(t) + h;
|
313
|
+
}
|
314
|
+
function Ut(t, i) {
|
315
|
+
this.fromInt(0), i == null && (i = 10);
|
316
|
+
for (var e = this.chunkSize(i), o = Math.pow(i, e), r = !1, n = 0, h = 0, f = 0; f < t.length; ++f) {
|
317
|
+
var p = U(t, f);
|
318
|
+
if (p < 0) {
|
319
|
+
t.charAt(f) == "-" && this.signum() == 0 && (r = !0);
|
320
|
+
continue;
|
321
|
+
}
|
322
|
+
h = i * h + p, ++n >= e && (this.dMultiply(o), this.dAddOffset(h, 0), n = 0, h = 0);
|
323
|
+
}
|
324
|
+
n > 0 && (this.dMultiply(Math.pow(i, n)), this.dAddOffset(h, 0)), r && s.ZERO.subTo(this, this);
|
325
|
+
}
|
326
|
+
function Gt(t, i, e) {
|
327
|
+
if (typeof i == "number")
|
328
|
+
if (t < 2) this.fromInt(1);
|
329
|
+
else
|
330
|
+
for (this.fromNumber(t, e), this.testBit(t - 1) || this.bitwiseTo(s.ONE.shiftLeft(t - 1), _, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(i); )
|
331
|
+
this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(s.ONE.shiftLeft(t - 1), this);
|
332
|
+
else {
|
333
|
+
var o = new Array(), r = t & 7;
|
334
|
+
o.length = (t >> 3) + 1, i.nextBytes(o), r > 0 ? o[0] &= (1 << r) - 1 : o[0] = 0, this.fromString(o, 256);
|
335
|
+
}
|
336
|
+
}
|
337
|
+
function Xt() {
|
338
|
+
var t = this.t, i = new Array();
|
339
|
+
i[0] = this.s;
|
340
|
+
var e = this.DB - t * this.DB % 8, o, r = 0;
|
341
|
+
if (t-- > 0)
|
342
|
+
for (e < this.DB && (o = this[t] >> e) != (this.s & this.DM) >> e && (i[r++] = o | this.s << this.DB - e); t >= 0; )
|
343
|
+
e < 8 ? (o = (this[t] & (1 << e) - 1) << 8 - e, o |= this[--t] >> (e += this.DB - 8)) : (o = this[t] >> (e -= 8) & 255, e <= 0 && (e += this.DB, --t)), o & 128 && (o |= -256), r == 0 && (this.s & 128) != (o & 128) && ++r, (r > 0 || o != this.s) && (i[r++] = o);
|
344
|
+
return i;
|
345
|
+
}
|
346
|
+
function Ht(t) {
|
347
|
+
return this.compareTo(t) == 0;
|
348
|
+
}
|
349
|
+
function Jt(t) {
|
350
|
+
return this.compareTo(t) < 0 ? this : t;
|
351
|
+
}
|
352
|
+
function Kt(t) {
|
353
|
+
return this.compareTo(t) > 0 ? this : t;
|
354
|
+
}
|
355
|
+
function Qt(t, i, e) {
|
356
|
+
var o, r, n = Math.min(t.t, this.t);
|
357
|
+
for (o = 0; o < n; ++o) e[o] = i(this[o], t[o]);
|
358
|
+
if (t.t < this.t) {
|
359
|
+
for (r = t.s & this.DM, o = n; o < this.t; ++o) e[o] = i(this[o], r);
|
360
|
+
e.t = this.t;
|
361
|
+
} else {
|
362
|
+
for (r = this.s & this.DM, o = n; o < t.t; ++o) e[o] = i(r, t[o]);
|
363
|
+
e.t = t.t;
|
364
|
+
}
|
365
|
+
e.s = i(this.s, t.s), e.clamp();
|
366
|
+
}
|
367
|
+
function Wt(t, i) {
|
368
|
+
return t & i;
|
369
|
+
}
|
370
|
+
function Yt(t) {
|
371
|
+
var i = u();
|
372
|
+
return this.bitwiseTo(t, Wt, i), i;
|
373
|
+
}
|
374
|
+
function _(t, i) {
|
375
|
+
return t | i;
|
376
|
+
}
|
377
|
+
function $t(t) {
|
378
|
+
var i = u();
|
379
|
+
return this.bitwiseTo(t, _, i), i;
|
380
|
+
}
|
381
|
+
function G(t, i) {
|
382
|
+
return t ^ i;
|
383
|
+
}
|
384
|
+
function xt(t) {
|
385
|
+
var i = u();
|
386
|
+
return this.bitwiseTo(t, G, i), i;
|
387
|
+
}
|
388
|
+
function X(t, i) {
|
389
|
+
return t & ~i;
|
390
|
+
}
|
391
|
+
function ti(t) {
|
392
|
+
var i = u();
|
393
|
+
return this.bitwiseTo(t, X, i), i;
|
394
|
+
}
|
395
|
+
function ii() {
|
396
|
+
for (var t = u(), i = 0; i < this.t; ++i) t[i] = this.DM & ~this[i];
|
397
|
+
return t.t = this.t, t.s = ~this.s, t;
|
398
|
+
}
|
399
|
+
function ei(t) {
|
400
|
+
var i = u();
|
401
|
+
return t < 0 ? this.rShiftTo(-t, i) : this.lShiftTo(t, i), i;
|
402
|
+
}
|
403
|
+
function oi(t) {
|
404
|
+
var i = u();
|
405
|
+
return t < 0 ? this.lShiftTo(-t, i) : this.rShiftTo(t, i), i;
|
406
|
+
}
|
407
|
+
function ri(t) {
|
408
|
+
if (t == 0) return -1;
|
409
|
+
var i = 0;
|
410
|
+
return t & 65535 || (t >>= 16, i += 16), t & 255 || (t >>= 8, i += 8), t & 15 || (t >>= 4, i += 4), t & 3 || (t >>= 2, i += 2), t & 1 || ++i, i;
|
411
|
+
}
|
412
|
+
function si() {
|
413
|
+
for (var t = 0; t < this.t; ++t)
|
414
|
+
if (this[t] != 0) return t * this.DB + ri(this[t]);
|
415
|
+
return this.s < 0 ? this.t * this.DB : -1;
|
416
|
+
}
|
417
|
+
function ni(t) {
|
418
|
+
for (var i = 0; t != 0; )
|
419
|
+
t &= t - 1, ++i;
|
420
|
+
return i;
|
421
|
+
}
|
422
|
+
function hi() {
|
423
|
+
for (var t = 0, i = this.s & this.DM, e = 0; e < this.t; ++e) t += ni(this[e] ^ i);
|
424
|
+
return t;
|
425
|
+
}
|
426
|
+
function fi(t) {
|
427
|
+
var i = Math.floor(t / this.DB);
|
428
|
+
return i >= this.t ? this.s != 0 : (this[i] & 1 << t % this.DB) != 0;
|
429
|
+
}
|
430
|
+
function ui(t, i) {
|
431
|
+
var e = s.ONE.shiftLeft(t);
|
432
|
+
return this.bitwiseTo(e, i, e), e;
|
433
|
+
}
|
434
|
+
function pi(t) {
|
435
|
+
return this.changeBit(t, _);
|
436
|
+
}
|
437
|
+
function ai(t) {
|
438
|
+
return this.changeBit(t, X);
|
439
|
+
}
|
440
|
+
function li(t) {
|
441
|
+
return this.changeBit(t, G);
|
442
|
+
}
|
443
|
+
function ci(t, i) {
|
444
|
+
for (var e = 0, o = 0, r = Math.min(t.t, this.t); e < r; )
|
445
|
+
o += this[e] + t[e], i[e++] = o & this.DM, o >>= this.DB;
|
446
|
+
if (t.t < this.t) {
|
447
|
+
for (o += t.s; e < this.t; )
|
448
|
+
o += this[e], i[e++] = o & this.DM, o >>= this.DB;
|
449
|
+
o += this.s;
|
450
|
+
} else {
|
451
|
+
for (o += this.s; e < t.t; )
|
452
|
+
o += t[e], i[e++] = o & this.DM, o >>= this.DB;
|
453
|
+
o += t.s;
|
454
|
+
}
|
455
|
+
i.s = o < 0 ? -1 : 0, o > 0 ? i[e++] = o : o < -1 && (i[e++] = this.DV + o), i.t = e, i.clamp();
|
456
|
+
}
|
457
|
+
function vi(t) {
|
458
|
+
var i = u();
|
459
|
+
return this.addTo(t, i), i;
|
460
|
+
}
|
461
|
+
function mi(t) {
|
462
|
+
var i = u();
|
463
|
+
return this.subTo(t, i), i;
|
464
|
+
}
|
465
|
+
function Ti(t) {
|
466
|
+
var i = u();
|
467
|
+
return this.multiplyTo(t, i), i;
|
468
|
+
}
|
469
|
+
function yi() {
|
470
|
+
var t = u();
|
471
|
+
return this.squareTo(t), t;
|
472
|
+
}
|
473
|
+
function di(t) {
|
474
|
+
var i = u();
|
475
|
+
return this.divRemTo(t, i, null), i;
|
476
|
+
}
|
477
|
+
function bi(t) {
|
478
|
+
var i = u();
|
479
|
+
return this.divRemTo(t, null, i), i;
|
480
|
+
}
|
481
|
+
function wi(t) {
|
482
|
+
var i = u(), e = u();
|
483
|
+
return this.divRemTo(t, i, e), new Array(i, e);
|
484
|
+
}
|
485
|
+
function gi(t) {
|
486
|
+
this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), ++this.t, this.clamp();
|
487
|
+
}
|
488
|
+
function Di(t, i) {
|
489
|
+
if (t != 0) {
|
490
|
+
for (; this.t <= i; ) this[this.t++] = 0;
|
491
|
+
for (this[i] += t; this[i] >= this.DV; )
|
492
|
+
this[i] -= this.DV, ++i >= this.t && (this[this.t++] = 0), ++this[i];
|
493
|
+
}
|
494
|
+
}
|
495
|
+
function O() {
|
496
|
+
}
|
497
|
+
function H(t) {
|
498
|
+
return t;
|
499
|
+
}
|
500
|
+
function Si(t, i, e) {
|
501
|
+
t.multiplyTo(i, e);
|
502
|
+
}
|
503
|
+
function Bi(t, i) {
|
504
|
+
t.squareTo(i);
|
505
|
+
}
|
506
|
+
O.prototype.convert = H, O.prototype.revert = H, O.prototype.mulTo = Si, O.prototype.sqrTo = Bi;
|
507
|
+
function Mi(t) {
|
508
|
+
return this.exp(t, new O());
|
509
|
+
}
|
510
|
+
function Ri(t, i, e) {
|
511
|
+
var o = Math.min(this.t + t.t, i);
|
512
|
+
for (e.s = 0, e.t = o; o > 0; ) e[--o] = 0;
|
513
|
+
var r;
|
514
|
+
for (r = e.t - this.t; o < r; ++o) e[o + this.t] = this.am(0, t[o], e, o, 0, this.t);
|
515
|
+
for (r = Math.min(t.t, i); o < r; ++o) this.am(0, t[o], e, o, 0, i - o);
|
516
|
+
e.clamp();
|
517
|
+
}
|
518
|
+
function Ei(t, i, e) {
|
519
|
+
--i;
|
520
|
+
var o = e.t = this.t + t.t - i;
|
521
|
+
for (e.s = 0; --o >= 0; ) e[o] = 0;
|
522
|
+
for (o = Math.max(i - this.t, 0); o < t.t; ++o)
|
523
|
+
e[this.t + o - i] = this.am(i - o, t[o], e, 0, 0, this.t + o - i);
|
524
|
+
e.clamp(), e.drShiftTo(1, e);
|
525
|
+
}
|
526
|
+
function E(t) {
|
527
|
+
this.r2 = u(), this.q3 = u(), s.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t), this.m = t;
|
528
|
+
}
|
529
|
+
function Ai(t) {
|
530
|
+
if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);
|
531
|
+
if (t.compareTo(this.m) < 0) return t;
|
532
|
+
var i = u();
|
533
|
+
return t.copyTo(i), this.reduce(i), i;
|
534
|
+
}
|
535
|
+
function Oi(t) {
|
536
|
+
return t;
|
537
|
+
}
|
538
|
+
function Ni(t) {
|
539
|
+
for (t.drShiftTo(this.m.t - 1, this.r2), t.t > this.m.t + 1 && (t.t = this.m.t + 1, t.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); t.compareTo(this.r2) < 0; ) t.dAddOffset(1, this.m.t + 1);
|
540
|
+
for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0; ) t.subTo(this.m, t);
|
541
|
+
}
|
542
|
+
function Vi(t, i) {
|
543
|
+
t.squareTo(i), this.reduce(i);
|
544
|
+
}
|
545
|
+
function Ii(t, i, e) {
|
546
|
+
t.multiplyTo(i, e), this.reduce(e);
|
547
|
+
}
|
548
|
+
E.prototype.convert = Ai, E.prototype.revert = Oi, E.prototype.reduce = Ni, E.prototype.mulTo = Ii, E.prototype.sqrTo = Vi;
|
549
|
+
function Ci(t, i) {
|
550
|
+
var e = t.bitLength(), o, r = S(1), n;
|
551
|
+
if (e <= 0) return r;
|
552
|
+
e < 18 ? o = 1 : e < 48 ? o = 3 : e < 144 ? o = 4 : e < 768 ? o = 5 : o = 6, e < 8 ? n = new M(i) : i.isEven() ? n = new E(i) : n = new R(i);
|
553
|
+
var h = new Array(), f = 3, p = o - 1, l = (1 << o) - 1;
|
554
|
+
if (h[1] = n.convert(this), o > 1) {
|
555
|
+
var y = u();
|
556
|
+
for (n.sqrTo(h[1], y); f <= l; )
|
557
|
+
h[f] = u(), n.mulTo(y, h[f - 2], h[f]), f += 2;
|
558
|
+
}
|
559
|
+
var m = t.t - 1, g, C = !0, b = u(), w;
|
560
|
+
for (e = V(t[m]) - 1; m >= 0; ) {
|
561
|
+
for (e >= p ? g = t[m] >> e - p & l : (g = (t[m] & (1 << e + 1) - 1) << p - e, m > 0 && (g |= t[m - 1] >> this.DB + e - p)), f = o; !(g & 1); )
|
562
|
+
g >>= 1, --f;
|
563
|
+
if ((e -= f) < 0 && (e += this.DB, --m), C)
|
564
|
+
h[g].copyTo(r), C = !1;
|
565
|
+
else {
|
566
|
+
for (; f > 1; )
|
567
|
+
n.sqrTo(r, b), n.sqrTo(b, r), f -= 2;
|
568
|
+
f > 0 ? n.sqrTo(r, b) : (w = r, r = b, b = w), n.mulTo(b, h[g], r);
|
569
|
+
}
|
570
|
+
for (; m >= 0 && !(t[m] & 1 << e); )
|
571
|
+
n.sqrTo(r, b), w = r, r = b, b = w, --e < 0 && (e = this.DB - 1, --m);
|
572
|
+
}
|
573
|
+
return n.revert(r);
|
574
|
+
}
|
575
|
+
function Li(t) {
|
576
|
+
var i = this.s < 0 ? this.negate() : this.clone(), e = t.s < 0 ? t.negate() : t.clone();
|
577
|
+
if (i.compareTo(e) < 0) {
|
578
|
+
var o = i;
|
579
|
+
i = e, e = o;
|
580
|
+
}
|
581
|
+
var r = i.getLowestSetBit(), n = e.getLowestSetBit();
|
582
|
+
if (n < 0) return i;
|
583
|
+
for (r < n && (n = r), n > 0 && (i.rShiftTo(n, i), e.rShiftTo(n, e)); i.signum() > 0; )
|
584
|
+
(r = i.getLowestSetBit()) > 0 && i.rShiftTo(r, i), (r = e.getLowestSetBit()) > 0 && e.rShiftTo(r, e), i.compareTo(e) >= 0 ? (i.subTo(e, i), i.rShiftTo(1, i)) : (e.subTo(i, e), e.rShiftTo(1, e));
|
585
|
+
return n > 0 && e.lShiftTo(n, e), e;
|
586
|
+
}
|
587
|
+
function qi(t) {
|
588
|
+
if (t <= 0) return 0;
|
589
|
+
var i = this.DV % t, e = this.s < 0 ? t - 1 : 0;
|
590
|
+
if (this.t > 0)
|
591
|
+
if (i == 0) e = this[0] % t;
|
592
|
+
else for (var o = this.t - 1; o >= 0; --o) e = (i * e + this[o]) % t;
|
593
|
+
return e;
|
594
|
+
}
|
595
|
+
function _i(t) {
|
596
|
+
var i = t.isEven();
|
597
|
+
if (this.isEven() && i || t.signum() == 0) return s.ZERO;
|
598
|
+
for (var e = t.clone(), o = this.clone(), r = S(1), n = S(0), h = S(0), f = S(1); e.signum() != 0; ) {
|
599
|
+
for (; e.isEven(); )
|
600
|
+
e.rShiftTo(1, e), i ? ((!r.isEven() || !n.isEven()) && (r.addTo(this, r), n.subTo(t, n)), r.rShiftTo(1, r)) : n.isEven() || n.subTo(t, n), n.rShiftTo(1, n);
|
601
|
+
for (; o.isEven(); )
|
602
|
+
o.rShiftTo(1, o), i ? ((!h.isEven() || !f.isEven()) && (h.addTo(this, h), f.subTo(t, f)), h.rShiftTo(1, h)) : f.isEven() || f.subTo(t, f), f.rShiftTo(1, f);
|
603
|
+
e.compareTo(o) >= 0 ? (e.subTo(o, e), i && r.subTo(h, r), n.subTo(f, n)) : (o.subTo(e, o), i && h.subTo(r, h), f.subTo(n, f));
|
604
|
+
}
|
605
|
+
if (o.compareTo(s.ONE) != 0) return s.ZERO;
|
606
|
+
if (f.compareTo(t) >= 0) return f.subtract(t);
|
607
|
+
if (f.signum() < 0) f.addTo(t, f);
|
608
|
+
else return f;
|
609
|
+
return f.signum() < 0 ? f.add(t) : f;
|
610
|
+
}
|
611
|
+
var c = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], Fi = (1 << 26) / c[c.length - 1];
|
612
|
+
function Pi(t) {
|
613
|
+
var i, e = this.abs();
|
614
|
+
if (e.t == 1 && e[0] <= c[c.length - 1]) {
|
615
|
+
for (i = 0; i < c.length; ++i)
|
616
|
+
if (e[0] == c[i]) return !0;
|
617
|
+
return !1;
|
618
|
+
}
|
619
|
+
if (e.isEven()) return !1;
|
620
|
+
for (i = 1; i < c.length; ) {
|
621
|
+
for (var o = c[i], r = i + 1; r < c.length && o < Fi; ) o *= c[r++];
|
622
|
+
for (o = e.modInt(o); i < r; ) if (o % c[i++] == 0) return !1;
|
623
|
+
}
|
624
|
+
return e.millerRabin(t);
|
625
|
+
}
|
626
|
+
function ki(t) {
|
627
|
+
var i = this.subtract(s.ONE), e = i.getLowestSetBit();
|
628
|
+
if (e <= 0) return !1;
|
629
|
+
var o = i.shiftRight(e);
|
630
|
+
t = t + 1 >> 1, t > c.length && (t = c.length);
|
631
|
+
for (var r = u(), n = 0; n < t; ++n) {
|
632
|
+
r.fromInt(c[Math.floor(Math.random() * c.length)]);
|
633
|
+
var h = r.modPow(o, this);
|
634
|
+
if (h.compareTo(s.ONE) != 0 && h.compareTo(i) != 0) {
|
635
|
+
for (var f = 1; f++ < e && h.compareTo(i) != 0; )
|
636
|
+
if (h = h.modPowInt(2, this), h.compareTo(s.ONE) == 0) return !1;
|
637
|
+
if (h.compareTo(i) != 0) return !1;
|
638
|
+
}
|
639
|
+
}
|
640
|
+
return !0;
|
641
|
+
}
|
642
|
+
s.prototype.chunkSize = Zt, s.prototype.toRadix = zt, s.prototype.fromRadix = Ut, s.prototype.fromNumber = Gt, s.prototype.bitwiseTo = Qt, s.prototype.changeBit = ui, s.prototype.addTo = ci, s.prototype.dMultiply = gi, s.prototype.dAddOffset = Di, s.prototype.multiplyLowerTo = Ri, s.prototype.multiplyUpperTo = Ei, s.prototype.modInt = qi, s.prototype.millerRabin = ki, s.prototype.clone = _t, s.prototype.intValue = Ft, s.prototype.byteValue = Pt, s.prototype.shortValue = kt, s.prototype.signum = jt, s.prototype.toByteArray = Xt, s.prototype.equals = Ht, s.prototype.min = Jt, s.prototype.max = Kt, s.prototype.and = Yt, s.prototype.or = $t, s.prototype.xor = xt, s.prototype.andNot = ti, s.prototype.not = ii, s.prototype.shiftLeft = ei, s.prototype.shiftRight = oi, s.prototype.getLowestSetBit = si, s.prototype.bitCount = hi, s.prototype.testBit = fi, s.prototype.setBit = pi, s.prototype.clearBit = ai, s.prototype.flipBit = li, s.prototype.add = vi, s.prototype.subtract = mi, s.prototype.multiply = Ti, s.prototype.divide = di, s.prototype.remainder = bi, s.prototype.divideAndRemainder = wi, s.prototype.modPow = Ci, s.prototype.modInverse = _i, s.prototype.pow = Mi, s.prototype.gcd = Li, s.prototype.isProbablePrime = Pi, s.prototype.square = yi, s.prototype.Barrett = E;
|
643
|
+
var I, v, a;
|
644
|
+
function Zi(t) {
|
645
|
+
v[a++] ^= t & 255, v[a++] ^= t >> 8 & 255, v[a++] ^= t >> 16 & 255, v[a++] ^= t >> 24 & 255, a >= P && (a -= P);
|
646
|
+
}
|
647
|
+
function J() {
|
648
|
+
Zi((/* @__PURE__ */ new Date()).getTime());
|
649
|
+
}
|
650
|
+
if (v == null) {
|
651
|
+
v = new Array(), a = 0;
|
652
|
+
var d;
|
653
|
+
if (typeof window < "u" && window.crypto) {
|
654
|
+
if (window.crypto.getRandomValues) {
|
655
|
+
var K = new Uint8Array(32);
|
656
|
+
for (window.crypto.getRandomValues(K), d = 0; d < 32; ++d)
|
657
|
+
v[a++] = K[d];
|
658
|
+
} else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
|
659
|
+
var Q = window.crypto.random(32);
|
660
|
+
for (d = 0; d < Q.length; ++d)
|
661
|
+
v[a++] = Q.charCodeAt(d) & 255;
|
662
|
+
}
|
663
|
+
}
|
664
|
+
for (; a < P; )
|
665
|
+
d = Math.floor(65536 * Math.random()), v[a++] = d >>> 8, v[a++] = d & 255;
|
666
|
+
a = 0, J();
|
667
|
+
}
|
668
|
+
function ji() {
|
669
|
+
if (I == null) {
|
670
|
+
for (J(), I = Xi(), I.init(v), a = 0; a < v.length; ++a)
|
671
|
+
v[a] = 0;
|
672
|
+
a = 0;
|
673
|
+
}
|
674
|
+
return I.next();
|
675
|
+
}
|
676
|
+
function zi(t) {
|
677
|
+
var i;
|
678
|
+
for (i = 0; i < t.length; ++i) t[i] = ji();
|
679
|
+
}
|
680
|
+
function W() {
|
681
|
+
}
|
682
|
+
W.prototype.nextBytes = zi;
|
683
|
+
function F() {
|
684
|
+
this.i = 0, this.j = 0, this.S = new Array();
|
685
|
+
}
|
686
|
+
function Ui(t) {
|
687
|
+
var i, e, o;
|
688
|
+
for (i = 0; i < 256; ++i)
|
689
|
+
this.S[i] = i;
|
690
|
+
for (e = 0, i = 0; i < 256; ++i)
|
691
|
+
e = e + this.S[i] + t[i % t.length] & 255, o = this.S[i], this.S[i] = this.S[e], this.S[e] = o;
|
692
|
+
this.i = 0, this.j = 0;
|
693
|
+
}
|
694
|
+
function Gi() {
|
695
|
+
var t;
|
696
|
+
return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, t = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = t, this.S[t + this.S[this.i] & 255];
|
697
|
+
}
|
698
|
+
F.prototype.init = Ui, F.prototype.next = Gi;
|
699
|
+
function Xi() {
|
700
|
+
return new F();
|
701
|
+
}
|
702
|
+
var P = 256;
|
703
|
+
$.exports = {
|
704
|
+
default: s,
|
705
|
+
BigInteger: s,
|
706
|
+
SecureRandom: W
|
707
|
+
};
|
708
|
+
}).call(Hi);
|
709
|
+
})(Y);
|
710
|
+
var Qi = Y.exports;
|
711
|
+
export {
|
712
|
+
Qi as j
|
713
|
+
};
|
714
|
+
//# sourceMappingURL=index-BW3nOBfD.js.map
|