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