@das-fed/utils 6.4.0-test.3.1 → 6.4.0-test.30

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.
Files changed (93) hide show
  1. package/api-services/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1589 -1395
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1390 -1226
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1340 -1190
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1347 -1201
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1390 -1226
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1395 -1231
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1384 -1224
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.js +1526 -1357
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +1390 -1226
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1526 -1357
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.d.ts +1 -0
  25. package/api-services/modules/iot/index.js +1422 -1257
  26. package/api-services/modules/iot/index.js.gz +0 -0
  27. package/api-services/modules/justauth/index.js +1364 -1218
  28. package/api-services/modules/justauth/index.js.gz +0 -0
  29. package/api-services/modules/knowledge/index.js +1401 -1237
  30. package/api-services/modules/knowledge/index.js.gz +0 -0
  31. package/api-services/modules/link/index.js +1343 -1197
  32. package/api-services/modules/link/index.js.gz +0 -0
  33. package/api-services/modules/permission/index.js +1390 -1226
  34. package/api-services/modules/permission/index.js.gz +0 -0
  35. package/api-services/modules/platformManage/index.js +1400 -1236
  36. package/api-services/modules/platformManage/index.js.gz +0 -0
  37. package/api-services/modules/portal/index.js +1390 -1226
  38. package/api-services/modules/portal/index.js.gz +0 -0
  39. package/api-services/modules/space-manage/index.js +1390 -1226
  40. package/api-services/modules/space-manage/index.js.gz +0 -0
  41. package/api-services/modules/super-admin/index.js +1381 -1217
  42. package/api-services/modules/super-admin/index.js.gz +0 -0
  43. package/api-services/modules/supplier/index.js +1346 -1200
  44. package/api-services/modules/supplier/index.js.gz +0 -0
  45. package/api-services/modules/supplychain-manage/index.js +1343 -1197
  46. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  47. package/api-services/modules/systemConfiguration/index.js +1390 -1226
  48. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  49. package/api-services/modules/tool/index.js +1390 -1226
  50. package/api-services/modules/tool/index.js.gz +0 -0
  51. package/api-services/src/create-service/index.js +1390 -1226
  52. package/api-services/src/create-service/index.js.gz +0 -0
  53. package/common-info/index.d.ts +9 -3
  54. package/common-info/index.js +108 -54
  55. package/common-info/index.js.gz +0 -0
  56. package/common-info/set-personal-info/index.js +446 -440
  57. package/common-info/set-personal-info/index.js.gz +0 -0
  58. package/common-info/type.d.ts +114 -6
  59. package/common-tools/calc-text-width/index.d.ts +1 -0
  60. package/common-tools/calc-text-width/index.js +10 -0
  61. package/common-tools/extract-file-name/index.js +737 -738
  62. package/common-tools/extract-file-name/index.js.gz +0 -0
  63. package/common-tools/get-file-extension/index.d.ts +6 -0
  64. package/common-tools/get-file-extension/index.js +7 -0
  65. package/common-tools/index.d.ts +2 -0
  66. package/common-tools/index.js +2 -0
  67. package/common-tools/nest-tree-format/index.d.ts +1 -1
  68. package/common-tools/nest-tree-format/index.js +15 -15
  69. package/create-api-service/i18n/index.d.ts +33 -0
  70. package/create-api-service/i18n/index.js +15 -0
  71. package/create-api-service/index.js +1390 -1226
  72. package/create-api-service/index.js.gz +0 -0
  73. package/create-api-service/sso/index.d.ts +0 -2
  74. package/create-api-service/sso/index.js +482 -479
  75. package/create-api-service/sso/index.js.gz +0 -0
  76. package/curring-http/index.js +575 -575
  77. package/curring-http/index.js.gz +0 -0
  78. package/directive/hoverInside/index.d.ts +1 -1
  79. package/dom-check-in/index.js +2 -2
  80. package/dom-watcher/index.d.ts +1 -1
  81. package/esm-map.json +6 -1
  82. package/package.json +4 -4
  83. package/pinyin-first-character/index.js +22 -22
  84. package/pinyin-first-character/index.js.gz +0 -0
  85. package/style/index.js +1 -1
  86. package/style/index.js.gz +0 -0
  87. package/style/math.d.ts +4 -4
  88. package/token-tools/index.d.ts +6 -1
  89. package/token-tools/index.js +6 -6
  90. package/use-low-code/index.js +2 -2
  91. package/use-low-code/index.js.gz +0 -0
  92. package/i18n-collection/en.js +0 -21
  93. package/i18n-collection/zh-CN.js +0 -21
