jk-vue-comps 0.2.14 → 0.2.16

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.
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/bignumber.js@10.0.2/node_modules/bignumber.js/dist/bignumber.mjs
1
+ //#region node_modules/.pnpm/bignumber.js@11.0.0/node_modules/bignumber.js/dist/bignumber.mjs
2
2
  var e = d(), t = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, n = Math.ceil, r = Math.floor, i = "[BigNumber Error] ", a = 0x5af3107a4000, o = 14, s = 9007199254740991, c = [
3
3
  1,
4
4
  10,
@@ -16,11 +16,11 @@ var e = d(), t = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, n = Math.ceil, r
16
16
  0x9184e72a000
17
17
  ], l = 1e7, u = 1e9;
18
18
  function d(e) {
19
- var y, b, x, S = F.prototype = {
20
- constructor: F,
19
+ var y, b, x, S, C = /^(-?)0([xbo])(?=[^.])/i, w = /^-?(Infinity|NaN)$/, T = /^\s*\+(?!-)|^\s+|\s+$/g, E = B.prototype = {
20
+ constructor: B,
21
21
  toString: null,
22
22
  valueOf: null
23
- }, C = new F(1), w = 20, T = 4, E = -7, D = 21, O = -1e7, k = 1e7, A = !1, j = 1, M = 0, N = {
23
+ }, D = new B(1), O = 20, k = 4, A = -7, j = 21, M = -1e7, N = 1e7, P = !1, F = !0, I = 1, L = 0, R = {
24
24
  prefix: "",
25
25
  groupSize: 3,
26
26
  secondaryGroupSize: 0,
@@ -29,92 +29,83 @@ function d(e) {
29
29
  fractionGroupSize: 0,
30
30
  fractionGroupSeparator: "\xA0",
31
31
  suffix: ""
32
- }, P = "0123456789abcdefghijklmnopqrstuvwxyz";
33
- function F(e, n) {
34
- var r, a, s, c, l, u, d, f, p = this;
35
- if (!(p instanceof F)) return new F(e, n);
36
- if (f = typeof e, n == null) {
37
- if (L(e)) {
38
- p.s = e.s, !e.c || e.e > k ? p.c = p.e = null : e.e < O ? p.c = [p.e = 0] : (p.e = e.e, p.c = e.c.slice());
32
+ }, z = "0123456789abcdefghijklmnopqrstuvwxyz";
33
+ function B(e, n) {
34
+ var r, a, o, s, c = this;
35
+ if (!(c instanceof B)) return new B(e, n);
36
+ if (s = typeof e, n == null) {
37
+ if (H(e)) {
38
+ c.s = e.s, !e.c || e.e > N ? c.c = c.e = null : e.e < M ? c.c = [c.e = 0] : (c.e = e.e, c.c = e.c.slice());
39
39
  return;
40
40
  }
41
- if (f == "number") {
41
+ if (s == "number") {
42
42
  if (e * 0 != 0) {
43
- p.s = isNaN(e) ? null : e < 0 ? -1 : 1, p.c = p.e = null;
43
+ c.s = isNaN(e) ? null : e < 0 ? -1 : 1, c.c = c.e = null;
44
44
  return;
45
45
  }
46
- if (p.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
47
- for (c = 0, l = e; l >= 10; l /= 10, c++);
48
- c > k ? p.c = p.e = null : (p.e = c, p.c = [e]);
46
+ if (c.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
47
+ for (r = 0, a = e; a >= 10; a /= 10, r++);
48
+ r > N ? c.c = c.e = null : (c.e = r, c.c = [e]);
49
49
  return;
50
50
  }
51
- d = String(e);
52
- } else {
53
- if (f == "string") {
54
- if (d = e, !t.test(d)) return x(p, d);
55
- } else if (f == "bigint") d = String(e);
56
- else throw Error(i + "Invalid argument: " + e);
57
- p.s = d.charCodeAt(0) == 45 ? (d = d.slice(1), -1) : 1;
51
+ return x(c, String(e));
52
+ }
53
+ if (s == "bigint") return c.s = e < 0 ? (e = -e, -1) : 1, x(c, String(e));
54
+ if (s == "string") o = e;
55
+ else {
56
+ if (F) throw Error(i + "BigNumber, string, number, or BigInt expected: " + e);
57
+ o = String(e);
58
58
  }
59
- (c = d.indexOf(".")) > -1 && (d = d.replace(".", "")), (l = d.search(/e/i)) > 0 ? (c < 0 && (c = l), c += +d.slice(l + 1), d = d.substring(0, l)) : c < 0 && (c = d.length);
59
+ if (t.test(o)) return c.s = o.charCodeAt(0) == 45 ? (o = o.slice(1), -1) : 1, x(c, o);
60
+ if (o = o.replace(T, ""), w.test(o)) {
61
+ c.s = isNaN(o) ? null : o < 0 ? -1 : 1, c.c = c.e = null;
62
+ return;
63
+ }
64
+ if (o = o.replace(C, function(e, t, r) {
65
+ return n = (r = r.toLowerCase()) == "x" ? 16 : r == "b" ? 2 : 8, t;
66
+ }), n) return S(c, o, n, e);
67
+ if (o = o.replace(/(\d)_(?=\d)/g, "$1"), t.test(o)) return c.s = o.charCodeAt(0) == 45 ? (o = o.slice(1), -1) : 1, x(c, o);
68
+ if (F) throw Error(i + "Not a number: " + e);
69
+ c.s = c.c = c.e = null;
60
70
  } else {
61
- if (f != "string") throw Error(i + "String expected: " + e);
62
- for (h(n, 2, P.length, "Base"), d = e, p.s = d.charCodeAt(0) === 45 ? (d = d.slice(1), -1) : 1, r = P.slice(0, n), c = l = 0, u = d.length; l < u; l++) if (r.indexOf(a = d.charAt(l)) < 0) {
63
- if (a == ".") {
64
- if (l > c) {
65
- c = u;
66
- continue;
67
- }
68
- } else if (!s && (d == d.toUpperCase() && (d = d.toLowerCase()) || d == d.toLowerCase() && (d = d.toUpperCase()))) {
69
- s = !0, l = -1, c = 0;
70
- continue;
71
- }
72
- return x(p, e, n);
71
+ if (s != "string") {
72
+ if (F) throw Error(i + "String expected: " + e);
73
+ e = String(e);
73
74
  }
74
- d = b(d, n, 10, p.s), (c = d.indexOf(".")) > -1 ? d = d.replace(".", "") : c = d.length;
75
- }
76
- for (l = 0; d.charCodeAt(l) === 48; l++);
77
- for (u = d.length; d.charCodeAt(--u) === 48;);
78
- if (d = d.slice(l, ++u)) if (u -= l, c = c - l - 1, c > k) p.c = p.e = null;
79
- else if (c < O) p.c = [p.e = 0];
80
- else {
81
- if (p.e = c, p.c = [], l = (c + 1) % o, c < 0 && (l += o), l < u) {
82
- for (l && p.c.push(+d.slice(0, l)), u -= o; l < u;) p.c.push(+d.slice(l, l += o));
83
- l = o - (d = d.slice(l)).length;
84
- } else l -= u;
85
- for (; l--; d += "0");
86
- p.c.push(+d);
75
+ h(n, 2, z.length, "Base"), S(c, e.replace(T, ""), n, e);
87
76
  }
88
- else p.c = [p.e = 0];
89
77
  }
90
- F.clone = d, F.ROUND_UP = 0, F.ROUND_DOWN = 1, F.ROUND_CEIL = 2, F.ROUND_FLOOR = 3, F.ROUND_HALF_UP = 4, F.ROUND_HALF_DOWN = 5, F.ROUND_HALF_EVEN = 6, F.ROUND_HALF_CEIL = 7, F.ROUND_HALF_FLOOR = 8, F.EUCLID = 9, F.config = F.set = function(e) {
78
+ B.clone = d, B.ROUND_UP = 0, B.ROUND_DOWN = 1, B.ROUND_CEIL = 2, B.ROUND_FLOOR = 3, B.ROUND_HALF_UP = 4, B.ROUND_HALF_DOWN = 5, B.ROUND_HALF_EVEN = 6, B.ROUND_HALF_CEIL = 7, B.ROUND_HALF_FLOOR = 8, B.EUCLID = 9, B.config = B.set = function(e) {
91
79
  var t, n;
92
80
  if (e != null) if (typeof e == "object") {
93
- if (e.hasOwnProperty(t = "DECIMAL_PLACES") && (n = e[t], h(n, 0, u, t), w = n), e.hasOwnProperty(t = "ROUNDING_MODE") && (n = e[t], h(n, 0, 8, t), T = n), e.hasOwnProperty(t = "EXPONENTIAL_AT") && (n = e[t], n && n.pop ? (h(n[0], -u, 0, t), h(n[1], 0, u, t), E = n[0], D = n[1]) : (h(n, -u, u, t), E = -(D = n < 0 ? -n : n))), e.hasOwnProperty(t = "RANGE")) if (n = e[t], n && n.pop) h(n[0], -u, -1, t), h(n[1], 1, u, t), O = n[0], k = n[1];
94
- else if (h(n, -u, u, t), n) O = -(k = n < 0 ? -n : n);
81
+ if (e.hasOwnProperty(t = "DECIMAL_PLACES") && (n = e[t], h(n, 0, u, t), O = n), e.hasOwnProperty(t = "ROUNDING_MODE") && (n = e[t], h(n, 0, 8, t), k = n), e.hasOwnProperty(t = "EXPONENTIAL_AT") && (n = e[t], n && n.pop ? (h(n[0], -u, 0, t), h(n[1], 0, u, t), A = n[0], j = n[1]) : (h(n, -u, u, t), A = -(j = n < 0 ? -n : n))), e.hasOwnProperty(t = "RANGE")) if (n = e[t], n && n.pop) h(n[0], -u, -1, t), h(n[1], 1, u, t), M = n[0], N = n[1];
82
+ else if (h(n, -u, u, t), n) M = -(N = n < 0 ? -n : n);
95
83
  else throw Error(i + t + " cannot be zero: " + n);
96
- if (e.hasOwnProperty(t = "CRYPTO")) if (n = e[t], n === !!n) if (n) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) A = n;
97
- else throw A = !n, Error(i + "crypto unavailable");
98
- else A = n;
84
+ if (e.hasOwnProperty(t = "CRYPTO")) if (n = e[t], n === !!n) if (n) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) P = n;
85
+ else throw P = !n, Error(i + "crypto unavailable");
86
+ else P = n;
99
87
  else throw Error(i + t + " not true or false: " + n);
100
- if (e.hasOwnProperty(t = "MODULO_MODE") && (n = e[t], h(n, 0, 9, t), j = n), e.hasOwnProperty(t = "POW_PRECISION") && (n = e[t], h(n, 0, u, t), M = n), e.hasOwnProperty(t = "FORMAT")) if (n = e[t], typeof n == "object") N = n;
88
+ if (e.hasOwnProperty(t = "STRICT")) if (n = e[t], n === !!n) F = n;
89
+ else throw Error(i + t + " not true or false: " + n);
90
+ if (e.hasOwnProperty(t = "MODULO_MODE") && (n = e[t], h(n, 0, 9, t), I = n), e.hasOwnProperty(t = "POW_PRECISION") && (n = e[t], h(n, 0, u, t), L = n), e.hasOwnProperty(t = "FORMAT")) if (n = e[t], typeof n == "object") R = n;
101
91
  else throw Error(i + t + " not an object: " + n);
102
- if (e.hasOwnProperty(t = "ALPHABET")) if (n = e[t], typeof n == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(n)) P = n;
92
+ if (e.hasOwnProperty(t = "ALPHABET")) if (n = e[t], typeof n == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(n)) z = n;
103
93
  else throw Error(i + t + " invalid: " + n);
104
94
  } else throw Error(i + "Object expected: " + e);
105
95
  return {
106
- DECIMAL_PLACES: w,
107
- ROUNDING_MODE: T,
108
- EXPONENTIAL_AT: [E, D],
109
- RANGE: [O, k],
110
- CRYPTO: A,
111
- MODULO_MODE: j,
112
- POW_PRECISION: M,
113
- FORMAT: N,
114
- ALPHABET: P
96
+ DECIMAL_PLACES: O,
97
+ ROUNDING_MODE: k,
98
+ EXPONENTIAL_AT: [A, j],
99
+ RANGE: [M, N],
100
+ CRYPTO: P,
101
+ STRICT: F,
102
+ MODULO_MODE: I,
103
+ POW_PRECISION: L,
104
+ FORMAT: R,
105
+ ALPHABET: z
115
106
  };
116
- }, F.isBigNumber = function(e) {
117
- if (!L(e)) return !1;
107
+ }, B.isBigNumber = function(e) {
108
+ if (!H(e)) return !1;
118
109
  var t, n, i = e.c, s = e.e, c = e.s;
119
110
  if ({}.toString.call(i) != "[object Array]") return i === null && s === null && (c === null || c === 1 || c === -1);
120
111
  if (c !== 1 && c !== -1 || s < -u || s > u || s !== r(s)) return !1;
@@ -122,26 +113,26 @@ function d(e) {
122
113
  if (t = (s + 1) % o, t < 1 && (t += o), String(i[0]).length !== t) return !1;
123
114
  for (t = 0; t < i.length; t++) if (n = i[t], n < 0 || n >= a || n !== r(n)) return !1;
124
115
  return n !== 0;
125
- }, F.maximum = F.max = function() {
126
- return R(arguments, -1);
127
- }, F.minimum = F.min = function() {
128
- return R(arguments, 1);
129
- }, F.random = (function() {
116
+ }, B.maximum = B.max = function() {
117
+ return U(arguments, -1);
118
+ }, B.minimum = B.min = function() {
119
+ return U(arguments, 1);
120
+ }, B.random = (function() {
130
121
  var e = 9007199254740992, t = Math.random() * e & 2097151 ? function() {
131
122
  return r(Math.random() * e);
132
123
  } : function() {
133
124
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
134
125
  };
135
126
  return function(e) {
136
- var a, s, l, d, f, p = 0, m = [], g = new F(C);
137
- if (e == null ? e = w : h(e, 0, u), d = n(e / o), A) if (crypto.getRandomValues) {
127
+ var a, s, l, d, f, p = 0, m = [], g = new B(D);
128
+ if (e == null ? e = O : h(e, 0, u), d = n(e / o), P) if (crypto.getRandomValues) {
138
129
  for (a = crypto.getRandomValues(new Uint32Array(d *= 2)); p < d;) f = a[p] * 131072 + (a[p + 1] >>> 11), f >= 9e15 ? (s = crypto.getRandomValues(new Uint32Array(2)), a[p] = s[0], a[p + 1] = s[1]) : (m.push(f % 0x5af3107a4000), p += 2);
139
130
  p = d / 2;
140
131
  } else if (crypto.randomBytes) {
141
132
  for (a = crypto.randomBytes(d *= 7); p < d;) f = (a[p] & 31) * 281474976710656 + a[p + 1] * 1099511627776 + a[p + 2] * 4294967296 + a[p + 3] * 16777216 + (a[p + 4] << 16) + (a[p + 5] << 8) + a[p + 6], f >= 9e15 ? crypto.randomBytes(7).copy(a, p) : (m.push(f % 0x5af3107a4000), p += 7);
142
133
  p = d / 7;
143
- } else throw A = !1, Error(i + "crypto unavailable");
144
- if (!A) for (; p < d;) f = t(), f < 9e15 && (m[p++] = f % 0x5af3107a4000);
134
+ } else throw P = !1, Error(i + "crypto unavailable");
135
+ if (!P) for (; p < d;) f = t(), f < 9e15 && (m[p++] = f % 0x5af3107a4000);
145
136
  for (d = m[--p], e %= o, d && e && (f = c[o - e], m[p] = r(d / f) * f); m[p] === 0; m.pop(), p--);
146
137
  if (p < 0) m = [l = 0];
147
138
  else {
@@ -151,9 +142,51 @@ function d(e) {
151
142
  }
152
143
  return g.e = l, g.c = m, g;
153
144
  };
154
- })(), F.sum = function() {
155
- for (var e = 1, t = arguments, n = new F(t[0]); e < t.length;) n = n.plus(t[e++]);
145
+ })(), B.sum = function() {
146
+ for (var e = 1, t = arguments, n = new B(t[0]); e < t.length;) n = n.plus(t[e++]);
156
147
  return n;
148
+ }, x = function(e, t) {
149
+ var n, r, i;
150
+ for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +t.slice(r + 1), t = t.substring(0, r)) : n < 0 && (n = t.length), r = 0; t.charCodeAt(r) === 48; r++);
151
+ for (i = t.length; t.charCodeAt(--i) === 48;);
152
+ if (t = t.slice(r, ++i)) if (i -= r, n = n - r - 1, n > N) e.c = e.e = null;
153
+ else if (n < M) e.c = [e.e = 0];
154
+ else {
155
+ if (e.e = n, e.c = [], r = (n + 1) % o, n < 0 && (r += o), r < i) {
156
+ for (r && e.c.push(+t.slice(0, r)), i -= o; r < i;) e.c.push(+t.slice(r, r += o));
157
+ r = o - (t = t.slice(r)).length;
158
+ } else r -= i;
159
+ for (; r--; t += "0");
160
+ e.c.push(+t);
161
+ }
162
+ else e.c = [e.e = 0];
163
+ }, S = function(e, t, n, r) {
164
+ var a, o, s = z.slice(0, n), c = 0, l = "", u = !1, d = !1, f = !1;
165
+ for (e.s = t.charCodeAt(0) === 45 ? (t = t.slice(1), -1) : 1, o = t.length; c < o; c++) {
166
+ if (a = t.charAt(c), s.indexOf(a) >= 0) {
167
+ l += a, d = !0;
168
+ continue;
169
+ }
170
+ if (a == "_") {
171
+ if (d && c + 1 < o) {
172
+ d = !1;
173
+ continue;
174
+ }
175
+ } else if (a == ".") {
176
+ if (c == 0 || !u && d) {
177
+ if (c + 1 == o) break;
178
+ c == 0 && (l = "0"), l += a, u = !0, d = !1;
179
+ continue;
180
+ }
181
+ } else if (!f && (t == t.toUpperCase() && s == s.toLowerCase() && (t = t.toLowerCase()) || t == t.toLowerCase() && s == s.toUpperCase() && (t = t.toUpperCase()))) {
182
+ c = -1, l = "", f = !0, u = d = !1;
183
+ continue;
184
+ }
185
+ if (F) throw Error(i + "Not a base " + n + " number: " + r);
186
+ e.s = e.c = e.e = null;
187
+ return;
188
+ }
189
+ x(e, b(l, n, 10, e.s));
157
190
  }, b = (function() {
158
191
  var e = "0123456789";
159
192
  function t(e, t, n, r) {
@@ -164,8 +197,8 @@ function d(e) {
164
197
  return a.reverse();
165
198
  }
166
199
  return function(n, r, i, a, o) {
167
- var s, c, l, u, d, f, m, h, g = n.indexOf("."), _ = w, b = T;
168
- for (g >= 0 && (u = M, M = 0, n = n.replace(".", ""), h = new F(r), f = h.pow(n.length - g), M = u, h.c = t(v(p(f.c), f.e, "0"), 10, i, e), h.e = h.c.length), m = t(n, r, i, o ? (s = P, e) : (s = e, P)), l = u = m.length; m[--u] == 0; m.pop());
200
+ var s, c, l, u, d, f, m, h, g = n.indexOf("."), _ = O, b = k;
201
+ for (g >= 0 && (u = L, L = 0, n = n.replace(".", ""), h = new B(r), f = h.pow(n.length - g), L = u, h.c = t(v(p(f.c), f.e, "0"), 10, i, e), h.e = h.c.length), m = t(n, r, i, o ? (s = z, e) : (s = e, z)), l = u = m.length; m[--u] == 0; m.pop());
169
202
  if (!m[0]) return s.charAt(0);
170
203
  if (g < 0 ? --l : (f.c = m, f.e = l, f.s = a, f = y(f, h, _, b, i), m = f.c, d = f.r, l = f.e), c = l + _ + 1, g = m[c], u = i / 2, d = d || c < 0 || m[c + 1] != null, d = b < 4 ? (g != null || d) && (b == 0 || b == (f.s < 0 ? 3 : 2)) : g > u || g == u && (b == 4 || d || b == 6 && m[c - 1] & 1 || b == (f.s < 0 ? 8 : 7)), c < 1 || !m[0]) n = d ? v(s.charAt(1), -_, s.charAt(0)) : s.charAt(0);
171
204
  else {
@@ -197,8 +230,8 @@ function d(e) {
197
230
  }
198
231
  return function(i, s, c, l, u) {
199
232
  var d, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k = i.s == s.s ? 1 : -1, A = i.c, j = s.c;
200
- if (!A || !A[0] || !j || !j[0]) return new F(!i.s || !s.s || (A ? j && A[0] == j[0] : !j) ? NaN : A && A[0] == 0 || !j ? k * 0 : k / 0);
201
- for (y = new F(k), b = y.c = [], p = i.e - s.e, k = c + p + 1, u || (u = a, p = f(i.e / o) - f(s.e / o), k = k / o | 0), m = 0; j[m] == (A[m] || 0); m++);
233
+ if (!A || !A[0] || !j || !j[0]) return new B(!i.s || !s.s || (A ? j && A[0] == j[0] : !j) ? NaN : A && A[0] == 0 || !j ? k * 0 : k / 0);
234
+ for (y = new B(k), b = y.c = [], p = i.e - s.e, k = c + p + 1, u || (u = a, p = f(i.e / o) - f(s.e / o), k = k / o | 0), m = 0; j[m] == (A[m] || 0); m++);
202
235
  if (j[m] > (A[m] || 0) && p--, k < 0) b.push(1), h = !0;
203
236
  else {
204
237
  for (T = A.length, D = j.length, m = 0, k += 2, g = r(u / (j[0] + 1)), g > 1 && (j = e(j, g, u), A = e(A, g, u), D = j.length, T = A.length), w = D, x = A.slice(0, D), S = x.length; S < D; x[S++] = 0);
@@ -215,16 +248,16 @@ function d(e) {
215
248
  }
216
249
  if (u == a) {
217
250
  for (m = 1, k = b[0]; k >= 10; k /= 10, m++);
218
- B(y, c + (y.e = m + p * o - 1) + 1, l, h);
251
+ G(y, c + (y.e = m + p * o - 1) + 1, l, h);
219
252
  } else y.e = p, y.r = +h;
220
253
  return y;
221
254
  };
222
255
  })();
223
- function I(e, t, n, r) {
256
+ function V(e, t, n, r) {
224
257
  var i, a, o, s, c;
225
- if (n == null ? n = T : h(n, 0, 8), !e.c) return e.toString();
226
- if (i = e.c[0], o = e.e, t == null) c = p(e.c), c = r == 1 || r == 2 && (o <= E || o >= D) ? _(c, o) : v(c, o, "0");
227
- else if (e = B(new F(e), t, n), a = e.e, c = p(e.c), s = c.length, r == 1 || r == 2 && (t <= a || a <= E)) {
258
+ if (n == null ? n = k : h(n, 0, 8), !e.c) return e.toString();
259
+ if (i = e.c[0], o = e.e, t == null) c = p(e.c), c = r == 1 || r == 2 && (o <= A || o >= j) ? _(c, o) : v(c, o, "0");
260
+ else if (e = G(new B(e), t, n), a = e.e, c = p(e.c), s = c.length, r == 1 || r == 2 && (t <= a || a <= A)) {
228
261
  for (; s < t; c += "0", s++);
229
262
  c = _(c, a);
230
263
  } else if (t -= o + (r === 2 && a > o), c = v(c, a, "0"), a + 1 > s) {
@@ -232,33 +265,19 @@ function d(e) {
232
265
  } else if (t += a - s, t > 0) for (a + 1 == s && (c += "."); t--; c += "0");
233
266
  return e.s < 0 && i ? "-" + c : c;
234
267
  }
235
- function L(e) {
236
- return e instanceof F || !!e && e._isBigNumber === !0;
268
+ function H(e) {
269
+ return e instanceof B || !!e && e._isBigNumber === !0;
237
270
  }
238
- function R(e, t) {
239
- for (var n, r, i = 1, a = new F(e[0]); i < e.length; i++) r = new F(e[i]), (!r.s || (n = m(a, r)) === t || n === 0 && a.s === t) && (a = r);
271
+ function U(e, t) {
272
+ for (var n, r, i = 1, a = new B(e[0]); i < e.length; i++) r = new B(e[i]), (!r.s || (n = m(a, r)) === t || n === 0 && a.s === t) && (a = r);
240
273
  return a;
241
274
  }
242
- function z(e, t, n) {
275
+ function W(e, t, n) {
243
276
  for (var r = 1, i = t.length; !t[--i]; t.pop());
244
277
  for (i = t[0]; i >= 10; i /= 10, r++);
245
- return (n = r + n * o - 1) > k ? e.c = e.e = null : n < O ? e.c = [e.e = 0] : (e.e = n, e.c = t), e;
278
+ return (n = r + n * o - 1) > N ? e.c = e.e = null : n < M ? e.c = [e.e = 0] : (e.e = n, e.c = t), e;
246
279
  }
247
- x = (function() {
248
- var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, t = /^([^.]+)\.$/, n = /^\.([^.]+)$/, r = /^-?(Infinity|NaN)$/, a = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
249
- return function(o, s, c) {
250
- var l, u = s.replace(a, "");
251
- if (r.test(u)) {
252
- o.s = isNaN(u) ? null : u < 0 ? -1 : 1, o.c = o.e = null;
253
- return;
254
- }
255
- if (u = u.replace(e, function(e, t, n) {
256
- return l = (n = n.toLowerCase()) == "x" ? 16 : n == "b" ? 2 : 8, !c || c == l ? t : e;
257
- }), c && (l = c, u = u.replace(t, "$1").replace(n, "0.$1")), s != u) return new F(u, l);
258
- throw Error(i + "Not a" + (c ? " base " + c : "") + " number: " + s);
259
- };
260
- })();
261
- function B(e, t, i, s) {
280
+ function G(e, t, i, s) {
262
281
  var l, u, d, f, p, m, h, g = e.c, _ = c;
263
282
  if (g) {
264
283
  out: {
@@ -284,39 +303,39 @@ function d(e) {
284
303
  }
285
304
  for (u = g.length; g[--u] === 0; g.pop());
286
305
  }
287
- e.e > k ? e.c = e.e = null : e.e < O && (e.c = [e.e = 0]);
306
+ e.e > N ? e.c = e.e = null : e.e < M && (e.c = [e.e = 0]);
288
307
  }
289
308
  return e;
290
309
  }
291
- function V(e) {
310
+ function K(e) {
292
311
  var t, n = e.e;
293
- return n === null ? e.toString() : (t = p(e.c), t = n <= E || n >= D ? _(t, n) : v(t, n, "0"), e.s < 0 ? "-" + t : t);
312
+ return n === null ? e.toString() : (t = p(e.c), t = n <= A || n >= j ? _(t, n) : v(t, n, "0"), e.s < 0 ? "-" + t : t);
294
313
  }
295
- return S.absoluteValue = S.abs = function() {
296
- var e = new F(this);
314
+ return E.absoluteValue = E.abs = function() {
315
+ var e = new B(this);
297
316
  return e.s < 0 && (e.s = 1), e;
298
- }, S.comparedTo = function(e, t) {
299
- return m(this, new F(e, t));
300
- }, S.decimalPlaces = S.dp = function(e, t) {
317
+ }, E.comparedTo = function(e, t) {
318
+ return m(this, new B(e, t));
319
+ }, E.decimalPlaces = E.dp = function(e, t) {
301
320
  var n, r, i, a = this;
302
- if (e != null) return h(e, 0, u), t == null ? t = T : h(t, 0, 8), B(new F(a), e + a.e + 1, t);
321
+ if (e != null) return h(e, 0, u), t == null ? t = k : h(t, 0, 8), G(new B(a), e + a.e + 1, t);
303
322
  if (!(n = a.c)) return null;
304
323
  if (r = ((i = n.length - 1) - f(this.e / o)) * o, i = n[i]) for (; i % 10 == 0; i /= 10, r--);
305
324
  return r < 0 && (r = 0), r;
306
- }, S.dividedBy = S.div = function(e, t) {
307
- return y(this, new F(e, t), w, T);
308
- }, S.dividedToIntegerBy = S.idiv = function(e, t) {
309
- return y(this, new F(e, t), 0, 1);
310
- }, S.exponentiatedBy = S.pow = function(e, t) {
325
+ }, E.dividedBy = E.div = function(e, t) {
326
+ return y(this, new B(e, t), O, k);
327
+ }, E.dividedToIntegerBy = E.idiv = function(e, t) {
328
+ return y(this, new B(e, t), 0, 1);
329
+ }, E.exponentiatedBy = E.pow = function(e, t) {
311
330
  var a, s, c, l, u, d, f, p, m, h = this;
312
- if (e = new F(e), e.c && !e.isInteger()) throw Error(i + "Exponent not an integer: " + V(e));
313
- if (t != null && (t = new F(t)), d = e.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !e.c || !e.c[0]) return m = new F(V(h) ** (d ? e.s * (2 - g(e)) : +V(e))), t ? m.mod(t) : m;
331
+ if (e = new B(e), e.c && !e.isInteger()) throw Error(i + "Exponent not an integer: " + K(e));
332
+ if (t != null && (t = new B(t)), d = e.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !e.c || !e.c[0]) return m = new B(K(h) ** (d ? e.s * (2 - g(e)) : +K(e))), t ? m.mod(t) : m;
314
333
  if (f = e.s < 0, t) {
315
- if (t.c ? !t.c[0] : !t.s) return new F(NaN);
334
+ if (t.c ? !t.c[0] : !t.s) return new B(NaN);
316
335
  s = !f && h.isInteger() && t.isInteger(), s && (h = h.mod(t));
317
- } else if (e.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || d && h.c[1] >= 24e7 : h.c[0] < 8e13 || d && h.c[0] <= 9999975e7))) return l = h.s < 0 && g(e) ? -0 : 0, h.e > -1 && (l = 1 / l), new F(f ? 1 / l : l);
318
- else M && (l = n(M / o + 2));
319
- for (d ? (a = new F(.5), f && (e.s = 1), p = g(e)) : (c = Math.abs(+V(e)), p = c % 2), m = new F(C);;) {
336
+ } else if (e.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || d && h.c[1] >= 24e7 : h.c[0] < 8e13 || d && h.c[0] <= 9999975e7))) return l = h.s < 0 && g(e) ? -0 : 0, h.e > -1 && (l = 1 / l), new B(f ? 1 / l : l);
337
+ else L && (l = n(L / o + 2));
338
+ for (d ? (a = new B(.5), f && (e.s = 1), p = g(e)) : (c = Math.abs(+K(e)), p = c % 2), m = new B(D);;) {
320
339
  if (p) {
321
340
  if (m = m.times(h), !m.c) break;
322
341
  l ? m.c.length > l && (m.c.length = l) : s && (m = m.mod(t));
@@ -324,47 +343,47 @@ function d(e) {
324
343
  if (c) {
325
344
  if (c = r(c / 2), c === 0) break;
326
345
  p = c % 2;
327
- } else if (e = e.times(a), B(e, e.e + 1, 1), e.e > 14) p = g(e);
346
+ } else if (e = e.times(a), G(e, e.e + 1, 1), e.e > 14) p = g(e);
328
347
  else {
329
- if (c = +V(e), c === 0) break;
348
+ if (c = +K(e), c === 0) break;
330
349
  p = c % 2;
331
350
  }
332
351
  h = h.times(h), l ? h.c && h.c.length > l && (h.c.length = l) : s && (h = h.mod(t));
333
352
  }
334
- return s ? m : (f && (m = C.div(m)), t ? m.mod(t) : l ? B(m, M, T, u) : m);
335
- }, S.integerValue = function(e) {
336
- var t = new F(this);
337
- return e == null ? e = T : h(e, 0, 8), B(t, t.e + 1, e);
338
- }, S.isEqualTo = S.eq = function(e, t) {
339
- return m(this, new F(e, t)) === 0;
340
- }, S.isFinite = function() {
353
+ return s ? m : (f && (m = D.div(m)), t ? m.mod(t) : l ? G(m, L, k, u) : m);
354
+ }, E.integerValue = function(e) {
355
+ var t = new B(this);
356
+ return e == null ? e = k : h(e, 0, 8), G(t, t.e + 1, e);
357
+ }, E.isEqualTo = E.eq = function(e, t) {
358
+ return m(this, new B(e, t)) === 0;
359
+ }, E.isFinite = function() {
341
360
  return !!this.c;
342
- }, S.isGreaterThan = S.gt = function(e, t) {
343
- return m(this, new F(e, t)) > 0;
344
- }, S.isGreaterThanOrEqualTo = S.gte = function(e, t) {
345
- return (t = m(this, new F(e, t))) === 1 || t === 0;
346
- }, S.isInteger = function() {
361
+ }, E.isGreaterThan = E.gt = function(e, t) {
362
+ return m(this, new B(e, t)) > 0;
363
+ }, E.isGreaterThanOrEqualTo = E.gte = function(e, t) {
364
+ return (t = m(this, new B(e, t))) === 1 || t === 0;
365
+ }, E.isInteger = function() {
347
366
  return !!this.c && f(this.e / o) > this.c.length - 2;
348
- }, S.isLessThan = S.lt = function(e, t) {
349
- return m(this, new F(e, t)) < 0;
350
- }, S.isLessThanOrEqualTo = S.lte = function(e, t) {
351
- return (t = m(this, new F(e, t))) === -1 || t === 0;
352
- }, S.isNaN = function() {
367
+ }, E.isLessThan = E.lt = function(e, t) {
368
+ return m(this, new B(e, t)) < 0;
369
+ }, E.isLessThanOrEqualTo = E.lte = function(e, t) {
370
+ return (t = m(this, new B(e, t))) === -1 || t === 0;
371
+ }, E.isNaN = function() {
353
372
  return !this.s;
354
- }, S.isNegative = function() {
373
+ }, E.isNegative = function() {
355
374
  return this.s < 0;
356
- }, S.isPositive = function() {
375
+ }, E.isPositive = function() {
357
376
  return this.s > 0;
358
- }, S.isZero = function() {
377
+ }, E.isZero = function() {
359
378
  return !!this.c && this.c[0] == 0;
360
- }, S.minus = function(e, t) {
379
+ }, E.minus = function(e, t) {
361
380
  var n, r, i, s, c = this, l = c.s;
362
- if (e = new F(e, t), t = e.s, !l || !t) return new F(NaN);
381
+ if (e = new B(e, t), t = e.s, !l || !t) return new B(NaN);
363
382
  if (l != t) return e.s = -t, c.plus(e);
364
383
  var u = c.e / o, d = e.e / o, p = c.c, m = e.c;
365
384
  if (!u || !d) {
366
- if (!p || !m) return p ? (e.s = -t, e) : new F(m ? c : NaN);
367
- if (!p[0] || !m[0]) return m[0] ? (e.s = -t, e) : new F(p[0] ? c : T == 3 ? -0 : 0);
385
+ if (!p || !m) return p ? (e.s = -t, e) : new B(m ? c : NaN);
386
+ if (!p[0] || !m[0]) return m[0] ? (e.s = -t, e) : new B(p[0] ? c : k == 3 ? -0 : 0);
368
387
  }
369
388
  if (u = f(u), d = f(d), p = p.slice(), l = u - d) {
370
389
  for ((s = l < 0) ? (l = -l, i = p) : (d = u, i = m), i.reverse(), t = l; t--; i.push(0));
@@ -382,71 +401,71 @@ function d(e) {
382
401
  p[r] -= m[r];
383
402
  }
384
403
  for (; p[0] == 0; p.splice(0, 1), --d);
385
- return p[0] ? z(e, p, d) : (e.s = T == 3 ? -1 : 1, e.c = [e.e = 0], e);
386
- }, S.modulo = S.mod = function(e, t) {
404
+ return p[0] ? W(e, p, d) : (e.s = k == 3 ? -1 : 1, e.c = [e.e = 0], e);
405
+ }, E.modulo = E.mod = function(e, t) {
387
406
  var n, r, i = this;
388
- return e = new F(e, t), !i.c || !e.s || e.c && !e.c[0] ? new F(NaN) : !e.c || i.c && !i.c[0] ? new F(i) : (j == 9 ? (r = e.s, e.s = 1, n = y(i, e, 0, 3), e.s = r, n.s *= r) : n = y(i, e, 0, j), e = i.minus(n.times(e)), !e.c[0] && j == 1 && (e.s = i.s), e);
389
- }, S.multipliedBy = S.times = function(e, t) {
390
- var n, r, i, s, c, u, d, p, m, h, g, _, v, y, b, x = this, S = x.c, C = (e = new F(e, t)).c;
407
+ return e = new B(e, t), !i.c || !e.s || e.c && !e.c[0] ? new B(NaN) : !e.c || i.c && !i.c[0] ? new B(i) : (I == 9 ? (r = e.s, e.s = 1, n = y(i, e, 0, 3), e.s = r, n.s *= r) : n = y(i, e, 0, I), e = i.minus(n.times(e)), !e.c[0] && I == 1 && (e.s = i.s), e);
408
+ }, E.multipliedBy = E.times = function(e, t) {
409
+ var n, r, i, s, c, u, d, p, m, h, g, _, v, y, b, x = this, S = x.c, C = (e = new B(e, t)).c;
391
410
  if (!S || !C || !S[0] || !C[0]) return !x.s || !e.s || S && !S[0] && !C || C && !C[0] && !S ? e.c = e.e = e.s = null : (e.s *= x.s, !S || !C ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
392
411
  for (r = f(x.e / o) + f(e.e / o), e.s *= x.s, d = S.length, h = C.length, d < h && (v = S, S = C, C = v, i = d, d = h, h = i), i = d + h, v = []; i--; v.push(0));
393
412
  for (y = a, b = l, i = h; --i >= 0;) {
394
413
  for (n = 0, g = C[i] % b, _ = C[i] / b | 0, c = d, s = i + c; s > i;) p = S[--c] % b, m = S[c] / b | 0, u = _ * p + m * g, p = g * p + u % b * b + v[s] + n, n = (p / y | 0) + (u / b | 0) + _ * m, v[s--] = p % y;
395
414
  v[s] = n;
396
415
  }
397
- return n ? ++r : v.splice(0, 1), z(e, v, r);
398
- }, S.negated = function() {
399
- var e = new F(this);
416
+ return n ? ++r : v.splice(0, 1), W(e, v, r);
417
+ }, E.negated = function() {
418
+ var e = new B(this);
400
419
  return e.s = -e.s || null, e;
401
- }, S.plus = function(e, t) {
420
+ }, E.plus = function(e, t) {
402
421
  var n, r = this, i = r.s;
403
- if (e = new F(e, t), t = e.s, !i || !t) return new F(NaN);
422
+ if (e = new B(e, t), t = e.s, !i || !t) return new B(NaN);
404
423
  if (i != t) return e.s = -t, r.minus(e);
405
424
  var s = r.e / o, c = e.e / o, l = r.c, u = e.c;
406
425
  if (!s || !c) {
407
- if (!l || !u) return new F(i / 0);
408
- if (!l[0] || !u[0]) return u[0] ? e : new F(l[0] ? r : i * 0);
426
+ if (!l || !u) return new B(i / 0);
427
+ if (!l[0] || !u[0]) return u[0] ? e : new B(l[0] ? r : i * 0);
409
428
  }
410
429
  if (s = f(s), c = f(c), l = l.slice(), i = s - c) {
411
430
  for (i > 0 ? (c = s, n = u) : (i = -i, n = l), n.reverse(); i--; n.push(0));
412
431
  n.reverse();
413
432
  }
414
433
  for (i = l.length, t = u.length, i - t < 0 && (n = u, u = l, l = n, t = i), i = 0; t;) i = (l[--t] = l[t] + u[t] + i) / a | 0, l[t] = a === l[t] ? 0 : l[t] % a;
415
- return i && (l = [i].concat(l), ++c), z(e, l, c);
416
- }, S.precision = S.sd = function(e, t) {
434
+ return i && (l = [i].concat(l), ++c), W(e, l, c);
435
+ }, E.precision = E.sd = function(e, t) {
417
436
  var n, r, i, a = this;
418
- if (e != null && e !== !!e) return h(e, 1, u), t == null ? t = T : h(t, 0, 8), B(new F(a), e, t);
437
+ if (e != null && e !== !!e) return h(e, 1, u), t == null ? t = k : h(t, 0, 8), G(new B(a), e, t);
419
438
  if (!(n = a.c)) return null;
420
439
  if (i = n.length - 1, r = i * o + 1, i = n[i]) {
421
440
  for (; i % 10 == 0; i /= 10, r--);
422
441
  for (i = n[0]; i >= 10; i /= 10, r++);
423
442
  }
424
443
  return e && a.e + 1 > r && (r = a.e + 1), r;
425
- }, S.shiftedBy = function(e) {
444
+ }, E.shiftedBy = function(e) {
426
445
  return h(e, -s, s), this.times("1e" + e);
427
- }, S.squareRoot = S.sqrt = function() {
428
- var e, t, n, r, i, a = this, o = a.c, s = a.s, c = a.e, l = w + 4, u = new F("0.5");
429
- if (s !== 1 || !o || !o[0]) return new F(!s || s < 0 && (!o || o[0]) ? NaN : o ? a : Infinity);
430
- if (s = Math.sqrt(+V(a)), s == 0 || s == Infinity ? (t = p(o), (t.length + c) % 2 == 0 && (t += "0"), s = Math.sqrt(+t), c = f((c + 1) / 2) - (c < 0 || c % 2), s == Infinity ? t = "5e" + c : (t = s.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), n = new F(t)) : n = new F(s + ""), n.c[0]) {
446
+ }, E.squareRoot = E.sqrt = function() {
447
+ var e, t, n, r, i, a = this, o = a.c, s = a.s, c = a.e, l = O + 4, u = new B("0.5");
448
+ if (s !== 1 || !o || !o[0]) return new B(!s || s < 0 && (!o || o[0]) ? NaN : o ? a : Infinity);
449
+ if (s = Math.sqrt(+K(a)), s == 0 || s == Infinity ? (t = p(o), (t.length + c) % 2 == 0 && (t += "0"), s = Math.sqrt(+t), c = f((c + 1) / 2) - (c < 0 || c % 2), s == Infinity ? t = "5e" + c : (t = s.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), n = new B(t)) : n = new B(s + ""), n.c[0]) {
431
450
  for (c = n.e, s = c + l, s < 3 && (s = 0);;) if (i = n, n = u.times(i.plus(y(a, i, l, 1))), p(i.c).slice(0, s) === (t = p(n.c)).slice(0, s)) if (n.e < c && --s, t = t.slice(s - 3, s + 1), t == "9999" || !r && t == "4999") {
432
- if (!r && (B(i, i.e + w + 2, 0), i.times(i).eq(a))) {
451
+ if (!r && (G(i, i.e + O + 2, 0), i.times(i).eq(a))) {
433
452
  n = i;
434
453
  break;
435
454
  }
436
455
  l += 4, s += 4, r = 1;
437
456
  } else {
438
- (!+t || !+t.slice(1) && t.charAt(0) == "5") && (B(n, n.e + w + 2, 1), e = !n.times(n).eq(a));
457
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (G(n, n.e + O + 2, 1), e = !n.times(n).eq(a));
439
458
  break;
440
459
  }
441
460
  }
442
- return B(n, n.e + w + 1, T, e);
443
- }, S.toExponential = function(e, t) {
444
- return e != null && (h(e, 0, u), e++), I(this, e, t, 1);
445
- }, S.toFixed = function(e, t) {
446
- return e != null && (h(e, 0, u), e = e + this.e + 1), I(this, e, t);
447
- }, S.toFormat = function(e, t, n) {
461
+ return G(n, n.e + O + 1, k, e);
462
+ }, E.toExponential = function(e, t) {
463
+ return e != null && (h(e, 0, u), e++), V(this, e, t, 1);
464
+ }, E.toFixed = function(e, t) {
465
+ return e != null && (h(e, 0, u), e = e + this.e + 1), V(this, e, t);
466
+ }, E.toFormat = function(e, t, n) {
448
467
  var r, a = this;
449
- if (n == null) e != null && t && typeof t == "object" ? (n = t, t = null) : e && typeof e == "object" ? (n = e, e = t = null) : n = N;
468
+ if (n == null) e != null && t && typeof t == "object" ? (n = t, t = null) : e && typeof e == "object" ? (n = e, e = t = null) : n = R;
450
469
  else if (typeof n != "object") throw Error(i + "Argument not an object: " + n);
451
470
  if (r = a.toFixed(e, t), a.c) {
452
471
  var o, s = r.split("."), c = +n.groupSize, l = +n.secondaryGroupSize, u = n.groupSeparator || "", d = s[0], f = s[1], p = a.s < 0, m = p ? d.slice(1) : d, h = m.length;
@@ -457,29 +476,29 @@ function d(e) {
457
476
  r = f ? d + (n.decimalSeparator || "") + ((l = +n.fractionGroupSize) ? f.replace(RegExp("\\d{" + l + "}\\B", "g"), "$&" + (n.fractionGroupSeparator || "")) : f) : d;
458
477
  }
459
478
  return (n.prefix || "") + r + (n.suffix || "");
460
- }, S.toFraction = function(e) {
479
+ }, E.toFraction = function(e) {
461
480
  var t, n, r, a, s, l, u, d, f, m, h, g, _ = this, v = _.c;
462
- if (e != null && (u = new F(e), !u.isInteger() && (u.c || u.s !== 1) || u.lt(C))) throw Error(i + "Argument " + (u.isInteger() ? "out of range: " : "not an integer: ") + V(u));
463
- if (!v) return new F(_);
464
- for (t = new F(C), f = n = new F(C), r = d = new F(C), g = p(v), s = t.e = g.length - _.e - 1, t.c[0] = c[(l = s % o) < 0 ? o + l : l], e = !e || u.comparedTo(t) > 0 ? s > 0 ? t : f : u, l = k, k = Infinity, u = new F(g), d.c[0] = 0; m = y(u, t, 0, 1), a = n.plus(m.times(r)), a.comparedTo(e) != 1;) n = r, r = a, f = d.plus(m.times(a = f)), d = a, t = u.minus(m.times(a = t)), u = a;
465
- return a = y(e.minus(n), r, 0, 1), d = d.plus(a.times(f)), n = n.plus(a.times(r)), d.s = f.s = _.s, s *= 2, h = y(f, r, s, T).minus(_).abs().comparedTo(y(d, n, s, T).minus(_).abs()) < 1 ? [f, r] : [d, n], k = l, h;
466
- }, S.toNumber = function() {
467
- return +V(this);
468
- }, S.toObject = function() {
481
+ if (e != null && (u = new B(e), !u.isInteger() && (u.c || u.s !== 1) || u.lt(D))) throw Error(i + "Argument " + (u.isInteger() ? "out of range: " : "not an integer: ") + K(u));
482
+ if (!v) return [new B(_.s || 0), new B(0)];
483
+ for (t = new B(D), f = n = new B(D), r = d = new B(D), g = p(v), s = t.e = g.length - _.e - 1, t.c[0] = c[(l = s % o) < 0 ? o + l : l], e = !e || u.comparedTo(t) > 0 ? s > 0 ? t : f : u, l = N, N = Infinity, u = new B(g), d.c[0] = 0; m = y(u, t, 0, 1), a = n.plus(m.times(r)), a.comparedTo(e) != 1;) n = r, r = a, f = d.plus(m.times(a = f)), d = a, t = u.minus(m.times(a = t)), u = a;
484
+ return a = y(e.minus(n), r, 0, 1), d = d.plus(a.times(f)), n = n.plus(a.times(r)), d.s = f.s = _.s, s *= 2, h = y(f, r, s, k).minus(_).abs().comparedTo(y(d, n, s, k).minus(_).abs()) < 1 ? [f, r] : [d, n], N = l, h;
485
+ }, E.toNumber = function() {
486
+ return +K(this);
487
+ }, E.toObject = function() {
469
488
  var e = this;
470
489
  return {
471
490
  c: e.c ? e.c.slice() : null,
472
491
  e: e.e,
473
492
  s: e.s
474
493
  };
475
- }, S.toPrecision = function(e, t) {
476
- return e != null && h(e, 1, u), I(this, e, t, 2);
477
- }, S.toString = function(e) {
494
+ }, E.toPrecision = function(e, t) {
495
+ return e != null && h(e, 1, u), V(this, e, t, 2);
496
+ }, E.toString = function(e) {
478
497
  var t, n = this, r = n.s, i = n.e;
479
- return i === null ? r ? (t = "Infinity", r < 0 && (t = "-" + t)) : t = "NaN" : (e == null ? t = i <= E || i >= D ? _(p(n.c), i) : v(p(n.c), i, "0") : (h(e, 2, P.length, "Base"), t = b(v(p(n.c), i, "0"), 10, e, r, !0)), r < 0 && n.c[0] && (t = "-" + t)), t;
480
- }, S.valueOf = S.toJSON = function() {
481
- return V(this);
482
- }, S._isBigNumber = !0, e != null && F.set(e), F;
498
+ return i === null ? r ? (t = "Infinity", r < 0 && (t = "-" + t)) : t = "NaN" : (e == null ? t = i <= A || i >= j ? _(p(n.c), i) : v(p(n.c), i, "0") : (h(e, 2, z.length, "Base"), t = b(v(p(n.c), i, "0"), 10, e, r, !0)), r < 0 && n.c[0] && (t = "-" + t)), t;
499
+ }, E.valueOf = E.toJSON = function() {
500
+ return K(this);
501
+ }, E._isBigNumber = !0, e != null && B.set(e), B;
483
502
  }
484
503
  function f(e) {
485
504
  var t = e | 0;
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  /** 跳转谷歌身份检查 */
3
3
  export declare function toGoogleAuth(clientId: string, redirectUri: string): void;
4
4
  type GetPopupContainerFn = () => HTMLElement | Element;
@@ -21,7 +21,7 @@ declare const _comp_props: {
21
21
  export type GoogleAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
22
22
  /** 谷歌身份检查 */
23
23
  export declare const GoogleAuth: {
24
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
24
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
25
25
  clientId: StringConstructor;
26
26
  redirectUri: StringConstructor;
27
27
  defaultLoad: BooleanConstructor;
@@ -36,7 +36,7 @@ export declare const GoogleAuth: {
36
36
  onRejectCallback: {
37
37
  type: PropType<(error: any) => void>;
38
38
  };
39
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
39
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
40
40
  P: {};
41
41
  B: {};
42
42
  D: {};
@@ -62,7 +62,7 @@ export declare const GoogleAuth: {
62
62
  __isFragment?: never;
63
63
  __isTeleport?: never;
64
64
  __isSuspense?: never;
65
- } & import('vue').ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
65
+ } & ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
66
66
  clientId: StringConstructor;
67
67
  redirectUri: StringConstructor;
68
68
  defaultLoad: BooleanConstructor;
@@ -77,7 +77,7 @@ export declare const GoogleAuth: {
77
77
  onRejectCallback: {
78
78
  type: PropType<(error: any) => void>;
79
79
  };
80
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
80
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
81
81
  readonly toGoogleAuth: typeof toGoogleAuth;
82
- } & import('vue').Plugin;
82
+ } & Plugin;
83
83
  export default GoogleAuth;
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  /** 跳转Telegram身份检查 */
3
3
  export declare function toTelegramAuth(botId: number, toPath: string): void;
4
4
  /** 获取路由中的Telegram身份检查回调参数 */
@@ -31,7 +31,7 @@ declare const _comp_props: {
31
31
  export type TelegramAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
32
32
  /** Telegram身份检查 */
33
33
  export declare const TelegramAuth: {
34
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
34
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
35
35
  botId: NumberConstructor;
36
36
  toPath: StringConstructor;
37
37
  defaultLoad: BooleanConstructor;
@@ -44,7 +44,7 @@ export declare const TelegramAuth: {
44
44
  onRejectCallback: {
45
45
  type: PropType<() => void>;
46
46
  };
47
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
47
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
48
48
  P: {};
49
49
  B: {};
50
50
  D: {};
@@ -68,7 +68,7 @@ export declare const TelegramAuth: {
68
68
  __isFragment?: never;
69
69
  __isTeleport?: never;
70
70
  __isSuspense?: never;
71
- } & import('vue').ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
71
+ } & ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
72
72
  botId: NumberConstructor;
73
73
  toPath: StringConstructor;
74
74
  defaultLoad: BooleanConstructor;
@@ -81,8 +81,8 @@ export declare const TelegramAuth: {
81
81
  onRejectCallback: {
82
82
  type: PropType<() => void>;
83
83
  };
84
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
84
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
85
85
  readonly toTelegramAuth: typeof toTelegramAuth;
86
86
  readonly getTelegramAuthUrlParams: typeof getTelegramAuthUrlParams;
87
- } & import('vue').Plugin;
87
+ } & Plugin;
88
88
  export default TelegramAuth;
@@ -0,0 +1,3 @@
1
+ import { OxlintConfig } from 'oxlint';
2
+ /** 定义 Oxlint 配置 */
3
+ export declare function defineOxlintConfig(fn?: (config: OxlintConfig) => OxlintConfig): OxlintConfig;
@@ -0,0 +1,153 @@
1
+ //#region node_modules/.pnpm/oxlint@1.61.0/node_modules/oxlint/dist/index.js
2
+ function e(e) {
3
+ return e;
4
+ }
5
+ //#endregion
6
+ //#region src/hooks/defineOxlintConfig.ts
7
+ var t = {
8
+ plugins: [
9
+ "typescript",
10
+ "vue",
11
+ "unicorn"
12
+ ],
13
+ categories: { correctness: "off" },
14
+ env: {
15
+ builtin: !0,
16
+ browser: !0,
17
+ node: !0
18
+ },
19
+ ignorePatterns: [
20
+ "node_modules/**",
21
+ ".vscode/**",
22
+ "public/**",
23
+ "dist/**",
24
+ "**/*.sh",
25
+ "**/*.md",
26
+ "package-lock.json",
27
+ "pnpm-lock.yaml"
28
+ ],
29
+ rules: {
30
+ "constructor-super": "error",
31
+ "for-direction": "error",
32
+ "no-async-promise-executor": "error",
33
+ "no-case-declarations": "error",
34
+ "no-class-assign": "error",
35
+ "no-compare-neg-zero": "error",
36
+ "no-cond-assign": "error",
37
+ "no-const-assign": "error",
38
+ "no-constant-binary-expression": "error",
39
+ "no-constant-condition": "error",
40
+ "no-control-regex": "error",
41
+ "no-debugger": "error",
42
+ "no-delete-var": "error",
43
+ "no-dupe-class-members": "error",
44
+ "no-dupe-else-if": "error",
45
+ "no-dupe-keys": "error",
46
+ "no-duplicate-case": "error",
47
+ "no-empty": "error",
48
+ "no-empty-character-class": "error",
49
+ "no-empty-pattern": "error",
50
+ "no-empty-static-block": "error",
51
+ "no-ex-assign": "error",
52
+ "no-extra-boolean-cast": "error",
53
+ "no-fallthrough": "error",
54
+ "no-func-assign": "error",
55
+ "no-global-assign": "error",
56
+ "no-import-assign": "error",
57
+ "no-invalid-regexp": "error",
58
+ "no-irregular-whitespace": "error",
59
+ "no-loss-of-precision": "error",
60
+ "no-misleading-character-class": "error",
61
+ "no-new-native-nonconstructor": "error",
62
+ "no-nonoctal-decimal-escape": "error",
63
+ "no-obj-calls": "error",
64
+ "no-prototype-builtins": "error",
65
+ "no-redeclare": "error",
66
+ "no-regex-spaces": "error",
67
+ "no-self-assign": "error",
68
+ "no-setter-return": "error",
69
+ "no-shadow-restricted-names": "error",
70
+ "no-sparse-arrays": "error",
71
+ "no-this-before-super": "error",
72
+ "no-unassigned-vars": "error",
73
+ "no-unsafe-finally": "error",
74
+ "no-unsafe-negation": "error",
75
+ "no-unsafe-optional-chaining": "error",
76
+ "no-unused-labels": "error",
77
+ "no-unused-private-class-members": "error",
78
+ "no-unused-vars": ["error", {
79
+ argsIgnorePattern: "^_",
80
+ varsIgnorePattern: "^_|[A-Z_]+",
81
+ ignoreRestSiblings: !0
82
+ }],
83
+ "no-useless-backreference": "error",
84
+ "no-useless-catch": "error",
85
+ "no-useless-escape": "error",
86
+ "no-with": "error",
87
+ "preserve-caught-error": "error",
88
+ "require-yield": "error",
89
+ "use-isnan": "error",
90
+ "valid-typeof": "error",
91
+ "no-array-constructor": "error",
92
+ "no-unused-expressions": "error",
93
+ curly: ["error", "all"],
94
+ "prefer-template": "error",
95
+ "@typescript-eslint/no-duplicate-enum-values": "error",
96
+ "@typescript-eslint/no-empty-object-type": "error",
97
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
98
+ "@typescript-eslint/no-misused-new": "error",
99
+ "@typescript-eslint/no-namespace": "error",
100
+ "@typescript-eslint/no-require-imports": "error",
101
+ "@typescript-eslint/no-this-alias": "error",
102
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
103
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
104
+ "@typescript-eslint/no-unsafe-function-type": "error",
105
+ "@typescript-eslint/no-wrapper-object-types": "error",
106
+ "@typescript-eslint/prefer-as-const": "error",
107
+ "@typescript-eslint/prefer-namespace-keyword": "error",
108
+ "@typescript-eslint/triple-slash-reference": "error",
109
+ "vue/no-arrow-functions-in-watch": "error",
110
+ "vue/no-deprecated-destroyed-lifecycle": "error",
111
+ "vue/no-export-in-script-setup": "error",
112
+ "vue/no-lifecycle-after-await": "error",
113
+ "vue/prefer-import-from-vue": "error",
114
+ "vue/valid-define-emits": "error",
115
+ "vue/valid-define-props": "error",
116
+ "vue/no-multiple-slot-args": "warn",
117
+ "vue/no-required-prop-with-default": "warn"
118
+ },
119
+ overrides: [{
120
+ files: [
121
+ "**/*.ts",
122
+ "**/*.tsx",
123
+ "**/*.mts",
124
+ "**/*.cts"
125
+ ],
126
+ rules: {
127
+ "constructor-super": "off",
128
+ "no-class-assign": "off",
129
+ "no-const-assign": "off",
130
+ "no-dupe-class-members": "off",
131
+ "no-dupe-keys": "off",
132
+ "no-func-assign": "off",
133
+ "no-import-assign": "off",
134
+ "no-new-native-nonconstructor": "off",
135
+ "no-obj-calls": "off",
136
+ "no-redeclare": "off",
137
+ "no-setter-return": "off",
138
+ "no-this-before-super": "off",
139
+ "no-unsafe-negation": "off",
140
+ "no-var": "error",
141
+ "no-with": "off",
142
+ "prefer-const": "error",
143
+ "prefer-rest-params": "error",
144
+ "prefer-spread": "error"
145
+ }
146
+ }]
147
+ };
148
+ function n(n) {
149
+ let r = { ...t };
150
+ return e(n ? n(r) : r);
151
+ }
152
+ //#endregion
153
+ export { n as defineOxlintConfig };
@@ -1,7 +1,8 @@
1
+ import { Ref } from 'vue';
1
2
  export declare function useCopyToClipboard(initial?: string): {
2
- clipboardRef: import('vue').Ref<string, string>;
3
- isSuccessRef: import('vue').Ref<boolean, boolean>;
4
- copiedRef: import('vue').Ref<boolean, boolean>;
3
+ clipboardRef: Ref<string, string>;
4
+ isSuccessRef: Ref<boolean, boolean>;
5
+ copiedRef: Ref<boolean, boolean>;
5
6
  };
6
7
  export declare function copyTextToClipboard(input: string, { target }?: {
7
8
  target?: HTMLElement;
@@ -1,3 +1,6 @@
1
+ import { VNode, RendererNode, RendererElement, Plugin, Ref, WatchSource, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
2
+ import { BigNumber } from 'bignumber.js';
3
+ import { default as __DTS_DEFAULT_0__ } from './utils/vuePropTypes';
1
4
  import * as Comps from './components';
2
5
  import * as Hooks from './hooks';
3
6
  import * as Utils from './utils';
@@ -11,11 +14,11 @@ declare const JKVUEComps: {
11
14
  evalPro(str: string): any;
12
15
  filterInputNum(eventVal: string | number, type?: "int" | "float", maxDecimal?: number): string;
13
16
  generateFilterInputNumFn<T extends Recordable, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: "float" | "int", maxDecimal?: number): (e: ChangeEvent) => void;
14
- renderHtmlStr(html: string): string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
17
+ renderHtmlStr(html: string): string | VNode<RendererNode, RendererElement, {
15
18
  [key: string]: any;
16
19
  }>;
17
20
  getWebsiteUrl(): string;
18
- getRouterParams(): any;
21
+ getRouterParams(): Recordable<any> | undefined;
19
22
  removeWhitespace(str: any): string;
20
23
  deepMerge<T = any>(src?: any, target?: any): T;
21
24
  desensitization(str?: string | number, number?: number, { showPrefix, showSuffix, middleStr }?: {
@@ -24,7 +27,7 @@ declare const JKVUEComps: {
24
27
  middleStr?: string;
25
28
  }): string | undefined;
26
29
  toStyleUnit(str?: string | number | null, unit?: string): string | undefined;
27
- toStyleObject(style?: string | Recordable | null): any;
30
+ toStyleObject(style?: string | Recordable | null): Recordable<any>;
28
31
  is(val: unknown, type: string): boolean;
29
32
  isDef<T = unknown>(val?: T): val is T;
30
33
  isUnDef<T = unknown>(val?: T): val is T;
@@ -66,7 +69,7 @@ declare const JKVUEComps: {
66
69
  isEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
67
70
  isGreaterThanOrEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
68
71
  isLessThanOrEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
69
- toBigNum(val: Utils.BigNumValType): import('bignumber.js').BigNumber;
72
+ toBigNum(val: Utils.BigNumValType): BigNumber;
70
73
  toNum(val: Utils.BigNumValType): number;
71
74
  toInt(val: Utils.BigNumValType, isUp?: boolean): number;
72
75
  toString(val: Utils.BigNumValType): string;
@@ -81,143 +84,143 @@ declare const JKVUEComps: {
81
84
  unFormatRate(val: Utils.BigNumValType): number;
82
85
  DOWN: 1;
83
86
  UP: 0;
84
- BigNumber: typeof import('bignumber.js').BigNumber;
87
+ BigNumber: BigNumber;
85
88
  gt: typeof Utils.isGreaterThan;
86
89
  gte: typeof Utils.isGreaterThanOrEqualTo;
87
90
  lt: typeof Utils.isLessThan;
88
91
  lte: typeof Utils.isLessThanOrEqualTo;
89
92
  eq: typeof Utils.isEqualTo;
90
93
  isNan: typeof Utils.isNanValue;
91
- propTypes: typeof import('./utils/vuePropTypes').default;
94
+ propTypes: __DTS_DEFAULT_0__;
92
95
  timeZoneOptions: Utils.TimeZoneItem[];
93
- withInstall<T>(component: T, alias?: string): T & import('vue').Plugin;
96
+ withInstall<T>(component: T, alias?: string): T & Plugin;
94
97
  useCopyToClipboard(initial?: string): {
95
- clipboardRef: import('vue').Ref<string, string>;
96
- isSuccessRef: import('vue').Ref<boolean, boolean>;
97
- copiedRef: import('vue').Ref<boolean, boolean>;
98
+ clipboardRef: Ref<string, string>;
99
+ isSuccessRef: Ref<boolean, boolean>;
100
+ copiedRef: Ref<boolean, boolean>;
98
101
  };
99
102
  copyTextToClipboard(input: string, { target }?: {
100
103
  target?: HTMLElement;
101
104
  }): boolean;
102
- useFormKeypressEnter<T extends (...args: any[]) => any, L extends import('vue').WatchSource<boolean>>(fn: T, loading: L): (...args: any[]) => any;
103
- useMemo<T>(getValue: () => T, condition: (import('vue').WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): import('vue').Ref<T, T>;
105
+ useFormKeypressEnter<T extends (...args: any[]) => any, L extends WatchSource<boolean>>(fn: T, loading: L): (...args: any[]) => any;
106
+ useMemo<T>(getValue: () => T, condition: ( WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): Ref<T, T>;
104
107
  toGoogleAuth(clientId: string, redirectUri: string): void;
105
108
  GoogleAuth: {
106
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vue').ExtractPropTypes<{
109
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial< ExtractPropTypes<{
107
110
  clientId: StringConstructor;
108
111
  redirectUri: StringConstructor;
109
112
  defaultLoad: BooleanConstructor;
110
113
  getPopupContainer: {
111
- type: import('vue').PropType<() => HTMLElement | Element>;
114
+ type: PropType<() => HTMLElement | Element>;
112
115
  };
113
116
  onCallback: {
114
- type: import('vue').PropType<(data: {
117
+ type: PropType<(data: {
115
118
  code: string;
116
119
  }) => void>;
117
120
  };
118
121
  onRejectCallback: {
119
- type: import('vue').PropType<(error: any) => void>;
122
+ type: PropType<(error: any) => void>;
120
123
  };
121
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
124
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
122
125
  P: {};
123
126
  B: {};
124
127
  D: {};
125
128
  C: {};
126
129
  M: {};
127
130
  Defaults: {};
128
- }, Readonly<Partial<import('vue').ExtractPropTypes<{
131
+ }, Readonly<Partial< ExtractPropTypes<{
129
132
  clientId: StringConstructor;
130
133
  redirectUri: StringConstructor;
131
134
  defaultLoad: BooleanConstructor;
132
135
  getPopupContainer: {
133
- type: import('vue').PropType<() => HTMLElement | Element>;
136
+ type: PropType<() => HTMLElement | Element>;
134
137
  };
135
138
  onCallback: {
136
- type: import('vue').PropType<(data: {
139
+ type: PropType<(data: {
137
140
  code: string;
138
141
  }) => void>;
139
142
  };
140
143
  onRejectCallback: {
141
- type: import('vue').PropType<(error: any) => void>;
144
+ type: PropType<(error: any) => void>;
142
145
  };
143
146
  }>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
144
147
  __isFragment?: never;
145
148
  __isTeleport?: never;
146
149
  __isSuspense?: never;
147
- } & import('vue').ComponentOptionsBase<Readonly<Partial<import('vue').ExtractPropTypes<{
150
+ } & ComponentOptionsBase<Readonly<Partial< ExtractPropTypes<{
148
151
  clientId: StringConstructor;
149
152
  redirectUri: StringConstructor;
150
153
  defaultLoad: BooleanConstructor;
151
154
  getPopupContainer: {
152
- type: import('vue').PropType<() => HTMLElement | Element>;
155
+ type: PropType<() => HTMLElement | Element>;
153
156
  };
154
157
  onCallback: {
155
- type: import('vue').PropType<(data: {
158
+ type: PropType<(data: {
156
159
  code: string;
157
160
  }) => void>;
158
161
  };
159
162
  onRejectCallback: {
160
- type: import('vue').PropType<(error: any) => void>;
163
+ type: PropType<(error: any) => void>;
161
164
  };
162
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
165
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
163
166
  readonly toGoogleAuth: typeof Comps.toGoogleAuth;
164
- } & import('vue').Plugin;
167
+ } & Plugin;
165
168
  toTelegramAuth(botId: number, toPath: string): void;
166
169
  getTelegramAuthUrlParams(): Comps.TgUserData | null;
167
170
  TelegramAuth: {
168
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vue').ExtractPropTypes<{
171
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial< ExtractPropTypes<{
169
172
  botId: NumberConstructor;
170
173
  toPath: StringConstructor;
171
174
  defaultLoad: BooleanConstructor;
172
175
  getPopupContainer: {
173
- type: import('vue').PropType<() => HTMLElement | Element>;
176
+ type: PropType<() => HTMLElement | Element>;
174
177
  };
175
178
  onCallback: {
176
- type: import('vue').PropType<(user: Comps.TgUserData) => void>;
179
+ type: PropType<(user: Comps.TgUserData) => void>;
177
180
  };
178
181
  onRejectCallback: {
179
- type: import('vue').PropType<() => void>;
182
+ type: PropType<() => void>;
180
183
  };
181
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
184
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
182
185
  P: {};
183
186
  B: {};
184
187
  D: {};
185
188
  C: {};
186
189
  M: {};
187
190
  Defaults: {};
188
- }, Readonly<Partial<import('vue').ExtractPropTypes<{
191
+ }, Readonly<Partial< ExtractPropTypes<{
189
192
  botId: NumberConstructor;
190
193
  toPath: StringConstructor;
191
194
  defaultLoad: BooleanConstructor;
192
195
  getPopupContainer: {
193
- type: import('vue').PropType<() => HTMLElement | Element>;
196
+ type: PropType<() => HTMLElement | Element>;
194
197
  };
195
198
  onCallback: {
196
- type: import('vue').PropType<(user: Comps.TgUserData) => void>;
199
+ type: PropType<(user: Comps.TgUserData) => void>;
197
200
  };
198
201
  onRejectCallback: {
199
- type: import('vue').PropType<() => void>;
202
+ type: PropType<() => void>;
200
203
  };
201
204
  }>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
202
205
  __isFragment?: never;
203
206
  __isTeleport?: never;
204
207
  __isSuspense?: never;
205
- } & import('vue').ComponentOptionsBase<Readonly<Partial<import('vue').ExtractPropTypes<{
208
+ } & ComponentOptionsBase<Readonly<Partial< ExtractPropTypes<{
206
209
  botId: NumberConstructor;
207
210
  toPath: StringConstructor;
208
211
  defaultLoad: BooleanConstructor;
209
212
  getPopupContainer: {
210
- type: import('vue').PropType<() => HTMLElement | Element>;
213
+ type: PropType<() => HTMLElement | Element>;
211
214
  };
212
215
  onCallback: {
213
- type: import('vue').PropType<(user: Comps.TgUserData) => void>;
216
+ type: PropType<(user: Comps.TgUserData) => void>;
214
217
  };
215
218
  onRejectCallback: {
216
- type: import('vue').PropType<() => void>;
219
+ type: PropType<() => void>;
217
220
  };
218
- }>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
221
+ }>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
219
222
  readonly toTelegramAuth: typeof Comps.toTelegramAuth;
220
223
  readonly getTelegramAuthUrlParams: typeof Comps.getTelegramAuthUrlParams;
221
- } & import('vue').Plugin;
224
+ } & Plugin;
222
225
  };
223
226
  export default JKVUEComps;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { is as ee, isArray as e, isBoolean as te, isClient as ne, isDate as re, isDef as t, isEdgeBrowser as n, isElement as r, isEmail as i, isEmpty as a, isFunction as o, isHtmlStr as s, isInMobileBrowser as c, isIp as l, isMap as u, isNull as d, isNullAndUnDef as f, isNullOrUnDef as p, isNumber as m, isObject as h, isPromise as g, isPromiseLink as _, isRegExp as v, isServer as y, isString as b, isUnDef as x, isUrl as S, isValidPhoneNumber as C, isWindow as w, isZhLang as T } from "./utils/is.js";
2
- import { A as E, C as D, D as O, E as k, M as A, N as j, O as M, S as N, T as P, _ as F, a as I, b as L, c as R, d as z, f as B, g as V, h as H, i as U, j as W, k as G, l as K, m as q, n as J, o as Y, p as X, r as ie, s as ae, t as oe, u as se, v as ce, w as le, x as ue, y as de } from "./chunks/math-Dcn-34Qj.js";
2
+ import { A as E, C as D, D as O, E as k, M as A, N as j, O as M, S as N, T as P, _ as F, a as I, b as L, c as R, d as z, f as B, g as V, h as H, i as U, j as W, k as G, l as K, m as q, n as J, o as Y, p as X, r as ie, s as ae, t as oe, u as se, v as ce, w as le, x as ue, y as de } from "./chunks/math-8-eFBEYm.js";
3
3
  import { propTypes as fe } from "./utils/vuePropTypes.js";
4
4
  import { timeZoneOptions as pe } from "./utils/timeZone.js";
5
5
  import { withInstall as me } from "./utils/withInstall.js";
@@ -1,3 +1,4 @@
1
+ import { VNode, RendererNode, RendererElement } from 'vue';
1
2
  export * from './is';
2
3
  export * from './math';
3
4
  export * from './vuePropTypes';
@@ -20,13 +21,13 @@ export declare function filterInputNum(eventVal: string | number, type?: 'int' |
20
21
  */
21
22
  export declare function generateFilterInputNumFn<T extends Recordable, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: 'float' | 'int', maxDecimal?: number): (e: ChangeEvent) => void;
22
23
  /** 渲染Html字符串片段 */
23
- export declare function renderHtmlStr(html: string): string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ export declare function renderHtmlStr(html: string): string | VNode<RendererNode, RendererElement, {
24
25
  [key: string]: any;
25
26
  }>;
26
27
  /** 获取当前网站协议+域名 */
27
28
  export declare function getWebsiteUrl(): string;
28
29
  /** 获取路由参数 */
29
- export declare function getRouterParams(): any;
30
+ export declare function getRouterParams(): Recordable<any> | undefined;
30
31
  /** 去除字符串里的所有空字符 */
31
32
  export declare function removeWhitespace(str: any): string;
32
33
  /** 深度合并 */
@@ -51,4 +52,4 @@ export declare function desensitization(str?: string | number, number?: number,
51
52
  */
52
53
  export declare function toStyleUnit(str?: string | number | null, unit?: string): string | undefined;
53
54
  /** 数字转为样式对象 */
54
- export declare function toStyleObject(style?: string | Recordable | null): any;
55
+ export declare function toStyleObject(style?: string | Recordable | null): Recordable<any>;
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../chunks/chunk-cBPL4W67.js";
2
2
  import { is as t, isArray as n, isBoolean as r, isClient as i, isDate as a, isDef as o, isEdgeBrowser as s, isElement as c, isEmail as l, isEmpty as u, isFunction as d, isHtmlStr as f, isInMobileBrowser as p, isIp as ee, isMap as te, isNull as ne, isNullAndUnDef as m, isNullOrUnDef as h, isNumber as g, isObject as _, isPromise as v, isPromiseLink as y, isRegExp as b, isServer as x, isString as S, isUnDef as C, isUrl as w, isValidPhoneNumber as T, isWindow as E, isZhLang as D } from "./is.js";
3
- import { A as O, C as k, D as A, E as j, M, N, O as P, S as F, T as I, _ as L, a as R, b as z, c as B, d as V, f as H, g as U, h as W, i as G, j as K, k as q, l as J, m as Y, n as re, o as X, p as ie, r as ae, s as oe, t as se, u as ce, v as le, w as ue, x as de, y as fe } from "../chunks/math-Dcn-34Qj.js";
3
+ import { A as O, C as k, D as A, E as j, M, N, O as P, S as F, T as I, _ as L, a as R, b as z, c as B, d as V, f as H, g as U, h as W, i as G, j as K, k as q, l as J, m as Y, n as re, o as X, p as ie, r as ae, s as oe, t as se, u as ce, v as le, w as ue, x as de, y as fe } from "../chunks/math-8-eFBEYm.js";
4
4
  import { propTypes as pe } from "./vuePropTypes.js";
5
5
  import { timeZoneOptions as me } from "./timeZone.js";
6
6
  import { withInstall as he } from "./withInstall.js";
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M } from "../chunks/math-Dcn-34Qj.js";
1
+ import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M } from "../chunks/math-8-eFBEYm.js";
2
2
  export { D as BigNumber, S as DOWN, T as UP, _ as add, u as divide, C as eq, E as formatRate, f as gt, b as gte, O as helper, p as isBigNum, m as isBool, w as isEqualTo, x as isGreaterThan, g as isGreaterThanOrEqualTo, h as isInt, l as isLessThan, k as isLessThanOrEqualTo, M as isNan, d as isNanValue, j as isNum, s as lt, t as lte, A as multiply, c as power, r as subtract, n as toBigNum, o as toDecimalPlaces, y as toInt, e as toLocaleString, v as toNum, i as toString, a as unFormatRate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jk-vue-comps",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "jk-vue-comps",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "scripts": {
21
21
  "dev": "vite",
22
- "build": "vue-tsc && vite build",
22
+ "build": "pnpm delete:dist && vue-tsc && vite build",
23
23
  "preview": "vite preview",
24
24
  "ts:check": "tsc --project tsconfig.json --noEmitOnError",
25
25
  "delete:lib": "rimraf pnpm-lock.yaml node_modules",
@@ -30,20 +30,20 @@
30
30
  "lint:all": "pnpm lint:fmt && pnpm lint:ox"
31
31
  },
32
32
  "dependencies": {
33
- "bignumber.js": "10.0.2",
34
- "vue": "3.5.32",
33
+ "bignumber.js": "11.0.0",
34
+ "vue": "3.5.33",
35
35
  "vue-types": "6.0.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "22.18.0",
39
- "@vitejs/plugin-vue": "6.0.5",
39
+ "@vitejs/plugin-vue": "6.0.6",
40
40
  "@vitejs/plugin-vue-jsx": "5.1.5",
41
- "oxfmt": "^0.44.0",
42
- "oxlint": "^1.59.0",
43
- "typescript": "6.0.2",
44
- "vite": "8.0.7",
41
+ "oxfmt": "^0.46.0",
42
+ "oxlint": "^1.61.0",
43
+ "typescript": "6.0.3",
44
+ "vite": "8.0.10",
45
45
  "vite-plugin-dts": "^4.5.4",
46
46
  "rimraf": "^6.1.3",
47
- "vue-tsc": "^3.2.6"
47
+ "vue-tsc": "^3.2.7"
48
48
  }
49
49
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes