@das-fed/upf-utils 6.4.0-dev.149 → 6.4.0-dev.151

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