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