@vtj/utils 0.8.55 → 0.8.56

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/index.mjs CHANGED
@@ -12,12 +12,12 @@ export * from "@vtj/base";
12
12
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
13
13
  * @name @vtj/utils
14
14
  * @author CHC chenhuachun1549@dingtalk.com
15
- * @version 0.8.55
15
+ * @version 0.8.56
16
16
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
17
17
  */
18
- const As = "0.8.55";
18
+ const As = "0.8.56";
19
19
  /**
20
- * @vue/shared v3.4.27
20
+ * @vue/shared v3.4.29
21
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
22
22
  * @license MIT
23
23
  **/
@@ -35,22 +35,28 @@ function fn(e, t = un) {
35
35
  let F;
36
36
  class dn {
37
37
  constructor(t, n, r, s) {
38
- this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, fn(this, s);
38
+ this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 5, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, fn(this, s);
39
39
  }
40
40
  get dirty() {
41
- if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
41
+ if (this._dirtyLevel === 2)
42
+ return !1;
43
+ if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
42
44
  this._dirtyLevel = 1, pt();
43
45
  for (let t = 0; t < this._depsLength; t++) {
44
46
  const n = this.deps[t];
45
- if (n.computed && (hn(n.computed), this._dirtyLevel >= 4))
46
- break;
47
+ if (n.computed) {
48
+ if (n.computed.effect._dirtyLevel === 2)
49
+ return !0;
50
+ if (hn(n.computed), this._dirtyLevel >= 5)
51
+ break;
52
+ }
47
53
  }
48
54
  this._dirtyLevel === 1 && (this._dirtyLevel = 0), mt();
49
55
  }
50
- return this._dirtyLevel >= 4;
56
+ return this._dirtyLevel >= 5;
51
57
  }
52
58
  set dirty(t) {
53
- this._dirtyLevel = t ? 4 : 0;
59
+ this._dirtyLevel = t ? 5 : 0;
54
60
  }
55
61
  run() {
56
62
  if (this._dirtyLevel = 0, !this.active)
@@ -107,15 +113,19 @@ function gt(e, t, n) {
107
113
  }
108
114
  }
109
115
  const Re = [];
110
- function wt(e, t, n) {
116
+ function yt(e, t, n) {
111
117
  Fe();
112
118
  for (const r of e.keys()) {
119
+ if (!e.computed && r.computed && e.get(r) === r._trackId && r._runnings > 0) {
120
+ r._dirtyLevel = 2;
121
+ continue;
122
+ }
113
123
  let s;
114
- r._dirtyLevel < t && (s ?? (s = e.get(r) === r._trackId)) && (r._shouldSchedule || (r._shouldSchedule = r._dirtyLevel === 0), r._dirtyLevel = t), r._shouldSchedule && (s ?? (s = e.get(r) === r._trackId)) && (r.trigger(), (!r._runnings || r.allowRecurse) && r._dirtyLevel !== 2 && (r._shouldSchedule = !1, r.scheduler && Re.push(r.scheduler)));
124
+ r._dirtyLevel < t && (s ?? (s = e.get(r) === r._trackId)) && (r._shouldSchedule || (r._shouldSchedule = r._dirtyLevel === 0), r.computed && r._dirtyLevel === 2 && (r._shouldSchedule = !0), r._dirtyLevel = t), r._shouldSchedule && (s ?? (s = e.get(r) === r._trackId)) && (r.trigger(), (!r._runnings || r.allowRecurse) && r._dirtyLevel !== 3 && (r._shouldSchedule = !1, r.scheduler && Re.push(r.scheduler)));
115
125
  }
116
126
  Ie();
117
127
  }
118
- const yt = (e, t) => {
128
+ const wt = (e, t) => {
119
129
  const n = /* @__PURE__ */ new Map();
120
130
  return n.cleanup = e, n.computed = t, n;
121
131
  }, Se = /* @__PURE__ */ new WeakMap(), I = Symbol(""), Oe = Symbol("");
@@ -124,7 +134,7 @@ function A(e, t, n) {
124
134
  let r = Se.get(e);
125
135
  r || Se.set(e, r = /* @__PURE__ */ new Map());
126
136
  let s = r.get(n);
127
- s || r.set(n, s = yt(() => r.delete(n))), gt(
137
+ s || r.set(n, s = wt(() => r.delete(n))), gt(
128
138
  F,
129
139
  s
130
140
  );
@@ -156,39 +166,39 @@ function j(e, t, n, r, s, o) {
156
166
  }
157
167
  Fe();
158
168
  for (const f of a)
159
- f && wt(
169
+ f && yt(
160
170
  f,
161
- 4
171
+ 5
162
172
  );
163
173
  Ie();
164
174
  }
165
- const pn = /* @__PURE__ */ sn("__proto__,__v_isRef,__isVue"), bt = new Set(
175
+ const pn = /* @__PURE__ */ sn("__proto__,__v_isRef,__isVue"), _t = new Set(
166
176
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(W)
167
177
  ), We = /* @__PURE__ */ mn();
168
178
  function mn() {
169
179
  const e = {};
170
180
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
171
181
  e[t] = function(...n) {
172
- const r = w(this);
182
+ const r = y(this);
173
183
  for (let o = 0, i = this.length; o < i; o++)
174
184
  A(r, "get", o + "");
175
185
  const s = r[t](...n);
176
- return s === -1 || s === !1 ? r[t](...n.map(w)) : s;
186
+ return s === -1 || s === !1 ? r[t](...n.map(y)) : s;
177
187
  };
178
188
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
179
189
  e[t] = function(...n) {
180
190
  pt(), Fe();
181
- const r = w(this)[t].apply(this, n);
191
+ const r = y(this)[t].apply(this, n);
182
192
  return Ie(), mt(), r;
183
193
  };
184
194
  }), e;
185
195
  }
186
196
  function gn(e) {
187
197
  W(e) || (e = String(e));
188
- const t = w(this);
198
+ const t = y(this);
189
199
  return A(t, "has", e), t.hasOwnProperty(e);
190
200
  }
191
- class _t {
201
+ class bt {
192
202
  constructor(t = !1, n = !1) {
193
203
  this._isReadonly = t, this._isShallow = n;
194
204
  }
@@ -201,7 +211,7 @@ class _t {
201
211
  if (n === "__v_isShallow")
202
212
  return o;
203
213
  if (n === "__v_raw")
204
- return r === (s ? o ? Pn : St : o ? Cn : Rt).get(t) || // receiver is not the reactive proxy, but has the same prototype
214
+ return r === (s ? o ? Ln : St : o ? Cn : Rt).get(t) || // receiver is not the reactive proxy, but has the same prototype
205
215
  // this means the reciever is a user proxy of the reactive proxy
206
216
  Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
207
217
  const i = N(t);
@@ -212,10 +222,10 @@ class _t {
212
222
  return gn;
213
223
  }
214
224
  const a = Reflect.get(t, n, r);
215
- return (W(n) ? bt.has(n) : pn(n)) || (s || A(t, "get", n), o) ? a : ae(a) ? i && Ne(n) ? a : a.value : ce(a) ? s ? Tt(a) : Ot(a) : a;
225
+ return (W(n) ? _t.has(n) : pn(n)) || (s || A(t, "get", n), o) ? a : ae(a) ? i && Ne(n) ? a : a.value : ce(a) ? s ? Tt(a) : Ot(a) : a;
216
226
  }
217
227
  }
218
- class wn extends _t {
228
+ class yn extends bt {
219
229
  constructor(t = !1) {
220
230
  super(!1, t);
221
231
  }
@@ -223,11 +233,11 @@ class wn extends _t {
223
233
  let o = t[n];
224
234
  if (!this._isShallow) {
225
235
  const f = ie(o);
226
- if (!xt(r) && !ie(r) && (o = w(o), r = w(r)), !N(t) && ae(o) && !ae(r))
236
+ if (!xt(r) && !ie(r) && (o = y(o), r = y(r)), !N(t) && ae(o) && !ae(r))
227
237
  return f ? !1 : (o.value = r, !0);
228
238
  }
229
239
  const i = N(t) && Ne(n) ? Number(n) < t.length : oe(t, n), a = Reflect.set(t, n, r, s);
230
- return t === w(s) && (i ? B(r, o) && j(t, "set", n, r) : j(t, "add", n, r)), a;
240
+ return t === y(s) && (i ? B(r, o) && j(t, "set", n, r) : j(t, "add", n, r)), a;
231
241
  }
232
242
  deleteProperty(t, n) {
233
243
  const r = oe(t, n);
@@ -237,7 +247,7 @@ class wn extends _t {
237
247
  }
238
248
  has(t, n) {
239
249
  const r = Reflect.has(t, n);
240
- return (!W(n) || !bt.has(n)) && A(t, "has", n), r;
250
+ return (!W(n) || !_t.has(n)) && A(t, "has", n), r;
241
251
  }
242
252
  ownKeys(t) {
243
253
  return A(
@@ -247,7 +257,7 @@ class wn extends _t {
247
257
  ), Reflect.ownKeys(t);
248
258
  }
249
259
  }
250
- class yn extends _t {
260
+ class wn extends bt {
251
261
  constructor(t = !1) {
252
262
  super(!0, t);
253
263
  }
@@ -258,10 +268,10 @@ class yn extends _t {
258
268
  return !0;
259
269
  }
260
270
  }
261
- const bn = /* @__PURE__ */ new wn(), _n = /* @__PURE__ */ new yn(), De = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
271
+ const _n = /* @__PURE__ */ new yn(), bn = /* @__PURE__ */ new wn(), De = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
262
272
  function G(e, t, n = !1, r = !1) {
263
273
  e = e.__v_raw;
264
- const s = w(e), o = w(t);
274
+ const s = y(e), o = y(t);
265
275
  n || (B(t, o) && A(s, "get", t), A(s, "get", o));
266
276
  const { has: i } = le(s), a = r ? De : n ? Ue : q;
267
277
  if (i.call(s, t))
@@ -271,45 +281,45 @@ function G(e, t, n = !1, r = !1) {
271
281
  e !== s && e.get(t);
272
282
  }
273
283
  function X(e, t = !1) {
274
- const n = this.__v_raw, r = w(n), s = w(e);
284
+ const n = this.__v_raw, r = y(n), s = y(e);
275
285
  return t || (B(e, s) && A(r, "has", e), A(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
276
286
  }
277
287
  function Y(e, t = !1) {
278
- return e = e.__v_raw, !t && A(w(e), "iterate", I), Reflect.get(e, "size", e);
288
+ return e = e.__v_raw, !t && A(y(e), "iterate", I), Reflect.get(e, "size", e);
279
289
  }
280
290
  function Ke(e) {
281
- e = w(e);
282
- const t = w(this);
291
+ e = y(e);
292
+ const t = y(this);
283
293
  return le(t).has.call(t, e) || (t.add(e), j(t, "add", e, e)), this;
284
294
  }
285
295
  function $e(e, t) {
286
- t = w(t);
287
- const n = w(this), { has: r, get: s } = le(n);
296
+ t = y(t);
297
+ const n = y(this), { has: r, get: s } = le(n);
288
298
  let o = r.call(n, e);
289
- o || (e = w(e), o = r.call(n, e));
299
+ o || (e = y(e), o = r.call(n, e));
290
300
  const i = s.call(n, e);
291
301
  return n.set(e, t), o ? B(t, i) && j(n, "set", e, t) : j(n, "add", e, t), this;
292
302
  }
293
303
  function Ve(e) {
294
- const t = w(this), { has: n, get: r } = le(t);
304
+ const t = y(this), { has: n, get: r } = le(t);
295
305
  let s = n.call(t, e);
296
- s || (e = w(e), s = n.call(t, e)), r && r.call(t, e);
306
+ s || (e = y(e), s = n.call(t, e)), r && r.call(t, e);
297
307
  const o = t.delete(e);
298
308
  return s && j(t, "delete", e, void 0), o;
299
309
  }
300
310
  function Ge() {
301
- const e = w(this), t = e.size !== 0, n = e.clear();
311
+ const e = y(this), t = e.size !== 0, n = e.clear();
302
312
  return t && j(e, "clear", void 0, void 0), n;
303
313
  }
304
314
  function Q(e, t) {
305
315
  return function(r, s) {
306
- const o = this, i = o.__v_raw, a = w(i), f = t ? De : e ? Ue : q;
316
+ const o = this, i = o.__v_raw, a = y(i), f = t ? De : e ? Ue : q;
307
317
  return !e && A(a, "iterate", I), i.forEach((d, u) => r.call(s, f(d), f(u), o));
308
318
  };
309
319
  }
310
320
  function Z(e, t, n) {
311
321
  return function(...r) {
312
- const s = this.__v_raw, o = w(s), i = te(o), a = e === "entries" || e === Symbol.iterator && i, f = e === "keys" && i, d = s[e](...r), u = n ? De : t ? Ue : q;
322
+ const s = this.__v_raw, o = y(s), i = te(o), a = e === "entries" || e === Symbol.iterator && i, f = e === "keys" && i, d = s[e](...r), u = n ? De : t ? Ue : q;
313
323
  return !t && A(
314
324
  o,
315
325
  "iterate",
@@ -330,7 +340,7 @@ function Z(e, t, n) {
330
340
  };
331
341
  };
332
342
  }
333
- function P(e) {
343
+ function L(e) {
334
344
  return function(...t) {
335
345
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
336
346
  };
@@ -372,10 +382,10 @@ function En() {
372
382
  has(o) {
373
383
  return X.call(this, o, !0);
374
384
  },
375
- add: P("add"),
376
- set: P("set"),
377
- delete: P("delete"),
378
- clear: P("clear"),
385
+ add: L("add"),
386
+ set: L("set"),
387
+ delete: L("delete"),
388
+ clear: L("clear"),
379
389
  forEach: Q(!0, !1)
380
390
  }, r = {
381
391
  get(o) {
@@ -387,10 +397,10 @@ function En() {
387
397
  has(o) {
388
398
  return X.call(this, o, !0);
389
399
  },
390
- add: P("add"),
391
- set: P("set"),
392
- delete: P("delete"),
393
- clear: P("clear"),
400
+ add: L("add"),
401
+ set: L("set"),
402
+ delete: L("delete"),
403
+ clear: L("clear"),
394
404
  forEach: Q(!0, !0)
395
405
  };
396
406
  return [
@@ -429,8 +439,8 @@ const An = {
429
439
  get: /* @__PURE__ */ Et(!1, !1)
430
440
  }, xn = {
431
441
  get: /* @__PURE__ */ Et(!0, !1)
432
- }, Rt = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap();
433
- function Ln(e) {
442
+ }, Rt = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap();
443
+ function Pn(e) {
434
444
  switch (e) {
435
445
  case "Object":
436
446
  case "Array":
@@ -445,13 +455,13 @@ function Ln(e) {
445
455
  }
446
456
  }
447
457
  function vn(e) {
448
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Ln(ln(e));
458
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : Pn(ln(e));
449
459
  }
450
460
  function Ot(e) {
451
461
  return ie(e) ? e : At(
452
462
  e,
453
463
  !1,
454
- bn,
464
+ _n,
455
465
  An,
456
466
  Rt
457
467
  );
@@ -460,7 +470,7 @@ function Tt(e) {
460
470
  return At(
461
471
  e,
462
472
  !0,
463
- _n,
473
+ bn,
464
474
  xn,
465
475
  St
466
476
  );
@@ -486,9 +496,9 @@ function ie(e) {
486
496
  function xt(e) {
487
497
  return !!(e && e.__v_isShallow);
488
498
  }
489
- function w(e) {
499
+ function y(e) {
490
500
  const t = e && e.__v_raw;
491
- return t ? w(t) : e;
501
+ return t ? y(t) : e;
492
502
  }
493
503
  const q = (e) => ce(e) ? Ot(e) : e, Ue = (e) => ce(e) ? Tt(e) : e;
494
504
  class jn {
@@ -497,13 +507,13 @@ class jn {
497
507
  () => t(this._value),
498
508
  () => ne(
499
509
  this,
500
- this.effect._dirtyLevel === 2 ? 2 : 3
510
+ this.effect._dirtyLevel === 3 ? 3 : 4
501
511
  )
502
512
  ), this.effect.computed = this, this.effect.active = this._cacheable = !s, this.__v_isReadonly = r;
503
513
  }
504
514
  get value() {
505
- const t = w(this);
506
- return (!t._cacheable || t.effect.dirty) && B(t._value, t._value = t.effect.run()) && ne(t, 4), Ct(t), t.effect._dirtyLevel >= 2 && ne(t, 2), t._value;
515
+ const t = y(this);
516
+ return (!t._cacheable || t.effect.dirty) && B(t._value, t._value = t.effect.run()) && ne(t, 5), Ct(t), t.effect._dirtyLevel >= 2 && ne(t, 3), t._value;
507
517
  }
508
518
  set value(t) {
509
519
  this._setter(t);
@@ -519,19 +529,19 @@ class jn {
519
529
  }
520
530
  function Ct(e) {
521
531
  var t;
522
- v && F && (e = w(e), gt(
532
+ v && F && (e = y(e), gt(
523
533
  F,
524
- (t = e.dep) != null ? t : e.dep = yt(
534
+ (t = e.dep) != null ? t : e.dep = wt(
525
535
  () => e.dep = void 0,
526
536
  e instanceof jn ? e : void 0
527
537
  )
528
538
  ));
529
539
  }
530
- function ne(e, t = 4, n) {
531
- e = w(e);
532
- const r = e.dep;
533
- r && wt(
534
- r,
540
+ function ne(e, t = 5, n, r) {
541
+ e = y(e);
542
+ const s = e.dep;
543
+ s && yt(
544
+ s,
535
545
  t
536
546
  );
537
547
  }
@@ -546,17 +556,17 @@ function Nn(e, t) {
546
556
  }
547
557
  class Fn {
548
558
  constructor(t, n) {
549
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : w(t), this._value = n ? t : q(t);
559
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : y(t), this._value = n ? t : q(t);
550
560
  }
551
561
  get value() {
552
562
  return Ct(this), this._value;
553
563
  }
554
564
  set value(t) {
555
565
  const n = this.__v_isShallow || xt(t) || ie(t);
556
- t = n ? t : w(t), B(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : q(t), ne(this, 4));
566
+ t = n ? t : y(t), B(t, this._rawValue) && (this._rawValue, this._rawValue = t, this._value = n ? t : q(t), ne(this, 5));
557
567
  }
558
568
  }
559
- function Pt(e, t) {
569
+ function Lt(e, t) {
560
570
  return function() {
561
571
  return e.apply(t, arguments);
562
572
  };
@@ -568,10 +578,10 @@ const { toString: In } = Object.prototype, { getPrototypeOf: Be } = Object, ue =
568
578
  function Dn(e) {
569
579
  return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
570
580
  }
571
- const Lt = C("ArrayBuffer");
581
+ const Pt = C("ArrayBuffer");
572
582
  function Un(e) {
573
583
  let t;
574
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
584
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pt(e.buffer), t;
575
585
  }
576
586
  const Bn = fe("string"), O = fe("function"), vt = fe("number"), de = (e) => e !== null && typeof e == "object", kn = (e) => e === !0 || e === !1, re = (e) => {
577
587
  if (ue(e) !== "object")
@@ -617,7 +627,7 @@ function Te() {
617
627
  return t;
618
628
  }
619
629
  const Vn = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, o) => {
620
- n && O(s) ? e[o] = Pt(s, n) : e[o] = s;
630
+ n && O(s) ? e[o] = Lt(s, n) : e[o] = s;
621
631
  }, { allOwnKeys: r }), e), Gn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xn = (e, t, n, r) => {
622
632
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
623
633
  value: t.prototype
@@ -696,10 +706,10 @@ const Vn = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, o) => {
696
706
  };
697
707
  return k(e) ? r(e) : r(String(e).split(t)), n;
698
708
  }, cr = () => {
699
- }, lr = (e, t) => (e = +e, Number.isFinite(e) ? e : t), we = "abcdefghijklmnopqrstuvwxyz", Ye = "0123456789", Dt = {
709
+ }, lr = (e, t) => (e = +e, Number.isFinite(e) ? e : t), ye = "abcdefghijklmnopqrstuvwxyz", Ye = "0123456789", Dt = {
700
710
  DIGIT: Ye,
701
- ALPHA: we,
702
- ALPHA_DIGIT: we + we.toUpperCase() + Ye
711
+ ALPHA: ye,
712
+ ALPHA_DIGIT: ye + ye.toUpperCase() + Ye
703
713
  }, ur = (e = 16, t = Dt.ALPHA_DIGIT) => {
704
714
  let n = "";
705
715
  const { length: r } = t;
@@ -729,7 +739,7 @@ const dr = (e) => {
729
739
  return n(e, 0);
730
740
  }, hr = C("AsyncFunction"), pr = (e) => e && (de(e) || O(e)) && O(e.then) && O(e.catch), c = {
731
741
  isArray: k,
732
- isArrayBuffer: Lt,
742
+ isArrayBuffer: Pt,
733
743
  isBuffer: Dn,
734
744
  isFormData: Wn,
735
745
  isArrayBufferView: Un,
@@ -846,7 +856,7 @@ function Qe(e, t, n) {
846
856
  function gr(e) {
847
857
  return c.isArray(e) && !e.some(Ae);
848
858
  }
849
- const wr = c.toFlatObject(c, {}, null, function(t) {
859
+ const yr = c.toFlatObject(c, {}, null, function(t) {
850
860
  return /^is[A-Z]/.test(t);
851
861
  });
852
862
  function he(e, t, n) {
@@ -872,12 +882,12 @@ function he(e, t, n) {
872
882
  return c.isArrayBuffer(h) || c.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
873
883
  }
874
884
  function u(h, p, E) {
875
- let b = h;
885
+ let _ = h;
876
886
  if (h && !E && typeof h == "object") {
877
887
  if (c.endsWith(p, "{}"))
878
888
  p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
879
- else if (c.isArray(h) && gr(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (b = c.toArray(h)))
880
- return p = kt(p), b.forEach(function(R, pe) {
889
+ else if (c.isArray(h) && gr(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (_ = c.toArray(h)))
890
+ return p = kt(p), _.forEach(function(R, pe) {
881
891
  !(c.isUndefined(R) || R === null) && t.append(
882
892
  // eslint-disable-next-line no-nested-ternary
883
893
  i === !0 ? Qe([p], pe, o) : i === null ? p : p + "[]",
@@ -887,29 +897,29 @@ function he(e, t, n) {
887
897
  }
888
898
  return Ae(h) ? !0 : (t.append(Qe(E, p, o), d(h)), !1);
889
899
  }
890
- const l = [], g = Object.assign(wr, {
900
+ const l = [], g = Object.assign(yr, {
891
901
  defaultVisitor: u,
892
902
  convertValue: d,
893
903
  isVisitable: Ae
894
904
  });
895
- function y(h, p) {
905
+ function w(h, p) {
896
906
  if (!c.isUndefined(h)) {
897
907
  if (l.indexOf(h) !== -1)
898
908
  throw Error("Circular reference detected in " + p.join("."));
899
- l.push(h), c.forEach(h, function(b, S) {
900
- (!(c.isUndefined(b) || b === null) && s.call(
909
+ l.push(h), c.forEach(h, function(_, S) {
910
+ (!(c.isUndefined(_) || _ === null) && s.call(
901
911
  t,
902
- b,
912
+ _,
903
913
  c.isString(S) ? S.trim() : S,
904
914
  p,
905
915
  g
906
- )) === !0 && y(b, p ? p.concat(S) : [S]);
916
+ )) === !0 && w(_, p ? p.concat(S) : [S]);
907
917
  }), l.pop();
908
918
  }
909
919
  }
910
920
  if (!c.isObject(e))
911
921
  throw new TypeError("data must be an object");
912
- return y(e), t;
922
+ return w(e), t;
913
923
  }
914
924
  function Ze(e) {
915
925
  const t = {
@@ -940,13 +950,13 @@ Mt.toString = function(t) {
940
950
  return n(s[0]) + "=" + n(s[1]);
941
951
  }, "").join("&");
942
952
  };
943
- function yr(e) {
953
+ function wr(e) {
944
954
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
945
955
  }
946
956
  function Ht(e, t, n) {
947
957
  if (!t)
948
958
  return e;
949
- const r = n && n.encode || yr, s = n && n.serialize;
959
+ const r = n && n.encode || wr, s = n && n.serialize;
950
960
  let o;
951
961
  if (s ? o = s(t, n) : o = c.isURLSearchParams(t) ? t.toString() : new ke(t, n).toString(r), o) {
952
962
  const i = e.indexOf("#");
@@ -1012,11 +1022,11 @@ const qt = {
1012
1022
  silentJSONParsing: !0,
1013
1023
  forcedJSONParsing: !0,
1014
1024
  clarifyTimeoutError: !1
1015
- }, br = typeof URLSearchParams < "u" ? URLSearchParams : ke, _r = typeof FormData < "u" ? FormData : null, Er = typeof Blob < "u" ? Blob : null, Rr = {
1025
+ }, _r = typeof URLSearchParams < "u" ? URLSearchParams : ke, br = typeof FormData < "u" ? FormData : null, Er = typeof Blob < "u" ? Blob : null, Rr = {
1016
1026
  isBrowser: !0,
1017
1027
  classes: {
1018
- URLSearchParams: br,
1019
- FormData: _r,
1028
+ URLSearchParams: _r,
1029
+ FormData: br,
1020
1030
  Blob: Er
1021
1031
  },
1022
1032
  protocols: ["http", "https", "file", "blob", "url", "data"]
@@ -1065,7 +1075,7 @@ function Jt(e) {
1065
1075
  }
1066
1076
  return null;
1067
1077
  }
1068
- function Pr(e, t, n) {
1078
+ function Lr(e, t, n) {
1069
1079
  if (c.isString(e))
1070
1080
  try {
1071
1081
  return (t || JSON.parse)(e), c.trim(e);
@@ -1101,7 +1111,7 @@ const $ = {
1101
1111
  );
1102
1112
  }
1103
1113
  }
1104
- return o || s ? (n.setContentType("application/json", !1), Pr(t)) : t;
1114
+ return o || s ? (n.setContentType("application/json", !1), Lr(t)) : t;
1105
1115
  }],
1106
1116
  transformResponse: [function(t) {
1107
1117
  const n = this.transitional || $.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -1142,7 +1152,7 @@ const $ = {
1142
1152
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1143
1153
  $.headers[e] = {};
1144
1154
  });
1145
- const Lr = c.toObjectSet([
1155
+ const Pr = c.toObjectSet([
1146
1156
  "age",
1147
1157
  "authorization",
1148
1158
  "content-length",
@@ -1165,7 +1175,7 @@ const Lr = c.toObjectSet([
1165
1175
  let n, r, s;
1166
1176
  return e && e.split(`
1167
1177
  `).forEach(function(i) {
1168
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Lr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1178
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Pr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1169
1179
  }), t;
1170
1180
  }, tt = Symbol("internals");
1171
1181
  function M(e) {
@@ -1182,7 +1192,7 @@ function jr(e) {
1182
1192
  return t;
1183
1193
  }
1184
1194
  const Nr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1185
- function ye(e, t, n, r, s) {
1195
+ function we(e, t, n, r, s) {
1186
1196
  if (c.isFunction(r))
1187
1197
  return r.call(this, t, n);
1188
1198
  if (s && (t = n), !!c.isString(t)) {
@@ -1242,7 +1252,7 @@ class T {
1242
1252
  has(t, n) {
1243
1253
  if (t = M(t), t) {
1244
1254
  const r = c.findKey(this, t);
1245
- return !!(r && this[r] !== void 0 && (!n || ye(this, this[r], r, n)));
1255
+ return !!(r && this[r] !== void 0 && (!n || we(this, this[r], r, n)));
1246
1256
  }
1247
1257
  return !1;
1248
1258
  }
@@ -1252,7 +1262,7 @@ class T {
1252
1262
  function o(i) {
1253
1263
  if (i = M(i), i) {
1254
1264
  const a = c.findKey(r, i);
1255
- a && (!n || ye(r, r[a], a, n)) && (delete r[a], s = !0);
1265
+ a && (!n || we(r, r[a], a, n)) && (delete r[a], s = !0);
1256
1266
  }
1257
1267
  }
1258
1268
  return c.isArray(t) ? t.forEach(o) : o(t), s;
@@ -1262,7 +1272,7 @@ class T {
1262
1272
  let r = n.length, s = !1;
1263
1273
  for (; r--; ) {
1264
1274
  const o = n[r];
1265
- (!t || ye(this, this[o], o, t, !0)) && (delete this[o], s = !0);
1275
+ (!t || we(this, this[o], o, t, !0)) && (delete this[o], s = !0);
1266
1276
  }
1267
1277
  return s;
1268
1278
  }
@@ -1326,7 +1336,7 @@ c.reduceDescriptors(T.prototype, ({ value: e }, t) => {
1326
1336
  };
1327
1337
  });
1328
1338
  c.freezeMethods(T);
1329
- function be(e, t) {
1339
+ function _e(e, t) {
1330
1340
  const n = this || $, r = t || n, s = T.from(r.headers);
1331
1341
  let o = r.data;
1332
1342
  return c.forEach(e, function(a) {
@@ -1436,8 +1446,8 @@ function qr(e, t) {
1436
1446
  g += n[l++], l = l % e;
1437
1447
  if (s = (s + 1) % e, s === o && (o = (o + 1) % e), d - i < t)
1438
1448
  return;
1439
- const y = u && d - u;
1440
- return y ? Math.round(g * 1e3 / y) : void 0;
1449
+ const w = u && d - u;
1450
+ return w ? Math.round(g * 1e3 / w) : void 0;
1441
1451
  };
1442
1452
  }
1443
1453
  function nt(e, t) {
@@ -1471,7 +1481,7 @@ const zr = typeof XMLHttpRequest < "u", Jr = zr && function(e) {
1471
1481
  if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
1472
1482
  o.setContentType(!1);
1473
1483
  else if ((u = o.getContentType()) !== !1) {
1474
- const [p, ...E] = u ? u.split(";").map((b) => b.trim()).filter(Boolean) : [];
1484
+ const [p, ...E] = u ? u.split(";").map((_) => _.trim()).filter(Boolean) : [];
1475
1485
  o.setContentType([p || "multipart/form-data", ...E].join("; "));
1476
1486
  }
1477
1487
  }
@@ -1482,12 +1492,12 @@ const zr = typeof XMLHttpRequest < "u", Jr = zr && function(e) {
1482
1492
  }
1483
1493
  const g = Kt(e.baseURL, e.url);
1484
1494
  l.open(e.method.toUpperCase(), Ht(g, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
1485
- function y() {
1495
+ function w() {
1486
1496
  if (!l)
1487
1497
  return;
1488
1498
  const p = T.from(
1489
1499
  "getAllResponseHeaders" in l && l.getAllResponseHeaders()
1490
- ), b = {
1500
+ ), _ = {
1491
1501
  data: !i || i === "text" || i === "json" ? l.responseText : l.response,
1492
1502
  status: l.status,
1493
1503
  statusText: l.statusText,
@@ -1499,20 +1509,20 @@ const zr = typeof XMLHttpRequest < "u", Jr = zr && function(e) {
1499
1509
  n(R), d();
1500
1510
  }, function(R) {
1501
1511
  r(R), d();
1502
- }, b), l = null;
1512
+ }, _), l = null;
1503
1513
  }
1504
- if ("onloadend" in l ? l.onloadend = y : l.onreadystatechange = function() {
1505
- !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(y);
1514
+ if ("onloadend" in l ? l.onloadend = w : l.onreadystatechange = function() {
1515
+ !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(w);
1506
1516
  }, l.onabort = function() {
1507
1517
  l && (r(new m("Request aborted", m.ECONNABORTED, e, l)), l = null);
1508
1518
  }, l.onerror = function() {
1509
1519
  r(new m("Network Error", m.ERR_NETWORK, e, l)), l = null;
1510
1520
  }, l.ontimeout = function() {
1511
1521
  let E = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
1512
- const b = e.transitional || qt;
1522
+ const _ = e.transitional || qt;
1513
1523
  e.timeoutErrorMessage && (E = e.timeoutErrorMessage), r(new m(
1514
1524
  E,
1515
- b.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1525
+ _.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1516
1526
  e,
1517
1527
  l
1518
1528
  )), l = null;
@@ -1520,8 +1530,8 @@ const zr = typeof XMLHttpRequest < "u", Jr = zr && function(e) {
1520
1530
  const p = e.xsrfHeaderName && e.xsrfCookieName && Ur.read(e.xsrfCookieName);
1521
1531
  p && o.set(e.xsrfHeaderName, p);
1522
1532
  }
1523
- s === void 0 && o.setContentType(null), "setRequestHeader" in l && c.forEach(o.toJSON(), function(E, b) {
1524
- l.setRequestHeader(b, E);
1533
+ s === void 0 && o.setContentType(null), "setRequestHeader" in l && c.forEach(o.toJSON(), function(E, _) {
1534
+ l.setRequestHeader(_, E);
1525
1535
  }), c.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), i && i !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", nt(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", nt(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (p) => {
1526
1536
  l && (r(!p || p.type ? new V(null, e, l) : p), l.abort(), l = null);
1527
1537
  }, e.cancelToken && e.cancelToken.subscribe(f), e.signal && (e.signal.aborted ? f() : e.signal.addEventListener("abort", f)));
@@ -1576,22 +1586,22 @@ const rt = (e) => `- ${e}`, Wr = (e) => c.isFunction(e) || e === null || e === !
1576
1586
  },
1577
1587
  adapters: xe
1578
1588
  };
1579
- function _e(e) {
1589
+ function be(e) {
1580
1590
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1581
1591
  throw new V(null, e);
1582
1592
  }
1583
1593
  function st(e) {
1584
- return _e(e), e.headers = T.from(e.headers), e.data = be.call(
1594
+ return be(e), e.headers = T.from(e.headers), e.data = _e.call(
1585
1595
  e,
1586
1596
  e.transformRequest
1587
1597
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), $t.getAdapter(e.adapter || $.adapter)(e).then(function(r) {
1588
- return _e(e), r.data = be.call(
1598
+ return be(e), r.data = _e.call(
1589
1599
  e,
1590
1600
  e.transformResponse,
1591
1601
  r
1592
1602
  ), r.headers = T.from(r.headers), r;
1593
1603
  }, function(r) {
1594
- return Wt(r) || (_e(e), r && r.response && (r.response.data = be.call(
1604
+ return Wt(r) || (be(e), r && r.response && (r.response.data = _e.call(
1595
1605
  e,
1596
1606
  e.transformResponse,
1597
1607
  r.response
@@ -1710,7 +1720,7 @@ function Kr(e, t, n) {
1710
1720
  const Ce = {
1711
1721
  assertOptions: Kr,
1712
1722
  validators: Me
1713
- }, L = Ce.validators;
1723
+ }, P = Ce.validators;
1714
1724
  class D {
1715
1725
  constructor(t) {
1716
1726
  this.defaults = t, this.interceptors = {
@@ -1744,14 +1754,14 @@ class D {
1744
1754
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = U(this.defaults, n);
1745
1755
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1746
1756
  r !== void 0 && Ce.assertOptions(r, {
1747
- silentJSONParsing: L.transitional(L.boolean),
1748
- forcedJSONParsing: L.transitional(L.boolean),
1749
- clarifyTimeoutError: L.transitional(L.boolean)
1757
+ silentJSONParsing: P.transitional(P.boolean),
1758
+ forcedJSONParsing: P.transitional(P.boolean),
1759
+ clarifyTimeoutError: P.transitional(P.boolean)
1750
1760
  }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1751
1761
  serialize: s
1752
1762
  } : Ce.assertOptions(s, {
1753
- encode: L.function,
1754
- serialize: L.function
1763
+ encode: P.function,
1764
+ serialize: P.function
1755
1765
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1756
1766
  let i = o && c.merge(
1757
1767
  o.common,
@@ -1780,18 +1790,18 @@ class D {
1780
1790
  return u;
1781
1791
  }
1782
1792
  g = a.length;
1783
- let y = n;
1793
+ let w = n;
1784
1794
  for (l = 0; l < g; ) {
1785
1795
  const h = a[l++], p = a[l++];
1786
1796
  try {
1787
- y = h(y);
1797
+ w = h(w);
1788
1798
  } catch (E) {
1789
1799
  p.call(this, E);
1790
1800
  break;
1791
1801
  }
1792
1802
  }
1793
1803
  try {
1794
- u = st.call(this, y);
1804
+ u = st.call(this, w);
1795
1805
  } catch (h) {
1796
1806
  return Promise.reject(h);
1797
1807
  }
@@ -1905,7 +1915,7 @@ function $r(e) {
1905
1915
  function Vr(e) {
1906
1916
  return c.isObject(e) && e.isAxiosError === !0;
1907
1917
  }
1908
- const Pe = {
1918
+ const Le = {
1909
1919
  Continue: 100,
1910
1920
  SwitchingProtocols: 101,
1911
1921
  Processing: 102,
@@ -1970,35 +1980,35 @@ const Pe = {
1970
1980
  NotExtended: 510,
1971
1981
  NetworkAuthenticationRequired: 511
1972
1982
  };
1973
- Object.entries(Pe).forEach(([e, t]) => {
1974
- Pe[t] = e;
1983
+ Object.entries(Le).forEach(([e, t]) => {
1984
+ Le[t] = e;
1975
1985
  });
1976
1986
  function Gt(e) {
1977
- const t = new D(e), n = Pt(D.prototype.request, t);
1987
+ const t = new D(e), n = Lt(D.prototype.request, t);
1978
1988
  return c.extend(n, D.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1979
1989
  return Gt(U(e, s));
1980
1990
  }, n;
1981
1991
  }
1982
- const _ = Gt($);
1983
- _.Axios = D;
1984
- _.CanceledError = V;
1985
- _.CancelToken = He;
1986
- _.isCancel = Wt;
1987
- _.VERSION = Vt;
1988
- _.toFormData = he;
1989
- _.AxiosError = m;
1990
- _.Cancel = _.CanceledError;
1991
- _.all = function(t) {
1992
+ const b = Gt($);
1993
+ b.Axios = D;
1994
+ b.CanceledError = V;
1995
+ b.CancelToken = He;
1996
+ b.isCancel = Wt;
1997
+ b.VERSION = Vt;
1998
+ b.toFormData = he;
1999
+ b.AxiosError = m;
2000
+ b.Cancel = b.CanceledError;
2001
+ b.all = function(t) {
1992
2002
  return Promise.all(t);
1993
2003
  };
1994
- _.spread = $r;
1995
- _.isAxiosError = Vr;
1996
- _.mergeConfig = U;
1997
- _.AxiosHeaders = T;
1998
- _.formToJSON = (e) => Jt(c.isHTMLForm(e) ? new FormData(e) : e);
1999
- _.getAdapter = $t.getAdapter;
2000
- _.HttpStatusCode = Pe;
2001
- _.default = _;
2004
+ b.spread = $r;
2005
+ b.isAxiosError = Vr;
2006
+ b.mergeConfig = U;
2007
+ b.AxiosHeaders = T;
2008
+ b.formToJSON = (e) => Jt(c.isHTMLForm(e) ? new FormData(e) : e);
2009
+ b.getAdapter = $t.getAdapter;
2010
+ b.HttpStatusCode = Le;
2011
+ b.default = b;
2002
2012
  const Gr = {
2003
2013
  form: "application/x-www-form-urlencoded",
2004
2014
  json: "application/json",
@@ -2017,7 +2027,7 @@ class Zr {
2017
2027
  const n = me(t, [
2018
2028
  "settings"
2019
2029
  ]);
2020
- this.axios = _.create(
2030
+ this.axios = b.create(
2021
2031
  H(
2022
2032
  {
2023
2033
  headers: {
@@ -2122,7 +2132,7 @@ class Zr {
2122
2132
  send(t = {}, n = !1) {
2123
2133
  const r = H({}, this.settings, t.settings || {}), s = me(t, [
2124
2134
  "settings"
2125
- ]), o = nn(!1), i = _.CancelToken.source();
2135
+ ]), o = nn(!1), i = b.CancelToken.source();
2126
2136
  this.records[o] = { settings: r, config: s, source: i };
2127
2137
  const a = this.createUrl(s), f = this.createHeaders(o, r, s), { data: d, params: u } = this.createSendData(
2128
2138
  r,
@@ -2138,7 +2148,7 @@ class Zr {
2138
2148
  headers: f,
2139
2149
  data: d,
2140
2150
  params: u
2141
- }).then((y) => this.isSkipWarnResponse(y) ? l(y.promise) : this.validResponse(r, y) ? l(r.originResponse ? y : y.data?.data) : (this.showError(r, y.data), g(y.data))).catch((y) => (this.showError(r, y), g(y))).finally(() => {
2151
+ }).then((w) => this.isSkipWarnResponse(w) ? l(w.promise) : this.validResponse(r, w) ? l(r.originResponse ? w : w.data?.data) : (this.showError(r, w.data), g(w.data))).catch((w) => (this.showError(r, w), g(w))).finally(() => {
2142
2152
  delete this.records[o], this.closeLoading(r);
2143
2153
  });
2144
2154
  });
@@ -2222,7 +2232,7 @@ function Cs(e, t) {
2222
2232
  loading: s
2223
2233
  };
2224
2234
  }
2225
- const J = typeof window < "u", Ps = (e) => new Promise((t, n) => {
2235
+ const J = typeof window < "u", Ls = (e) => new Promise((t, n) => {
2226
2236
  const r = new FileReader();
2227
2237
  r.readAsDataURL(e), r.onload = () => {
2228
2238
  t(r.result);
@@ -2230,7 +2240,7 @@ const J = typeof window < "u", Ps = (e) => new Promise((t, n) => {
2230
2240
  n(s);
2231
2241
  };
2232
2242
  });
2233
- function Ls(e) {
2243
+ function Ps(e) {
2234
2244
  const t = {};
2235
2245
  return e ? (e.forEach((n, r) => {
2236
2246
  t[r] = typeof n == "string" ? decodeURIComponent(n) : n;
@@ -2291,7 +2301,7 @@ var ss = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2291
2301
  function Xt(e) {
2292
2302
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2293
2303
  }
2294
- var Le = { exports: {} };
2304
+ var Pe = { exports: {} };
2295
2305
  (function(e, t) {
2296
2306
  (function(n, r) {
2297
2307
  r(t, e);
@@ -2316,32 +2326,32 @@ var Le = { exports: {} };
2316
2326
  u && document.getElementsByTagName("head")[0].removeChild(u);
2317
2327
  }
2318
2328
  function f(d) {
2319
- var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], l = d, g = u.timeout || s.timeout, y = u.jsonpCallback || s.jsonpCallback, h = void 0;
2329
+ var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], l = d, g = u.timeout || s.timeout, w = u.jsonpCallback || s.jsonpCallback, h = void 0;
2320
2330
  return new Promise(function(p, E) {
2321
- var b = u.jsonpCallbackFunction || o(), S = y + "_" + b;
2322
- window[b] = function(pe) {
2331
+ var _ = u.jsonpCallbackFunction || o(), S = w + "_" + _;
2332
+ window[_] = function(pe) {
2323
2333
  p({
2324
2334
  ok: !0,
2325
2335
  // keep consistent with fetch API
2326
2336
  json: function() {
2327
2337
  return Promise.resolve(pe);
2328
2338
  }
2329
- }), h && clearTimeout(h), a(S), i(b);
2339
+ }), h && clearTimeout(h), a(S), i(_);
2330
2340
  }, l += l.indexOf("?") === -1 ? "?" : "&";
2331
2341
  var R = document.createElement("script");
2332
- R.setAttribute("src", "" + l + y + "=" + b), u.charset && R.setAttribute("charset", u.charset), u.nonce && R.setAttribute("nonce", u.nonce), u.referrerPolicy && R.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && R.setAttribute("crossorigin", "true"), R.id = S, document.getElementsByTagName("head")[0].appendChild(R), h = setTimeout(function() {
2333
- E(new Error("JSONP request to " + d + " timed out")), i(b), a(S), window[b] = function() {
2334
- i(b);
2342
+ R.setAttribute("src", "" + l + w + "=" + _), u.charset && R.setAttribute("charset", u.charset), u.nonce && R.setAttribute("nonce", u.nonce), u.referrerPolicy && R.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && R.setAttribute("crossorigin", "true"), R.id = S, document.getElementsByTagName("head")[0].appendChild(R), h = setTimeout(function() {
2343
+ E(new Error("JSONP request to " + d + " timed out")), i(_), a(S), window[_] = function() {
2344
+ i(_);
2335
2345
  };
2336
2346
  }, g), R.onerror = function() {
2337
- E(new Error("JSONP request to " + d + " failed")), i(b), a(S), h && clearTimeout(h);
2347
+ E(new Error("JSONP request to " + d + " failed")), i(_), a(S), h && clearTimeout(h);
2338
2348
  };
2339
2349
  });
2340
2350
  }
2341
2351
  r.exports = f;
2342
2352
  });
2343
- })(Le, Le.exports);
2344
- var os = Le.exports;
2353
+ })(Pe, Pe.exports);
2354
+ var os = Pe.exports;
2345
2355
  const is = /* @__PURE__ */ Xt(os);
2346
2356
  function as(e) {
2347
2357
  if (J) {
@@ -2455,7 +2465,7 @@ const gs = {
2455
2465
  level: "warn",
2456
2466
  bizName: "*"
2457
2467
  };
2458
- class ws {
2468
+ class ys {
2459
2469
  config;
2460
2470
  options;
2461
2471
  constructor(t) {
@@ -2485,10 +2495,10 @@ class ws {
2485
2495
  return this._log("error")(...t);
2486
2496
  }
2487
2497
  }
2488
- function ys(e) {
2489
- return new ws(e);
2498
+ function ws(e) {
2499
+ return new ys(e);
2490
2500
  }
2491
- const Us = ys({ level: "log", bizName: "VTJ" });
2501
+ const Us = ws({ level: "log", bizName: "VTJ" });
2492
2502
  /*! js-cookie v3.0.5 | MIT */
2493
2503
  function ee(e) {
2494
2504
  for (var t = 1; t < arguments.length; t++) {
@@ -2498,7 +2508,7 @@ function ee(e) {
2498
2508
  }
2499
2509
  return e;
2500
2510
  }
2501
- var bs = {
2511
+ var _s = {
2502
2512
  read: function(e) {
2503
2513
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2504
2514
  },
@@ -2559,8 +2569,8 @@ function je(e, t) {
2559
2569
  }
2560
2570
  );
2561
2571
  }
2562
- var qe = je(bs, { path: "/" });
2563
- function _s(e, t, n) {
2572
+ var qe = je(_s, { path: "/" });
2573
+ function bs(e, t, n) {
2564
2574
  qe.set(e, t, n);
2565
2575
  }
2566
2576
  function Es(e) {
@@ -2573,7 +2583,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2573
2583
  __proto__: null,
2574
2584
  get: Es,
2575
2585
  remove: Rs,
2576
- set: _s
2586
+ set: bs
2577
2587
  }, Symbol.toStringTag, { value: "Module" }));
2578
2588
  function ks(e, t = "") {
2579
2589
  const n = document.createElement("a");
@@ -2591,11 +2601,11 @@ async function Ms(e, t = "") {
2591
2601
  }
2592
2602
  export {
2593
2603
  at as LOCAL_REQUEST_ID,
2594
- ws as Logger,
2604
+ ys as Logger,
2595
2605
  Zr as Request,
2596
2606
  rs as Storage,
2597
2607
  As as VTJ_UTILS_VERSION,
2598
- _ as axios,
2608
+ b as axios,
2599
2609
  js as cAF,
2600
2610
  Bs as cookie,
2601
2611
  ns as createApi,
@@ -2604,9 +2614,9 @@ export {
2604
2614
  Ss as downloadBlob,
2605
2615
  Ms as downloadRemoteFile,
2606
2616
  ks as downloadUrl,
2607
- Ps as fileToBase64,
2608
- Ls as formDataToJson,
2609
- ys as getLogger,
2617
+ Ls as fileToBase64,
2618
+ Ps as formDataToJson,
2619
+ ws as getLogger,
2610
2620
  J as isClient,
2611
2621
  Is as jsonp,
2612
2622
  Ds as loadScript,