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