@acrool/react-fetcher 0.0.2-alpha.0 → 0.0.2-alpha.10
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/README.md +79 -49
- package/dist/AuthStateProvider/AuthStateProvider.d.ts +2 -2
- package/dist/FetcherProvider/FetcherProvider.d.ts +14 -9
- package/dist/FetcherProvider/index.d.ts +2 -1
- package/dist/FetcherProvider/types.d.ts +2 -1
- package/dist/FetcherProvider/utils.d.ts +9 -4
- package/dist/acrool-react-fetcher.es.js +2242 -2182
- package/dist/{FetcherProvider/config.d.ts → config/i18nDict.d.ts} +0 -1
- package/dist/createAxios.d.ts +2 -0
- package/dist/fetchers/config.d.ts +1 -0
- package/dist/fetchers/createGraphQLFetcher/createGraphQLFetcher.d.ts +11 -0
- package/dist/fetchers/createGraphQLFetcher/index.d.ts +2 -0
- package/dist/fetchers/createGraphQLFetcher/types.d.ts +8 -0
- package/dist/fetchers/createRestFulFetcher/config.d.ts +5 -0
- package/dist/fetchers/createRestFulFetcher/createRestFulFetcher.d.ts +11 -0
- package/dist/fetchers/createRestFulFetcher/index.d.ts +3 -0
- package/dist/fetchers/createRestFulFetcher/types.d.ts +11 -0
- package/dist/fetchers/createRestFulFetcher/utils.d.ts +13 -0
- package/dist/fetchers/index.d.ts +3 -2
- package/dist/fetchers/types.d.ts +9 -7
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/fetchers/graphqlFetcher.d.ts +0 -4
- /package/dist/fetchers/{utils.d.ts → createGraphQLFetcher/utils.d.ts} +0 -0
|
@@ -1,2327 +1,2387 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const n = Yt.call(t);
|
|
12
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
13
|
-
})(/* @__PURE__ */ Object.create(null)), U = (e) => (e = e.toLowerCase(), (t) => he(t) === e), me = (e) => (t) => typeof t === e, { isArray: V } = Array, ee = me("undefined");
|
|
14
|
-
function Kt(e) {
|
|
15
|
-
return e !== null && !ee(e) && e.constructor !== null && !ee(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
16
|
-
}
|
|
17
|
-
const pt = U("ArrayBuffer");
|
|
18
|
-
function Xt(e) {
|
|
19
|
-
let t;
|
|
20
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var Jt = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var $ = (e, t, n) => Jt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import Wt, { createContext as ft, useContext as Vt, useState as We, useEffect as Yt, useLayoutEffect as Kt } from "react";
|
|
5
|
+
function dt(e) {
|
|
6
|
+
return new Promise((t) => {
|
|
7
|
+
setTimeout(() => {
|
|
8
|
+
t(!0);
|
|
9
|
+
}, e);
|
|
10
|
+
});
|
|
21
11
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
38
|
-
t.call(null, e[r], r, e);
|
|
39
|
-
else {
|
|
40
|
-
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
41
|
-
let c;
|
|
42
|
-
for (r = 0; r < i; r++)
|
|
43
|
-
c = o[r], t.call(null, e[c], c, e);
|
|
12
|
+
const pt = 400, Xt = (e) => "File" in window && e instanceof File, Gt = (e) => "Blob" in window && e instanceof Blob, ht = (e, t = ["variables"]) => e && Object.keys(e).reduce((n, r) => {
|
|
13
|
+
const s = e[r];
|
|
14
|
+
if (Xt(s) || Gt(s))
|
|
15
|
+
return {
|
|
16
|
+
variables: { ...n.variables, [r]: null },
|
|
17
|
+
map: [...n.map, t.concat(r).join(".")],
|
|
18
|
+
values: [...n.values, s]
|
|
19
|
+
};
|
|
20
|
+
if (s && typeof s == "object") {
|
|
21
|
+
const o = ht(s, t.concat(r));
|
|
22
|
+
return {
|
|
23
|
+
variables: { ...n.variables, [r]: o.variables },
|
|
24
|
+
map: [...n.map, ...o.map],
|
|
25
|
+
values: [...n.values, ...o.values]
|
|
26
|
+
};
|
|
44
27
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
let r = n.length, s;
|
|
50
|
-
for (; r-- > 0; )
|
|
51
|
-
if (s = n[r], t === s.toLowerCase())
|
|
52
|
-
return s;
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Rt = (e) => !ee(e) && e !== H;
|
|
56
|
-
function Ce() {
|
|
57
|
-
const { caseless: e } = Rt(this) && this || {}, t = {}, n = (r, s) => {
|
|
58
|
-
const o = e && mt(t, s) || s;
|
|
59
|
-
ce(t[o]) && ce(r) ? t[o] = Ce(t[o], r) : ce(r) ? t[o] = Ce({}, r) : V(r) ? t[o] = r.slice() : t[o] = r;
|
|
28
|
+
return {
|
|
29
|
+
...n,
|
|
30
|
+
variables: { ...n.variables, [r]: s },
|
|
31
|
+
values: n.values
|
|
60
32
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
80
|
-
return t;
|
|
81
|
-
}, Rn = (e, t, n) => {
|
|
82
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
83
|
-
const r = e.indexOf(t, n);
|
|
84
|
-
return r !== -1 && r === n;
|
|
85
|
-
}, En = (e) => {
|
|
86
|
-
if (!e) return null;
|
|
87
|
-
if (V(e)) return e;
|
|
88
|
-
let t = e.length;
|
|
89
|
-
if (!ht(t)) return null;
|
|
90
|
-
const n = new Array(t);
|
|
91
|
-
for (; t-- > 0; )
|
|
92
|
-
n[t] = e[t];
|
|
93
|
-
return n;
|
|
94
|
-
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Le(Uint8Array)), yn = (e, t) => {
|
|
95
|
-
const r = (e && e[pe]).call(e);
|
|
96
|
-
let s;
|
|
97
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
98
|
-
const o = s.value;
|
|
99
|
-
t.call(e, o[0], o[1]);
|
|
100
|
-
}
|
|
101
|
-
}, wn = (e, t) => {
|
|
102
|
-
let n;
|
|
103
|
-
const r = [];
|
|
104
|
-
for (; (n = e.exec(t)) !== null; )
|
|
105
|
-
r.push(n);
|
|
106
|
-
return r;
|
|
107
|
-
}, gn = U("HTMLFormElement"), Tn = (e) => e.toLowerCase().replace(
|
|
108
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
|
-
function(n, r, s) {
|
|
110
|
-
return r.toUpperCase() + s;
|
|
111
|
-
}
|
|
112
|
-
), We = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Sn = U("RegExp"), Et = (e, t) => {
|
|
113
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
114
|
-
te(n, (s, o) => {
|
|
115
|
-
let i;
|
|
116
|
-
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
|
-
}), Object.defineProperties(e, r);
|
|
118
|
-
}, On = (e) => {
|
|
119
|
-
Et(e, (t, n) => {
|
|
120
|
-
if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
|
-
return !1;
|
|
122
|
-
const r = e[n];
|
|
123
|
-
if (k(r)) {
|
|
124
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
125
|
-
t.writable = !1;
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
t.set || (t.set = () => {
|
|
129
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
33
|
+
}, { variables: {}, map: [], values: [] }), Wr = (e, t) => async (n) => {
|
|
34
|
+
let r, s;
|
|
35
|
+
const o = n == null ? void 0 : n.fetchOptions, i = n == null ? void 0 : n.variables;
|
|
36
|
+
let c = !1;
|
|
37
|
+
if (i) {
|
|
38
|
+
const p = ht(i);
|
|
39
|
+
if (c = p.values.length > 0, c) {
|
|
40
|
+
s = "multipart/form-data";
|
|
41
|
+
const b = JSON.stringify({
|
|
42
|
+
query: t,
|
|
43
|
+
variables: p.variables
|
|
44
|
+
}), T = p.map.reduce((R, m, S) => (R[S] = [m], R), {}), h = [
|
|
45
|
+
{ name: "operations", value: b },
|
|
46
|
+
{ name: "map", value: JSON.stringify(T) },
|
|
47
|
+
...p.values.map((R, m) => ({ name: m, value: R }))
|
|
48
|
+
];
|
|
49
|
+
r = new FormData(), h.forEach((R) => {
|
|
50
|
+
r.append(R.name.toString(), R.value);
|
|
130
51
|
});
|
|
131
52
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
s
|
|
136
|
-
|
|
137
|
-
|
|
53
|
+
}
|
|
54
|
+
c || (s = "application/json", r = JSON.stringify({ query: t, variables: i }));
|
|
55
|
+
const d = "", l = {
|
|
56
|
+
"Content-Type": s,
|
|
57
|
+
"Apollo-Require-Preflight": "true",
|
|
58
|
+
"X-Requested-With": "XMLHttpRequest",
|
|
59
|
+
...o == null ? void 0 : o.headers
|
|
60
|
+
}, [u] = await Promise.all([
|
|
61
|
+
e.post(d, r, {
|
|
62
|
+
...o,
|
|
63
|
+
headers: l
|
|
64
|
+
}),
|
|
65
|
+
dt((o == null ? void 0 : o.leastTime) ?? pt)
|
|
66
|
+
]);
|
|
67
|
+
return u.data.data;
|
|
68
|
+
};
|
|
69
|
+
function Zt(e) {
|
|
70
|
+
const t = new FormData(), n = (r, s = "") => {
|
|
71
|
+
for (const [o, i] of Object.entries(r)) {
|
|
72
|
+
const c = s ? `${s}[${o}]` : o;
|
|
73
|
+
if (i instanceof File)
|
|
74
|
+
t.append(c, i);
|
|
75
|
+
else if (i instanceof Blob) {
|
|
76
|
+
const d = i.type.split("/")[1] || "bin", l = `${o}.${d}`;
|
|
77
|
+
t.append(c, i, l);
|
|
78
|
+
} else Array.isArray(i) ? i.forEach((d, l) => {
|
|
79
|
+
typeof d == "object" && d !== null ? n(d, `${c}[${l}]`) : t.append(`${c}[${l}]`, d);
|
|
80
|
+
}) : typeof i == "object" && i !== null ? n(i, c) : i != null && t.append(c, i);
|
|
81
|
+
}
|
|
138
82
|
};
|
|
139
|
-
return
|
|
140
|
-
}, xn = () => {
|
|
141
|
-
}, _n = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
142
|
-
function Nn(e) {
|
|
143
|
-
return !!(e && k(e.append) && e[dt] === "FormData" && e[pe]);
|
|
83
|
+
return n(e), t;
|
|
144
84
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
85
|
+
var de = /* @__PURE__ */ ((e) => (e.formData = "multipart/form-data", e.formUrlDecode = "application/x-www-form-urlencoded", e.json = "application/json", e))(de || {});
|
|
86
|
+
const Qt = (e, t = {}) => e === de.formData ? Zt(t) : (e === de.formUrlDecode && new URLSearchParams(t).toString(), JSON.stringify(t)), en = (e) => de.json, Vr = (e, t, n = en) => async (r) => {
|
|
87
|
+
var u, p;
|
|
88
|
+
const s = (t == null ? void 0 : t.method) || "", o = (u = r == null ? void 0 : r.fetchOptions) == null ? void 0 : u.fetchOptions, i = r == null ? void 0 : r.params, c = ((p = o == null ? void 0 : o.headers) == null ? void 0 : p.contentType) ?? n(s), d = {
|
|
89
|
+
url: t.url,
|
|
90
|
+
method: s,
|
|
91
|
+
params: i,
|
|
92
|
+
data: Qt(c, r == null ? void 0 : r.body),
|
|
93
|
+
...o,
|
|
94
|
+
headers: {
|
|
95
|
+
...o == null ? void 0 : o.headers,
|
|
96
|
+
"Content-Type": c
|
|
158
97
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, !1), (s) => {
|
|
165
|
-
r.push(s), H.postMessage(n, "*");
|
|
166
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
167
|
-
typeof setImmediate == "function",
|
|
168
|
-
k(H.postMessage)
|
|
169
|
-
), Fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || bt, vn = (e) => e != null && k(e[pe]), a = {
|
|
170
|
-
isArray: V,
|
|
171
|
-
isArrayBuffer: pt,
|
|
172
|
-
isBuffer: Kt,
|
|
173
|
-
isFormData: sn,
|
|
174
|
-
isArrayBufferView: Xt,
|
|
175
|
-
isString: Zt,
|
|
176
|
-
isNumber: ht,
|
|
177
|
-
isBoolean: Gt,
|
|
178
|
-
isObject: Re,
|
|
179
|
-
isPlainObject: ce,
|
|
180
|
-
isReadableStream: an,
|
|
181
|
-
isRequest: cn,
|
|
182
|
-
isResponse: un,
|
|
183
|
-
isHeaders: ln,
|
|
184
|
-
isUndefined: ee,
|
|
185
|
-
isDate: Qt,
|
|
186
|
-
isFile: en,
|
|
187
|
-
isBlob: tn,
|
|
188
|
-
isRegExp: Sn,
|
|
189
|
-
isFunction: k,
|
|
190
|
-
isStream: rn,
|
|
191
|
-
isURLSearchParams: on,
|
|
192
|
-
isTypedArray: bn,
|
|
193
|
-
isFileList: nn,
|
|
194
|
-
forEach: te,
|
|
195
|
-
merge: Ce,
|
|
196
|
-
extend: dn,
|
|
197
|
-
trim: fn,
|
|
198
|
-
stripBOM: pn,
|
|
199
|
-
inherits: hn,
|
|
200
|
-
toFlatObject: mn,
|
|
201
|
-
kindOf: he,
|
|
202
|
-
kindOfTest: U,
|
|
203
|
-
endsWith: Rn,
|
|
204
|
-
toArray: En,
|
|
205
|
-
forEachEntry: yn,
|
|
206
|
-
matchAll: wn,
|
|
207
|
-
isHTMLForm: gn,
|
|
208
|
-
hasOwnProperty: We,
|
|
209
|
-
hasOwnProp: We,
|
|
210
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
211
|
-
reduceDescriptors: Et,
|
|
212
|
-
freezeMethods: On,
|
|
213
|
-
toObjectSet: An,
|
|
214
|
-
toCamelCase: Tn,
|
|
215
|
-
noop: xn,
|
|
216
|
-
toFiniteNumber: _n,
|
|
217
|
-
findKey: mt,
|
|
218
|
-
global: H,
|
|
219
|
-
isContextDefined: Rt,
|
|
220
|
-
isSpecCompliantForm: Nn,
|
|
221
|
-
toJSONObject: Cn,
|
|
222
|
-
isAsyncFn: Pn,
|
|
223
|
-
isThenable: kn,
|
|
224
|
-
setImmediate: bt,
|
|
225
|
-
asap: Fn,
|
|
226
|
-
isIterable: vn
|
|
98
|
+
}, [l] = await Promise.all([
|
|
99
|
+
e(d),
|
|
100
|
+
dt((o == null ? void 0 : o.leastTime) ?? pt)
|
|
101
|
+
]);
|
|
102
|
+
return l.data;
|
|
227
103
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
104
|
+
var ce = { exports: {} }, G = {};
|
|
105
|
+
/**
|
|
106
|
+
* @license React
|
|
107
|
+
* react-jsx-runtime.production.js
|
|
108
|
+
*
|
|
109
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the MIT license found in the
|
|
112
|
+
* LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/
|
|
114
|
+
var Ve;
|
|
115
|
+
function tn() {
|
|
116
|
+
if (Ve) return G;
|
|
117
|
+
Ve = 1;
|
|
118
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
119
|
+
function n(r, s, o) {
|
|
120
|
+
var i = null;
|
|
121
|
+
if (o !== void 0 && (i = "" + o), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
122
|
+
o = {};
|
|
123
|
+
for (var c in s)
|
|
124
|
+
c !== "key" && (o[c] = s[c]);
|
|
125
|
+
} else o = s;
|
|
126
|
+
return s = o.ref, {
|
|
127
|
+
$$typeof: e,
|
|
128
|
+
type: r,
|
|
129
|
+
key: i,
|
|
130
|
+
ref: s !== void 0 ? s : null,
|
|
131
|
+
props: o
|
|
249
132
|
};
|
|
250
133
|
}
|
|
251
|
-
|
|
252
|
-
const yt = b.prototype, wt = {};
|
|
253
|
-
[
|
|
254
|
-
"ERR_BAD_OPTION_VALUE",
|
|
255
|
-
"ERR_BAD_OPTION",
|
|
256
|
-
"ECONNABORTED",
|
|
257
|
-
"ETIMEDOUT",
|
|
258
|
-
"ERR_NETWORK",
|
|
259
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
260
|
-
"ERR_DEPRECATED",
|
|
261
|
-
"ERR_BAD_RESPONSE",
|
|
262
|
-
"ERR_BAD_REQUEST",
|
|
263
|
-
"ERR_CANCELED",
|
|
264
|
-
"ERR_NOT_SUPPORT",
|
|
265
|
-
"ERR_INVALID_URL"
|
|
266
|
-
// eslint-disable-next-line func-names
|
|
267
|
-
].forEach((e) => {
|
|
268
|
-
wt[e] = { value: e };
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperties(b, wt);
|
|
271
|
-
Object.defineProperty(yt, "isAxiosError", { value: !0 });
|
|
272
|
-
b.from = (e, t, n, r, s, o) => {
|
|
273
|
-
const i = Object.create(yt);
|
|
274
|
-
return a.toFlatObject(e, i, function(h) {
|
|
275
|
-
return h !== Error.prototype;
|
|
276
|
-
}, (c) => c !== "isAxiosError"), b.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
277
|
-
};
|
|
278
|
-
const jn = null;
|
|
279
|
-
function Pe(e) {
|
|
280
|
-
return a.isPlainObject(e) || a.isArray(e);
|
|
281
|
-
}
|
|
282
|
-
function gt(e) {
|
|
283
|
-
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
284
|
-
}
|
|
285
|
-
function Ve(e, t, n) {
|
|
286
|
-
return e ? e.concat(t).map(function(s, o) {
|
|
287
|
-
return s = gt(s), !n && o ? "[" + s + "]" : s;
|
|
288
|
-
}).join(n ? "." : "") : t;
|
|
289
|
-
}
|
|
290
|
-
function Ln(e) {
|
|
291
|
-
return a.isArray(e) && !e.some(Pe);
|
|
134
|
+
return G.Fragment = t, G.jsx = n, G.jsxs = n, G;
|
|
292
135
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
136
|
+
var Z = {};
|
|
137
|
+
/**
|
|
138
|
+
* @license React
|
|
139
|
+
* react-jsx-runtime.development.js
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the MIT license found in the
|
|
144
|
+
* LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/
|
|
146
|
+
var Ye;
|
|
147
|
+
function nn() {
|
|
148
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
149
|
+
function e(f) {
|
|
150
|
+
if (f == null) return null;
|
|
151
|
+
if (typeof f == "function")
|
|
152
|
+
return f.$$typeof === V ? null : f.displayName || f.name || null;
|
|
153
|
+
if (typeof f == "string") return f;
|
|
154
|
+
switch (f) {
|
|
155
|
+
case R:
|
|
156
|
+
return "Fragment";
|
|
157
|
+
case S:
|
|
158
|
+
return "Profiler";
|
|
159
|
+
case m:
|
|
160
|
+
return "StrictMode";
|
|
161
|
+
case g:
|
|
162
|
+
return "Suspense";
|
|
163
|
+
case N:
|
|
164
|
+
return "SuspenseList";
|
|
165
|
+
case v:
|
|
166
|
+
return "Activity";
|
|
167
|
+
}
|
|
168
|
+
if (typeof f == "object")
|
|
169
|
+
switch (typeof f.tag == "number" && console.error(
|
|
170
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
171
|
+
), f.$$typeof) {
|
|
172
|
+
case h:
|
|
173
|
+
return "Portal";
|
|
174
|
+
case E:
|
|
175
|
+
return (f.displayName || "Context") + ".Provider";
|
|
176
|
+
case A:
|
|
177
|
+
return (f._context.displayName || "Context") + ".Consumer";
|
|
178
|
+
case O:
|
|
179
|
+
var w = f.render;
|
|
180
|
+
return f = f.displayName, f || (f = w.displayName || w.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
|
|
181
|
+
case P:
|
|
182
|
+
return w = f.displayName || null, w !== null ? w : e(f.type) || "Memo";
|
|
183
|
+
case B:
|
|
184
|
+
w = f._payload, f = f._init;
|
|
185
|
+
try {
|
|
186
|
+
return e(f(w));
|
|
187
|
+
} catch {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
330
191
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
const R = [], E = Object.assign(Un, {
|
|
334
|
-
defaultVisitor: u,
|
|
335
|
-
convertValue: l,
|
|
336
|
-
isVisitable: Pe
|
|
337
|
-
});
|
|
338
|
-
function g(m, p) {
|
|
339
|
-
if (!a.isUndefined(m)) {
|
|
340
|
-
if (R.indexOf(m) !== -1)
|
|
341
|
-
throw Error("Circular reference detected in " + p.join("."));
|
|
342
|
-
R.push(m), a.forEach(m, function(w, T) {
|
|
343
|
-
(!(a.isUndefined(w) || w === null) && s.call(
|
|
344
|
-
t,
|
|
345
|
-
w,
|
|
346
|
-
a.isString(T) ? T.trim() : T,
|
|
347
|
-
p,
|
|
348
|
-
E
|
|
349
|
-
)) === !0 && g(w, p ? p.concat(T) : [T]);
|
|
350
|
-
}), R.pop();
|
|
192
|
+
function t(f) {
|
|
193
|
+
return "" + f;
|
|
351
194
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
195
|
+
function n(f) {
|
|
196
|
+
try {
|
|
197
|
+
t(f);
|
|
198
|
+
var w = !1;
|
|
199
|
+
} catch {
|
|
200
|
+
w = !0;
|
|
201
|
+
}
|
|
202
|
+
if (w) {
|
|
203
|
+
w = console;
|
|
204
|
+
var _ = w.error, C = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
205
|
+
return _.call(
|
|
206
|
+
w,
|
|
207
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
208
|
+
C
|
|
209
|
+
), t(f);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function r(f) {
|
|
213
|
+
if (f === R) return "<>";
|
|
214
|
+
if (typeof f == "object" && f !== null && f.$$typeof === B)
|
|
215
|
+
return "<...>";
|
|
216
|
+
try {
|
|
217
|
+
var w = e(f);
|
|
218
|
+
return w ? "<" + w + ">" : "<...>";
|
|
219
|
+
} catch {
|
|
220
|
+
return "<...>";
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function s() {
|
|
224
|
+
var f = H.A;
|
|
225
|
+
return f === null ? null : f.getOwner();
|
|
226
|
+
}
|
|
227
|
+
function o() {
|
|
228
|
+
return Error("react-stack-top-frame");
|
|
229
|
+
}
|
|
230
|
+
function i(f) {
|
|
231
|
+
if (Ie.call(f, "key")) {
|
|
232
|
+
var w = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
233
|
+
if (w && w.isReactWarning) return !1;
|
|
234
|
+
}
|
|
235
|
+
return f.key !== void 0;
|
|
236
|
+
}
|
|
237
|
+
function c(f, w) {
|
|
238
|
+
function _() {
|
|
239
|
+
$e || ($e = !0, console.error(
|
|
240
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
241
|
+
w
|
|
242
|
+
));
|
|
243
|
+
}
|
|
244
|
+
_.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
245
|
+
get: _,
|
|
246
|
+
configurable: !0
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
function d() {
|
|
250
|
+
var f = e(this.type);
|
|
251
|
+
return Me[f] || (Me[f] = !0, console.error(
|
|
252
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
253
|
+
)), f = this.props.ref, f !== void 0 ? f : null;
|
|
254
|
+
}
|
|
255
|
+
function l(f, w, _, C, M, q, Se, Oe) {
|
|
256
|
+
return _ = q.ref, f = {
|
|
257
|
+
$$typeof: T,
|
|
258
|
+
type: f,
|
|
259
|
+
key: w,
|
|
260
|
+
props: q,
|
|
261
|
+
_owner: M
|
|
262
|
+
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(f, "ref", {
|
|
263
|
+
enumerable: !1,
|
|
264
|
+
get: d
|
|
265
|
+
}) : Object.defineProperty(f, "ref", { enumerable: !1, value: null }), f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
266
|
+
configurable: !1,
|
|
267
|
+
enumerable: !1,
|
|
268
|
+
writable: !0,
|
|
269
|
+
value: 0
|
|
270
|
+
}), Object.defineProperty(f, "_debugInfo", {
|
|
271
|
+
configurable: !1,
|
|
272
|
+
enumerable: !1,
|
|
273
|
+
writable: !0,
|
|
274
|
+
value: null
|
|
275
|
+
}), Object.defineProperty(f, "_debugStack", {
|
|
276
|
+
configurable: !1,
|
|
277
|
+
enumerable: !1,
|
|
278
|
+
writable: !0,
|
|
279
|
+
value: Se
|
|
280
|
+
}), Object.defineProperty(f, "_debugTask", {
|
|
281
|
+
configurable: !1,
|
|
282
|
+
enumerable: !1,
|
|
283
|
+
writable: !0,
|
|
284
|
+
value: Oe
|
|
285
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
286
|
+
}
|
|
287
|
+
function u(f, w, _, C, M, q, Se, Oe) {
|
|
288
|
+
var k = w.children;
|
|
289
|
+
if (k !== void 0)
|
|
290
|
+
if (C)
|
|
291
|
+
if (Mt(k)) {
|
|
292
|
+
for (C = 0; C < k.length; C++)
|
|
293
|
+
p(k[C]);
|
|
294
|
+
Object.freeze && Object.freeze(k);
|
|
295
|
+
} else
|
|
296
|
+
console.error(
|
|
297
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
298
|
+
);
|
|
299
|
+
else p(k);
|
|
300
|
+
if (Ie.call(w, "key")) {
|
|
301
|
+
k = e(f);
|
|
302
|
+
var Y = Object.keys(w).filter(function(Ht) {
|
|
303
|
+
return Ht !== "key";
|
|
304
|
+
});
|
|
305
|
+
C = 0 < Y.length ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}", Je[k + C] || (Y = 0 < Y.length ? "{" + Y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
306
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
307
|
+
let props = %s;
|
|
308
|
+
<%s {...props} />
|
|
309
|
+
React keys must be passed directly to JSX without using spread:
|
|
310
|
+
let props = %s;
|
|
311
|
+
<%s key={someKey} {...props} />`,
|
|
312
|
+
C,
|
|
313
|
+
k,
|
|
314
|
+
Y,
|
|
315
|
+
k
|
|
316
|
+
), Je[k + C] = !0);
|
|
317
|
+
}
|
|
318
|
+
if (k = null, _ !== void 0 && (n(_), k = "" + _), i(w) && (n(w.key), k = "" + w.key), "key" in w) {
|
|
319
|
+
_ = {};
|
|
320
|
+
for (var Ae in w)
|
|
321
|
+
Ae !== "key" && (_[Ae] = w[Ae]);
|
|
322
|
+
} else _ = w;
|
|
323
|
+
return k && c(
|
|
324
|
+
_,
|
|
325
|
+
typeof f == "function" ? f.displayName || f.name || "Unknown" : f
|
|
326
|
+
), l(
|
|
327
|
+
f,
|
|
328
|
+
k,
|
|
329
|
+
q,
|
|
330
|
+
M,
|
|
331
|
+
s(),
|
|
332
|
+
_,
|
|
333
|
+
Se,
|
|
334
|
+
Oe
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
function p(f) {
|
|
338
|
+
typeof f == "object" && f !== null && f.$$typeof === T && f._store && (f._store.validated = 1);
|
|
339
|
+
}
|
|
340
|
+
var b = Wt, T = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), E = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), v = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), H = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ie = Object.prototype.hasOwnProperty, Mt = Array.isArray, ge = console.createTask ? console.createTask : function() {
|
|
341
|
+
return null;
|
|
342
|
+
};
|
|
343
|
+
b = {
|
|
344
|
+
"react-stack-bottom-frame": function(f) {
|
|
345
|
+
return f();
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
var $e, Me = {}, He = b["react-stack-bottom-frame"].bind(
|
|
349
|
+
b,
|
|
350
|
+
o
|
|
351
|
+
)(), ze = ge(r(o)), Je = {};
|
|
352
|
+
Z.Fragment = R, Z.jsx = function(f, w, _, C, M) {
|
|
353
|
+
var q = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
354
|
+
return u(
|
|
355
|
+
f,
|
|
356
|
+
w,
|
|
357
|
+
_,
|
|
358
|
+
!1,
|
|
359
|
+
C,
|
|
360
|
+
M,
|
|
361
|
+
q ? Error("react-stack-top-frame") : He,
|
|
362
|
+
q ? ge(r(f)) : ze
|
|
363
|
+
);
|
|
364
|
+
}, Z.jsxs = function(f, w, _, C, M) {
|
|
365
|
+
var q = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
366
|
+
return u(
|
|
367
|
+
f,
|
|
368
|
+
w,
|
|
369
|
+
_,
|
|
370
|
+
!0,
|
|
371
|
+
C,
|
|
372
|
+
M,
|
|
373
|
+
q ? Error("react-stack-top-frame") : He,
|
|
374
|
+
q ? ge(r(f)) : ze
|
|
375
|
+
);
|
|
376
|
+
};
|
|
377
|
+
}()), Z;
|
|
370
378
|
}
|
|
371
|
-
|
|
372
|
-
|
|
379
|
+
var Ke;
|
|
380
|
+
function rn() {
|
|
381
|
+
return Ke || (Ke = 1, process.env.NODE_ENV === "production" ? ce.exports = tn() : ce.exports = nn()), ce.exports;
|
|
373
382
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
var mt = rn();
|
|
384
|
+
const re = [
|
|
385
|
+
"color: #fff",
|
|
386
|
+
"display: inline-block",
|
|
387
|
+
"font-size: 11px",
|
|
388
|
+
"line-height: 20px",
|
|
389
|
+
"padding-right: 8px",
|
|
390
|
+
"border-radius: 4px"
|
|
391
|
+
], se = {
|
|
392
|
+
primary: "#0055a9",
|
|
393
|
+
success: "#009422",
|
|
394
|
+
info: "#17a2b8",
|
|
395
|
+
warning: "#d7a000",
|
|
396
|
+
danger: "#ec2127"
|
|
385
397
|
};
|
|
386
|
-
function
|
|
387
|
-
|
|
398
|
+
function oe(e, t, ...n) {
|
|
399
|
+
console.log(`%c ${e}`, t, ...n);
|
|
388
400
|
}
|
|
389
|
-
function
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
serialize: n
|
|
395
|
-
});
|
|
396
|
-
const s = n && n.serialize;
|
|
397
|
-
let o;
|
|
398
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Ue(t, n).toString(r), o) {
|
|
399
|
-
const i = e.indexOf("#");
|
|
400
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
401
|
-
}
|
|
402
|
-
return e;
|
|
401
|
+
function sn(e, ...t) {
|
|
402
|
+
const n = re.concat([
|
|
403
|
+
`background-color: ${se.primary}`
|
|
404
|
+
]).join(";");
|
|
405
|
+
oe(e, n, ...t);
|
|
403
406
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
* Add a new interceptor to the stack
|
|
410
|
-
*
|
|
411
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
412
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
413
|
-
*
|
|
414
|
-
* @return {Number} An ID used to remove interceptor later
|
|
415
|
-
*/
|
|
416
|
-
use(t, n, r) {
|
|
417
|
-
return this.handlers.push({
|
|
418
|
-
fulfilled: t,
|
|
419
|
-
rejected: n,
|
|
420
|
-
synchronous: r ? r.synchronous : !1,
|
|
421
|
-
runWhen: r ? r.runWhen : null
|
|
422
|
-
}), this.handlers.length - 1;
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Remove an interceptor from the stack
|
|
426
|
-
*
|
|
427
|
-
* @param {Number} id The ID that was returned by `use`
|
|
428
|
-
*
|
|
429
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
430
|
-
*/
|
|
431
|
-
eject(t) {
|
|
432
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Clear all interceptors from the stack
|
|
436
|
-
*
|
|
437
|
-
* @returns {void}
|
|
438
|
-
*/
|
|
439
|
-
clear() {
|
|
440
|
-
this.handlers && (this.handlers = []);
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Iterate over all the registered interceptors
|
|
444
|
-
*
|
|
445
|
-
* This method is particularly useful for skipping over any
|
|
446
|
-
* interceptors that may have become `null` calling `eject`.
|
|
447
|
-
*
|
|
448
|
-
* @param {Function} fn The function to call for each interceptor
|
|
449
|
-
*
|
|
450
|
-
* @returns {void}
|
|
451
|
-
*/
|
|
452
|
-
forEach(t) {
|
|
453
|
-
a.forEach(this.handlers, function(r) {
|
|
454
|
-
r !== null && t(r);
|
|
455
|
-
});
|
|
456
|
-
}
|
|
407
|
+
function on(e, ...t) {
|
|
408
|
+
const n = re.concat([
|
|
409
|
+
`background-color: ${se.success}`
|
|
410
|
+
]).join(";");
|
|
411
|
+
oe(e, n, ...t);
|
|
457
412
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
isBrowser: !0,
|
|
464
|
-
classes: {
|
|
465
|
-
URLSearchParams: Bn,
|
|
466
|
-
FormData: qn,
|
|
467
|
-
Blob: In
|
|
468
|
-
},
|
|
469
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
470
|
-
}, De = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, $n = De && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), Hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
471
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zn = De && window.location.href || "http://localhost", Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
472
|
-
__proto__: null,
|
|
473
|
-
hasBrowserEnv: De,
|
|
474
|
-
hasStandardBrowserEnv: $n,
|
|
475
|
-
hasStandardBrowserWebWorkerEnv: Hn,
|
|
476
|
-
navigator: ke,
|
|
477
|
-
origin: zn
|
|
478
|
-
}, Symbol.toStringTag, { value: "Module" })), P = {
|
|
479
|
-
...Jn,
|
|
480
|
-
...Mn
|
|
481
|
-
};
|
|
482
|
-
function Wn(e, t) {
|
|
483
|
-
return Ee(e, new P.classes.URLSearchParams(), Object.assign({
|
|
484
|
-
visitor: function(n, r, s, o) {
|
|
485
|
-
return P.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
486
|
-
}
|
|
487
|
-
}, t));
|
|
413
|
+
function an(e, ...t) {
|
|
414
|
+
const n = re.concat([
|
|
415
|
+
`background-color: ${se.info}`
|
|
416
|
+
]).join(";");
|
|
417
|
+
oe(e, n, ...t);
|
|
488
418
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
419
|
+
function cn(e, ...t) {
|
|
420
|
+
const n = re.concat([
|
|
421
|
+
`background-color: ${se.warning}`
|
|
422
|
+
]).join(";");
|
|
423
|
+
oe(e, n, ...t);
|
|
491
424
|
}
|
|
492
|
-
function
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
for (r = 0; r < s; r++)
|
|
498
|
-
o = n[r], t[o] = e[o];
|
|
499
|
-
return t;
|
|
425
|
+
function ln(e, ...t) {
|
|
426
|
+
const n = re.concat([
|
|
427
|
+
`background-color: ${se.danger}`
|
|
428
|
+
]).join(";");
|
|
429
|
+
oe(e, n, ...t);
|
|
500
430
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
431
|
+
const U = {
|
|
432
|
+
primary: sn,
|
|
433
|
+
success: on,
|
|
434
|
+
info: an,
|
|
435
|
+
warning: cn,
|
|
436
|
+
danger: ln
|
|
437
|
+
};
|
|
438
|
+
function Ue(e, t) {
|
|
439
|
+
const n = {
|
|
440
|
+
isZero: (t == null ? void 0 : t.isZero) ?? !0,
|
|
441
|
+
isFalse: (t == null ? void 0 : t.isFalse) ?? !0
|
|
442
|
+
};
|
|
443
|
+
return e == null || n.isFalse && (e === !1 || e === "false") || n.isZero && (e === 0 || e === "0") || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0 || typeof e == "string" && e.trim().length === 0;
|
|
444
|
+
}
|
|
445
|
+
function Xe(e, t) {
|
|
446
|
+
return !Ue(e, {
|
|
447
|
+
isZero: !0,
|
|
448
|
+
isFalse: !0
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
class te extends Error {
|
|
452
|
+
constructor(n) {
|
|
453
|
+
super(n.message);
|
|
454
|
+
$(this, "code");
|
|
455
|
+
$(this, "devInfo");
|
|
456
|
+
$(this, "args");
|
|
457
|
+
$(this, "path");
|
|
458
|
+
this.response = n, this.code = n.code, this.args = n.args, this.path = n.path, this.initName();
|
|
507
459
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
460
|
+
initName() {
|
|
461
|
+
this.name = this.constructor.name;
|
|
462
|
+
}
|
|
463
|
+
getInfo() {
|
|
464
|
+
return {
|
|
465
|
+
message: this.response.message,
|
|
466
|
+
code: this.response.code,
|
|
467
|
+
args: this.response.args,
|
|
468
|
+
path: this.response.path
|
|
469
|
+
};
|
|
513
470
|
}
|
|
514
|
-
return null;
|
|
515
|
-
}
|
|
516
|
-
function Kn(e, t, n) {
|
|
517
|
-
if (a.isString(e))
|
|
518
|
-
try {
|
|
519
|
-
return (t || JSON.parse)(e), a.trim(e);
|
|
520
|
-
} catch (r) {
|
|
521
|
-
if (r.name !== "SyntaxError")
|
|
522
|
-
throw r;
|
|
523
|
-
}
|
|
524
|
-
return (n || JSON.stringify)(e);
|
|
525
471
|
}
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const n = this.transitional || ne.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
556
|
-
if (a.isResponse(t) || a.isReadableStream(t))
|
|
557
|
-
return t;
|
|
558
|
-
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
559
|
-
const i = !(n && n.silentJSONParsing) && s;
|
|
472
|
+
const Rt = ft({
|
|
473
|
+
lastUpdateTimestamp: 0,
|
|
474
|
+
isAuth: !1,
|
|
475
|
+
getTokens: () => (U.warning("AuthStateContext", "getTokens not yet ready"), null),
|
|
476
|
+
updateTokens: () => U.warning("AuthStateContext", "updateTokens not yet ready"),
|
|
477
|
+
forceLogout: () => U.warning("AuthStateContext", "forceLogout not yet ready"),
|
|
478
|
+
refreshTokens: async () => {
|
|
479
|
+
U.warning("AuthStateContext", "refreshToken not yet ready");
|
|
480
|
+
}
|
|
481
|
+
}), un = () => Vt(Rt), Yr = ({
|
|
482
|
+
children: e,
|
|
483
|
+
onGetTokens: t,
|
|
484
|
+
onSetTokens: n,
|
|
485
|
+
onRefreshTokens: r,
|
|
486
|
+
onForceLogout: s
|
|
487
|
+
}) => {
|
|
488
|
+
const [o, i] = We(0), [c, d] = We(!1);
|
|
489
|
+
Yt(() => {
|
|
490
|
+
d(Xe(t()));
|
|
491
|
+
}, []);
|
|
492
|
+
const l = (b) => {
|
|
493
|
+
let T;
|
|
494
|
+
typeof b == "function" ? T = b(t()) : T = b, n(T), d(Xe(T)), i(Date.now());
|
|
495
|
+
}, u = () => {
|
|
496
|
+
l(null), s && s();
|
|
497
|
+
}, p = async () => {
|
|
498
|
+
var T;
|
|
499
|
+
const b = (T = t()) == null ? void 0 : T.refreshToken;
|
|
500
|
+
if (!(!b || !r))
|
|
560
501
|
try {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
502
|
+
const h = await r(b);
|
|
503
|
+
if (Ue(h))
|
|
504
|
+
throw new te({ message: "refresh token fail", code: "REFRESH_TOKEN_EMPTY" });
|
|
505
|
+
l(h);
|
|
506
|
+
return;
|
|
507
|
+
} catch {
|
|
508
|
+
throw u(), new te({ message: "refresh token fail", code: "REFRESH_TOKEN_CATCH" });
|
|
565
509
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
510
|
+
};
|
|
511
|
+
return /* @__PURE__ */ mt.jsx(Rt.Provider, { value: {
|
|
512
|
+
lastUpdateTimestamp: o,
|
|
513
|
+
isAuth: c,
|
|
514
|
+
getTokens: t,
|
|
515
|
+
updateTokens: l,
|
|
516
|
+
refreshTokens: p,
|
|
517
|
+
forceLogout: u
|
|
518
|
+
}, children: e });
|
|
519
|
+
}, Ge = {
|
|
520
|
+
"en-US": {
|
|
521
|
+
400: "The requested parameter is wrong",
|
|
522
|
+
401: "Please login before continuing",
|
|
523
|
+
404: "Request Not Found/Route",
|
|
524
|
+
413: "The request/file sent exceeds the server limit size",
|
|
525
|
+
500: "Internal Server Error",
|
|
526
|
+
503: "System under maintenance",
|
|
527
|
+
504: "Please check your network and try again",
|
|
528
|
+
511: "Area not available",
|
|
529
|
+
CANCEL_ERROR: "Request has been cancelled. Only possible if `cancelToken` is provided in config, see axios `Cancellation`",
|
|
530
|
+
CLIENT_ERROR: "Any non-specific 400 series error",
|
|
531
|
+
CONNECTION_ERROR: "Server not available, bad dns",
|
|
532
|
+
NETWORK_ERROR: "Your mobile network connection is unstable. Please check your network connection status and try again.",
|
|
533
|
+
SERVER_ERROR: "Any 500 series error",
|
|
534
|
+
TIMEOUT_ERROR: "The server has not responded for more than {sec} seconds. Please confirm your network connection status or contact customer service"
|
|
581
535
|
},
|
|
582
|
-
|
|
583
|
-
|
|
536
|
+
"zh-TW": {
|
|
537
|
+
400: "請求的參數錯誤",
|
|
538
|
+
401: "請先登入再繼續",
|
|
539
|
+
404: "請求未找到/路由錯誤",
|
|
540
|
+
413: "請求/發送的檔案超出伺服器限制大小",
|
|
541
|
+
500: "內部伺服器錯誤",
|
|
542
|
+
503: "系統維護",
|
|
543
|
+
504: "請檢查網路後重試",
|
|
544
|
+
511: "區域不可用",
|
|
545
|
+
CANCEL_ERROR: "請求已取消。僅在配置中提供 `cancelToken` 時可能發生,請參閱 axios 的 `Cancellation`",
|
|
546
|
+
CLIENT_ERROR: "任意非特定的400系列錯誤",
|
|
547
|
+
CONNECTION_ERROR: "伺服器不可用,DNS錯誤",
|
|
548
|
+
NETWORK_ERROR: "您的行動網路連線不穩定。請檢查網路連線後重試。 ",
|
|
549
|
+
SERVER_ERROR: "任意500系列錯誤",
|
|
550
|
+
TIMEOUT_ERROR: "伺服器已超過 {sec} 秒未回應。請確認您的網路連線狀態或聯絡客服"
|
|
584
551
|
},
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
552
|
+
"zh-CN": {
|
|
553
|
+
400: "请求的参数错误",
|
|
554
|
+
401: "请先登录再继续",
|
|
555
|
+
404: "请求未找到/路由错误",
|
|
556
|
+
413: "请求/发送的文件超出服务器限制大小",
|
|
557
|
+
500: "内部服务器错误",
|
|
558
|
+
503: "系统维护中",
|
|
559
|
+
504: "请检查网络后重试",
|
|
560
|
+
511: "区域不可用",
|
|
561
|
+
CANCEL_ERROR: "请求已取消。仅当配置中提供 `cancelToken` 时可能发生,请参阅 axios 的 `Cancellation`",
|
|
562
|
+
CLIENT_ERROR: "任意非特定的400系列错误",
|
|
563
|
+
CONNECTION_ERROR: "服务器不可用,DNS错误",
|
|
564
|
+
NETWORK_ERROR: "您的移动网络连接不稳定。请检查网络连接后重试。",
|
|
565
|
+
SERVER_ERROR: "任意500系列错误",
|
|
566
|
+
TIMEOUT_ERROR: "服务器已超过 {sec} 秒未响应。请确认您的网络连接状态或联系客服"
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
class fn extends Error {
|
|
570
|
+
constructor(n) {
|
|
571
|
+
super(n.message);
|
|
572
|
+
$(this, "code");
|
|
573
|
+
$(this, "devInfo");
|
|
574
|
+
$(this, "args");
|
|
575
|
+
$(this, "path");
|
|
576
|
+
this.response = n, this.code = n.code, this.args = n.args, this.path = n.path, this.initName();
|
|
577
|
+
}
|
|
578
|
+
initName() {
|
|
579
|
+
this.name = this.constructor.name;
|
|
580
|
+
}
|
|
581
|
+
getInfo() {
|
|
582
|
+
return {
|
|
583
|
+
message: this.response.message,
|
|
584
|
+
code: this.response.code,
|
|
585
|
+
args: this.response.args,
|
|
586
|
+
path: this.response.path
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
const Kr = (e) => {
|
|
591
|
+
var t, n, r, s;
|
|
592
|
+
return (n = (t = e == null ? void 0 : e.data) == null ? void 0 : t.errors) != null && n[0] ? (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.errors) == null ? void 0 : s[0] : {
|
|
593
|
+
message: "Axios error",
|
|
594
|
+
code: "ERR_SYS_BAD_RESPONSE"
|
|
595
|
+
};
|
|
596
|
+
}, dn = (e) => e != null && e.data ? e == null ? void 0 : e.data : {
|
|
597
|
+
message: "Axios error",
|
|
598
|
+
code: "ERR_SYS_BAD_RESPONSE"
|
|
599
|
+
};
|
|
600
|
+
let Q = !1, _e = [];
|
|
601
|
+
const pn = ft(null), Xr = ({
|
|
602
|
+
children: e,
|
|
603
|
+
axiosInstance: t,
|
|
604
|
+
locale: n = "en-US",
|
|
605
|
+
getResponseFormatError: r = dn,
|
|
606
|
+
onError: s,
|
|
607
|
+
checkIsRefreshTokenRequest: o,
|
|
608
|
+
authorizationPrefix: i = "Bearer",
|
|
609
|
+
i18nDict: c,
|
|
610
|
+
isDebug: d = !1
|
|
611
|
+
}) => {
|
|
612
|
+
const {
|
|
613
|
+
getTokens: l,
|
|
614
|
+
updateTokens: u,
|
|
615
|
+
refreshTokens: p,
|
|
616
|
+
forceLogout: b
|
|
617
|
+
} = un();
|
|
618
|
+
Kt(() => {
|
|
619
|
+
const E = t.interceptors.request.use(R), O = t.interceptors.response.use(m, A);
|
|
620
|
+
return () => {
|
|
621
|
+
t.interceptors.request.eject(E), t.interceptors.response.eject(O);
|
|
622
|
+
};
|
|
623
|
+
}, [l, p, u, b]);
|
|
624
|
+
const T = (E) => {
|
|
625
|
+
d && U.warning("[FetcherProvider] runPendingRequest", { isSuccess: E }), Q = !1;
|
|
626
|
+
for (const O of _e)
|
|
627
|
+
O(E);
|
|
628
|
+
_e = [];
|
|
629
|
+
}, h = (E, O) => (g) => {
|
|
630
|
+
d && U.info("[FetcherProvider] Request add pending queue", { originConfig: g }), _e.push((N) => {
|
|
631
|
+
N ? (g.pendingRequest = !0, E(t(g))) : O(new te({
|
|
632
|
+
message: S(401),
|
|
633
|
+
code: "UNAUTHORIZED",
|
|
634
|
+
path: "AxiosClientProvider.pushPendingRequestQueues"
|
|
635
|
+
}));
|
|
636
|
+
});
|
|
637
|
+
}, R = (E) => new Promise((O, g) => {
|
|
638
|
+
var v, V;
|
|
639
|
+
E.headers["Accept-Language"] = n;
|
|
640
|
+
const N = (v = l()) == null ? void 0 : v.accessToken;
|
|
641
|
+
if (!((V = E.fetchOptions) == null ? void 0 : V.forceGuest) && N && (E.headers.Authorization = [i, N].filter((H) => H).join(" ")), !(E && o ? o(E) : !1) && Q) {
|
|
642
|
+
h(O, g)(E), g(new fn({
|
|
643
|
+
message: "Token refreshing, so request save queues not send",
|
|
644
|
+
code: "REFRESH_TOKEN"
|
|
645
|
+
}));
|
|
646
|
+
return;
|
|
589
647
|
}
|
|
590
|
-
|
|
648
|
+
O(E);
|
|
649
|
+
}), m = (E) => (d && U.info("[FetcherProvider] interceptorsResponseSuccess", { response: E }), E), S = (E) => {
|
|
650
|
+
const O = (c == null ? void 0 : c[n]) || Ge[n] || Ge["en-US"];
|
|
651
|
+
return (O == null ? void 0 : O[E]) || `Error: ${E}`;
|
|
652
|
+
}, A = (E) => {
|
|
653
|
+
const O = E.response, g = E.config, N = E.status, P = r(O);
|
|
654
|
+
d && U.warning("[FetcherProvider] interceptorsResponseError", { status: N, responseFirstError: P }), s && s(P);
|
|
655
|
+
const B = g && o ? o(g) : !1;
|
|
656
|
+
if (O && g && (N === 401 || P.code === "UNAUTHENTICATED")) {
|
|
657
|
+
const v = l();
|
|
658
|
+
return d && U.warning("[FetcherProvider] enter refresh token flow", { refreshToken: v == null ? void 0 : v.refreshToken }), Ue(v == null ? void 0 : v.refreshToken) || B || g.pendingRequest ? (Q = !1, d && U.warning("[FetcherProvider] no refreshToken/refreshAPI|pendingRequest fail, force logout"), b(), Promise.reject(new te(P))) : (Q || (Q = !0, d && U.warning("[FetcherProvider] refreshTokens"), p().then(() => {
|
|
659
|
+
d && U.info("[FetcherProvider] refreshTokens success"), T(!0);
|
|
660
|
+
}).catch(() => {
|
|
661
|
+
d && U.danger("[FetcherProvider] refreshTokens fail"), T(!1);
|
|
662
|
+
})), new Promise((V, H) => {
|
|
663
|
+
h(V, H)(g);
|
|
664
|
+
}));
|
|
665
|
+
}
|
|
666
|
+
return Promise.reject(new te(P));
|
|
667
|
+
};
|
|
668
|
+
return /* @__PURE__ */ mt.jsx(
|
|
669
|
+
pn.Provider,
|
|
670
|
+
{
|
|
671
|
+
value: t,
|
|
672
|
+
children: e
|
|
673
|
+
}
|
|
674
|
+
);
|
|
591
675
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
"age",
|
|
597
|
-
"authorization",
|
|
598
|
-
"content-length",
|
|
599
|
-
"content-type",
|
|
600
|
-
"etag",
|
|
601
|
-
"expires",
|
|
602
|
-
"from",
|
|
603
|
-
"host",
|
|
604
|
-
"if-modified-since",
|
|
605
|
-
"if-unmodified-since",
|
|
606
|
-
"last-modified",
|
|
607
|
-
"location",
|
|
608
|
-
"max-forwards",
|
|
609
|
-
"proxy-authorization",
|
|
610
|
-
"referer",
|
|
611
|
-
"retry-after",
|
|
612
|
-
"user-agent"
|
|
613
|
-
]), Zn = (e) => {
|
|
614
|
-
const t = {};
|
|
615
|
-
let n, r, s;
|
|
616
|
-
return e && e.split(`
|
|
617
|
-
`).forEach(function(i) {
|
|
618
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Xn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
619
|
-
}), t;
|
|
620
|
-
}, Xe = Symbol("internals");
|
|
621
|
-
function K(e) {
|
|
622
|
-
return e && String(e).trim().toLowerCase();
|
|
676
|
+
function Et(e, t) {
|
|
677
|
+
return function() {
|
|
678
|
+
return e.apply(t, arguments);
|
|
679
|
+
};
|
|
623
680
|
}
|
|
624
|
-
|
|
625
|
-
|
|
681
|
+
const { toString: hn } = Object.prototype, { getPrototypeOf: De } = Object, { iterator: me, toStringTag: bt } = Symbol, Re = /* @__PURE__ */ ((e) => (t) => {
|
|
682
|
+
const n = hn.call(t);
|
|
683
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
684
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Re(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: K } = Array, ne = Ee("undefined");
|
|
685
|
+
function mn(e) {
|
|
686
|
+
return e !== null && !ne(e) && e.constructor !== null && !ne(e.constructor) && j(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
626
687
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
let
|
|
630
|
-
|
|
631
|
-
t[r[1]] = r[2];
|
|
632
|
-
return t;
|
|
688
|
+
const yt = D("ArrayBuffer");
|
|
689
|
+
function Rn(e) {
|
|
690
|
+
let t;
|
|
691
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && yt(e.buffer), t;
|
|
633
692
|
}
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
693
|
+
const En = Ee("string"), j = Ee("function"), wt = Ee("number"), be = (e) => e !== null && typeof e == "object", bn = (e) => e === !0 || e === !1, le = (e) => {
|
|
694
|
+
if (Re(e) !== "object")
|
|
695
|
+
return !1;
|
|
696
|
+
const t = De(e);
|
|
697
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(bt in e) && !(me in e);
|
|
698
|
+
}, yn = D("Date"), wn = D("File"), Tn = D("Blob"), gn = D("FileList"), Sn = (e) => be(e) && j(e.pipe), On = (e) => {
|
|
699
|
+
let t;
|
|
700
|
+
return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((t = Re(e)) === "formdata" || // detect form-data instance
|
|
701
|
+
t === "object" && j(e.toString) && e.toString() === "[object FormData]"));
|
|
702
|
+
}, An = D("URLSearchParams"), [_n, xn, Nn, Pn] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Cn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
703
|
+
function ie(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
704
|
+
if (e === null || typeof e > "u")
|
|
705
|
+
return;
|
|
706
|
+
let r, s;
|
|
707
|
+
if (typeof e != "object" && (e = [e]), K(e))
|
|
708
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
709
|
+
t.call(null, e[r], r, e);
|
|
710
|
+
else {
|
|
711
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
712
|
+
let c;
|
|
713
|
+
for (r = 0; r < i; r++)
|
|
714
|
+
c = o[r], t.call(null, e[c], c, e);
|
|
643
715
|
}
|
|
644
716
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
717
|
+
function Tt(e, t) {
|
|
718
|
+
t = t.toLowerCase();
|
|
719
|
+
const n = Object.keys(e);
|
|
720
|
+
let r = n.length, s;
|
|
721
|
+
for (; r-- > 0; )
|
|
722
|
+
if (s = n[r], t === s.toLowerCase())
|
|
723
|
+
return s;
|
|
724
|
+
return null;
|
|
647
725
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
});
|
|
726
|
+
const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gt = (e) => !ne(e) && e !== z;
|
|
727
|
+
function Ce() {
|
|
728
|
+
const { caseless: e } = gt(this) && this || {}, t = {}, n = (r, s) => {
|
|
729
|
+
const o = e && Tt(t, s) || s;
|
|
730
|
+
le(t[o]) && le(r) ? t[o] = Ce(t[o], r) : le(r) ? t[o] = Ce({}, r) : K(r) ? t[o] = r.slice() : t[o] = r;
|
|
731
|
+
};
|
|
732
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
733
|
+
arguments[r] && ie(arguments[r], n);
|
|
734
|
+
return t;
|
|
658
735
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if (!n)
|
|
695
|
-
return s;
|
|
696
|
-
if (n === !0)
|
|
697
|
-
return Gn(s);
|
|
698
|
-
if (a.isFunction(n))
|
|
699
|
-
return n.call(this, s, r);
|
|
700
|
-
if (a.isRegExp(n))
|
|
701
|
-
return n.exec(s);
|
|
702
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
703
|
-
}
|
|
704
|
-
}
|
|
736
|
+
const kn = (e, t, n, { allOwnKeys: r } = {}) => (ie(t, (s, o) => {
|
|
737
|
+
n && j(s) ? e[o] = Et(s, n) : e[o] = s;
|
|
738
|
+
}, { allOwnKeys: r }), e), Fn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), vn = (e, t, n, r) => {
|
|
739
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
740
|
+
value: t.prototype
|
|
741
|
+
}), n && Object.assign(e.prototype, n);
|
|
742
|
+
}, jn = (e, t, n, r) => {
|
|
743
|
+
let s, o, i;
|
|
744
|
+
const c = {};
|
|
745
|
+
if (t = t || {}, e == null) return t;
|
|
746
|
+
do {
|
|
747
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
748
|
+
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
749
|
+
e = n !== !1 && De(e);
|
|
750
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
751
|
+
return t;
|
|
752
|
+
}, Ln = (e, t, n) => {
|
|
753
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
754
|
+
const r = e.indexOf(t, n);
|
|
755
|
+
return r !== -1 && r === n;
|
|
756
|
+
}, Un = (e) => {
|
|
757
|
+
if (!e) return null;
|
|
758
|
+
if (K(e)) return e;
|
|
759
|
+
let t = e.length;
|
|
760
|
+
if (!wt(t)) return null;
|
|
761
|
+
const n = new Array(t);
|
|
762
|
+
for (; t-- > 0; )
|
|
763
|
+
n[t] = e[t];
|
|
764
|
+
return n;
|
|
765
|
+
}, Dn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && De(Uint8Array)), Bn = (e, t) => {
|
|
766
|
+
const r = (e && e[me]).call(e);
|
|
767
|
+
let s;
|
|
768
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
769
|
+
const o = s.value;
|
|
770
|
+
t.call(e, o[0], o[1]);
|
|
705
771
|
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
772
|
+
}, qn = (e, t) => {
|
|
773
|
+
let n;
|
|
774
|
+
const r = [];
|
|
775
|
+
for (; (n = e.exec(t)) !== null; )
|
|
776
|
+
r.push(n);
|
|
777
|
+
return r;
|
|
778
|
+
}, In = D("HTMLFormElement"), $n = (e) => e.toLowerCase().replace(
|
|
779
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
780
|
+
function(n, r, s) {
|
|
781
|
+
return r.toUpperCase() + s;
|
|
712
782
|
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
783
|
+
), Ze = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mn = D("RegExp"), St = (e, t) => {
|
|
784
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
785
|
+
ie(n, (s, o) => {
|
|
786
|
+
let i;
|
|
787
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
788
|
+
}), Object.defineProperties(e, r);
|
|
789
|
+
}, Hn = (e) => {
|
|
790
|
+
St(e, (t, n) => {
|
|
791
|
+
if (j(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
792
|
+
return !1;
|
|
793
|
+
const r = e[n];
|
|
794
|
+
if (j(r)) {
|
|
795
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
796
|
+
t.writable = !1;
|
|
797
|
+
return;
|
|
720
798
|
}
|
|
799
|
+
t.set || (t.set = () => {
|
|
800
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
801
|
+
});
|
|
721
802
|
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
803
|
+
});
|
|
804
|
+
}, zn = (e, t) => {
|
|
805
|
+
const n = {}, r = (s) => {
|
|
806
|
+
s.forEach((o) => {
|
|
807
|
+
n[o] = !0;
|
|
808
|
+
});
|
|
809
|
+
};
|
|
810
|
+
return K(e) ? r(e) : r(String(e).split(t)), n;
|
|
811
|
+
}, Jn = () => {
|
|
812
|
+
}, Wn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
813
|
+
function Vn(e) {
|
|
814
|
+
return !!(e && j(e.append) && e[bt] === "FormData" && e[me]);
|
|
815
|
+
}
|
|
816
|
+
const Yn = (e) => {
|
|
817
|
+
const t = new Array(10), n = (r, s) => {
|
|
818
|
+
if (be(r)) {
|
|
819
|
+
if (t.indexOf(r) >= 0)
|
|
739
820
|
return;
|
|
821
|
+
if (!("toJSON" in r)) {
|
|
822
|
+
t[s] = r;
|
|
823
|
+
const o = K(r) ? [] : {};
|
|
824
|
+
return ie(r, (i, c) => {
|
|
825
|
+
const d = n(i, s + 1);
|
|
826
|
+
!ne(d) && (o[c] = d);
|
|
827
|
+
}), t[s] = void 0, o;
|
|
740
828
|
}
|
|
741
|
-
const c = t ? er(o) : String(o).trim();
|
|
742
|
-
c !== o && delete n[o], n[c] = ue(s), r[c] = !0;
|
|
743
|
-
}), this;
|
|
744
|
-
}
|
|
745
|
-
concat(...t) {
|
|
746
|
-
return this.constructor.concat(this, ...t);
|
|
747
|
-
}
|
|
748
|
-
toJSON(t) {
|
|
749
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
750
|
-
return a.forEach(this, (r, s) => {
|
|
751
|
-
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
752
|
-
}), n;
|
|
753
|
-
}
|
|
754
|
-
[Symbol.iterator]() {
|
|
755
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
756
|
-
}
|
|
757
|
-
toString() {
|
|
758
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
759
|
-
`);
|
|
760
|
-
}
|
|
761
|
-
getSetCookie() {
|
|
762
|
-
return this.get("set-cookie") || [];
|
|
763
|
-
}
|
|
764
|
-
get [Symbol.toStringTag]() {
|
|
765
|
-
return "AxiosHeaders";
|
|
766
|
-
}
|
|
767
|
-
static from(t) {
|
|
768
|
-
return t instanceof this ? t : new this(t);
|
|
769
|
-
}
|
|
770
|
-
static concat(t, ...n) {
|
|
771
|
-
const r = new this(t);
|
|
772
|
-
return n.forEach((s) => r.set(s)), r;
|
|
773
|
-
}
|
|
774
|
-
static accessor(t) {
|
|
775
|
-
const r = (this[Xe] = this[Xe] = {
|
|
776
|
-
accessors: {}
|
|
777
|
-
}).accessors, s = this.prototype;
|
|
778
|
-
function o(i) {
|
|
779
|
-
const c = K(i);
|
|
780
|
-
r[c] || (tr(s, i), r[c] = !0);
|
|
781
829
|
}
|
|
782
|
-
return
|
|
830
|
+
return r;
|
|
831
|
+
};
|
|
832
|
+
return n(e, 0);
|
|
833
|
+
}, Kn = D("AsyncFunction"), Xn = (e) => e && (be(e) || j(e)) && j(e.then) && j(e.catch), Ot = ((e, t) => e ? setImmediate : t ? ((n, r) => (z.addEventListener("message", ({ source: s, data: o }) => {
|
|
834
|
+
s === z && o === n && r.length && r.shift()();
|
|
835
|
+
}, !1), (s) => {
|
|
836
|
+
r.push(s), z.postMessage(n, "*");
|
|
837
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
838
|
+
typeof setImmediate == "function",
|
|
839
|
+
j(z.postMessage)
|
|
840
|
+
), Gn = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Ot, Zn = (e) => e != null && j(e[me]), a = {
|
|
841
|
+
isArray: K,
|
|
842
|
+
isArrayBuffer: yt,
|
|
843
|
+
isBuffer: mn,
|
|
844
|
+
isFormData: On,
|
|
845
|
+
isArrayBufferView: Rn,
|
|
846
|
+
isString: En,
|
|
847
|
+
isNumber: wt,
|
|
848
|
+
isBoolean: bn,
|
|
849
|
+
isObject: be,
|
|
850
|
+
isPlainObject: le,
|
|
851
|
+
isReadableStream: _n,
|
|
852
|
+
isRequest: xn,
|
|
853
|
+
isResponse: Nn,
|
|
854
|
+
isHeaders: Pn,
|
|
855
|
+
isUndefined: ne,
|
|
856
|
+
isDate: yn,
|
|
857
|
+
isFile: wn,
|
|
858
|
+
isBlob: Tn,
|
|
859
|
+
isRegExp: Mn,
|
|
860
|
+
isFunction: j,
|
|
861
|
+
isStream: Sn,
|
|
862
|
+
isURLSearchParams: An,
|
|
863
|
+
isTypedArray: Dn,
|
|
864
|
+
isFileList: gn,
|
|
865
|
+
forEach: ie,
|
|
866
|
+
merge: Ce,
|
|
867
|
+
extend: kn,
|
|
868
|
+
trim: Cn,
|
|
869
|
+
stripBOM: Fn,
|
|
870
|
+
inherits: vn,
|
|
871
|
+
toFlatObject: jn,
|
|
872
|
+
kindOf: Re,
|
|
873
|
+
kindOfTest: D,
|
|
874
|
+
endsWith: Ln,
|
|
875
|
+
toArray: Un,
|
|
876
|
+
forEachEntry: Bn,
|
|
877
|
+
matchAll: qn,
|
|
878
|
+
isHTMLForm: In,
|
|
879
|
+
hasOwnProperty: Ze,
|
|
880
|
+
hasOwnProp: Ze,
|
|
881
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
882
|
+
reduceDescriptors: St,
|
|
883
|
+
freezeMethods: Hn,
|
|
884
|
+
toObjectSet: zn,
|
|
885
|
+
toCamelCase: $n,
|
|
886
|
+
noop: Jn,
|
|
887
|
+
toFiniteNumber: Wn,
|
|
888
|
+
findKey: Tt,
|
|
889
|
+
global: z,
|
|
890
|
+
isContextDefined: gt,
|
|
891
|
+
isSpecCompliantForm: Vn,
|
|
892
|
+
toJSONObject: Yn,
|
|
893
|
+
isAsyncFn: Kn,
|
|
894
|
+
isThenable: Xn,
|
|
895
|
+
setImmediate: Ot,
|
|
896
|
+
asap: Gn,
|
|
897
|
+
isIterable: Zn
|
|
898
|
+
};
|
|
899
|
+
function y(e, t, n, r, s) {
|
|
900
|
+
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);
|
|
901
|
+
}
|
|
902
|
+
a.inherits(y, Error, {
|
|
903
|
+
toJSON: function() {
|
|
904
|
+
return {
|
|
905
|
+
// Standard
|
|
906
|
+
message: this.message,
|
|
907
|
+
name: this.name,
|
|
908
|
+
// Microsoft
|
|
909
|
+
description: this.description,
|
|
910
|
+
number: this.number,
|
|
911
|
+
// Mozilla
|
|
912
|
+
fileName: this.fileName,
|
|
913
|
+
lineNumber: this.lineNumber,
|
|
914
|
+
columnNumber: this.columnNumber,
|
|
915
|
+
stack: this.stack,
|
|
916
|
+
// Axios
|
|
917
|
+
config: a.toJSONObject(this.config),
|
|
918
|
+
code: this.code,
|
|
919
|
+
status: this.status
|
|
920
|
+
};
|
|
783
921
|
}
|
|
784
|
-
};
|
|
785
|
-
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
786
|
-
a.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
787
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
788
|
-
return {
|
|
789
|
-
get: () => e,
|
|
790
|
-
set(r) {
|
|
791
|
-
this[n] = r;
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
922
|
});
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
923
|
+
const At = y.prototype, _t = {};
|
|
924
|
+
[
|
|
925
|
+
"ERR_BAD_OPTION_VALUE",
|
|
926
|
+
"ERR_BAD_OPTION",
|
|
927
|
+
"ECONNABORTED",
|
|
928
|
+
"ETIMEDOUT",
|
|
929
|
+
"ERR_NETWORK",
|
|
930
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
931
|
+
"ERR_DEPRECATED",
|
|
932
|
+
"ERR_BAD_RESPONSE",
|
|
933
|
+
"ERR_BAD_REQUEST",
|
|
934
|
+
"ERR_CANCELED",
|
|
935
|
+
"ERR_NOT_SUPPORT",
|
|
936
|
+
"ERR_INVALID_URL"
|
|
937
|
+
// eslint-disable-next-line func-names
|
|
938
|
+
].forEach((e) => {
|
|
939
|
+
_t[e] = { value: e };
|
|
811
940
|
});
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
941
|
+
Object.defineProperties(y, _t);
|
|
942
|
+
Object.defineProperty(At, "isAxiosError", { value: !0 });
|
|
943
|
+
y.from = (e, t, n, r, s, o) => {
|
|
944
|
+
const i = Object.create(At);
|
|
945
|
+
return a.toFlatObject(e, i, function(d) {
|
|
946
|
+
return d !== Error.prototype;
|
|
947
|
+
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
948
|
+
};
|
|
949
|
+
const Qn = null;
|
|
950
|
+
function ke(e) {
|
|
951
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
821
952
|
}
|
|
822
|
-
function
|
|
823
|
-
|
|
824
|
-
return t && t[1] || "";
|
|
953
|
+
function xt(e) {
|
|
954
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
825
955
|
}
|
|
826
|
-
function
|
|
827
|
-
e
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
return t = t !== void 0 ? t : 1e3, function(h) {
|
|
831
|
-
const l = Date.now(), u = r[o];
|
|
832
|
-
i || (i = l), n[s] = h, r[s] = l;
|
|
833
|
-
let R = o, E = 0;
|
|
834
|
-
for (; R !== s; )
|
|
835
|
-
E += n[R++], R = R % e;
|
|
836
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
837
|
-
return;
|
|
838
|
-
const g = u && l - u;
|
|
839
|
-
return g ? Math.round(E * 1e3 / g) : void 0;
|
|
840
|
-
};
|
|
956
|
+
function Qe(e, t, n) {
|
|
957
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
958
|
+
return s = xt(s), !n && o ? "[" + s + "]" : s;
|
|
959
|
+
}).join(n ? "." : "") : t;
|
|
841
960
|
}
|
|
842
|
-
function
|
|
843
|
-
|
|
844
|
-
const i = (l, u = Date.now()) => {
|
|
845
|
-
n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
|
|
846
|
-
};
|
|
847
|
-
return [(...l) => {
|
|
848
|
-
const u = Date.now(), R = u - n;
|
|
849
|
-
R >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
|
|
850
|
-
o = null, i(s);
|
|
851
|
-
}, r - R)));
|
|
852
|
-
}, () => s && i(s)];
|
|
961
|
+
function er(e) {
|
|
962
|
+
return a.isArray(e) && !e.some(ke);
|
|
853
963
|
}
|
|
854
|
-
const
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
)
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
892
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
893
|
-
},
|
|
894
|
-
remove(e) {
|
|
895
|
-
this.write(e, "", Date.now() - 864e5);
|
|
964
|
+
const tr = a.toFlatObject(a, {}, null, function(t) {
|
|
965
|
+
return /^is[A-Z]/.test(t);
|
|
966
|
+
});
|
|
967
|
+
function ye(e, t, n) {
|
|
968
|
+
if (!a.isObject(e))
|
|
969
|
+
throw new TypeError("target must be an object");
|
|
970
|
+
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
971
|
+
metaTokens: !0,
|
|
972
|
+
dots: !1,
|
|
973
|
+
indexes: !1
|
|
974
|
+
}, !1, function(R, m) {
|
|
975
|
+
return !a.isUndefined(m[R]);
|
|
976
|
+
});
|
|
977
|
+
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
978
|
+
if (!a.isFunction(s))
|
|
979
|
+
throw new TypeError("visitor must be a function");
|
|
980
|
+
function l(h) {
|
|
981
|
+
if (h === null) return "";
|
|
982
|
+
if (a.isDate(h))
|
|
983
|
+
return h.toISOString();
|
|
984
|
+
if (!d && a.isBlob(h))
|
|
985
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
986
|
+
return a.isArrayBuffer(h) || a.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
987
|
+
}
|
|
988
|
+
function u(h, R, m) {
|
|
989
|
+
let S = h;
|
|
990
|
+
if (h && !m && typeof h == "object") {
|
|
991
|
+
if (a.endsWith(R, "{}"))
|
|
992
|
+
R = r ? R : R.slice(0, -2), h = JSON.stringify(h);
|
|
993
|
+
else if (a.isArray(h) && er(h) || (a.isFileList(h) || a.endsWith(R, "[]")) && (S = a.toArray(h)))
|
|
994
|
+
return R = xt(R), S.forEach(function(E, O) {
|
|
995
|
+
!(a.isUndefined(E) || E === null) && t.append(
|
|
996
|
+
// eslint-disable-next-line no-nested-ternary
|
|
997
|
+
i === !0 ? Qe([R], O, o) : i === null ? R : R + "[]",
|
|
998
|
+
l(E)
|
|
999
|
+
);
|
|
1000
|
+
}), !1;
|
|
896
1001
|
}
|
|
1002
|
+
return ke(h) ? !0 : (t.append(Qe(m, R, o), l(h)), !1);
|
|
897
1003
|
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
1004
|
+
const p = [], b = Object.assign(tr, {
|
|
1005
|
+
defaultVisitor: u,
|
|
1006
|
+
convertValue: l,
|
|
1007
|
+
isVisitable: ke
|
|
1008
|
+
});
|
|
1009
|
+
function T(h, R) {
|
|
1010
|
+
if (!a.isUndefined(h)) {
|
|
1011
|
+
if (p.indexOf(h) !== -1)
|
|
1012
|
+
throw Error("Circular reference detected in " + R.join("."));
|
|
1013
|
+
p.push(h), a.forEach(h, function(S, A) {
|
|
1014
|
+
(!(a.isUndefined(S) || S === null) && s.call(
|
|
1015
|
+
t,
|
|
1016
|
+
S,
|
|
1017
|
+
a.isString(A) ? A.trim() : A,
|
|
1018
|
+
R,
|
|
1019
|
+
b
|
|
1020
|
+
)) === !0 && T(S, R ? R.concat(A) : [A]);
|
|
1021
|
+
}), p.pop();
|
|
907
1022
|
}
|
|
908
1023
|
}
|
|
909
|
-
)
|
|
910
|
-
|
|
911
|
-
return
|
|
1024
|
+
if (!a.isObject(e))
|
|
1025
|
+
throw new TypeError("data must be an object");
|
|
1026
|
+
return T(e), t;
|
|
912
1027
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
1028
|
+
function et(e) {
|
|
1029
|
+
const t = {
|
|
1030
|
+
"!": "%21",
|
|
1031
|
+
"'": "%27",
|
|
1032
|
+
"(": "%28",
|
|
1033
|
+
")": "%29",
|
|
1034
|
+
"~": "%7E",
|
|
1035
|
+
"%20": "+",
|
|
1036
|
+
"%00": "\0"
|
|
1037
|
+
};
|
|
1038
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
1039
|
+
return t[r];
|
|
1040
|
+
});
|
|
915
1041
|
}
|
|
916
|
-
function
|
|
917
|
-
|
|
918
|
-
return e && (r || n == !1) ? cr(e, t) : t;
|
|
1042
|
+
function Be(e, t) {
|
|
1043
|
+
this._pairs = [], e && ye(e, this, t);
|
|
919
1044
|
}
|
|
920
|
-
const
|
|
921
|
-
function
|
|
922
|
-
t
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
if (!a.isUndefined(u))
|
|
935
|
-
return r(void 0, u);
|
|
936
|
-
}
|
|
937
|
-
function i(l, u) {
|
|
938
|
-
if (a.isUndefined(u)) {
|
|
939
|
-
if (!a.isUndefined(l))
|
|
940
|
-
return r(void 0, l);
|
|
941
|
-
} else return r(void 0, u);
|
|
942
|
-
}
|
|
943
|
-
function c(l, u, R) {
|
|
944
|
-
if (R in t)
|
|
945
|
-
return r(l, u);
|
|
946
|
-
if (R in e)
|
|
947
|
-
return r(void 0, l);
|
|
948
|
-
}
|
|
949
|
-
const h = {
|
|
950
|
-
url: o,
|
|
951
|
-
method: o,
|
|
952
|
-
data: o,
|
|
953
|
-
baseURL: i,
|
|
954
|
-
transformRequest: i,
|
|
955
|
-
transformResponse: i,
|
|
956
|
-
paramsSerializer: i,
|
|
957
|
-
timeout: i,
|
|
958
|
-
timeoutMessage: i,
|
|
959
|
-
withCredentials: i,
|
|
960
|
-
withXSRFToken: i,
|
|
961
|
-
adapter: i,
|
|
962
|
-
responseType: i,
|
|
963
|
-
xsrfCookieName: i,
|
|
964
|
-
xsrfHeaderName: i,
|
|
965
|
-
onUploadProgress: i,
|
|
966
|
-
onDownloadProgress: i,
|
|
967
|
-
decompress: i,
|
|
968
|
-
maxContentLength: i,
|
|
969
|
-
maxBodyLength: i,
|
|
970
|
-
beforeRedirect: i,
|
|
971
|
-
transport: i,
|
|
972
|
-
httpAgent: i,
|
|
973
|
-
httpsAgent: i,
|
|
974
|
-
cancelToken: i,
|
|
975
|
-
socketPath: i,
|
|
976
|
-
responseEncoding: i,
|
|
977
|
-
validateStatus: c,
|
|
978
|
-
headers: (l, u, R) => s(Qe(l), Qe(u), R, !0)
|
|
979
|
-
};
|
|
980
|
-
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
981
|
-
const R = h[u] || s, E = R(e[u], t[u], u);
|
|
982
|
-
a.isUndefined(E) && R !== c || (n[u] = E);
|
|
983
|
-
}), n;
|
|
1045
|
+
const Nt = Be.prototype;
|
|
1046
|
+
Nt.append = function(t, n) {
|
|
1047
|
+
this._pairs.push([t, n]);
|
|
1048
|
+
};
|
|
1049
|
+
Nt.toString = function(t) {
|
|
1050
|
+
const n = t ? function(r) {
|
|
1051
|
+
return t.call(this, r, et);
|
|
1052
|
+
} : et;
|
|
1053
|
+
return this._pairs.map(function(s) {
|
|
1054
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
1055
|
+
}, "").join("&");
|
|
1056
|
+
};
|
|
1057
|
+
function nr(e) {
|
|
1058
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
984
1059
|
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
);
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
const [l, ...u] = h ? h.split(";").map((R) => R.trim()).filter(Boolean) : [];
|
|
998
|
-
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
if (P.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && or(t.url))) {
|
|
1002
|
-
const l = s && o && ir.read(o);
|
|
1003
|
-
l && i.set(s, l);
|
|
1004
|
-
}
|
|
1005
|
-
return t;
|
|
1006
|
-
}, ur = typeof XMLHttpRequest < "u", lr = ur && function(e) {
|
|
1007
|
-
return new Promise(function(n, r) {
|
|
1008
|
-
const s = Ct(e);
|
|
1009
|
-
let o = s.data;
|
|
1010
|
-
const i = F.from(s.headers).normalize();
|
|
1011
|
-
let { responseType: c, onUploadProgress: h, onDownloadProgress: l } = s, u, R, E, g, m;
|
|
1012
|
-
function p() {
|
|
1013
|
-
g && g(), m && m(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1014
|
-
}
|
|
1015
|
-
let d = new XMLHttpRequest();
|
|
1016
|
-
d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
|
|
1017
|
-
function w() {
|
|
1018
|
-
if (!d)
|
|
1019
|
-
return;
|
|
1020
|
-
const S = F.from(
|
|
1021
|
-
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
1022
|
-
), O = {
|
|
1023
|
-
data: !c || c === "text" || c === "json" ? d.responseText : d.response,
|
|
1024
|
-
status: d.status,
|
|
1025
|
-
statusText: d.statusText,
|
|
1026
|
-
headers: S,
|
|
1027
|
-
config: e,
|
|
1028
|
-
request: d
|
|
1029
|
-
};
|
|
1030
|
-
_t(function(j) {
|
|
1031
|
-
n(j), p();
|
|
1032
|
-
}, function(j) {
|
|
1033
|
-
r(j), p();
|
|
1034
|
-
}, O), d = null;
|
|
1035
|
-
}
|
|
1036
|
-
"onloadend" in d ? d.onloadend = w : d.onreadystatechange = function() {
|
|
1037
|
-
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1038
|
-
}, d.onabort = function() {
|
|
1039
|
-
d && (r(new b("Request aborted", b.ECONNABORTED, e, d)), d = null);
|
|
1040
|
-
}, d.onerror = function() {
|
|
1041
|
-
r(new b("Network Error", b.ERR_NETWORK, e, d)), d = null;
|
|
1042
|
-
}, d.ontimeout = function() {
|
|
1043
|
-
let _ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1044
|
-
const O = s.transitional || Ot;
|
|
1045
|
-
s.timeoutErrorMessage && (_ = s.timeoutErrorMessage), r(new b(
|
|
1046
|
-
_,
|
|
1047
|
-
O.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1048
|
-
e,
|
|
1049
|
-
d
|
|
1050
|
-
)), d = null;
|
|
1051
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(_, O) {
|
|
1052
|
-
d.setRequestHeader(O, _);
|
|
1053
|
-
}), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), l && ([E, m] = fe(l, !0), d.addEventListener("progress", E)), h && d.upload && ([R, g] = fe(h), d.upload.addEventListener("progress", R), d.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
|
|
1054
|
-
d && (r(!S || S.type ? new Y(null, e, d) : S), d.abort(), d = null);
|
|
1055
|
-
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1056
|
-
const T = nr(s.url);
|
|
1057
|
-
if (T && P.protocols.indexOf(T) === -1) {
|
|
1058
|
-
r(new b("Unsupported protocol " + T + ":", b.ERR_BAD_REQUEST, e));
|
|
1059
|
-
return;
|
|
1060
|
-
}
|
|
1061
|
-
d.send(o || null);
|
|
1062
|
-
});
|
|
1063
|
-
}, fr = (e, t) => {
|
|
1064
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1065
|
-
if (t || n) {
|
|
1066
|
-
let r = new AbortController(), s;
|
|
1067
|
-
const o = function(l) {
|
|
1068
|
-
if (!s) {
|
|
1069
|
-
s = !0, c();
|
|
1070
|
-
const u = l instanceof Error ? l : this.reason;
|
|
1071
|
-
r.abort(u instanceof b ? u : new Y(u instanceof Error ? u.message : u));
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
let i = t && setTimeout(() => {
|
|
1075
|
-
i = null, o(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
|
|
1076
|
-
}, t);
|
|
1077
|
-
const c = () => {
|
|
1078
|
-
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
1079
|
-
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1080
|
-
}), e = null);
|
|
1081
|
-
};
|
|
1082
|
-
e.forEach((l) => l.addEventListener("abort", o));
|
|
1083
|
-
const { signal: h } = r;
|
|
1084
|
-
return h.unsubscribe = () => a.asap(c), h;
|
|
1060
|
+
function Pt(e, t, n) {
|
|
1061
|
+
if (!t)
|
|
1062
|
+
return e;
|
|
1063
|
+
const r = n && n.encode || nr;
|
|
1064
|
+
a.isFunction(n) && (n = {
|
|
1065
|
+
serialize: n
|
|
1066
|
+
});
|
|
1067
|
+
const s = n && n.serialize;
|
|
1068
|
+
let o;
|
|
1069
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Be(t, n).toString(r), o) {
|
|
1070
|
+
const i = e.indexOf("#");
|
|
1071
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
1085
1072
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1073
|
+
return e;
|
|
1074
|
+
}
|
|
1075
|
+
class tt {
|
|
1076
|
+
constructor() {
|
|
1077
|
+
this.handlers = [];
|
|
1091
1078
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
return
|
|
1079
|
+
/**
|
|
1080
|
+
* Add a new interceptor to the stack
|
|
1081
|
+
*
|
|
1082
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1083
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1084
|
+
*
|
|
1085
|
+
* @return {Number} An ID used to remove interceptor later
|
|
1086
|
+
*/
|
|
1087
|
+
use(t, n, r) {
|
|
1088
|
+
return this.handlers.push({
|
|
1089
|
+
fulfilled: t,
|
|
1090
|
+
rejected: n,
|
|
1091
|
+
synchronous: r ? r.synchronous : !1,
|
|
1092
|
+
runWhen: r ? r.runWhen : null
|
|
1093
|
+
}), this.handlers.length - 1;
|
|
1102
1094
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
await t.cancel();
|
|
1095
|
+
/**
|
|
1096
|
+
* Remove an interceptor from the stack
|
|
1097
|
+
*
|
|
1098
|
+
* @param {Number} id The ID that was returned by `use`
|
|
1099
|
+
*
|
|
1100
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
1101
|
+
*/
|
|
1102
|
+
eject(t) {
|
|
1103
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
1113
1104
|
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
try {
|
|
1122
|
-
const { done: l, value: u } = await s.next();
|
|
1123
|
-
if (l) {
|
|
1124
|
-
c(), h.close();
|
|
1125
|
-
return;
|
|
1126
|
-
}
|
|
1127
|
-
let R = u.byteLength;
|
|
1128
|
-
if (n) {
|
|
1129
|
-
let E = o += R;
|
|
1130
|
-
n(E);
|
|
1131
|
-
}
|
|
1132
|
-
h.enqueue(new Uint8Array(u));
|
|
1133
|
-
} catch (l) {
|
|
1134
|
-
throw c(l), l;
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
cancel(h) {
|
|
1138
|
-
return c(h), s.return();
|
|
1139
|
-
}
|
|
1140
|
-
}, {
|
|
1141
|
-
highWaterMark: 2
|
|
1142
|
-
});
|
|
1143
|
-
}, be = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Pt = be && typeof ReadableStream == "function", mr = be && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), kt = (e, ...t) => {
|
|
1144
|
-
try {
|
|
1145
|
-
return !!e(...t);
|
|
1146
|
-
} catch {
|
|
1147
|
-
return !1;
|
|
1105
|
+
/**
|
|
1106
|
+
* Clear all interceptors from the stack
|
|
1107
|
+
*
|
|
1108
|
+
* @returns {void}
|
|
1109
|
+
*/
|
|
1110
|
+
clear() {
|
|
1111
|
+
this.handlers && (this.handlers = []);
|
|
1148
1112
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
be && ((e) => {
|
|
1163
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1164
|
-
!de[t] && (de[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1165
|
-
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, r);
|
|
1166
|
-
});
|
|
1167
|
-
});
|
|
1168
|
-
})(new Response());
|
|
1169
|
-
const Er = async (e) => {
|
|
1170
|
-
if (e == null)
|
|
1171
|
-
return 0;
|
|
1172
|
-
if (a.isBlob(e))
|
|
1173
|
-
return e.size;
|
|
1174
|
-
if (a.isSpecCompliantForm(e))
|
|
1175
|
-
return (await new Request(P.origin, {
|
|
1176
|
-
method: "POST",
|
|
1177
|
-
body: e
|
|
1178
|
-
}).arrayBuffer()).byteLength;
|
|
1179
|
-
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1180
|
-
return e.byteLength;
|
|
1181
|
-
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1182
|
-
return (await mr(e)).byteLength;
|
|
1183
|
-
}, br = async (e, t) => {
|
|
1184
|
-
const n = a.toFiniteNumber(e.getContentLength());
|
|
1185
|
-
return n ?? Er(t);
|
|
1186
|
-
}, yr = be && (async (e) => {
|
|
1187
|
-
let {
|
|
1188
|
-
url: t,
|
|
1189
|
-
method: n,
|
|
1190
|
-
data: r,
|
|
1191
|
-
signal: s,
|
|
1192
|
-
cancelToken: o,
|
|
1193
|
-
timeout: i,
|
|
1194
|
-
onDownloadProgress: c,
|
|
1195
|
-
onUploadProgress: h,
|
|
1196
|
-
responseType: l,
|
|
1197
|
-
headers: u,
|
|
1198
|
-
withCredentials: R = "same-origin",
|
|
1199
|
-
fetchOptions: E
|
|
1200
|
-
} = Ct(e);
|
|
1201
|
-
l = l ? (l + "").toLowerCase() : "text";
|
|
1202
|
-
let g = fr([s, o && o.toAbortSignal()], i), m;
|
|
1203
|
-
const p = g && g.unsubscribe && (() => {
|
|
1204
|
-
g.unsubscribe();
|
|
1205
|
-
});
|
|
1206
|
-
let d;
|
|
1207
|
-
try {
|
|
1208
|
-
if (h && Rr && n !== "get" && n !== "head" && (d = await br(u, r)) !== 0) {
|
|
1209
|
-
let O = new Request(t, {
|
|
1210
|
-
method: "POST",
|
|
1211
|
-
body: r,
|
|
1212
|
-
duplex: "half"
|
|
1213
|
-
}), v;
|
|
1214
|
-
if (a.isFormData(r) && (v = O.headers.get("content-type")) && u.setContentType(v), O.body) {
|
|
1215
|
-
const [j, $] = Ze(
|
|
1216
|
-
d,
|
|
1217
|
-
fe(Ge(h))
|
|
1218
|
-
);
|
|
1219
|
-
r = et(O.body, tt, j, $);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
a.isString(R) || (R = R ? "include" : "omit");
|
|
1223
|
-
const w = "credentials" in Request.prototype;
|
|
1224
|
-
m = new Request(t, {
|
|
1225
|
-
...E,
|
|
1226
|
-
signal: g,
|
|
1227
|
-
method: n.toUpperCase(),
|
|
1228
|
-
headers: u.normalize().toJSON(),
|
|
1229
|
-
body: r,
|
|
1230
|
-
duplex: "half",
|
|
1231
|
-
credentials: w ? R : void 0
|
|
1232
|
-
});
|
|
1233
|
-
let T = await fetch(m);
|
|
1234
|
-
const S = Fe && (l === "stream" || l === "response");
|
|
1235
|
-
if (Fe && (c || S && p)) {
|
|
1236
|
-
const O = {};
|
|
1237
|
-
["status", "statusText", "headers"].forEach((ie) => {
|
|
1238
|
-
O[ie] = T[ie];
|
|
1239
|
-
});
|
|
1240
|
-
const v = a.toFiniteNumber(T.headers.get("content-length")), [j, $] = c && Ze(
|
|
1241
|
-
v,
|
|
1242
|
-
fe(Ge(c), !0)
|
|
1243
|
-
) || [];
|
|
1244
|
-
T = new Response(
|
|
1245
|
-
et(T.body, tt, j, () => {
|
|
1246
|
-
$ && $(), p && p();
|
|
1247
|
-
}),
|
|
1248
|
-
O
|
|
1249
|
-
);
|
|
1250
|
-
}
|
|
1251
|
-
l = l || "text";
|
|
1252
|
-
let _ = await de[a.findKey(de, l) || "text"](T, e);
|
|
1253
|
-
return !S && p && p(), await new Promise((O, v) => {
|
|
1254
|
-
_t(O, v, {
|
|
1255
|
-
data: _,
|
|
1256
|
-
headers: F.from(T.headers),
|
|
1257
|
-
status: T.status,
|
|
1258
|
-
statusText: T.statusText,
|
|
1259
|
-
config: e,
|
|
1260
|
-
request: m
|
|
1261
|
-
});
|
|
1113
|
+
/**
|
|
1114
|
+
* Iterate over all the registered interceptors
|
|
1115
|
+
*
|
|
1116
|
+
* This method is particularly useful for skipping over any
|
|
1117
|
+
* interceptors that may have become `null` calling `eject`.
|
|
1118
|
+
*
|
|
1119
|
+
* @param {Function} fn The function to call for each interceptor
|
|
1120
|
+
*
|
|
1121
|
+
* @returns {void}
|
|
1122
|
+
*/
|
|
1123
|
+
forEach(t) {
|
|
1124
|
+
a.forEach(this.handlers, function(r) {
|
|
1125
|
+
r !== null && t(r);
|
|
1262
1126
|
});
|
|
1263
|
-
} catch (w) {
|
|
1264
|
-
throw p && p(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
|
|
1265
|
-
new b("Network Error", b.ERR_NETWORK, e, m),
|
|
1266
|
-
{
|
|
1267
|
-
cause: w.cause || w
|
|
1268
|
-
}
|
|
1269
|
-
) : b.from(w, w && w.code, e, m);
|
|
1270
1127
|
}
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1128
|
+
}
|
|
1129
|
+
const Ct = {
|
|
1130
|
+
silentJSONParsing: !0,
|
|
1131
|
+
forcedJSONParsing: !0,
|
|
1132
|
+
clarifyTimeoutError: !1
|
|
1133
|
+
}, rr = typeof URLSearchParams < "u" ? URLSearchParams : Be, sr = typeof FormData < "u" ? FormData : null, or = typeof Blob < "u" ? Blob : null, ir = {
|
|
1134
|
+
isBrowser: !0,
|
|
1135
|
+
classes: {
|
|
1136
|
+
URLSearchParams: rr,
|
|
1137
|
+
FormData: sr,
|
|
1138
|
+
Blob: or
|
|
1139
|
+
},
|
|
1140
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1141
|
+
}, qe = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, ar = qe && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), cr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1142
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lr = qe && window.location.href || "http://localhost", ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1143
|
+
__proto__: null,
|
|
1144
|
+
hasBrowserEnv: qe,
|
|
1145
|
+
hasStandardBrowserEnv: ar,
|
|
1146
|
+
hasStandardBrowserWebWorkerEnv: cr,
|
|
1147
|
+
navigator: Fe,
|
|
1148
|
+
origin: lr
|
|
1149
|
+
}, Symbol.toStringTag, { value: "Module" })), F = {
|
|
1150
|
+
...ur,
|
|
1151
|
+
...ir
|
|
1275
1152
|
};
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
} catch {
|
|
1153
|
+
function fr(e, t) {
|
|
1154
|
+
return ye(e, new F.classes.URLSearchParams(), Object.assign({
|
|
1155
|
+
visitor: function(n, r, s, o) {
|
|
1156
|
+
return F.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1281
1157
|
}
|
|
1282
|
-
|
|
1158
|
+
}, t));
|
|
1159
|
+
}
|
|
1160
|
+
function dr(e) {
|
|
1161
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1162
|
+
}
|
|
1163
|
+
function pr(e) {
|
|
1164
|
+
const t = {}, n = Object.keys(e);
|
|
1165
|
+
let r;
|
|
1166
|
+
const s = n.length;
|
|
1167
|
+
let o;
|
|
1168
|
+
for (r = 0; r < s; r++)
|
|
1169
|
+
o = n[r], t[o] = e[o];
|
|
1170
|
+
return t;
|
|
1171
|
+
}
|
|
1172
|
+
function kt(e) {
|
|
1173
|
+
function t(n, r, s, o) {
|
|
1174
|
+
let i = n[o++];
|
|
1175
|
+
if (i === "__proto__") return !0;
|
|
1176
|
+
const c = Number.isFinite(+i), d = o >= n.length;
|
|
1177
|
+
return i = !i && a.isArray(s) ? s.length : i, d ? (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] = pr(s[i])), !c);
|
|
1283
1178
|
}
|
|
1284
|
-
|
|
1285
|
-
const
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1179
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
1180
|
+
const n = {};
|
|
1181
|
+
return a.forEachEntry(e, (r, s) => {
|
|
1182
|
+
t(dr(r), s, n, 0);
|
|
1183
|
+
}), n;
|
|
1184
|
+
}
|
|
1185
|
+
return null;
|
|
1186
|
+
}
|
|
1187
|
+
function hr(e, t, n) {
|
|
1188
|
+
if (a.isString(e))
|
|
1189
|
+
try {
|
|
1190
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
1191
|
+
} catch (r) {
|
|
1192
|
+
if (r.name !== "SyntaxError")
|
|
1193
|
+
throw r;
|
|
1299
1194
|
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1195
|
+
return (n || JSON.stringify)(e);
|
|
1196
|
+
}
|
|
1197
|
+
const ae = {
|
|
1198
|
+
transitional: Ct,
|
|
1199
|
+
adapter: ["xhr", "http", "fetch"],
|
|
1200
|
+
transformRequest: [function(t, n) {
|
|
1201
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
1202
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
1203
|
+
return s ? JSON.stringify(kt(t)) : t;
|
|
1204
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
1205
|
+
return t;
|
|
1206
|
+
if (a.isArrayBufferView(t))
|
|
1207
|
+
return t.buffer;
|
|
1208
|
+
if (a.isURLSearchParams(t))
|
|
1209
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1210
|
+
let c;
|
|
1211
|
+
if (o) {
|
|
1212
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1213
|
+
return fr(t, this.formSerializer).toString();
|
|
1214
|
+
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1215
|
+
const d = this.env && this.env.FormData;
|
|
1216
|
+
return ye(
|
|
1217
|
+
c ? { "files[]": t } : t,
|
|
1218
|
+
d && new d(),
|
|
1219
|
+
this.formSerializer
|
|
1220
|
+
);
|
|
1221
|
+
}
|
|
1311
1222
|
}
|
|
1312
|
-
return
|
|
1223
|
+
return o || s ? (n.setContentType("application/json", !1), hr(t)) : t;
|
|
1224
|
+
}],
|
|
1225
|
+
transformResponse: [function(t) {
|
|
1226
|
+
const n = this.transitional || ae.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1227
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
1228
|
+
return t;
|
|
1229
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
1230
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
1231
|
+
try {
|
|
1232
|
+
return JSON.parse(t);
|
|
1233
|
+
} catch (c) {
|
|
1234
|
+
if (i)
|
|
1235
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
return t;
|
|
1239
|
+
}],
|
|
1240
|
+
/**
|
|
1241
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
1242
|
+
* timeout is not created.
|
|
1243
|
+
*/
|
|
1244
|
+
timeout: 0,
|
|
1245
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
1246
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1247
|
+
maxContentLength: -1,
|
|
1248
|
+
maxBodyLength: -1,
|
|
1249
|
+
env: {
|
|
1250
|
+
FormData: F.classes.FormData,
|
|
1251
|
+
Blob: F.classes.Blob
|
|
1252
|
+
},
|
|
1253
|
+
validateStatus: function(t) {
|
|
1254
|
+
return t >= 200 && t < 300;
|
|
1313
1255
|
},
|
|
1314
|
-
|
|
1256
|
+
headers: {
|
|
1257
|
+
common: {
|
|
1258
|
+
Accept: "application/json, text/plain, */*",
|
|
1259
|
+
"Content-Type": void 0
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1315
1262
|
};
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1263
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1264
|
+
ae.headers[e] = {};
|
|
1265
|
+
});
|
|
1266
|
+
const mr = a.toObjectSet([
|
|
1267
|
+
"age",
|
|
1268
|
+
"authorization",
|
|
1269
|
+
"content-length",
|
|
1270
|
+
"content-type",
|
|
1271
|
+
"etag",
|
|
1272
|
+
"expires",
|
|
1273
|
+
"from",
|
|
1274
|
+
"host",
|
|
1275
|
+
"if-modified-since",
|
|
1276
|
+
"if-unmodified-since",
|
|
1277
|
+
"last-modified",
|
|
1278
|
+
"location",
|
|
1279
|
+
"max-forwards",
|
|
1280
|
+
"proxy-authorization",
|
|
1281
|
+
"referer",
|
|
1282
|
+
"retry-after",
|
|
1283
|
+
"user-agent"
|
|
1284
|
+
]), Rr = (e) => {
|
|
1285
|
+
const t = {};
|
|
1286
|
+
let n, r, s;
|
|
1287
|
+
return e && e.split(`
|
|
1288
|
+
`).forEach(function(i) {
|
|
1289
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && mr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1290
|
+
}), t;
|
|
1291
|
+
}, nt = Symbol("internals");
|
|
1292
|
+
function ee(e) {
|
|
1293
|
+
return e && String(e).trim().toLowerCase();
|
|
1319
1294
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1322
|
-
e,
|
|
1323
|
-
e.transformRequest
|
|
1324
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(e.adapter || ne.adapter)(e).then(function(r) {
|
|
1325
|
-
return _e(e), r.data = xe.call(
|
|
1326
|
-
e,
|
|
1327
|
-
e.transformResponse,
|
|
1328
|
-
r
|
|
1329
|
-
), r.headers = F.from(r.headers), r;
|
|
1330
|
-
}, function(r) {
|
|
1331
|
-
return xt(r) || (_e(e), r && r.response && (r.response.data = xe.call(
|
|
1332
|
-
e,
|
|
1333
|
-
e.transformResponse,
|
|
1334
|
-
r.response
|
|
1335
|
-
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1336
|
-
});
|
|
1295
|
+
function ue(e) {
|
|
1296
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ue) : String(e);
|
|
1337
1297
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
if (
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
);
|
|
1355
|
-
return n && !st[i] && (st[i] = !0, console.warn(
|
|
1356
|
-
s(
|
|
1357
|
-
i,
|
|
1358
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1359
|
-
)
|
|
1360
|
-
)), t ? t(o, i, c) : !0;
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
|
-
ye.spelling = function(t) {
|
|
1364
|
-
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1365
|
-
};
|
|
1366
|
-
function gr(e, t, n) {
|
|
1367
|
-
if (typeof e != "object")
|
|
1368
|
-
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1369
|
-
const r = Object.keys(e);
|
|
1370
|
-
let s = r.length;
|
|
1371
|
-
for (; s-- > 0; ) {
|
|
1372
|
-
const o = r[s], i = t[o];
|
|
1373
|
-
if (i) {
|
|
1374
|
-
const c = e[o], h = c === void 0 || i(c, o, e);
|
|
1375
|
-
if (h !== !0)
|
|
1376
|
-
throw new b("option " + o + " must be " + h, b.ERR_BAD_OPTION_VALUE);
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
if (n !== !0)
|
|
1380
|
-
throw new b("Unknown option " + o, b.ERR_BAD_OPTION);
|
|
1298
|
+
function Er(e) {
|
|
1299
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1300
|
+
let r;
|
|
1301
|
+
for (; r = n.exec(e); )
|
|
1302
|
+
t[r[1]] = r[2];
|
|
1303
|
+
return t;
|
|
1304
|
+
}
|
|
1305
|
+
const br = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1306
|
+
function xe(e, t, n, r, s) {
|
|
1307
|
+
if (a.isFunction(r))
|
|
1308
|
+
return r.call(this, t, n);
|
|
1309
|
+
if (s && (t = n), !!a.isString(t)) {
|
|
1310
|
+
if (a.isString(r))
|
|
1311
|
+
return t.indexOf(r) !== -1;
|
|
1312
|
+
if (a.isRegExp(r))
|
|
1313
|
+
return r.test(t);
|
|
1381
1314
|
}
|
|
1382
1315
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1316
|
+
function yr(e) {
|
|
1317
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1318
|
+
}
|
|
1319
|
+
function wr(e, t) {
|
|
1320
|
+
const n = a.toCamelCase(" " + t);
|
|
1321
|
+
["get", "set", "has"].forEach((r) => {
|
|
1322
|
+
Object.defineProperty(e, r + n, {
|
|
1323
|
+
value: function(s, o, i) {
|
|
1324
|
+
return this[r].call(this, t, s, o, i);
|
|
1325
|
+
},
|
|
1326
|
+
configurable: !0
|
|
1327
|
+
});
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
let L = class {
|
|
1388
1331
|
constructor(t) {
|
|
1389
|
-
|
|
1390
|
-
request: new Ke(),
|
|
1391
|
-
response: new Ke()
|
|
1392
|
-
};
|
|
1332
|
+
t && this.set(t);
|
|
1393
1333
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
async request(t, n) {
|
|
1403
|
-
try {
|
|
1404
|
-
return await this._request(t, n);
|
|
1405
|
-
} catch (r) {
|
|
1406
|
-
if (r instanceof Error) {
|
|
1407
|
-
let s = {};
|
|
1408
|
-
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1409
|
-
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1410
|
-
try {
|
|
1411
|
-
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1412
|
-
` + o) : r.stack = o;
|
|
1413
|
-
} catch {
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
throw r;
|
|
1334
|
+
set(t, n, r) {
|
|
1335
|
+
const s = this;
|
|
1336
|
+
function o(c, d, l) {
|
|
1337
|
+
const u = ee(d);
|
|
1338
|
+
if (!u)
|
|
1339
|
+
throw new Error("header name must be a non-empty string");
|
|
1340
|
+
const p = a.findKey(s, u);
|
|
1341
|
+
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || d] = ue(c));
|
|
1417
1342
|
}
|
|
1343
|
+
const i = (c, d) => a.forEach(c, (l, u) => o(l, u, d));
|
|
1344
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
1345
|
+
i(t, n);
|
|
1346
|
+
else if (a.isString(t) && (t = t.trim()) && !br(t))
|
|
1347
|
+
i(Rr(t), n);
|
|
1348
|
+
else if (a.isObject(t) && a.isIterable(t)) {
|
|
1349
|
+
let c = {}, d, l;
|
|
1350
|
+
for (const u of t) {
|
|
1351
|
+
if (!a.isArray(u))
|
|
1352
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
1353
|
+
c[l = u[0]] = (d = c[l]) ? a.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
|
|
1354
|
+
}
|
|
1355
|
+
i(c, n);
|
|
1356
|
+
} else
|
|
1357
|
+
t != null && o(n, t, r);
|
|
1358
|
+
return this;
|
|
1418
1359
|
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
withXsrfToken: B.spelling("withXSRFToken")
|
|
1434
|
-
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1435
|
-
let i = o && a.merge(
|
|
1436
|
-
o.common,
|
|
1437
|
-
o[n.method]
|
|
1438
|
-
);
|
|
1439
|
-
o && a.forEach(
|
|
1440
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1441
|
-
(m) => {
|
|
1442
|
-
delete o[m];
|
|
1360
|
+
get(t, n) {
|
|
1361
|
+
if (t = ee(t), t) {
|
|
1362
|
+
const r = a.findKey(this, t);
|
|
1363
|
+
if (r) {
|
|
1364
|
+
const s = this[r];
|
|
1365
|
+
if (!n)
|
|
1366
|
+
return s;
|
|
1367
|
+
if (n === !0)
|
|
1368
|
+
return Er(s);
|
|
1369
|
+
if (a.isFunction(n))
|
|
1370
|
+
return n.call(this, s, r);
|
|
1371
|
+
if (a.isRegExp(n))
|
|
1372
|
+
return n.exec(s);
|
|
1373
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
1443
1374
|
}
|
|
1444
|
-
), n.headers = F.concat(i, o);
|
|
1445
|
-
const c = [];
|
|
1446
|
-
let h = !0;
|
|
1447
|
-
this.interceptors.request.forEach(function(p) {
|
|
1448
|
-
typeof p.runWhen == "function" && p.runWhen(n) === !1 || (h = h && p.synchronous, c.unshift(p.fulfilled, p.rejected));
|
|
1449
|
-
});
|
|
1450
|
-
const l = [];
|
|
1451
|
-
this.interceptors.response.forEach(function(p) {
|
|
1452
|
-
l.push(p.fulfilled, p.rejected);
|
|
1453
|
-
});
|
|
1454
|
-
let u, R = 0, E;
|
|
1455
|
-
if (!h) {
|
|
1456
|
-
const m = [rt.bind(this), void 0];
|
|
1457
|
-
for (m.unshift.apply(m, c), m.push.apply(m, l), E = m.length, u = Promise.resolve(n); R < E; )
|
|
1458
|
-
u = u.then(m[R++], m[R++]);
|
|
1459
|
-
return u;
|
|
1460
1375
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
g = m(g);
|
|
1467
|
-
} catch (d) {
|
|
1468
|
-
p.call(this, d);
|
|
1469
|
-
break;
|
|
1470
|
-
}
|
|
1376
|
+
}
|
|
1377
|
+
has(t, n) {
|
|
1378
|
+
if (t = ee(t), t) {
|
|
1379
|
+
const r = a.findKey(this, t);
|
|
1380
|
+
return !!(r && this[r] !== void 0 && (!n || xe(this, this[r], r, n)));
|
|
1471
1381
|
}
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1382
|
+
return !1;
|
|
1383
|
+
}
|
|
1384
|
+
delete(t, n) {
|
|
1385
|
+
const r = this;
|
|
1386
|
+
let s = !1;
|
|
1387
|
+
function o(i) {
|
|
1388
|
+
if (i = ee(i), i) {
|
|
1389
|
+
const c = a.findKey(r, i);
|
|
1390
|
+
c && (!n || xe(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
1391
|
+
}
|
|
1476
1392
|
}
|
|
1477
|
-
|
|
1478
|
-
u = u.then(l[R++], l[R++]);
|
|
1479
|
-
return u;
|
|
1393
|
+
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
1480
1394
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1395
|
+
clear(t) {
|
|
1396
|
+
const n = Object.keys(this);
|
|
1397
|
+
let r = n.length, s = !1;
|
|
1398
|
+
for (; r--; ) {
|
|
1399
|
+
const o = n[r];
|
|
1400
|
+
(!t || xe(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
1401
|
+
}
|
|
1402
|
+
return s;
|
|
1485
1403
|
}
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
function n(r) {
|
|
1498
|
-
return function(o, i, c) {
|
|
1499
|
-
return this.request(J(c || {}, {
|
|
1500
|
-
method: t,
|
|
1501
|
-
headers: r ? {
|
|
1502
|
-
"Content-Type": "multipart/form-data"
|
|
1503
|
-
} : {},
|
|
1504
|
-
url: o,
|
|
1505
|
-
data: i
|
|
1506
|
-
}));
|
|
1507
|
-
};
|
|
1404
|
+
normalize(t) {
|
|
1405
|
+
const n = this, r = {};
|
|
1406
|
+
return a.forEach(this, (s, o) => {
|
|
1407
|
+
const i = a.findKey(r, o);
|
|
1408
|
+
if (i) {
|
|
1409
|
+
n[i] = ue(s), delete n[o];
|
|
1410
|
+
return;
|
|
1411
|
+
}
|
|
1412
|
+
const c = t ? yr(o) : String(o).trim();
|
|
1413
|
+
c !== o && delete n[o], n[c] = ue(s), r[c] = !0;
|
|
1414
|
+
}), this;
|
|
1508
1415
|
}
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
let Tr = class jt {
|
|
1512
|
-
constructor(t) {
|
|
1513
|
-
if (typeof t != "function")
|
|
1514
|
-
throw new TypeError("executor must be a function.");
|
|
1515
|
-
let n;
|
|
1516
|
-
this.promise = new Promise(function(o) {
|
|
1517
|
-
n = o;
|
|
1518
|
-
});
|
|
1519
|
-
const r = this;
|
|
1520
|
-
this.promise.then((s) => {
|
|
1521
|
-
if (!r._listeners) return;
|
|
1522
|
-
let o = r._listeners.length;
|
|
1523
|
-
for (; o-- > 0; )
|
|
1524
|
-
r._listeners[o](s);
|
|
1525
|
-
r._listeners = null;
|
|
1526
|
-
}), this.promise.then = (s) => {
|
|
1527
|
-
let o;
|
|
1528
|
-
const i = new Promise((c) => {
|
|
1529
|
-
r.subscribe(c), o = c;
|
|
1530
|
-
}).then(s);
|
|
1531
|
-
return i.cancel = function() {
|
|
1532
|
-
r.unsubscribe(o);
|
|
1533
|
-
}, i;
|
|
1534
|
-
}, t(function(o, i, c) {
|
|
1535
|
-
r.reason || (r.reason = new Y(o, i, c), n(r.reason));
|
|
1536
|
-
});
|
|
1416
|
+
concat(...t) {
|
|
1417
|
+
return this.constructor.concat(this, ...t);
|
|
1537
1418
|
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
throw this.reason;
|
|
1419
|
+
toJSON(t) {
|
|
1420
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
1421
|
+
return a.forEach(this, (r, s) => {
|
|
1422
|
+
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
1423
|
+
}), n;
|
|
1544
1424
|
}
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
*/
|
|
1548
|
-
subscribe(t) {
|
|
1549
|
-
if (this.reason) {
|
|
1550
|
-
t(this.reason);
|
|
1551
|
-
return;
|
|
1552
|
-
}
|
|
1553
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1425
|
+
[Symbol.iterator]() {
|
|
1426
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1554
1427
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
unsubscribe(t) {
|
|
1559
|
-
if (!this._listeners)
|
|
1560
|
-
return;
|
|
1561
|
-
const n = this._listeners.indexOf(t);
|
|
1562
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1428
|
+
toString() {
|
|
1429
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
1430
|
+
`);
|
|
1563
1431
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
t.abort(r);
|
|
1567
|
-
};
|
|
1568
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1432
|
+
getSetCookie() {
|
|
1433
|
+
return this.get("set-cookie") || [];
|
|
1569
1434
|
}
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1435
|
+
get [Symbol.toStringTag]() {
|
|
1436
|
+
return "AxiosHeaders";
|
|
1437
|
+
}
|
|
1438
|
+
static from(t) {
|
|
1439
|
+
return t instanceof this ? t : new this(t);
|
|
1440
|
+
}
|
|
1441
|
+
static concat(t, ...n) {
|
|
1442
|
+
const r = new this(t);
|
|
1443
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1444
|
+
}
|
|
1445
|
+
static accessor(t) {
|
|
1446
|
+
const r = (this[nt] = this[nt] = {
|
|
1447
|
+
accessors: {}
|
|
1448
|
+
}).accessors, s = this.prototype;
|
|
1449
|
+
function o(i) {
|
|
1450
|
+
const c = ee(i);
|
|
1451
|
+
r[c] || (wr(s, i), r[c] = !0);
|
|
1452
|
+
}
|
|
1453
|
+
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1582
1454
|
}
|
|
1583
1455
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1456
|
+
L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1457
|
+
a.reduceDescriptors(L.prototype, ({ value: e }, t) => {
|
|
1458
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
1459
|
+
return {
|
|
1460
|
+
get: () => e,
|
|
1461
|
+
set(r) {
|
|
1462
|
+
this[n] = r;
|
|
1463
|
+
}
|
|
1587
1464
|
};
|
|
1465
|
+
});
|
|
1466
|
+
a.freezeMethods(L);
|
|
1467
|
+
function Ne(e, t) {
|
|
1468
|
+
const n = this || ae, r = t || n, s = L.from(r.headers);
|
|
1469
|
+
let o = r.data;
|
|
1470
|
+
return a.forEach(e, function(c) {
|
|
1471
|
+
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1472
|
+
}), s.normalize(), o;
|
|
1588
1473
|
}
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1474
|
+
function Ft(e) {
|
|
1475
|
+
return !!(e && e.__CANCEL__);
|
|
1591
1476
|
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
Ok: 200,
|
|
1598
|
-
Created: 201,
|
|
1599
|
-
Accepted: 202,
|
|
1600
|
-
NonAuthoritativeInformation: 203,
|
|
1601
|
-
NoContent: 204,
|
|
1602
|
-
ResetContent: 205,
|
|
1603
|
-
PartialContent: 206,
|
|
1604
|
-
MultiStatus: 207,
|
|
1605
|
-
AlreadyReported: 208,
|
|
1606
|
-
ImUsed: 226,
|
|
1607
|
-
MultipleChoices: 300,
|
|
1608
|
-
MovedPermanently: 301,
|
|
1609
|
-
Found: 302,
|
|
1610
|
-
SeeOther: 303,
|
|
1611
|
-
NotModified: 304,
|
|
1612
|
-
UseProxy: 305,
|
|
1613
|
-
Unused: 306,
|
|
1614
|
-
TemporaryRedirect: 307,
|
|
1615
|
-
PermanentRedirect: 308,
|
|
1616
|
-
BadRequest: 400,
|
|
1617
|
-
Unauthorized: 401,
|
|
1618
|
-
PaymentRequired: 402,
|
|
1619
|
-
Forbidden: 403,
|
|
1620
|
-
NotFound: 404,
|
|
1621
|
-
MethodNotAllowed: 405,
|
|
1622
|
-
NotAcceptable: 406,
|
|
1623
|
-
ProxyAuthenticationRequired: 407,
|
|
1624
|
-
RequestTimeout: 408,
|
|
1625
|
-
Conflict: 409,
|
|
1626
|
-
Gone: 410,
|
|
1627
|
-
LengthRequired: 411,
|
|
1628
|
-
PreconditionFailed: 412,
|
|
1629
|
-
PayloadTooLarge: 413,
|
|
1630
|
-
UriTooLong: 414,
|
|
1631
|
-
UnsupportedMediaType: 415,
|
|
1632
|
-
RangeNotSatisfiable: 416,
|
|
1633
|
-
ExpectationFailed: 417,
|
|
1634
|
-
ImATeapot: 418,
|
|
1635
|
-
MisdirectedRequest: 421,
|
|
1636
|
-
UnprocessableEntity: 422,
|
|
1637
|
-
Locked: 423,
|
|
1638
|
-
FailedDependency: 424,
|
|
1639
|
-
TooEarly: 425,
|
|
1640
|
-
UpgradeRequired: 426,
|
|
1641
|
-
PreconditionRequired: 428,
|
|
1642
|
-
TooManyRequests: 429,
|
|
1643
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1644
|
-
UnavailableForLegalReasons: 451,
|
|
1645
|
-
InternalServerError: 500,
|
|
1646
|
-
NotImplemented: 501,
|
|
1647
|
-
BadGateway: 502,
|
|
1648
|
-
ServiceUnavailable: 503,
|
|
1649
|
-
GatewayTimeout: 504,
|
|
1650
|
-
HttpVersionNotSupported: 505,
|
|
1651
|
-
VariantAlsoNegotiates: 506,
|
|
1652
|
-
InsufficientStorage: 507,
|
|
1653
|
-
LoopDetected: 508,
|
|
1654
|
-
NotExtended: 510,
|
|
1655
|
-
NetworkAuthenticationRequired: 511
|
|
1656
|
-
};
|
|
1657
|
-
Object.entries(je).forEach(([e, t]) => {
|
|
1658
|
-
je[t] = e;
|
|
1477
|
+
function X(e, t, n) {
|
|
1478
|
+
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1479
|
+
}
|
|
1480
|
+
a.inherits(X, y, {
|
|
1481
|
+
__CANCEL__: !0
|
|
1659
1482
|
});
|
|
1660
|
-
function
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1483
|
+
function vt(e, t, n) {
|
|
1484
|
+
const r = n.config.validateStatus;
|
|
1485
|
+
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
1486
|
+
"Request failed with status code " + n.status,
|
|
1487
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
1488
|
+
n.config,
|
|
1489
|
+
n.request,
|
|
1490
|
+
n
|
|
1491
|
+
));
|
|
1665
1492
|
}
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
401: "请先登录再继续",
|
|
1742
|
-
404: "请求未找到/路由错误",
|
|
1743
|
-
413: "请求/发送的文件超出服务器限制大小",
|
|
1744
|
-
500: "内部服务器错误",
|
|
1745
|
-
503: "系统维护中",
|
|
1746
|
-
504: "请检查网络后重试",
|
|
1747
|
-
511: "区域不可用",
|
|
1748
|
-
CANCEL_ERROR: "请求已取消。仅当配置中提供 `cancelToken` 时可能发生,请参阅 axios 的 `Cancellation`",
|
|
1749
|
-
CLIENT_ERROR: "任意非特定的400系列错误",
|
|
1750
|
-
CONNECTION_ERROR: "服务器不可用,DNS错误",
|
|
1751
|
-
NETWORK_ERROR: "您的移动网络连接不稳定。请检查网络连接后重试。",
|
|
1752
|
-
SERVER_ERROR: "任意500系列错误",
|
|
1753
|
-
TIMEOUT_ERROR: "服务器已超过 {sec} 秒未响应。请确认您的网络连接状态或联系客服"
|
|
1493
|
+
function Tr(e) {
|
|
1494
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1495
|
+
return t && t[1] || "";
|
|
1496
|
+
}
|
|
1497
|
+
function gr(e, t) {
|
|
1498
|
+
e = e || 10;
|
|
1499
|
+
const n = new Array(e), r = new Array(e);
|
|
1500
|
+
let s = 0, o = 0, i;
|
|
1501
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
1502
|
+
const l = Date.now(), u = r[o];
|
|
1503
|
+
i || (i = l), n[s] = d, r[s] = l;
|
|
1504
|
+
let p = o, b = 0;
|
|
1505
|
+
for (; p !== s; )
|
|
1506
|
+
b += n[p++], p = p % e;
|
|
1507
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
1508
|
+
return;
|
|
1509
|
+
const T = u && l - u;
|
|
1510
|
+
return T ? Math.round(b * 1e3 / T) : void 0;
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
function Sr(e, t) {
|
|
1514
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
1515
|
+
const i = (l, u = Date.now()) => {
|
|
1516
|
+
n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
|
|
1517
|
+
};
|
|
1518
|
+
return [(...l) => {
|
|
1519
|
+
const u = Date.now(), p = u - n;
|
|
1520
|
+
p >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
|
|
1521
|
+
o = null, i(s);
|
|
1522
|
+
}, r - p)));
|
|
1523
|
+
}, () => s && i(s)];
|
|
1524
|
+
}
|
|
1525
|
+
const pe = (e, t, n = 3) => {
|
|
1526
|
+
let r = 0;
|
|
1527
|
+
const s = gr(50, 250);
|
|
1528
|
+
return Sr((o) => {
|
|
1529
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, d = i - r, l = s(d), u = i <= c;
|
|
1530
|
+
r = i;
|
|
1531
|
+
const p = {
|
|
1532
|
+
loaded: i,
|
|
1533
|
+
total: c,
|
|
1534
|
+
progress: c ? i / c : void 0,
|
|
1535
|
+
bytes: d,
|
|
1536
|
+
rate: l || void 0,
|
|
1537
|
+
estimated: l && c && u ? (c - i) / l : void 0,
|
|
1538
|
+
event: o,
|
|
1539
|
+
lengthComputable: c != null,
|
|
1540
|
+
[t ? "download" : "upload"]: !0
|
|
1541
|
+
};
|
|
1542
|
+
e(p);
|
|
1543
|
+
}, n);
|
|
1544
|
+
}, rt = (e, t) => {
|
|
1545
|
+
const n = e != null;
|
|
1546
|
+
return [(r) => t[0]({
|
|
1547
|
+
lengthComputable: n,
|
|
1548
|
+
total: e,
|
|
1549
|
+
loaded: r
|
|
1550
|
+
}), t[1]];
|
|
1551
|
+
}, st = (e) => (...t) => a.asap(() => e(...t)), Or = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, F.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1552
|
+
new URL(F.origin),
|
|
1553
|
+
F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
|
|
1554
|
+
) : () => !0, Ar = F.hasStandardBrowserEnv ? (
|
|
1555
|
+
// Standard browser envs support document.cookie
|
|
1556
|
+
{
|
|
1557
|
+
write(e, t, n, r, s, o) {
|
|
1558
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
1559
|
+
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("; ");
|
|
1560
|
+
},
|
|
1561
|
+
read(e) {
|
|
1562
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
1563
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
1564
|
+
},
|
|
1565
|
+
remove(e) {
|
|
1566
|
+
this.write(e, "", Date.now() - 864e5);
|
|
1567
|
+
}
|
|
1754
1568
|
}
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
const o = Ut(s, t.concat(r));
|
|
1766
|
-
return {
|
|
1767
|
-
variables: { ...n.variables, [r]: o.variables },
|
|
1768
|
-
map: [...n.map, ...o.map],
|
|
1769
|
-
values: [...n.values, ...o.values]
|
|
1770
|
-
};
|
|
1569
|
+
) : (
|
|
1570
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1571
|
+
{
|
|
1572
|
+
write() {
|
|
1573
|
+
},
|
|
1574
|
+
read() {
|
|
1575
|
+
return null;
|
|
1576
|
+
},
|
|
1577
|
+
remove() {
|
|
1578
|
+
}
|
|
1771
1579
|
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1580
|
+
);
|
|
1581
|
+
function _r(e) {
|
|
1582
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1583
|
+
}
|
|
1584
|
+
function xr(e, t) {
|
|
1585
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1586
|
+
}
|
|
1587
|
+
function jt(e, t, n) {
|
|
1588
|
+
let r = !_r(t);
|
|
1589
|
+
return e && (r || n == !1) ? xr(e, t) : t;
|
|
1590
|
+
}
|
|
1591
|
+
const ot = (e) => e instanceof L ? { ...e } : e;
|
|
1592
|
+
function W(e, t) {
|
|
1593
|
+
t = t || {};
|
|
1594
|
+
const n = {};
|
|
1595
|
+
function r(l, u, p, b) {
|
|
1596
|
+
return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: b }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
1597
|
+
}
|
|
1598
|
+
function s(l, u, p, b) {
|
|
1599
|
+
if (a.isUndefined(u)) {
|
|
1600
|
+
if (!a.isUndefined(l))
|
|
1601
|
+
return r(void 0, l, p, b);
|
|
1602
|
+
} else return r(l, u, p, b);
|
|
1603
|
+
}
|
|
1604
|
+
function o(l, u) {
|
|
1605
|
+
if (!a.isUndefined(u))
|
|
1606
|
+
return r(void 0, u);
|
|
1607
|
+
}
|
|
1608
|
+
function i(l, u) {
|
|
1609
|
+
if (a.isUndefined(u)) {
|
|
1610
|
+
if (!a.isUndefined(l))
|
|
1611
|
+
return r(void 0, l);
|
|
1612
|
+
} else return r(void 0, u);
|
|
1613
|
+
}
|
|
1614
|
+
function c(l, u, p) {
|
|
1615
|
+
if (p in t)
|
|
1616
|
+
return r(l, u);
|
|
1617
|
+
if (p in e)
|
|
1618
|
+
return r(void 0, l);
|
|
1619
|
+
}
|
|
1620
|
+
const d = {
|
|
1621
|
+
url: o,
|
|
1622
|
+
method: o,
|
|
1623
|
+
data: o,
|
|
1624
|
+
baseURL: i,
|
|
1625
|
+
transformRequest: i,
|
|
1626
|
+
transformResponse: i,
|
|
1627
|
+
paramsSerializer: i,
|
|
1628
|
+
timeout: i,
|
|
1629
|
+
timeoutMessage: i,
|
|
1630
|
+
withCredentials: i,
|
|
1631
|
+
withXSRFToken: i,
|
|
1632
|
+
adapter: i,
|
|
1633
|
+
responseType: i,
|
|
1634
|
+
xsrfCookieName: i,
|
|
1635
|
+
xsrfHeaderName: i,
|
|
1636
|
+
onUploadProgress: i,
|
|
1637
|
+
onDownloadProgress: i,
|
|
1638
|
+
decompress: i,
|
|
1639
|
+
maxContentLength: i,
|
|
1640
|
+
maxBodyLength: i,
|
|
1641
|
+
beforeRedirect: i,
|
|
1642
|
+
transport: i,
|
|
1643
|
+
httpAgent: i,
|
|
1644
|
+
httpsAgent: i,
|
|
1645
|
+
cancelToken: i,
|
|
1646
|
+
socketPath: i,
|
|
1647
|
+
responseEncoding: i,
|
|
1648
|
+
validateStatus: c,
|
|
1649
|
+
headers: (l, u, p) => s(ot(l), ot(u), p, !0)
|
|
1776
1650
|
};
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
},
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
const
|
|
1784
|
-
let i =
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
];
|
|
1797
|
-
n = new FormData(), g.forEach((m) => {
|
|
1798
|
-
n.append(m.name.toString(), m.value);
|
|
1799
|
-
});
|
|
1651
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
1652
|
+
const p = d[u] || s, b = p(e[u], t[u], u);
|
|
1653
|
+
a.isUndefined(b) && p !== c || (n[u] = b);
|
|
1654
|
+
}), n;
|
|
1655
|
+
}
|
|
1656
|
+
const Lt = (e) => {
|
|
1657
|
+
const t = W({}, e);
|
|
1658
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1659
|
+
t.headers = i = L.from(i), t.url = Pt(jt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1660
|
+
"Authorization",
|
|
1661
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1662
|
+
);
|
|
1663
|
+
let d;
|
|
1664
|
+
if (a.isFormData(n)) {
|
|
1665
|
+
if (F.hasStandardBrowserEnv || F.hasStandardBrowserWebWorkerEnv)
|
|
1666
|
+
i.setContentType(void 0);
|
|
1667
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
1668
|
+
const [l, ...u] = d ? d.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1669
|
+
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1800
1670
|
}
|
|
1801
1671
|
}
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
"Apollo-Require-Preflight": "true",
|
|
1806
|
-
"X-Requested-With": "XMLHttpRequest",
|
|
1807
|
-
...s == null ? void 0 : s.headers
|
|
1808
|
-
}, [l] = await Promise.all([
|
|
1809
|
-
M.post(c, n, {
|
|
1810
|
-
...s,
|
|
1811
|
-
headers: h
|
|
1812
|
-
}),
|
|
1813
|
-
_r(400)
|
|
1814
|
-
]);
|
|
1815
|
-
return l.data.data;
|
|
1816
|
-
};
|
|
1817
|
-
var ae = { exports: {} }, X = {};
|
|
1818
|
-
/**
|
|
1819
|
-
* @license React
|
|
1820
|
-
* react-jsx-runtime.production.js
|
|
1821
|
-
*
|
|
1822
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1823
|
-
*
|
|
1824
|
-
* This source code is licensed under the MIT license found in the
|
|
1825
|
-
* LICENSE file in the root directory of this source tree.
|
|
1826
|
-
*/
|
|
1827
|
-
var it;
|
|
1828
|
-
function Nr() {
|
|
1829
|
-
if (it) return X;
|
|
1830
|
-
it = 1;
|
|
1831
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
1832
|
-
function n(r, s, o) {
|
|
1833
|
-
var i = null;
|
|
1834
|
-
if (o !== void 0 && (i = "" + o), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
1835
|
-
o = {};
|
|
1836
|
-
for (var c in s)
|
|
1837
|
-
c !== "key" && (o[c] = s[c]);
|
|
1838
|
-
} else o = s;
|
|
1839
|
-
return s = o.ref, {
|
|
1840
|
-
$$typeof: e,
|
|
1841
|
-
type: r,
|
|
1842
|
-
key: i,
|
|
1843
|
-
ref: s !== void 0 ? s : null,
|
|
1844
|
-
props: o
|
|
1845
|
-
};
|
|
1672
|
+
if (F.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Or(t.url))) {
|
|
1673
|
+
const l = s && o && Ar.read(o);
|
|
1674
|
+
l && i.set(s, l);
|
|
1846
1675
|
}
|
|
1847
|
-
return
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
* This source code is licensed under the MIT license found in the
|
|
1857
|
-
* LICENSE file in the root directory of this source tree.
|
|
1858
|
-
*/
|
|
1859
|
-
var at;
|
|
1860
|
-
function Cr() {
|
|
1861
|
-
return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1862
|
-
function e(f) {
|
|
1863
|
-
if (f == null) return null;
|
|
1864
|
-
if (typeof f == "function")
|
|
1865
|
-
return f.$$typeof === qt ? null : f.displayName || f.name || null;
|
|
1866
|
-
if (typeof f == "string") return f;
|
|
1867
|
-
switch (f) {
|
|
1868
|
-
case p:
|
|
1869
|
-
return "Fragment";
|
|
1870
|
-
case w:
|
|
1871
|
-
return "Profiler";
|
|
1872
|
-
case d:
|
|
1873
|
-
return "StrictMode";
|
|
1874
|
-
case O:
|
|
1875
|
-
return "Suspense";
|
|
1876
|
-
case v:
|
|
1877
|
-
return "SuspenseList";
|
|
1878
|
-
case ie:
|
|
1879
|
-
return "Activity";
|
|
1880
|
-
}
|
|
1881
|
-
if (typeof f == "object")
|
|
1882
|
-
switch (typeof f.tag == "number" && console.error(
|
|
1883
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1884
|
-
), f.$$typeof) {
|
|
1885
|
-
case m:
|
|
1886
|
-
return "Portal";
|
|
1887
|
-
case S:
|
|
1888
|
-
return (f.displayName || "Context") + ".Provider";
|
|
1889
|
-
case T:
|
|
1890
|
-
return (f._context.displayName || "Context") + ".Consumer";
|
|
1891
|
-
case _:
|
|
1892
|
-
var y = f.render;
|
|
1893
|
-
return f = f.displayName, f || (f = y.displayName || y.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
|
|
1894
|
-
case j:
|
|
1895
|
-
return y = f.displayName || null, y !== null ? y : e(f.type) || "Memo";
|
|
1896
|
-
case $:
|
|
1897
|
-
y = f._payload, f = f._init;
|
|
1898
|
-
try {
|
|
1899
|
-
return e(f(y));
|
|
1900
|
-
} catch {
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
return null;
|
|
1676
|
+
return t;
|
|
1677
|
+
}, Nr = typeof XMLHttpRequest < "u", Pr = Nr && function(e) {
|
|
1678
|
+
return new Promise(function(n, r) {
|
|
1679
|
+
const s = Lt(e);
|
|
1680
|
+
let o = s.data;
|
|
1681
|
+
const i = L.from(s.headers).normalize();
|
|
1682
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = s, u, p, b, T, h;
|
|
1683
|
+
function R() {
|
|
1684
|
+
T && T(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1904
1685
|
}
|
|
1905
|
-
|
|
1906
|
-
|
|
1686
|
+
let m = new XMLHttpRequest();
|
|
1687
|
+
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
1688
|
+
function S() {
|
|
1689
|
+
if (!m)
|
|
1690
|
+
return;
|
|
1691
|
+
const E = L.from(
|
|
1692
|
+
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
1693
|
+
), g = {
|
|
1694
|
+
data: !c || c === "text" || c === "json" ? m.responseText : m.response,
|
|
1695
|
+
status: m.status,
|
|
1696
|
+
statusText: m.statusText,
|
|
1697
|
+
headers: E,
|
|
1698
|
+
config: e,
|
|
1699
|
+
request: m
|
|
1700
|
+
};
|
|
1701
|
+
vt(function(P) {
|
|
1702
|
+
n(P), R();
|
|
1703
|
+
}, function(P) {
|
|
1704
|
+
r(P), R();
|
|
1705
|
+
}, g), m = null;
|
|
1907
1706
|
}
|
|
1908
|
-
function
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1707
|
+
"onloadend" in m ? m.onloadend = S : m.onreadystatechange = function() {
|
|
1708
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1709
|
+
}, m.onabort = function() {
|
|
1710
|
+
m && (r(new y("Request aborted", y.ECONNABORTED, e, m)), m = null);
|
|
1711
|
+
}, m.onerror = function() {
|
|
1712
|
+
r(new y("Network Error", y.ERR_NETWORK, e, m)), m = null;
|
|
1713
|
+
}, m.ontimeout = function() {
|
|
1714
|
+
let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1715
|
+
const g = s.transitional || Ct;
|
|
1716
|
+
s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
|
|
1717
|
+
O,
|
|
1718
|
+
g.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1719
|
+
e,
|
|
1720
|
+
m
|
|
1721
|
+
)), m = null;
|
|
1722
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(O, g) {
|
|
1723
|
+
m.setRequestHeader(g, O);
|
|
1724
|
+
}), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), l && ([b, h] = pe(l, !0), m.addEventListener("progress", b)), d && m.upload && ([p, T] = pe(d), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (u = (E) => {
|
|
1725
|
+
m && (r(!E || E.type ? new X(null, e, m) : E), m.abort(), m = null);
|
|
1726
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1727
|
+
const A = Tr(s.url);
|
|
1728
|
+
if (A && F.protocols.indexOf(A) === -1) {
|
|
1729
|
+
r(new y("Unsupported protocol " + A + ":", y.ERR_BAD_REQUEST, e));
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
m.send(o || null);
|
|
1733
|
+
});
|
|
1734
|
+
}, Cr = (e, t) => {
|
|
1735
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1736
|
+
if (t || n) {
|
|
1737
|
+
let r = new AbortController(), s;
|
|
1738
|
+
const o = function(l) {
|
|
1739
|
+
if (!s) {
|
|
1740
|
+
s = !0, c();
|
|
1741
|
+
const u = l instanceof Error ? l : this.reason;
|
|
1742
|
+
r.abort(u instanceof y ? u : new X(u instanceof Error ? u.message : u));
|
|
1923
1743
|
}
|
|
1744
|
+
};
|
|
1745
|
+
let i = t && setTimeout(() => {
|
|
1746
|
+
i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1747
|
+
}, t);
|
|
1748
|
+
const c = () => {
|
|
1749
|
+
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
1750
|
+
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1751
|
+
}), e = null);
|
|
1752
|
+
};
|
|
1753
|
+
e.forEach((l) => l.addEventListener("abort", o));
|
|
1754
|
+
const { signal: d } = r;
|
|
1755
|
+
return d.unsubscribe = () => a.asap(c), d;
|
|
1756
|
+
}
|
|
1757
|
+
}, kr = function* (e, t) {
|
|
1758
|
+
let n = e.byteLength;
|
|
1759
|
+
if (n < t) {
|
|
1760
|
+
yield e;
|
|
1761
|
+
return;
|
|
1762
|
+
}
|
|
1763
|
+
let r = 0, s;
|
|
1764
|
+
for (; r < n; )
|
|
1765
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1766
|
+
}, Fr = async function* (e, t) {
|
|
1767
|
+
for await (const n of vr(e))
|
|
1768
|
+
yield* kr(n, t);
|
|
1769
|
+
}, vr = async function* (e) {
|
|
1770
|
+
if (e[Symbol.asyncIterator]) {
|
|
1771
|
+
yield* e;
|
|
1772
|
+
return;
|
|
1773
|
+
}
|
|
1774
|
+
const t = e.getReader();
|
|
1775
|
+
try {
|
|
1776
|
+
for (; ; ) {
|
|
1777
|
+
const { done: n, value: r } = await t.read();
|
|
1778
|
+
if (n)
|
|
1779
|
+
break;
|
|
1780
|
+
yield r;
|
|
1924
1781
|
}
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1782
|
+
} finally {
|
|
1783
|
+
await t.cancel();
|
|
1784
|
+
}
|
|
1785
|
+
}, it = (e, t, n, r) => {
|
|
1786
|
+
const s = Fr(e, t);
|
|
1787
|
+
let o = 0, i, c = (d) => {
|
|
1788
|
+
i || (i = !0, r && r(d));
|
|
1789
|
+
};
|
|
1790
|
+
return new ReadableStream({
|
|
1791
|
+
async pull(d) {
|
|
1929
1792
|
try {
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1793
|
+
const { done: l, value: u } = await s.next();
|
|
1794
|
+
if (l) {
|
|
1795
|
+
c(), d.close();
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
let p = u.byteLength;
|
|
1799
|
+
if (n) {
|
|
1800
|
+
let b = o += p;
|
|
1801
|
+
n(b);
|
|
1802
|
+
}
|
|
1803
|
+
d.enqueue(new Uint8Array(u));
|
|
1804
|
+
} catch (l) {
|
|
1805
|
+
throw c(l), l;
|
|
1934
1806
|
}
|
|
1807
|
+
},
|
|
1808
|
+
cancel(d) {
|
|
1809
|
+
return c(d), s.return();
|
|
1935
1810
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1811
|
+
}, {
|
|
1812
|
+
highWaterMark: 2
|
|
1813
|
+
});
|
|
1814
|
+
}, we = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ut = we && typeof ReadableStream == "function", jr = we && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Dt = (e, ...t) => {
|
|
1815
|
+
try {
|
|
1816
|
+
return !!e(...t);
|
|
1817
|
+
} catch {
|
|
1818
|
+
return !1;
|
|
1819
|
+
}
|
|
1820
|
+
}, Lr = Ut && Dt(() => {
|
|
1821
|
+
let e = !1;
|
|
1822
|
+
const t = new Request(F.origin, {
|
|
1823
|
+
body: new ReadableStream(),
|
|
1824
|
+
method: "POST",
|
|
1825
|
+
get duplex() {
|
|
1826
|
+
return e = !0, "half";
|
|
1942
1827
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1828
|
+
}).headers.has("Content-Type");
|
|
1829
|
+
return e && !t;
|
|
1830
|
+
}), at = 64 * 1024, ve = Ut && Dt(() => a.isReadableStream(new Response("").body)), he = {
|
|
1831
|
+
stream: ve && ((e) => e.body)
|
|
1832
|
+
};
|
|
1833
|
+
we && ((e) => {
|
|
1834
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1835
|
+
!he[t] && (he[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1836
|
+
throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
|
|
1837
|
+
});
|
|
1838
|
+
});
|
|
1839
|
+
})(new Response());
|
|
1840
|
+
const Ur = async (e) => {
|
|
1841
|
+
if (e == null)
|
|
1842
|
+
return 0;
|
|
1843
|
+
if (a.isBlob(e))
|
|
1844
|
+
return e.size;
|
|
1845
|
+
if (a.isSpecCompliantForm(e))
|
|
1846
|
+
return (await new Request(F.origin, {
|
|
1847
|
+
method: "POST",
|
|
1848
|
+
body: e
|
|
1849
|
+
}).arrayBuffer()).byteLength;
|
|
1850
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1851
|
+
return e.byteLength;
|
|
1852
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1853
|
+
return (await jr(e)).byteLength;
|
|
1854
|
+
}, Dr = async (e, t) => {
|
|
1855
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1856
|
+
return n ?? Ur(t);
|
|
1857
|
+
}, Br = we && (async (e) => {
|
|
1858
|
+
let {
|
|
1859
|
+
url: t,
|
|
1860
|
+
method: n,
|
|
1861
|
+
data: r,
|
|
1862
|
+
signal: s,
|
|
1863
|
+
cancelToken: o,
|
|
1864
|
+
timeout: i,
|
|
1865
|
+
onDownloadProgress: c,
|
|
1866
|
+
onUploadProgress: d,
|
|
1867
|
+
responseType: l,
|
|
1868
|
+
headers: u,
|
|
1869
|
+
withCredentials: p = "same-origin",
|
|
1870
|
+
fetchOptions: b
|
|
1871
|
+
} = Lt(e);
|
|
1872
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
1873
|
+
let T = Cr([s, o && o.toAbortSignal()], i), h;
|
|
1874
|
+
const R = T && T.unsubscribe && (() => {
|
|
1875
|
+
T.unsubscribe();
|
|
1876
|
+
});
|
|
1877
|
+
let m;
|
|
1878
|
+
try {
|
|
1879
|
+
if (d && Lr && n !== "get" && n !== "head" && (m = await Dr(u, r)) !== 0) {
|
|
1880
|
+
let g = new Request(t, {
|
|
1881
|
+
method: "POST",
|
|
1882
|
+
body: r,
|
|
1883
|
+
duplex: "half"
|
|
1884
|
+
}), N;
|
|
1885
|
+
if (a.isFormData(r) && (N = g.headers.get("content-type")) && u.setContentType(N), g.body) {
|
|
1886
|
+
const [P, B] = rt(
|
|
1887
|
+
m,
|
|
1888
|
+
pe(st(d))
|
|
1889
|
+
);
|
|
1890
|
+
r = it(g.body, at, P, B);
|
|
1947
1891
|
}
|
|
1948
|
-
return f.key !== void 0;
|
|
1949
1892
|
}
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1893
|
+
a.isString(p) || (p = p ? "include" : "omit");
|
|
1894
|
+
const S = "credentials" in Request.prototype;
|
|
1895
|
+
h = new Request(t, {
|
|
1896
|
+
...b,
|
|
1897
|
+
signal: T,
|
|
1898
|
+
method: n.toUpperCase(),
|
|
1899
|
+
headers: u.normalize().toJSON(),
|
|
1900
|
+
body: r,
|
|
1901
|
+
duplex: "half",
|
|
1902
|
+
credentials: S ? p : void 0
|
|
1903
|
+
});
|
|
1904
|
+
let A = await fetch(h);
|
|
1905
|
+
const E = ve && (l === "stream" || l === "response");
|
|
1906
|
+
if (ve && (c || E && R)) {
|
|
1907
|
+
const g = {};
|
|
1908
|
+
["status", "statusText", "headers"].forEach((v) => {
|
|
1909
|
+
g[v] = A[v];
|
|
1960
1910
|
});
|
|
1911
|
+
const N = a.toFiniteNumber(A.headers.get("content-length")), [P, B] = c && rt(
|
|
1912
|
+
N,
|
|
1913
|
+
pe(st(c), !0)
|
|
1914
|
+
) || [];
|
|
1915
|
+
A = new Response(
|
|
1916
|
+
it(A.body, at, P, () => {
|
|
1917
|
+
B && B(), R && R();
|
|
1918
|
+
}),
|
|
1919
|
+
g
|
|
1920
|
+
);
|
|
1961
1921
|
}
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
configurable: !1,
|
|
1980
|
-
enumerable: !1,
|
|
1981
|
-
writable: !0,
|
|
1982
|
-
value: 0
|
|
1983
|
-
}), Object.defineProperty(f, "_debugInfo", {
|
|
1984
|
-
configurable: !1,
|
|
1985
|
-
enumerable: !1,
|
|
1986
|
-
writable: !0,
|
|
1987
|
-
value: null
|
|
1988
|
-
}), Object.defineProperty(f, "_debugStack", {
|
|
1989
|
-
configurable: !1,
|
|
1990
|
-
enumerable: !1,
|
|
1991
|
-
writable: !0,
|
|
1992
|
-
value: Te
|
|
1993
|
-
}), Object.defineProperty(f, "_debugTask", {
|
|
1994
|
-
configurable: !1,
|
|
1995
|
-
enumerable: !1,
|
|
1996
|
-
writable: !0,
|
|
1997
|
-
value: Se
|
|
1998
|
-
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
1999
|
-
}
|
|
2000
|
-
function u(f, y, A, N, I, D, Te, Se) {
|
|
2001
|
-
var C = y.children;
|
|
2002
|
-
if (C !== void 0)
|
|
2003
|
-
if (N)
|
|
2004
|
-
if (It(C)) {
|
|
2005
|
-
for (N = 0; N < C.length; N++)
|
|
2006
|
-
R(C[N]);
|
|
2007
|
-
Object.freeze && Object.freeze(C);
|
|
2008
|
-
} else
|
|
2009
|
-
console.error(
|
|
2010
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
2011
|
-
);
|
|
2012
|
-
else R(C);
|
|
2013
|
-
if (qe.call(y, "key")) {
|
|
2014
|
-
C = e(f);
|
|
2015
|
-
var W = Object.keys(y).filter(function(Mt) {
|
|
2016
|
-
return Mt !== "key";
|
|
2017
|
-
});
|
|
2018
|
-
N = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", ze[C + N] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2019
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
2020
|
-
let props = %s;
|
|
2021
|
-
<%s {...props} />
|
|
2022
|
-
React keys must be passed directly to JSX without using spread:
|
|
2023
|
-
let props = %s;
|
|
2024
|
-
<%s key={someKey} {...props} />`,
|
|
2025
|
-
N,
|
|
2026
|
-
C,
|
|
2027
|
-
W,
|
|
2028
|
-
C
|
|
2029
|
-
), ze[C + N] = !0);
|
|
1922
|
+
l = l || "text";
|
|
1923
|
+
let O = await he[a.findKey(he, l) || "text"](A, e);
|
|
1924
|
+
return !E && R && R(), await new Promise((g, N) => {
|
|
1925
|
+
vt(g, N, {
|
|
1926
|
+
data: O,
|
|
1927
|
+
headers: L.from(A.headers),
|
|
1928
|
+
status: A.status,
|
|
1929
|
+
statusText: A.statusText,
|
|
1930
|
+
config: e,
|
|
1931
|
+
request: h
|
|
1932
|
+
});
|
|
1933
|
+
});
|
|
1934
|
+
} catch (S) {
|
|
1935
|
+
throw R && R(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1936
|
+
new y("Network Error", y.ERR_NETWORK, e, h),
|
|
1937
|
+
{
|
|
1938
|
+
cause: S.cause || S
|
|
2030
1939
|
}
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
I,
|
|
2044
|
-
s(),
|
|
2045
|
-
A,
|
|
2046
|
-
Te,
|
|
2047
|
-
Se
|
|
2048
|
-
);
|
|
1940
|
+
) : y.from(S, S && S.code, e, h);
|
|
1941
|
+
}
|
|
1942
|
+
}), je = {
|
|
1943
|
+
http: Qn,
|
|
1944
|
+
xhr: Pr,
|
|
1945
|
+
fetch: Br
|
|
1946
|
+
};
|
|
1947
|
+
a.forEach(je, (e, t) => {
|
|
1948
|
+
if (e) {
|
|
1949
|
+
try {
|
|
1950
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1951
|
+
} catch {
|
|
2049
1952
|
}
|
|
2050
|
-
|
|
2051
|
-
|
|
1953
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
const ct = (e) => `- ${e}`, qr = (e) => a.isFunction(e) || e === null || e === !1, Bt = {
|
|
1957
|
+
getAdapter: (e) => {
|
|
1958
|
+
e = a.isArray(e) ? e : [e];
|
|
1959
|
+
const { length: t } = e;
|
|
1960
|
+
let n, r;
|
|
1961
|
+
const s = {};
|
|
1962
|
+
for (let o = 0; o < t; o++) {
|
|
1963
|
+
n = e[o];
|
|
1964
|
+
let i;
|
|
1965
|
+
if (r = n, !qr(n) && (r = je[(i = String(n)).toLowerCase()], r === void 0))
|
|
1966
|
+
throw new y(`Unknown adapter '${i}'`);
|
|
1967
|
+
if (r)
|
|
1968
|
+
break;
|
|
1969
|
+
s[i || "#" + o] = r;
|
|
2052
1970
|
}
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
E = {
|
|
2057
|
-
"react-stack-bottom-frame": function(f) {
|
|
2058
|
-
return f();
|
|
2059
|
-
}
|
|
2060
|
-
};
|
|
2061
|
-
var Ie, Me = {}, $e = E["react-stack-bottom-frame"].bind(
|
|
2062
|
-
E,
|
|
2063
|
-
o
|
|
2064
|
-
)(), He = ge(r(o)), ze = {};
|
|
2065
|
-
Z.Fragment = p, Z.jsx = function(f, y, A, N, I) {
|
|
2066
|
-
var D = 1e4 > we.recentlyCreatedOwnerStacks++;
|
|
2067
|
-
return u(
|
|
2068
|
-
f,
|
|
2069
|
-
y,
|
|
2070
|
-
A,
|
|
2071
|
-
!1,
|
|
2072
|
-
N,
|
|
2073
|
-
I,
|
|
2074
|
-
D ? Error("react-stack-top-frame") : $e,
|
|
2075
|
-
D ? ge(r(f)) : He
|
|
1971
|
+
if (!r) {
|
|
1972
|
+
const o = Object.entries(s).map(
|
|
1973
|
+
([c, d]) => `adapter ${c} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2076
1974
|
);
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
!0,
|
|
2084
|
-
N,
|
|
2085
|
-
I,
|
|
2086
|
-
D ? Error("react-stack-top-frame") : $e,
|
|
2087
|
-
D ? ge(r(f)) : He
|
|
1975
|
+
let i = t ? o.length > 1 ? `since :
|
|
1976
|
+
` + o.map(ct).join(`
|
|
1977
|
+
`) : " " + ct(o[0]) : "as no adapter specified";
|
|
1978
|
+
throw new y(
|
|
1979
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1980
|
+
"ERR_NOT_SUPPORT"
|
|
2088
1981
|
);
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
function Pr() {
|
|
2094
|
-
return ct || (ct = 1, process.env.NODE_ENV === "production" ? ae.exports = Nr() : ae.exports = Cr()), ae.exports;
|
|
2095
|
-
}
|
|
2096
|
-
var Dt = Pr();
|
|
2097
|
-
const re = [
|
|
2098
|
-
"color: #fff",
|
|
2099
|
-
"display: inline-block",
|
|
2100
|
-
"font-size: 11px",
|
|
2101
|
-
"line-height: 20px",
|
|
2102
|
-
"padding-right: 8px",
|
|
2103
|
-
"border-radius: 4px"
|
|
2104
|
-
], se = {
|
|
2105
|
-
primary: "#0055a9",
|
|
2106
|
-
success: "#009422",
|
|
2107
|
-
info: "#17a2b8",
|
|
2108
|
-
warning: "#d7a000",
|
|
2109
|
-
danger: "#ec2127"
|
|
1982
|
+
}
|
|
1983
|
+
return r;
|
|
1984
|
+
},
|
|
1985
|
+
adapters: je
|
|
2110
1986
|
};
|
|
2111
|
-
function
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
function kr(e, ...t) {
|
|
2115
|
-
const n = re.concat([
|
|
2116
|
-
`background-color: ${se.primary}`
|
|
2117
|
-
]).join(";");
|
|
2118
|
-
oe(e, n, ...t);
|
|
2119
|
-
}
|
|
2120
|
-
function Fr(e, ...t) {
|
|
2121
|
-
const n = re.concat([
|
|
2122
|
-
`background-color: ${se.success}`
|
|
2123
|
-
]).join(";");
|
|
2124
|
-
oe(e, n, ...t);
|
|
2125
|
-
}
|
|
2126
|
-
function vr(e, ...t) {
|
|
2127
|
-
const n = re.concat([
|
|
2128
|
-
`background-color: ${se.info}`
|
|
2129
|
-
]).join(";");
|
|
2130
|
-
oe(e, n, ...t);
|
|
1987
|
+
function Pe(e) {
|
|
1988
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1989
|
+
throw new X(null, e);
|
|
2131
1990
|
}
|
|
2132
|
-
function
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
1991
|
+
function lt(e) {
|
|
1992
|
+
return Pe(e), e.headers = L.from(e.headers), e.data = Ne.call(
|
|
1993
|
+
e,
|
|
1994
|
+
e.transformRequest
|
|
1995
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bt.getAdapter(e.adapter || ae.adapter)(e).then(function(r) {
|
|
1996
|
+
return Pe(e), r.data = Ne.call(
|
|
1997
|
+
e,
|
|
1998
|
+
e.transformResponse,
|
|
1999
|
+
r
|
|
2000
|
+
), r.headers = L.from(r.headers), r;
|
|
2001
|
+
}, function(r) {
|
|
2002
|
+
return Ft(r) || (Pe(e), r && r.response && (r.response.data = Ne.call(
|
|
2003
|
+
e,
|
|
2004
|
+
e.transformResponse,
|
|
2005
|
+
r.response
|
|
2006
|
+
), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
|
|
2007
|
+
});
|
|
2137
2008
|
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2009
|
+
const qt = "1.9.0", Te = {};
|
|
2010
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2011
|
+
Te[e] = function(r) {
|
|
2012
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2013
|
+
};
|
|
2014
|
+
});
|
|
2015
|
+
const ut = {};
|
|
2016
|
+
Te.transitional = function(t, n, r) {
|
|
2017
|
+
function s(o, i) {
|
|
2018
|
+
return "[Axios v" + qt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
2019
|
+
}
|
|
2020
|
+
return (o, i, c) => {
|
|
2021
|
+
if (t === !1)
|
|
2022
|
+
throw new y(
|
|
2023
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
2024
|
+
y.ERR_DEPRECATED
|
|
2025
|
+
);
|
|
2026
|
+
return n && !ut[i] && (ut[i] = !0, console.warn(
|
|
2027
|
+
s(
|
|
2028
|
+
i,
|
|
2029
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
2030
|
+
)
|
|
2031
|
+
)), t ? t(o, i, c) : !0;
|
|
2032
|
+
};
|
|
2033
|
+
};
|
|
2034
|
+
Te.spelling = function(t) {
|
|
2035
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
2036
|
+
};
|
|
2037
|
+
function Ir(e, t, n) {
|
|
2038
|
+
if (typeof e != "object")
|
|
2039
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
2040
|
+
const r = Object.keys(e);
|
|
2041
|
+
let s = r.length;
|
|
2042
|
+
for (; s-- > 0; ) {
|
|
2043
|
+
const o = r[s], i = t[o];
|
|
2044
|
+
if (i) {
|
|
2045
|
+
const c = e[o], d = c === void 0 || i(c, o, e);
|
|
2046
|
+
if (d !== !0)
|
|
2047
|
+
throw new y("option " + o + " must be " + d, y.ERR_BAD_OPTION_VALUE);
|
|
2048
|
+
continue;
|
|
2049
|
+
}
|
|
2050
|
+
if (n !== !0)
|
|
2051
|
+
throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
|
|
2052
|
+
}
|
|
2143
2053
|
}
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2054
|
+
const fe = {
|
|
2055
|
+
assertOptions: Ir,
|
|
2056
|
+
validators: Te
|
|
2057
|
+
}, I = fe.validators;
|
|
2058
|
+
let J = class {
|
|
2059
|
+
constructor(t) {
|
|
2060
|
+
this.defaults = t || {}, this.interceptors = {
|
|
2061
|
+
request: new tt(),
|
|
2062
|
+
response: new tt()
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Dispatch a request
|
|
2067
|
+
*
|
|
2068
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2069
|
+
* @param {?Object} config
|
|
2070
|
+
*
|
|
2071
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
2072
|
+
*/
|
|
2073
|
+
async request(t, n) {
|
|
2074
|
+
try {
|
|
2075
|
+
return await this._request(t, n);
|
|
2076
|
+
} catch (r) {
|
|
2077
|
+
if (r instanceof Error) {
|
|
2078
|
+
let s = {};
|
|
2079
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
2080
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
2081
|
+
try {
|
|
2082
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
2083
|
+
` + o) : r.stack = o;
|
|
2084
|
+
} catch {
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
throw r;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
_request(t, n) {
|
|
2091
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = W(this.defaults, n);
|
|
2092
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
2093
|
+
r !== void 0 && fe.assertOptions(r, {
|
|
2094
|
+
silentJSONParsing: I.transitional(I.boolean),
|
|
2095
|
+
forcedJSONParsing: I.transitional(I.boolean),
|
|
2096
|
+
clarifyTimeoutError: I.transitional(I.boolean)
|
|
2097
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
2098
|
+
serialize: s
|
|
2099
|
+
} : fe.assertOptions(s, {
|
|
2100
|
+
encode: I.function,
|
|
2101
|
+
serialize: I.function
|
|
2102
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), fe.assertOptions(n, {
|
|
2103
|
+
baseUrl: I.spelling("baseURL"),
|
|
2104
|
+
withXsrfToken: I.spelling("withXSRFToken")
|
|
2105
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2106
|
+
let i = o && a.merge(
|
|
2107
|
+
o.common,
|
|
2108
|
+
o[n.method]
|
|
2109
|
+
);
|
|
2110
|
+
o && a.forEach(
|
|
2111
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2112
|
+
(h) => {
|
|
2113
|
+
delete o[h];
|
|
2114
|
+
}
|
|
2115
|
+
), n.headers = L.concat(i, o);
|
|
2116
|
+
const c = [];
|
|
2117
|
+
let d = !0;
|
|
2118
|
+
this.interceptors.request.forEach(function(R) {
|
|
2119
|
+
typeof R.runWhen == "function" && R.runWhen(n) === !1 || (d = d && R.synchronous, c.unshift(R.fulfilled, R.rejected));
|
|
2120
|
+
});
|
|
2121
|
+
const l = [];
|
|
2122
|
+
this.interceptors.response.forEach(function(R) {
|
|
2123
|
+
l.push(R.fulfilled, R.rejected);
|
|
2124
|
+
});
|
|
2125
|
+
let u, p = 0, b;
|
|
2126
|
+
if (!d) {
|
|
2127
|
+
const h = [lt.bind(this), void 0];
|
|
2128
|
+
for (h.unshift.apply(h, c), h.push.apply(h, l), b = h.length, u = Promise.resolve(n); p < b; )
|
|
2129
|
+
u = u.then(h[p++], h[p++]);
|
|
2130
|
+
return u;
|
|
2131
|
+
}
|
|
2132
|
+
b = c.length;
|
|
2133
|
+
let T = n;
|
|
2134
|
+
for (p = 0; p < b; ) {
|
|
2135
|
+
const h = c[p++], R = c[p++];
|
|
2136
|
+
try {
|
|
2137
|
+
T = h(T);
|
|
2138
|
+
} catch (m) {
|
|
2139
|
+
R.call(this, m);
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
try {
|
|
2144
|
+
u = lt.call(this, T);
|
|
2145
|
+
} catch (h) {
|
|
2146
|
+
return Promise.reject(h);
|
|
2147
|
+
}
|
|
2148
|
+
for (p = 0, b = l.length; p < b; )
|
|
2149
|
+
u = u.then(l[p++], l[p++]);
|
|
2150
|
+
return u;
|
|
2151
|
+
}
|
|
2152
|
+
getUri(t) {
|
|
2153
|
+
t = W(this.defaults, t);
|
|
2154
|
+
const n = jt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2155
|
+
return Pt(n, t.params, t.paramsSerializer);
|
|
2156
|
+
}
|
|
2150
2157
|
};
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2158
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2159
|
+
J.prototype[t] = function(n, r) {
|
|
2160
|
+
return this.request(W(r || {}, {
|
|
2161
|
+
method: t,
|
|
2162
|
+
url: n,
|
|
2163
|
+
data: (r || {}).data
|
|
2164
|
+
}));
|
|
2155
2165
|
};
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
function
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
q(this, "args");
|
|
2170
|
-
q(this, "path");
|
|
2171
|
-
this.response = n, this.code = n.code, this.args = n.args, this.path = n.path, this.initName();
|
|
2166
|
+
});
|
|
2167
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
2168
|
+
function n(r) {
|
|
2169
|
+
return function(o, i, c) {
|
|
2170
|
+
return this.request(W(c || {}, {
|
|
2171
|
+
method: t,
|
|
2172
|
+
headers: r ? {
|
|
2173
|
+
"Content-Type": "multipart/form-data"
|
|
2174
|
+
} : {},
|
|
2175
|
+
url: o,
|
|
2176
|
+
data: i
|
|
2177
|
+
}));
|
|
2178
|
+
};
|
|
2172
2179
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2180
|
+
J.prototype[t] = n(), J.prototype[t + "Form"] = n(!0);
|
|
2181
|
+
});
|
|
2182
|
+
let $r = class It {
|
|
2183
|
+
constructor(t) {
|
|
2184
|
+
if (typeof t != "function")
|
|
2185
|
+
throw new TypeError("executor must be a function.");
|
|
2186
|
+
let n;
|
|
2187
|
+
this.promise = new Promise(function(o) {
|
|
2188
|
+
n = o;
|
|
2189
|
+
});
|
|
2190
|
+
const r = this;
|
|
2191
|
+
this.promise.then((s) => {
|
|
2192
|
+
if (!r._listeners) return;
|
|
2193
|
+
let o = r._listeners.length;
|
|
2194
|
+
for (; o-- > 0; )
|
|
2195
|
+
r._listeners[o](s);
|
|
2196
|
+
r._listeners = null;
|
|
2197
|
+
}), this.promise.then = (s) => {
|
|
2198
|
+
let o;
|
|
2199
|
+
const i = new Promise((c) => {
|
|
2200
|
+
r.subscribe(c), o = c;
|
|
2201
|
+
}).then(s);
|
|
2202
|
+
return i.cancel = function() {
|
|
2203
|
+
r.unsubscribe(o);
|
|
2204
|
+
}, i;
|
|
2205
|
+
}, t(function(o, i, c) {
|
|
2206
|
+
r.reason || (r.reason = new X(o, i, c), n(r.reason));
|
|
2207
|
+
});
|
|
2175
2208
|
}
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
};
|
|
2209
|
+
/**
|
|
2210
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
2211
|
+
*/
|
|
2212
|
+
throwIfRequested() {
|
|
2213
|
+
if (this.reason)
|
|
2214
|
+
throw this.reason;
|
|
2183
2215
|
}
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2216
|
+
/**
|
|
2217
|
+
* Subscribe to the cancel signal
|
|
2218
|
+
*/
|
|
2219
|
+
subscribe(t) {
|
|
2220
|
+
if (this.reason) {
|
|
2221
|
+
t(this.reason);
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
2193
2225
|
}
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
Wt(() => {
|
|
2203
|
-
h(ut(t()));
|
|
2204
|
-
}, []);
|
|
2205
|
-
const l = (E) => {
|
|
2206
|
-
let g;
|
|
2207
|
-
typeof E == "function" ? g = E(t()) : g = E, L.danger("更新Token", g), n(g), h(ut(g)), i(Date.now());
|
|
2208
|
-
}, u = () => {
|
|
2209
|
-
l(null), s();
|
|
2210
|
-
}, R = async () => {
|
|
2211
|
-
var g;
|
|
2212
|
-
const E = (g = t()) == null ? void 0 : g.refreshToken;
|
|
2213
|
-
if (E)
|
|
2214
|
-
try {
|
|
2215
|
-
const m = await r(E);
|
|
2216
|
-
if (Be(m))
|
|
2217
|
-
throw new Q({ message: "refresh token fail", code: "REFRESH_TOKEN_EMPTY" });
|
|
2218
|
-
l(m);
|
|
2219
|
-
return;
|
|
2220
|
-
} catch {
|
|
2221
|
-
throw u(), new Q({ message: "refresh token fail", code: "REFRESH_TOKEN_CATCH" });
|
|
2222
|
-
}
|
|
2223
|
-
};
|
|
2224
|
-
return /* @__PURE__ */ Dt.jsx(Bt.Provider, { value: {
|
|
2225
|
-
lastUpdateTimestamp: o,
|
|
2226
|
-
isAuth: c,
|
|
2227
|
-
getTokens: t,
|
|
2228
|
-
updateTokens: l,
|
|
2229
|
-
refreshTokens: R,
|
|
2230
|
-
forceLogout: u
|
|
2231
|
-
}, children: e });
|
|
2232
|
-
};
|
|
2233
|
-
class Dr extends Error {
|
|
2234
|
-
constructor(n) {
|
|
2235
|
-
super(n.message);
|
|
2236
|
-
q(this, "code");
|
|
2237
|
-
q(this, "devInfo");
|
|
2238
|
-
q(this, "args");
|
|
2239
|
-
q(this, "path");
|
|
2240
|
-
this.response = n, this.code = n.code, this.args = n.args, this.path = n.path, this.initName();
|
|
2226
|
+
/**
|
|
2227
|
+
* Unsubscribe from the cancel signal
|
|
2228
|
+
*/
|
|
2229
|
+
unsubscribe(t) {
|
|
2230
|
+
if (!this._listeners)
|
|
2231
|
+
return;
|
|
2232
|
+
const n = this._listeners.indexOf(t);
|
|
2233
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
2241
2234
|
}
|
|
2242
|
-
|
|
2243
|
-
|
|
2235
|
+
toAbortSignal() {
|
|
2236
|
+
const t = new AbortController(), n = (r) => {
|
|
2237
|
+
t.abort(r);
|
|
2238
|
+
};
|
|
2239
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
2244
2240
|
}
|
|
2245
|
-
|
|
2241
|
+
/**
|
|
2242
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2243
|
+
* cancels the `CancelToken`.
|
|
2244
|
+
*/
|
|
2245
|
+
static source() {
|
|
2246
|
+
let t;
|
|
2246
2247
|
return {
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2248
|
+
token: new It(function(s) {
|
|
2249
|
+
t = s;
|
|
2250
|
+
}),
|
|
2251
|
+
cancel: t
|
|
2251
2252
|
};
|
|
2252
2253
|
}
|
|
2253
|
-
}
|
|
2254
|
-
const Br = (e) => {
|
|
2255
|
-
var t, n;
|
|
2256
|
-
return (t = e == null ? void 0 : e.data) != null && t.errors[0] ? (n = e == null ? void 0 : e.data) == null ? void 0 : n.errors[0] : {
|
|
2257
|
-
message: "Axios error",
|
|
2258
|
-
code: "ERR_SYS_BAD_RESPONSE"
|
|
2259
|
-
};
|
|
2260
2254
|
};
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
getLocale: t,
|
|
2265
|
-
onError: n,
|
|
2266
|
-
i18nDict: r,
|
|
2267
|
-
checkIsRefreshTokenRequest: s
|
|
2268
|
-
}) => {
|
|
2269
|
-
const {
|
|
2270
|
-
getTokens: o,
|
|
2271
|
-
updateTokens: i,
|
|
2272
|
-
refreshTokens: c,
|
|
2273
|
-
forceLogout: h
|
|
2274
|
-
} = Ur();
|
|
2275
|
-
Vt(() => {
|
|
2276
|
-
const p = M.interceptors.request.use(R), d = M.interceptors.response.use(E, m);
|
|
2277
|
-
return () => {
|
|
2278
|
-
M.interceptors.request.eject(p), M.interceptors.response.eject(d);
|
|
2279
|
-
};
|
|
2280
|
-
}, [o, c, i, h]);
|
|
2281
|
-
const l = (p) => {
|
|
2282
|
-
L.warning("runPendingRequest"), G = !1;
|
|
2283
|
-
for (const d of Ne)
|
|
2284
|
-
d(p);
|
|
2285
|
-
Ne = [];
|
|
2286
|
-
}, u = (p, d) => (w) => {
|
|
2287
|
-
Ne.push((T) => {
|
|
2288
|
-
T ? p(M(w)) : d(new Q({
|
|
2289
|
-
message: g(401),
|
|
2290
|
-
code: "UNAUTHORIZED",
|
|
2291
|
-
path: "AxiosClientProvider.pushPendingRequestQueues"
|
|
2292
|
-
}));
|
|
2293
|
-
});
|
|
2294
|
-
}, R = (p) => new Promise((d, w) => {
|
|
2295
|
-
var _;
|
|
2296
|
-
L.warning("interceptorsRequest"), p.headers["Accept-Language"] = t();
|
|
2297
|
-
const T = (_ = o()) == null ? void 0 : _.accessToken;
|
|
2298
|
-
if (T && (p.headers.Authorization = `Bearer ${T}`), !(p && s ? s(p) : !1) && G) {
|
|
2299
|
-
u(d, w)(p), w(new Dr({ message: "Token refreshing, so request save queues not send", code: "REFRESH_TOKEN" }));
|
|
2300
|
-
return;
|
|
2301
|
-
}
|
|
2302
|
-
d(p);
|
|
2303
|
-
}), E = (p) => p, g = (p) => {
|
|
2304
|
-
const d = t(), w = (r == null ? void 0 : r[d]) || ot[d] || ot["en-US"];
|
|
2305
|
-
return (w == null ? void 0 : w[p]) || `Error: ${p}`;
|
|
2306
|
-
}, m = (p) => {
|
|
2307
|
-
const d = p.response, w = p.config, T = p.status, S = Br(d);
|
|
2308
|
-
L.warning("interceptorsResponseError"), n && n(S);
|
|
2309
|
-
const _ = w && s ? s(w) : !1;
|
|
2310
|
-
if (d && w && (T === 401 || S.code === "UNAUTHENTICATED")) {
|
|
2311
|
-
const O = o();
|
|
2312
|
-
return L.warning("401OrUNAUTHENTICATED", O == null ? void 0 : O.refreshToken), Be(O == null ? void 0 : O.refreshToken) || _ ? (G = !1, h(), Promise.reject(new Q(S))) : (G || (G = !0, L.warning("postRefreshToken"), c().then(() => l(!0)).catch(() => {
|
|
2313
|
-
L.danger("refreshTokens fail"), l(!1);
|
|
2314
|
-
})), new Promise((v, j) => {
|
|
2315
|
-
u(v, j)(w);
|
|
2316
|
-
}));
|
|
2317
|
-
}
|
|
2318
|
-
return Promise.reject(new Q(S));
|
|
2255
|
+
function Mr(e) {
|
|
2256
|
+
return function(n) {
|
|
2257
|
+
return e.apply(null, n);
|
|
2319
2258
|
};
|
|
2320
|
-
|
|
2259
|
+
}
|
|
2260
|
+
function Hr(e) {
|
|
2261
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
2262
|
+
}
|
|
2263
|
+
const Le = {
|
|
2264
|
+
Continue: 100,
|
|
2265
|
+
SwitchingProtocols: 101,
|
|
2266
|
+
Processing: 102,
|
|
2267
|
+
EarlyHints: 103,
|
|
2268
|
+
Ok: 200,
|
|
2269
|
+
Created: 201,
|
|
2270
|
+
Accepted: 202,
|
|
2271
|
+
NonAuthoritativeInformation: 203,
|
|
2272
|
+
NoContent: 204,
|
|
2273
|
+
ResetContent: 205,
|
|
2274
|
+
PartialContent: 206,
|
|
2275
|
+
MultiStatus: 207,
|
|
2276
|
+
AlreadyReported: 208,
|
|
2277
|
+
ImUsed: 226,
|
|
2278
|
+
MultipleChoices: 300,
|
|
2279
|
+
MovedPermanently: 301,
|
|
2280
|
+
Found: 302,
|
|
2281
|
+
SeeOther: 303,
|
|
2282
|
+
NotModified: 304,
|
|
2283
|
+
UseProxy: 305,
|
|
2284
|
+
Unused: 306,
|
|
2285
|
+
TemporaryRedirect: 307,
|
|
2286
|
+
PermanentRedirect: 308,
|
|
2287
|
+
BadRequest: 400,
|
|
2288
|
+
Unauthorized: 401,
|
|
2289
|
+
PaymentRequired: 402,
|
|
2290
|
+
Forbidden: 403,
|
|
2291
|
+
NotFound: 404,
|
|
2292
|
+
MethodNotAllowed: 405,
|
|
2293
|
+
NotAcceptable: 406,
|
|
2294
|
+
ProxyAuthenticationRequired: 407,
|
|
2295
|
+
RequestTimeout: 408,
|
|
2296
|
+
Conflict: 409,
|
|
2297
|
+
Gone: 410,
|
|
2298
|
+
LengthRequired: 411,
|
|
2299
|
+
PreconditionFailed: 412,
|
|
2300
|
+
PayloadTooLarge: 413,
|
|
2301
|
+
UriTooLong: 414,
|
|
2302
|
+
UnsupportedMediaType: 415,
|
|
2303
|
+
RangeNotSatisfiable: 416,
|
|
2304
|
+
ExpectationFailed: 417,
|
|
2305
|
+
ImATeapot: 418,
|
|
2306
|
+
MisdirectedRequest: 421,
|
|
2307
|
+
UnprocessableEntity: 422,
|
|
2308
|
+
Locked: 423,
|
|
2309
|
+
FailedDependency: 424,
|
|
2310
|
+
TooEarly: 425,
|
|
2311
|
+
UpgradeRequired: 426,
|
|
2312
|
+
PreconditionRequired: 428,
|
|
2313
|
+
TooManyRequests: 429,
|
|
2314
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
2315
|
+
UnavailableForLegalReasons: 451,
|
|
2316
|
+
InternalServerError: 500,
|
|
2317
|
+
NotImplemented: 501,
|
|
2318
|
+
BadGateway: 502,
|
|
2319
|
+
ServiceUnavailable: 503,
|
|
2320
|
+
GatewayTimeout: 504,
|
|
2321
|
+
HttpVersionNotSupported: 505,
|
|
2322
|
+
VariantAlsoNegotiates: 506,
|
|
2323
|
+
InsufficientStorage: 507,
|
|
2324
|
+
LoopDetected: 508,
|
|
2325
|
+
NotExtended: 510,
|
|
2326
|
+
NetworkAuthenticationRequired: 511
|
|
2327
|
+
};
|
|
2328
|
+
Object.entries(Le).forEach(([e, t]) => {
|
|
2329
|
+
Le[t] = e;
|
|
2330
|
+
});
|
|
2331
|
+
function $t(e) {
|
|
2332
|
+
const t = new J(e), n = Et(J.prototype.request, t);
|
|
2333
|
+
return a.extend(n, J.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2334
|
+
return $t(W(e, s));
|
|
2335
|
+
}, n;
|
|
2336
|
+
}
|
|
2337
|
+
const x = $t(ae);
|
|
2338
|
+
x.Axios = J;
|
|
2339
|
+
x.CanceledError = X;
|
|
2340
|
+
x.CancelToken = $r;
|
|
2341
|
+
x.isCancel = Ft;
|
|
2342
|
+
x.VERSION = qt;
|
|
2343
|
+
x.toFormData = ye;
|
|
2344
|
+
x.AxiosError = y;
|
|
2345
|
+
x.Cancel = x.CanceledError;
|
|
2346
|
+
x.all = function(t) {
|
|
2347
|
+
return Promise.all(t);
|
|
2321
2348
|
};
|
|
2349
|
+
x.spread = Mr;
|
|
2350
|
+
x.isAxiosError = Hr;
|
|
2351
|
+
x.mergeConfig = W;
|
|
2352
|
+
x.AxiosHeaders = L;
|
|
2353
|
+
x.formToJSON = (e) => kt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
2354
|
+
x.getAdapter = Bt.getAdapter;
|
|
2355
|
+
x.HttpStatusCode = Le;
|
|
2356
|
+
x.default = x;
|
|
2357
|
+
const {
|
|
2358
|
+
Axios: Qr,
|
|
2359
|
+
AxiosError: es,
|
|
2360
|
+
CanceledError: ts,
|
|
2361
|
+
isCancel: ns,
|
|
2362
|
+
CancelToken: rs,
|
|
2363
|
+
VERSION: ss,
|
|
2364
|
+
all: os,
|
|
2365
|
+
Cancel: is,
|
|
2366
|
+
isAxiosError: as,
|
|
2367
|
+
spread: cs,
|
|
2368
|
+
toFormData: ls,
|
|
2369
|
+
AxiosHeaders: us,
|
|
2370
|
+
HttpStatusCode: fs,
|
|
2371
|
+
formToJSON: ds,
|
|
2372
|
+
getAdapter: ps,
|
|
2373
|
+
mergeConfig: hs
|
|
2374
|
+
} = x, ms = (e) => x.create({
|
|
2375
|
+
timeout: 2 * 60 * 1e3,
|
|
2376
|
+
...e
|
|
2377
|
+
});
|
|
2322
2378
|
export {
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2379
|
+
Yr as AuthStateProvider,
|
|
2380
|
+
Xr as FetcherProvider,
|
|
2381
|
+
ms as createAxiosInstance,
|
|
2382
|
+
Wr as createGraphQLFetcher,
|
|
2383
|
+
Vr as createRestFulFetcher,
|
|
2384
|
+
Kr as getGraphQLResponseFormatError,
|
|
2385
|
+
dn as getRestFulResponseFormatError,
|
|
2386
|
+
un as useAuthState
|
|
2327
2387
|
};
|