@das-fed/utils 6.4.0-test.2 → 6.4.0-test.3

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