best-unit 2.0.15 → 2.0.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.
package/dist/best-unit.js CHANGED
@@ -44,15 +44,15 @@ function Te() {
44
44
  for (var e, t, n, r, o, a, i, s = 1; Z.length; ) Z.length > s && Z.sort(en), e = Z.shift(), s = Z.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, a = [], i = [], t.__P && ((n = K({}, r)).__v = r.__v + 1, I.vnode && I.vnode(n), lt(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, a, o ?? ae(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, sn(a, n, i), n.__e != o && rn(n)));
45
45
  Te.__r = 0;
46
46
  }
47
- function on(e, t, n, r, o, a, i, s, p, c, f) {
47
+ function on(e, t, n, r, o, a, i, s, f, c, p) {
48
48
  var u, x, m, h, _, b, S = r && r.__k || nn, L = t.length;
49
- for (p = er(n, t, S, p, L), u = 0; u < L; u++) (m = n.__k[u]) != null && (x = m.__i == -1 ? me : S[m.__i] || me, m.__i = u, b = lt(e, m, x, o, a, i, s, p, c, f), h = m.__e, m.ref && x.ref != m.ref && (x.ref && ct(x.ref, null, m), f.push(m.ref, m.__c || h, m)), _ == null && h != null && (_ = h), 4 & m.__u || x.__k === m.__k ? p = an(m, p, e) : typeof m.type == "function" && b !== void 0 ? p = b : h && (p = h.nextSibling), m.__u &= -7);
50
- return n.__e = _, p;
49
+ for (f = er(n, t, S, f, L), u = 0; u < L; u++) (m = n.__k[u]) != null && (x = m.__i == -1 ? me : S[m.__i] || me, m.__i = u, b = lt(e, m, x, o, a, i, s, f, c, p), h = m.__e, m.ref && x.ref != m.ref && (x.ref && ct(x.ref, null, m), p.push(m.ref, m.__c || h, m)), _ == null && h != null && (_ = h), 4 & m.__u || x.__k === m.__k ? f = an(m, f, e) : typeof m.type == "function" && b !== void 0 ? f = b : h && (f = h.nextSibling), m.__u &= -7);
50
+ return n.__e = _, f;
51
51
  }
52
52
  function er(e, t, n, r, o) {
53
- var a, i, s, p, c, f = n.length, u = f, x = 0;
54
- for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (p = a + x, (i = e.__k[a] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? he(null, i, null, null, null) : De(i) ? he(ne, { children: i }, null, null, null) : i.constructor == null && i.__b > 0 ? he(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, s = null, (c = i.__i = tr(i, n, p, u)) != -1 && (u--, (s = n[c]) && (s.__u |= 2)), s == null || s.__v == null ? (c == -1 && (o > f ? x-- : o < f && x++), typeof i.type != "function" && (i.__u |= 4)) : c != p && (c == p - 1 ? x-- : c == p + 1 ? x++ : (c > p ? x-- : x++, i.__u |= 4))) : e.__k[a] = null;
55
- if (u) for (a = 0; a < f; a++) (s = n[a]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = ae(s)), cn(s, s));
53
+ var a, i, s, f, c, p = n.length, u = p, x = 0;
54
+ for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (f = a + x, (i = e.__k[a] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? he(null, i, null, null, null) : De(i) ? he(ne, { children: i }, null, null, null) : i.constructor == null && i.__b > 0 ? he(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, s = null, (c = i.__i = tr(i, n, f, u)) != -1 && (u--, (s = n[c]) && (s.__u |= 2)), s == null || s.__v == null ? (c == -1 && (o > p ? x-- : o < p && x++), typeof i.type != "function" && (i.__u |= 4)) : c != f && (c == f - 1 ? x-- : c == f + 1 ? x++ : (c > f ? x-- : x++, i.__u |= 4))) : e.__k[a] = null;
55
+ if (u) for (a = 0; a < p; a++) (s = n[a]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = ae(s)), cn(s, s));
56
56
  return r;
57
57
  }
58
58
  function an(e, t, n) {
@@ -68,15 +68,15 @@ function an(e, t, n) {
68
68
  return t;
69
69
  }
70
70
  function tr(e, t, n, r) {
71
- var o, a, i = e.key, s = e.type, p = t[n];
72
- if (p === null && e.key == null || p && i == p.key && s == p.type && (2 & p.__u) == 0) return n;
73
- if (r > (p != null && (2 & p.__u) == 0 ? 1 : 0)) for (o = n - 1, a = n + 1; o >= 0 || a < t.length; ) {
71
+ var o, a, i = e.key, s = e.type, f = t[n];
72
+ if (f === null && e.key == null || f && i == f.key && s == f.type && (2 & f.__u) == 0) return n;
73
+ if (r > (f != null && (2 & f.__u) == 0 ? 1 : 0)) for (o = n - 1, a = n + 1; o >= 0 || a < t.length; ) {
74
74
  if (o >= 0) {
75
- if ((p = t[o]) && (2 & p.__u) == 0 && i == p.key && s == p.type) return o;
75
+ if ((f = t[o]) && (2 & f.__u) == 0 && i == f.key && s == f.type) return o;
76
76
  o--;
77
77
  }
78
78
  if (a < t.length) {
79
- if ((p = t[a]) && (2 & p.__u) == 0 && i == p.key && s == p.type) return a;
79
+ if ((f = t[a]) && (2 & f.__u) == 0 && i == f.key && s == f.type) return a;
80
80
  a++;
81
81
  }
82
82
  }
@@ -113,12 +113,12 @@ function kt(e) {
113
113
  }
114
114
  };
115
115
  }
116
- function lt(e, t, n, r, o, a, i, s, p, c) {
117
- var f, u, x, m, h, _, b, S, L, T, A, M, R, P, w, F, U, W = t.type;
116
+ function lt(e, t, n, r, o, a, i, s, f, c) {
117
+ var p, u, x, m, h, _, b, S, L, T, A, M, R, P, w, F, U, W = t.type;
118
118
  if (t.constructor != null) return null;
119
- 128 & n.__u && (p = !!(32 & n.__u), a = [s = t.__e = n.__e]), (f = I.__b) && f(t);
119
+ 128 & n.__u && (f = !!(32 & n.__u), a = [s = t.__e = n.__e]), (p = I.__b) && p(t);
120
120
  e: if (typeof W == "function") try {
121
- if (S = t.props, L = "prototype" in W && W.prototype.render, T = (f = W.contextType) && r[f.__c], A = f ? T ? T.props.value : f.__ : r, n.__c ? b = (u = t.__c = n.__c).__ = u.__E : (L ? t.__c = u = new W(S, A) : (t.__c = u = new Ae(S, A), u.constructor = W, u.render = rr), T && T.sub(u), u.props = S, u.state || (u.state = {}), u.context = A, u.__n = r, x = u.__d = !0, u.__h = [], u._sb = []), L && u.__s == null && (u.__s = u.state), L && W.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = K({}, u.__s)), K(u.__s, W.getDerivedStateFromProps(S, u.__s))), m = u.props, h = u.state, u.__v = t, x) L && W.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), L && u.componentDidMount != null && u.__h.push(u.componentDidMount);
121
+ if (S = t.props, L = "prototype" in W && W.prototype.render, T = (p = W.contextType) && r[p.__c], A = p ? T ? T.props.value : p.__ : r, n.__c ? b = (u = t.__c = n.__c).__ = u.__E : (L ? t.__c = u = new W(S, A) : (t.__c = u = new Ae(S, A), u.constructor = W, u.render = rr), T && T.sub(u), u.props = S, u.state || (u.state = {}), u.context = A, u.__n = r, x = u.__d = !0, u.__h = [], u._sb = []), L && u.__s == null && (u.__s = u.state), L && W.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = K({}, u.__s)), K(u.__s, W.getDerivedStateFromProps(S, u.__s))), m = u.props, h = u.state, u.__v = t, x) L && W.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), L && u.componentDidMount != null && u.__h.push(u.componentDidMount);
122
122
  else {
123
123
  if (L && W.getDerivedStateFromProps == null && S !== m && u.componentWillReceiveProps != null && u.componentWillReceiveProps(S, A), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(S, u.__s, A) === !1 || t.__v == n.__v) {
124
124
  for (t.__v != n.__v && (u.props = S, u.state = u.__s, u.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(V) {
@@ -132,22 +132,22 @@ function lt(e, t, n, r, o, a, i, s, p, c) {
132
132
  });
133
133
  }
134
134
  if (u.context = A, u.props = S, u.__P = e, u.__e = !1, R = I.__r, P = 0, L) {
135
- for (u.state = u.__s, u.__d = !1, R && R(t), f = u.render(u.props, u.state, u.context), w = 0; w < u._sb.length; w++) u.__h.push(u._sb[w]);
135
+ for (u.state = u.__s, u.__d = !1, R && R(t), p = u.render(u.props, u.state, u.context), w = 0; w < u._sb.length; w++) u.__h.push(u._sb[w]);
136
136
  u._sb = [];
137
137
  } else do
138
- u.__d = !1, R && R(t), f = u.render(u.props, u.state, u.context), u.state = u.__s;
138
+ u.__d = !1, R && R(t), p = u.render(u.props, u.state, u.context), u.state = u.__s;
139
139
  while (u.__d && ++P < 25);
140
- u.state = u.__s, u.getChildContext != null && (r = K(K({}, r), u.getChildContext())), L && !x && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(m, h)), F = f, f != null && f.type === ne && f.key == null && (F = ln(f.props.children)), s = on(e, De(F) ? F : [F], t, n, r, o, a, i, s, p, c), u.base = t.__e, t.__u &= -161, u.__h.length && i.push(u), b && (u.__E = u.__ = null);
140
+ u.state = u.__s, u.getChildContext != null && (r = K(K({}, r), u.getChildContext())), L && !x && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(m, h)), F = p, p != null && p.type === ne && p.key == null && (F = ln(p.props.children)), s = on(e, De(F) ? F : [F], t, n, r, o, a, i, s, f, c), u.base = t.__e, t.__u &= -161, u.__h.length && i.push(u), b && (u.__E = u.__ = null);
141
141
  } catch (V) {
142
- if (t.__v = null, p || a != null) if (V.then) {
143
- for (t.__u |= p ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
142
+ if (t.__v = null, f || a != null) if (V.then) {
143
+ for (t.__u |= f ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
144
144
  a[a.indexOf(s)] = null, t.__e = s;
145
145
  } else for (U = a.length; U--; ) st(a[U]);
146
146
  else t.__e = n.__e, t.__k = n.__k;
147
147
  I.__e(V, t, n);
148
148
  }
149
- else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = nr(n.__e, t, n, r, o, a, i, p, c);
150
- return (f = I.diffed) && f(t), 128 & t.__u ? void 0 : s;
149
+ else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = nr(n.__e, t, n, r, o, a, i, f, c);
150
+ return (p = I.diffed) && p(t), 128 & t.__u ? void 0 : s;
151
151
  }
152
152
  function sn(e, t, n) {
153
153
  for (var r = 0; r < n.length; r++) ct(n[r], n[++r], n[++r]);
@@ -164,8 +164,8 @@ function sn(e, t, n) {
164
164
  function ln(e) {
165
165
  return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : De(e) ? e.map(ln) : K({}, e);
166
166
  }
167
- function nr(e, t, n, r, o, a, i, s, p) {
168
- var c, f, u, x, m, h, _, b = n.props, S = t.props, L = t.type;
167
+ function nr(e, t, n, r, o, a, i, s, f) {
168
+ var c, p, u, x, m, h, _, b = n.props, S = t.props, L = t.type;
169
169
  if (L == "svg" ? o = "http://www.w3.org/2000/svg" : L == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), a != null) {
170
170
  for (c = 0; c < a.length; c++) if ((m = a[c]) && "setAttribute" in m == !!L && (L ? m.localName == L : m.nodeType == 3)) {
171
171
  e = m, a[c] = null;
@@ -186,9 +186,9 @@ function nr(e, t, n, r, o, a, i, s, p) {
186
186
  Le(e, c, null, m, o);
187
187
  }
188
188
  }
189
- for (c in S) m = S[c], c == "children" ? x = m : c == "dangerouslySetInnerHTML" ? f = m : c == "value" ? h = m : c == "checked" ? _ = m : s && typeof m != "function" || b[c] === m || Le(e, c, m, b[c], o);
190
- if (f) s || u && (f.__html == u.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
191
- else if (u && (e.innerHTML = ""), on(t.type == "template" ? e.content : e, De(x) ? x : [x], t, n, r, L == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, i, a ? a[0] : n.__k && ae(n, 0), s, p), a != null) for (c = a.length; c--; ) st(a[c]);
189
+ for (c in S) m = S[c], c == "children" ? x = m : c == "dangerouslySetInnerHTML" ? p = m : c == "value" ? h = m : c == "checked" ? _ = m : s && typeof m != "function" || b[c] === m || Le(e, c, m, b[c], o);
190
+ if (p) s || u && (p.__html == u.__html || p.__html == e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
191
+ else if (u && (e.innerHTML = ""), on(t.type == "template" ? e.content : e, De(x) ? x : [x], t, n, r, L == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, i, a ? a[0] : n.__k && ae(n, 0), s, f), a != null) for (c = a.length; c--; ) st(a[c]);
192
192
  s || (c = "value", L == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[c] || L == "progress" && !h || L == "option" && h != b[c]) && Le(e, c, h, b[c], o), c = "checked", _ != null && _ != e[c] && Le(e, c, _, b[c], o));
193
193
  }
194
194
  return e;
@@ -249,10 +249,10 @@ ye = nn.slice, I = { __e: function(e, t, n, r) {
249
249
  var or = 0;
250
250
  function d(e, t, n, r, o, a) {
251
251
  t || (t = {});
252
- var i, s, p = t;
253
- if ("ref" in p) for (s in p = {}, t) s == "ref" ? i = t[s] : p[s] = t[s];
254
- var c = { type: e, props: p, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --or, __i: -1, __u: 0, __source: o, __self: a };
255
- if (typeof e == "function" && (i = e.defaultProps)) for (s in i) p[s] === void 0 && (p[s] = i[s]);
252
+ var i, s, f = t;
253
+ if ("ref" in f) for (s in f = {}, t) s == "ref" ? i = t[s] : f[s] = t[s];
254
+ var c = { type: e, props: f, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --or, __i: -1, __u: 0, __source: o, __self: a };
255
+ if (typeof e == "function" && (i = e.defaultProps)) for (s in i) f[s] === void 0 && (f[s] = i[s]);
256
256
  return I.vnode && I.vnode(c), c;
257
257
  }
258
258
  var ge, D, Je, Et, Be = 0, fn = [], O = I, Ct = O.__b, vt = O.__r, Mt = O.diffed, Tt = O.__c, Bt = O.unmount, Rt = O.__;
@@ -267,33 +267,33 @@ function B(e) {
267
267
  function ir(e, t, n) {
268
268
  var r = dt(ge++, 2);
269
269
  if (r.t = e, !r.__c && (r.__ = [hn(void 0, t), function(s) {
270
- var p = r.__N ? r.__N[0] : r.__[0], c = r.t(p, s);
271
- p !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
270
+ var f = r.__N ? r.__N[0] : r.__[0], c = r.t(f, s);
271
+ f !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
272
272
  }], r.__c = D, !D.__f)) {
273
- var o = function(s, p, c) {
273
+ var o = function(s, f, c) {
274
274
  if (!r.__c.__H) return !0;
275
- var f = r.__c.__H.__.filter(function(x) {
275
+ var p = r.__c.__H.__.filter(function(x) {
276
276
  return !!x.__c;
277
277
  });
278
- if (f.every(function(x) {
278
+ if (p.every(function(x) {
279
279
  return !x.__N;
280
- })) return !a || a.call(this, s, p, c);
280
+ })) return !a || a.call(this, s, f, c);
281
281
  var u = r.__c.props !== s;
282
- return f.forEach(function(x) {
282
+ return p.forEach(function(x) {
283
283
  if (x.__N) {
284
284
  var m = x.__[0];
285
285
  x.__ = x.__N, x.__N = void 0, m !== x.__[0] && (u = !0);
286
286
  }
287
- }), a && a.call(this, s, p, c) || u;
287
+ }), a && a.call(this, s, f, c) || u;
288
288
  };
289
289
  D.__f = !0;
290
290
  var a = D.shouldComponentUpdate, i = D.componentWillUpdate;
291
- D.componentWillUpdate = function(s, p, c) {
291
+ D.componentWillUpdate = function(s, f, c) {
292
292
  if (this.__e) {
293
- var f = a;
294
- a = void 0, o(s, p, c), a = f;
293
+ var p = a;
294
+ a = void 0, o(s, f, c), a = p;
295
295
  }
296
- i && i.call(this, s, p, c);
296
+ i && i.call(this, s, f, c);
297
297
  }, D.shouldComponentUpdate = o;
298
298
  }
299
299
  return r.__N || r.__;
@@ -530,8 +530,8 @@ const Hr = (e) => {
530
530
  t[o] = r;
531
531
  const a = le(r) ? [] : {};
532
532
  return xe(r, (i, s) => {
533
- const p = n(i, o + 1);
534
- !be(p) && (a[s] = p);
533
+ const f = n(i, o + 1);
534
+ !be(f) && (a[s] = f);
535
535
  }), t[o] = void 0, a;
536
536
  }
537
537
  }
@@ -650,8 +650,8 @@ Object.defineProperties(C, An);
650
650
  Object.defineProperty(wn, "isAxiosError", { value: !0 });
651
651
  C.from = (e, t, n, r, o, a) => {
652
652
  const i = Object.create(wn);
653
- return g.toFlatObject(e, i, function(p) {
654
- return p !== Error.prototype;
653
+ return g.toFlatObject(e, i, function(f) {
654
+ return f !== Error.prototype;
655
655
  }, (s) => s !== "isAxiosError"), C.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
656
656
  };
657
657
  const Yr = null;
@@ -682,7 +682,7 @@ function $e(e, t, n) {
682
682
  }, !1, function(_, b) {
683
683
  return !g.isUndefined(b[_]);
684
684
  });
685
- const r = n.metaTokens, o = n.visitor || f, a = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
685
+ const r = n.metaTokens, o = n.visitor || p, a = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
686
686
  if (!g.isFunction(o))
687
687
  throw new TypeError("visitor must be a function");
688
688
  function c(h) {
@@ -691,11 +691,11 @@ function $e(e, t, n) {
691
691
  return h.toISOString();
692
692
  if (g.isBoolean(h))
693
693
  return h.toString();
694
- if (!p && g.isBlob(h))
694
+ if (!f && g.isBlob(h))
695
695
  throw new C("Blob is not supported. Use a Buffer instead.");
696
- return g.isArrayBuffer(h) || g.isTypedArray(h) ? p && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
696
+ return g.isArrayBuffer(h) || g.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
697
697
  }
698
- function f(h, _, b) {
698
+ function p(h, _, b) {
699
699
  let S = h;
700
700
  if (h && !b && typeof h == "object") {
701
701
  if (g.endsWith(_, "{}"))
@@ -712,7 +712,7 @@ function $e(e, t, n) {
712
712
  return et(h) ? !0 : (t.append(Dt(b, _, a), c(h)), !1);
713
713
  }
714
714
  const u = [], x = Object.assign(Kr, {
715
- defaultVisitor: f,
715
+ defaultVisitor: p,
716
716
  convertValue: c,
717
717
  isVisitable: et
718
718
  });
@@ -883,8 +883,8 @@ function Mn(e) {
883
883
  function t(n, r, o, a) {
884
884
  let i = n[a++];
885
885
  if (i === "__proto__") return !0;
886
- const s = Number.isFinite(+i), p = a >= n.length;
887
- return i = !i && g.isArray(o) ? o.length : i, p ? (g.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !g.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && g.isArray(o[i]) && (o[i] = lo(o[i])), !s);
886
+ const s = Number.isFinite(+i), f = a >= n.length;
887
+ return i = !i && g.isArray(o) ? o.length : i, f ? (g.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !g.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && g.isArray(o[i]) && (o[i] = lo(o[i])), !s);
888
888
  }
889
889
  if (g.isFormData(e) && g.isFunction(e.entries)) {
890
890
  const n = {};
@@ -922,10 +922,10 @@ const _e = {
922
922
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
923
923
  return ao(t, this.formSerializer).toString();
924
924
  if ((s = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
925
- const p = this.env && this.env.FormData;
925
+ const f = this.env && this.env.FormData;
926
926
  return $e(
927
927
  s ? { "files[]": t } : t,
928
- p && new p(),
928
+ f && new f(),
929
929
  this.formSerializer
930
930
  );
931
931
  }
@@ -1043,24 +1043,24 @@ let q = class {
1043
1043
  }
1044
1044
  set(t, n, r) {
1045
1045
  const o = this;
1046
- function a(s, p, c) {
1047
- const f = pe(p);
1048
- if (!f)
1046
+ function a(s, f, c) {
1047
+ const p = pe(f);
1048
+ if (!p)
1049
1049
  throw new Error("header name must be a non-empty string");
1050
- const u = g.findKey(o, f);
1051
- (!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u || p] = Ce(s));
1050
+ const u = g.findKey(o, p);
1051
+ (!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u || f] = Ce(s));
1052
1052
  }
1053
- const i = (s, p) => g.forEach(s, (c, f) => a(c, f, p));
1053
+ const i = (s, f) => g.forEach(s, (c, p) => a(c, p, f));
1054
1054
  if (g.isPlainObject(t) || t instanceof this.constructor)
1055
1055
  i(t, n);
1056
1056
  else if (g.isString(t) && (t = t.trim()) && !ho(t))
1057
1057
  i(fo(t), n);
1058
1058
  else if (g.isObject(t) && g.isIterable(t)) {
1059
- let s = {}, p, c;
1060
- for (const f of t) {
1061
- if (!g.isArray(f))
1059
+ let s = {}, f, c;
1060
+ for (const p of t) {
1061
+ if (!g.isArray(p))
1062
1062
  throw TypeError("Object iterator must return a key-value pair");
1063
- s[c = f[0]] = (p = s[c]) ? g.isArray(p) ? [...p, f[1]] : [p, f[1]] : f[1];
1063
+ s[c = p[0]] = (f = s[c]) ? g.isArray(f) ? [...f, p[1]] : [f, p[1]] : p[1];
1064
1064
  }
1065
1065
  i(s, n);
1066
1066
  } else
@@ -1208,26 +1208,26 @@ function yo(e, t) {
1208
1208
  e = e || 10;
1209
1209
  const n = new Array(e), r = new Array(e);
1210
1210
  let o = 0, a = 0, i;
1211
- return t = t !== void 0 ? t : 1e3, function(p) {
1212
- const c = Date.now(), f = r[a];
1213
- i || (i = c), n[o] = p, r[o] = c;
1211
+ return t = t !== void 0 ? t : 1e3, function(f) {
1212
+ const c = Date.now(), p = r[a];
1213
+ i || (i = c), n[o] = f, r[o] = c;
1214
1214
  let u = a, x = 0;
1215
1215
  for (; u !== o; )
1216
1216
  x += n[u++], u = u % e;
1217
1217
  if (o = (o + 1) % e, o === a && (a = (a + 1) % e), c - i < t)
1218
1218
  return;
1219
- const m = f && c - f;
1219
+ const m = p && c - p;
1220
1220
  return m ? Math.round(x * 1e3 / m) : void 0;
1221
1221
  };
1222
1222
  }
1223
1223
  function xo(e, t) {
1224
1224
  let n = 0, r = 1e3 / t, o, a;
1225
- const i = (c, f = Date.now()) => {
1226
- n = f, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
1225
+ const i = (c, p = Date.now()) => {
1226
+ n = p, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
1227
1227
  };
1228
1228
  return [(...c) => {
1229
- const f = Date.now(), u = f - n;
1230
- u >= r ? i(c, f) : (o = c, a || (a = setTimeout(() => {
1229
+ const p = Date.now(), u = p - n;
1230
+ u >= r ? i(c, p) : (o = c, a || (a = setTimeout(() => {
1231
1231
  a = null, i(o);
1232
1232
  }, r - u)));
1233
1233
  }, () => o && i(o)];
@@ -1236,15 +1236,15 @@ const Re = (e, t, n = 3) => {
1236
1236
  let r = 0;
1237
1237
  const o = yo(50, 250);
1238
1238
  return xo((a) => {
1239
- const i = a.loaded, s = a.lengthComputable ? a.total : void 0, p = i - r, c = o(p), f = i <= s;
1239
+ const i = a.loaded, s = a.lengthComputable ? a.total : void 0, f = i - r, c = o(f), p = i <= s;
1240
1240
  r = i;
1241
1241
  const u = {
1242
1242
  loaded: i,
1243
1243
  total: s,
1244
1244
  progress: s ? i / s : void 0,
1245
- bytes: p,
1245
+ bytes: f,
1246
1246
  rate: c || void 0,
1247
- estimated: c && s && f ? (s - i) / c : void 0,
1247
+ estimated: c && s && p ? (s - i) / c : void 0,
1248
1248
  event: a,
1249
1249
  lengthComputable: s != null,
1250
1250
  [t ? "download" : "upload"]: !0
@@ -1302,32 +1302,32 @@ const Wt = (e) => e instanceof q ? { ...e } : e;
1302
1302
  function te(e, t) {
1303
1303
  t = t || {};
1304
1304
  const n = {};
1305
- function r(c, f, u, x) {
1306
- return g.isPlainObject(c) && g.isPlainObject(f) ? g.merge.call({ caseless: x }, c, f) : g.isPlainObject(f) ? g.merge({}, f) : g.isArray(f) ? f.slice() : f;
1305
+ function r(c, p, u, x) {
1306
+ return g.isPlainObject(c) && g.isPlainObject(p) ? g.merge.call({ caseless: x }, c, p) : g.isPlainObject(p) ? g.merge({}, p) : g.isArray(p) ? p.slice() : p;
1307
1307
  }
1308
- function o(c, f, u, x) {
1309
- if (g.isUndefined(f)) {
1308
+ function o(c, p, u, x) {
1309
+ if (g.isUndefined(p)) {
1310
1310
  if (!g.isUndefined(c))
1311
1311
  return r(void 0, c, u, x);
1312
- } else return r(c, f, u, x);
1312
+ } else return r(c, p, u, x);
1313
1313
  }
1314
- function a(c, f) {
1315
- if (!g.isUndefined(f))
1316
- return r(void 0, f);
1314
+ function a(c, p) {
1315
+ if (!g.isUndefined(p))
1316
+ return r(void 0, p);
1317
1317
  }
1318
- function i(c, f) {
1319
- if (g.isUndefined(f)) {
1318
+ function i(c, p) {
1319
+ if (g.isUndefined(p)) {
1320
1320
  if (!g.isUndefined(c))
1321
1321
  return r(void 0, c);
1322
- } else return r(void 0, f);
1322
+ } else return r(void 0, p);
1323
1323
  }
1324
- function s(c, f, u) {
1324
+ function s(c, p, u) {
1325
1325
  if (u in t)
1326
- return r(c, f);
1326
+ return r(c, p);
1327
1327
  if (u in e)
1328
1328
  return r(void 0, c);
1329
1329
  }
1330
- const p = {
1330
+ const f = {
1331
1331
  url: a,
1332
1332
  method: a,
1333
1333
  data: a,
@@ -1356,11 +1356,11 @@ function te(e, t) {
1356
1356
  socketPath: i,
1357
1357
  responseEncoding: i,
1358
1358
  validateStatus: s,
1359
- headers: (c, f, u) => o(Wt(c), Wt(f), u, !0)
1359
+ headers: (c, p, u) => o(Wt(c), Wt(p), u, !0)
1360
1360
  };
1361
- return g.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
1362
- const u = p[f] || o, x = u(e[f], t[f], f);
1363
- g.isUndefined(x) && u !== s || (n[f] = x);
1361
+ return g.forEach(Object.keys(Object.assign({}, e, t)), function(p) {
1362
+ const u = f[p] || o, x = u(e[p], t[p], p);
1363
+ g.isUndefined(x) && u !== s || (n[p] = x);
1364
1364
  }), n;
1365
1365
  }
1366
1366
  const Fn = (e) => {
@@ -1370,13 +1370,13 @@ const Fn = (e) => {
1370
1370
  "Authorization",
1371
1371
  "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
1372
1372
  );
1373
- let p;
1373
+ let f;
1374
1374
  if (g.isFormData(n)) {
1375
1375
  if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
1376
1376
  i.setContentType(void 0);
1377
- else if ((p = i.getContentType()) !== !1) {
1378
- const [c, ...f] = p ? p.split(";").map((u) => u.trim()).filter(Boolean) : [];
1379
- i.setContentType([c || "multipart/form-data", ...f].join("; "));
1377
+ else if ((f = i.getContentType()) !== !1) {
1378
+ const [c, ...p] = f ? f.split(";").map((u) => u.trim()).filter(Boolean) : [];
1379
+ i.setContentType([c || "multipart/form-data", ...p].join("; "));
1380
1380
  }
1381
1381
  }
1382
1382
  if ($.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && _o(t.url))) {
@@ -1389,9 +1389,9 @@ const Fn = (e) => {
1389
1389
  const o = Fn(e);
1390
1390
  let a = o.data;
1391
1391
  const i = q.from(o.headers).normalize();
1392
- let { responseType: s, onUploadProgress: p, onDownloadProgress: c } = o, f, u, x, m, h;
1392
+ let { responseType: s, onUploadProgress: f, onDownloadProgress: c } = o, p, u, x, m, h;
1393
1393
  function _() {
1394
- m && m(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
1394
+ m && m(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(p), o.signal && o.signal.removeEventListener("abort", p);
1395
1395
  }
1396
1396
  let b = new XMLHttpRequest();
1397
1397
  b.open(o.method.toUpperCase(), o.url, !0), b.timeout = o.timeout;
@@ -1431,9 +1431,9 @@ const Fn = (e) => {
1431
1431
  )), b = null;
1432
1432
  }, a === void 0 && i.setContentType(null), "setRequestHeader" in b && g.forEach(i.toJSON(), function(A, M) {
1433
1433
  b.setRequestHeader(M, A);
1434
- }), g.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), s && s !== "json" && (b.responseType = o.responseType), c && ([x, h] = Re(c, !0), b.addEventListener("progress", x)), p && b.upload && ([u, m] = Re(p), b.upload.addEventListener("progress", u), b.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (f = (T) => {
1434
+ }), g.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), s && s !== "json" && (b.responseType = o.responseType), c && ([x, h] = Re(c, !0), b.addEventListener("progress", x)), f && b.upload && ([u, m] = Re(f), b.upload.addEventListener("progress", u), b.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (p = (T) => {
1435
1435
  b && (r(!T || T.type ? new ce(null, e, b) : T), b.abort(), b = null);
1436
- }, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
1436
+ }, o.cancelToken && o.cancelToken.subscribe(p), o.signal && (o.signal.aborted ? p() : o.signal.addEventListener("abort", p)));
1437
1437
  const L = bo(o.url);
1438
1438
  if (L && $.protocols.indexOf(L) === -1) {
1439
1439
  r(new C("Unsupported protocol " + L + ":", C.ERR_BAD_REQUEST, e));
@@ -1448,8 +1448,8 @@ const Fn = (e) => {
1448
1448
  const a = function(c) {
1449
1449
  if (!o) {
1450
1450
  o = !0, s();
1451
- const f = c instanceof Error ? c : this.reason;
1452
- r.abort(f instanceof C ? f : new ce(f instanceof Error ? f.message : f));
1451
+ const p = c instanceof Error ? c : this.reason;
1452
+ r.abort(p instanceof C ? p : new ce(p instanceof Error ? p.message : p));
1453
1453
  }
1454
1454
  };
1455
1455
  let i = t && setTimeout(() => {
@@ -1461,8 +1461,8 @@ const Fn = (e) => {
1461
1461
  }), e = null);
1462
1462
  };
1463
1463
  e.forEach((c) => c.addEventListener("abort", a));
1464
- const { signal: p } = r;
1465
- return p.unsubscribe = () => g.asap(s), p;
1464
+ const { signal: f } = r;
1465
+ return f.unsubscribe = () => g.asap(s), f;
1466
1466
  }
1467
1467
  }, Co = function* (e, t) {
1468
1468
  let n = e.byteLength;
@@ -1494,29 +1494,29 @@ const Fn = (e) => {
1494
1494
  }
1495
1495
  }, $t = (e, t, n, r) => {
1496
1496
  const o = vo(e, t);
1497
- let a = 0, i, s = (p) => {
1498
- i || (i = !0, r && r(p));
1497
+ let a = 0, i, s = (f) => {
1498
+ i || (i = !0, r && r(f));
1499
1499
  };
1500
1500
  return new ReadableStream({
1501
- async pull(p) {
1501
+ async pull(f) {
1502
1502
  try {
1503
- const { done: c, value: f } = await o.next();
1503
+ const { done: c, value: p } = await o.next();
1504
1504
  if (c) {
1505
- s(), p.close();
1505
+ s(), f.close();
1506
1506
  return;
1507
1507
  }
1508
- let u = f.byteLength;
1508
+ let u = p.byteLength;
1509
1509
  if (n) {
1510
1510
  let x = a += u;
1511
1511
  n(x);
1512
1512
  }
1513
- p.enqueue(new Uint8Array(f));
1513
+ f.enqueue(new Uint8Array(p));
1514
1514
  } catch (c) {
1515
1515
  throw s(c), c;
1516
1516
  }
1517
1517
  },
1518
- cancel(p) {
1519
- return s(p), o.return();
1518
+ cancel(f) {
1519
+ return s(f), o.return();
1520
1520
  }
1521
1521
  }, {
1522
1522
  highWaterMark: 2
@@ -1573,9 +1573,9 @@ const Ro = async (e) => {
1573
1573
  cancelToken: a,
1574
1574
  timeout: i,
1575
1575
  onDownloadProgress: s,
1576
- onUploadProgress: p,
1576
+ onUploadProgress: f,
1577
1577
  responseType: c,
1578
- headers: f,
1578
+ headers: p,
1579
1579
  withCredentials: u = "same-origin",
1580
1580
  fetchOptions: x
1581
1581
  } = Fn(e);
@@ -1586,16 +1586,16 @@ const Ro = async (e) => {
1586
1586
  });
1587
1587
  let b;
1588
1588
  try {
1589
- if (p && Bo && n !== "get" && n !== "head" && (b = await Fo(f, r)) !== 0) {
1589
+ if (f && Bo && n !== "get" && n !== "head" && (b = await Fo(p, r)) !== 0) {
1590
1590
  let M = new Request(t, {
1591
1591
  method: "POST",
1592
1592
  body: r,
1593
1593
  duplex: "half"
1594
1594
  }), R;
1595
- if (g.isFormData(r) && (R = M.headers.get("content-type")) && f.setContentType(R), M.body) {
1595
+ if (g.isFormData(r) && (R = M.headers.get("content-type")) && p.setContentType(R), M.body) {
1596
1596
  const [P, w] = Nt(
1597
1597
  b,
1598
- Re(Ut(p))
1598
+ Re(Ut(f))
1599
1599
  );
1600
1600
  r = $t(M.body, Ht, P, w);
1601
1601
  }
@@ -1606,7 +1606,7 @@ const Ro = async (e) => {
1606
1606
  ...x,
1607
1607
  signal: m,
1608
1608
  method: n.toUpperCase(),
1609
- headers: f.normalize().toJSON(),
1609
+ headers: p.normalize().toJSON(),
1610
1610
  body: r,
1611
1611
  duplex: "half",
1612
1612
  credentials: S ? u : void 0
@@ -1680,7 +1680,7 @@ const jt = (e) => `- ${e}`, Do = (e) => g.isFunction(e) || e === null || e === !
1680
1680
  }
1681
1681
  if (!r) {
1682
1682
  const a = Object.entries(o).map(
1683
- ([s, p]) => `adapter ${s} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1683
+ ([s, f]) => `adapter ${s} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1684
1684
  );
1685
1685
  let i = t ? a.length > 1 ? `since :
1686
1686
  ` + a.map(jt).join(`
@@ -1752,9 +1752,9 @@ function zo(e, t, n) {
1752
1752
  for (; o-- > 0; ) {
1753
1753
  const a = r[o], i = t[a];
1754
1754
  if (i) {
1755
- const s = e[a], p = s === void 0 || i(s, a, e);
1756
- if (p !== !0)
1757
- throw new C("option " + a + " must be " + p, C.ERR_BAD_OPTION_VALUE);
1755
+ const s = e[a], f = s === void 0 || i(s, a, e);
1756
+ if (f !== !0)
1757
+ throw new C("option " + a + " must be " + f, C.ERR_BAD_OPTION_VALUE);
1758
1758
  continue;
1759
1759
  }
1760
1760
  if (n !== !0)
@@ -1824,20 +1824,20 @@ let ee = class {
1824
1824
  }
1825
1825
  ), n.headers = q.concat(i, a);
1826
1826
  const s = [];
1827
- let p = !0;
1827
+ let f = !0;
1828
1828
  this.interceptors.request.forEach(function(_) {
1829
- typeof _.runWhen == "function" && _.runWhen(n) === !1 || (p = p && _.synchronous, s.unshift(_.fulfilled, _.rejected));
1829
+ typeof _.runWhen == "function" && _.runWhen(n) === !1 || (f = f && _.synchronous, s.unshift(_.fulfilled, _.rejected));
1830
1830
  });
1831
1831
  const c = [];
1832
1832
  this.interceptors.response.forEach(function(_) {
1833
1833
  c.push(_.fulfilled, _.rejected);
1834
1834
  });
1835
- let f, u = 0, x;
1836
- if (!p) {
1835
+ let p, u = 0, x;
1836
+ if (!f) {
1837
1837
  const h = [qt.bind(this), void 0];
1838
- for (h.unshift.apply(h, s), h.push.apply(h, c), x = h.length, f = Promise.resolve(n); u < x; )
1839
- f = f.then(h[u++], h[u++]);
1840
- return f;
1838
+ for (h.unshift.apply(h, s), h.push.apply(h, c), x = h.length, p = Promise.resolve(n); u < x; )
1839
+ p = p.then(h[u++], h[u++]);
1840
+ return p;
1841
1841
  }
1842
1842
  x = s.length;
1843
1843
  let m = n;
@@ -1851,13 +1851,13 @@ let ee = class {
1851
1851
  }
1852
1852
  }
1853
1853
  try {
1854
- f = qt.call(this, m);
1854
+ p = qt.call(this, m);
1855
1855
  } catch (h) {
1856
1856
  return Promise.reject(h);
1857
1857
  }
1858
1858
  for (u = 0, x = c.length; u < x; )
1859
- f = f.then(c[u++], c[u++]);
1860
- return f;
1859
+ p = p.then(c[u++], c[u++]);
1860
+ return p;
1861
1861
  }
1862
1862
  getUri(t) {
1863
1863
  t = te(this.defaults, t);
@@ -2104,23 +2104,23 @@ function Uo(e = {}) {
2104
2104
  break;
2105
2105
  }
2106
2106
  const { baseURL: o = r, timeout: a = 1e4, onError: i } = e, s = z.create({ baseURL: o, timeout: a });
2107
- return s.interceptors.request.use((p) => {
2108
- const { token: c, locale: f } = t;
2109
- return p.headers = {
2110
- ...p.headers,
2107
+ return s.interceptors.request.use((f) => {
2108
+ const { token: c, locale: p } = t;
2109
+ return f.headers = {
2110
+ ...f.headers,
2111
2111
  Authorization: c,
2112
- "x-locale": f === Oe.ZH ? "zh-CN" : "en-US"
2113
- }, p;
2112
+ "x-locale": p === Oe.ZH ? "zh-CN" : "en-US"
2113
+ }, f;
2114
2114
  }), s.interceptors.response.use(
2115
- (p) => {
2116
- if (p.data && p.data.code === 0)
2117
- return p.data;
2118
- const c = p.data?.msg || p.data?.message || "未知错误";
2119
- return Ie.error(c), i && i(c, p), Promise.reject(p.data || { message: "未知错误" });
2120
- },
2121
- (p) => {
2122
- const c = p.response?.data?.msg || p.response?.data?.message || p.message || "网络请求失败";
2123
- return Ie.error(c), i && i(c, p), Promise.reject(p);
2115
+ (f) => {
2116
+ if (f.data && f.data.code === 0)
2117
+ return f.data;
2118
+ const c = f.data?.msg || f.data?.message || "未知错误";
2119
+ return Ie.error(c), i && i(c, f), Promise.reject(f.data || { message: "未知错误" });
2120
+ },
2121
+ (f) => {
2122
+ const c = f.response?.data?.msg || f.response?.data?.message || f.message || "网络请求失败";
2123
+ return Ie.error(c), i && i(c, f), Promise.reject(f);
2124
2124
  }
2125
2125
  ), s;
2126
2126
  }
@@ -2285,11 +2285,11 @@ function Sa(e) {
2285
2285
  theme: a = N.WHITE,
2286
2286
  locale: i = Oe.ZH,
2287
2287
  env: s,
2288
- size: p,
2288
+ size: f,
2289
2289
  themeConfig: c
2290
2290
  } = e;
2291
2291
  console.log(e, "InitParams1111");
2292
- const f = "Bearer " + e.token;
2292
+ const p = "Bearer " + e.token;
2293
2293
  return sessionStorage.setItem(
2294
2294
  "fund_unit_params",
2295
2295
  JSON.stringify({
@@ -2297,15 +2297,15 @@ function Sa(e) {
2297
2297
  bizType: n,
2298
2298
  fundBalanceId: r,
2299
2299
  userId: o,
2300
- token: f,
2300
+ token: p,
2301
2301
  theme: a,
2302
2302
  locale: i,
2303
2303
  env: s,
2304
- size: p,
2304
+ size: f,
2305
2305
  themeConfig: c
2306
2306
  })
2307
2307
  ), Wo(), $o(), {
2308
- token: f,
2308
+ token: p,
2309
2309
  merchantId: t,
2310
2310
  bizType: n,
2311
2311
  fundBalanceId: r,
@@ -2313,7 +2313,7 @@ function Sa(e) {
2313
2313
  theme: a,
2314
2314
  locale: i,
2315
2315
  env: s,
2316
- size: p
2316
+ size: f
2317
2317
  };
2318
2318
  }
2319
2319
  function E(e) {
@@ -2423,8 +2423,8 @@ class Go {
2423
2423
  <rect x="7.25" y="5" width="1.5" height="1.5" rx="0.75" fill="white"/>
2424
2424
  `, s.appendChild(c);
2425
2425
  }
2426
- const p = document.createElement("div");
2427
- if (p.textContent = r, p.style.flex = "1", p.style.color = i.color, s.appendChild(p), a) {
2426
+ const f = document.createElement("div");
2427
+ if (f.textContent = r, f.style.flex = "1", f.style.color = i.color, s.appendChild(f), a) {
2428
2428
  const c = document.createElement("button");
2429
2429
  c.textContent = "✕", c.style.cssText = `
2430
2430
  background: none;
@@ -2859,9 +2859,9 @@ const it = ({
2859
2859
  error: a,
2860
2860
  disabled: i,
2861
2861
  dropdownStyle: s,
2862
- className: p,
2862
+ className: f,
2863
2863
  dropdownClassName: c,
2864
- children: f
2864
+ children: p
2865
2865
  }) => {
2866
2866
  const [u, x] = B(!1), m = se(null), [h, _] = B(null), b = ri(), S = E("size");
2867
2867
  J(() => {
@@ -2876,7 +2876,7 @@ const it = ({
2876
2876
  "div",
2877
2877
  {
2878
2878
  ref: m,
2879
- className: p,
2879
+ className: f,
2880
2880
  style: { position: "relative", ...o },
2881
2881
  children: [
2882
2882
  /* @__PURE__ */ d("style", { children: `
@@ -3046,7 +3046,7 @@ const it = ({
3046
3046
  ]
3047
3047
  }
3048
3048
  ),
3049
- f
3049
+ p
3050
3050
  ]
3051
3051
  }
3052
3052
  );
@@ -3248,14 +3248,14 @@ function si(e) {
3248
3248
  return isNaN(t) ? "" : t.toFixed(2);
3249
3249
  }
3250
3250
  const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3251
- const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), a = o?.currency || [], i = o?.channel?.filter((h) => h.payment_support) || [], [s, p] = B(""), [c, f] = B(""), [u, x] = B(!1), m = ii();
3251
+ const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), a = o?.currency || [], i = o?.channel?.filter((h) => h.payment_support) || [], [s, f] = B(""), [c, p] = B(""), [u, x] = B(!1), m = ii();
3252
3252
  return J(() => {
3253
3253
  e.currency && e.amount && e.rechargeChannel ? Hn({
3254
3254
  channel: e.rechargeChannel,
3255
3255
  amount: e.amount,
3256
3256
  currency: e.currency
3257
3257
  }).then((h) => {
3258
- p(h.paymentAmount), f(h.fee), x(!0);
3258
+ f(h.paymentAmount), p(h.fee), x(!0);
3259
3259
  }).catch((h) => {
3260
3260
  console.error("计算支付金额失败:", h), x(!1);
3261
3261
  }) : x(!1);
@@ -3475,7 +3475,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3475
3475
  multiple: o = !0,
3476
3476
  disabled: a = !1
3477
3477
  }) => {
3478
- const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0), x = di(), m = async (_) => {
3478
+ const i = E("size"), s = se(null), [f, c] = B(!1), [p, u] = B(0), x = di(), m = async (_) => {
3479
3479
  const b = Array.from(_.target.files).slice(
3480
3480
  0,
3481
3481
  n
@@ -3548,7 +3548,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3548
3548
  disabled: a
3549
3549
  }
3550
3550
  ),
3551
- p && /* @__PURE__ */ d(
3551
+ f && /* @__PURE__ */ d(
3552
3552
  "div",
3553
3553
  {
3554
3554
  style: {
@@ -3558,7 +3558,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3558
3558
  children: [
3559
3559
  y("正在上传..."),
3560
3560
  " ",
3561
- f,
3561
+ p,
3562
3562
  "%"
3563
3563
  ]
3564
3564
  }
@@ -3832,7 +3832,7 @@ function pi() {
3832
3832
  const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3833
3833
  const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}");
3834
3834
  console.log(o, "allDicts");
3835
- const a = o?.channel || [], i = pi(), [s, p] = B([]), c = async (u) => {
3835
+ const a = o?.channel || [], i = pi(), [s, f] = B([]), c = async (u) => {
3836
3836
  u.preventDefault();
3837
3837
  let x = !0;
3838
3838
  t((m) => ({
@@ -3855,7 +3855,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3855
3855
  voucherUrls: e.files
3856
3856
  }), n(), Ie.success(y("提交成功")));
3857
3857
  };
3858
- function f(u) {
3858
+ function p(u) {
3859
3859
  t((x) => ({
3860
3860
  ...x,
3861
3861
  platform: u,
@@ -3863,7 +3863,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3863
3863
  })), jn({
3864
3864
  code: u
3865
3865
  }).then((x) => {
3866
- p(Array.isArray(x) ? x : x ? [String(x)] : []);
3866
+ f(Array.isArray(x) ? x : x ? [String(x)] : []);
3867
3867
  });
3868
3868
  }
3869
3869
  return /* @__PURE__ */ d("form", { onSubmit: c, children: [
@@ -3878,7 +3878,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3878
3878
  {
3879
3879
  value: e.platform,
3880
3880
  onChange: (u) => {
3881
- f(u);
3881
+ p(u);
3882
3882
  },
3883
3883
  options: [
3884
3884
  ...a?.map((u) => ({
@@ -4082,14 +4082,14 @@ function Jn({
4082
4082
  showClose: i = !0,
4083
4083
  maskClosable: s = !0
4084
4084
  }) {
4085
- const [p, c] = B(!1), f = gi();
4085
+ const [f, c] = B(!1), p = gi();
4086
4086
  J(() => {
4087
- bi(f);
4088
- }, [f]);
4087
+ bi(p);
4088
+ }, [p]);
4089
4089
  const u = (m) => {
4090
4090
  m.target === m.currentTarget ? c(!0) : c(!1);
4091
4091
  }, x = (m) => {
4092
- m.target === m.currentTarget && p && s && t(), c(!1);
4092
+ m.target === m.currentTarget && f && s && t(), c(!1);
4093
4093
  };
4094
4094
  return e ? /* @__PURE__ */ d(
4095
4095
  "div",
@@ -4100,7 +4100,7 @@ function Jn({
4100
4100
  left: 0,
4101
4101
  right: 0,
4102
4102
  bottom: 0,
4103
- background: f.mask,
4103
+ background: p.mask,
4104
4104
  display: "flex",
4105
4105
  alignItems: "center",
4106
4106
  justifyContent: "center",
@@ -4112,12 +4112,12 @@ function Jn({
4112
4112
  "div",
4113
4113
  {
4114
4114
  style: {
4115
- background: f.modalBg,
4115
+ background: p.modalBg,
4116
4116
  borderRadius: re === l.SMALL ? 8 : 12,
4117
4117
  minWidth: o,
4118
4118
  maxWidth: a,
4119
- color: f.modalColor,
4120
- boxShadow: f.modalBoxShadow,
4119
+ color: p.modalColor,
4120
+ boxShadow: p.modalBoxShadow,
4121
4121
  position: "relative",
4122
4122
  // 响应式设计
4123
4123
  width: typeof o == "string" ? o : `${o}px`,
@@ -4133,11 +4133,11 @@ function Jn({
4133
4133
  style: {
4134
4134
  position: "sticky",
4135
4135
  top: 0,
4136
- background: f.modalBg,
4136
+ background: p.modalBg,
4137
4137
  borderRadius: re === l.SMALL ? "8px 8px 0 0" : "12px 12px 0 0",
4138
4138
  padding: re === l.SMALL ? "24px 24px 0 24px" : "32px 32px 0 32px",
4139
4139
  zIndex: 1,
4140
- borderBottom: `1px solid ${f.headerBorder}`
4140
+ borderBottom: `1px solid ${p.headerBorder}`
4141
4141
  },
4142
4142
  children: [
4143
4143
  i && /* @__PURE__ */ d(
@@ -4145,19 +4145,19 @@ function Jn({
4145
4145
  {
4146
4146
  type: "button",
4147
4147
  onClick: t,
4148
- style: f.closeBtn,
4148
+ style: p.closeBtn,
4149
4149
  "aria-label": "关闭",
4150
4150
  children: "×"
4151
4151
  }
4152
4152
  ),
4153
- n && /* @__PURE__ */ d("div", { style: f.title, children: n })
4153
+ n && /* @__PURE__ */ d("div", { style: p.title, children: n })
4154
4154
  ]
4155
4155
  }
4156
4156
  ),
4157
4157
  /* @__PURE__ */ d(
4158
4158
  "div",
4159
4159
  {
4160
- className: `modal-content ${f.scrollbarClass}`,
4160
+ className: `modal-content ${p.scrollbarClass}`,
4161
4161
  style: {
4162
4162
  flex: 1,
4163
4163
  overflowY: "auto",
@@ -4243,9 +4243,9 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
4243
4243
  transactionIdError: "",
4244
4244
  filesError: "",
4245
4245
  loading: !1
4246
- }), [s, p] = B("online"), c = xi();
4246
+ }), [s, f] = B("online"), c = xi();
4247
4247
  J(() => {
4248
- e || (p("online"), o({
4248
+ e || (f("online"), o({
4249
4249
  amount: "",
4250
4250
  rechargeChannel: "",
4251
4251
  currency: "USD",
@@ -4264,7 +4264,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
4264
4264
  loading: !1
4265
4265
  }));
4266
4266
  }, [e]);
4267
- const f = async (u) => {
4267
+ const p = async (u) => {
4268
4268
  u.preventDefault();
4269
4269
  let x = !0;
4270
4270
  if (o((m) => ({
@@ -4302,7 +4302,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
4302
4302
  "button",
4303
4303
  {
4304
4304
  type: "button",
4305
- onClick: () => p("online"),
4305
+ onClick: () => f("online"),
4306
4306
  style: c.tabBtn(s === "online", !0),
4307
4307
  children: y("在线充值")
4308
4308
  }
@@ -4311,7 +4311,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
4311
4311
  "button",
4312
4312
  {
4313
4313
  type: "button",
4314
- onClick: () => p("offline"),
4314
+ onClick: () => f("offline"),
4315
4315
  style: c.tabBtn(s === "offline", !1),
4316
4316
  children: y("线下转账")
4317
4317
  }
@@ -4319,7 +4319,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
4319
4319
  ]
4320
4320
  }
4321
4321
  ),
4322
- /* @__PURE__ */ d("div", { style: { display: s === "online" ? "block" : "none" }, children: /* @__PURE__ */ d("form", { onSubmit: f, children: /* @__PURE__ */ d(
4322
+ /* @__PURE__ */ d("div", { style: { display: s === "online" ? "block" : "none" }, children: /* @__PURE__ */ d("form", { onSubmit: p, children: /* @__PURE__ */ d(
4323
4323
  li,
4324
4324
  {
4325
4325
  formState: r,
@@ -4355,8 +4355,8 @@ function wi(e) {
4355
4355
  };
4356
4356
  var t = e.children, n = function(r, o) {
4357
4357
  if (r == null) return {};
4358
- var a, i, s = {}, p = Object.keys(r);
4359
- for (i = 0; i < p.length; i++) o.indexOf(a = p[i]) >= 0 || (s[a] = r[a]);
4358
+ var a, i, s = {}, f = Object.keys(r);
4359
+ for (i = 0; i < f.length; i++) o.indexOf(a = f[i]) >= 0 || (s[a] = r[a]);
4360
4360
  return s;
4361
4361
  }(e, Li);
4362
4362
  return un(t, n);
@@ -4366,11 +4366,11 @@ function Ai() {
4366
4366
  this.dispatchEvent(e), this._vdom = ie(wi, mt({}, this._props, { context: e.detail.context }), function t(n, r) {
4367
4367
  if (n.nodeType === 3) return n.data;
4368
4368
  if (n.nodeType !== 1) return null;
4369
- var o = [], a = {}, i = 0, s = n.attributes, p = n.childNodes;
4369
+ var o = [], a = {}, i = 0, s = n.attributes, f = n.childNodes;
4370
4370
  for (i = s.length; i--; ) s[i].name !== "slot" && (a[s[i].name] = s[i].value, a[Vn(s[i].name)] = s[i].value);
4371
- for (i = p.length; i--; ) {
4372
- var c = t(p[i], null), f = p[i].slot;
4373
- f ? a[f] = ie(Gt, { name: f }, c) : o[i] = c;
4371
+ for (i = f.length; i--; ) {
4372
+ var c = t(f[i], null), p = f[i].slot;
4373
+ p ? a[p] = ie(Gt, { name: p }, c) : o[i] = c;
4374
4374
  }
4375
4375
  var u = r ? ie(Gt, null, o) : o;
4376
4376
  return ie(r || n.nodeName.toLowerCase(), a, u);
@@ -4972,7 +4972,7 @@ function Ri({
4972
4972
  initialPaymentType: a = "online",
4973
4973
  amountError: i = ""
4974
4974
  }) {
4975
- const s = Bi(), [p, c] = B([]), [f, u] = B([]), [x, m] = B([]), [h, _] = B({
4975
+ const s = Bi(), [f, c] = B([]), [p, u] = B([]), [x, m] = B([]), [h, _] = B({
4976
4976
  currency: o,
4977
4977
  amount: r,
4978
4978
  onlineChannel: "",
@@ -5030,7 +5030,7 @@ function Ri({
5030
5030
  y("选择支付方式")
5031
5031
  ] }),
5032
5032
  /* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付币种") }),
5033
- /* @__PURE__ */ d("div", { style: s.currencyRow, children: (p || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
5033
+ /* @__PURE__ */ d("div", { style: s.currencyRow, children: (f || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
5034
5034
  "button",
5035
5035
  {
5036
5036
  type: "button",
@@ -5083,9 +5083,9 @@ function Ri({
5083
5083
  ] }),
5084
5084
  /* @__PURE__ */ d("div", { style: { height: 20 } }),
5085
5085
  /* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付方式") }),
5086
- f.length > 0 && /* @__PURE__ */ d("div", { children: [
5086
+ p.length > 0 && /* @__PURE__ */ d("div", { children: [
5087
5087
  /* @__PURE__ */ d("div", { style: s.subTitle, children: y("线上支付") }),
5088
- /* @__PURE__ */ d("div", { style: s.methodList, children: f.map((w) => /* @__PURE__ */ d(
5088
+ /* @__PURE__ */ d("div", { style: s.methodList, children: p.map((w) => /* @__PURE__ */ d(
5089
5089
  "button",
5090
5090
  {
5091
5091
  type: "button",
@@ -5311,7 +5311,7 @@ function Di({
5311
5311
  error: a = "",
5312
5312
  onAmountError: i
5313
5313
  }) {
5314
- const s = Ii(), p = s.right.background === "#181A20", [c, f] = B({
5314
+ const s = Ii(), f = s.right.background === "#181A20", [c, p] = B({
5315
5315
  amount: t,
5316
5316
  currency: n,
5317
5317
  channel: r,
@@ -5320,7 +5320,7 @@ function Di({
5320
5320
  amountError: ""
5321
5321
  }), [u, x] = B(null);
5322
5322
  J(() => {
5323
- f((_) => ({
5323
+ p((_) => ({
5324
5324
  ..._,
5325
5325
  amount: t,
5326
5326
  currency: n,
@@ -5336,8 +5336,8 @@ function Di({
5336
5336
  const m = async (h) => {
5337
5337
  h && h.preventDefault();
5338
5338
  let _ = !0;
5339
- if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1, f((b) => ({ ...b, error: y("请选择支付平台") }))), !!_) {
5340
- f((b) => ({ ...b, loading: !0, error: "" }));
5339
+ if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1, p((b) => ({ ...b, error: y("请选择支付平台") }))), !!_) {
5340
+ p((b) => ({ ...b, loading: !0, error: "" }));
5341
5341
  try {
5342
5342
  await e({
5343
5343
  amount: t,
@@ -5345,7 +5345,7 @@ function Di({
5345
5345
  rechargeChannel: r
5346
5346
  });
5347
5347
  } finally {
5348
- f((b) => ({ ...b, loading: !1 }));
5348
+ p((b) => ({ ...b, loading: !1 }));
5349
5349
  }
5350
5350
  }
5351
5351
  };
@@ -5366,7 +5366,7 @@ function Di({
5366
5366
  disabled: !0,
5367
5367
  style: {
5368
5368
  ...s.input,
5369
- ...p ? s.disabledDark : s.disabled,
5369
+ ...f ? s.disabledDark : s.disabled,
5370
5370
  width: "100%"
5371
5371
  }
5372
5372
  }
@@ -6029,9 +6029,9 @@ function Wi({
6029
6029
  onFocus: a,
6030
6030
  onBlur: i,
6031
6031
  className: s = "",
6032
- style: p = {}
6032
+ style: f = {}
6033
6033
  }) {
6034
- const c = Ui(), [f, u] = B(!1), [x, m] = B(e), [h, _] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
6034
+ const c = Ui(), [p, u] = B(!1), [x, m] = B(e), [h, _] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
6035
6035
  if (!k) return "";
6036
6036
  const v = new Date(k);
6037
6037
  return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
@@ -6098,9 +6098,9 @@ function Wi({
6098
6098
  const k = (v) => {
6099
6099
  L.current && !L.current.contains(v.target) && u(!1);
6100
6100
  };
6101
- if (f)
6101
+ if (p)
6102
6102
  return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
6103
- }, [f]);
6103
+ }, [p]);
6104
6104
  const V = R(), Se = [
6105
6105
  y("一月"),
6106
6106
  y("二月"),
@@ -6128,7 +6128,7 @@ function Wi({
6128
6128
  {
6129
6129
  ref: L,
6130
6130
  className: `date-picker-container ${s}`,
6131
- style: { ...c.container, ...p },
6131
+ style: { ...c.container, ...f },
6132
6132
  children: [
6133
6133
  /* @__PURE__ */ d(
6134
6134
  "div",
@@ -6138,7 +6138,7 @@ function Wi({
6138
6138
  ...c[r],
6139
6139
  ...n ? c.disabled : {}
6140
6140
  },
6141
- onClick: () => !n && u(!f),
6141
+ onClick: () => !n && u(!p),
6142
6142
  onFocus: a,
6143
6143
  onBlur: i,
6144
6144
  children: [
@@ -6147,7 +6147,7 @@ function Wi({
6147
6147
  ]
6148
6148
  }
6149
6149
  ),
6150
- f && /* @__PURE__ */ d("div", { style: c.panel, children: [
6150
+ p && /* @__PURE__ */ d("div", { style: c.panel, children: [
6151
6151
  /* @__PURE__ */ d("div", { style: c.header, children: [
6152
6152
  /* @__PURE__ */ d(
6153
6153
  "button",
@@ -6243,9 +6243,9 @@ function $i({
6243
6243
  channel: o = "",
6244
6244
  onAmountError: a
6245
6245
  }) {
6246
- const i = Oi(), s = i.container.background === "#181A20", p = /* @__PURE__ */ new Date(), c = `${p.getFullYear()}-${String(
6247
- p.getMonth() + 1
6248
- ).padStart(2, "0")}-${String(p.getDate()).padStart(2, "0")}`, [f, u] = B({
6246
+ const i = Oi(), s = i.container.background === "#181A20", f = /* @__PURE__ */ new Date(), c = `${f.getFullYear()}-${String(
6247
+ f.getMonth() + 1
6248
+ ).padStart(2, "0")}-${String(f.getDate()).padStart(2, "0")}`, [p, u] = B({
6249
6249
  urls: [],
6250
6250
  transferTime: c,
6251
6251
  transferAmount: r,
@@ -6262,20 +6262,20 @@ function $i({
6262
6262
  }, [r]);
6263
6263
  const x = async () => {
6264
6264
  let m = !0;
6265
- if (f.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError: y("请上传银行转账回单") }))), f.transferTime || (m = !1, u((h) => ({ ...h, timeError: y("请选择转账时间") }))), r.trim() || (m = !1, a?.(y("请输入充值金额"))), f.transactionId.trim() || (m = !1, u((h) => ({
6265
+ if (p.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError: y("请上传银行转账回单") }))), p.transferTime || (m = !1, u((h) => ({ ...h, timeError: y("请选择转账时间") }))), r.trim() || (m = !1, a?.(y("请输入充值金额"))), p.transactionId.trim() || (m = !1, u((h) => ({
6266
6266
  ...h,
6267
6267
  transactionIdError: y("请输入转账交易ID")
6268
- }))), f.payerName.trim() || (m = !1, u((h) => ({
6268
+ }))), p.payerName.trim() || (m = !1, u((h) => ({
6269
6269
  ...h,
6270
6270
  payerNameError: y("请输入付款人名称")
6271
6271
  }))), !!m)
6272
6272
  try {
6273
6273
  await Wn({
6274
- transferDate: f.transferTime,
6275
- transferNo: f.transactionId,
6274
+ transferDate: p.transferTime,
6275
+ transferNo: p.transactionId,
6276
6276
  transferChannel: o,
6277
- voucherUrls: f.urls,
6278
- payerName: f.payerName,
6277
+ voucherUrls: p.urls,
6278
+ payerName: p.payerName,
6279
6279
  submitAmount: r,
6280
6280
  submitCurrency: n
6281
6281
  }), Ie.success(y("提交成功")), t();
@@ -6292,7 +6292,7 @@ function $i({
6292
6292
  /* @__PURE__ */ d(
6293
6293
  qn,
6294
6294
  {
6295
- value: f.urls,
6295
+ value: p.urls,
6296
6296
  onChange: (m) => {
6297
6297
  u((h) => ({ ...h, urls: m, filesError: "" }));
6298
6298
  },
@@ -6301,7 +6301,7 @@ function $i({
6301
6301
  multiple: !0
6302
6302
  }
6303
6303
  ),
6304
- f.filesError && /* @__PURE__ */ d("div", { style: i.error, children: f.filesError })
6304
+ p.filesError && /* @__PURE__ */ d("div", { style: i.error, children: p.filesError })
6305
6305
  ] }),
6306
6306
  /* @__PURE__ */ d("div", { style: i.fieldSection, children: [
6307
6307
  /* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
@@ -6311,7 +6311,7 @@ function $i({
6311
6311
  /* @__PURE__ */ d(
6312
6312
  Wi,
6313
6313
  {
6314
- value: f.transferTime,
6314
+ value: p.transferTime,
6315
6315
  placeholder: y("请选择转账时间"),
6316
6316
  onChange: (m) => {
6317
6317
  u((h) => ({
@@ -6323,7 +6323,7 @@ function $i({
6323
6323
  style: { width: "100%" }
6324
6324
  }
6325
6325
  ),
6326
- f.timeError && /* @__PURE__ */ d("div", { style: i.error, children: f.timeError })
6326
+ p.timeError && /* @__PURE__ */ d("div", { style: i.error, children: p.timeError })
6327
6327
  ] }),
6328
6328
  /* @__PURE__ */ d("div", { style: i.fieldSection, children: [
6329
6329
  /* @__PURE__ */ d("label", { style: i.fieldLabel, children: y("转账金额") }),
@@ -6333,7 +6333,7 @@ function $i({
6333
6333
  {
6334
6334
  type: "text",
6335
6335
  placeholder: y("请输入实际转账金额"),
6336
- value: f.transferAmount,
6336
+ value: p.transferAmount,
6337
6337
  readOnly: !0,
6338
6338
  disabled: !0,
6339
6339
  style: {
@@ -6355,7 +6355,7 @@ function $i({
6355
6355
  {
6356
6356
  type: "text",
6357
6357
  placeholder: y("请输入转账交易ID"),
6358
- value: f.transactionId,
6358
+ value: p.transactionId,
6359
6359
  onChange: (m) => {
6360
6360
  u((h) => ({
6361
6361
  ...h,
@@ -6365,11 +6365,11 @@ function $i({
6365
6365
  },
6366
6366
  style: {
6367
6367
  ...i.input,
6368
- ...f.transactionIdError ? i.inputError : {}
6368
+ ...p.transactionIdError ? i.inputError : {}
6369
6369
  }
6370
6370
  }
6371
6371
  ),
6372
- f.transactionIdError && /* @__PURE__ */ d("div", { style: i.error, children: f.transactionIdError })
6372
+ p.transactionIdError && /* @__PURE__ */ d("div", { style: i.error, children: p.transactionIdError })
6373
6373
  ] }),
6374
6374
  /* @__PURE__ */ d("div", { style: i.fieldSection, children: [
6375
6375
  /* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
@@ -6381,7 +6381,7 @@ function $i({
6381
6381
  {
6382
6382
  type: "text",
6383
6383
  placeholder: y("请输入付款人名称"),
6384
- value: f.payerName,
6384
+ value: p.payerName,
6385
6385
  onChange: (m) => {
6386
6386
  u((h) => ({
6387
6387
  ...h,
@@ -6391,11 +6391,11 @@ function $i({
6391
6391
  },
6392
6392
  style: {
6393
6393
  ...i.input,
6394
- ...f.payerNameError ? i.inputError : {}
6394
+ ...p.payerNameError ? i.inputError : {}
6395
6395
  }
6396
6396
  }
6397
6397
  ),
6398
- f.payerNameError && /* @__PURE__ */ d("div", { style: i.error, children: f.payerNameError })
6398
+ p.payerNameError && /* @__PURE__ */ d("div", { style: i.error, children: p.payerNameError })
6399
6399
  ] }),
6400
6400
  /* @__PURE__ */ d("div", { style: i.buttonSection, children: [
6401
6401
  /* @__PURE__ */ d("button", { type: "button", onClick: t, style: i.cancelButton, children: y("取消") }),
@@ -6691,9 +6691,9 @@ function qi({ onConfirm: e, channelCode: t }) {
6691
6691
  }
6692
6692
  if (i && typeof i == "object") {
6693
6693
  const s = [];
6694
- Object.keys(i).forEach((p) => {
6695
- const c = i[p];
6696
- s.push(`${p}: ${c}`);
6694
+ Object.keys(i).forEach((f) => {
6695
+ const c = i[f];
6696
+ s.push(`${f}: ${c}`);
6697
6697
  }), o(s);
6698
6698
  return;
6699
6699
  }
@@ -6708,7 +6708,7 @@ function qi({ onConfirm: e, channelCode: t }) {
6708
6708
  y("银行转账")
6709
6709
  ] }),
6710
6710
  r.length > 0 && /* @__PURE__ */ d("div", { style: n.detailCard, children: r.map((a, i) => {
6711
- const s = String(a).split(":"), p = s.shift()?.trim() || "", c = s.join(":").trim();
6711
+ const s = String(a).split(":"), f = s.shift()?.trim() || "", c = s.join(":").trim();
6712
6712
  return /* @__PURE__ */ d(
6713
6713
  "div",
6714
6714
  {
@@ -6718,7 +6718,7 @@ function qi({ onConfirm: e, channelCode: t }) {
6718
6718
  ...i % 2 === 1 ? n.rowAlt : {}
6719
6719
  },
6720
6720
  children: [
6721
- /* @__PURE__ */ d("div", { style: n.labelMuted, children: p }),
6721
+ /* @__PURE__ */ d("div", { style: n.labelMuted, children: f }),
6722
6722
  /* @__PURE__ */ d("div", { style: n.valueStrong, children: c || "-" })
6723
6723
  ]
6724
6724
  },
@@ -6774,7 +6774,7 @@ function Ji({
6774
6774
  showOfflineUpload: !1
6775
6775
  });
6776
6776
  }, [e]);
6777
- const p = (_, b) => {
6777
+ const f = (_, b) => {
6778
6778
  s((S) => ({
6779
6779
  ...S,
6780
6780
  channel: _,
@@ -6783,7 +6783,7 @@ function Ji({
6783
6783
  }));
6784
6784
  }, c = (_) => {
6785
6785
  s((b) => ({ ...b, amount: _, amountError: "" }));
6786
- }, f = (_) => {
6786
+ }, p = (_) => {
6787
6787
  s((b) => ({ ...b, amountError: _ }));
6788
6788
  }, u = (_) => {
6789
6789
  s((b) => ({ ...b, currency: _ }));
@@ -6824,7 +6824,7 @@ function Ji({
6824
6824
  /* @__PURE__ */ d(
6825
6825
  Ri,
6826
6826
  {
6827
- onChannelChange: p,
6827
+ onChannelChange: f,
6828
6828
  onAmountChange: c,
6829
6829
  onCurrencyChange: u,
6830
6830
  initialAmount: i.amount,
@@ -6842,7 +6842,7 @@ function Ji({
6842
6842
  channel: i.channel,
6843
6843
  loading: i.loading,
6844
6844
  error: i.error,
6845
- onAmountError: f
6845
+ onAmountError: p
6846
6846
  }
6847
6847
  ) : i.showOfflineUpload ? /* @__PURE__ */ d(
6848
6848
  $i,
@@ -6852,7 +6852,7 @@ function Ji({
6852
6852
  currency: i.currency,
6853
6853
  amount: i.amount,
6854
6854
  channel: i.channel,
6855
- onAmountError: f
6855
+ onAmountError: p
6856
6856
  }
6857
6857
  ) : /* @__PURE__ */ d(
6858
6858
  qi,
@@ -6931,7 +6931,7 @@ const Gi = ({
6931
6931
  offsetX: a,
6932
6932
  popoverPosition: i = "top"
6933
6933
  }) => {
6934
- const s = E("size"), p = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), f = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [x, m] = B(!1), [h, _] = B(i), b = se(null), S = se(null), L = Yi(), T = () => {
6934
+ const s = E("size"), f = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), p = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [x, m] = B(!1), [h, _] = B(i), b = se(null), S = se(null), L = Yi(), T = () => {
6935
6935
  if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
6936
6936
  if (b.current) {
6937
6937
  const P = b.current.getBoundingClientRect();
@@ -6952,7 +6952,7 @@ const Gi = ({
6952
6952
  borderRadius: 6,
6953
6953
  fontSize: s === l.SMALL ? 12 : 15,
6954
6954
  minWidth: c,
6955
- width: p,
6955
+ width: f,
6956
6956
  padding: s === l.SMALL ? "6px 12px" : "8px 14px",
6957
6957
  pointerEvents: "auto",
6958
6958
  textAlign: "center",
@@ -6981,7 +6981,7 @@ const Gi = ({
6981
6981
  ...M,
6982
6982
  left: "50%",
6983
6983
  top: "100%",
6984
- marginTop: f,
6984
+ marginTop: p,
6985
6985
  transform: "translateX(-50%)"
6986
6986
  }, R = {
6987
6987
  ...R,
@@ -7159,69 +7159,69 @@ function Zi(e) {
7159
7159
  currBalance: 0,
7160
7160
  currency: "USD",
7161
7161
  details: []
7162
- }), r = async () => {
7162
+ }), [r, o] = B(!0), a = async () => {
7163
7163
  try {
7164
- const i = await Un(), s = [
7164
+ const f = await Un(), c = [
7165
7165
  {
7166
7166
  label: "",
7167
7167
  // 翻译在渲染时处理
7168
- value: i.totalAmount,
7168
+ value: f.totalAmount,
7169
7169
  color: "#15b36b",
7170
7170
  dot: "#15b36b"
7171
7171
  },
7172
7172
  {
7173
7173
  label: "",
7174
- value: i.frozenAmount,
7174
+ value: f.frozenAmount,
7175
7175
  color: "#f59e0b",
7176
7176
  dot: "#f59e0b"
7177
7177
  },
7178
- ...i.isCredit ? [
7178
+ ...f.isCredit ? [
7179
7179
  {
7180
7180
  label: "",
7181
- value: i.creditLimit,
7181
+ value: f.creditLimit,
7182
7182
  color: "#1890ff",
7183
7183
  dot: "#1890ff"
7184
7184
  },
7185
7185
  {
7186
7186
  label: "",
7187
- value: i.creditUsed,
7187
+ value: f.creditUsed,
7188
7188
  color: "#ff0000",
7189
7189
  dot: "#ff0000"
7190
7190
  }
7191
7191
  ] : [],
7192
7192
  {
7193
7193
  label: "",
7194
- value: i.availableAmount,
7194
+ value: f.availableAmount,
7195
7195
  color: "#1890ff",
7196
7196
  dot: "#15b36b"
7197
7197
  }
7198
7198
  ], p = {
7199
- currBalance: i.currBalance,
7200
- currency: i.currency,
7201
- details: s
7199
+ currBalance: f.currBalance,
7200
+ currency: f.currency,
7201
+ details: c
7202
7202
  };
7203
- n(p);
7204
- } catch (i) {
7205
- console.error("获取余额失败:", i);
7203
+ n(p), o(!1);
7204
+ } catch (f) {
7205
+ console.error("获取余额失败:", f), o(!1);
7206
7206
  }
7207
7207
  };
7208
7208
  J(() => {
7209
- r();
7209
+ a();
7210
7210
  }, []), J(() => {
7211
- const i = () => {
7212
- r();
7211
+ const f = () => {
7212
+ a();
7213
7213
  };
7214
7214
  return window.addEventListener(
7215
7215
  "refresh-balance",
7216
- i
7216
+ f
7217
7217
  ), () => {
7218
7218
  window.removeEventListener(
7219
7219
  "refresh-balance",
7220
- i
7220
+ f
7221
7221
  );
7222
7222
  };
7223
7223
  }, []);
7224
- const o = Xi(), a = [
7224
+ const i = Xi(), s = [
7225
7225
  {
7226
7226
  label: y("真实金额"),
7227
7227
  value: t.details[0]?.value || 0,
@@ -7255,23 +7255,23 @@ function Zi(e) {
7255
7255
  dot: "#15b36b"
7256
7256
  }
7257
7257
  ];
7258
- return /* @__PURE__ */ d(
7258
+ return r ? null : /* @__PURE__ */ d(
7259
7259
  Gi,
7260
7260
  {
7261
7261
  popover: /* @__PURE__ */ d(ne, { children: [
7262
- /* @__PURE__ */ d("div", { style: o.popoverTitle, children: y("余额详情") }),
7263
- a.map((i) => /* @__PURE__ */ d("div", { style: o.detailRow, children: [
7264
- /* @__PURE__ */ d("span", { style: o.detailLabel, children: [
7265
- /* @__PURE__ */ d("span", { style: o.detailDot(i.dot) }),
7266
- i.label
7262
+ /* @__PURE__ */ d("div", { style: i.popoverTitle, children: y("余额详情") }),
7263
+ s.map((f) => /* @__PURE__ */ d("div", { style: i.detailRow, children: [
7264
+ /* @__PURE__ */ d("span", { style: i.detailLabel, children: [
7265
+ /* @__PURE__ */ d("span", { style: i.detailDot(f.dot) }),
7266
+ f.label
7267
7267
  ] }),
7268
- /* @__PURE__ */ d("span", { style: o.detailValue(i.color), children: Xt(i.value) })
7269
- ] }, i.label))
7268
+ /* @__PURE__ */ d("span", { style: i.detailValue(f.color), children: Xt(f.value) })
7269
+ ] }, f.label))
7270
7270
  ] }),
7271
7271
  popoverPosition: e.popoverPosition || "bottom",
7272
- children: /* @__PURE__ */ d("div", { style: o.main, children: [
7272
+ children: /* @__PURE__ */ d("div", { style: i.main, children: [
7273
7273
  Xt(t.currBalance),
7274
- /* @__PURE__ */ d("span", { style: o.currency, children: t.currency })
7274
+ /* @__PURE__ */ d("span", { style: i.currency, children: t.currency })
7275
7275
  ] })
7276
7276
  }
7277
7277
  );
@@ -7360,7 +7360,7 @@ function ta({
7360
7360
  /* @__PURE__ */ d(ht, { onClick: async () => {
7361
7361
  o(!0);
7362
7362
  try {
7363
- Vo(), await new Promise((f) => setTimeout(f, 300));
7363
+ Vo(), await new Promise((p) => setTimeout(p, 300));
7364
7364
  } finally {
7365
7365
  o(!1);
7366
7366
  }