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

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 +1699 -1375
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +1926 -1602
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +1926 -1602
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +1929 -1605
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +1926 -1602
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +1928 -1604
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +1926 -1602
  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 +1926 -1602
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1690 -1366
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +1940 -1616
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +1927 -1603
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +1926 -1602
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +1926 -1602
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +1926 -1602
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +1935 -1611
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +1926 -1602
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +1926 -1602
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +1940 -1616
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +1928 -1604
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +1926 -1602
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +1926 -1602
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +1926 -1602
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +1923 -1599
  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 +1923 -1599
  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,46 +1,46 @@
1
- import { getConfig as De } from "@das-fed/utils/config";
2
- function de(e, t) {
1
+ import { getConfig as Ze } from "@das-fed/utils/config";
2
+ function Ne(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: Le } = Object.prototype, { getPrototypeOf: Q } = Object, H = /* @__PURE__ */ ((e) => (t) => {
8
- const n = Le.call(t);
7
+ const { toString: Ye } = Object.prototype, { getPrototypeOf: ce } = Object, W = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = Ye.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => H(t) === e), I = (e) => (t) => typeof t === e, { isArray: F } = Array, B = I("undefined");
11
- function ke(e) {
12
- return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
10
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => W(t) === e), $ = (e) => (t) => typeof t === e, { isArray: U } = Array, q = $("undefined");
11
+ function et(e) {
12
+ return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const pe = T("ArrayBuffer");
15
- function je(e) {
14
+ const Pe = C("ArrayBuffer");
15
+ function tt(e) {
16
16
  let t;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pe(e.buffer), t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
18
18
  }
19
- const He = I("string"), R = I("function"), he = I("number"), q = (e) => e !== null && typeof e == "object", Ie = (e) => e === !0 || e === !1, k = (e) => {
20
- if (H(e) !== "object")
19
+ const nt = $("string"), x = $("function"), _e = $("number"), K = (e) => e !== null && typeof e == "object", rt = (e) => e === !0 || e === !1, z = (e) => {
20
+ if (W(e) !== "object")
21
21
  return !1;
22
- const t = Q(e);
22
+ const t = ce(e);
23
23
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
24
- }, qe = T("Date"), Me = T("File"), ze = T("Blob"), Je = T("FileList"), Ve = (e) => q(e) && R(e.pipe), We = (e) => {
24
+ }, st = C("Date"), ot = C("File"), it = C("Blob"), at = C("FileList"), ct = (e) => K(e) && x(e.pipe), ut = (e) => {
25
25
  let t;
26
- return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = H(e)) === "formdata" || // detect form-data instance
27
- t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
28
- }, $e = T("URLSearchParams"), Ke = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
- function U(e, t, { allOwnKeys: n = !1 } = {}) {
26
+ return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = W(e)) === "formdata" || // detect form-data instance
27
+ t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
28
+ }, lt = C("URLSearchParams"), [ft, dt, pt, ht] = ["ReadableStream", "Request", "Response", "Headers"].map(C), mt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
+ function I(e, t, { allOwnKeys: n = !1 } = {}) {
30
30
  if (e === null || typeof e > "u")
31
31
  return;
32
32
  let r, s;
33
- if (typeof e != "object" && (e = [e]), F(e))
33
+ if (typeof e != "object" && (e = [e]), U(e))
34
34
  for (r = 0, s = e.length; r < s; r++)
35
35
  t.call(null, e[r], r, e);
36
36
  else {
37
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
37
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
38
38
  let c;
39
- for (r = 0; r < i; r++)
40
- c = o[r], t.call(null, e[c], c, e);
39
+ for (r = 0; r < o; r++)
40
+ c = i[r], t.call(null, e[c], c, e);
41
41
  }
42
42
  }
43
- function me(e, t) {
43
+ function Fe(e, t) {
44
44
  t = t.toLowerCase();
45
45
  const n = Object.keys(e);
46
46
  let r = n.length, s;
@@ -49,75 +49,75 @@ function me(e, t) {
49
49
  return s;
50
50
  return null;
51
51
  }
52
- const ye = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ee = (e) => !B(e) && e !== ye;
53
- function $() {
54
- const { caseless: e } = Ee(this) && this || {}, t = {}, n = (r, s) => {
55
- const o = e && me(t, s) || s;
56
- k(t[o]) && k(r) ? t[o] = $(t[o], r) : k(r) ? t[o] = $({}, r) : F(r) ? t[o] = r.slice() : t[o] = r;
52
+ const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !q(e) && e !== L;
53
+ function te() {
54
+ const { caseless: e } = Le(this) && this || {}, t = {}, n = (r, s) => {
55
+ const i = e && Fe(t, s) || s;
56
+ z(t[i]) && z(r) ? t[i] = te(t[i], r) : z(r) ? t[i] = te({}, r) : U(r) ? t[i] = r.slice() : t[i] = r;
57
57
  };
58
58
  for (let r = 0, s = arguments.length; r < s; r++)
59
- arguments[r] && U(arguments[r], n);
59
+ arguments[r] && I(arguments[r], n);
60
60
  return t;
61
61
  }
62
- const Ge = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
63
- n && R(s) ? e[o] = de(s, n) : e[o] = s;
64
- }, { allOwnKeys: r }), e), Xe = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ve = (e, t, n, r) => {
62
+ const yt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
63
+ n && x(s) ? e[i] = Ne(s, n) : e[i] = s;
64
+ }, { allOwnKeys: r }), e), bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), wt = (e, t, n, r) => {
65
65
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
66
66
  value: t.prototype
67
67
  }), n && Object.assign(e.prototype, n);
