xto-fronted 0.8.2 → 0.8.4

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,9 +1,9 @@
1
1
  import { ref as Ie } from "vue";
2
2
  import Ze from "axios";
3
3
  import { Message as ce } from "@xto/feedback";
4
- const me = "xto_", Ve = (l) => ({
4
+ const me = "xto_", Ve = (c) => ({
5
5
  get(g) {
6
- const w = l.getItem(me + g);
6
+ const w = c.getItem(me + g);
7
7
  if (!w) return null;
8
8
  try {
9
9
  return JSON.parse(w);
@@ -13,18 +13,18 @@ const me = "xto_", Ve = (l) => ({
13
13
  },
14
14
  set(g, w) {
15
15
  if (w == null) {
16
- l.removeItem(me + g);
16
+ c.removeItem(me + g);
17
17
  return;
18
18
  }
19
19
  const m = typeof w == "string" ? w : JSON.stringify(w);
20
- l.setItem(me + g, m);
20
+ c.setItem(me + g, m);
21
21
  },
22
22
  remove(g) {
23
- l.removeItem(me + g);
23
+ c.removeItem(me + g);
24
24
  },
25
25
  clear() {
26
- Object.keys(l).forEach((w) => {
27
- w.startsWith(me) && l.removeItem(w);
26
+ Object.keys(c).forEach((w) => {
27
+ w.startsWith(me) && c.removeItem(w);
28
28
  });
29
29
  }
30
30
  }), ve = Ve(window.localStorage), Ae = Ve(window.sessionStorage), K = {
@@ -32,41 +32,41 @@ const me = "xto_", Ve = (l) => ({
32
32
  set: ve.set,
33
33
  remove: ve.remove,
34
34
  clear: ve.clear
35
- }, yr = {
35
+ }, Ir = {
36
36
  get: Ae.get,
37
37
  set: Ae.set,
38
38
  remove: Ae.remove,
39
39
  clear: Ae.clear
40
- }, Ce = "token", Le = "token_type", Me = "refresh_token", be = "expires_time", Fe = "refresh_time", je = "code", ze = () => K.get(Ce), er = (l) => {
41
- K.set(Ce, l);
42
- }, rr = () => K.get(Le), tr = (l) => {
43
- K.set(Le, l);
44
- }, Ir = () => K.get(Me), nr = (l) => {
45
- K.set(Me, l);
46
- }, ir = () => K.get(be), or = (l) => {
47
- K.set(be, l);
48
- }, xr = () => K.get(Fe), sr = (l) => {
49
- K.set(Fe, l);
50
- }, Br = () => K.get(je), fr = (l) => {
51
- K.set(je, l);
52
- }, Tr = (l) => {
53
- er(l.access_token), tr(l.token_type || "Bearer"), nr(l.refresh_token), or(l.expires_time), sr(l.refresh_time), l.code && fr(l.code);
40
+ }, Ce = "token", Le = "token_type", Me = "refresh_token", be = "expires_time", Fe = "refresh_time", $e = "code", ze = () => K.get(Ce), er = (c) => {
41
+ K.set(Ce, c);
42
+ }, rr = () => K.get(Le), tr = (c) => {
43
+ K.set(Le, c);
44
+ }, xr = () => K.get(Me), nr = (c) => {
45
+ K.set(Me, c);
46
+ }, ir = () => K.get(be), or = (c) => {
47
+ K.set(be, c);
48
+ }, Br = () => K.get(Fe), sr = (c) => {
49
+ K.set(Fe, c);
50
+ }, Tr = () => K.get($e), fr = (c) => {
51
+ K.set($e, c);
52
+ }, Sr = (c) => {
53
+ er(c.access_token), tr(c.token_type || "Bearer"), nr(c.refresh_token), or(c.expires_time), sr(c.refresh_time), c.code && fr(c.code);
54
54
  }, Ue = () => {
55
- K.remove(Ce), K.remove(Le), K.remove(Me), K.remove(be), K.remove(Fe), K.remove(je);
55
+ K.remove(Ce), K.remove(Le), K.remove(Me), K.remove(be), K.remove(Fe), K.remove($e);
56
56
  }, ur = () => {
57
- const l = ir();
58
- return l ? Date.now() > l : !0;
59
- }, Sr = () => !!ze() && !ur();
57
+ const c = ir();
58
+ return c ? Date.now() > c : !0;
59
+ }, Pr = () => !!ze() && !ur();
60
60
  var cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
61
- function lr(l) {
62
- return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
61
+ function lr(c) {
62
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
63
63
  }
64
64
  var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
65
- (function(l) {
65
+ (function(c) {
66
66
  (function(g) {
67
67
  var w, m = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, C = Math.ceil, U = Math.floor, D = "[BigNumber Error] ", I = D + "Number primitive has more than 15 significant digits: ", H = 1e14, N = 14, M = 9007199254740991, X = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], B = 1e7, P = 1e9;
68
68
  function re(O) {
69
- var y, b, q, d = p.prototype = { constructor: p, toString: null, valueOf: null }, V = new p(1), L = 20, j = 4, Z = -7, ee = 21, he = -1e7, ie = 1e7, pe = !1, de = 1, le = 0, Be = {
69
+ var y, b, q, d = p.prototype = { constructor: p, toString: null, valueOf: null }, V = new p(1), L = 20, $ = 4, Z = -7, ee = 21, he = -1e7, ie = 1e7, pe = !1, de = 1, le = 0, Be = {
70
70
  prefix: "",
71
71
  groupSize: 3,
72
72
  secondaryGroupSize: 0,
@@ -78,7 +78,7 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
78
78
  suffix: ""
79
79
  }, ge = "0123456789abcdefghijklmnopqrstuvwxyz", Te = !0;
80
80
  function p(e, r) {
81
- var t, u, i, s, a, n, o, c, f = this;
81
+ var t, u, i, s, a, n, o, l, f = this;
82
82
  if (!(f instanceof p)) return new p(e, r);
83
83
  if (r == null) {
84
84
  if (e && e._isBigNumber === !0) {
@@ -91,39 +91,39 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
91
91
  s > ie ? f.c = f.e = null : (f.e = s, f.c = [e]);
92
92
  return;
93
93
  }
94
- c = String(e);
94
+ l = String(e);
95
95
  } else {
96
- if (!m.test(c = String(e))) return q(f, c, n);
97
- f.s = c.charCodeAt(0) == 45 ? (c = c.slice(1), -1) : 1;
96
+ if (!m.test(l = String(e))) return q(f, l, n);
97
+ f.s = l.charCodeAt(0) == 45 ? (l = l.slice(1), -1) : 1;
98
98
  }
99
- (s = c.indexOf(".")) > -1 && (c = c.replace(".", "")), (a = c.search(/e/i)) > 0 ? (s < 0 && (s = a), s += +c.slice(a + 1), c = c.substring(0, a)) : s < 0 && (s = c.length);
99
+ (s = l.indexOf(".")) > -1 && (l = l.replace(".", "")), (a = l.search(/e/i)) > 0 ? (s < 0 && (s = a), s += +l.slice(a + 1), l = l.substring(0, a)) : s < 0 && (s = l.length);
100
100
  } else {
101
101
  if (v(r, 2, ge.length, "Base"), r == 10 && Te)
102
- return f = new p(e), te(f, L + f.e + 1, j);
103
- if (c = String(e), n = typeof e == "number") {
104
- if (e * 0 != 0) return q(f, c, n, r);
105
- if (f.s = 1 / e < 0 ? (c = c.slice(1), -1) : 1, p.DEBUG && c.replace(/^0\.0*|\./, "").length > 15)
102
+ return f = new p(e), te(f, L + f.e + 1, $);
103
+ if (l = String(e), n = typeof e == "number") {
104
+ if (e * 0 != 0) return q(f, l, n, r);
105
+ if (f.s = 1 / e < 0 ? (l = l.slice(1), -1) : 1, p.DEBUG && l.replace(/^0\.0*|\./, "").length > 15)
106
106
  throw Error(I + e);
107
107
  } else
108
- f.s = c.charCodeAt(0) === 45 ? (c = c.slice(1), -1) : 1;
109
- for (t = ge.slice(0, r), s = a = 0, o = c.length; a < o; a++)
110
- if (t.indexOf(u = c.charAt(a)) < 0) {
108
+ f.s = l.charCodeAt(0) === 45 ? (l = l.slice(1), -1) : 1;
109
+ for (t = ge.slice(0, r), s = a = 0, o = l.length; a < o; a++)
110
+ if (t.indexOf(u = l.charAt(a)) < 0) {
111
111
  if (u == ".") {
112
112
  if (a > s) {
113
113
  s = o;
114
114
  continue;
115
115
  }
116
- } else if (!i && (c == c.toUpperCase() && (c = c.toLowerCase()) || c == c.toLowerCase() && (c = c.toUpperCase()))) {
116
+ } else if (!i && (l == l.toUpperCase() && (l = l.toLowerCase()) || l == l.toLowerCase() && (l = l.toUpperCase()))) {
117
117
  i = !0, a = -1, s = 0;
118
118
  continue;
119
119
  }
120
120
  return q(f, String(e), n, r);
121
121
  }
122
- n = !1, c = b(c, r, 10, f.s), (s = c.indexOf(".")) > -1 ? c = c.replace(".", "") : s = c.length;
122
+ n = !1, l = b(l, r, 10, f.s), (s = l.indexOf(".")) > -1 ? l = l.replace(".", "") : s = l.length;
123
123
  }
124
- for (a = 0; c.charCodeAt(a) === 48; a++) ;
125
- for (o = c.length; c.charCodeAt(--o) === 48; ) ;
126
- if (c = c.slice(a, ++o)) {
124
+ for (a = 0; l.charCodeAt(a) === 48; a++) ;
125
+ for (o = l.length; l.charCodeAt(--o) === 48; ) ;
126
+ if (l = l.slice(a, ++o)) {
127
127
  if (o -= a, n && p.DEBUG && o > 15 && (e > M || e !== U(e)))
128
128
  throw Error(I + f.s * e);
129
129
  if ((s = s - a - 1) > ie)
@@ -132,13 +132,13 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
132
132
  f.c = [f.e = 0];
133
133
  else {
134
134
  if (f.e = s, f.c = [], a = (s + 1) % N, s < 0 && (a += N), a < o) {
135
- for (a && f.c.push(+c.slice(0, a)), o -= N; a < o; )
136
- f.c.push(+c.slice(a, a += N));
137
- a = N - (c = c.slice(a)).length;
135
+ for (a && f.c.push(+l.slice(0, a)), o -= N; a < o; )
136
+ f.c.push(+l.slice(a, a += N));
137
+ a = N - (l = l.slice(a)).length;
138
138
  } else
139
139
  a -= o;
140
- for (; a--; c += "0") ;
141
- f.c.push(+c);
140
+ for (; a--; l += "0") ;
141
+ f.c.push(+l);
142
142
  }
143
143
  } else
144
144
  f.c = [f.e = 0];
@@ -147,7 +147,7 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
147
147
  var r, t;
148
148
  if (e != null)
149
149
  if (typeof e == "object") {
150
- if (e.hasOwnProperty(r = "DECIMAL_PLACES") && (t = e[r], v(t, 0, P, r), L = t), e.hasOwnProperty(r = "ROUNDING_MODE") && (t = e[r], v(t, 0, 8, r), j = t), e.hasOwnProperty(r = "EXPONENTIAL_AT") && (t = e[r], t && t.pop ? (v(t[0], -P, 0, r), v(t[1], 0, P, r), Z = t[0], ee = t[1]) : (v(t, -P, P, r), Z = -(ee = t < 0 ? -t : t))), e.hasOwnProperty(r = "RANGE"))
150
+ if (e.hasOwnProperty(r = "DECIMAL_PLACES") && (t = e[r], v(t, 0, P, r), L = t), e.hasOwnProperty(r = "ROUNDING_MODE") && (t = e[r], v(t, 0, 8, r), $ = t), e.hasOwnProperty(r = "EXPONENTIAL_AT") && (t = e[r], t && t.pop ? (v(t[0], -P, 0, r), v(t[1], 0, P, r), Z = t[0], ee = t[1]) : (v(t, -P, P, r), Z = -(ee = t < 0 ? -t : t))), e.hasOwnProperty(r = "RANGE"))
151
151
  if (t = e[r], t && t.pop)
152
152
  v(t[0], -P, -1, r), v(t[1], 1, P, r), he = t[0], ie = t[1];
153
153
  else if (v(t, -P, P, r), t)
@@ -177,7 +177,7 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
177
177
  throw Error(D + "Object expected: " + e);
178
178
  return {
179
179
  DECIMAL_PLACES: L,
180
- ROUNDING_MODE: j,
180
+ ROUNDING_MODE: $,
181
181
  EXPONENTIAL_AT: [Z, ee],
182
182
  RANGE: [he, ie],
183
183
  CRYPTO: pe,
@@ -216,30 +216,30 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
216
216
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
217
217
  };
218
218
  return function(t) {
219
- var u, i, s, a, n, o = 0, c = [], f = new p(V);
219
+ var u, i, s, a, n, o = 0, l = [], f = new p(V);
220
220
  if (t == null ? t = L : v(t, 0, P), a = C(t / N), pe)
221
221
  if (crypto.getRandomValues) {
222
222
  for (u = crypto.getRandomValues(new Uint32Array(a *= 2)); o < a; )
223
- n = u[o] * 131072 + (u[o + 1] >>> 11), n >= 9e15 ? (i = crypto.getRandomValues(new Uint32Array(2)), u[o] = i[0], u[o + 1] = i[1]) : (c.push(n % 1e14), o += 2);
223
+ n = u[o] * 131072 + (u[o + 1] >>> 11), n >= 9e15 ? (i = crypto.getRandomValues(new Uint32Array(2)), u[o] = i[0], u[o + 1] = i[1]) : (l.push(n % 1e14), o += 2);
224
224
  o = a / 2;
225
225
  } else if (crypto.randomBytes) {
226
226
  for (u = crypto.randomBytes(a *= 7); o < a; )
227
- n = (u[o] & 31) * 281474976710656 + u[o + 1] * 1099511627776 + u[o + 2] * 4294967296 + u[o + 3] * 16777216 + (u[o + 4] << 16) + (u[o + 5] << 8) + u[o + 6], n >= 9e15 ? crypto.randomBytes(7).copy(u, o) : (c.push(n % 1e14), o += 7);
227
+ n = (u[o] & 31) * 281474976710656 + u[o + 1] * 1099511627776 + u[o + 2] * 4294967296 + u[o + 3] * 16777216 + (u[o + 4] << 16) + (u[o + 5] << 8) + u[o + 6], n >= 9e15 ? crypto.randomBytes(7).copy(u, o) : (l.push(n % 1e14), o += 7);
228
228
  o = a / 7;
229
229
  } else
230
230
  throw pe = !1, Error(D + "crypto unavailable");
231
231
  if (!pe)
232
232
  for (; o < a; )
233
- n = r(), n < 9e15 && (c[o++] = n % 1e14);
234
- for (a = c[--o], t %= N, a && t && (n = X[N - t], c[o] = U(a / n) * n); c[o] === 0; c.pop(), o--) ;
233
+ n = r(), n < 9e15 && (l[o++] = n % 1e14);
234
+ for (a = l[--o], t %= N, a && t && (n = X[N - t], l[o] = U(a / n) * n); l[o] === 0; l.pop(), o--) ;
235
235
  if (o < 0)
236
- c = [s = 0];
236
+ l = [s = 0];
237
237
  else {
238
- for (s = -1; c[0] === 0; c.splice(0, 1), s -= N) ;
239
- for (o = 1, n = c[0]; n >= 10; n /= 10, o++) ;
238
+ for (s = -1; l[0] === 0; l.splice(0, 1), s -= N) ;
239
+ for (o = 1, n = l[0]; n >= 10; n /= 10, o++) ;
240
240
  o < N && (s -= N - o);
241
241
  }
242
- return f.e = s, f.c = c, f;
242
+ return f.e = s, f.c = l, f;
243
243
  };
244
244
  }(), p.sum = function() {
245
245
  for (var e = 1, r = arguments, t = new p(r[0]); e < r.length; ) t = t.plus(r[e++]);
@@ -247,39 +247,39 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
247
247
  }, b = /* @__PURE__ */ function() {
248
248
  var e = "0123456789";
249
249
  function r(t, u, i, s) {
250
- for (var a, n = [0], o, c = 0, f = t.length; c < f; ) {
250
+ for (var a, n = [0], o, l = 0, f = t.length; l < f; ) {
251
251
  for (o = n.length; o--; n[o] *= u) ;
252
- for (n[0] += s.indexOf(t.charAt(c++)), a = 0; a < n.length; a++)
252
+ for (n[0] += s.indexOf(t.charAt(l++)), a = 0; a < n.length; a++)
253
253
  n[a] > i - 1 && (n[a + 1] == null && (n[a + 1] = 0), n[a + 1] += n[a] / i | 0, n[a] %= i);
254
254
  }
255
255
  return n.reverse();
256
256
  }
257
257
  return function(t, u, i, s, a) {
258
- var n, o, c, f, h, E, A, S, $ = t.indexOf("."), z = L, T = j;
259
- for ($ >= 0 && (f = le, le = 0, t = t.replace(".", ""), S = new p(u), E = S.pow(t.length - $), le = f, S.c = r(
258
+ var n, o, l, f, h, E, A, S, j = t.indexOf("."), z = L, T = $;
259
+ for (j >= 0 && (f = le, le = 0, t = t.replace(".", ""), S = new p(u), E = S.pow(t.length - j), le = f, S.c = r(
260
260
  Y(x(E.c), E.e, "0"),
261
261
  10,
262
262
  i,
263
263
  e
264
- ), S.e = S.c.length), A = r(t, u, i, a ? (n = ge, e) : (n = e, ge)), c = f = A.length; A[--f] == 0; A.pop()) ;
264
+ ), S.e = S.c.length), A = r(t, u, i, a ? (n = ge, e) : (n = e, ge)), l = f = A.length; A[--f] == 0; A.pop()) ;
265
265
  if (!A[0]) return n.charAt(0);
266
- if ($ < 0 ? --c : (E.c = A, E.e = c, E.s = s, E = y(E, S, z, T, i), A = E.c, h = E.r, c = E.e), o = c + z + 1, $ = A[o], f = i / 2, h = h || o < 0 || A[o + 1] != null, h = T < 4 ? ($ != null || h) && (T == 0 || T == (E.s < 0 ? 3 : 2)) : $ > f || $ == f && (T == 4 || h || T == 6 && A[o - 1] & 1 || T == (E.s < 0 ? 8 : 7)), o < 1 || !A[0])
266
+ if (j < 0 ? --l : (E.c = A, E.e = l, E.s = s, E = y(E, S, z, T, i), A = E.c, h = E.r, l = E.e), o = l + z + 1, j = A[o], f = i / 2, h = h || o < 0 || A[o + 1] != null, h = T < 4 ? (j != null || h) && (T == 0 || T == (E.s < 0 ? 3 : 2)) : j > f || j == f && (T == 4 || h || T == 6 && A[o - 1] & 1 || T == (E.s < 0 ? 8 : 7)), o < 1 || !A[0])
267
267
  t = h ? Y(n.charAt(1), -z, n.charAt(0)) : n.charAt(0);
268
268
  else {
269
269
  if (A.length = o, h)
270
270
  for (--i; ++A[--o] > i; )
271
- A[o] = 0, o || (++c, A = [1].concat(A));
271
+ A[o] = 0, o || (++l, A = [1].concat(A));
272
272
  for (f = A.length; !A[--f]; ) ;
273
- for ($ = 0, t = ""; $ <= f; t += n.charAt(A[$++])) ;
274
- t = Y(t, c, n.charAt(0));
273
+ for (j = 0, t = ""; j <= f; t += n.charAt(A[j++])) ;
274
+ t = Y(t, l, n.charAt(0));
275
275
  }
276
276
  return t;
277
277
  };
278
278
  }(), y = /* @__PURE__ */ function() {
279
279
  function e(u, i, s) {
280
- var a, n, o, c, f = 0, h = u.length, E = i % B, A = i / B | 0;
280
+ var a, n, o, l, f = 0, h = u.length, E = i % B, A = i / B | 0;
281
281
  for (u = u.slice(); h--; )
282
- o = u[h] % B, c = u[h] / B | 0, a = A * o + c * E, n = E * o + a % B * B + f, f = (n / s | 0) + (a / B | 0) + A * c, u[h] = n % s;
282
+ o = u[h] % B, l = u[h] / B | 0, a = A * o + l * E, n = E * o + a % B * B + f, f = (n / s | 0) + (a / B | 0) + A * l, u[h] = n % s;
283
283
  return f && (u = [f].concat(u)), u;
284
284
  }
285
285
  function r(u, i, s, a) {
@@ -300,7 +300,7 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
300
300
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
301
301
  }
302
302
  return function(u, i, s, a, n) {
303
- var o, c, f, h, E, A, S, $, z, T, k, J, Ee, Re, ke, se, we, ne = u.s == i.s ? 1 : -1, Q = u.c, G = i.c;
303
+ var o, l, f, h, E, A, S, j, z, T, k, J, Ee, Re, ke, se, we, ne = u.s == i.s ? 1 : -1, Q = u.c, G = i.c;
304
304
  if (!Q || !Q[0] || !G || !G[0])
305
305
  return new p(
306
306
  // Return NaN if either NaN, or both Infinity or 0.
@@ -309,8 +309,8 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
309
309
  Q && Q[0] == 0 || !G ? ne * 0 : ne / 0
310
310
  )
311
311
  );
312
- for ($ = new p(ne), z = $.c = [], c = u.e - i.e, ne = s + c + 1, n || (n = H, c = _(u.e / N) - _(i.e / N), ne = ne / N | 0), f = 0; G[f] == (Q[f] || 0); f++) ;
313
- if (G[f] > (Q[f] || 0) && c--, ne < 0)
312
+ for (j = new p(ne), z = j.c = [], l = u.e - i.e, ne = s + l + 1, n || (n = H, l = _(u.e / N) - _(i.e / N), ne = ne / N | 0), f = 0; G[f] == (Q[f] || 0); f++) ;
313
+ if (G[f] > (Q[f] || 0) && l--, ne < 0)
314
314
  z.push(1), h = !0;
315
315
  else {
316
316
  for (Re = Q.length, se = G.length, f = 0, ne += 2, E = U(n / (G[0] + 1)), E > 1 && (G = e(G, E, n), Q = e(Q, E, n), se = G.length, Re = Q.length), Ee = se, T = Q.slice(0, se), k = T.length; k < se; T[k++] = 0) ;
@@ -332,15 +332,15 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
332
332
  }
333
333
  if (n == H) {
334
334
  for (f = 1, ne = z[0]; ne >= 10; ne /= 10, f++) ;
335
- te($, s + ($.e = f + c * N - 1) + 1, a, h);
335
+ te(j, s + (j.e = f + l * N - 1) + 1, a, h);
336
336
  } else
337
- $.e = c, $.r = +h;
338
- return $;
337
+ j.e = l, j.r = +h;
338
+ return j;
339
339
  };
340
340
  }();
341
341
  function Se(e, r, t, u) {
342
342
  var i, s, a, n, o;
343
- if (t == null ? t = j : v(t, 0, 8), !e.c) return e.toString();
343
+ if (t == null ? t = $ : v(t, 0, 8), !e.c) return e.toString();
344
344
  if (i = e.c[0], a = e.e, r == null)
345
345
  o = x(e.c), o = u == 1 || u == 2 && (a <= Z || a >= ee) ? oe(o, a) : Y(o, a, "0");
346
346
  else if (e = te(new p(e), r, t), s = e.e, o = x(e.c), n = o.length, u == 1 || u == 2 && (r <= s || s <= Z)) {
@@ -365,14 +365,14 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
365
365
  q = /* @__PURE__ */ function() {
366
366
  var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, r = /^([^.]+)\.$/, t = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, i = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
367
367
  return function(s, a, n, o) {
368
- var c, f = n ? a : a.replace(i, "");
368
+ var l, f = n ? a : a.replace(i, "");
369
369
  if (u.test(f))
370
370
  s.s = isNaN(f) ? null : f < 0 ? -1 : 1;
371
371
  else {
372
372
  if (!n && (f = f.replace(e, function(h, E, A) {
373
- return c = (A = A.toLowerCase()) == "x" ? 16 : A == "b" ? 2 : 8, !o || o == c ? E : h;
374
- }), o && (c = o, f = f.replace(r, "$1").replace(t, "0.$1")), a != f))
375
- return new p(f, c);
373
+ return l = (A = A.toLowerCase()) == "x" ? 16 : A == "b" ? 2 : 8, !o || o == l ? E : h;
374
+ }), o && (l = o, f = f.replace(r, "$1").replace(t, "0.$1")), a != f))
375
+ return new p(f, l);
376
376
  if (p.DEBUG)
377
377
  throw Error(D + "Not a" + (o ? " base " + o : "") + " number: " + a);
378
378
  s.s = null;
@@ -381,38 +381,38 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
381
381
  };
382
382
  }();
383
383
  function te(e, r, t, u) {
384
- var i, s, a, n, o, c, f, h = e.c, E = X;
384
+ var i, s, a, n, o, l, f, h = e.c, E = X;
385
385
  if (h) {
386
386
  e: {
387
387
  for (i = 1, n = h[0]; n >= 10; n /= 10, i++) ;
388
388
  if (s = r - i, s < 0)
389
- s += N, a = r, o = h[c = 0], f = U(o / E[i - a - 1] % 10);
390
- else if (c = C((s + 1) / N), c >= h.length)
389
+ s += N, a = r, o = h[l = 0], f = U(o / E[i - a - 1] % 10);
390
+ else if (l = C((s + 1) / N), l >= h.length)
391
391
  if (u) {
392
- for (; h.length <= c; h.push(0)) ;
392
+ for (; h.length <= l; h.push(0)) ;
393
393
  o = f = 0, i = 1, s %= N, a = s - N + 1;
394
394
  } else
395
395
  break e;
396
396
  else {
397
- for (o = n = h[c], i = 1; n >= 10; n /= 10, i++) ;
397
+ for (o = n = h[l], i = 1; n >= 10; n /= 10, i++) ;
398
398
  s %= N, a = s - N + i, f = a < 0 ? 0 : U(o / E[i - a - 1] % 10);
399
399
  }
400
400
  if (u = u || r < 0 || // Are there any non-zero digits after the rounding digit?
401
401
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
402
402
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
403
- h[c + 1] != null || (a < 0 ? o : o % E[i - a - 1]), u = t < 4 ? (f || u) && (t == 0 || t == (e.s < 0 ? 3 : 2)) : f > 5 || f == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
404
- (s > 0 ? a > 0 ? o / E[i - a] : 0 : h[c - 1]) % 10 & 1 || t == (e.s < 0 ? 8 : 7)), r < 1 || !h[0])
403
+ h[l + 1] != null || (a < 0 ? o : o % E[i - a - 1]), u = t < 4 ? (f || u) && (t == 0 || t == (e.s < 0 ? 3 : 2)) : f > 5 || f == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
404
+ (s > 0 ? a > 0 ? o / E[i - a] : 0 : h[l - 1]) % 10 & 1 || t == (e.s < 0 ? 8 : 7)), r < 1 || !h[0])
405
405
  return h.length = 0, u ? (r -= e.e + 1, h[0] = E[(N - r % N) % N], e.e = -r || 0) : h[0] = e.e = 0, e;
406
- if (s == 0 ? (h.length = c, n = 1, c--) : (h.length = c + 1, n = E[N - s], h[c] = a > 0 ? U(o / E[i - a] % E[a]) * n : 0), u)
406
+ if (s == 0 ? (h.length = l, n = 1, l--) : (h.length = l + 1, n = E[N - s], h[l] = a > 0 ? U(o / E[i - a] % E[a]) * n : 0), u)
407
407
  for (; ; )
408
- if (c == 0) {
408
+ if (l == 0) {
409
409
  for (s = 1, a = h[0]; a >= 10; a /= 10, s++) ;
410
410
  for (a = h[0] += n, n = 1; a >= 10; a /= 10, n++) ;
411
411
  s != n && (e.e++, h[0] == H && (h[0] = 1));
412
412
  break;
413
413
  } else {
414
- if (h[c] += n, h[c] != H) break;
415
- h[c--] = 0, n = 1;
414
+ if (h[l] += n, h[l] != H) break;
415
+ h[l--] = 0, n = 1;
416
416
  }
417
417
  for (s = h.length; h[--s] === 0; h.pop()) ;
418
418
  }
@@ -432,16 +432,16 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
432
432
  }, d.decimalPlaces = d.dp = function(e, r) {
433
433
  var t, u, i, s = this;
434
434
  if (e != null)
435
- return v(e, 0, P), r == null ? r = j : v(r, 0, 8), te(new p(s), e + s.e + 1, r);
435
+ return v(e, 0, P), r == null ? r = $ : v(r, 0, 8), te(new p(s), e + s.e + 1, r);
436
436
  if (!(t = s.c)) return null;
437
437
  if (u = ((i = t.length - 1) - _(this.e / N)) * N, i = t[i]) for (; i % 10 == 0; i /= 10, u--) ;
438
438
  return u < 0 && (u = 0), u;
439
439
  }, d.dividedBy = d.div = function(e, r) {
440
- return y(this, new p(e, r), L, j);
440
+ return y(this, new p(e, r), L, $);
441
441
  }, d.dividedToIntegerBy = d.idiv = function(e, r) {
442
442
  return y(this, new p(e, r), 0, 1);
443
443
  }, d.exponentiatedBy = d.pow = function(e, r) {
444
- var t, u, i, s, a, n, o, c, f, h = this;
444
+ var t, u, i, s, a, n, o, l, f, h = this;
445
445
  if (e = new p(e), e.c && !e.isInteger())
446
446
  throw Error(D + "Exponent not an integer: " + ue(e));
447
447
  if (r != null && (r = new p(r)), n = e.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !e.c || !e.c[0])
@@ -454,26 +454,26 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
454
454
  return s = h.s < 0 && W(e) ? -0 : 0, h.e > -1 && (s = 1 / s), new p(o ? 1 / s : s);
455
455
  le && (s = C(le / N + 2));
456
456
  }
457
- for (n ? (t = new p(0.5), o && (e.s = 1), c = W(e)) : (i = Math.abs(+ue(e)), c = i % 2), f = new p(V); ; ) {
458
- if (c) {
457
+ for (n ? (t = new p(0.5), o && (e.s = 1), l = W(e)) : (i = Math.abs(+ue(e)), l = i % 2), f = new p(V); ; ) {
458
+ if (l) {
459
459
  if (f = f.times(h), !f.c) break;
460
460
  s ? f.c.length > s && (f.c.length = s) : u && (f = f.mod(r));
461
461
  }
462
462
  if (i) {
463
463
  if (i = U(i / 2), i === 0) break;
464
- c = i % 2;
464
+ l = i % 2;
465
465
  } else if (e = e.times(t), te(e, e.e + 1, 1), e.e > 14)
466
- c = W(e);
466
+ l = W(e);
467
467
  else {
468
468
  if (i = +ue(e), i === 0) break;
469
- c = i % 2;
469
+ l = i % 2;
470
470
  }
471
471
  h = h.times(h), s ? h.c && h.c.length > s && (h.c.length = s) : u && (h = h.mod(r));
472
472
  }
473
- return u ? f : (o && (f = V.div(f)), r ? f.mod(r) : s ? te(f, le, j, a) : f);
473
+ return u ? f : (o && (f = V.div(f)), r ? f.mod(r) : s ? te(f, le, $, a) : f);
474
474
  }, d.integerValue = function(e) {
475
475
  var r = new p(this);
476
- return e == null ? e = j : v(e, 0, 8), te(r, r.e + 1, e);
476
+ return e == null ? e = $ : v(e, 0, 8), te(r, r.e + 1, e);
477
477
  }, d.isEqualTo = d.eq = function(e, r) {
478
478
  return R(this, new p(e, r)) === 0;
479
479
  }, d.isFinite = function() {
@@ -501,17 +501,17 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
501
501
  if (e = new p(e, r), r = e.s, !n || !r) return new p(NaN);
502
502
  if (n != r)
503
503
  return e.s = -r, a.plus(e);
504
- var o = a.e / N, c = e.e / N, f = a.c, h = e.c;
505
- if (!o || !c) {
504
+ var o = a.e / N, l = e.e / N, f = a.c, h = e.c;
505
+ if (!o || !l) {
506
506
  if (!f || !h) return f ? (e.s = -r, e) : new p(h ? a : NaN);
507
507
  if (!f[0] || !h[0])
508
508
  return h[0] ? (e.s = -r, e) : new p(f[0] ? a : (
509
509
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
510
- j == 3 ? -0 : 0
510
+ $ == 3 ? -0 : 0
511
511
  ));
512
512
  }
513
- if (o = _(o), c = _(c), f = f.slice(), n = o - c) {
514
- for ((s = n < 0) ? (n = -n, i = f) : (c = o, i = h), i.reverse(), r = n; r--; i.push(0)) ;
513
+ if (o = _(o), l = _(l), f = f.slice(), n = o - l) {
514
+ for ((s = n < 0) ? (n = -n, i = f) : (l = o, i = h), i.reverse(), r = n; r--; i.push(0)) ;
515
515
  i.reverse();
516
516
  } else
517
517
  for (u = (s = (n = f.length) < (r = h.length)) ? n : r, n = r = 0; r < u; r++)
@@ -527,19 +527,19 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
527
527
  }
528
528
  f[u] -= h[u];
529
529
  }
530
- for (; f[0] == 0; f.splice(0, 1), --c) ;
531
- return f[0] ? Pe(e, f, c) : (e.s = j == 3 ? -1 : 1, e.c = [e.e = 0], e);
530
+ for (; f[0] == 0; f.splice(0, 1), --l) ;
531
+ return f[0] ? Pe(e, f, l) : (e.s = $ == 3 ? -1 : 1, e.c = [e.e = 0], e);
532
532
  }, d.modulo = d.mod = function(e, r) {
533
533
  var t, u, i = this;
534
534
  return e = new p(e, r), !i.c || !e.s || e.c && !e.c[0] ? new p(NaN) : !e.c || i.c && !i.c[0] ? new p(i) : (de == 9 ? (u = e.s, e.s = 1, t = y(i, e, 0, 3), e.s = u, t.s *= u) : t = y(i, e, 0, de), e = i.minus(t.times(e)), !e.c[0] && de == 1 && (e.s = i.s), e);
535
535
  }, d.multipliedBy = d.times = function(e, r) {
536
- var t, u, i, s, a, n, o, c, f, h, E, A, S, $, z, T = this, k = T.c, J = (e = new p(e, r)).c;
536
+ var t, u, i, s, a, n, o, l, f, h, E, A, S, j, z, T = this, k = T.c, J = (e = new p(e, r)).c;
537
537
  if (!k || !J || !k[0] || !J[0])
538
538
  return !T.s || !e.s || k && !k[0] && !J || J && !J[0] && !k ? e.c = e.e = e.s = null : (e.s *= T.s, !k || !J ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
539
539
  for (u = _(T.e / N) + _(e.e / N), e.s *= T.s, o = k.length, h = J.length, o < h && (S = k, k = J, J = S, i = o, o = h, h = i), i = o + h, S = []; i--; S.push(0)) ;
540
- for ($ = H, z = B, i = h; --i >= 0; ) {
540
+ for (j = H, z = B, i = h; --i >= 0; ) {
541
541
  for (t = 0, E = J[i] % z, A = J[i] / z | 0, a = o, s = i + a; s > i; )
542
- c = k[--a] % z, f = k[a] / z | 0, n = A * c + f * E, c = E * c + n % z * z + S[s] + t, t = (c / $ | 0) + (n / z | 0) + A * f, S[s--] = c % $;
542
+ l = k[--a] % z, f = k[a] / z | 0, n = A * l + f * E, l = E * l + n % z * z + S[s] + t, t = (l / j | 0) + (n / z | 0) + A * f, S[s--] = l % j;
543
543
  S[s] = t;
544
544
  }
545
545
  return t ? ++u : S.splice(0, 1), Pe(e, S, u);
@@ -566,7 +566,7 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
566
566
  }, d.precision = d.sd = function(e, r) {
567
567
  var t, u, i, s = this;
568
568
  if (e != null && e !== !!e)
569
- return v(e, 1, P), r == null ? r = j : v(r, 0, 8), te(new p(s), e, r);
569
+ return v(e, 1, P), r == null ? r = $ : v(r, 0, 8), te(new p(s), e, r);
570
570
  if (!(t = s.c)) return null;
571
571
  if (i = t.length - 1, u = i * N + 1, i = t[i]) {
572
572
  for (; i % 10 == 0; i /= 10, u--) ;
@@ -576,24 +576,24 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
576
576
  }, d.shiftedBy = function(e) {
577
577
  return v(e, -M, M), this.times("1e" + e);
578
578
  }, d.squareRoot = d.sqrt = function() {
579
- var e, r, t, u, i, s = this, a = s.c, n = s.s, o = s.e, c = L + 4, f = new p("0.5");
579
+ var e, r, t, u, i, s = this, a = s.c, n = s.s, o = s.e, l = L + 4, f = new p("0.5");
580
580
  if (n !== 1 || !a || !a[0])
581
581
  return new p(!n || n < 0 && (!a || a[0]) ? NaN : a ? s : 1 / 0);
582
582
  if (n = Math.sqrt(+ue(s)), n == 0 || n == 1 / 0 ? (r = x(a), (r.length + o) % 2 == 0 && (r += "0"), n = Math.sqrt(+r), o = _((o + 1) / 2) - (o < 0 || o % 2), n == 1 / 0 ? r = "5e" + o : (r = n.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + o), t = new p(r)) : t = new p(n + ""), t.c[0]) {
583
- for (o = t.e, n = o + c, n < 3 && (n = 0); ; )
584
- if (i = t, t = f.times(i.plus(y(s, i, c, 1))), x(i.c).slice(0, n) === (r = x(t.c)).slice(0, n))
583
+ for (o = t.e, n = o + l, n < 3 && (n = 0); ; )
584
+ if (i = t, t = f.times(i.plus(y(s, i, l, 1))), x(i.c).slice(0, n) === (r = x(t.c)).slice(0, n))
585
585
  if (t.e < o && --n, r = r.slice(n - 3, n + 1), r == "9999" || !u && r == "4999") {
586
586
  if (!u && (te(i, i.e + L + 2, 0), i.times(i).eq(s))) {
587
587
  t = i;
588
588
  break;
589
589
  }
590
- c += 4, n += 4, u = 1;
590
+ l += 4, n += 4, u = 1;
591
591
  } else {
592
592
  (!+r || !+r.slice(1) && r.charAt(0) == "5") && (te(t, t.e + L + 2, 1), e = !t.times(t).eq(s));
593
593
  break;
594
594
  }
595
595
  }
596
- return te(t, t.e + L + 1, j, e);
596
+ return te(t, t.e + L + 1, $, e);
597
597
  }, d.toExponential = function(e, r) {
598
598
  return e != null && (v(e, 0, P), e++), Se(this, e, r, 1);
599
599
  }, d.toFixed = function(e, r) {
@@ -605,10 +605,10 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
605
605
  else if (typeof t != "object")
606
606
  throw Error(D + "Argument not an object: " + t);
607
607
  if (u = i.toFixed(e, r), i.c) {
608
- var s, a = u.split("."), n = +t.groupSize, o = +t.secondaryGroupSize, c = t.groupSeparator || "", f = a[0], h = a[1], E = i.s < 0, A = E ? f.slice(1) : f, S = A.length;
608
+ var s, a = u.split("."), n = +t.groupSize, o = +t.secondaryGroupSize, l = t.groupSeparator || "", f = a[0], h = a[1], E = i.s < 0, A = E ? f.slice(1) : f, S = A.length;
609
609
  if (o && (s = n, n = o, o = s, S -= s), n > 0 && S > 0) {
610
- for (s = S % n || n, f = A.substr(0, s); s < S; s += n) f += c + A.substr(s, n);
611
- o > 0 && (f += c + A.slice(s)), E && (f = "-" + f);
610
+ for (s = S % n || n, f = A.substr(0, s); s < S; s += n) f += l + A.substr(s, n);
611
+ o > 0 && (f += l + A.slice(s)), E && (f = "-" + f);
612
612
  }
613
613
  u = h ? f + (t.decimalSeparator || "") + ((o = +t.fractionGroupSize) ? h.replace(
614
614
  new RegExp("\\d{" + o + "}\\B", "g"),
@@ -617,22 +617,22 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
617
617
  }
618
618
  return (t.prefix || "") + u + (t.suffix || "");
619
619
  }, d.toFraction = function(e) {
620
- var r, t, u, i, s, a, n, o, c, f, h, E, A = this, S = A.c;
620
+ var r, t, u, i, s, a, n, o, l, f, h, E, A = this, S = A.c;
621
621
  if (e != null && (n = new p(e), !n.isInteger() && (n.c || n.s !== 1) || n.lt(V)))
622
622
  throw Error(D + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + ue(n));
623
623
  if (!S) return new p(A);
624
- for (r = new p(V), c = t = new p(V), u = o = new p(V), E = x(S), s = r.e = E.length - A.e - 1, r.c[0] = X[(a = s % N) < 0 ? N + a : a], e = !e || n.comparedTo(r) > 0 ? s > 0 ? r : c : n, a = ie, ie = 1 / 0, n = new p(E), o.c[0] = 0; f = y(n, r, 0, 1), i = t.plus(f.times(u)), i.comparedTo(e) != 1; )
625
- t = u, u = i, c = o.plus(f.times(i = c)), o = i, r = n.minus(f.times(i = r)), n = i;
626
- return i = y(e.minus(t), u, 0, 1), o = o.plus(i.times(c)), t = t.plus(i.times(u)), o.s = c.s = A.s, s = s * 2, h = y(c, u, s, j).minus(A).abs().comparedTo(
627
- y(o, t, s, j).minus(A).abs()
628
- ) < 1 ? [c, u] : [o, t], ie = a, h;
624
+ for (r = new p(V), l = t = new p(V), u = o = new p(V), E = x(S), s = r.e = E.length - A.e - 1, r.c[0] = X[(a = s % N) < 0 ? N + a : a], e = !e || n.comparedTo(r) > 0 ? s > 0 ? r : l : n, a = ie, ie = 1 / 0, n = new p(E), o.c[0] = 0; f = y(n, r, 0, 1), i = t.plus(f.times(u)), i.comparedTo(e) != 1; )
625
+ t = u, u = i, l = o.plus(f.times(i = l)), o = i, r = n.minus(f.times(i = r)), n = i;
626
+ return i = y(e.minus(t), u, 0, 1), o = o.plus(i.times(l)), t = t.plus(i.times(u)), o.s = l.s = A.s, s = s * 2, h = y(l, u, s, $).minus(A).abs().comparedTo(
627
+ y(o, t, s, $).minus(A).abs()
628
+ ) < 1 ? [l, u] : [o, t], ie = a, h;
629
629
  }, d.toNumber = function() {
630
630
  return +ue(this);
631
631
  }, d.toPrecision = function(e, r) {
632
632
  return e != null && v(e, 1, P), Se(this, e, r, 2);
633
633
  }, d.toString = function(e) {
634
634
  var r, t = this, u = t.s, i = t.e;
635
- return i === null ? u ? (r = "Infinity", u < 0 && (r = "-" + r)) : r = "NaN" : (e == null ? r = i <= Z || i >= ee ? oe(x(t.c), i) : Y(x(t.c), i, "0") : e === 10 && Te ? (t = te(new p(t), L + i + 1, j), r = Y(x(t.c), t.e, "0")) : (v(e, 2, ge.length, "Base"), r = b(Y(x(t.c), i, "0"), 10, e, u, !0)), u < 0 && t.c[0] && (r = "-" + r)), r;
635
+ return i === null ? u ? (r = "Infinity", u < 0 && (r = "-" + r)) : r = "NaN" : (e == null ? r = i <= Z || i >= ee ? oe(x(t.c), i) : Y(x(t.c), i, "0") : e === 10 && Te ? (t = te(new p(t), L + i + 1, $), r = Y(x(t.c), t.e, "0")) : (v(e, 2, ge.length, "Base"), r = b(Y(x(t.c), i, "0"), 10, e, u, !0)), u < 0 && t.c[0] && (r = "-" + r)), r;
636
636
  }, d.valueOf = d.toJSON = function() {
637
637
  return ue(this);
638
638
  }, d._isBigNumber = !0, O != null && p.set(O), p;
@@ -650,13 +650,13 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
650
650
  return V.slice(0, d + 1 || 1);
651
651
  }
652
652
  function R(O, y) {
653
- var b, q, d = O.c, V = y.c, L = O.s, j = y.s, Z = O.e, ee = y.e;
654
- if (!L || !j) return null;
655
- if (b = d && !d[0], q = V && !V[0], b || q) return b ? q ? 0 : -j : L;
656
- if (L != j) return L;
653
+ var b, q, d = O.c, V = y.c, L = O.s, $ = y.s, Z = O.e, ee = y.e;
654
+ if (!L || !$) return null;
655
+ if (b = d && !d[0], q = V && !V[0], b || q) return b ? q ? 0 : -$ : L;
656
+ if (L != $) return L;
657
657
  if (b = L < 0, q = Z == ee, !d || !V) return q ? 0 : !d ^ b ? 1 : -1;
658
658
  if (!q) return Z > ee ^ b ? 1 : -1;
659
- for (j = (Z = d.length) < (ee = V.length) ? Z : ee, L = 0; L < j; L++) if (d[L] != V[L]) return d[L] > V[L] ^ b ? 1 : -1;
659
+ for ($ = (Z = d.length) < (ee = V.length) ? Z : ee, L = 0; L < $; L++) if (d[L] != V[L]) return d[L] > V[L] ^ b ? 1 : -1;
660
660
  return Z == ee ? 0 : Z > ee ^ b ? 1 : -1;
661
661
  }
662
662
  function v(O, y, b, q) {
@@ -681,12 +681,12 @@ var xe = { exports: {} }, He = { exports: {} }, Ke = { exports: {} };
681
681
  } else y < q && (O = O.slice(0, y) + "." + O.slice(y));
682
682
  return O;
683
683
  }
684
- w = re(), w.default = w.BigNumber = w, l.exports ? l.exports = w : (g || (g = typeof self < "u" && self ? self : window), g.BigNumber = w);
684
+ w = re(), w.default = w.BigNumber = w, c.exports ? c.exports = w : (g || (g = typeof self < "u" && self ? self : window), g.BigNumber = w);
685
685
  })(cr);
686
686
  })(Ke);
687
687
  var Xe = Ke.exports;
688
- (function(l) {
689
- var g = Xe, w = l.exports;
688
+ (function(c) {
689
+ var g = Xe, w = c.exports;
690
690
  (function() {
691
691
  var m = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, C, U, D = {
692
692
  // table of character substitutions
@@ -754,7 +754,7 @@ var Xe = Ke.exports;
754
754
  })(He);
755
755
  var ar = He.exports, Ne = null;
756
756
  const hr = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, pr = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
757
- var gr = function(l) {
757
+ var gr = function(c) {
758
758
  var g = {
759
759
  strict: !1,
760
760
  // not being strict means do not generate syntax errors for "duplicate key"
@@ -767,20 +767,20 @@ var gr = function(l) {
767
767
  protoAction: "error",
768
768
  constructorAction: "error"
769
769
  };
770
- if (l != null) {
771
- if (l.strict === !0 && (g.strict = !0), l.storeAsString === !0 && (g.storeAsString = !0), g.alwaysParseAsBig = l.alwaysParseAsBig === !0 ? l.alwaysParseAsBig : !1, g.useNativeBigInt = l.useNativeBigInt === !0 ? l.useNativeBigInt : !1, typeof l.constructorAction < "u")
772
- if (l.constructorAction === "error" || l.constructorAction === "ignore" || l.constructorAction === "preserve")
773
- g.constructorAction = l.constructorAction;
770
+ if (c != null) {
771
+ if (c.strict === !0 && (g.strict = !0), c.storeAsString === !0 && (g.storeAsString = !0), g.alwaysParseAsBig = c.alwaysParseAsBig === !0 ? c.alwaysParseAsBig : !1, g.useNativeBigInt = c.useNativeBigInt === !0 ? c.useNativeBigInt : !1, typeof c.constructorAction < "u")
772
+ if (c.constructorAction === "error" || c.constructorAction === "ignore" || c.constructorAction === "preserve")
773
+ g.constructorAction = c.constructorAction;
774
774
  else
775
775
  throw new Error(
776
- `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${l.constructorAction}`
776
+ `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${c.constructorAction}`
777
777
  );
778
- if (typeof l.protoAction < "u")
779
- if (l.protoAction === "error" || l.protoAction === "ignore" || l.protoAction === "preserve")
780
- g.protoAction = l.protoAction;
778
+ if (typeof c.protoAction < "u")
779
+ if (c.protoAction === "error" || c.protoAction === "ignore" || c.protoAction === "preserve")
780
+ g.protoAction = c.protoAction;
781
781
  else
782
782
  throw new Error(
783
- `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${l.protoAction}`
783
+ `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${c.protoAction}`
784
784
  );
785
785
  }
786
786
  var w, m, C = {
@@ -896,9 +896,9 @@ var gr = function(l) {
896
896
  }({ "": R }, "") : R;
897
897
  };
898
898
  }, dr = gr, Ye = ar.stringify, Je = dr;
899
- xe.exports = function(l) {
899
+ xe.exports = function(c) {
900
900
  return {
901
- parse: Je(l),
901
+ parse: Je(c),
902
902
  stringify: Ye
903
903
  };
904
904
  };
@@ -907,18 +907,18 @@ xe.exports.stringify = Ye;
907
907
  var wr = xe.exports;
908
908
  const mr = /* @__PURE__ */ lr(wr), Er = mr({ storeAsString: !0 });
909
909
  let We, Qe;
910
- function Pr(l) {
911
- We = l, ae && (ae.defaults.baseURL = l);
910
+ function Rr(c) {
911
+ We = c, ae && (ae.defaults.baseURL = c);
912
912
  }
913
- function Rr(l) {
914
- Qe = l;
913
+ function kr(c) {
914
+ Qe = c;
915
915
  }
916
916
  function De() {
917
- const l = Qe || "/";
918
- return (l.endsWith("/") ? l : l + "/") + "login";
917
+ const c = Qe || "/";
918
+ return (c.endsWith("/") ? c : c + "/") + "login";
919
919
  }
920
920
  const vr = () => {
921
- const l = Ze.create({
921
+ const c = Ze.create({
922
922
  timeout: 3e4,
923
923
  headers: {
924
924
  "Content-Type": "application/json"
@@ -936,7 +936,7 @@ const vr = () => {
936
936
  }
937
937
  ]
938
938
  });
939
- return l.interceptors.request.use(
939
+ return c.interceptors.request.use(
940
940
  (g) => {
941
941
  const w = We || void 0;
942
942
  w && !g.baseURL && (g.baseURL = w);
@@ -944,7 +944,7 @@ const vr = () => {
944
944
  return m && (g.headers.Authorization = `${C} ${m}`), g;
945
945
  },
946
946
  (g) => Promise.reject(g)
947
- ), l.interceptors.response.use(
947
+ ), c.interceptors.response.use(
948
948
  (g) => {
949
949
  const { data: w } = g;
950
950
  return w.code === 200 || w.code === 0 ? w.data : w.code === 9121 ? (ce.error("登录已过期,请重新登录"), Ue(), window.location.href = De(), Promise.reject(new Error(w.message || "EXPIRED OR INVALID TOKEN"))) : (ce.error(w.message || "请求失败"), Promise.reject(new Error(w.message || "请求失败")));
@@ -976,58 +976,58 @@ const vr = () => {
976
976
  ce.error("网络连接失败");
977
977
  return Promise.reject(g);
978
978
  }
979
- ), l;
979
+ ), c;
980
980
  }, ae = vr(), F = {
981
- get(l, g) {
982
- return ae.get(l, g);
981
+ get(c, g) {
982
+ return ae.get(c, g);
983
983
  },
984
- post(l, g, w) {
985
- return ae.post(l, g, w);
984
+ post(c, g, w) {
985
+ return ae.post(c, g, w);
986
986
  },
987
- put(l, g, w) {
988
- return ae.put(l, g, w);
987
+ put(c, g, w) {
988
+ return ae.put(c, g, w);
989
989
  },
990
- patch(l, g, w) {
991
- return ae.patch(l, g, w);
990
+ patch(c, g, w) {
991
+ return ae.patch(c, g, w);
992
992
  },
993
- delete(l, g) {
994
- return ae.delete(l, g);
993
+ delete(c, g) {
994
+ return ae.delete(c, g);
995
995
  },
996
996
  // 文件下载 - 返回 Blob 对象
997
- download(l, g) {
998
- return ae.get(l, { ...g, responseType: "blob" });
997
+ download(c, g) {
998
+ return ae.get(c, { ...g, responseType: "blob" });
999
999
  }
1000
1000
  };
1001
- function kr(l) {
1002
- return F.post("/user/v1.0/login/by-domain", l);
1001
+ function Ur(c) {
1002
+ return F.post("/user/v1.0/login/by-domain", c);
1003
1003
  }
1004
- function Ur() {
1004
+ function Dr() {
1005
1005
  return F.put("/user/v1.0/user/logout");
1006
1006
  }
1007
- function Dr() {
1007
+ function Cr() {
1008
1008
  return F.get("/user/v1.0/user/get-me");
1009
1009
  }
1010
- function Cr(l) {
1011
- return F.post("/user/v1.0/refresh", { refreshToken: l });
1010
+ function Lr(c) {
1011
+ return F.post("/user/v1.0/refresh", { refreshToken: c });
1012
1012
  }
1013
- const Oe = Ie(""), _e = Ie(""), ye = Ie(""), $e = Ie("");
1013
+ const Oe = Ie(""), _e = Ie(""), ye = Ie(""), je = Ie("");
1014
1014
  let qe = !1, fe = {};
1015
- async function Lr(l) {
1015
+ async function Mr(c) {
1016
1016
  if (qe)
1017
1017
  return fe;
1018
1018
  if (typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "0.0.0.0" || window.location.protocol === "file:"))
1019
1019
  console.log("Development mode, skipping runtime config");
1020
1020
  else
1021
1021
  try {
1022
- const w = l ? `${l}/config.json` : "/config.json", m = await fetch(w);
1022
+ const w = c ? `${c}/config.json` : "/config.json", m = await fetch(w);
1023
1023
  m.ok ? (fe = await m.json(), console.log("Runtime config loaded from", w, fe)) : console.warn("Failed to load", w, "status:", m.status);
1024
1024
  } catch (w) {
1025
1025
  console.warn("Failed to load runtime config:", w);
1026
1026
  }
1027
1027
  return qe = !0, fe;
1028
1028
  }
1029
- function Mr(l) {
1030
- l.appId && (Oe.value = l.appId), l.clientId && (_e.value = l.clientId), l.apiBaseUrl && (ye.value = l.apiBaseUrl), l.basePath && ($e.value = l.basePath);
1029
+ function br(c) {
1030
+ c.appId && (Oe.value = c.appId), c.clientId && (_e.value = c.clientId), c.apiBaseUrl && (ye.value = c.apiBaseUrl), c.basePath && (je.value = c.basePath);
1031
1031
  }
1032
1032
  function Ar() {
1033
1033
  if (Oe.value)
@@ -1040,7 +1040,7 @@ function Ar() {
1040
1040
  return "";
1041
1041
  }
1042
1042
  }
1043
- function br() {
1043
+ function Fr() {
1044
1044
  if (_e.value)
1045
1045
  return _e.value;
1046
1046
  if (fe.VITE_APP_CLIENT_ID)
@@ -1051,7 +1051,7 @@ function br() {
1051
1051
  return "";
1052
1052
  }
1053
1053
  }
1054
- function Fr() {
1054
+ function $r() {
1055
1055
  if (ye.value)
1056
1056
  return ye.value;
1057
1057
  if (fe.VITE_API_BASE_URL)
@@ -1062,124 +1062,130 @@ function Fr() {
1062
1062
  return "";
1063
1063
  }
1064
1064
  }
1065
- function jr() {
1066
- return $e.value;
1065
+ function Nr() {
1066
+ return je.value;
1067
+ }
1068
+ function jr(c) {
1069
+ if (!c) return c;
1070
+ const g = Nr().replace(/\/$/, "");
1071
+ return c.startsWith("/") ? `${g}${c}` : `${g}/${c}`;
1067
1072
  }
1068
- const $r = {
1073
+ const Gr = {
1069
1074
  appId: Oe,
1070
1075
  clientId: _e,
1071
1076
  apiBaseUrl: ye,
1072
- basePath: $e
1077
+ basePath: je
1073
1078
  };
1074
- function Gr(l) {
1075
- return F.get("/role/list", { params: l });
1079
+ function qr(c) {
1080
+ return F.get("/role/list", { params: c });
1076
1081
  }
1077
- function qr(l) {
1078
- return F.get(`/role/${l}`);
1082
+ function Vr(c) {
1083
+ return F.get(`/role/${c}`);
1079
1084
  }
1080
- function Vr(l) {
1081
- return F.post("/role", l);
1085
+ function zr(c) {
1086
+ return F.post("/role", c);
1082
1087
  }
1083
- function zr(l, g) {
1084
- return F.put(`/role/${l}`, g);
1088
+ function Hr(c, g) {
1089
+ return F.put(`/role/${c}`, g);
1085
1090
  }
1086
- function Hr(l) {
1087
- return F.delete(`/role/${l}`);
1091
+ function Kr(c) {
1092
+ return F.delete(`/role/${c}`);
1088
1093
  }
1089
- function Kr(l, g) {
1090
- return F.patch(`/role/${l}/status`, { status: g });
1094
+ function Xr(c, g) {
1095
+ return F.patch(`/role/${c}/status`, { status: g });
1091
1096
  }
1092
- function Xr() {
1097
+ function Yr() {
1093
1098
  return F.get("/user/v1.0/menu/list");
1094
1099
  }
1095
- function Yr(l) {
1096
- const g = l || Ar();
1100
+ function Jr(c) {
1101
+ const g = c || Ar();
1097
1102
  return F.get(`/user/v1.0/menu/get-menu?appId=${g}`);
1098
1103
  }
1099
- function Jr(l) {
1100
- return F.post("/menu", l);
1104
+ function Wr(c) {
1105
+ return F.post("/menu", c);
1101
1106
  }
1102
- function Wr(l, g) {
1103
- return F.put(`/menu/${l}`, g);
1107
+ function Qr(c, g) {
1108
+ return F.put(`/menu/${c}`, g);
1104
1109
  }
1105
- function Qr(l) {
1106
- return F.delete(`/menu/${l}`);
1110
+ function Zr(c) {
1111
+ return F.delete(`/menu/${c}`);
1107
1112
  }
1108
- function Zr(l) {
1109
- return F.get("/user/list", { params: l });
1113
+ function et(c) {
1114
+ return F.get("/user/list", { params: c });
1110
1115
  }
1111
- function et(l) {
1112
- return F.get(`/user/${l}`);
1116
+ function rt(c) {
1117
+ return F.get(`/user/${c}`);
1113
1118
  }
1114
- function rt(l) {
1115
- return F.post("/user", l);
1119
+ function tt(c) {
1120
+ return F.post("/user", c);
1116
1121
  }
1117
- function tt(l, g) {
1118
- return F.put(`/user/${l}`, g);
1122
+ function nt(c, g) {
1123
+ return F.put(`/user/${c}`, g);
1119
1124
  }
1120
- function nt(l) {
1121
- return F.delete(`/user/${l}`);
1125
+ function it(c) {
1126
+ return F.delete(`/user/${c}`);
1122
1127
  }
1123
- function it(l) {
1124
- return F.post("/user/batch-delete", { ids: l });
1128
+ function ot(c) {
1129
+ return F.post("/user/batch-delete", { ids: c });
1125
1130
  }
1126
- function ot(l, g) {
1127
- return F.patch(`/user/${l}/status`, { status: g });
1131
+ function st(c, g) {
1132
+ return F.patch(`/user/${c}/status`, { status: g });
1128
1133
  }
1129
- function st(l) {
1130
- return F.post(`/user/${l}/reset-password`);
1134
+ function ft(c) {
1135
+ return F.post(`/user/${c}/reset-password`);
1131
1136
  }
1132
1137
  export {
1133
- Sr as A,
1138
+ tr as $,
1139
+ Pr as A,
1134
1140
  Ue as B,
1135
- Tr as C,
1136
- br as D,
1137
- jr as E,
1138
- Lr as F,
1139
- Fr as G,
1140
- Pr as H,
1141
- Mr as I,
1142
- Rr as J,
1143
- $r as K,
1144
- Br as L,
1145
- xr as M,
1146
- Ir as N,
1147
- ir as O,
1148
- rr as P,
1149
- F as Q,
1150
- ur as R,
1151
- ve as S,
1152
- yr as T,
1153
- Ae as U,
1154
- fr as V,
1155
- sr as W,
1156
- nr as X,
1157
- er as Y,
1158
- or as Z,
1159
- tr as _,
1160
- Vr as a,
1161
- it as b,
1162
- Jr as c,
1163
- rt as d,
1164
- Qr as e,
1165
- Hr as f,
1166
- nt as g,
1167
- Xr as h,
1168
- Yr as i,
1169
- qr as j,
1170
- Gr as k,
1171
- et as l,
1172
- Dr as m,
1173
- Zr as n,
1174
- kr as o,
1175
- Ur as p,
1176
- st as q,
1177
- Cr as r,
1178
- zr as s,
1179
- Kr as t,
1180
- Wr as u,
1181
- tt as v,
1182
- ot as w,
1141
+ Sr as C,
1142
+ jr as D,
1143
+ Fr as E,
1144
+ Nr as F,
1145
+ Mr as G,
1146
+ $r as H,
1147
+ Rr as I,
1148
+ br as J,
1149
+ kr as K,
1150
+ Gr as L,
1151
+ Tr as M,
1152
+ Br as N,
1153
+ xr as O,
1154
+ ir as P,
1155
+ rr as Q,
1156
+ F as R,
1157
+ ur as S,
1158
+ ve as T,
1159
+ Ir as U,
1160
+ Ae as V,
1161
+ fr as W,
1162
+ sr as X,
1163
+ nr as Y,
1164
+ er as Z,
1165
+ or as _,
1166
+ zr as a,
1167
+ ot as b,
1168
+ Wr as c,
1169
+ tt as d,
1170
+ Zr as e,
1171
+ Kr as f,
1172
+ it as g,
1173
+ Yr as h,
1174
+ Jr as i,
1175
+ Vr as j,
1176
+ qr as k,
1177
+ rt as l,
1178
+ Cr as m,
1179
+ et as n,
1180
+ Ur as o,
1181
+ Dr as p,
1182
+ ft as q,
1183
+ Lr as r,
1184
+ Hr as s,
1185
+ Xr as t,
1186
+ Qr as u,
1187
+ nt as v,
1188
+ st as w,
1183
1189
  K as x,
1184
1190
  Ar as y,
1185
1191
  ze as z