@@ -1,31 +1,31 @@
1
- import { unref as Ut, getCurrentScope as Lt, onScopeDispose as Dt, ref as Y, watch as Se } from "vue";
2
- import { encryption as vt } from "@das-fed/utils/atob";
3
- import { getConfig as Re } from "@das-fed/utils/config";
4
- import { getUrlParams as Ye, funcUrlDel as Ft } from "@das-fed/utils/common-tools";
5
- import { getAccessToken as H, getAccessTokenInfo as Q, setAccessToken as Bt, removeAccessToken as It } from "@das-fed/utils/token-tools";
6
- import { setProcessEngineToken as jt, removeProcessEngineToken as qt } from "@das-fed/utils/process-engine-info";
7
- import { setPersonalInfo as et } from "@das-fed/utils/common-info/set-personal-info";
8
- function tt(e, t) {
1
+ import { unref as Ut, getCurrentScope as Lt, onScopeDispose as Dt, ref as Y, watch as Re } from "vue";
2
+ import { encryption as Ft } from "@das-fed/utils/atob";
3
+ import { getConfig as Te } from "@das-fed/utils/config";
4
+ import { getUrlParams as Ze, funcUrlDel as vt } from "@das-fed/utils/common-tools";
5
+ import { getAccessToken as H, removeAccessToken as Bt, setAccessToken as It, getAccessTokenInfo as ce } from "@das-fed/utils/token-tools";
6
+ import { removeProcessEngineToken as jt, setProcessEngineToken as qt } from "@das-fed/utils/process-engine-info";
7
+ import { setPersonalInfo as Ye } from "@das-fed/utils/common-info/set-personal-info";
8
+ function et(e, t) {
9
9
  return function() {
10
10
  return e.apply(t, arguments);
11
11
  };
12
12
  }
13
- const { toString: Mt } = Object.prototype, { getPrototypeOf: Te } = Object, ne = /* @__PURE__ */ ((e) => (t) => {
14
- const n = Mt.call(t);
13
+ const { toString: Ht } = Object.prototype, { getPrototypeOf: Oe } = Object, ne = /* @__PURE__ */ ((e) => (t) => {
14
+ const n = Ht.call(t);
15
15
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
16
- })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: I } = Array, z = re("undefined");
17
- function Ht(e) {
18
- return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
16
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: B } = Array, M = re("undefined");
17
+ function Mt(e) {
18
+ return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
19
  }
20
- const nt = x("ArrayBuffer");
21
- function zt(e) {
20
+ const tt = x("ArrayBuffer");
21
+ function $t(e) {
22
22
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nt(e.buffer), t;
23
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
24
24
  }
25
- const $t = re("string"), _ = re("function"), rt = re("number"), oe = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, X = (e) => {
25
+ const zt = re("string"), _ = re("function"), nt = re("number"), oe = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, G = (e) => {
26
26
  if (ne(e) !== "object")
27
27
  return !1;
28
- const t = Te(e);
28
+ const t = Oe(e);
29
29
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
30
30
  }, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Gt = (e) => oe(e) && _(e.pipe), Xt = (e) => {
31
31
  let t;
@@ -36,7 +36,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
36
36
  if (e === null || typeof e > "u")
37
37
  return;
38
38
  let r, o;
39
- if (typeof e != "object" && (e = [e]), I(e))
39
+ if (typeof e != "object" && (e = [e]), B(e))
40
40
  for (r = 0, o = e.length; r < o; r++)
41
41
  t.call(null, e[r], r, e);
42
42
  else {
@@ -46,7 +46,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
46
46
  c = s[r], t.call(null, e[c], c, e);
47
47
  }
48
48
  }
49
- function ot(e, t) {
49
+ function rt(e, t) {
50
50
  t = t.toLowerCase();
51
51
  const n = Object.keys(e);
52
52
  let r = n.length, o;
@@ -55,18 +55,18 @@ function ot(e, t) {
55
55
  return o;
56
56
  return null;
57
57
  }
58
- const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !z(e) && e !== U;
59
- function fe() {
60
- const { caseless: e } = st(this) && this || {}, t = {}, n = (r, o) => {
61
- const s = e && ot(t, o) || o;
62
- X(t[s]) && X(r) ? t[s] = fe(t[s], r) : X(r) ? t[s] = fe({}, r) : I(r) ? t[s] = r.slice() : t[s] = r;
58
+ const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !M(e) && e !== U;
59
+ function pe() {
60
+ const { caseless: e } = ot(this) && this || {}, t = {}, n = (r, o) => {
61
+ const s = e && rt(t, o) || o;
62
+ G(t[s]) && G(r) ? t[s] = pe(t[s], r) : G(r) ? t[s] = pe({}, r) : B(r) ? t[s] = r.slice() : t[s] = r;
63
63
  };
64
64
  for (let r = 0, o = arguments.length; r < o; r++)
65
65
  arguments[r] && V(arguments[r], n);
66
66
  return t;
67
67
  }
68
68
  const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
69
- n && _(o) ? e[s] = tt(o, n) : e[s] = o;
69
+ n && _(o) ? e[s] = et(o, n) : e[s] = o;
70
70
  }, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), an = (e, t, n, r) => {
71
71
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
72
72
  value: t.prototype
@@ -78,7 +78,7 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
78
78
  do {
79
79
  for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
80
80
  i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
81
- e = n !== !1 && Te(e);
81
+ e = n !== !1 && Oe(e);
82
82
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
83
83
  return t;
84
84
  }, un = (e, t, n) => {
@@ -87,14 +87,14 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
87
87
  return r !== -1 && r === n;
88
88
  }, ln = (e) => {
89
89
  if (!e) return null;
90
- if (I(e)) return e;
90
+ if (B(e)) return e;
91
91
  let t = e.length;
92
- if (!rt(t)) return null;
92
+ if (!nt(t)) return null;
93
93
  const n = new Array(t);
94
94
  for (; t-- > 0; )
95
95
  n[t] = e[t];
96
96
  return n;
97
- }, fn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Te(Uint8Array)), dn = (e, t) => {
97
+ }, fn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), dn = (e, t) => {
98
98
  const r = (e && e[Symbol.iterator]).call(e);
99
99
  let o;
100
100
  for (; (o = r.next()) && !o.done; ) {
@@ -112,14 +112,14 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
112
112
  function(n, r, o) {
113
113
  return r.toUpperCase() + o;
114
114
  }
115
- ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), it = (e, t) => {
115
+ ), ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), st = (e, t) => {
116
116
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
117
  V(n, (o, s) => {
118
118
  let i;
119
119
  (i = t(o, s, e)) !== !1 && (r[s] = i || o);
120
120
  }), Object.defineProperties(e, r);
121
121
  }, wn = (e) => {
122
- it(e, (t, n) => {
122
+ st(e, (t, n) => {
123
123
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
124
  return !1;
125
125
  const r = e[n];
@@ -139,13 +139,13 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
139
139
  n[s] = !0;
140
140
  });
141
141
  };
142
- return I(e) ? r(e) : r(String(e).split(t)), n;
142
+ return B(e) ? r(e) : r(String(e).split(t)), n;
143
143
  }, bn = () => {
144
- }, En = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ae = "abcdefghijklmnopqrstuvwxyz", Ne = "0123456789", at = {
145
- DIGIT: Ne,
146
- ALPHA: ae,
147
- ALPHA_DIGIT: ae + ae.toUpperCase() + Ne
148
- }, Sn = (e = 16, t = at.ALPHA_DIGIT) => {
144
+ }, En = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ue = "abcdefghijklmnopqrstuvwxyz", Pe = "0123456789", it = {
145
+ DIGIT: Pe,
146
+ ALPHA: ue,
147
+ ALPHA_DIGIT: ue + ue.toUpperCase() + Pe
148
+ }, Sn = (e = 16, t = it.ALPHA_DIGIT) => {
149
149
  let n = "";
150
150
  const { length: r } = t;
151
151
  for (; e--; )
@@ -162,39 +162,39 @@ const Tn = (e) => {
162
162
  return;
163
163
  if (!("toJSON" in r)) {
164
164
  t[o] = r;
165
- const s = I(r) ? [] : {};
165
+ const s = B(r) ? [] : {};
166
166
  return V(r, (i, c) => {
167
167
  const f = n(i, o + 1);
168
- !z(f) && (s[c] = f);
168
+ !M(f) && (s[c] = f);
169
169
  }), t[o] = void 0, s;
170
170
  }
171
171
  }
172
172
  return r;
173
173
  };
174
174
  return n(e, 0);
175
- }, On = x("AsyncFunction"), An = (e) => e && (oe(e) || _(e)) && _(e.then) && _(e.catch), ct = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: o, data: s }) => {
175
+ }, On = x("AsyncFunction"), An = (e) => e && (oe(e) || _(e)) && _(e.then) && _(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: o, data: s }) => {
176
176
  o === U && s === n && r.length && r.shift()();
177
177
  }, !1), (o) => {
178
178
  r.push(o), U.postMessage(n, "*");
179
179
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
180
180
  typeof setImmediate == "function",
181
181
  _(U.postMessage)
182
- ), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || ct, a = {
183
- isArray: I,
184
- isArrayBuffer: nt,
185
- isBuffer: Ht,
182
+ ), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || at, a = {
183
+ isArray: B,
184
+ isArrayBuffer: tt,
185
+ isBuffer: Mt,
186
186
  isFormData: Xt,
187
- isArrayBufferView: zt,
188
- isString: $t,
189
- isNumber: rt,
187
+ isArrayBufferView: $t,
188
+ isString: zt,
189
+ isNumber: nt,
190
190
  isBoolean: Jt,
191
191
  isObject: oe,
192
- isPlainObject: X,
192
+ isPlainObject: G,
193
193
  isReadableStream: Yt,
194
194
  isRequest: en,
195
195
  isResponse: tn,
196
196
  isHeaders: nn,
197
- isUndefined: z,
197
+ isUndefined: M,
198
198
  isDate: Vt,
199
199
  isFile: Wt,
200
200
  isBlob: Kt,
@@ -205,7 +205,7 @@ const Tn = (e) => {
205
205
  isTypedArray: fn,
206
206
  isFileList: Qt,
207
207
  forEach: V,
208
- merge: fe,
208
+ merge: pe,
209
209
  extend: on,
210
210
  trim: rn,
211
211
  stripBOM: sn,
@@ -218,25 +218,25 @@ const Tn = (e) => {
218
218
  forEachEntry: dn,
219
219
  matchAll: pn,
220
220
  isHTMLForm: hn,
221
- hasOwnProperty: Pe,
222
- hasOwnProp: Pe,
221
+ hasOwnProperty: ke,
222
+ hasOwnProp: ke,
223
223
  // an alias to avoid ESLint no-prototype-builtins detection
224
- reduceDescriptors: it,
224
+ reduceDescriptors: st,
225
225
  freezeMethods: wn,
226
226
  toObjectSet: gn,
227
227
  toCamelCase: mn,
228
228
  noop: bn,
229
229
  toFiniteNumber: En,
230
- findKey: ot,
230
+ findKey: rt,
231
231
  global: U,
232
- isContextDefined: st,
233
- ALPHABET: at,
232
+ isContextDefined: ot,
233
+ ALPHABET: it,
234
234
  generateString: Sn,
235
235
  isSpecCompliantForm: Rn,
236
236
  toJSONObject: Tn,
237
237
  isAsyncFn: On,
238
238
  isThenable: An,
239
- setImmediate: ct,
239
+ setImmediate: at,
240
240
  asap: _n
241
241
  };
242
242
  function y(e, t, n, r, o) {
@@ -263,7 +263,7 @@ a.inherits(y, Error, {
263
263
  };
264
264
  }
265
265
  });
266
- const ut = y.prototype, lt = {};
266
+ const ct = y.prototype, ut = {};
267
267
  [
268
268
  "ERR_BAD_OPTION_VALUE",
269
269
  "ERR_BAD_OPTION",
@@ -279,30 +279,30 @@ const ut = y.prototype, lt = {};
279
279
  "ERR_INVALID_URL"
280
280
  // eslint-disable-next-line func-names
281
281
  ].forEach((e) => {
282
- lt[e] = { value: e };
282
+ ut[e] = { value: e };
283
283
  });
284
- Object.defineProperties(y, lt);
285
- Object.defineProperty(ut, "isAxiosError", { value: !0 });
284
+ Object.defineProperties(y, ut);
285
+ Object.defineProperty(ct, "isAxiosError", { value: !0 });
286
286
  y.from = (e, t, n, r, o, s) => {
287
- const i = Object.create(ut);
287
+ const i = Object.create(ct);
288
288
  return a.toFlatObject(e, i, function(f) {
289
289
  return f !== Error.prototype;
290
290
  }, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
291
291
  };
292
292
  const xn = null;
293
- function de(e) {
293
+ function he(e) {
294
294
  return a.isPlainObject(e) || a.isArray(e);
295
295
  }
296
- function ft(e) {
296
+ function lt(e) {
297
297
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
298
  }
299
- function Ue(e, t, n) {
299
+ function Ne(e, t, n) {
300
300
  return e ? e.concat(t).map(function(o, s) {
301
- return o = ft(o), !n && s ? "[" + o + "]" : o;
301
+ return o = lt(o), !n && s ? "[" + o + "]" : o;
302
302
  }).join(n ? "." : "") : t;
303
303
  }
304
304
  function Cn(e) {
305
- return a.isArray(e) && !e.some(de);
305
+ return a.isArray(e) && !e.some(he);
306
306
  }
307
307
  const kn = a.toFlatObject(a, {}, null, function(t) {
308
308
  return /^is[A-Z]/.test(t);
@@ -317,10 +317,10 @@ function se(e, t, n) {
317
317
  }, !1, function(m, h) {
318
318
  return !a.isUndefined(h[m]);
319
319
  });
320
- const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
320
+ const r = n.metaTokens, o = n.visitor || l, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
321
321
  if (!a.isFunction(o))
322
322
  throw new TypeError("visitor must be a function");
323
- function l(p) {
323
+ function u(p) {
324
324
  if (p === null) return "";
325
325
  if (a.isDate(p))
326
326
  return p.toISOString();
@@ -328,26 +328,26 @@ function se(e, t, n) {
328
328
  throw new y("Blob is not supported. Use a Buffer instead.");
329
329
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
330
330
  }
331
- function u(p, m, h) {
331
+ function l(p, m, h) {
332
332
  let E = p;
333
333
  if (p && !h && typeof p == "object") {
334
334
  if (a.endsWith(m, "{}"))
335
335
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
336
336
  else if (a.isArray(p) && Cn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
337
- return m = ft(m), E.forEach(function(R, C) {
337
+ return m = lt(m), E.forEach(function(R, k) {
338
338
  !(a.isUndefined(R) || R === null) && t.append(
339
339
  // eslint-disable-next-line no-nested-ternary
340
- i === !0 ? Ue([m], C, s) : i === null ? m : m + "[]",
341
- l(R)
340
+ i === !0 ? Ne([m], k, s) : i === null ? m : m + "[]",
341
+ u(R)
342
342
  );
343
343
  }), !1;
344
344
  }
345
- return de(p) ? !0 : (t.append(Ue(h, m, s), l(p)), !1);
345
+ return he(p) ? !0 : (t.append(Ne(h, m, s), u(p)), !1);
346
346
  }
347
347
  const d = [], w = Object.assign(kn, {
348
- defaultVisitor: u,
349
- convertValue: l,
350
- isVisitable: de
348
+ defaultVisitor: l,
349
+ convertValue: u,
350
+ isVisitable: he
351
351
  });
352
352
  function g(p, m) {
353
353
  if (!a.isUndefined(p)) {
@@ -368,7 +368,7 @@ function se(e, t, n) {
368
368
  throw new TypeError("data must be an object");
369
369
  return g(e), t;
370
370
  }
371
- function Le(e) {
371
+ function Ue(e) {
372
372
  const t = {
373
373
  "!": "%21",
374
374
  "'": "%27",
@@ -382,17 +382,17 @@ function Le(e) {
382
382
  return t[r];
383
383
  });
384
384
  }
385
- function Oe(e, t) {
385
+ function Ae(e, t) {
386
386
  this._pairs = [], e && se(e, this, t);
387
387
  }
388
- const dt = Oe.prototype;
389
- dt.append = function(t, n) {
388
+ const ft = Ae.prototype;
389
+ ft.append = function(t, n) {
390
390
  this._pairs.push([t, n]);
391
391
  };
392
- dt.toString = function(t) {
392
+ ft.toString = function(t) {
393
393
  const n = t ? function(r) {
394
- return t.call(this, r, Le);
395
- } : Le;
394
+ return t.call(this, r, Ue);
395
+ } : Ue;
396
396
  return this._pairs.map(function(o) {
397
397
  return n(o[0]) + "=" + n(o[1]);
398
398
  }, "").join("&");
@@ -400,18 +400,22 @@ dt.toString = function(t) {
400
400
  function Pn(e) {
401
401
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
402
402
  }
403
- function pt(e, t, n) {
403
+ function dt(e, t, n) {
404
404
  if (!t)
405
405
  return e;
406
- const r = n && n.encode || Pn, o = n && n.serialize;
406
+ const r = n && n.encode || Pn;
407
+ a.isFunction(n) && (n = {
408
+ serialize: n
409
+ });
410
+ const o = n && n.serialize;
407
411
  let s;
408
- if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new Oe(t, n).toString(r), s) {
412
+ if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new Ae(t, n).toString(r), s) {
409
413
  const i = e.indexOf("#");
410
414
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
411
415
  }
412
416
  return e;
413
417
  }
414
- class De {
418
+ class Le {
415
419
  constructor() {
416
420
  this.handlers = [];
417
421
  }
@@ -465,11 +469,11 @@ class De {
465
469
  });
466
470
  }
467
471
  }
468
- const ht = {
472
+ const pt = {
469
473
  silentJSONParsing: !0,
470
474
  forcedJSONParsing: !0,
471
475
  clarifyTimeoutError: !1
472
- }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : Oe, Un = typeof FormData < "u" ? FormData : null, Ln = typeof Blob < "u" ? Blob : null, Dn = {
476
+ }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Un = typeof FormData < "u" ? FormData : null, Ln = typeof Blob < "u" ? Blob : null, Dn = {
473
477
  isBrowser: !0,
474
478
  classes: {
475
479
  URLSearchParams: Nn,
@@ -477,29 +481,29 @@ const ht = {
477
481
  Blob: Ln
478
482
  },
479
483
  protocols: ["http", "https", "file", "blob", "url", "data"]
480
- }, Ae = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, vn = Ae && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), Fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
481
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = Ae && window.location.href || "http://localhost", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
484
+ }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Fn = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
485
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = _e && window.location.href || "http://localhost", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
482
486
  __proto__: null,
483
- hasBrowserEnv: Ae,
484
- hasStandardBrowserEnv: vn,
485
- hasStandardBrowserWebWorkerEnv: Fn,
486
- navigator: pe,
487
+ hasBrowserEnv: _e,
488
+ hasStandardBrowserEnv: Fn,
489
+ hasStandardBrowserWebWorkerEnv: vn,
490
+ navigator: me,
487
491
  origin: Bn
488
- }, Symbol.toStringTag, { value: "Module" })), O = {
492
+ }, Symbol.toStringTag, { value: "Module" })), T = {
489
493
  ...In,
490
494
  ...Dn
491
495
  };
492
496
  function jn(e, t) {
493
- return se(e, new O.classes.URLSearchParams(), Object.assign({
497
+ return se(e, new T.classes.URLSearchParams(), Object.assign({
494
498
  visitor: function(n, r, o, s) {
495
- return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
499
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
496
500
  }
497
501
  }, t));
498
502
  }
499
503
  function qn(e) {
500
504
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
501
505
  }
502
- function Mn(e) {
506
+ function Hn(e) {
503
507
  const t = {}, n = Object.keys(e);
504
508
  let r;
505
509
  const o = n.length;
@@ -508,12 +512,12 @@ function Mn(e) {
508
512
  s = n[r], t[s] = e[s];
509
513
  return t;
510
514
  }
511
- function mt(e) {
515
+ function ht(e) {
512
516
  function t(n, r, o, s) {
513
517
  let i = n[s++];
514
518
  if (i === "__proto__") return !0;
515
519
  const c = Number.isFinite(+i), f = s >= n.length;
516
- return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Mn(o[i])), !c);
520
+ return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Hn(o[i])), !c);
517
521
  }
518
522
  if (a.isFormData(e) && a.isFunction(e.entries)) {
519
523
  const n = {};
@@ -523,7 +527,7 @@ function mt(e) {
523
527
  }
524
528
  return null;
525
529
  }
526
- function Hn(e, t, n) {
530
+ function Mn(e, t, n) {
527
531
  if (a.isString(e))
528
532
  try {
529
533
  return (t || JSON.parse)(e), a.trim(e);
@@ -531,15 +535,15 @@ function Hn(e, t, n) {
531
535
  if (r.name !== "SyntaxError")
532
536
  throw r;
533
537
  }
534
- return (0, JSON.stringify)(e);
538
+ return (n || JSON.stringify)(e);
535
539
  }
536
540
  const W = {
537
- transitional: ht,
541
+ transitional: pt,
538
542
  adapter: ["xhr", "http", "fetch"],
539
543
  transformRequest: [function(t, n) {
540
544
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
541
545
  if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
542
- return o ? JSON.stringify(mt(t)) : t;
546
+ return o ? JSON.stringify(ht(t)) : t;
543
547
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
544
548
  return t;
545
549
  if (a.isArrayBufferView(t))
@@ -559,7 +563,7 @@ const W = {
559
563
  );
560
564
  }
561
565
  }
562
- return s || o ? (n.setContentType("application/json", !1), Hn(t)) : t;
566
+ return s || o ? (n.setContentType("application/json", !1), Mn(t)) : t;
563
567
  }],
564
568
  transformResponse: [function(t) {
565
569
  const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
@@ -586,8 +590,8 @@ const W = {
586
590
  maxContentLength: -1,
587
591
  maxBodyLength: -1,
588
592
  env: {
589
- FormData: O.classes.FormData,
590
- Blob: O.classes.Blob
593
+ FormData: T.classes.FormData,
594
+ Blob: T.classes.Blob
591
595
  },
592
596
  validateStatus: function(t) {
593
597
  return t >= 200 && t < 300;
@@ -602,7 +606,7 @@ const W = {
602
606
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
603
607
  W.headers[e] = {};
604
608
  });
605
- const zn = a.toObjectSet([
609
+ const $n = a.toObjectSet([
606
610
  "age",
607
611
  "authorization",
608
612
  "content-length",
@@ -620,19 +624,19 @@ const zn = a.toObjectSet([
620
624
  "referer",
621
625
  "retry-after",
622
626
  "user-agent"
623
- ]), $n = (e) => {
627
+ ]), zn = (e) => {
624
628
  const t = {};
625
629
  let n, r, o;
626
630
  return e && e.split(`
627
631
  `).forEach(function(i) {
628
- o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
632
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && $n[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
629
633
  }), t;
630
- }, ve = Symbol("internals");
631
- function q(e) {
634
+ }, De = Symbol("internals");
635
+ function j(e) {
632
636
  return e && String(e).trim().toLowerCase();
633
637
  }
634
- function Z(e) {
635
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(Z) : String(e);
638
+ function X(e) {
639
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(X) : String(e);
636
640
  }
637
641
  function Jn(e) {
638
642
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -642,7 +646,7 @@ function Jn(e) {
642
646
  return t;
643
647
  }
644
648
  const Vn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
645
- function ce(e, t, n, r, o) {
649
+ function le(e, t, n, r, o) {
646
650
  if (a.isFunction(r))
647
651
  return r.call(this, t, n);
648
652
  if (o && (t = n), !!a.isString(t)) {
@@ -666,24 +670,24 @@ function Kn(e, t) {
666
670
  });
667
671
  });
668
672
  }
669
- class A {
673
+ let A = class {
670
674
  constructor(t) {
671
675
  t && this.set(t);
672
676
  }
673
677
  set(t, n, r) {
674
678
  const o = this;
675
- function s(c, f, l) {
676
- const u = q(f);
677
- if (!u)
679
+ function s(c, f, u) {
680
+ const l = j(f);
681
+ if (!l)
678
682
  throw new Error("header name must be a non-empty string");
679
- const d = a.findKey(o, u);
680
- (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = Z(c));
683
+ const d = a.findKey(o, l);
684
+ (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || f] = X(c));
681
685
  }
682
- const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
686
+ const i = (c, f) => a.forEach(c, (u, l) => s(u, l, f));
683
687
  if (a.isPlainObject(t) || t instanceof this.constructor)
684
688
  i(t, n);
685
689
  else if (a.isString(t) && (t = t.trim()) && !Vn(t))
686
- i($n(t), n);
690
+ i(zn(t), n);
687
691
  else if (a.isHeaders(t))
688
692
  for (const [c, f] of t.entries())
689
693
  s(f, c, r);
@@ -692,7 +696,7 @@ class A {
692
696
  return this;
693
697
  }
694
698
  get(t, n) {
695
- if (t = q(t), t) {
699
+ if (t = j(t), t) {
696
700
  const r = a.findKey(this, t);
697
701
  if (r) {
698
702
  const o = this[r];
@@ -709,9 +713,9 @@ class A {
709
713
  }
710
714
  }
711
715
  has(t, n) {
712
- if (t = q(t), t) {
716
+ if (t = j(t), t) {
713
717
  const r = a.findKey(this, t);
714
- return !!(r && this[r] !== void 0 && (!n || ce(this, this[r], r, n)));
718
+ return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
715
719
  }
716
720
  return !1;
717
721
  }
@@ -719,9 +723,9 @@ class A {
719
723
  const r = this;
720
724
  let o = !1;
721
725
  function s(i) {
722
- if (i = q(i), i) {
726
+ if (i = j(i), i) {
723
727
  const c = a.findKey(r, i);
724
- c && (!n || ce(r, r[c], c, n)) && (delete r[c], o = !0);
728
+ c && (!n || le(r, r[c], c, n)) && (delete r[c], o = !0);
725
729
  }
726
730
  }
727
731
  return a.isArray(t) ? t.forEach(s) : s(t), o;
@@ -731,7 +735,7 @@ class A {
731
735
  let r = n.length, o = !1;
732
736
  for (; r--; ) {
733
737
  const s = n[r];
734
- (!t || ce(this, this[s], s, t, !0)) && (delete this[s], o = !0);
738
+ (!t || le(this, this[s], s, t, !0)) && (delete this[s], o = !0);
735
739
  }
736
740
  return o;
737
741
  }
@@ -740,11 +744,11 @@ class A {
740
744
  return a.forEach(this, (o, s) => {
741
745
  const i = a.findKey(r, s);
742
746
  if (i) {
743
- n[i] = Z(o), delete n[s];
747
+ n[i] = X(o), delete n[s];
744
748
  return;
745
749
  }
746
750
  const c = t ? Wn(s) : String(s).trim();
747
- c !== s && delete n[s], n[c] = Z(o), r[c] = !0;
751
+ c !== s && delete n[s], n[c] = X(o), r[c] = !0;
748
752
  }), this;
749
753
  }
750
754
  concat(...t) {
@@ -774,16 +778,16 @@ class A {
774
778
  return n.forEach((o) => r.set(o)), r;
775
779
  }
776
780
  static accessor(t) {
777
- const r = (this[ve] = this[ve] = {
781
+ const r = (this[De] = this[De] = {
778
782
  accessors: {}
779
783
  }).accessors, o = this.prototype;
780
784
  function s(i) {
781
- const c = q(i);
785
+ const c = j(i);
782
786
  r[c] || (Kn(o, i), r[c] = !0);
783
787
  }
784
788
  return a.isArray(t) ? t.forEach(s) : s(t), this;
785
789
  }
786
- }
790
+ };
787
791
  A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
788
792
  a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
789
793
  let n = t[0].toUpperCase() + t.slice(1);
@@ -795,23 +799,23 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
795
799
  };
796
800
  });
797
801
  a.freezeMethods(A);
798
- function ue(e, t) {
802
+ function fe(e, t) {
799
803
  const n = this || W, r = t || n, o = A.from(r.headers);
800
804
  let s = r.data;
801
805
  return a.forEach(e, function(c) {
802
806
  s = c.call(n, s, o.normalize(), t ? t.status : void 0);
803
807
  }), o.normalize(), s;
804
808
  }
805
- function yt(e) {
809
+ function mt(e) {
806
810
  return !!(e && e.__CANCEL__);
807
811
  }
808
- function j(e, t, n) {
812
+ function I(e, t, n) {
809
813
  y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
810
814
  }
811
- a.inherits(j, y, {
815
+ a.inherits(I, y, {
812
816
  __CANCEL__: !0
813
817
  });
814
- function wt(e, t, n) {
818
+ function yt(e, t, n) {
815
819
  const r = n.config.validateStatus;
816
820
  !n.status || !r || r(n.status) ? e(n) : t(new y(
817
821
  "Request failed with status code " + n.status,
@@ -830,25 +834,25 @@ function Gn(e, t) {
830
834
  const n = new Array(e), r = new Array(e);
831
835
  let o = 0, s = 0, i;
832
836
  return t = t !== void 0 ? t : 1e3, function(f) {
833
- const l = Date.now(), u = r[s];
834
- i || (i = l), n[o] = f, r[o] = l;
837
+ const u = Date.now(), l = r[s];
838
+ i || (i = u), n[o] = f, r[o] = u;
835
839
  let d = s, w = 0;
836
840
  for (; d !== o; )
837
841
  w += n[d++], d = d % e;
838
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
842
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
839
843
  return;
840
- const g = u && l - u;
844
+ const g = l && u - l;
841
845
  return g ? Math.round(w * 1e3 / g) : void 0;
842
846
  };
843
847
  }
844
848
  function Xn(e, t) {
845
849
  let n = 0, r = 1e3 / t, o, s;
846
- const i = (l, u = Date.now()) => {
847
- n = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, l);
850
+ const i = (u, l = Date.now()) => {
851
+ n = l, o = null, s && (clearTimeout(s), s = null), e.apply(null, u);
848
852
  };
849
- return [(...l) => {
850
- const u = Date.now(), d = u - n;
851
- d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
853
+ return [(...u) => {
854
+ const l = Date.now(), d = l - n;
855
+ d >= r ? i(u, l) : (o = u, s || (s = setTimeout(() => {
852
856
  s = null, i(o);
853
857
  }, r - d)));
854
858
  }, () => o && i(o)];
@@ -857,15 +861,15 @@ const ee = (e, t, n = 3) => {
857
861
  let r = 0;
858
862
  const o = Gn(50, 250);
859
863
  return Xn((s) => {
860
- const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
864
+ const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, u = o(f), l = i <= c;
861
865
  r = i;
862
866
  const d = {
863
867
  loaded: i,
864
868
  total: c,
865
869
  progress: c ? i / c : void 0,
866
870
  bytes: f,
867
- rate: l || void 0,
868
- estimated: l && c && u ? (c - i) / l : void 0,
871
+ rate: u || void 0,
872
+ estimated: u && c && l ? (c - i) / u : void 0,
869
873
  event: s,
870
874
  lengthComputable: c != null,
871
875
  [t ? "download" : "upload"]: !0
@@ -879,38 +883,10 @@ const ee = (e, t, n = 3) => {
879
883
  total: e,
880
884
  loaded: r
881
885
  }), t[1]];
882
- }, Be = (e) => (...t) => a.asap(() => e(...t)), Zn = O.hasStandardBrowserEnv ? (
883
- // Standard browser envs have full support of the APIs needed to test
884
- // whether the request URL is of the same origin as current location.
885
- function() {
886
- const t = O.navigator && /(msie|trident)/i.test(O.navigator.userAgent), n = document.createElement("a");
887
- let r;
888
- function o(s) {
889
- let i = s;
890
- return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
891
- href: n.href,
892
- protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
893
- host: n.host,
894
- search: n.search ? n.search.replace(/^\?/, "") : "",
895
- hash: n.hash ? n.hash.replace(/^#/, "") : "",
896
- hostname: n.hostname,
897
- port: n.port,
898
- pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
899
- };
900
- }
901
- return r = o(window.location.href), function(i) {
902
- const c = a.isString(i) ? o(i) : i;
903
- return c.protocol === r.protocol && c.host === r.host;
904
- };
905
- }()
906
- ) : (
907
- // Non standard browser envs (web workers, react-native) lack needed support.
908
- /* @__PURE__ */ function() {
909
- return function() {
910
- return !0;
911
- };
912
- }()
913
- ), Yn = O.hasStandardBrowserEnv ? (
886
+ }, ve = (e) => (...t) => a.asap(() => e(...t)), Zn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
887
+ new URL(T.origin),
888
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
889
+ ) : () => !0, Yn = T.hasStandardBrowserEnv ? (
914
890
  // Standard browser envs support document.cookie
915
891
  {
916
892
  write(e, t, n, r, o, s) {
@@ -943,37 +919,37 @@ function er(e) {
943
919
  function tr(e, t) {
944
920
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
945
921
  }
946
- function gt(e, t) {
922
+ function wt(e, t) {
947
923
  return e && !er(t) ? tr(e, t) : t;
948
924
  }
949
- const Ie = (e) => e instanceof A ? { ...e } : e;
925
+ const Be = (e) => e instanceof A ? { ...e } : e;
950
926
  function D(e, t) {
951
927
  t = t || {};
952
928
  const n = {};
953
- function r(l, u, d) {
954
- return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
929
+ function r(u, l, d, w) {
930
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
955
931
  }
956
- function o(l, u, d) {
957
- if (a.isUndefined(u)) {
958
- if (!a.isUndefined(l))
959
- return r(void 0, l, d);
960
- } else return r(l, u, d);
932
+ function o(u, l, d, w) {
933
+ if (a.isUndefined(l)) {
934
+ if (!a.isUndefined(u))
935
+ return r(void 0, u, d, w);
936
+ } else return r(u, l, d, w);
961
937
  }
962
- function s(l, u) {
963
- if (!a.isUndefined(u))
964
- return r(void 0, u);
938
+ function s(u, l) {
939
+ if (!a.isUndefined(l))
940
+ return r(void 0, l);
965
941
  }
966
- function i(l, u) {
967
- if (a.isUndefined(u)) {
968
- if (!a.isUndefined(l))
969
- return r(void 0, l);
970
- } else return r(void 0, u);
942
+ function i(u, l) {
943
+ if (a.isUndefined(l)) {
944
+ if (!a.isUndefined(u))
945
+ return r(void 0, u);
946
+ } else return r(void 0, l);
971
947
  }
972
- function c(l, u, d) {
948
+ function c(u, l, d) {
973
949
  if (d in t)
974
- return r(l, u);
950
+ return r(u, l);
975
951
  if (d in e)
976
- return r(void 0, l);
952
+ return r(void 0, u);
977
953
  }
978
954
  const f = {
979
955
  url: s,
@@ -1004,42 +980,42 @@ function D(e, t) {
1004
980
  socketPath: i,
1005
981
  responseEncoding: i,
1006
982
  validateStatus: c,
1007
- headers: (l, u) => o(Ie(l), Ie(u), !0)
983
+ headers: (u, l, d) => o(Be(u), Be(l), d, !0)
1008
984
  };
1009
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
1010
- const d = f[u] || o, w = d(e[u], t[u], u);
1011
- a.isUndefined(w) && d !== c || (n[u] = w);
985
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
986
+ const d = f[l] || o, w = d(e[l], t[l], l);
987
+ a.isUndefined(w) && d !== c || (n[l] = w);
1012
988
  }), n;
1013
989
  }
1014
- const bt = (e) => {
990
+ const gt = (e) => {
1015
991
  const t = D({}, e);
1016
992
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
1017
- t.headers = i = A.from(i), t.url = pt(gt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
993
+ t.headers = i = A.from(i), t.url = dt(wt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
1018
994
  "Authorization",
1019
995
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1020
996
  );
1021
997
  let f;
1022
998
  if (a.isFormData(n)) {
1023
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
999
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1024
1000
  i.setContentType(void 0);
1025
1001
  else if ((f = i.getContentType()) !== !1) {
1026
- const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1027
- i.setContentType([l || "multipart/form-data", ...u].join("; "));
1002
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1003
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1028
1004
  }
1029
1005
  }
1030
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
1031
- const l = o && s && Yn.read(s);
1032
- l && i.set(o, l);
1006
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
1007
+ const u = o && s && Yn.read(s);
1008
+ u && i.set(o, u);
1033
1009
  }
1034
1010
  return t;
1035
1011
  }, nr = typeof XMLHttpRequest < "u", rr = nr && function(e) {
1036
1012
  return new Promise(function(n, r) {
1037
- const o = bt(e);
1013
+ const o = gt(e);
1038
1014
  let s = o.data;
1039
1015
  const i = A.from(o.headers).normalize();
1040
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
1016
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = o, l, d, w, g, p;
1041
1017
  function m() {
1042
- g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1018
+ g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1043
1019
  }
1044
1020
  let h = new XMLHttpRequest();
1045
1021
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
@@ -1048,7 +1024,7 @@ const bt = (e) => {
1048
1024
  return;
1049
1025
  const R = A.from(
1050
1026
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1051
- ), T = {
1027
+ ), O = {
1052
1028
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1053
1029
  status: h.status,
1054
1030
  statusText: h.statusText,
@@ -1056,11 +1032,11 @@ const bt = (e) => {
1056
1032
  config: e,
1057
1033
  request: h
1058
1034
  };
1059
- wt(function(N) {
1035
+ yt(function(N) {
1060
1036
  n(N), m();
1061
1037
  }, function(N) {
1062
1038
  r(N), m();
1063
- }, T), h = null;
1039
+ }, O), h = null;
1064
1040
  }
1065
1041
  "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
1066
1042
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
@@ -1069,21 +1045,21 @@ const bt = (e) => {
1069
1045
  }, h.onerror = function() {
1070
1046
  r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
1071
1047
  }, h.ontimeout = function() {
1072
- let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1073
- const T = o.transitional || ht;
1074
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new y(
1075
- C,
1076
- T.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1048
+ let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1049
+ const O = o.transitional || pt;
1050
+ o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new y(
1051
+ k,
1052
+ O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1077
1053
  e,
1078
1054
  h
1079
1055
  )), h = null;
1080
- }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, T) {
1081
- h.setRequestHeader(T, C);
1082
- }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), l && ([w, p] = ee(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (R) => {
1083
- h && (r(!R || R.type ? new j(null, e, h) : R), h.abort(), h = null);
1084
- }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1056
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(k, O) {
1057
+ h.setRequestHeader(O, k);
1058
+ }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (l = (R) => {
1059
+ h && (r(!R || R.type ? new I(null, e, h) : R), h.abort(), h = null);
1060
+ }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1085
1061
  const S = Qn(o.url);
1086
- if (S && O.protocols.indexOf(S) === -1) {
1062
+ if (S && T.protocols.indexOf(S) === -1) {
1087
1063
  r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
1088
1064
  return;
1089
1065
  }
@@ -1093,22 +1069,22 @@ const bt = (e) => {
1093
1069
  const { length: n } = e = e ? e.filter(Boolean) : [];
1094
1070
  if (t || n) {
1095
1071
  let r = new AbortController(), o;
1096
- const s = function(l) {
1072
+ const s = function(u) {
1097
1073
  if (!o) {
1098
1074
  o = !0, c();
1099
- const u = l instanceof Error ? l : this.reason;
1100
- r.abort(u instanceof y ? u : new j(u instanceof Error ? u.message : u));
1075
+ const l = u instanceof Error ? u : this.reason;
1076
+ r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
1101
1077
  }
1102
1078
  };
1103
1079
  let i = t && setTimeout(() => {
1104
1080
  i = null, s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1105
1081
  }, t);
1106
1082
  const c = () => {
1107
- e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1108
- l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
1083
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1084
+ u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1109
1085
  }), e = null);
1110
1086
  };
1111
- e.forEach((l) => l.addEventListener("abort", s));
1087
+ e.forEach((u) => u.addEventListener("abort", s));
1112
1088
  const { signal: f } = r;
1113
1089
  return f.unsubscribe = () => a.asap(c), f;
1114
1090
  }
@@ -1140,7 +1116,7 @@ const bt = (e) => {
1140
1116
  } finally {
1141
1117
  await t.cancel();
1142
1118
  }
1143
- }, je = (e, t, n, r) => {
1119
+ }, Ie = (e, t, n, r) => {
1144
1120
  const o = ir(e, t);
1145
1121
  let s = 0, i, c = (f) => {
1146
1122
  i || (i = !0, r && r(f));
@@ -1148,19 +1124,19 @@ const bt = (e) => {
1148
1124
  return new ReadableStream({
1149
1125
  async pull(f) {
1150
1126
  try {
1151
- const { done: l, value: u } = await o.next();
1152
- if (l) {
1127
+ const { done: u, value: l } = await o.next();
1128
+ if (u) {
1153
1129
  c(), f.close();
1154
1130
  return;
1155
1131
  }
1156
- let d = u.byteLength;
1132
+ let d = l.byteLength;
1157
1133
  if (n) {
1158
1134
  let w = s += d;
1159
1135
  n(w);
1160
1136
  }
1161
- f.enqueue(new Uint8Array(u));
1162
- } catch (l) {
1163
- throw c(l), l;
1137
+ f.enqueue(new Uint8Array(l));
1138
+ } catch (u) {
1139
+ throw c(u), u;
1164
1140
  }
1165
1141
  },
1166
1142
  cancel(f) {
@@ -1169,15 +1145,15 @@ const bt = (e) => {
1169
1145
  }, {
1170
1146
  highWaterMark: 2
1171
1147
  });
1172
- }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Et = ie && typeof ReadableStream == "function", cr = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), St = (e, ...t) => {
1148
+ }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bt = ie && typeof ReadableStream == "function", cr = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...t) => {
1173
1149
  try {
1174
1150
  return !!e(...t);
1175
1151
  } catch {
1176
1152
  return !1;
1177
1153
  }
1178
- }, ur = Et && St(() => {
1154
+ }, ur = bt && Et(() => {
1179
1155
  let e = !1;
1180
- const t = new Request(O.origin, {
1156
+ const t = new Request(T.origin, {
1181
1157
  body: new ReadableStream(),
1182
1158
  method: "POST",
1183
1159
  get duplex() {
@@ -1185,8 +1161,8 @@ const bt = (e) => {
1185
1161
  }
1186
1162
  }).headers.has("Content-Type");
1187
1163
  return e && !t;
1188
- }), qe = 64 * 1024, he = Et && St(() => a.isReadableStream(new Response("").body)), te = {
1189
- stream: he && ((e) => e.body)
1164
+ }), je = 64 * 1024, ye = bt && Et(() => a.isReadableStream(new Response("").body)), te = {
1165
+ stream: ye && ((e) => e.body)
1190
1166
  };
1191
1167
  ie && ((e) => {
1192
1168
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
@@ -1201,7 +1177,7 @@ const lr = async (e) => {
1201
1177
  if (a.isBlob(e))
1202
1178
  return e.size;
1203
1179
  if (a.isSpecCompliantForm(e))
1204
- return (await new Request(O.origin, {
1180
+ return (await new Request(T.origin, {
1205
1181
  method: "POST",
1206
1182
  body: e
1207
1183
  }).arrayBuffer()).byteLength;
@@ -1222,30 +1198,30 @@ const lr = async (e) => {
1222
1198
  timeout: i,
1223
1199
  onDownloadProgress: c,
1224
1200
  onUploadProgress: f,
1225
- responseType: l,
1226
- headers: u,
1201
+ responseType: u,
1202
+ headers: l,
1227
1203
  withCredentials: d = "same-origin",
1228
1204
  fetchOptions: w
1229
- } = bt(e);
1230
- l = l ? (l + "").toLowerCase() : "text";
1205
+ } = gt(e);
1206
+ u = u ? (u + "").toLowerCase() : "text";
1231
1207
  let g = or([o, s && s.toAbortSignal()], i), p;
1232
1208
  const m = g && g.unsubscribe && (() => {
1233
1209
  g.unsubscribe();
1234
1210
  });
1235
1211
  let h;
1236
1212
  try {
1237
- if (f && ur && n !== "get" && n !== "head" && (h = await fr(u, r)) !== 0) {
1238
- let T = new Request(t, {
1213
+ if (f && ur && n !== "get" && n !== "head" && (h = await fr(l, r)) !== 0) {
1214
+ let O = new Request(t, {
1239
1215
  method: "POST",
1240
1216
  body: r,
1241
1217
  duplex: "half"
1242
- }), k;
1243
- if (a.isFormData(r) && (k = T.headers.get("content-type")) && u.setContentType(k), T.body) {
1218
+ }), P;
1219
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1244
1220
  const [N, K] = Fe(
1245
1221
  h,
1246
- ee(Be(f))
1222
+ ee(ve(f))
1247
1223
  );
1248
- r = je(T.body, qe, N, K);
1224
+ r = Ie(O.body, je, N, K);
1249
1225
  }
1250
1226
  }
1251
1227
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1254,34 +1230,34 @@ const lr = async (e) => {
1254
1230
  ...w,
1255
1231
  signal: g,
1256
1232
  method: n.toUpperCase(),
1257
- headers: u.normalize().toJSON(),
1233
+ headers: l.normalize().toJSON(),
1258
1234
  body: r,
1259
1235
  duplex: "half",
1260
1236
  credentials: E ? d : void 0
1261
1237
  });
1262
1238
  let S = await fetch(p);
1263
- const R = he && (l === "stream" || l === "response");
1264
- if (he && (c || R && m)) {
1265
- const T = {};
1266
- ["status", "statusText", "headers"].forEach((ke) => {
1267
- T[ke] = S[ke];
1239
+ const R = ye && (u === "stream" || u === "response");
1240
+ if (ye && (c || R && m)) {
1241
+ const O = {};
1242
+ ["status", "statusText", "headers"].forEach((Ce) => {
1243
+ O[Ce] = S[Ce];
1268
1244
  });
1269
- const k = a.toFiniteNumber(S.headers.get("content-length")), [N, K] = c && Fe(
1270
- k,
1271
- ee(Be(c), !0)
1245
+ const P = a.toFiniteNumber(S.headers.get("content-length")), [N, K] = c && Fe(
1246
+ P,
1247
+ ee(ve(c), !0)
1272
1248
  ) || [];
1273
1249
  S = new Response(
1274
- je(S.body, qe, N, () => {
1250
+ Ie(S.body, je, N, () => {
1275
1251
  K && K(), m && m();
1276
1252
  }),
1277
- T
1253
+ O
1278
1254
  );
1279
1255
  }
1280
- l = l || "text";
1281
- let C = await te[a.findKey(te, l) || "text"](S, e);
1282
- return !R && m && m(), await new Promise((T, k) => {
1283
- wt(T, k, {
1284
- data: C,
1256
+ u = u || "text";
1257
+ let k = await te[a.findKey(te, u) || "text"](S, e);
1258
+ return !R && m && m(), await new Promise((O, P) => {
1259
+ yt(O, P, {
1260
+ data: k,
1285
1261
  headers: A.from(S.headers),
1286
1262
  status: S.status,
1287
1263
  statusText: S.statusText,
@@ -1297,12 +1273,12 @@ const lr = async (e) => {
1297
1273
  }
1298
1274
  ) : y.from(E, E && E.code, e, p);
1299
1275
  }
1300
- }), me = {
1276
+ }), we = {
1301
1277
  http: xn,
1302
1278
  xhr: rr,
1303
1279
  fetch: dr
1304
1280
  };
1305
- a.forEach(me, (e, t) => {
1281
+ a.forEach(we, (e, t) => {
1306
1282
  if (e) {
1307
1283
  try {
1308
1284
  Object.defineProperty(e, "name", { value: t });
@@ -1311,7 +1287,7 @@ a.forEach(me, (e, t) => {
1311
1287
  Object.defineProperty(e, "adapterName", { value: t });
1312
1288
  }
1313
1289
  });
1314
- const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, Rt = {
1290
+ const qe = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, St = {
1315
1291
  getAdapter: (e) => {
1316
1292
  e = a.isArray(e) ? e : [e];
1317
1293
  const { length: t } = e;
@@ -1320,7 +1296,7 @@ const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1320
1296
  for (let s = 0; s < t; s++) {
1321
1297
  n = e[s];
1322
1298
  let i;
1323
- if (r = n, !pr(n) && (r = me[(i = String(n)).toLowerCase()], r === void 0))
1299
+ if (r = n, !pr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
1324
1300
  throw new y(`Unknown adapter '${i}'`);
1325
1301
  if (r)
1326
1302
  break;
@@ -1331,8 +1307,8 @@ const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1331
1307
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1332
1308
  );
1333
1309
  let i = t ? s.length > 1 ? `since :
1334
- ` + s.map(Me).join(`
1335
- `) : " " + Me(s[0]) : "as no adapter specified";
1310
+ ` + s.map(qe).join(`
1311
+ `) : " " + qe(s[0]) : "as no adapter specified";
1336
1312
  throw new y(
1337
1313
  "There is no suitable adapter to dispatch the request " + i,
1338
1314
  "ERR_NOT_SUPPORT"
@@ -1340,40 +1316,40 @@ const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1340
1316
  }
1341
1317
  return r;
1342
1318
  },
1343
- adapters: me
1319
+ adapters: we
1344
1320
  };
1345
- function le(e) {
1321
+ function de(e) {
1346
1322
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1347
- throw new j(null, e);
1323
+ throw new I(null, e);
1348
1324
  }
1349
1325
  function He(e) {
1350
- return le(e), e.headers = A.from(e.headers), e.data = ue.call(
1326
+ return de(e), e.headers = A.from(e.headers), e.data = fe.call(
1351
1327
  e,
1352
1328
  e.transformRequest
1353
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rt.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1354
- return le(e), r.data = ue.call(
1329
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), St.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1330
+ return de(e), r.data = fe.call(
1355
1331
  e,
1356
1332
  e.transformResponse,
1357
1333
  r
1358
1334
  ), r.headers = A.from(r.headers), r;
1359
1335
  }, function(r) {
1360
- return yt(r) || (le(e), r && r.response && (r.response.data = ue.call(
1336
+ return mt(r) || (de(e), r && r.response && (r.response.data = fe.call(
1361
1337
  e,
1362
1338
  e.transformResponse,
1363
1339
  r.response
1364
1340
  ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1365
1341
  });
1366
1342
  }
1367
- const Tt = "1.7.7", _e = {};
1343
+ const Rt = "1.7.9", ae = {};
1368
1344
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1369
- _e[e] = function(r) {
1345
+ ae[e] = function(r) {
1370
1346
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1371
1347
  };
1372
1348
  });
1373
- const ze = {};
1374
- _e.transitional = function(t, n, r) {
1349
+ const Me = {};
1350
+ ae.transitional = function(t, n, r) {
1375
1351
  function o(s, i) {
1376
- return "[Axios v" + Tt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1352
+ return "[Axios v" + Rt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1377
1353
  }
1378
1354
  return (s, i, c) => {
1379
1355
  if (t === !1)
@@ -1381,9 +1357,12 @@ _e.transitional = function(t, n, r) {
1381
1357
  o(i, " has been removed" + (n ? " in " + n : "")),
1382
1358
  y.ERR_DEPRECATED
1383
1359
  );
1384
- return n && !ze[i] && (ze[i] = !0), t ? t(s, i, c) : !0;
1360
+ return n && !Me[i] && (Me[i] = !0), t ? t(s, i, c) : !0;
1385
1361
  };
1386
1362
  };
1363
+ ae.spelling = function(t) {
1364
+ return (n, r) => !0;
1365
+ };
1387
1366
  function hr(e, t, n) {
1388
1367
  if (typeof e != "object")
1389
1368
  throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
@@ -1401,15 +1380,15 @@ function hr(e, t, n) {
1401
1380
  throw new y("Unknown option " + s, y.ERR_BAD_OPTION);
1402
1381
  }
1403
1382
  }
1404
- const ye = {
1383
+ const Z = {
1405
1384
  assertOptions: hr,
1406
- validators: _e
1407
- }, P = ye.validators;
1408
- class L {
1385
+ validators: ae
1386
+ }, C = Z.validators;
1387
+ let L = class {
1409
1388
  constructor(t) {
1410
1389
  this.defaults = t, this.interceptors = {
1411
- request: new De(),
1412
- response: new De()
1390
+ request: new Le(),
1391
+ response: new Le()
1413
1392
  };
1414
1393
  }
1415
1394
  /**
@@ -1425,8 +1404,8 @@ class L {
1425
1404
  return await this._request(t, n);
1426
1405
  } catch (r) {
1427
1406
  if (r instanceof Error) {
1428
- let o;
1429
- Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1407
+ let o = {};
1408
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1430
1409
  const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1431
1410
  try {
1432
1411
  r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
@@ -1440,16 +1419,19 @@ class L {
1440
1419
  _request(t, n) {
1441
1420
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n);
1442
1421
  const { transitional: r, paramsSerializer: o, headers: s } = n;
1443
- r !== void 0 && ye.assertOptions(r, {
1444
- silentJSONParsing: P.transitional(P.boolean),
1445
- forcedJSONParsing: P.transitional(P.boolean),
1446
- clarifyTimeoutError: P.transitional(P.boolean)
1422
+ r !== void 0 && Z.assertOptions(r, {
1423
+ silentJSONParsing: C.transitional(C.boolean),
1424
+ forcedJSONParsing: C.transitional(C.boolean),
1425
+ clarifyTimeoutError: C.transitional(C.boolean)
1447
1426
  }, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
1448
1427
  serialize: o
1449
- } : ye.assertOptions(o, {
1450
- encode: P.function,
1451
- serialize: P.function
1452
- }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1428
+ } : Z.assertOptions(o, {
1429
+ encode: C.function,
1430
+ serialize: C.function
1431
+ }, !0)), Z.assertOptions(n, {
1432
+ baseUrl: C.spelling("baseURL"),
1433
+ withXsrfToken: C.spelling("withXSRFToken")
1434
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1453
1435
  let i = s && a.merge(
1454
1436
  s.common,
1455
1437
  s[n.method]
@@ -1465,16 +1447,16 @@ class L {
1465
1447
  this.interceptors.request.forEach(function(m) {
1466
1448
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1467
1449
  });
1468
- const l = [];
1450
+ const u = [];
1469
1451
  this.interceptors.response.forEach(function(m) {
1470
- l.push(m.fulfilled, m.rejected);
1452
+ u.push(m.fulfilled, m.rejected);
1471
1453
  });
1472
- let u, d = 0, w;
1454
+ let l, d = 0, w;
1473
1455
  if (!f) {
1474
1456
  const p = [He.bind(this), void 0];
1475
- for (p.unshift.apply(p, c), p.push.apply(p, l), w = p.length, u = Promise.resolve(n); d < w; )
1476
- u = u.then(p[d++], p[d++]);
1477
- return u;
1457
+ for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
1458
+ l = l.then(p[d++], p[d++]);
1459
+ return l;
1478
1460
  }
1479
1461
  w = c.length;
1480
1462
  let g = n;
@@ -1488,20 +1470,20 @@ class L {
1488
1470
  }
1489
1471
  }
1490
1472
  try {
1491
- u = He.call(this, g);
1473
+ l = He.call(this, g);
1492
1474
  } catch (p) {
1493
1475
  return Promise.reject(p);
1494
1476
  }
1495
- for (d = 0, w = l.length; d < w; )
1496
- u = u.then(l[d++], l[d++]);
1497
- return u;
1477
+ for (d = 0, w = u.length; d < w; )
1478
+ l = l.then(u[d++], u[d++]);
1479
+ return l;
1498
1480
  }
1499
1481
  getUri(t) {
1500
1482
  t = D(this.defaults, t);
1501
- const n = gt(t.baseURL, t.url);
1502
- return pt(n, t.params, t.paramsSerializer);
1483
+ const n = wt(t.baseURL, t.url);
1484
+ return dt(n, t.params, t.paramsSerializer);
1503
1485
  }
1504
- }
1486
+ };
1505
1487
  a.forEach(["delete", "get", "head", "options"], function(t) {
1506
1488
  L.prototype[t] = function(n, r) {
1507
1489
  return this.request(D(r || {}, {
@@ -1526,7 +1508,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1526
1508
  }
1527
1509
  L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1528
1510
  });
1529
- class xe {
1511
+ let mr = class Tt {
1530
1512
  constructor(t) {
1531
1513
  if (typeof t != "function")
1532
1514
  throw new TypeError("executor must be a function.");
@@ -1550,7 +1532,7 @@ class xe {
1550
1532
  r.unsubscribe(s);
1551
1533
  }, i;
1552
1534
  }, t(function(s, i, c) {
1553
- r.reason || (r.reason = new j(s, i, c), n(r.reason));
1535
+ r.reason || (r.reason = new I(s, i, c), n(r.reason));
1554
1536
  });
1555
1537
  }
1556
1538
  /**
@@ -1592,22 +1574,22 @@ class xe {
1592
1574
  static source() {
1593
1575
  let t;
1594
1576
  return {
1595
- token: new xe(function(o) {
1577
+ token: new Tt(function(o) {
1596
1578
  t = o;
1597
1579
  }),
1598
1580
  cancel: t
1599
1581
  };
1600
1582
  }
1601
- }
1602
- function mr(e) {
1583
+ };
1584
+ function yr(e) {
1603
1585
  return function(n) {
1604
1586
  return e.apply(null, n);
1605
1587
  };
1606
1588
  }
1607
- function yr(e) {
1589
+ function wr(e) {
1608
1590
  return a.isObject(e) && e.isAxiosError === !0;
1609
1591
  }
1610
- const we = {
1592
+ const ge = {
1611
1593
  Continue: 100,
1612
1594
  SwitchingProtocols: 101,
1613
1595
  Processing: 102,
@@ -1672,37 +1654,55 @@ const we = {
1672
1654
  NotExtended: 510,
1673
1655
  NetworkAuthenticationRequired: 511
1674
1656
  };
1675
- Object.entries(we).forEach(([e, t]) => {
1676
- we[t] = e;
1657
+ Object.entries(ge).forEach(([e, t]) => {
1658
+ ge[t] = e;
1677
1659
  });
1678
1660
  function Ot(e) {
1679
- const t = new L(e), n = tt(L.prototype.request, t);
1661
+ const t = new L(e), n = et(L.prototype.request, t);
1680
1662
  return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1681
1663
  return Ot(D(e, o));
1682
1664
  }, n;
1683
1665
  }
1684
1666
  const b = Ot(W);
1685
1667
  b.Axios = L;
1686
- b.CanceledError = j;
1687
- b.CancelToken = xe;
1688
- b.isCancel = yt;
1689
- b.VERSION = Tt;
1668
+ b.CanceledError = I;
1669
+ b.CancelToken = mr;
1670
+ b.isCancel = mt;
1671
+ b.VERSION = Rt;
1690
1672
  b.toFormData = se;
1691
1673
  b.AxiosError = y;
1692
1674
  b.Cancel = b.CanceledError;
1693
1675
  b.all = function(t) {
1694
1676
  return Promise.all(t);
1695
1677
  };
1696
- b.spread = mr;
1697
- b.isAxiosError = yr;
1678
+ b.spread = yr;
1679
+ b.isAxiosError = wr;
1698
1680
  b.mergeConfig = D;
1699
1681
  b.AxiosHeaders = A;
1700
- b.formToJSON = (e) => mt(a.isHTMLForm(e) ? new FormData(e) : e);
1701
- b.getAdapter = Rt.getAdapter;
1702
- b.HttpStatusCode = we;
1682
+ b.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
1683
+ b.getAdapter = St.getAdapter;
1684
+ b.HttpStatusCode = ge;
1703
1685
  b.default = b;
1686
+ const {
1687
+ Axios: Qr,
1688
+ AxiosError: Gr,
1689
+ CanceledError: Xr,
1690
+ isCancel: Zr,
1691
+ CancelToken: Yr,
1692
+ VERSION: eo,
1693
+ all: to,
1694
+ Cancel: no,
1695
+ isAxiosError: ro,
1696
+ spread: oo,
1697
+ toFormData: so,
1698
+ AxiosHeaders: io,
1699
+ HttpStatusCode: ao,
1700
+ formToJSON: co,
1701
+ getAdapter: uo,
1702
+ mergeConfig: lo
1703
+ } = b;
1704
1704
  /*! js-cookie v3.0.5 | MIT */
1705
- function G(e) {
1705
+ function Q(e) {
1706
1706
  for (var t = 1; t < arguments.length; t++) {
1707
1707
  var n = arguments[t];
1708
1708
  for (var r in n)
@@ -1710,7 +1710,7 @@ function G(e) {
1710
1710
  }
1711
1711
  return e;
1712
1712
  }
1713
- var wr = {
1713
+ var gr = {
1714
1714
  read: function(e) {
1715
1715
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1716
1716
  },
@@ -1721,10 +1721,10 @@ var wr = {
1721
1721
  );
1722
1722
  }
1723
1723
  };
1724
- function ge(e, t) {
1724
+ function be(e, t) {
1725
1725
  function n(o, s, i) {
1726
1726
  if (!(typeof document > "u")) {
1727
- i = G({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1727
+ i = Q({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1728
1728
  var c = "";
1729
1729
  for (var f in i)
1730
1730
  i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
@@ -1734,10 +1734,10 @@ function ge(e, t) {
1734
1734
  function r(o) {
1735
1735
  if (!(typeof document > "u" || arguments.length && !o)) {
1736
1736
  for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
1737
- var f = s[c].split("="), l = f.slice(1).join("=");
1737
+ var f = s[c].split("="), u = f.slice(1).join("=");
1738
1738
  try {
1739
- var u = decodeURIComponent(f[0]);
1740
- if (i[u] = e.read(l, u), o === u)
1739
+ var l = decodeURIComponent(f[0]);
1740
+ if (i[l] = e.read(u, l), o === l)
1741
1741
  break;
1742
1742
  } catch {
1743
1743
  }
@@ -1753,16 +1753,16 @@ function ge(e, t) {
1753
1753
  n(
1754
1754
  o,
1755
1755
  "",
1756
- G({}, s, {
1756
+ Q({}, s, {
1757
1757
  expires: -1
1758
1758
  })
1759
1759
  );
1760
1760
  },
1761
1761
  withAttributes: function(o) {
1762
- return ge(this.converter, G({}, this.attributes, o));
1762
+ return be(this.converter, Q({}, this.attributes, o));
1763
1763
  },
1764
1764
  withConverter: function(o) {
1765
- return ge(G({}, this.converter, o), this.attributes);
1765
+ return be(Q({}, this.converter, o), this.attributes);
1766
1766
  }
1767
1767
  },
1768
1768
  {
@@ -1771,14 +1771,14 @@ function ge(e, t) {
1771
1771
  }
1772
1772
  );
1773
1773
  }
1774
- var gr = ge(wr, { path: "/" }), $e;
1775
- const At = typeof window < "u", br = (e) => typeof e == "string", Je = () => +Date.now(), be = () => {
1774
+ var br = be(gr, { path: "/" }), $e;
1775
+ const At = typeof window < "u", Er = (e) => typeof e == "string", ze = () => +Date.now(), Ee = () => {
1776
1776
  };
1777
1777
  At && (($e = window == null ? void 0 : window.navigator) != null && $e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1778
- function Ce(e) {
1778
+ function xe(e) {
1779
1779
  return typeof e == "function" ? e() : Ut(e);
1780
1780
  }
1781
- function Er(e, t) {
1781
+ function Sr(e, t) {
1782
1782
  function n(...r) {
1783
1783
  return new Promise((o, s) => {
1784
1784
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
@@ -1786,84 +1786,84 @@ function Er(e, t) {
1786
1786
  }
1787
1787
  return n;
1788
1788
  }
1789
- function Sr(e, t = !0, n = !0, r = !1) {
1790
- let o = 0, s, i = !0, c = be, f;
1791
- const l = () => {
1792
- s && (clearTimeout(s), s = void 0, c(), c = be);
1789
+ function Rr(e, t = !0, n = !0, r = !1) {
1790
+ let o = 0, s, i = !0, c = Ee, f;
1791
+ const u = () => {
1792
+ s && (clearTimeout(s), s = void 0, c(), c = Ee);
1793
1793
  };
1794
1794
  return (d) => {
1795
- const w = Ce(e), g = Date.now() - o, p = () => f = d();
1796
- return l(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1795
+ const w = xe(e), g = Date.now() - o, p = () => f = d();
1796
+ return u(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1797
1797
  c = r ? h : m, s = setTimeout(() => {
1798
- o = Date.now(), i = !0, m(p()), l();
1798
+ o = Date.now(), i = !0, m(p()), u();
1799
1799
  }, Math.max(0, w - g));
1800
1800
  })), !n && !s && (s = setTimeout(() => i = !0, w)), i = !1, f);
1801
1801
  };
1802
1802
  }
1803
- function Rr(e) {
1803
+ function Tr(e) {
1804
1804
  return e;
1805
1805
  }
1806
- function Tr(e) {
1806
+ function Or(e) {
1807
1807
  return Lt() ? (Dt(e), !0) : !1;
1808
1808
  }
1809
- function Or(e) {
1809
+ function Ar(e) {
1810
1810
  var t;
1811
- const n = Ce(e);
1811
+ const n = xe(e);
1812
1812
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1813
1813
  }
1814
1814
  const _t = At ? window : void 0;
1815
- function Ve(...e) {
1815
+ function Je(...e) {
1816
1816
  let t, n, r, o;
1817
- if (br(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = _t) : [t, n, r, o] = e, !t)
1818
- return be;
1817
+ if (Er(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = _t) : [t, n, r, o] = e, !t)
1818
+ return Ee;
1819
1819
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1820
1820
  const s = [], i = () => {
1821
- s.forEach((u) => u()), s.length = 0;
1822
- }, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Se(() => [Or(t), Ce(o)], ([u, d]) => {
1823
- i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
1824
- }, { immediate: !0, flush: "post" }), l = () => {
1821
+ s.forEach((l) => l()), s.length = 0;
1822
+ }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Re(() => [Ar(t), xe(o)], ([l, d]) => {
1823
+ i(), l && s.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1824
+ }, { immediate: !0, flush: "post" }), u = () => {
1825
1825
  f(), i();
1826
1826
  };
1827
- return Tr(l), l;
1827
+ return Or(u), u;
1828
1828
  }
1829
- const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ke = "__vueuse_ssr_handlers__";
1830
- We[Ke] = We[Ke] || {};
1831
- const Ar = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], _r = 6e4;
1832
- function xr(e = _r, t = {}) {
1829
+ const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
1830
+ Ve[We] = Ve[We] || {};
1831
+ const _r = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], xr = 6e4;
1832
+ function Cr(e = xr, t = {}) {
1833
1833
  const {
1834
1834
  initialState: n = !1,
1835
1835
  listenForVisibilityChange: r = !0,
1836
- events: o = Ar,
1836
+ events: o = _r,
1837
1837
  window: s = _t,
1838
- eventFilter: i = Sr(50)
1839
- } = t, c = Y(n), f = Y(Je());
1840
- let l;
1841
- const u = Er(i, () => {
1842
- c.value = !1, f.value = Je(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
1838
+ eventFilter: i = Rr(50)
1839
+ } = t, c = Y(n), f = Y(ze());
1840
+ let u;
1841
+ const l = Sr(i, () => {
1842
+ c.value = !1, f.value = ze(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1843
1843
  });
1844
1844
  if (s) {
1845
1845
  const d = s.document;
1846
1846
  for (const w of o)
1847
- Ve(s, w, u, { passive: !0 });
1848
- r && Ve(d, "visibilitychange", () => {
1849
- d.hidden || u();
1847
+ Je(s, w, l, { passive: !0 });
1848
+ r && Je(d, "visibilitychange", () => {
1849
+ d.hidden || l();
1850
1850
  });
1851
1851
  }
1852
- return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1852
+ return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1853
1853
  }
1854
- var Qe;
1854
+ var Ke;
1855
1855
  (function(e) {
1856
1856
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1857
- })(Qe || (Qe = {}));
1858
- var Cr = Object.defineProperty, Ge = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? Cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nr = (e, t) => {
1857
+ })(Ke || (Ke = {}));
1858
+ var kr = Object.defineProperty, Qe = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable, Ge = (e, t, n) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ur = (e, t) => {
1859
1859
  for (var n in t || (t = {}))
1860
- kr.call(t, n) && Xe(e, n, t[n]);
1861
- if (Ge)
1862
- for (var n of Ge(t))
1863
- Pr.call(t, n) && Xe(e, n, t[n]);
1860
+ Pr.call(t, n) && Ge(e, n, t[n]);
1861
+ if (Qe)
1862
+ for (var n of Qe(t))
1863
+ Nr.call(t, n) && Ge(e, n, t[n]);
1864
1864
  return e;
1865
1865
  };
1866
- const Ur = {
1866
+ const Lr = {
1867
1867
  easeInSine: [0.12, 0, 0.39, 0],
1868
1868
  easeOutSine: [0.61, 1, 0.88, 1],
1869
1869
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1889,12 +1889,12 @@ const Ur = {
1889
1889
  easeOutBack: [0.34, 1.56, 0.64, 1],
1890
1890
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1891
1891
  };
1892
- Nr({
1893
- linear: Rr
1894
- }, Ur);
1895
- let Ee;
1896
- const xt = { triggerProxySso: "triggerProxySso" }, Lr = () => {
1897
- Ee = (e) => {
1892
+ Ur({
1893
+ linear: Tr
1894
+ }, Lr);
1895
+ let Se;
1896
+ const xt = { triggerProxySso: "triggerProxySso" }, Dr = () => {
1897
+ Se = (e) => {
1898
1898
  var n;
1899
1899
  const { origin: t } = new URL(location.href);
1900
1900
  (n = window.top) == null || n.postMessage(
@@ -1902,13 +1902,13 @@ const xt = { triggerProxySso: "triggerProxySso" }, Lr = () => {
1902
1902
  t
1903
1903
  );
1904
1904
  };
1905
- }, Dr = (e) => {
1905
+ }, Fr = (e) => {
1906
1906
  window.top === window.self && window.addEventListener("message", (t) => {
1907
1907
  const { type: n, data: r } = t.data;
1908
1908
  n === xt.triggerProxySso && (e == null || e(r));
1909
1909
  });
1910
1910
  };
1911
- window.top !== window.self && Lr();
1911
+ window.top !== window.self && Dr();
1912
1912
  let Ct = (e = 21) => {
1913
1913
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1914
1914
  for (; e--; ) {
@@ -1917,31 +1917,31 @@ let Ct = (e = 21) => {
1917
1917
  }
1918
1918
  return t;
1919
1919
  };
1920
- const kt = (e) => new URL(location.href).searchParams.get(e), F = {
1920
+ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1921
1921
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1922
1922
  // 重定向到登录页
1923
1923
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1924
1924
  // 清除登录信息
1925
1925
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1926
1926
  // 通过code获取token
1927
- }, { baseURL: Ze, noRedireLogin: vr = !1 } = Re(), Fr = "/application", $ = location.origin + Fr, v = {
1927
+ }, { baseURL: Xe, noRedireLogin: vr = !1 } = Te(), $ = location.origin + "/home", F = {
1928
1928
  response_type: "code",
1929
1929
  scope: "sever",
1930
1930
  client_id: "sys",
1931
- client_secret: vt("das123"),
1931
+ client_secret: Ft("das123"),
1932
1932
  state: +/* @__PURE__ */ new Date()
1933
1933
  }, Br = () => {
1934
- const e = Ye(location.href, "redirect_url") || "";
1934
+ const e = Ze(location.href, "redirect_url") || "";
1935
1935
  if (e)
1936
1936
  window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1937
1937
  else {
1938
1938
  const t = ["code", "state", "kingdee_token", "redirect_url"];
1939
- window.history.replaceState(null, "", Ft(t)), window.__isAutoCloseApp = !1, window.location.reload();
1939
+ window.history.replaceState({}, "", vt(t));
1940
1940
  }
1941
1941
  }, Pt = Y(!1), Nt = (e) => {
1942
1942
  if (e <= 0) return;
1943
- const { idle: t } = xr(e);
1944
- Se(
1943
+ const { idle: t } = Cr(e);
1944
+ Re(
1945
1945
  () => t.value,
1946
1946
  (n) => {
1947
1947
  n === !0 && (Pt.value = !0);
@@ -1952,54 +1952,54 @@ localStorage.getItem("idelTime") && Nt(Number(localStorage.getItem("idelTime")))
1952
1952
  const Ir = async () => {
1953
1953
  const e = kt("code") || "";
1954
1954
  if (!e) return H();
1955
- const { redirectUri: t } = B().getData(), n = Ye(location.href, "kingdee_token") || "";
1956
- let r = {};
1957
- const o = {
1955
+ const t = Ze(location.href, "kingdee_token") || "";
1956
+ let n = {};
1957
+ const r = {
1958
1958
  grant_type: "authorization_code",
1959
1959
  code: e,
1960
- client_id: v.client_id,
1961
- client_secret: v.client_secret,
1962
- redirect_uri: t || $,
1960
+ client_id: F.client_id,
1961
+ client_secret: F.client_secret,
1962
+ redirect_uri: $,
1963
1963
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
1964
1964
  nonce: Ct()
1965
1965
  };
1966
- n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
1966
+ t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
1967
1967
  try {
1968
- await b.create().get(F.token, { baseURL: Ze });
1968
+ await b.create().get(v.token, { baseURL: Xe });
1969
1969
  } catch {
1970
1970
  }
1971
1971
  try {
1972
- r = await b.create().post(
1973
- F.token,
1972
+ n = await b.create().post(
1973
+ v.token,
1974
1974
  {},
1975
1975
  {
1976
- baseURL: Ze,
1977
- params: o,
1976
+ baseURL: Xe,
1977
+ params: r,
1978
1978
  headers: {
1979
1979
  "Content-Type": "application/x-www-form-urlencoded",
1980
- "csrf-token": gr.get("csrf-token")
1980
+ "csrf-token": br.get("csrf-token")
1981
1981
  }
1982
1982
  }
1983
1983
  );
1984
- const { access_token: s = "", expires_in: i = 0, refresh_token: c = "", refresh_exp: f = 0 } = r.data, l = {
1985
- accessToken: s,
1986
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
1987
- refreshToken: c,
1988
- info: r.data
1984
+ const { access_token: o = "", expires_in: s = 0, refresh_token: i = "", refresh_exp: c = 0 } = n.data, f = {
1985
+ accessToken: o,
1986
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
1987
+ refreshToken: i,
1988
+ info: n.data
1989
1989
  };
1990
- B().save(l), await et(s);
1991
- const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
1992
- return u && u > 0 && (Nt(u), u && localStorage.setItem("idelTime", u.toString())), Br(), s;
1990
+ J().save(f), await Ye(o);
1991
+ const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1992
+ return u && u > 0 && (Nt(u), u && localStorage.setItem("idelTime", u.toString())), Br(), o;
1993
1993
  } catch {
1994
- return J({ ...v, redirect_uri: t || $ });
1994
+ return z({ ...F, redirect_uri: $ });
1995
1995
  }
1996
- }, M = Y(!1), Wr = async (e) => {
1996
+ }, q = Y(!1), fo = async (e) => {
1997
1997
  if (e.public) return "";
1998
- if (Pt.value) return J({ ...v, redirect_uri: $ });
1999
- if (M.value)
1998
+ if (Pt.value) return z({ ...F, redirect_uri: $ });
1999
+ if (q.value)
2000
2000
  return await new Promise(async (o) => {
2001
- Se(
2002
- () => M.value,
2001
+ Re(
2002
+ () => q.value,
2003
2003
  (s) => {
2004
2004
  if (!s) {
2005
2005
  const i = H();
@@ -2008,35 +2008,40 @@ const Ir = async () => {
2008
2008
  }
2009
2009
  );
2010
2010
  });
2011
- const { accessTokenExpiredAt: t } = B().getData(), n = kt("code") || "";
2011
+ const { accessTokenExpiredAt: t } = J().getData(), n = kt("code") || "";
2012
2012
  if ((!H() || t === 0) && !n)
2013
- return J({ ...v, redirect_uri: $ });
2013
+ return z({ ...F, redirect_uri: $ });
2014
2014
  let r = H();
2015
- M.value = !0;
2015
+ q.value = !0;
2016
2016
  try {
2017
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await jr(v)), r = await Ir(), M.value = !1;
2017
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await jr(F)), r = await Ir(), q.value = !1;
2018
2018
  } catch {
2019
- M.value = !1;
2019
+ q.value = !1;
2020
2020
  }
2021
2021
  return r;
2022
- }, J = (e) => {
2022
+ }, z = (e) => {
2023
2023
  if (vr) return;
2024
- const { baseURL: t, ssoLocale: n } = Re();
2025
- if (Ee) return Ee(e);
2024
+ const { baseURL: t, ssoLocale: n } = Te();
2025
+ if (Se) return Se(e);
2026
2026
  e.logout = "true", n && (e.locale = "locale");
2027
- const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${F.oauth}?${r}`;
2028
- localStorage.clear(), sessionStorage.clear(), B().save({ redirectUri: e.redirect_uri }), b.create().get(F.logoutCurpage, { baseURL: t }), window.__isAutoCloseApp = !1, location.replace(o);
2027
+ const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${v.oauth}?${r}`;
2028
+ localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove();
2029
+ try {
2030
+ b.create().get(v.logoutCurpage, { baseURL: t });
2031
+ } catch {
2032
+ }
2033
+ window.__isAutoCloseApp = !1, location.replace(o);
2029
2034
  };
2030
- Dr(J);
2035
+ Fr(z);
2031
2036
  const jr = async (e) => {
2032
- const { baseURL: t } = Re(), { refreshToken: n, redirectUri: r } = B().getData();
2037
+ const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
2033
2038
  try {
2034
- await b.create().get(F.token, { baseURL: t });
2039
+ await b.create().get(v.token, { baseURL: t });
2035
2040
  } catch {
2036
2041
  }
2037
2042
  try {
2038
- const o = await b.create().post(
2039
- F.token,
2043
+ const r = await b.create().post(
2044
+ v.token,
2040
2045
  {},
2041
2046
  {
2042
2047
  baseURL: t,
@@ -2049,43 +2054,41 @@ const jr = async (e) => {
2049
2054
  nonce: Ct()
2050
2055
  }
2051
2056
  }
2052
- ), { access_token: s = "", expires_in: i = 0, refresh_token: c = "" } = o.data, f = {
2053
- accessToken: s,
2054
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
2055
- refreshToken: c,
2056
- info: o.data
2057
+ ), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
2058
+ accessToken: o,
2059
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
2060
+ refreshToken: i,
2061
+ info: r.data
2057
2062
  };
2058
- return B().save(f), await et(s), s;
2063
+ return J().save(c), await Ye(o), o;
2059
2064
  } catch {
2060
- return J({ ...e, redirect_uri: r || $ });
2065
+ return z({ ...e, redirect_uri: $ });
2061
2066
  }
2062
- }, B = () => ({
2067
+ }, J = () => ({
2063
2068
  getData: () => ({
2064
2069
  accessToken: H(),
2065
- accessTokenExpiredAt: Q("accessTokenExpiredAt") ? Number(Q("accessTokenExpiredAt")) : "",
2066
- refreshToken: Q("refreshToken"),
2067
- redirectUri: Q("redirectUri")
2070
+ accessTokenExpiredAt: ce("accessTokenExpiredAt") ? Number(ce("accessTokenExpiredAt")) : "",
2071
+ refreshToken: ce("refreshToken")
2068
2072
  }),
2069
2073
  save: (e) => {
2070
- Bt(
2074
+ It(
2071
2075
  e.accessToken || "",
2072
2076
  {
2073
2077
  accessTokenExpiredAt: e.accessTokenExpiredAt,
2074
- refreshToken: e.refreshToken,
2075
- redirectUri: e.redirectUri
2078
+ refreshToken: e.refreshToken
2076
2079
  }
2077
- ), jt(e);
2080
+ ), qt(e);
2078
2081
  },
2079
2082
  remove: () => {
2080
- It(), qt();
2083
+ Bt(), jt();
2081
2084
  }
2082
2085
  });
2083
2086
  export {
2084
2087
  kt as getQuery,
2085
- Wr as getToken,
2088
+ fo as getToken,
2086
2089
  Ir as getTokenFromCode,
2087
- v as getTokenParams,
2088
- J as login,
2090
+ F as getTokenParams,
2091
+ z as login,
2089
2092
  $ as real_uri,
2090
- B as tokenStorage
2093
+ J as tokenStorage
2091
2094
  };