68
- }, Qe = (e, t, n, r) => {
69
- let s, o, i;
68
+ }, Et = (e, t, n, r) => {
69
+ let s, i, o;
70
70
  const c = {};
71
71
  if (t = t || {}, e == null) return t;
72
72
  do {
73
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
74
- i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
75
- e = n !== !1 && Q(e);
73
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
74
+ o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
75
+ e = n !== !1 && ce(e);
76
76
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
77
77
  return t;
78
- }, Ze = (e, t, n) => {
78
+ }, gt = (e, t, n) => {
79
79
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
80
80
  const r = e.indexOf(t, n);
81
81
  return r !== -1 && r === n;
82
- }, Ye = (e) => {
82
+ }, Rt = (e) => {
83
83
  if (!e) return null;
84
- if (F(e)) return e;
84
+ if (U(e)) return e;
85
85
  let t = e.length;
86
- if (!he(t)) return null;
86
+ if (!_e(t)) return null;
87
87
  const n = new Array(t);
88
88
  for (; t-- > 0; )
89
89
  n[t] = e[t];
90
90
  return n;
91
- }, et = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Q(Uint8Array)), tt = (e, t) => {
91
+ }, St = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ce(Uint8Array)), Ot = (e, t) => {
92
92
  const r = (e && e[Symbol.iterator]).call(e);
93
93
  let s;
94
94
  for (; (s = r.next()) && !s.done; ) {
95
- const o = s.value;
96
- t.call(e, o[0], o[1]);
95
+ const i = s.value;
96
+ t.call(e, i[0], i[1]);
97
97
  }
98
- }, nt = (e, t) => {
98
+ }, Tt = (e, t) => {
99
99
  let n;
100
100
  const r = [];
101
101
  for (; (n = e.exec(t)) !== null; )
102
102
  r.push(n);
103
103
  return r;
104
- }, rt = T("HTMLFormElement"), st = (e) => e.toLowerCase().replace(
104
+ }, At = C("HTMLFormElement"), xt = (e) => e.toLowerCase().replace(
105
105
  /[-_\s]([a-z\d])(\w*)/g,
106
106
  function(n, r, s) {
107
107
  return r.toUpperCase() + s;
108
108
  }
109
- ), te = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ot = T("RegExp"), we = (e, t) => {
109
+ ), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ct = C("RegExp"), Be = (e, t) => {
110
110
  const n = Object.getOwnPropertyDescriptors(e), r = {};
111
- U(n, (s, o) => {
112
- let i;
113
- (i = t(s, o, e)) !== !1 && (r[o] = i || s);
111
+ I(n, (s, i) => {
112
+ let o;
113
+ (o = t(s, i, e)) !== !1 && (r[i] = o || s);
114
114
  }), Object.defineProperties(e, r);
115
- }, it = (e) => {
116
- we(e, (t, n) => {
117
- if (R(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
115
+ }, Nt = (e) => {
116
+ Be(e, (t, n) => {
117
+ if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
118
118
  return !1;
119
119
  const r = e[n];
120
- if (R(r)) {
120
+ if (x(r)) {
121
121
  if (t.enumerable = !1, "writable" in t) {
122
122
  t.writable = !1;
123
123
  return;
@@ -127,101 +127,114 @@ const Ge = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
127
127
  });
128
128
  }
129
129
  });
130
- }, at = (e, t) => {
130
+ }, Pt = (e, t) => {
131
131
  const n = {}, r = (s) => {
132
- s.forEach((o) => {
133
- n[o] = !0;
132
+ s.forEach((i) => {
133
+ n[i] = !0;
134
134
  });
135
135
  };
136
- return F(e) ? r(e) : r(String(e).split(t)), n;
137
- }, ct = () => {
138
- }, ut = (e, t) => (e = +e, Number.isFinite(e) ? e : t), z = "abcdefghijklmnopqrstuvwxyz", ne = "0123456789", be = {
139
- DIGIT: ne,
140
- ALPHA: z,
141
- ALPHA_DIGIT: z + z.toUpperCase() + ne
142
- }, lt = (e = 16, t = be.ALPHA_DIGIT) => {
136
+ return U(e) ? r(e) : r(String(e).split(t)), n;
137
+ }, _t = () => {
138
+ }, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Q = "abcdefghijklmnopqrstuvwxyz", me = "0123456789", De = {
139
+ DIGIT: me,
140
+ ALPHA: Q,
141
+ ALPHA_DIGIT: Q + Q.toUpperCase() + me
142
+ }, Lt = (e = 16, t = De.ALPHA_DIGIT) => {
143
143
  let n = "";
144
144
  const { length: r } = t;
145
145
  for (; e--; )
146
146
  n += t[Math.random() * r | 0];
147
147
  return n;
148
148
  };
149
- function ft(e) {
150
- return !!(e && R(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
149
+ function Bt(e) {
150
+ return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
151
151
  }
152
- const dt = (e) => {
152
+ const Dt = (e) => {
153
153
  const t = new Array(10), n = (r, s) => {
154
- if (q(r)) {
154
+ if (K(r)) {
155
155
  if (t.indexOf(r) >= 0)
156
156
  return;
157
157
  if (!("toJSON" in r)) {
158
158
  t[s] = r;
159
- const o = F(r) ? [] : {};
160
- return U(r, (i, c) => {
161
- const p = n(i, s + 1);
162
- !B(p) && (o[c] = p);
163
- }), t[s] = void 0, o;
159
+ const i = U(r) ? [] : {};
160
+ return I(r, (o, c) => {
161
+ const f = n(o, s + 1);
162
+ !q(f) && (i[c] = f);
163
+ }), t[s] = void 0, i;
164
164
  }
165
165
  }
166
166
  return r;
167
167
  };
168
168
  return n(e, 0);
169
- }, pt = T("AsyncFunction"), ht = (e) => e && (q(e) || R(e)) && R(e.then) && R(e.catch), a = {
170
- isArray: F,
171
- isArrayBuffer: pe,
172
- isBuffer: ke,
173
- isFormData: We,
174
- isArrayBufferView: je,
175
- isString: He,
176
- isNumber: he,
177
- isBoolean: Ie,
178
- isObject: q,
179
- isPlainObject: k,
180
- isUndefined: B,
181
- isDate: qe,
182
- isFile: Me,
183
- isBlob: ze,
184
- isRegExp: ot,
185
- isFunction: R,
186
- isStream: Ve,
187
- isURLSearchParams: $e,
188
- isTypedArray: et,
189
- isFileList: Je,
190
- forEach: U,
191
- merge: $,
192
- extend: Ge,
193
- trim: Ke,
194
- stripBOM: Xe,
195
- inherits: ve,
196
- toFlatObject: Qe,
197
- kindOf: H,
198
- kindOfTest: T,
199
- endsWith: Ze,
200
- toArray: Ye,
201
- forEachEntry: tt,
202
- matchAll: nt,
203
- isHTMLForm: rt,
204
- hasOwnProperty: te,
205
- hasOwnProp: te,
169
+ }, Ut = C("AsyncFunction"), kt = (e) => e && (K(e) || x(e)) && x(e.then) && x(e.catch), Ue = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: i }) => {
170
+ s === L && i === n && r.length && r.shift()();
171
+ }, !1), (s) => {
172
+ r.push(s), L.postMessage(n, "*");
173
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
174
+ typeof setImmediate == "function",
175
+ x(L.postMessage)
176
+ ), jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || Ue, a = {
177
+ isArray: U,
178
+ isArrayBuffer: Pe,
179
+ isBuffer: et,
180
+ isFormData: ut,
181
+ isArrayBufferView: tt,
182
+ isString: nt,
183
+ isNumber: _e,
184
+ isBoolean: rt,
185
+ isObject: K,
186
+ isPlainObject: z,
187
+ isReadableStream: ft,
188
+ isRequest: dt,
189
+ isResponse: pt,
190
+ isHeaders: ht,
191
+ isUndefined: q,
192
+ isDate: st,
193
+ isFile: ot,
194
+ isBlob: it,
195
+ isRegExp: Ct,
196
+ isFunction: x,
197
+ isStream: ct,
198
+ isURLSearchParams: lt,
199
+ isTypedArray: St,
200
+ isFileList: at,
201
+ forEach: I,
202
+ merge: te,
203
+ extend: yt,
204
+ trim: mt,
205
+ stripBOM: bt,
206
+ inherits: wt,
207
+ toFlatObject: Et,
208
+ kindOf: W,
209
+ kindOfTest: C,
210
+ endsWith: gt,
211
+ toArray: Rt,
212
+ forEachEntry: Ot,
213
+ matchAll: Tt,
214
+ isHTMLForm: At,
215
+ hasOwnProperty: he,
216
+ hasOwnProp: he,
206
217
  // an alias to avoid ESLint no-prototype-builtins detection
207
- reduceDescriptors: we,
208
- freezeMethods: it,
209
- toObjectSet: at,
210
- toCamelCase: st,
211
- noop: ct,
212
- toFiniteNumber: ut,
213
- findKey: me,
214
- global: ye,
215
- isContextDefined: Ee,
216
- ALPHABET: be,
217
- generateString: lt,
218
- isSpecCompliantForm: ft,
219
- toJSONObject: dt,
220
- isAsyncFn: pt,
221
- isThenable: ht
218
+ reduceDescriptors: Be,
219
+ freezeMethods: Nt,
220
+ toObjectSet: Pt,
221
+ toCamelCase: xt,
222
+ noop: _t,
223
+ toFiniteNumber: Ft,
224
+ findKey: Fe,
225
+ global: L,
226
+ isContextDefined: Le,
227
+ ALPHABET: De,
228
+ generateString: Lt,
229
+ isSpecCompliantForm: Bt,
230
+ toJSONObject: Dt,
231
+ isAsyncFn: Ut,
232
+ isThenable: kt,
233
+ setImmediate: Ue,
234
+ asap: jt
222
235
  };
223
236
  function m(e, t, n, r, s) {
224
- 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);
237
+ 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, this.status = s.status ? s.status : null);
225
238
  }
226
239
  a.inherits(m, Error, {
227
240
  toJSON: function() {
@@ -240,11 +253,11 @@ a.inherits(m, Error, {
240
253
  // Axios
241
254
  config: a.toJSONObject(this.config),
242
255
  code: this.code,
243
- status: this.response && this.response.status ? this.response.status : null
256
+ status: this.status
244
257
  };
245
258
  }
246
259
  });
247
- const Se = m.prototype, Re = {};
260
+ const ke = m.prototype, je = {};
248
261
  [
249
262
  "ERR_BAD_OPTION_VALUE",
250
263
  "ERR_BAD_OPTION",
@@ -260,96 +273,96 @@ const Se = m.prototype, Re = {};
260
273
  "ERR_INVALID_URL"
261
274
  // eslint-disable-next-line func-names
262
275
  ].forEach((e) => {
263
- Re[e] = { value: e };
276
+ je[e] = { value: e };
264
277
  });
265
- Object.defineProperties(m, Re);
266
- Object.defineProperty(Se, "isAxiosError", { value: !0 });
267
- m.from = (e, t, n, r, s, o) => {
268
- const i = Object.create(Se);
269
- return a.toFlatObject(e, i, function(p) {
270
- return p !== Error.prototype;
271
- }, (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;
278
+ Object.defineProperties(m, je);
279
+ Object.defineProperty(ke, "isAxiosError", { value: !0 });
280
+ m.from = (e, t, n, r, s, i) => {
281
+ const o = Object.create(ke);
282
+ return a.toFlatObject(e, o, function(f) {
283
+ return f !== Error.prototype;
284
+ }, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
272
285
  };
273
- const mt = null;
274
- function K(e) {
286
+ const qt = null;
287
+ function ne(e) {
275
288
  return a.isPlainObject(e) || a.isArray(e);
276
289
  }
277
- function Oe(e) {
290
+ function qe(e) {
278
291
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
279
292
  }
280
- function re(e, t, n) {
281
- return e ? e.concat(t).map(function(s, o) {
282
- return s = Oe(s), !n && o ? "[" + s + "]" : s;
293
+ function ye(e, t, n) {
294
+ return e ? e.concat(t).map(function(s, i) {
295
+ return s = qe(s), !n && i ? "[" + s + "]" : s;
283
296
  }).join(n ? "." : "") : t;
284
297
  }
285
- function yt(e) {
286
- return a.isArray(e) && !e.some(K);
298
+ function It(e) {
299
+ return a.isArray(e) && !e.some(ne);
287
300
  }
288
- const Et = a.toFlatObject(a, {}, null, function(t) {
301
+ const Ht = a.toFlatObject(a, {}, null, function(t) {
289
302
  return /^is[A-Z]/.test(t);
290
303
  });
291
- function M(e, t, n) {
304
+ function G(e, t, n) {
292
305
  if (!a.isObject(e))
293
306
  throw new TypeError("target must be an object");
294
307
  t = t || new FormData(), n = a.toFlatObject(n, {
295
308
  metaTokens: !0,
296
309
  dots: !1,
297
310
  indexes: !1
298
- }, !1, function(d, w) {
299
- return !a.isUndefined(w[d]);
311
+ }, !1, function(y, h) {
312
+ return !a.isUndefined(h[y]);
300
313
  });
301
- const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
314
+ const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
302
315
  if (!a.isFunction(s))
303
316
  throw new TypeError("visitor must be a function");
304
- function h(f) {
305
- if (f === null) return "";
306
- if (a.isDate(f))
307
- return f.toISOString();
308
- if (!p && a.isBlob(f))
317
+ function u(p) {
318
+ if (p === null) return "";
319
+ if (a.isDate(p))
320
+ return p.toISOString();
321
+ if (!f && a.isBlob(p))
309
322
  throw new m("Blob is not supported. Use a Buffer instead.");
310
- return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
323
+ return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
311
324
  }
312
- function l(f, d, w) {
313
- let b = f;
314
- if (f && !w && typeof f == "object") {
315
- if (a.endsWith(d, "{}"))
316
- d = r ? d : d.slice(0, -2), f = JSON.stringify(f);
317
- else if (a.isArray(f) && yt(f) || (a.isFileList(f) || a.endsWith(d, "[]")) && (b = a.toArray(f)))
318
- return d = Oe(d), b.forEach(function(x, Ue) {
319
- !(a.isUndefined(x) || x === null) && t.append(
325
+ function l(p, y, h) {
326
+ let w = p;
327
+ if (p && !h && typeof p == "object") {
328
+ if (a.endsWith(y, "{}"))
329
+ y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
330
+ else if (a.isArray(p) && It(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
331
+ return y = qe(y), w.forEach(function(S, N) {
332
+ !(a.isUndefined(S) || S === null) && t.append(
320
333
  // eslint-disable-next-line no-nested-ternary
321
- i === !0 ? re([d], Ue, o) : i === null ? d : d + "[]",
322
- h(x)
334
+ o === !0 ? ye([y], N, i) : o === null ? y : y + "[]",
335
+ u(S)
323
336
  );
324
337
  }), !1;
325
338
  }
326
- return K(f) ? !0 : (t.append(re(w, d, o), h(f)), !1);
339
+ return ne(p) ? !0 : (t.append(ye(h, y, i), u(p)), !1);
327
340
  }
328
- const u = [], E = Object.assign(Et, {
341
+ const d = [], b = Object.assign(Ht, {
329
342
  defaultVisitor: l,
330
- convertValue: h,
331
- isVisitable: K
343
+ convertValue: u,
344
+ isVisitable: ne
332
345
  });
333
- function S(f, d) {
334
- if (!a.isUndefined(f)) {
335
- if (u.indexOf(f) !== -1)
336
- throw Error("Circular reference detected in " + d.join("."));
337
- u.push(f), a.forEach(f, function(b, g) {
338
- (!(a.isUndefined(b) || b === null) && s.call(
346
+ function g(p, y) {
347
+ if (!a.isUndefined(p)) {
348
+ if (d.indexOf(p) !== -1)
349
+ throw Error("Circular reference detected in " + y.join("."));
350
+ d.push(p), a.forEach(p, function(w, R) {
351
+ (!(a.isUndefined(w) || w === null) && s.call(
339
352
  t,
340
- b,
341
- a.isString(g) ? g.trim() : g,
342
- d,
343
- E
344
- )) === !0 && S(b, d ? d.concat(g) : [g]);
345
- }), u.pop();
353
+ w,
354
+ a.isString(R) ? R.trim() : R,
355
+ y,
356
+ b
357
+ )) === !0 && g(w, y ? y.concat(R) : [R]);
358
+ }), d.pop();
346
359
  }
347
360
  }
348
361
  if (!a.isObject(e))
349
362
  throw new TypeError("data must be an object");
350
- return S(e), t;
363
+ return g(e), t;
351
364
  }
352
- function se(e) {
365
+ function be(e) {
353
366
  const t = {
354
367
  "!": "%21",
355
368
  "'": "%27",
@@ -363,36 +376,36 @@ function se(e) {
363
376
  return t[r];
364
377
  });
365
378
  }
366
- function Z(e, t) {
367
- this._pairs = [], e && M(e, this, t);
379
+ function ue(e, t) {
380
+ this._pairs = [], e && G(e, this, t);
368
381
  }
369
- const Ae = Z.prototype;
370
- Ae.append = function(t, n) {
382
+ const Ie = ue.prototype;
383
+ Ie.append = function(t, n) {
371
384
  this._pairs.push([t, n]);
372
385
  };
373
- Ae.toString = function(t) {
386
+ Ie.toString = function(t) {
374
387
  const n = t ? function(r) {
375
- return t.call(this, r, se);
376
- } : se;
388
+ return t.call(this, r, be);
389
+ } : be;
377
390
  return this._pairs.map(function(s) {
378
391
  return n(s[0]) + "=" + n(s[1]);
379
392
  }, "").join("&");
380
393
  };
381
- function wt(e) {
394
+ function Mt(e) {
382
395
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
383
396
  }
384
- function Te(e, t, n) {
397
+ function He(e, t, n) {
385
398
  if (!t)
386
399
  return e;
387
- const r = n && n.encode || wt, s = n && n.serialize;
388
- let o;
389
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Z(t, n).toString(r), o) {
390
- const i = e.indexOf("#");
391
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
400
+ const r = n && n.encode || Mt, s = n && n.serialize;
401
+ let i;
402
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), i) {
403
+ const o = e.indexOf("#");
404
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
392
405
  }
393
406
  return e;
394
407
  }
395
- class oe {
408
+ class we {
396
409
  constructor() {
397
410
  this.handlers = [];
398
411
  }
@@ -446,63 +459,65 @@ class oe {
446
459
  });
447
460
  }
448
461
  }
449
- const ge = {
462
+ const Me = {
450
463
  silentJSONParsing: !0,
451
464
  forcedJSONParsing: !0,
452
465
  clarifyTimeoutError: !1
453
- }, bt = typeof URLSearchParams < "u" ? URLSearchParams : Z, St = typeof FormData < "u" ? FormData : null, Rt = typeof Blob < "u" ? Blob : null, Ot = {
466
+ }, zt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Jt = typeof FormData < "u" ? FormData : null, Vt = typeof Blob < "u" ? Blob : null, vt = {
454
467
  isBrowser: !0,
455
468
  classes: {
456
- URLSearchParams: bt,
457
- FormData: St,
458
- Blob: Rt
469
+ URLSearchParams: zt,
470
+ FormData: Jt,
471
+ Blob: Vt
459
472
  },
460
473
  protocols: ["http", "https", "file", "blob", "url", "data"]
461
- }, xe = typeof window < "u" && typeof document < "u", At = ((e) => xe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Tt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
462
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
474
+ }, le = typeof window < "u" && typeof document < "u", re = typeof navigator == "object" && navigator || void 0, Wt = le && (!re || ["ReactNative", "NativeScript", "NS"].indexOf(re.product) < 0), $t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kt = le && window.location.href || "http://localhost", Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
463
476
  __proto__: null,
464
- hasBrowserEnv: xe,
465
- hasStandardBrowserEnv: At,
466
- hasStandardBrowserWebWorkerEnv: Tt
467
- }, Symbol.toStringTag, { value: "Module" })), A = {
468
- ...gt,
469
- ...Ot
477
+ hasBrowserEnv: le,
478
+ hasStandardBrowserEnv: Wt,
479
+ hasStandardBrowserWebWorkerEnv: $t,
480
+ navigator: re,
481
+ origin: Kt
482
+ }, Symbol.toStringTag, { value: "Module" })), T = {
483
+ ...Gt,
484
+ ...vt
470
485
  };
471
- function xt(e, t) {
472
- return M(e, new A.classes.URLSearchParams(), Object.assign({
473
- visitor: function(n, r, s, o) {
474
- return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
486
+ function Xt(e, t) {
487
+ return G(e, new T.classes.URLSearchParams(), Object.assign({
488
+ visitor: function(n, r, s, i) {
489
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
475
490
  }
476
491
  }, t));
477
492
  }
478
- function Nt(e) {
493
+ function Qt(e) {
479
494
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
480
495
  }
481
- function Pt(e) {
496
+ function Zt(e) {
482
497
  const t = {}, n = Object.keys(e);
483
498
  let r;
484
499
  const s = n.length;
485
- let o;
500
+ let i;
486
501
  for (r = 0; r < s; r++)
487
- o = n[r], t[o] = e[o];
502
+ i = n[r], t[i] = e[i];
488
503
  return t;
489
504
  }
490
- function Ne(e) {
491
- function t(n, r, s, o) {
492
- let i = n[o++];
493
- if (i === "__proto__") return !0;
494
- const c = Number.isFinite(+i), p = o >= n.length;
495
- return i = !i && a.isArray(s) ? s.length : i, p ? (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] = Pt(s[i])), !c);
505
+ function ze(e) {
506
+ function t(n, r, s, i) {
507
+ let o = n[i++];
508
+ if (o === "__proto__") return !0;
509
+ const c = Number.isFinite(+o), f = i >= n.length;
510
+ return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Zt(s[o])), !c);
496
511
  }
497
512
  if (a.isFormData(e) && a.isFunction(e.entries)) {
498
513
  const n = {};
499
514
  return a.forEachEntry(e, (r, s) => {
500
- t(Nt(r), s, n, 0);
515
+ t(Qt(r), s, n, 0);
501
516
  }), n;
502
517
  }
503
518
  return null;
504
519
  }
505
- function Ct(e, t, n) {
520
+ function Yt(e, t, n) {
506
521
  if (a.isString(e))
507
522
  try {
508
523
  return (t || JSON.parse)(e), a.trim(e);
@@ -510,44 +525,46 @@ function Ct(e, t, n) {
510
525
  if (r.name !== "SyntaxError")
511
526
  throw r;
512
527
  }
513
- return (n || JSON.stringify)(e);
528
+ return (0, JSON.stringify)(e);
514
529
  }
515
- const D = {
516
- transitional: ge,
517
- adapter: ["xhr", "http"],
530
+ const H = {
531
+ transitional: Me,
532
+ adapter: ["xhr", "http", "fetch"],
518
533
  transformRequest: [function(t, n) {
519
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
520
- if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
521
- return s ? JSON.stringify(Ne(t)) : t;
522
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
534
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
535
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
536
+ return s ? JSON.stringify(ze(t)) : t;
537
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
523
538
  return t;
524
539
  if (a.isArrayBufferView(t))
525
540
  return t.buffer;
526
541
  if (a.isURLSearchParams(t))
527
542
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
528
543
  let c;
529
- if (o) {
544
+ if (i) {
530
545
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
531
- return xt(t, this.formSerializer).toString();
546
+ return Xt(t, this.formSerializer).toString();
532
547
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
533
- const p = this.env && this.env.FormData;
534
- return M(
548
+ const f = this.env && this.env.FormData;
549
+ return G(
535
550
  c ? { "files[]": t } : t,
536
- p && new p(),
551
+ f && new f(),
537
552
  this.formSerializer
538
553
  );
539
554
  }
540
555
  }
541
- return o || s ? (n.setContentType("application/json", !1), Ct(t)) : t;
556
+ return i || s ? (n.setContentType("application/json", !1), Yt(t)) : t;
542
557
  }],
543
558
  transformResponse: [function(t) {
544
- const n = this.transitional || D.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
559
+ const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
560
+ if (a.isResponse(t) || a.isReadableStream(t))
561
+ return t;
545
562
  if (t && a.isString(t) && (r && !this.responseType || s)) {
546
- const i = !(n && n.silentJSONParsing) && s;
563
+ const o = !(n && n.silentJSONParsing) && s;
547
564
  try {
548
565
  return JSON.parse(t);
549
566
  } catch (c) {
550
- if (i)
567
+ if (o)
551
568
  throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
552
569
  }
553
570
  }
@@ -563,8 +580,8 @@ const D = {
563
580
  maxContentLength: -1,
564
581
  maxBodyLength: -1,
565
582
  env: {
566
- FormData: A.classes.FormData,
567
- Blob: A.classes.Blob
583
+ FormData: T.classes.FormData,
584
+ Blob: T.classes.Blob
568
585
  },
569
586
  validateStatus: function(t) {
570
587
  return t >= 200 && t < 300;
@@ -577,9 +594,9 @@ const D = {
577
594
  }
578
595
  };
579
596
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
580
- D.headers[e] = {};
597
+ H.headers[e] = {};
581
598
  });
582
- const Ft = a.toObjectSet([
599
+ const en = a.toObjectSet([
583
600
  "age",
584
601
  "authorization",
585
602
  "content-length",
@@ -597,29 +614,29 @@ const Ft = a.toObjectSet([
597
614
  "referer",
598
615
  "retry-after",
599
616
  "user-agent"
600
- ]), _t = (e) => {
617
+ ]), tn = (e) => {
601
618
  const t = {};
602
619
  let n, r, s;
603
620
  return e && e.split(`
604
- `).forEach(function(i) {
605
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Ft[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
621
+ `).forEach(function(o) {
622
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && en[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
606
623
  }), t;
607
- }, ie = Symbol("internals");
608
- function _(e) {
624
+ }, Ee = Symbol("internals");
625
+ function j(e) {
609
626
  return e && String(e).trim().toLowerCase();
610
627
  }
611
- function j(e) {
612
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(j) : String(e);
628
+ function J(e) {
629
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
613
630
  }
614
- function Bt(e) {
631
+ function nn(e) {
615
632
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
616
633
  let r;
617
634
  for (; r = n.exec(e); )
618
635
  t[r[1]] = r[2];
619
636
  return t;
620
637
  }
621
- const Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
622
- function J(e, t, n, r, s) {
638
+ const rn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
639
+ function Z(e, t, n, r, s) {
623
640
  if (a.isFunction(r))
624
641
  return r.call(this, t, n);
625
642
  if (s && (t = n), !!a.isString(t)) {
@@ -629,45 +646,54 @@ function J(e, t, n, r, s) {
629
646
  return r.test(t);
630
647
  }
631
648
  }
632
- function Dt(e) {
649
+ function sn(e) {
633
650
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
634
651
  }
635
- function Lt(e, t) {
652
+ function on(e, t) {
636
653
  const n = a.toCamelCase(" " + t);
637
654
  ["get", "set", "has"].forEach((r) => {
638
655
  Object.defineProperty(e, r + n, {
639
- value: function(s, o, i) {
640
- return this[r].call(this, t, s, o, i);
656
+ value: function(s, i, o) {
657
+ return this[r].call(this, t, s, i, o);
641
658
  },
642
659
  configurable: !0
643
660
  });
644
661
  });
645
662
  }
646
- class O {
663
+ class A {
647
664
  constructor(t) {
648
665
  t && this.set(t);
649
666
  }
650
667
  set(t, n, r) {
651
668
  const s = this;
652
- function o(c, p, h) {
653
- const l = _(p);
669
+ function i(c, f, u) {
670
+ const l = j(f);
654
671
  if (!l)
655
672
  throw new Error("header name must be a non-empty string");
656
- const u = a.findKey(s, l);
657
- (!u || s[u] === void 0 || h === !0 || h === void 0 && s[u] !== !1) && (s[u || p] = j(c));
673
+ const d = a.findKey(s, l);
674
+ (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = J(c));
658
675
  }
659
- const i = (c, p) => a.forEach(c, (h, l) => o(h, l, p));
660
- return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Ut(t) ? i(_t(t), n) : t != null && o(n, t, r), this;
676
+ const o = (c, f) => a.forEach(c, (u, l) => i(u, l, f));
677
+ if (a.isPlainObject(t) || t instanceof this.constructor)
678
+ o(t, n);
679
+ else if (a.isString(t) && (t = t.trim()) && !rn(t))
680
+ o(tn(t), n);
681
+ else if (a.isHeaders(t))
682
+ for (const [c, f] of t.entries())
683
+ i(f, c, r);
684
+ else
685
+ t != null && i(n, t, r);
686
+ return this;
661
687
  }
662
688
  get(t, n) {
663
- if (t = _(t), t) {
689
+ if (t = j(t), t) {
664
690
  const r = a.findKey(this, t);
665
691
  if (r) {
666
692
  const s = this[r];
667
693
  if (!n)
668
694
  return s;
669
695
  if (n === !0)
670
- return Bt(s);
696
+ return nn(s);
671
697
  if (a.isFunction(n))
672
698
  return n.call(this, s, r);
673
699
  if (a.isRegExp(n))
@@ -677,42 +703,42 @@ class O {
677
703
  }
678
704
  }
679
705
  has(t, n) {
680
- if (t = _(t), t) {
706
+ if (t = j(t), t) {
681
707
  const r = a.findKey(this, t);
682
- return !!(r && this[r] !== void 0 && (!n || J(this, this[r], r, n)));
708
+ return !!(r && this[r] !== void 0 && (!n || Z(this, this[r], r, n)));
683
709
  }
684
710
  return !1;
685
711
  }
686
712
  delete(t, n) {
687
713
  const r = this;
688
714
  let s = !1;
689
- function o(i) {
690
- if (i = _(i), i) {
691
- const c = a.findKey(r, i);
692
- c && (!n || J(r, r[c], c, n)) && (delete r[c], s = !0);
715
+ function i(o) {
716
+ if (o = j(o), o) {
717
+ const c = a.findKey(r, o);
718
+ c && (!n || Z(r, r[c], c, n)) && (delete r[c], s = !0);
693
719
  }
694
720
  }
695
- return a.isArray(t) ? t.forEach(o) : o(t), s;
721
+ return a.isArray(t) ? t.forEach(i) : i(t), s;
696
722
  }
697
723
  clear(t) {
698
724
  const n = Object.keys(this);
699
725
  let r = n.length, s = !1;
700
726
  for (; r--; ) {
701
- const o = n[r];
702
- (!t || J(this, this[o], o, t, !0)) && (delete this[o], s = !0);
727
+ const i = n[r];
728
+ (!t || Z(this, this[i], i, t, !0)) && (delete this[i], s = !0);
703
729
  }
704
730
  return s;
705
731
  }
706
732
  normalize(t) {
707
733
  const n = this, r = {};
708
- return a.forEach(this, (s, o) => {
709
- const i = a.findKey(r, o);
710
- if (i) {
711
- n[i] = j(s), delete n[o];
734
+ return a.forEach(this, (s, i) => {
735
+ const o = a.findKey(r, i);
736
+ if (o) {
737
+ n[o] = J(s), delete n[i];
712
738
  return;
713
739
  }
714
- const c = t ? Dt(o) : String(o).trim();
715
- c !== o && delete n[o], n[c] = j(s), r[c] = !0;
740
+ const c = t ? sn(i) : String(i).trim();
741
+ c !== i && delete n[i], n[c] = J(s), r[c] = !0;
716
742
  }), this;
717
743
  }
718
744
  concat(...t) {
@@ -742,18 +768,18 @@ class O {
742
768
  return n.forEach((s) => r.set(s)), r;
743
769
  }
744
770
  static accessor(t) {
745
- const r = (this[ie] = this[ie] = {
771
+ const r = (this[Ee] = this[Ee] = {
746
772
  accessors: {}
747
773
  }).accessors, s = this.prototype;
748
- function o(i) {
749
- const c = _(i);
750
- r[c] || (Lt(s, i), r[c] = !0);
774
+ function i(o) {
775
+ const c = j(o);
776
+ r[c] || (on(s, o), r[c] = !0);
751
777
  }
752
- return a.isArray(t) ? t.forEach(o) : o(t), this;
778
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
753
779
  }
754
780
  }
755
- O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
756
- a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
781
+ A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
782
+ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
757
783
  let n = t[0].toUpperCase() + t.slice(1);
758
784
  return {
759
785
  get: () => e,
@@ -762,24 +788,24 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
762
788
  }
763
789
  };
764
790
  });
765
- a.freezeMethods(O);
766
- function V(e, t) {
767
- const n = this || D, r = t || n, s = O.from(r.headers);
768
- let o = r.data;
791
+ a.freezeMethods(A);
792
+ function Y(e, t) {
793
+ const n = this || H, r = t || n, s = A.from(r.headers);
794
+ let i = r.data;
769
795
  return a.forEach(e, function(c) {
770
- o = c.call(n, o, s.normalize(), t ? t.status : void 0);
771
- }), s.normalize(), o;
796
+ i = c.call(n, i, s.normalize(), t ? t.status : void 0);
797
+ }), s.normalize(), i;
772
798
  }
773
- function Pe(e) {
799
+ function Je(e) {
774
800
  return !!(e && e.__CANCEL__);
775
801
  }
776
- function L(e, t, n) {
802
+ function k(e, t, n) {
777
803
  m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
778
804
  }
779
- a.inherits(L, m, {
805
+ a.inherits(k, m, {
780
806
  __CANCEL__: !0
781
807
  });
782
- function kt(e, t, n) {
808
+ function Ve(e, t, n) {
783
809
  const r = n.config.validateStatus;
784
810
  !n.status || !r || r(n.status) ? e(n) : t(new m(
785
811
  "Request failed with status code " + n.status,
@@ -789,51 +815,73 @@ function kt(e, t, n) {
789
815
  n
790
816
  ));
791
817
  }
792
- const jt = A.hasStandardBrowserEnv ? (
793
- // Standard browser envs support document.cookie
794
- {
795
- write(e, t, n, r, s, o) {
796
- const i = [e + "=" + encodeURIComponent(t)];
797
- 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("; ");
798
- },
799
- read(e) {
800
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
801
- return t ? decodeURIComponent(t[3]) : null;
802
- },
803
- remove(e) {
804
- this.write(e, "", Date.now() - 864e5);
805
- }
806
- }
807
- ) : (
808
- // Non-standard browser env (web workers, react-native) lack needed support.
809
- {
810
- write() {
811
- },
812
- read() {
813
- return null;
814
- },
815
- remove() {
816
- }
817
- }
818
- );
819
- function Ht(e) {
820
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
818
+ function an(e) {
819
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
820
+ return t && t[1] || "";
821
821
  }
822
- function It(e, t) {
823
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
822
+ function cn(e, t) {
823
+ e = e || 10;
824
+ const n = new Array(e), r = new Array(e);
825
+ let s = 0, i = 0, o;
826
+ return t = t !== void 0 ? t : 1e3, function(f) {
827
+ const u = Date.now(), l = r[i];
828
+ o || (o = u), n[s] = f, r[s] = u;
829
+ let d = i, b = 0;
830
+ for (; d !== s; )
831
+ b += n[d++], d = d % e;
832
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - o < t)
833
+ return;
834
+ const g = l && u - l;
835
+ return g ? Math.round(b * 1e3 / g) : void 0;
836
+ };
824
837
  }
825
- function Ce(e, t) {
826
- return e && !Ht(t) ? It(e, t) : t;
838
+ function un(e, t) {
839
+ let n = 0, r = 1e3 / t, s, i;
840
+ const o = (u, l = Date.now()) => {
841
+ n = l, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
842
+ };
843
+ return [(...u) => {
844
+ const l = Date.now(), d = l - n;
845
+ d >= r ? o(u, l) : (s = u, i || (i = setTimeout(() => {
846
+ i = null, o(s);
847
+ }, r - d)));
848
+ }, () => s && o(s)];
827
849
  }
828
- const qt = A.hasStandardBrowserEnv ? (
850
+ const V = (e, t, n = 3) => {
851
+ let r = 0;
852
+ const s = cn(50, 250);
853
+ return un((i) => {
854
+ const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - r, u = s(f), l = o <= c;
855
+ r = o;
856
+ const d = {
857
+ loaded: o,
858
+ total: c,
859
+ progress: c ? o / c : void 0,
860
+ bytes: f,
861
+ rate: u || void 0,
862
+ estimated: u && c && l ? (c - o) / u : void 0,
863
+ event: i,
864
+ lengthComputable: c != null,
865
+ [t ? "download" : "upload"]: !0
866
+ };
867
+ e(d);
868
+ }, n);
869
+ }, ge = (e, t) => {
870
+ const n = e != null;
871
+ return [(r) => t[0]({
872
+ lengthComputable: n,
873
+ total: e,
874
+ loaded: r
875
+ }), t[1]];
876
+ }, Re = (e) => (...t) => a.asap(() => e(...t)), ln = T.hasStandardBrowserEnv ? (
829
877
  // Standard browser envs have full support of the APIs needed to test
830
878
  // whether the request URL is of the same origin as current location.
831
879
  function() {
832
- const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
880
+ const t = T.navigator && /(msie|trident)/i.test(T.navigator.userAgent), n = document.createElement("a");
833
881
  let r;
834
- function s(o) {
835
- let i = o;
836
- return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
882
+ function s(i) {
883
+ let o = i;
884
+ return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
837
885
  href: n.href,
838
886
  protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
839
887
  host: n.host,
@@ -844,8 +892,8 @@ const qt = A.hasStandardBrowserEnv ? (
844
892
  pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
845
893
  };
846
894
  }
847
- return r = s(window.location.href), function(i) {
848
- const c = a.isString(i) ? s(i) : i;
895
+ return r = s(window.location.href), function(o) {
896
+ const c = a.isString(o) ? s(o) : o;
849
897
  return c.protocol === r.protocol && c.host === r.host;
850
898
  };
851
899
  }()
@@ -856,124 +904,399 @@ const qt = A.hasStandardBrowserEnv ? (
856
904
  return !0;
857
905
  };
858
906
  }()
907
+ ), fn = T.hasStandardBrowserEnv ? (
908
+ // Standard browser envs support document.cookie
909
+ {
910
+ write(e, t, n, r, s, i) {
911
+ const o = [e + "=" + encodeURIComponent(t)];
912
+ a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
913
+ },
914
+ read(e) {
915
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
916
+ return t ? decodeURIComponent(t[3]) : null;
917
+ },
918
+ remove(e) {
919
+ this.write(e, "", Date.now() - 864e5);
920
+ }
921
+ }
922
+ ) : (
923
+ // Non-standard browser env (web workers, react-native) lack needed support.
924
+ {
925
+ write() {
926
+ },
927
+ read() {
928
+ return null;
929
+ },
930
+ remove() {
931
+ }
932
+ }
859
933
  );
860
- function Mt(e) {
861
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
862
- return t && t[1] || "";
934
+ function dn(e) {
935
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
863
936
  }
864
- function zt(e, t) {
865
- e = e || 10;
866
- const n = new Array(e), r = new Array(e);
867
- let s = 0, o = 0, i;
868
- return t = t !== void 0 ? t : 1e3, function(p) {
869
- const h = Date.now(), l = r[o];
870
- i || (i = h), n[s] = p, r[s] = h;
871
- let u = o, E = 0;
872
- for (; u !== s; )
873
- E += n[u++], u = u % e;
874
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), h - i < t)
875
- return;
876
- const S = l && h - l;
877
- return S ? Math.round(E * 1e3 / S) : void 0;
878
- };
937
+ function pn(e, t) {
938
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
879
939
  }
880
- function ae(e, t) {
881
- let n = 0;
882
- const r = zt(50, 250);
883
- return (s) => {
884
- const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, p = r(c), h = o <= i;
885
- n = o;
886
- const l = {
887
- loaded: o,
888
- total: i,
889
- progress: i ? o / i : void 0,
890
- bytes: c,
891
- rate: p || void 0,
892
- estimated: p && i && h ? (i - o) / p : void 0,
893
- event: s
894
- };
895
- l[t ? "download" : "upload"] = !0, e(l);
940
+ function ve(e, t) {
941
+ return e && !dn(t) ? pn(e, t) : t;
942
+ }
943
+ const Se = (e) => e instanceof A ? { ...e } : e;
944
+ function D(e, t) {
945
+ t = t || {};
946
+ const n = {};
947
+ function r(u, l, d) {
948
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: d }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
949
+ }
950
+ function s(u, l, d) {
951
+ if (a.isUndefined(l)) {
952
+ if (!a.isUndefined(u))
953
+ return r(void 0, u, d);
954
+ } else return r(u, l, d);
955
+ }
956
+ function i(u, l) {
957
+ if (!a.isUndefined(l))
958
+ return r(void 0, l);
959
+ }
960
+ function o(u, l) {
961
+ if (a.isUndefined(l)) {
962
+ if (!a.isUndefined(u))
963
+ return r(void 0, u);
964
+ } else return r(void 0, l);
965
+ }
966
+ function c(u, l, d) {
967
+ if (d in t)
968
+ return r(u, l);
969
+ if (d in e)
970
+ return r(void 0, u);
971
+ }
972
+ const f = {
973
+ url: i,
974
+ method: i,
975
+ data: i,
976
+ baseURL: o,
977
+ transformRequest: o,
978
+ transformResponse: o,
979
+ paramsSerializer: o,
980
+ timeout: o,
981
+ timeoutMessage: o,
982
+ withCredentials: o,
983
+ withXSRFToken: o,
984
+ adapter: o,
985
+ responseType: o,
986
+ xsrfCookieName: o,
987
+ xsrfHeaderName: o,
988
+ onUploadProgress: o,
989
+ onDownloadProgress: o,
990
+ decompress: o,
991
+ maxContentLength: o,
992
+ maxBodyLength: o,
993
+ beforeRedirect: o,
994
+ transport: o,
995
+ httpAgent: o,
996
+ httpsAgent: o,
997
+ cancelToken: o,
998
+ socketPath: o,
999
+ responseEncoding: o,
1000
+ validateStatus: c,
1001
+ headers: (u, l) => s(Se(u), Se(l), !0)
896
1002
  };
1003
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1004
+ const d = f[l] || s, b = d(e[l], t[l], l);
1005
+ a.isUndefined(b) && d !== c || (n[l] = b);
1006
+ }), n;
897
1007
  }
898
- const Jt = typeof XMLHttpRequest < "u", Vt = Jt && function(e) {
899
- return new Promise(function(n, r) {
900
- let s = e.data;
901
- const o = O.from(e.headers).normalize();
902
- let { responseType: i, withXSRFToken: c } = e, p;
903
- function h() {
904
- e.cancelToken && e.cancelToken.unsubscribe(p), e.signal && e.signal.removeEventListener("abort", p);
905
- }
906
- let l;
907
- if (a.isFormData(s)) {
908
- if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
909
- o.setContentType(!1);
910
- else if ((l = o.getContentType()) !== !1) {
911
- const [d, ...w] = l ? l.split(";").map((b) => b.trim()).filter(Boolean) : [];
912
- o.setContentType([d || "multipart/form-data", ...w].join("; "));
913
- }
1008
+ const We = (e) => {
1009
+ const t = D({}, e);
1010
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1011
+ t.headers = o = A.from(o), t.url = He(ve(t.baseURL, t.url), e.params, e.paramsSerializer), c && o.set(
1012
+ "Authorization",
1013
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1014
+ );
1015
+ let f;
1016
+ if (a.isFormData(n)) {
1017
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1018
+ o.setContentType(void 0);
1019
+ else if ((f = o.getContentType()) !== !1) {
1020
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1021
+ o.setContentType([u || "multipart/form-data", ...l].join("; "));
914
1022
  }
915
- let u = new XMLHttpRequest();
916
- if (e.auth) {
917
- const d = e.auth.username || "", w = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
918
- o.set("Authorization", "Basic " + btoa(d + ":" + w));
1023
+ }
1024
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && ln(t.url))) {
1025
+ const u = s && i && fn.read(i);
1026
+ u && o.set(s, u);
1027
+ }
1028
+ return t;
1029
+ }, hn = typeof XMLHttpRequest < "u", mn = hn && function(e) {
1030
+ return new Promise(function(n, r) {
1031
+ const s = We(e);
1032
+ let i = s.data;
1033
+ const o = A.from(s.headers).normalize();
1034
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, b, g, p;
1035
+ function y() {
1036
+ g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
919
1037
  }
920
- const E = Ce(e.baseURL, e.url);
921
- u.open(e.method.toUpperCase(), Te(E, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
922
- function S() {
923
- if (!u)
1038
+ let h = new XMLHttpRequest();
1039
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1040
+ function w() {
1041
+ if (!h)
924
1042
  return;
925
- const d = O.from(
926
- "getAllResponseHeaders" in u && u.getAllResponseHeaders()
927
- ), b = {
928
- data: !i || i === "text" || i === "json" ? u.responseText : u.response,
929
- status: u.status,
930
- statusText: u.statusText,
931
- headers: d,
1043
+ const S = A.from(
1044
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1045
+ ), O = {
1046
+ data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1047
+ status: h.status,
1048
+ statusText: h.statusText,
1049
+ headers: S,
932
1050
  config: e,
933
- request: u
1051
+ request: h
934
1052
  };
935
- kt(function(x) {
936
- n(x), h();
937
- }, function(x) {
938
- r(x), h();
939
- }, b), u = null;
1053
+ Ve(function(F) {
1054
+ n(F), y();
1055
+ }, function(F) {
1056
+ r(F), y();
1057
+ }, O), h = null;
940
1058
  }
941
- if ("onloadend" in u ? u.onloadend = S : u.onreadystatechange = function() {
942
- !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(S);
943
- }, u.onabort = function() {
944
- u && (r(new m("Request aborted", m.ECONNABORTED, e, u)), u = null);
945
- }, u.onerror = function() {
946
- r(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
947
- }, u.ontimeout = function() {
948
- let w = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
949
- const b = e.transitional || ge;
950
- e.timeoutErrorMessage && (w = e.timeoutErrorMessage), r(new m(
951
- w,
952
- b.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1059
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1060
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1061
+ }, h.onabort = function() {
1062
+ h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1063
+ }, h.onerror = function() {
1064
+ r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1065
+ }, h.ontimeout = function() {
1066
+ let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1067
+ const O = s.transitional || Me;
1068
+ s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new m(
1069
+ N,
1070
+ O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
953
1071
  e,
954
- u
955
- )), u = null;
956
- }, A.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && qt(E))) {
957
- const d = e.xsrfHeaderName && e.xsrfCookieName && jt.read(e.xsrfCookieName);
958
- d && o.set(e.xsrfHeaderName, d);
959
- }
960
- s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(w, b) {
961
- u.setRequestHeader(b, w);
962
- }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", ae(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ae(e.onUploadProgress)), (e.cancelToken || e.signal) && (p = (d) => {
963
- u && (r(!d || d.type ? new L(null, e, u) : d), u.abort(), u = null);
964
- }, e.cancelToken && e.cancelToken.subscribe(p), e.signal && (e.signal.aborted ? p() : e.signal.addEventListener("abort", p)));
965
- const f = Mt(E);
966
- if (f && A.protocols.indexOf(f) === -1) {
967
- r(new m("Unsupported protocol " + f + ":", m.ERR_BAD_REQUEST, e));
1072
+ h
1073
+ )), h = null;
1074
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(N, O) {
1075
+ h.setRequestHeader(O, N);
1076
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, p] = V(u, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
1077
+ h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
1078
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1079
+ const R = an(s.url);
1080
+ if (R && T.protocols.indexOf(R) === -1) {
1081
+ r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
968
1082
  return;
969
1083
  }
970
- u.send(s || null);
1084
+ h.send(i || null);
1085
+ });
1086
+ }, yn = (e, t) => {
1087
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1088
+ if (t || n) {
1089
+ let r = new AbortController(), s;
1090
+ const i = function(u) {
1091
+ if (!s) {
1092
+ s = !0, c();
1093
+ const l = u instanceof Error ? u : this.reason;
1094
+ r.abort(l instanceof m ? l : new k(l instanceof Error ? l.message : l));
1095
+ }
1096
+ };
1097
+ let o = t && setTimeout(() => {
1098
+ o = null, i(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1099
+ }, t);
1100
+ const c = () => {
1101
+ e && (o && clearTimeout(o), o = null, e.forEach((u) => {
1102
+ u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
1103
+ }), e = null);
1104
+ };
1105
+ e.forEach((u) => u.addEventListener("abort", i));
1106
+ const { signal: f } = r;
1107
+ return f.unsubscribe = () => a.asap(c), f;
1108
+ }
1109
+ }, bn = function* (e, t) {
1110
+ let n = e.byteLength;
1111
+ if (n < t) {
1112
+ yield e;
1113
+ return;
1114
+ }
1115
+ let r = 0, s;
1116
+ for (; r < n; )
1117
+ s = r + t, yield e.slice(r, s), r = s;
1118
+ }, wn = async function* (e, t) {
1119
+ for await (const n of En(e))
1120
+ yield* bn(n, t);
1121
+ }, En = async function* (e) {
1122
+ if (e[Symbol.asyncIterator]) {
1123
+ yield* e;
1124
+ return;
1125
+ }
1126
+ const t = e.getReader();
1127
+ try {
1128
+ for (; ; ) {
1129
+ const { done: n, value: r } = await t.read();
1130
+ if (n)
1131
+ break;
1132
+ yield r;
1133
+ }
1134
+ } finally {
1135
+ await t.cancel();
1136
+ }
1137
+ }, Oe = (e, t, n, r) => {
1138
+ const s = wn(e, t);
1139
+ let i = 0, o, c = (f) => {
1140
+ o || (o = !0, r && r(f));
1141
+ };
1142
+ return new ReadableStream({
1143
+ async pull(f) {
1144
+ try {
1145
+ const { done: u, value: l } = await s.next();
1146
+ if (u) {
1147
+ c(), f.close();
1148
+ return;
1149
+ }
1150
+ let d = l.byteLength;
1151
+ if (n) {
1152
+ let b = i += d;
1153
+ n(b);
1154
+ }
1155
+ f.enqueue(new Uint8Array(l));
1156
+ } catch (u) {
1157
+ throw c(u), u;
1158
+ }
1159
+ },
1160
+ cancel(f) {
1161
+ return c(f), s.return();
1162
+ }
1163
+ }, {
1164
+ highWaterMark: 2
971
1165
  });
972
- }, G = {
973
- http: mt,
974
- xhr: Vt
1166
+ }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", $e = X && typeof ReadableStream == "function", gn = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
1167
+ try {
1168
+ return !!e(...t);
1169
+ } catch {
1170
+ return !1;
1171
+ }
1172
+ }, Rn = $e && Ke(() => {
1173
+ let e = !1;
1174
+ const t = new Request(T.origin, {
1175
+ body: new ReadableStream(),
1176
+ method: "POST",
1177
+ get duplex() {
1178
+ return e = !0, "half";
1179
+ }
1180
+ }).headers.has("Content-Type");
1181
+ return e && !t;
1182
+ }), Te = 64 * 1024, se = $e && Ke(() => a.isReadableStream(new Response("").body)), v = {
1183
+ stream: se && ((e) => e.body)
975
1184
  };
976
- a.forEach(G, (e, t) => {
1185
+ X && ((e) => {
1186
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1187
+ !v[t] && (v[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1188
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1189
+ });
1190
+ });
1191
+ })(new Response());
1192
+ const Sn = async (e) => {
1193
+ if (e == null)
1194
+ return 0;
1195
+ if (a.isBlob(e))
1196
+ return e.size;
1197
+ if (a.isSpecCompliantForm(e))
1198
+ return (await new Request(T.origin, {
1199
+ method: "POST",
1200
+ body: e
1201
+ }).arrayBuffer()).byteLength;
1202
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1203
+ return e.byteLength;
1204
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1205
+ return (await gn(e)).byteLength;
1206
+ }, On = async (e, t) => {
1207
+ const n = a.toFiniteNumber(e.getContentLength());
1208
+ return n ?? Sn(t);
1209
+ }, Tn = X && (async (e) => {
1210
+ let {
1211
+ url: t,
1212
+ method: n,
1213
+ data: r,
1214
+ signal: s,
1215
+ cancelToken: i,
1216
+ timeout: o,
1217
+ onDownloadProgress: c,
1218
+ onUploadProgress: f,
1219
+ responseType: u,
1220
+ headers: l,
1221
+ withCredentials: d = "same-origin",
1222
+ fetchOptions: b
1223
+ } = We(e);
1224
+ u = u ? (u + "").toLowerCase() : "text";
1225
+ let g = yn([s, i && i.toAbortSignal()], o), p;
1226
+ const y = g && g.unsubscribe && (() => {
1227
+ g.unsubscribe();
1228
+ });
1229
+ let h;
1230
+ try {
1231
+ if (f && Rn && n !== "get" && n !== "head" && (h = await On(l, r)) !== 0) {
1232
+ let O = new Request(t, {
1233
+ method: "POST",
1234
+ body: r,
1235
+ duplex: "half"
1236
+ }), P;
1237
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1238
+ const [F, M] = ge(
1239
+ h,
1240
+ V(Re(f))
1241
+ );
1242
+ r = Oe(O.body, Te, F, M);
1243
+ }
1244
+ }
1245
+ a.isString(d) || (d = d ? "include" : "omit");
1246
+ const w = "credentials" in Request.prototype;
1247
+ p = new Request(t, {
1248
+ ...b,
1249
+ signal: g,
1250
+ method: n.toUpperCase(),
1251
+ headers: l.normalize().toJSON(),
1252
+ body: r,
1253
+ duplex: "half",
1254
+ credentials: w ? d : void 0
1255
+ });
1256
+ let R = await fetch(p);
1257
+ const S = se && (u === "stream" || u === "response");
1258
+ if (se && (c || S && y)) {
1259
+ const O = {};
1260
+ ["status", "statusText", "headers"].forEach((pe) => {
1261
+ O[pe] = R[pe];
1262
+ });
1263
+ const P = a.toFiniteNumber(R.headers.get("content-length")), [F, M] = c && ge(
1264
+ P,
1265
+ V(Re(c), !0)
1266
+ ) || [];
1267
+ R = new Response(
1268
+ Oe(R.body, Te, F, () => {
1269
+ M && M(), y && y();
1270
+ }),
1271
+ O
1272
+ );
1273
+ }
1274
+ u = u || "text";
1275
+ let N = await v[a.findKey(v, u) || "text"](R, e);
1276
+ return !S && y && y(), await new Promise((O, P) => {
1277
+ Ve(O, P, {
1278
+ data: N,
1279
+ headers: A.from(R.headers),
1280
+ status: R.status,
1281
+ statusText: R.statusText,
1282
+ config: e,
1283
+ request: p
1284
+ });
1285
+ });
1286
+ } catch (w) {
1287
+ throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1288
+ new m("Network Error", m.ERR_NETWORK, e, p),
1289
+ {
1290
+ cause: w.cause || w
1291
+ }
1292
+ ) : m.from(w, w && w.code, e, p);
1293
+ }
1294
+ }), oe = {
1295
+ http: qt,
1296
+ xhr: mn,
1297
+ fetch: Tn
1298
+ };
1299
+ a.forEach(oe, (e, t) => {
977
1300
  if (e) {
978
1301
  try {
979
1302
  Object.defineProperty(e, "name", { value: t });
@@ -982,170 +1305,105 @@ a.forEach(G, (e, t) => {
982
1305
  Object.defineProperty(e, "adapterName", { value: t });
983
1306
  }
984
1307
  });
985
- const ce = (e) => `- ${e}`, Wt = (e) => a.isFunction(e) || e === null || e === !1, Fe = {
1308
+ const Ae = (e) => `- ${e}`, An = (e) => a.isFunction(e) || e === null || e === !1, Ge = {
986
1309
  getAdapter: (e) => {
987
1310
  e = a.isArray(e) ? e : [e];
988
1311
  const { length: t } = e;
989
1312
  let n, r;
990
1313
  const s = {};
991
- for (let o = 0; o < t; o++) {
992
- n = e[o];
993
- let i;
994
- if (r = n, !Wt(n) && (r = G[(i = String(n)).toLowerCase()], r === void 0))
995
- throw new m(`Unknown adapter '${i}'`);
1314
+ for (let i = 0; i < t; i++) {
1315
+ n = e[i];
1316
+ let o;
1317
+ if (r = n, !An(n) && (r = oe[(o = String(n)).toLowerCase()], r === void 0))
1318
+ throw new m(`Unknown adapter '${o}'`);
996
1319
  if (r)
997
1320
  break;
998
- s[i || "#" + o] = r;
1321
+ s[o || "#" + i] = r;
999
1322
  }
1000
1323
  if (!r) {
1001
- const o = Object.entries(s).map(
1002
- ([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1324
+ const i = Object.entries(s).map(
1325
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1003
1326
  );
1004
- let i = t ? o.length > 1 ? `since :
1005
- ` + o.map(ce).join(`
1006
- `) : " " + ce(o[0]) : "as no adapter specified";
1327
+ let o = t ? i.length > 1 ? `since :
1328
+ ` + i.map(Ae).join(`
1329
+ `) : " " + Ae(i[0]) : "as no adapter specified";
1007
1330
  throw new m(
1008
- "There is no suitable adapter to dispatch the request " + i,
1331
+ "There is no suitable adapter to dispatch the request " + o,
1009
1332
  "ERR_NOT_SUPPORT"
1010
1333
  );
1011
1334
  }
1012
1335
  return r;
1013
1336
  },
1014
- adapters: G
1337
+ adapters: oe
1015
1338
  };
1016
- function W(e) {
1339
+ function ee(e) {
1017
1340
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1018
- throw new L(null, e);
1341
+ throw new k(null, e);
1019
1342
  }
1020
- function ue(e) {
1021
- return W(e), e.headers = O.from(e.headers), e.data = V.call(
1343
+ function xe(e) {
1344
+ return ee(e), e.headers = A.from(e.headers), e.data = Y.call(
1022
1345
  e,
1023
1346
  e.transformRequest
1024
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Fe.getAdapter(e.adapter || D.adapter)(e).then(function(r) {
1025
- return W(e), r.data = V.call(
1347
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ge.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
1348
+ return ee(e), r.data = Y.call(
1026
1349
  e,
1027
1350
  e.transformResponse,
1028
1351
  r
1029
- ), r.headers = O.from(r.headers), r;
1352
+ ), r.headers = A.from(r.headers), r;
1030
1353
  }, function(r) {
1031
- return Pe(r) || (W(e), r && r.response && (r.response.data = V.call(
1354
+ return Je(r) || (ee(e), r && r.response && (r.response.data = Y.call(
1032
1355
  e,
1033
1356
  e.transformResponse,
1034
1357
  r.response
1035
- ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1358
+ ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1036
1359
  });
1037
1360
  }
1038
- const le = (e) => e instanceof O ? e.toJSON() : e;
1039
- function C(e, t) {
1040
- t = t || {};
1041
- const n = {};
1042
- function r(h, l, u) {
1043
- return a.isPlainObject(h) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, h, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1044
- }
1045
- function s(h, l, u) {
1046
- if (a.isUndefined(l)) {
1047
- if (!a.isUndefined(h))
1048
- return r(void 0, h, u);
1049
- } else return r(h, l, u);
1050
- }
1051
- function o(h, l) {
1052
- if (!a.isUndefined(l))
1053
- return r(void 0, l);
1054
- }
1055
- function i(h, l) {
1056
- if (a.isUndefined(l)) {
1057
- if (!a.isUndefined(h))
1058
- return r(void 0, h);
1059
- } else return r(void 0, l);
1060
- }
1061
- function c(h, l, u) {
1062
- if (u in t)
1063
- return r(h, l);
1064
- if (u in e)
1065
- return r(void 0, h);
1066
- }
1067
- const p = {
1068
- url: o,
1069
- method: o,
1070
- data: o,
1071
- baseURL: i,
1072
- transformRequest: i,
1073
- transformResponse: i,
1074
- paramsSerializer: i,
1075
- timeout: i,
1076
- timeoutMessage: i,
1077
- withCredentials: i,
1078
- withXSRFToken: i,
1079
- adapter: i,
1080
- responseType: i,
1081
- xsrfCookieName: i,
1082
- xsrfHeaderName: i,
1083
- onUploadProgress: i,
1084
- onDownloadProgress: i,
1085
- decompress: i,
1086
- maxContentLength: i,
1087
- maxBodyLength: i,
1088
- beforeRedirect: i,
1089
- transport: i,
1090
- httpAgent: i,
1091
- httpsAgent: i,
1092
- cancelToken: i,
1093
- socketPath: i,
1094
- responseEncoding: i,
1095
- validateStatus: c,
1096
- headers: (h, l) => s(le(h), le(l), !0)
1097
- };
1098
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1099
- const u = p[l] || s, E = u(e[l], t[l], l);
1100
- a.isUndefined(E) && u !== c || (n[l] = E);
1101
- }), n;
1102
- }
1103
- const _e = "1.6.7", Y = {};
1361
+ const Xe = "1.7.7", fe = {};
1104
1362
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1105
- Y[e] = function(r) {
1363
+ fe[e] = function(r) {
1106
1364
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1107
1365
  };
1108
1366
  });
1109
- const fe = {};
1110
- Y.transitional = function(t, n, r) {
1111
- function s(o, i) {
1112
- return "[Axios v" + _e + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1367
+ const Ce = {};
1368
+ fe.transitional = function(t, n, r) {
1369
+ function s(i, o) {
1370
+ return "[Axios v" + Xe + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1113
1371
  }
1114
- return (o, i, c) => {
1372
+ return (i, o, c) => {
1115
1373
  if (t === !1)
1116
1374
  throw new m(
1117
- s(i, " has been removed" + (n ? " in " + n : "")),
1375
+ s(o, " has been removed" + (n ? " in " + n : "")),
1118
1376
  m.ERR_DEPRECATED
1119
1377
  );
1120
- return n && !fe[i] && (fe[i] = !0), t ? t(o, i, c) : !0;
1378
+ return n && !Ce[o] && (Ce[o] = !0), t ? t(i, o, c) : !0;
1121
1379
  };
1122
1380
  };
1123
- function $t(e, t, n) {
1381
+ function xn(e, t, n) {
1124
1382
  if (typeof e != "object")
1125
1383
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1126
1384
  const r = Object.keys(e);
1127
1385
  let s = r.length;
1128
1386
  for (; s-- > 0; ) {
1129
- const o = r[s], i = t[o];
1130
- if (i) {
1131
- const c = e[o], p = c === void 0 || i(c, o, e);
1132
- if (p !== !0)
1133
- throw new m("option " + o + " must be " + p, m.ERR_BAD_OPTION_VALUE);
1387
+ const i = r[s], o = t[i];
1388
+ if (o) {
1389
+ const c = e[i], f = c === void 0 || o(c, i, e);
1390
+ if (f !== !0)
1391
+ throw new m("option " + i + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1134
1392
  continue;
1135
1393
  }
1136
1394
  if (n !== !0)
1137
- throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1395
+ throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1138
1396
  }
1139
1397
  }
1140
- const X = {
1141
- assertOptions: $t,
1142
- validators: Y
1143
- }, N = X.validators;
1144
- class P {
1398
+ const ie = {
1399
+ assertOptions: xn,
1400
+ validators: fe
1401
+ }, _ = ie.validators;
1402
+ class B {
1145
1403
  constructor(t) {
1146
1404
  this.defaults = t, this.interceptors = {
1147
- request: new oe(),
1148
- response: new oe()
1405
+ request: new we(),
1406
+ response: new we()
1149
1407
  };
1150
1408
  }
1151
1409
  /**
@@ -1163,81 +1421,84 @@ class P {
1163
1421
  if (r instanceof Error) {
1164
1422
  let s;
1165
1423
  Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1166
- const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1167
- r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1168
- ` + o) : r.stack = o;
1424
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1425
+ try {
1426
+ r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1427
+ ` + i) : r.stack = i;
1428
+ } catch {
1429
+ }
1169
1430
  }
1170
1431
  throw r;
1171
1432
  }
1172
1433
  }
1173
1434
  _request(t, n) {
1174
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = C(this.defaults, n);
1175
- const { transitional: r, paramsSerializer: s, headers: o } = n;
1176
- r !== void 0 && X.assertOptions(r, {
1177
- silentJSONParsing: N.transitional(N.boolean),
1178
- forcedJSONParsing: N.transitional(N.boolean),
1179
- clarifyTimeoutError: N.transitional(N.boolean)
1435
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n);
1436
+ const { transitional: r, paramsSerializer: s, headers: i } = n;
1437
+ r !== void 0 && ie.assertOptions(r, {
1438
+ silentJSONParsing: _.transitional(_.boolean),
1439
+ forcedJSONParsing: _.transitional(_.boolean),
1440
+ clarifyTimeoutError: _.transitional(_.boolean)
1180
1441
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1181
1442
  serialize: s
1182
- } : X.assertOptions(s, {
1183
- encode: N.function,
1184
- serialize: N.function
1443
+ } : ie.assertOptions(s, {
1444
+ encode: _.function,
1445
+ serialize: _.function
1185
1446
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1186
- let i = o && a.merge(
1187
- o.common,
1188
- o[n.method]
1447
+ let o = i && a.merge(
1448
+ i.common,
1449
+ i[n.method]
1189
1450
  );
1190
- o && a.forEach(
1451
+ i && a.forEach(
1191
1452
  ["delete", "get", "head", "post", "put", "patch", "common"],
1192
- (f) => {
1193
- delete o[f];
1453
+ (p) => {
1454
+ delete i[p];
1194
1455
  }
1195
- ), n.headers = O.concat(i, o);
1456
+ ), n.headers = A.concat(o, i);
1196
1457
  const c = [];
1197
- let p = !0;
1198
- this.interceptors.request.forEach(function(d) {
1199
- typeof d.runWhen == "function" && d.runWhen(n) === !1 || (p = p && d.synchronous, c.unshift(d.fulfilled, d.rejected));
1458
+ let f = !0;
1459
+ this.interceptors.request.forEach(function(y) {
1460
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1200
1461
  });
1201
- const h = [];
1202
- this.interceptors.response.forEach(function(d) {
1203
- h.push(d.fulfilled, d.rejected);
1462
+ const u = [];
1463
+ this.interceptors.response.forEach(function(y) {
1464
+ u.push(y.fulfilled, y.rejected);
1204
1465
  });
1205
- let l, u = 0, E;
1206
- if (!p) {
1207
- const f = [ue.bind(this), void 0];
1208
- for (f.unshift.apply(f, c), f.push.apply(f, h), E = f.length, l = Promise.resolve(n); u < E; )
1209
- l = l.then(f[u++], f[u++]);
1466
+ let l, d = 0, b;
1467
+ if (!f) {
1468
+ const p = [xe.bind(this), void 0];
1469
+ for (p.unshift.apply(p, c), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); d < b; )
1470
+ l = l.then(p[d++], p[d++]);
1210
1471
  return l;
1211
1472
  }
1212
- E = c.length;
1213
- let S = n;
1214
- for (u = 0; u < E; ) {
1215
- const f = c[u++], d = c[u++];
1473
+ b = c.length;
1474
+ let g = n;
1475
+ for (d = 0; d < b; ) {
1476
+ const p = c[d++], y = c[d++];
1216
1477
  try {
1217
- S = f(S);
1218
- } catch (w) {
1219
- d.call(this, w);
1478
+ g = p(g);
1479
+ } catch (h) {
1480
+ y.call(this, h);
1220
1481
  break;
1221
1482
  }
1222
1483
  }
1223
1484
  try {
1224
- l = ue.call(this, S);
1225
- } catch (f) {
1226
- return Promise.reject(f);
1485
+ l = xe.call(this, g);
1486
+ } catch (p) {
1487
+ return Promise.reject(p);
1227
1488
  }
1228
- for (u = 0, E = h.length; u < E; )
1229
- l = l.then(h[u++], h[u++]);
1489
+ for (d = 0, b = u.length; d < b; )
1490
+ l = l.then(u[d++], u[d++]);
1230
1491
  return l;
1231
1492
  }
1232
1493
  getUri(t) {
1233
- t = C(this.defaults, t);
1234
- const n = Ce(t.baseURL, t.url);
1235
- return Te(n, t.params, t.paramsSerializer);
1494
+ t = D(this.defaults, t);
1495
+ const n = ve(t.baseURL, t.url);
1496
+ return He(n, t.params, t.paramsSerializer);
1236
1497
  }
1237
1498
  }
1238
1499
  a.forEach(["delete", "get", "head", "options"], function(t) {
1239
- P.prototype[t] = function(n, r) {
1240
- return this.request(C(r || {}, {
1500
+ B.prototype[t] = function(n, r) {
1501
+ return this.request(D(r || {}, {
1241
1502
  method: t,
1242
1503
  url: n,
1243
1504
  data: (r || {}).data
@@ -1246,44 +1507,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1246
1507
  });
1247
1508
  a.forEach(["post", "put", "patch"], function(t) {
1248
1509
  function n(r) {
1249
- return function(o, i, c) {
1250
- return this.request(C(c || {}, {
1510
+ return function(i, o, c) {
1511
+ return this.request(D(c || {}, {
1251
1512
  method: t,
1252
1513
  headers: r ? {
1253
1514
  "Content-Type": "multipart/form-data"
1254
1515
  } : {},
1255
- url: o,
1256
- data: i
1516
+ url: i,
1517
+ data: o
1257
1518
  }));
1258
1519
  };
1259
1520
  }
1260
- P.prototype[t] = n(), P.prototype[t + "Form"] = n(!0);
1521
+ B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1261
1522
  });
1262
- class ee {
1523
+ class de {
1263
1524
  constructor(t) {
1264
1525
  if (typeof t != "function")
1265
1526
  throw new TypeError("executor must be a function.");
1266
1527
  let n;
1267
- this.promise = new Promise(function(o) {
1268
- n = o;
1528
+ this.promise = new Promise(function(i) {
1529
+ n = i;
1269
1530
  });
1270
1531
  const r = this;
1271
1532
  this.promise.then((s) => {
1272
1533
  if (!r._listeners) return;
1273
- let o = r._listeners.length;
1274
- for (; o-- > 0; )
1275
- r._listeners[o](s);
1534
+ let i = r._listeners.length;
1535
+ for (; i-- > 0; )
1536
+ r._listeners[i](s);
1276
1537
  r._listeners = null;
1277
1538
  }), this.promise.then = (s) => {
1278
- let o;
1279
- const i = new Promise((c) => {
1280
- r.subscribe(c), o = c;
1539
+ let i;
1540
+ const o = new Promise((c) => {
1541
+ r.subscribe(c), i = c;
1281
1542
  }).then(s);
1282
- return i.cancel = function() {
1283
- r.unsubscribe(o);
1284
- }, i;
1285
- }, t(function(o, i, c) {
1286
- r.reason || (r.reason = new L(o, i, c), n(r.reason));
1543
+ return o.cancel = function() {
1544
+ r.unsubscribe(i);
1545
+ }, o;
1546
+ }, t(function(i, o, c) {
1547
+ r.reason || (r.reason = new k(i, o, c), n(r.reason));
1287
1548
  });
1288
1549
  }
1289
1550
  /**
@@ -1312,6 +1573,12 @@ class ee {
1312
1573
  const n = this._listeners.indexOf(t);
1313
1574
  n !== -1 && this._listeners.splice(n, 1);
1314
1575
  }
1576
+ toAbortSignal() {
1577
+ const t = new AbortController(), n = (r) => {
1578
+ t.abort(r);
1579
+ };
1580
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1581
+ }
1315
1582
  /**
1316
1583
  * Returns an object that contains a new `CancelToken` and a function that, when called,
1317
1584
  * cancels the `CancelToken`.
@@ -1319,22 +1586,22 @@ class ee {
1319
1586
  static source() {
1320
1587
  let t;
1321
1588
  return {
1322
- token: new ee(function(s) {
1589
+ token: new de(function(s) {
1323
1590
  t = s;
1324
1591
  }),
1325
1592
  cancel: t
1326
1593
  };
1327
1594
  }
1328
1595
  }
1329
- function Kt(e) {
1596
+ function Cn(e) {
1330
1597
  return function(n) {
1331
1598
  return e.apply(null, n);
1332
1599
  };
1333
1600
  }
1334
- function Gt(e) {
1601
+ function Nn(e) {
1335
1602
  return a.isObject(e) && e.isAxiosError === !0;
1336
1603
  }
1337
- const v = {
1604
+ const ae = {
1338
1605
  Continue: 100,
1339
1606
  SwitchingProtocols: 101,
1340
1607
  Processing: 102,
@@ -1399,36 +1666,36 @@ const v = {
1399
1666
  NotExtended: 510,
1400
1667
  NetworkAuthenticationRequired: 511
1401
1668
  };
1402
- Object.entries(v).forEach(([e, t]) => {
1403
- v[t] = e;
1669
+ Object.entries(ae).forEach(([e, t]) => {
1670
+ ae[t] = e;
1404
1671
  });
1405
- function Be(e) {
1406
- const t = new P(e), n = de(P.prototype.request, t);
1407
- return a.extend(n, P.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1408
- return Be(C(e, s));
1672
+ function Qe(e) {
1673
+ const t = new B(e), n = Ne(B.prototype.request, t);
1674
+ return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1675
+ return Qe(D(e, s));
1409
1676
  }, n;
1410
1677
  }
1411
- const y = Be(D);
1412
- y.Axios = P;
1413
- y.CanceledError = L;
1414
- y.CancelToken = ee;
1415
- y.isCancel = Pe;
1416
- y.VERSION = _e;
1417
- y.toFormData = M;
1418
- y.AxiosError = m;
1419
- y.Cancel = y.CanceledError;
1420
- y.all = function(t) {
1678
+ const E = Qe(H);
1679
+ E.Axios = B;
1680
+ E.CanceledError = k;
1681
+ E.CancelToken = de;
1682
+ E.isCancel = Je;
1683
+ E.VERSION = Xe;
1684
+ E.toFormData = G;
1685
+ E.AxiosError = m;
1686
+ E.Cancel = E.CanceledError;
1687
+ E.all = function(t) {
1421
1688
  return Promise.all(t);
1422
1689
  };
1423
- y.spread = Kt;
1424
- y.isAxiosError = Gt;
1425
- y.mergeConfig = C;
1426
- y.AxiosHeaders = O;
1427
- y.formToJSON = (e) => Ne(a.isHTMLForm(e) ? new FormData(e) : e);
1428
- y.getAdapter = Fe.getAdapter;
1429
- y.HttpStatusCode = v;
1430
- y.default = y;
1431
- const vt = async (e) => {
1690
+ E.spread = Cn;
1691
+ E.isAxiosError = Nn;
1692
+ E.mergeConfig = D;
1693
+ E.AxiosHeaders = A;
1694
+ E.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e);
1695
+ E.getAdapter = Ge.getAdapter;
1696
+ E.HttpStatusCode = ae;
1697
+ E.default = E;
1698
+ const _n = async (e) => {
1432
1699
  var s;
1433
1700
  if (!e) return "";
1434
1701
  let t = e;
@@ -1436,14 +1703,14 @@ const vt = async (e) => {
1436
1703
  n && (t = `/${t}`.replace(/\/\//g, "/"));
1437
1704
  let r = "";
1438
1705
  try {
1439
- const o = { baseURL: n && De().baseURL || "" }, i = await y.create().head(t, o);
1440
- if (!(i != null && i.headers)) return r;
1441
- const c = ((s = i == null ? void 0 : i.headers) == null ? void 0 : s.get("content-disposition")) || "";
1706
+ const i = { baseURL: n && Ze().baseURL || "" }, o = await E.create().head(t, i);
1707
+ if (!(o != null && o.headers)) return r;
1708
+ const c = ((s = o == null ? void 0 : o.headers) == null ? void 0 : s.get("content-disposition")) || "";
1442
1709
  return c && c.includes("filename=") && (r = c.split("filename=")[1].replace(/"/g, ""), r = decodeURIComponent(r)), r || (r = t.substring(t.lastIndexOf("/") + 1) || ""), r;
1443
1710
  } catch {
1444
1711
  return r;
1445
1712
  }
1446
1713
  };
1447
1714
  export {
1448
- vt as extractFilename
1715
+ _n as extractFilename
1449
1716
  };