mhz-helpers 1.4.7 → 1.4.9
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/dist/api/index.js +620 -554
- package/package.json +13 -13
package/dist/api/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Ke(e, t) {
|
|
2
2
|
return function() {
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString:
|
|
7
|
-
const n =
|
|
6
|
+
const { toString: yt } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: re, toStringTag: ve } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const n = yt.call(t);
|
|
8
8
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
9
|
})(/* @__PURE__ */ Object.create(null)), U = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, H = oe("undefined");
|
|
10
10
|
function J(e) {
|
|
11
11
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const Xe = U("ArrayBuffer");
|
|
14
|
+
function bt(e) {
|
|
15
15
|
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xe(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const wt = oe("string"), T = oe("function"), Ge = oe("number"), V = (e) => e !== null && typeof e == "object", Rt = (e) => e === !0 || e === !1, Y = (e) => {
|
|
19
19
|
if (se(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
22
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
23
|
-
},
|
|
21
|
+
const t = Re(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ve in e) && !(re in e);
|
|
23
|
+
}, Et = (e) => {
|
|
24
24
|
if (!V(e) || J(e))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
@@ -28,16 +28,20 @@ const yt = oe("string"), T = oe("function"), ve = oe("number"), V = (e) => e !==
|
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
},
|
|
31
|
+
}, gt = U("Date"), St = U("File"), Ot = (e) => !!(e && typeof e.uri < "u"), At = (e) => e && typeof e.getParts < "u", Tt = U("Blob"), Ct = U("FileList"), xt = (e) => V(e) && T(e.pipe);
|
|
32
|
+
function _t() {
|
|
33
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
34
|
+
}
|
|
35
|
+
const Pe = _t(), Ue = typeof Pe.FormData < "u" ? Pe.FormData : void 0, Nt = (e) => {
|
|
32
36
|
let t;
|
|
33
|
-
return e && (
|
|
37
|
+
return e && (Ue && e instanceof Ue || T(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
|
|
34
38
|
t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
-
},
|
|
39
|
+
}, Pt = U("URLSearchParams"), [Ut, Ft, Lt, Bt] = [
|
|
36
40
|
"ReadableStream",
|
|
37
41
|
"Request",
|
|
38
42
|
"Response",
|
|
39
43
|
"Headers"
|
|
40
|
-
].map(U),
|
|
44
|
+
].map(U), Dt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
41
45
|
function W(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
42
46
|
if (e === null || typeof e > "u")
|
|
43
47
|
return;
|
|
@@ -54,7 +58,7 @@ function W(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
54
58
|
c = o[r], t.call(null, e[c], c, e);
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
|
-
function
|
|
61
|
+
function Qe(e, t) {
|
|
58
62
|
if (J(e))
|
|
59
63
|
return null;
|
|
60
64
|
t = t.toLowerCase();
|
|
@@ -65,23 +69,23 @@ function Xe(e, t) {
|
|
|
65
69
|
return s;
|
|
66
70
|
return null;
|
|
67
71
|
}
|
|
68
|
-
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
69
|
-
function
|
|
70
|
-
const { caseless: e, skipUndefined: t } =
|
|
72
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ze = (e) => !H(e) && e !== k;
|
|
73
|
+
function me() {
|
|
74
|
+
const { caseless: e, skipUndefined: t } = Ze(this) && this || {}, n = {}, r = (s, o) => {
|
|
71
75
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
72
76
|
return;
|
|
73
|
-
const i = e &&
|
|
74
|
-
Y(n[i]) && Y(s) ? n[i] =
|
|
77
|
+
const i = e && Qe(n, o) || o;
|
|
78
|
+
Y(n[i]) && Y(s) ? n[i] = me(n[i], s) : Y(s) ? n[i] = me({}, s) : M(s) ? n[i] = s.slice() : (!t || !H(s)) && (n[i] = s);
|
|
75
79
|
};
|
|
76
80
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
77
81
|
arguments[s] && W(arguments[s], r);
|
|
78
82
|
return n;
|
|
79
83
|
}
|
|
80
|
-
const
|
|
84
|
+
const kt = (e, t, n, { allOwnKeys: r } = {}) => (W(
|
|
81
85
|
t,
|
|
82
86
|
(s, o) => {
|
|
83
87
|
n && T(s) ? Object.defineProperty(e, o, {
|
|
84
|
-
value:
|
|
88
|
+
value: Ke(s, n),
|
|
85
89
|
writable: !0,
|
|
86
90
|
enumerable: !0,
|
|
87
91
|
configurable: !0
|
|
@@ -93,11 +97,8 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (W(
|
|
|
93
97
|
});
|
|
94
98
|
},
|
|
95
99
|
{ allOwnKeys: r }
|
|
96
|
-
), e),
|
|
97
|
-
e.prototype = Object.create(
|
|
98
|
-
t.prototype,
|
|
99
|
-
r
|
|
100
|
-
), Object.defineProperty(e.prototype, "constructor", {
|
|
100
|
+
), e), jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), qt = (e, t, n, r) => {
|
|
101
|
+
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
101
102
|
value: e,
|
|
102
103
|
writable: !0,
|
|
103
104
|
enumerable: !1,
|
|
@@ -105,52 +106,52 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (W(
|
|
|
105
106
|
}), Object.defineProperty(e, "super", {
|
|
106
107
|
value: t.prototype
|
|
107
108
|
}), n && Object.assign(e.prototype, n);
|
|
108
|
-
},
|
|
109
|
+
}, It = (e, t, n, r) => {
|
|
109
110
|
let s, o, i;
|
|
110
111
|
const c = {};
|
|
111
112
|
if (t = t || {}, e == null) return t;
|
|
112
113
|
do {
|
|
113
114
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
114
115
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
115
|
-
e = n !== !1 &&
|
|
116
|
+
e = n !== !1 && Re(e);
|
|
116
117
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
117
118
|
return t;
|
|
118
|
-
},
|
|
119
|
+
}, Ht = (e, t, n) => {
|
|
119
120
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
120
121
|
const r = e.indexOf(t, n);
|
|
121
122
|
return r !== -1 && r === n;
|
|
122
|
-
},
|
|
123
|
+
}, Mt = (e) => {
|
|
123
124
|
if (!e) return null;
|
|
124
125
|
if (M(e)) return e;
|
|
125
126
|
let t = e.length;
|
|
126
|
-
if (!
|
|
127
|
+
if (!Ge(t)) return null;
|
|
127
128
|
const n = new Array(t);
|
|
128
129
|
for (; t-- > 0; )
|
|
129
130
|
n[t] = e[t];
|
|
130
131
|
return n;
|
|
131
|
-
},
|
|
132
|
+
}, $t = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), zt = (e, t) => {
|
|
132
133
|
const r = (e && e[re]).call(e);
|
|
133
134
|
let s;
|
|
134
135
|
for (; (s = r.next()) && !s.done; ) {
|
|
135
136
|
const o = s.value;
|
|
136
137
|
t.call(e, o[0], o[1]);
|
|
137
138
|
}
|
|
138
|
-
},
|
|
139
|
+
}, Jt = (e, t) => {
|
|
139
140
|
let n;
|
|
140
141
|
const r = [];
|
|
141
142
|
for (; (n = e.exec(t)) !== null; )
|
|
142
143
|
r.push(n);
|
|
143
144
|
return r;
|
|
144
|
-
},
|
|
145
|
+
}, Vt = U("HTMLFormElement"), Wt = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
145
146
|
return r.toUpperCase() + s;
|
|
146
|
-
}),
|
|
147
|
+
}), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = U("RegExp"), Ye = (e, t) => {
|
|
147
148
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
148
149
|
W(n, (s, o) => {
|
|
149
150
|
let i;
|
|
150
151
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
151
152
|
}), Object.defineProperties(e, r);
|
|
152
|
-
},
|
|
153
|
-
|
|
153
|
+
}, vt = (e) => {
|
|
154
|
+
Ye(e, (t, n) => {
|
|
154
155
|
if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
155
156
|
return !1;
|
|
156
157
|
const r = e[n];
|
|
@@ -164,19 +165,19 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (W(
|
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
});
|
|
167
|
-
},
|
|
168
|
+
}, Xt = (e, t) => {
|
|
168
169
|
const n = {}, r = (s) => {
|
|
169
170
|
s.forEach((o) => {
|
|
170
171
|
n[o] = !0;
|
|
171
172
|
});
|
|
172
173
|
};
|
|
173
174
|
return M(e) ? r(e) : r(String(e).split(t)), n;
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
function
|
|
177
|
-
return !!(e && T(e.append) && e[
|
|
175
|
+
}, Gt = () => {
|
|
176
|
+
}, Qt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
177
|
+
function Zt(e) {
|
|
178
|
+
return !!(e && T(e.append) && e[ve] === "FormData" && e[re]);
|
|
178
179
|
}
|
|
179
|
-
const
|
|
180
|
+
const Yt = (e) => {
|
|
180
181
|
const t = new Array(10), n = (r, s) => {
|
|
181
182
|
if (V(r)) {
|
|
182
183
|
if (t.indexOf(r) >= 0)
|
|
@@ -187,15 +188,15 @@ const vt = (e) => {
|
|
|
187
188
|
t[s] = r;
|
|
188
189
|
const o = M(r) ? [] : {};
|
|
189
190
|
return W(r, (i, c) => {
|
|
190
|
-
const
|
|
191
|
-
!H(
|
|
191
|
+
const p = n(i, s + 1);
|
|
192
|
+
!H(p) && (o[c] = p);
|
|
192
193
|
}), t[s] = void 0, o;
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
return r;
|
|
196
197
|
};
|
|
197
198
|
return n(e, 0);
|
|
198
|
-
},
|
|
199
|
+
}, en = U("AsyncFunction"), tn = (e) => e && (V(e) || T(e)) && T(e.then) && T(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener(
|
|
199
200
|
"message",
|
|
200
201
|
({ source: s, data: o }) => {
|
|
201
202
|
s === k && o === n && r.length && r.shift()();
|
|
@@ -203,70 +204,72 @@ const vt = (e) => {
|
|
|
203
204
|
!1
|
|
204
205
|
), (s) => {
|
|
205
206
|
r.push(s), k.postMessage(n, "*");
|
|
206
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", T(k.postMessage)),
|
|
207
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", T(k.postMessage)), nn = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || et, rn = (e) => e != null && T(e[re]), a = {
|
|
207
208
|
isArray: M,
|
|
208
|
-
isArrayBuffer:
|
|
209
|
+
isArrayBuffer: Xe,
|
|
209
210
|
isBuffer: J,
|
|
210
|
-
isFormData:
|
|
211
|
-
isArrayBufferView:
|
|
212
|
-
isString:
|
|
213
|
-
isNumber:
|
|
214
|
-
isBoolean:
|
|
211
|
+
isFormData: Nt,
|
|
212
|
+
isArrayBufferView: bt,
|
|
213
|
+
isString: wt,
|
|
214
|
+
isNumber: Ge,
|
|
215
|
+
isBoolean: Rt,
|
|
215
216
|
isObject: V,
|
|
216
217
|
isPlainObject: Y,
|
|
217
|
-
isEmptyObject:
|
|
218
|
-
isReadableStream:
|
|
219
|
-
isRequest:
|
|
220
|
-
isResponse:
|
|
221
|
-
isHeaders:
|
|
218
|
+
isEmptyObject: Et,
|
|
219
|
+
isReadableStream: Ut,
|
|
220
|
+
isRequest: Ft,
|
|
221
|
+
isResponse: Lt,
|
|
222
|
+
isHeaders: Bt,
|
|
222
223
|
isUndefined: H,
|
|
223
|
-
isDate:
|
|
224
|
-
isFile:
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
isDate: gt,
|
|
225
|
+
isFile: St,
|
|
226
|
+
isReactNativeBlob: Ot,
|
|
227
|
+
isReactNative: At,
|
|
228
|
+
isBlob: Tt,
|
|
229
|
+
isRegExp: Kt,
|
|
227
230
|
isFunction: T,
|
|
228
|
-
isStream:
|
|
229
|
-
isURLSearchParams:
|
|
230
|
-
isTypedArray:
|
|
231
|
-
isFileList:
|
|
231
|
+
isStream: xt,
|
|
232
|
+
isURLSearchParams: Pt,
|
|
233
|
+
isTypedArray: $t,
|
|
234
|
+
isFileList: Ct,
|
|
232
235
|
forEach: W,
|
|
233
|
-
merge:
|
|
234
|
-
extend:
|
|
235
|
-
trim:
|
|
236
|
-
stripBOM:
|
|
237
|
-
inherits:
|
|
238
|
-
toFlatObject:
|
|
236
|
+
merge: me,
|
|
237
|
+
extend: kt,
|
|
238
|
+
trim: Dt,
|
|
239
|
+
stripBOM: jt,
|
|
240
|
+
inherits: qt,
|
|
241
|
+
toFlatObject: It,
|
|
239
242
|
kindOf: se,
|
|
240
243
|
kindOfTest: U,
|
|
241
|
-
endsWith:
|
|
242
|
-
toArray:
|
|
243
|
-
forEachEntry:
|
|
244
|
-
matchAll:
|
|
245
|
-
isHTMLForm:
|
|
246
|
-
hasOwnProperty:
|
|
247
|
-
hasOwnProp:
|
|
244
|
+
endsWith: Ht,
|
|
245
|
+
toArray: Mt,
|
|
246
|
+
forEachEntry: zt,
|
|
247
|
+
matchAll: Jt,
|
|
248
|
+
isHTMLForm: Vt,
|
|
249
|
+
hasOwnProperty: Fe,
|
|
250
|
+
hasOwnProp: Fe,
|
|
248
251
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
249
|
-
reduceDescriptors:
|
|
250
|
-
freezeMethods:
|
|
251
|
-
toObjectSet:
|
|
252
|
-
toCamelCase:
|
|
253
|
-
noop:
|
|
254
|
-
toFiniteNumber:
|
|
255
|
-
findKey:
|
|
252
|
+
reduceDescriptors: Ye,
|
|
253
|
+
freezeMethods: vt,
|
|
254
|
+
toObjectSet: Xt,
|
|
255
|
+
toCamelCase: Wt,
|
|
256
|
+
noop: Gt,
|
|
257
|
+
toFiniteNumber: Qt,
|
|
258
|
+
findKey: Qe,
|
|
256
259
|
global: k,
|
|
257
|
-
isContextDefined:
|
|
258
|
-
isSpecCompliantForm:
|
|
259
|
-
toJSONObject:
|
|
260
|
-
isAsyncFn:
|
|
261
|
-
isThenable:
|
|
262
|
-
setImmediate:
|
|
263
|
-
asap:
|
|
264
|
-
isIterable:
|
|
260
|
+
isContextDefined: Ze,
|
|
261
|
+
isSpecCompliantForm: Zt,
|
|
262
|
+
toJSONObject: Yt,
|
|
263
|
+
isAsyncFn: en,
|
|
264
|
+
isThenable: tn,
|
|
265
|
+
setImmediate: et,
|
|
266
|
+
asap: nn,
|
|
267
|
+
isIterable: rn
|
|
265
268
|
};
|
|
266
|
-
let y = class
|
|
269
|
+
let y = class tt extends Error {
|
|
267
270
|
static from(t, n, r, s, o, i) {
|
|
268
|
-
const c = new
|
|
269
|
-
return c.cause = t, c.name = t.name, i && Object.assign(c, i), c;
|
|
271
|
+
const c = new tt(t.message, n || t.code, r, s, o);
|
|
272
|
+
return c.cause = t, c.name = t.name, t.status != null && c.status == null && (c.status = t.status), i && Object.assign(c, i), c;
|
|
270
273
|
}
|
|
271
274
|
/**
|
|
272
275
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -280,7 +283,12 @@ let y = class Ye extends Error {
|
|
|
280
283
|
* @returns {Error} The created error.
|
|
281
284
|
*/
|
|
282
285
|
constructor(t, n, r, s, o) {
|
|
283
|
-
super(t),
|
|
286
|
+
super(t), Object.defineProperty(this, "message", {
|
|
287
|
+
value: t,
|
|
288
|
+
enumerable: !0,
|
|
289
|
+
writable: !0,
|
|
290
|
+
configurable: !0
|
|
291
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status);
|
|
284
292
|
}
|
|
285
293
|
toJSON() {
|
|
286
294
|
return {
|
|
@@ -314,35 +322,40 @@ y.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
314
322
|
y.ERR_CANCELED = "ERR_CANCELED";
|
|
315
323
|
y.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
316
324
|
y.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
317
|
-
const
|
|
318
|
-
function
|
|
325
|
+
const sn = null;
|
|
326
|
+
function ye(e) {
|
|
319
327
|
return a.isPlainObject(e) || a.isArray(e);
|
|
320
328
|
}
|
|
321
|
-
function
|
|
329
|
+
function nt(e) {
|
|
322
330
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
323
331
|
}
|
|
324
|
-
function
|
|
332
|
+
function fe(e, t, n) {
|
|
325
333
|
return e ? e.concat(t).map(function(s, o) {
|
|
326
|
-
return s =
|
|
334
|
+
return s = nt(s), !n && o ? "[" + s + "]" : s;
|
|
327
335
|
}).join(n ? "." : "") : t;
|
|
328
336
|
}
|
|
329
|
-
function
|
|
330
|
-
return a.isArray(e) && !e.some(
|
|
337
|
+
function on(e) {
|
|
338
|
+
return a.isArray(e) && !e.some(ye);
|
|
331
339
|
}
|
|
332
|
-
const
|
|
340
|
+
const an = a.toFlatObject(a, {}, null, function(t) {
|
|
333
341
|
return /^is[A-Z]/.test(t);
|
|
334
342
|
});
|
|
335
343
|
function ie(e, t, n) {
|
|
336
344
|
if (!a.isObject(e))
|
|
337
345
|
throw new TypeError("target must be an object");
|
|
338
|
-
t = t || new FormData(), n = a.toFlatObject(
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
t = t || new FormData(), n = a.toFlatObject(
|
|
347
|
+
n,
|
|
348
|
+
{
|
|
349
|
+
metaTokens: !0,
|
|
350
|
+
dots: !1,
|
|
351
|
+
indexes: !1
|
|
352
|
+
},
|
|
353
|
+
!1,
|
|
354
|
+
function(m, d) {
|
|
355
|
+
return !a.isUndefined(d[m]);
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
346
359
|
if (!a.isFunction(s))
|
|
347
360
|
throw new TypeError("visitor must be a function");
|
|
348
361
|
function f(u) {
|
|
@@ -351,43 +364,39 @@ function ie(e, t, n) {
|
|
|
351
364
|
return u.toISOString();
|
|
352
365
|
if (a.isBoolean(u))
|
|
353
366
|
return u.toString();
|
|
354
|
-
if (!
|
|
367
|
+
if (!p && a.isBlob(u))
|
|
355
368
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
356
|
-
return a.isArrayBuffer(u) || a.isTypedArray(u) ?
|
|
369
|
+
return a.isArrayBuffer(u) || a.isTypedArray(u) ? p && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
357
370
|
}
|
|
358
|
-
function l(u, m,
|
|
359
|
-
let
|
|
360
|
-
if (
|
|
371
|
+
function l(u, m, d) {
|
|
372
|
+
let R = u;
|
|
373
|
+
if (a.isReactNative(t) && a.isReactNativeBlob(u))
|
|
374
|
+
return t.append(fe(d, m, o), f(u)), !1;
|
|
375
|
+
if (u && !d && typeof u == "object") {
|
|
361
376
|
if (a.endsWith(m, "{}"))
|
|
362
377
|
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
363
|
-
else if (a.isArray(u) &&
|
|
364
|
-
return m =
|
|
365
|
-
!(a.isUndefined(
|
|
378
|
+
else if (a.isArray(u) && on(u) || (a.isFileList(u) || a.endsWith(m, "[]")) && (R = a.toArray(u)))
|
|
379
|
+
return m = nt(m), R.forEach(function(E, O) {
|
|
380
|
+
!(a.isUndefined(E) || E === null) && t.append(
|
|
366
381
|
// eslint-disable-next-line no-nested-ternary
|
|
367
|
-
i === !0 ?
|
|
368
|
-
f(
|
|
382
|
+
i === !0 ? fe([m], O, o) : i === null ? m : m + "[]",
|
|
383
|
+
f(E)
|
|
369
384
|
);
|
|
370
385
|
}), !1;
|
|
371
386
|
}
|
|
372
|
-
return
|
|
387
|
+
return ye(u) ? !0 : (t.append(fe(d, m, o), f(u)), !1);
|
|
373
388
|
}
|
|
374
|
-
const h = [], b = Object.assign(
|
|
389
|
+
const h = [], b = Object.assign(an, {
|
|
375
390
|
defaultVisitor: l,
|
|
376
391
|
convertValue: f,
|
|
377
|
-
isVisitable:
|
|
392
|
+
isVisitable: ye
|
|
378
393
|
});
|
|
379
394
|
function g(u, m) {
|
|
380
395
|
if (!a.isUndefined(u)) {
|
|
381
396
|
if (h.indexOf(u) !== -1)
|
|
382
397
|
throw Error("Circular reference detected in " + m.join("."));
|
|
383
|
-
h.push(u), a.forEach(u, function(
|
|
384
|
-
(!(a.isUndefined(
|
|
385
|
-
t,
|
|
386
|
-
E,
|
|
387
|
-
a.isString(x) ? x.trim() : x,
|
|
388
|
-
m,
|
|
389
|
-
b
|
|
390
|
-
)) === !0 && g(E, m ? m.concat(x) : [x]);
|
|
398
|
+
h.push(u), a.forEach(u, function(R, x) {
|
|
399
|
+
(!(a.isUndefined(R) || R === null) && s.call(t, R, a.isString(x) ? x.trim() : x, m, b)) === !0 && g(R, m ? m.concat(x) : [x]);
|
|
391
400
|
}), h.pop();
|
|
392
401
|
}
|
|
393
402
|
}
|
|
@@ -395,7 +404,7 @@ function ie(e, t, n) {
|
|
|
395
404
|
throw new TypeError("data must be an object");
|
|
396
405
|
return g(e), t;
|
|
397
406
|
}
|
|
398
|
-
function
|
|
407
|
+
function Le(e) {
|
|
399
408
|
const t = {
|
|
400
409
|
"!": "%21",
|
|
401
410
|
"'": "%27",
|
|
@@ -412,25 +421,25 @@ function Ue(e) {
|
|
|
412
421
|
function Ee(e, t) {
|
|
413
422
|
this._pairs = [], e && ie(e, this, t);
|
|
414
423
|
}
|
|
415
|
-
const
|
|
416
|
-
|
|
424
|
+
const rt = Ee.prototype;
|
|
425
|
+
rt.append = function(t, n) {
|
|
417
426
|
this._pairs.push([t, n]);
|
|
418
427
|
};
|
|
419
|
-
|
|
428
|
+
rt.toString = function(t) {
|
|
420
429
|
const n = t ? function(r) {
|
|
421
|
-
return t.call(this, r,
|
|
422
|
-
} :
|
|
430
|
+
return t.call(this, r, Le);
|
|
431
|
+
} : Le;
|
|
423
432
|
return this._pairs.map(function(s) {
|
|
424
433
|
return n(s[0]) + "=" + n(s[1]);
|
|
425
434
|
}, "").join("&");
|
|
426
435
|
};
|
|
427
|
-
function
|
|
436
|
+
function cn(e) {
|
|
428
437
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
429
438
|
}
|
|
430
|
-
function
|
|
439
|
+
function st(e, t, n) {
|
|
431
440
|
if (!t)
|
|
432
441
|
return e;
|
|
433
|
-
const r = n && n.encode ||
|
|
442
|
+
const r = n && n.encode || cn, s = a.isFunction(n) ? {
|
|
434
443
|
serialize: n
|
|
435
444
|
} : n, o = s && s.serialize;
|
|
436
445
|
let i;
|
|
@@ -440,7 +449,7 @@ function nt(e, t, n) {
|
|
|
440
449
|
}
|
|
441
450
|
return e;
|
|
442
451
|
}
|
|
443
|
-
class
|
|
452
|
+
class Be {
|
|
444
453
|
constructor() {
|
|
445
454
|
this.handlers = [];
|
|
446
455
|
}
|
|
@@ -495,32 +504,32 @@ class Fe {
|
|
|
495
504
|
});
|
|
496
505
|
}
|
|
497
506
|
}
|
|
498
|
-
const
|
|
507
|
+
const ge = {
|
|
499
508
|
silentJSONParsing: !0,
|
|
500
509
|
forcedJSONParsing: !0,
|
|
501
510
|
clarifyTimeoutError: !1,
|
|
502
511
|
legacyInterceptorReqResOrdering: !0
|
|
503
|
-
},
|
|
512
|
+
}, ln = typeof URLSearchParams < "u" ? URLSearchParams : Ee, un = typeof FormData < "u" ? FormData : null, fn = typeof Blob < "u" ? Blob : null, dn = {
|
|
504
513
|
isBrowser: !0,
|
|
505
514
|
classes: {
|
|
506
|
-
URLSearchParams:
|
|
507
|
-
FormData:
|
|
508
|
-
Blob:
|
|
515
|
+
URLSearchParams: ln,
|
|
516
|
+
FormData: un,
|
|
517
|
+
Blob: fn
|
|
509
518
|
},
|
|
510
519
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
511
|
-
},
|
|
512
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
520
|
+
}, Se = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, pn = Se && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
521
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", mn = Se && window.location.href || "http://localhost", yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
513
522
|
__proto__: null,
|
|
514
|
-
hasBrowserEnv:
|
|
515
|
-
hasStandardBrowserEnv:
|
|
516
|
-
hasStandardBrowserWebWorkerEnv:
|
|
517
|
-
navigator:
|
|
518
|
-
origin:
|
|
523
|
+
hasBrowserEnv: Se,
|
|
524
|
+
hasStandardBrowserEnv: pn,
|
|
525
|
+
hasStandardBrowserWebWorkerEnv: hn,
|
|
526
|
+
navigator: be,
|
|
527
|
+
origin: mn
|
|
519
528
|
}, Symbol.toStringTag, { value: "Module" })), S = {
|
|
520
|
-
...
|
|
521
|
-
...
|
|
529
|
+
...yn,
|
|
530
|
+
...dn
|
|
522
531
|
};
|
|
523
|
-
function
|
|
532
|
+
function bn(e, t) {
|
|
524
533
|
return ie(e, new S.classes.URLSearchParams(), {
|
|
525
534
|
visitor: function(n, r, s, o) {
|
|
526
535
|
return S.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -528,10 +537,10 @@ function dn(e, t) {
|
|
|
528
537
|
...t
|
|
529
538
|
});
|
|
530
539
|
}
|
|
531
|
-
function
|
|
540
|
+
function wn(e) {
|
|
532
541
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
533
542
|
}
|
|
534
|
-
function
|
|
543
|
+
function Rn(e) {
|
|
535
544
|
const t = {}, n = Object.keys(e);
|
|
536
545
|
let r;
|
|
537
546
|
const s = n.length;
|
|
@@ -540,22 +549,22 @@ function hn(e) {
|
|
|
540
549
|
o = n[r], t[o] = e[o];
|
|
541
550
|
return t;
|
|
542
551
|
}
|
|
543
|
-
function
|
|
552
|
+
function ot(e) {
|
|
544
553
|
function t(n, r, s, o) {
|
|
545
554
|
let i = n[o++];
|
|
546
555
|
if (i === "__proto__") return !0;
|
|
547
|
-
const c = Number.isFinite(+i),
|
|
548
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
556
|
+
const c = Number.isFinite(+i), p = o >= n.length;
|
|
557
|
+
return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Rn(s[i])), !c);
|
|
549
558
|
}
|
|
550
559
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
551
560
|
const n = {};
|
|
552
561
|
return a.forEachEntry(e, (r, s) => {
|
|
553
|
-
t(
|
|
562
|
+
t(wn(r), s, n, 0);
|
|
554
563
|
}), n;
|
|
555
564
|
}
|
|
556
565
|
return null;
|
|
557
566
|
}
|
|
558
|
-
function
|
|
567
|
+
function En(e, t, n) {
|
|
559
568
|
if (a.isString(e))
|
|
560
569
|
try {
|
|
561
570
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -566,48 +575,52 @@ function mn(e, t, n) {
|
|
|
566
575
|
return (n || JSON.stringify)(e);
|
|
567
576
|
}
|
|
568
577
|
const K = {
|
|
569
|
-
transitional:
|
|
578
|
+
transitional: ge,
|
|
570
579
|
adapter: ["xhr", "http", "fetch"],
|
|
571
|
-
transformRequest: [
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
if (
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
580
|
+
transformRequest: [
|
|
581
|
+
function(t, n) {
|
|
582
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
583
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
584
|
+
return s ? JSON.stringify(ot(t)) : t;
|
|
585
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
586
|
+
return t;
|
|
587
|
+
if (a.isArrayBufferView(t))
|
|
588
|
+
return t.buffer;
|
|
589
|
+
if (a.isURLSearchParams(t))
|
|
590
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
591
|
+
let c;
|
|
592
|
+
if (o) {
|
|
593
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
594
|
+
return bn(t, this.formSerializer).toString();
|
|
595
|
+
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
596
|
+
const p = this.env && this.env.FormData;
|
|
597
|
+
return ie(
|
|
598
|
+
c ? { "files[]": t } : t,
|
|
599
|
+
p && new p(),
|
|
600
|
+
this.formSerializer
|
|
601
|
+
);
|
|
602
|
+
}
|
|
592
603
|
}
|
|
604
|
+
return o || s ? (n.setContentType("application/json", !1), En(t)) : t;
|
|
593
605
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
606
|
+
],
|
|
607
|
+
transformResponse: [
|
|
608
|
+
function(t) {
|
|
609
|
+
const n = this.transitional || K.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
610
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
611
|
+
return t;
|
|
612
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
613
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
614
|
+
try {
|
|
615
|
+
return JSON.parse(t, this.parseReviver);
|
|
616
|
+
} catch (c) {
|
|
617
|
+
if (i)
|
|
618
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
619
|
+
}
|
|
607
620
|
}
|
|
621
|
+
return t;
|
|
608
622
|
}
|
|
609
|
-
|
|
610
|
-
}],
|
|
623
|
+
],
|
|
611
624
|
/**
|
|
612
625
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
613
626
|
* timeout is not created.
|
|
@@ -634,7 +647,7 @@ const K = {
|
|
|
634
647
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
635
648
|
K.headers[e] = {};
|
|
636
649
|
});
|
|
637
|
-
const
|
|
650
|
+
const gn = a.toObjectSet([
|
|
638
651
|
"age",
|
|
639
652
|
"authorization",
|
|
640
653
|
"content-length",
|
|
@@ -652,29 +665,29 @@ const yn = a.toObjectSet([
|
|
|
652
665
|
"referer",
|
|
653
666
|
"retry-after",
|
|
654
667
|
"user-agent"
|
|
655
|
-
]),
|
|
668
|
+
]), Sn = (e) => {
|
|
656
669
|
const t = {};
|
|
657
670
|
let n, r, s;
|
|
658
671
|
return e && e.split(`
|
|
659
672
|
`).forEach(function(i) {
|
|
660
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
673
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && gn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
661
674
|
}), t;
|
|
662
|
-
},
|
|
675
|
+
}, De = /* @__PURE__ */ Symbol("internals");
|
|
663
676
|
function z(e) {
|
|
664
677
|
return e && String(e).trim().toLowerCase();
|
|
665
678
|
}
|
|
666
679
|
function ee(e) {
|
|
667
680
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
|
|
668
681
|
}
|
|
669
|
-
function
|
|
682
|
+
function On(e) {
|
|
670
683
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
671
684
|
let r;
|
|
672
685
|
for (; r = n.exec(e); )
|
|
673
686
|
t[r[1]] = r[2];
|
|
674
687
|
return t;
|
|
675
688
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
689
|
+
const An = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
690
|
+
function de(e, t, n, r, s) {
|
|
678
691
|
if (a.isFunction(r))
|
|
679
692
|
return r.call(this, t, n);
|
|
680
693
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -684,10 +697,10 @@ function fe(e, t, n, r, s) {
|
|
|
684
697
|
return r.test(t);
|
|
685
698
|
}
|
|
686
699
|
}
|
|
687
|
-
function
|
|
700
|
+
function Tn(e) {
|
|
688
701
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
689
702
|
}
|
|
690
|
-
function
|
|
703
|
+
function Cn(e, t) {
|
|
691
704
|
const n = a.toCamelCase(" " + t);
|
|
692
705
|
["get", "set", "has"].forEach((r) => {
|
|
693
706
|
Object.defineProperty(e, r + n, {
|
|
@@ -704,24 +717,24 @@ let C = class {
|
|
|
704
717
|
}
|
|
705
718
|
set(t, n, r) {
|
|
706
719
|
const s = this;
|
|
707
|
-
function o(c,
|
|
708
|
-
const l = z(
|
|
720
|
+
function o(c, p, f) {
|
|
721
|
+
const l = z(p);
|
|
709
722
|
if (!l)
|
|
710
723
|
throw new Error("header name must be a non-empty string");
|
|
711
724
|
const h = a.findKey(s, l);
|
|
712
|
-
(!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h ||
|
|
725
|
+
(!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || p] = ee(c));
|
|
713
726
|
}
|
|
714
|
-
const i = (c,
|
|
727
|
+
const i = (c, p) => a.forEach(c, (f, l) => o(f, l, p));
|
|
715
728
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
716
729
|
i(t, n);
|
|
717
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
718
|
-
i(
|
|
730
|
+
else if (a.isString(t) && (t = t.trim()) && !An(t))
|
|
731
|
+
i(Sn(t), n);
|
|
719
732
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
720
|
-
let c = {},
|
|
733
|
+
let c = {}, p, f;
|
|
721
734
|
for (const l of t) {
|
|
722
735
|
if (!a.isArray(l))
|
|
723
736
|
throw TypeError("Object iterator must return a key-value pair");
|
|
724
|
-
c[f = l[0]] = (
|
|
737
|
+
c[f = l[0]] = (p = c[f]) ? a.isArray(p) ? [...p, l[1]] : [p, l[1]] : l[1];
|
|
725
738
|
}
|
|
726
739
|
i(c, n);
|
|
727
740
|
} else
|
|
@@ -736,7 +749,7 @@ let C = class {
|
|
|
736
749
|
if (!n)
|
|
737
750
|
return s;
|
|
738
751
|
if (n === !0)
|
|
739
|
-
return
|
|
752
|
+
return On(s);
|
|
740
753
|
if (a.isFunction(n))
|
|
741
754
|
return n.call(this, s, r);
|
|
742
755
|
if (a.isRegExp(n))
|
|
@@ -748,7 +761,7 @@ let C = class {
|
|
|
748
761
|
has(t, n) {
|
|
749
762
|
if (t = z(t), t) {
|
|
750
763
|
const r = a.findKey(this, t);
|
|
751
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
764
|
+
return !!(r && this[r] !== void 0 && (!n || de(this, this[r], r, n)));
|
|
752
765
|
}
|
|
753
766
|
return !1;
|
|
754
767
|
}
|
|
@@ -758,7 +771,7 @@ let C = class {
|
|
|
758
771
|
function o(i) {
|
|
759
772
|
if (i = z(i), i) {
|
|
760
773
|
const c = a.findKey(r, i);
|
|
761
|
-
c && (!n ||
|
|
774
|
+
c && (!n || de(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
762
775
|
}
|
|
763
776
|
}
|
|
764
777
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -768,7 +781,7 @@ let C = class {
|
|
|
768
781
|
let r = n.length, s = !1;
|
|
769
782
|
for (; r--; ) {
|
|
770
783
|
const o = n[r];
|
|
771
|
-
(!t ||
|
|
784
|
+
(!t || de(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
772
785
|
}
|
|
773
786
|
return s;
|
|
774
787
|
}
|
|
@@ -780,7 +793,7 @@ let C = class {
|
|
|
780
793
|
n[i] = ee(s), delete n[o];
|
|
781
794
|
return;
|
|
782
795
|
}
|
|
783
|
-
const c = t ?
|
|
796
|
+
const c = t ? Tn(o) : String(o).trim();
|
|
784
797
|
c !== o && delete n[o], n[c] = ee(s), r[c] = !0;
|
|
785
798
|
}), this;
|
|
786
799
|
}
|
|
@@ -814,17 +827,24 @@ let C = class {
|
|
|
814
827
|
return n.forEach((s) => r.set(s)), r;
|
|
815
828
|
}
|
|
816
829
|
static accessor(t) {
|
|
817
|
-
const r = (this[
|
|
830
|
+
const r = (this[De] = this[De] = {
|
|
818
831
|
accessors: {}
|
|
819
832
|
}).accessors, s = this.prototype;
|
|
820
833
|
function o(i) {
|
|
821
834
|
const c = z(i);
|
|
822
|
-
r[c] || (
|
|
835
|
+
r[c] || (Cn(s, i), r[c] = !0);
|
|
823
836
|
}
|
|
824
837
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
825
838
|
}
|
|
826
839
|
};
|
|
827
|
-
C.accessor([
|
|
840
|
+
C.accessor([
|
|
841
|
+
"Content-Type",
|
|
842
|
+
"Content-Length",
|
|
843
|
+
"Accept",
|
|
844
|
+
"Accept-Encoding",
|
|
845
|
+
"User-Agent",
|
|
846
|
+
"Authorization"
|
|
847
|
+
]);
|
|
828
848
|
a.reduceDescriptors(C.prototype, ({ value: e }, t) => {
|
|
829
849
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
830
850
|
return {
|
|
@@ -835,14 +855,14 @@ a.reduceDescriptors(C.prototype, ({ value: e }, t) => {
|
|
|
835
855
|
};
|
|
836
856
|
});
|
|
837
857
|
a.freezeMethods(C);
|
|
838
|
-
function
|
|
858
|
+
function pe(e, t) {
|
|
839
859
|
const n = this || K, r = t || n, s = C.from(r.headers);
|
|
840
860
|
let o = r.data;
|
|
841
861
|
return a.forEach(e, function(c) {
|
|
842
862
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
843
863
|
}), s.normalize(), o;
|
|
844
864
|
}
|
|
845
|
-
function
|
|
865
|
+
function it(e) {
|
|
846
866
|
return !!(e && e.__CANCEL__);
|
|
847
867
|
}
|
|
848
868
|
let v = class extends y {
|
|
@@ -859,27 +879,29 @@ let v = class extends y {
|
|
|
859
879
|
super(t ?? "canceled", y.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
860
880
|
}
|
|
861
881
|
};
|
|
862
|
-
function
|
|
882
|
+
function at(e, t, n) {
|
|
863
883
|
const r = n.config.validateStatus;
|
|
864
|
-
!n.status || !r || r(n.status) ? e(n) : t(
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
884
|
+
!n.status || !r || r(n.status) ? e(n) : t(
|
|
885
|
+
new y(
|
|
886
|
+
"Request failed with status code " + n.status,
|
|
887
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
888
|
+
n.config,
|
|
889
|
+
n.request,
|
|
890
|
+
n
|
|
891
|
+
)
|
|
892
|
+
);
|
|
871
893
|
}
|
|
872
|
-
function
|
|
894
|
+
function xn(e) {
|
|
873
895
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
874
896
|
return t && t[1] || "";
|
|
875
897
|
}
|
|
876
|
-
function
|
|
898
|
+
function _n(e, t) {
|
|
877
899
|
e = e || 10;
|
|
878
900
|
const n = new Array(e), r = new Array(e);
|
|
879
901
|
let s = 0, o = 0, i;
|
|
880
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
902
|
+
return t = t !== void 0 ? t : 1e3, function(p) {
|
|
881
903
|
const f = Date.now(), l = r[o];
|
|
882
|
-
i || (i = f), n[s] =
|
|
904
|
+
i || (i = f), n[s] = p, r[s] = f;
|
|
883
905
|
let h = o, b = 0;
|
|
884
906
|
for (; h !== s; )
|
|
885
907
|
b += n[h++], h = h % e;
|
|
@@ -889,7 +911,7 @@ function On(e, t) {
|
|
|
889
911
|
return g ? Math.round(b * 1e3 / g) : void 0;
|
|
890
912
|
};
|
|
891
913
|
}
|
|
892
|
-
function
|
|
914
|
+
function Nn(e, t) {
|
|
893
915
|
let n = 0, r = 1e3 / t, s, o;
|
|
894
916
|
const i = (f, l = Date.now()) => {
|
|
895
917
|
n = l, s = null, o && (clearTimeout(o), o = null), e(...f);
|
|
@@ -903,15 +925,15 @@ function An(e, t) {
|
|
|
903
925
|
}
|
|
904
926
|
const ne = (e, t, n = 3) => {
|
|
905
927
|
let r = 0;
|
|
906
|
-
const s =
|
|
907
|
-
return
|
|
908
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0,
|
|
928
|
+
const s = _n(50, 250);
|
|
929
|
+
return Nn((o) => {
|
|
930
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, p = i - r, f = s(p), l = i <= c;
|
|
909
931
|
r = i;
|
|
910
932
|
const h = {
|
|
911
933
|
loaded: i,
|
|
912
934
|
total: c,
|
|
913
935
|
progress: c ? i / c : void 0,
|
|
914
|
-
bytes:
|
|
936
|
+
bytes: p,
|
|
915
937
|
rate: f || void 0,
|
|
916
938
|
estimated: f && c && l ? (c - i) / f : void 0,
|
|
917
939
|
event: o,
|
|
@@ -920,17 +942,20 @@ const ne = (e, t, n = 3) => {
|
|
|
920
942
|
};
|
|
921
943
|
e(h);
|
|
922
944
|
}, n);
|
|
923
|
-
},
|
|
945
|
+
}, ke = (e, t) => {
|
|
924
946
|
const n = e != null;
|
|
925
|
-
return [
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
947
|
+
return [
|
|
948
|
+
(r) => t[0]({
|
|
949
|
+
lengthComputable: n,
|
|
950
|
+
total: e,
|
|
951
|
+
loaded: r
|
|
952
|
+
}),
|
|
953
|
+
t[1]
|
|
954
|
+
];
|
|
955
|
+
}, je = (e) => (...t) => a.asap(() => e(...t)), Pn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
931
956
|
new URL(S.origin),
|
|
932
957
|
S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
|
|
933
|
-
) : () => !0,
|
|
958
|
+
) : () => !0, Un = S.hasStandardBrowserEnv ? (
|
|
934
959
|
// Standard browser envs support document.cookie
|
|
935
960
|
{
|
|
936
961
|
write(e, t, n, r, s, o, i) {
|
|
@@ -959,17 +984,17 @@ const ne = (e, t, n = 3) => {
|
|
|
959
984
|
}
|
|
960
985
|
}
|
|
961
986
|
);
|
|
962
|
-
function
|
|
987
|
+
function Fn(e) {
|
|
963
988
|
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
964
989
|
}
|
|
965
|
-
function
|
|
990
|
+
function Ln(e, t) {
|
|
966
991
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
967
992
|
}
|
|
968
|
-
function
|
|
969
|
-
let r = !
|
|
970
|
-
return e && (r || n == !1) ?
|
|
993
|
+
function ct(e, t, n) {
|
|
994
|
+
let r = !Fn(t);
|
|
995
|
+
return e && (r || n == !1) ? Ln(e, t) : t;
|
|
971
996
|
}
|
|
972
|
-
const
|
|
997
|
+
const qe = (e) => e instanceof C ? { ...e } : e;
|
|
973
998
|
function q(e, t) {
|
|
974
999
|
t = t || {};
|
|
975
1000
|
const n = {};
|
|
@@ -998,7 +1023,7 @@ function q(e, t) {
|
|
|
998
1023
|
if (h in e)
|
|
999
1024
|
return r(void 0, f);
|
|
1000
1025
|
}
|
|
1001
|
-
const
|
|
1026
|
+
const p = {
|
|
1002
1027
|
url: o,
|
|
1003
1028
|
method: o,
|
|
1004
1029
|
data: o,
|
|
@@ -1027,98 +1052,112 @@ function q(e, t) {
|
|
|
1027
1052
|
socketPath: i,
|
|
1028
1053
|
responseEncoding: i,
|
|
1029
1054
|
validateStatus: c,
|
|
1030
|
-
headers: (f, l, h) => s(
|
|
1055
|
+
headers: (f, l, h) => s(qe(f), qe(l), h, !0)
|
|
1031
1056
|
};
|
|
1032
|
-
return a.forEach(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
const h = a.hasOwnProp(d, l) ? d[l] : s, b = h(e[l], t[l], l);
|
|
1038
|
-
a.isUndefined(b) && h !== c || (n[l] = b);
|
|
1039
|
-
}
|
|
1040
|
-
), n;
|
|
1057
|
+
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1058
|
+
if (l === "__proto__" || l === "constructor" || l === "prototype") return;
|
|
1059
|
+
const h = a.hasOwnProp(p, l) ? p[l] : s, b = h(e[l], t[l], l);
|
|
1060
|
+
a.isUndefined(b) && h !== c || (n[l] = b);
|
|
1061
|
+
}), n;
|
|
1041
1062
|
}
|
|
1042
|
-
const
|
|
1063
|
+
const lt = (e) => {
|
|
1043
1064
|
const t = q({}, e);
|
|
1044
1065
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1045
|
-
if (t.headers = i = C.from(i), t.url =
|
|
1066
|
+
if (t.headers = i = C.from(i), t.url = st(
|
|
1067
|
+
ct(t.baseURL, t.url, t.allowAbsoluteUrls),
|
|
1068
|
+
e.params,
|
|
1069
|
+
e.paramsSerializer
|
|
1070
|
+
), c && i.set(
|
|
1046
1071
|
"Authorization",
|
|
1047
|
-
"Basic " + btoa(
|
|
1072
|
+
"Basic " + btoa(
|
|
1073
|
+
(c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
|
|
1074
|
+
)
|
|
1048
1075
|
), a.isFormData(n)) {
|
|
1049
1076
|
if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
|
|
1050
1077
|
i.setContentType(void 0);
|
|
1051
1078
|
else if (a.isFunction(n.getHeaders)) {
|
|
1052
|
-
const
|
|
1053
|
-
Object.entries(
|
|
1079
|
+
const p = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1080
|
+
Object.entries(p).forEach(([l, h]) => {
|
|
1054
1081
|
f.includes(l.toLowerCase()) && i.set(l, h);
|
|
1055
1082
|
});
|
|
1056
1083
|
}
|
|
1057
1084
|
}
|
|
1058
|
-
if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1085
|
+
if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Pn(t.url))) {
|
|
1086
|
+
const p = s && o && Un.read(o);
|
|
1087
|
+
p && i.set(s, p);
|
|
1061
1088
|
}
|
|
1062
1089
|
return t;
|
|
1063
|
-
},
|
|
1090
|
+
}, Bn = typeof XMLHttpRequest < "u", Dn = Bn && function(e) {
|
|
1064
1091
|
return new Promise(function(n, r) {
|
|
1065
|
-
const s =
|
|
1092
|
+
const s = lt(e);
|
|
1066
1093
|
let o = s.data;
|
|
1067
1094
|
const i = C.from(s.headers).normalize();
|
|
1068
|
-
let { responseType: c, onUploadProgress:
|
|
1095
|
+
let { responseType: c, onUploadProgress: p, onDownloadProgress: f } = s, l, h, b, g, u;
|
|
1069
1096
|
function m() {
|
|
1070
1097
|
g && g(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1071
1098
|
}
|
|
1072
|
-
let
|
|
1073
|
-
|
|
1074
|
-
function
|
|
1075
|
-
if (!
|
|
1099
|
+
let d = new XMLHttpRequest();
|
|
1100
|
+
d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
|
|
1101
|
+
function R() {
|
|
1102
|
+
if (!d)
|
|
1076
1103
|
return;
|
|
1077
|
-
const
|
|
1078
|
-
"getAllResponseHeaders" in
|
|
1104
|
+
const E = C.from(
|
|
1105
|
+
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
1079
1106
|
), P = {
|
|
1080
|
-
data: !c || c === "text" || c === "json" ?
|
|
1081
|
-
status:
|
|
1082
|
-
statusText:
|
|
1083
|
-
headers:
|
|
1107
|
+
data: !c || c === "text" || c === "json" ? d.responseText : d.response,
|
|
1108
|
+
status: d.status,
|
|
1109
|
+
statusText: d.statusText,
|
|
1110
|
+
headers: E,
|
|
1084
1111
|
config: e,
|
|
1085
|
-
request:
|
|
1112
|
+
request: d
|
|
1086
1113
|
};
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1114
|
+
at(
|
|
1115
|
+
function(_) {
|
|
1116
|
+
n(_), m();
|
|
1117
|
+
},
|
|
1118
|
+
function(_) {
|
|
1119
|
+
r(_), m();
|
|
1120
|
+
},
|
|
1121
|
+
P
|
|
1122
|
+
), d = null;
|
|
1092
1123
|
}
|
|
1093
|
-
"onloadend" in
|
|
1094
|
-
!
|
|
1095
|
-
},
|
|
1096
|
-
|
|
1097
|
-
},
|
|
1098
|
-
const P = O && O.message ? O.message : "Network Error",
|
|
1099
|
-
|
|
1100
|
-
},
|
|
1124
|
+
"onloadend" in d ? d.onloadend = R : d.onreadystatechange = function() {
|
|
1125
|
+
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
|
1126
|
+
}, d.onabort = function() {
|
|
1127
|
+
d && (r(new y("Request aborted", y.ECONNABORTED, e, d)), d = null);
|
|
1128
|
+
}, d.onerror = function(O) {
|
|
1129
|
+
const P = O && O.message ? O.message : "Network Error", B = new y(P, y.ERR_NETWORK, e, d);
|
|
1130
|
+
B.event = O || null, r(B), d = null;
|
|
1131
|
+
}, d.ontimeout = function() {
|
|
1101
1132
|
let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1102
|
-
const P = s.transitional ||
|
|
1103
|
-
s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1133
|
+
const P = s.transitional || ge;
|
|
1134
|
+
s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(
|
|
1135
|
+
new y(
|
|
1136
|
+
O,
|
|
1137
|
+
P.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1138
|
+
e,
|
|
1139
|
+
d
|
|
1140
|
+
)
|
|
1141
|
+
), d = null;
|
|
1142
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(O, P) {
|
|
1143
|
+
d.setRequestHeader(P, O);
|
|
1144
|
+
}), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), f && ([b, u] = ne(f, !0), d.addEventListener("progress", b)), p && d.upload && ([h, g] = ne(p), d.upload.addEventListener("progress", h), d.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (E) => {
|
|
1145
|
+
d && (r(!E || E.type ? new v(null, e, d) : E), d.abort(), d = null);
|
|
1113
1146
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1114
|
-
const x =
|
|
1147
|
+
const x = xn(s.url);
|
|
1115
1148
|
if (x && S.protocols.indexOf(x) === -1) {
|
|
1116
|
-
r(
|
|
1149
|
+
r(
|
|
1150
|
+
new y(
|
|
1151
|
+
"Unsupported protocol " + x + ":",
|
|
1152
|
+
y.ERR_BAD_REQUEST,
|
|
1153
|
+
e
|
|
1154
|
+
)
|
|
1155
|
+
);
|
|
1117
1156
|
return;
|
|
1118
1157
|
}
|
|
1119
|
-
|
|
1158
|
+
d.send(o || null);
|
|
1120
1159
|
});
|
|
1121
|
-
},
|
|
1160
|
+
}, kn = (e, t) => {
|
|
1122
1161
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1123
1162
|
if (t || n) {
|
|
1124
1163
|
let r = new AbortController(), s;
|
|
@@ -1126,7 +1165,9 @@ const at = (e) => {
|
|
|
1126
1165
|
if (!s) {
|
|
1127
1166
|
s = !0, c();
|
|
1128
1167
|
const l = f instanceof Error ? f : this.reason;
|
|
1129
|
-
r.abort(
|
|
1168
|
+
r.abort(
|
|
1169
|
+
l instanceof y ? l : new v(l instanceof Error ? l.message : l)
|
|
1170
|
+
);
|
|
1130
1171
|
}
|
|
1131
1172
|
};
|
|
1132
1173
|
let i = t && setTimeout(() => {
|
|
@@ -1138,10 +1179,10 @@ const at = (e) => {
|
|
|
1138
1179
|
}), e = null);
|
|
1139
1180
|
};
|
|
1140
1181
|
e.forEach((f) => f.addEventListener("abort", o));
|
|
1141
|
-
const { signal:
|
|
1142
|
-
return
|
|
1182
|
+
const { signal: p } = r;
|
|
1183
|
+
return p.unsubscribe = () => a.asap(c), p;
|
|
1143
1184
|
}
|
|
1144
|
-
},
|
|
1185
|
+
}, jn = function* (e, t) {
|
|
1145
1186
|
let n = e.byteLength;
|
|
1146
1187
|
if (n < t) {
|
|
1147
1188
|
yield e;
|
|
@@ -1150,10 +1191,10 @@ const at = (e) => {
|
|
|
1150
1191
|
let r = 0, s;
|
|
1151
1192
|
for (; r < n; )
|
|
1152
1193
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1153
|
-
},
|
|
1154
|
-
for await (const n of
|
|
1155
|
-
yield*
|
|
1156
|
-
},
|
|
1194
|
+
}, qn = async function* (e, t) {
|
|
1195
|
+
for await (const n of In(e))
|
|
1196
|
+
yield* jn(n, t);
|
|
1197
|
+
}, In = async function* (e) {
|
|
1157
1198
|
if (e[Symbol.asyncIterator]) {
|
|
1158
1199
|
yield* e;
|
|
1159
1200
|
return;
|
|
@@ -1169,73 +1210,81 @@ const at = (e) => {
|
|
|
1169
1210
|
} finally {
|
|
1170
1211
|
await t.cancel();
|
|
1171
1212
|
}
|
|
1172
|
-
},
|
|
1173
|
-
const s =
|
|
1174
|
-
let o = 0, i, c = (
|
|
1175
|
-
i || (i = !0, r && r(
|
|
1213
|
+
}, Ie = (e, t, n, r) => {
|
|
1214
|
+
const s = qn(e, t);
|
|
1215
|
+
let o = 0, i, c = (p) => {
|
|
1216
|
+
i || (i = !0, r && r(p));
|
|
1176
1217
|
};
|
|
1177
|
-
return new ReadableStream(
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1218
|
+
return new ReadableStream(
|
|
1219
|
+
{
|
|
1220
|
+
async pull(p) {
|
|
1221
|
+
try {
|
|
1222
|
+
const { done: f, value: l } = await s.next();
|
|
1223
|
+
if (f) {
|
|
1224
|
+
c(), p.close();
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
let h = l.byteLength;
|
|
1228
|
+
if (n) {
|
|
1229
|
+
let b = o += h;
|
|
1230
|
+
n(b);
|
|
1231
|
+
}
|
|
1232
|
+
p.enqueue(new Uint8Array(l));
|
|
1233
|
+
} catch (f) {
|
|
1234
|
+
throw c(f), f;
|
|
1189
1235
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1236
|
+
},
|
|
1237
|
+
cancel(p) {
|
|
1238
|
+
return c(p), s.return();
|
|
1193
1239
|
}
|
|
1194
1240
|
},
|
|
1195
|
-
|
|
1196
|
-
|
|
1241
|
+
{
|
|
1242
|
+
highWaterMark: 2
|
|
1197
1243
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
});
|
|
1201
|
-
}, qe = 64 * 1024, { isFunction: Z } = a, Bn = (({ Request: e, Response: t }) => ({
|
|
1244
|
+
);
|
|
1245
|
+
}, He = 64 * 1024, { isFunction: Z } = a, Hn = (({ Request: e, Response: t }) => ({
|
|
1202
1246
|
Request: e,
|
|
1203
1247
|
Response: t
|
|
1204
|
-
}))(a.global), {
|
|
1205
|
-
ReadableStream: Ie,
|
|
1206
|
-
TextEncoder: He
|
|
1207
|
-
} = a.global, Me = (e, ...t) => {
|
|
1248
|
+
}))(a.global), { ReadableStream: Me, TextEncoder: $e } = a.global, ze = (e, ...t) => {
|
|
1208
1249
|
try {
|
|
1209
1250
|
return !!e(...t);
|
|
1210
1251
|
} catch {
|
|
1211
1252
|
return !1;
|
|
1212
1253
|
}
|
|
1213
|
-
},
|
|
1214
|
-
e = a.merge.call(
|
|
1215
|
-
|
|
1216
|
-
|
|
1254
|
+
}, Mn = (e) => {
|
|
1255
|
+
e = a.merge.call(
|
|
1256
|
+
{
|
|
1257
|
+
skipUndefined: !0
|
|
1258
|
+
},
|
|
1259
|
+
Hn,
|
|
1260
|
+
e
|
|
1261
|
+
);
|
|
1217
1262
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Z(t) : typeof fetch == "function", o = Z(n), i = Z(r);
|
|
1218
1263
|
if (!s)
|
|
1219
1264
|
return !1;
|
|
1220
|
-
const c = s && Z(
|
|
1265
|
+
const c = s && Z(Me), p = s && (typeof $e == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new $e()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = o && c && ze(() => {
|
|
1221
1266
|
let u = !1;
|
|
1222
1267
|
const m = new n(S.origin, {
|
|
1223
|
-
body: new
|
|
1268
|
+
body: new Me(),
|
|
1224
1269
|
method: "POST",
|
|
1225
1270
|
get duplex() {
|
|
1226
1271
|
return u = !0, "half";
|
|
1227
1272
|
}
|
|
1228
1273
|
}).headers.has("Content-Type");
|
|
1229
1274
|
return u && !m;
|
|
1230
|
-
}), l = i && c &&
|
|
1275
|
+
}), l = i && c && ze(() => a.isReadableStream(new r("").body)), h = {
|
|
1231
1276
|
stream: l && ((u) => u.body)
|
|
1232
1277
|
};
|
|
1233
1278
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1234
|
-
!h[u] && (h[u] = (m,
|
|
1235
|
-
let
|
|
1236
|
-
if (
|
|
1237
|
-
return
|
|
1238
|
-
throw new y(
|
|
1279
|
+
!h[u] && (h[u] = (m, d) => {
|
|
1280
|
+
let R = m && m[u];
|
|
1281
|
+
if (R)
|
|
1282
|
+
return R.call(m);
|
|
1283
|
+
throw new y(
|
|
1284
|
+
`Response type '${u}' is not supported`,
|
|
1285
|
+
y.ERR_NOT_SUPPORT,
|
|
1286
|
+
d
|
|
1287
|
+
);
|
|
1239
1288
|
});
|
|
1240
1289
|
});
|
|
1241
1290
|
const b = async (u) => {
|
|
@@ -1251,81 +1300,87 @@ const at = (e) => {
|
|
|
1251
1300
|
if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
|
|
1252
1301
|
return u.byteLength;
|
|
1253
1302
|
if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
|
|
1254
|
-
return (await
|
|
1303
|
+
return (await p(u)).byteLength;
|
|
1255
1304
|
}, g = async (u, m) => {
|
|
1256
|
-
const
|
|
1257
|
-
return
|
|
1305
|
+
const d = a.toFiniteNumber(u.getContentLength());
|
|
1306
|
+
return d ?? b(m);
|
|
1258
1307
|
};
|
|
1259
1308
|
return async (u) => {
|
|
1260
1309
|
let {
|
|
1261
1310
|
url: m,
|
|
1262
|
-
method:
|
|
1263
|
-
data:
|
|
1311
|
+
method: d,
|
|
1312
|
+
data: R,
|
|
1264
1313
|
signal: x,
|
|
1265
|
-
cancelToken:
|
|
1314
|
+
cancelToken: E,
|
|
1266
1315
|
timeout: O,
|
|
1267
1316
|
onDownloadProgress: P,
|
|
1268
|
-
onUploadProgress:
|
|
1317
|
+
onUploadProgress: B,
|
|
1269
1318
|
responseType: _,
|
|
1270
1319
|
headers: le,
|
|
1271
1320
|
withCredentials: X = "same-origin",
|
|
1272
|
-
fetchOptions:
|
|
1273
|
-
} =
|
|
1321
|
+
fetchOptions: Ae
|
|
1322
|
+
} = lt(u), Te = t || fetch;
|
|
1274
1323
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1275
|
-
let G =
|
|
1276
|
-
|
|
1324
|
+
let G = kn(
|
|
1325
|
+
[x, E && E.toAbortSignal()],
|
|
1326
|
+
O
|
|
1327
|
+
), $ = null;
|
|
1328
|
+
const D = G && G.unsubscribe && (() => {
|
|
1277
1329
|
G.unsubscribe();
|
|
1278
1330
|
});
|
|
1279
|
-
let
|
|
1331
|
+
let Ce;
|
|
1280
1332
|
try {
|
|
1281
|
-
if (
|
|
1333
|
+
if (B && f && d !== "get" && d !== "head" && (Ce = await g(le, R)) !== 0) {
|
|
1282
1334
|
let L = new n(m, {
|
|
1283
1335
|
method: "POST",
|
|
1284
|
-
body:
|
|
1336
|
+
body: R,
|
|
1285
1337
|
duplex: "half"
|
|
1286
1338
|
}), I;
|
|
1287
|
-
if (a.isFormData(
|
|
1288
|
-
const [ue, Q] =
|
|
1289
|
-
|
|
1290
|
-
ne(
|
|
1339
|
+
if (a.isFormData(R) && (I = L.headers.get("content-type")) && le.setContentType(I), L.body) {
|
|
1340
|
+
const [ue, Q] = ke(
|
|
1341
|
+
Ce,
|
|
1342
|
+
ne(je(B))
|
|
1291
1343
|
);
|
|
1292
|
-
|
|
1344
|
+
R = Ie(L.body, He, ue, Q);
|
|
1293
1345
|
}
|
|
1294
1346
|
}
|
|
1295
1347
|
a.isString(X) || (X = X ? "include" : "omit");
|
|
1296
|
-
const A = o && "credentials" in n.prototype,
|
|
1297
|
-
...
|
|
1348
|
+
const A = o && "credentials" in n.prototype, xe = {
|
|
1349
|
+
...Ae,
|
|
1298
1350
|
signal: G,
|
|
1299
|
-
method:
|
|
1351
|
+
method: d.toUpperCase(),
|
|
1300
1352
|
headers: le.normalize().toJSON(),
|
|
1301
|
-
body:
|
|
1353
|
+
body: R,
|
|
1302
1354
|
duplex: "half",
|
|
1303
1355
|
credentials: A ? X : void 0
|
|
1304
1356
|
};
|
|
1305
|
-
$ = o && new n(m,
|
|
1306
|
-
let F = await (o ?
|
|
1307
|
-
const
|
|
1308
|
-
if (l && (P ||
|
|
1357
|
+
$ = o && new n(m, xe);
|
|
1358
|
+
let F = await (o ? Te($, Ae) : Te(m, xe));
|
|
1359
|
+
const _e = l && (_ === "stream" || _ === "response");
|
|
1360
|
+
if (l && (P || _e && D)) {
|
|
1309
1361
|
const L = {};
|
|
1310
|
-
["status", "statusText", "headers"].forEach((
|
|
1311
|
-
L[
|
|
1362
|
+
["status", "statusText", "headers"].forEach((Ne) => {
|
|
1363
|
+
L[Ne] = F[Ne];
|
|
1312
1364
|
});
|
|
1313
|
-
const I = a.toFiniteNumber(F.headers.get("content-length")), [ue, Q] = P &&
|
|
1365
|
+
const I = a.toFiniteNumber(F.headers.get("content-length")), [ue, Q] = P && ke(
|
|
1314
1366
|
I,
|
|
1315
|
-
ne(
|
|
1367
|
+
ne(je(P), !0)
|
|
1316
1368
|
) || [];
|
|
1317
1369
|
F = new r(
|
|
1318
|
-
|
|
1319
|
-
Q && Q(),
|
|
1370
|
+
Ie(F.body, He, ue, () => {
|
|
1371
|
+
Q && Q(), D && D();
|
|
1320
1372
|
}),
|
|
1321
1373
|
L
|
|
1322
1374
|
);
|
|
1323
1375
|
}
|
|
1324
1376
|
_ = _ || "text";
|
|
1325
|
-
let
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1377
|
+
let mt = await h[a.findKey(h, _) || "text"](
|
|
1378
|
+
F,
|
|
1379
|
+
u
|
|
1380
|
+
);
|
|
1381
|
+
return !_e && D && D(), await new Promise((L, I) => {
|
|
1382
|
+
at(L, I, {
|
|
1383
|
+
data: mt,
|
|
1329
1384
|
headers: C.from(F.headers),
|
|
1330
1385
|
status: F.status,
|
|
1331
1386
|
statusText: F.statusText,
|
|
@@ -1334,35 +1389,37 @@ const at = (e) => {
|
|
|
1334
1389
|
});
|
|
1335
1390
|
});
|
|
1336
1391
|
} catch (A) {
|
|
1337
|
-
throw
|
|
1338
|
-
new y(
|
|
1392
|
+
throw D && D(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
|
|
1393
|
+
new y(
|
|
1394
|
+
"Network Error",
|
|
1395
|
+
y.ERR_NETWORK,
|
|
1396
|
+
u,
|
|
1397
|
+
$,
|
|
1398
|
+
A && A.response
|
|
1399
|
+
),
|
|
1339
1400
|
{
|
|
1340
1401
|
cause: A.cause || A
|
|
1341
1402
|
}
|
|
1342
1403
|
) : y.from(A, A && A.code, u, $, A && A.response);
|
|
1343
1404
|
}
|
|
1344
1405
|
};
|
|
1345
|
-
},
|
|
1406
|
+
}, $n = /* @__PURE__ */ new Map(), ut = (e) => {
|
|
1346
1407
|
let t = e && e.env || {};
|
|
1347
|
-
const { fetch: n, Request: r, Response: s } = t, o = [
|
|
1348
|
-
|
|
1349
|
-
s,
|
|
1350
|
-
n
|
|
1351
|
-
];
|
|
1352
|
-
let i = o.length, c = i, d, f, l = jn;
|
|
1408
|
+
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
1409
|
+
let i = o.length, c = i, p, f, l = $n;
|
|
1353
1410
|
for (; c--; )
|
|
1354
|
-
|
|
1411
|
+
p = o[c], f = l.get(p), f === void 0 && l.set(p, f = c ? /* @__PURE__ */ new Map() : Mn(t)), l = f;
|
|
1355
1412
|
return f;
|
|
1356
1413
|
};
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1359
|
-
http:
|
|
1360
|
-
xhr:
|
|
1414
|
+
ut();
|
|
1415
|
+
const Oe = {
|
|
1416
|
+
http: sn,
|
|
1417
|
+
xhr: Dn,
|
|
1361
1418
|
fetch: {
|
|
1362
|
-
get:
|
|
1419
|
+
get: ut
|
|
1363
1420
|
}
|
|
1364
1421
|
};
|
|
1365
|
-
a.forEach(
|
|
1422
|
+
a.forEach(Oe, (e, t) => {
|
|
1366
1423
|
if (e) {
|
|
1367
1424
|
try {
|
|
1368
1425
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1371,8 +1428,8 @@ a.forEach(Se, (e, t) => {
|
|
|
1371
1428
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1372
1429
|
}
|
|
1373
1430
|
});
|
|
1374
|
-
const
|
|
1375
|
-
function
|
|
1431
|
+
const Je = (e) => `- ${e}`, zn = (e) => a.isFunction(e) || e === null || e === !1;
|
|
1432
|
+
function Jn(e, t) {
|
|
1376
1433
|
e = a.isArray(e) ? e : [e];
|
|
1377
1434
|
const { length: n } = e;
|
|
1378
1435
|
let r, s;
|
|
@@ -1380,7 +1437,7 @@ function In(e, t) {
|
|
|
1380
1437
|
for (let i = 0; i < n; i++) {
|
|
1381
1438
|
r = e[i];
|
|
1382
1439
|
let c;
|
|
1383
|
-
if (s = r, !
|
|
1440
|
+
if (s = r, !zn(r) && (s = Oe[(c = String(r)).toLowerCase()], s === void 0))
|
|
1384
1441
|
throw new y(`Unknown adapter '${c}'`);
|
|
1385
1442
|
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1386
1443
|
break;
|
|
@@ -1388,11 +1445,11 @@ function In(e, t) {
|
|
|
1388
1445
|
}
|
|
1389
1446
|
if (!s) {
|
|
1390
1447
|
const i = Object.entries(o).map(
|
|
1391
|
-
([
|
|
1448
|
+
([p, f]) => `adapter ${p} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1392
1449
|
);
|
|
1393
1450
|
let c = n ? i.length > 1 ? `since :
|
|
1394
|
-
` + i.map(
|
|
1395
|
-
`) : " " +
|
|
1451
|
+
` + i.map(Je).join(`
|
|
1452
|
+
`) : " " + Je(i[0]) : "as no adapter specified";
|
|
1396
1453
|
throw new y(
|
|
1397
1454
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1398
1455
|
"ERR_NOT_SUPPORT"
|
|
@@ -1400,50 +1457,46 @@ function In(e, t) {
|
|
|
1400
1457
|
}
|
|
1401
1458
|
return s;
|
|
1402
1459
|
}
|
|
1403
|
-
const
|
|
1460
|
+
const ft = {
|
|
1404
1461
|
/**
|
|
1405
1462
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1406
1463
|
* @type {Function}
|
|
1407
1464
|
*/
|
|
1408
|
-
getAdapter:
|
|
1465
|
+
getAdapter: Jn,
|
|
1409
1466
|
/**
|
|
1410
1467
|
* Exposes all known adapters
|
|
1411
1468
|
* @type {Object<string, Function|Object>}
|
|
1412
1469
|
*/
|
|
1413
|
-
adapters:
|
|
1470
|
+
adapters: Oe
|
|
1414
1471
|
};
|
|
1415
|
-
function
|
|
1472
|
+
function he(e) {
|
|
1416
1473
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1417
1474
|
throw new v(null, e);
|
|
1418
1475
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
e,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
e.transformResponse,
|
|
1433
|
-
r.response
|
|
1434
|
-
), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
|
|
1435
|
-
});
|
|
1476
|
+
function Ve(e) {
|
|
1477
|
+
return he(e), e.headers = C.from(e.headers), e.data = pe.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ft.getAdapter(e.adapter || K.adapter, e)(e).then(
|
|
1478
|
+
function(r) {
|
|
1479
|
+
return he(e), r.data = pe.call(e, e.transformResponse, r), r.headers = C.from(r.headers), r;
|
|
1480
|
+
},
|
|
1481
|
+
function(r) {
|
|
1482
|
+
return it(r) || (he(e), r && r.response && (r.response.data = pe.call(
|
|
1483
|
+
e,
|
|
1484
|
+
e.transformResponse,
|
|
1485
|
+
r.response
|
|
1486
|
+
), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
|
|
1487
|
+
}
|
|
1488
|
+
);
|
|
1436
1489
|
}
|
|
1437
|
-
const
|
|
1490
|
+
const dt = "1.13.6", ae = {};
|
|
1438
1491
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1439
1492
|
ae[e] = function(r) {
|
|
1440
1493
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1441
1494
|
};
|
|
1442
1495
|
});
|
|
1443
|
-
const
|
|
1496
|
+
const We = {};
|
|
1444
1497
|
ae.transitional = function(t, n, r) {
|
|
1445
1498
|
function s(o, i) {
|
|
1446
|
-
return "[Axios v" +
|
|
1499
|
+
return "[Axios v" + dt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1447
1500
|
}
|
|
1448
1501
|
return (o, i, c) => {
|
|
1449
1502
|
if (t === !1)
|
|
@@ -1451,7 +1504,7 @@ ae.transitional = function(t, n, r) {
|
|
|
1451
1504
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1452
1505
|
y.ERR_DEPRECATED
|
|
1453
1506
|
);
|
|
1454
|
-
return n && !
|
|
1507
|
+
return n && !We[i] && (We[i] = !0, console.warn(
|
|
1455
1508
|
s(
|
|
1456
1509
|
i,
|
|
1457
1510
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1462,7 +1515,7 @@ ae.transitional = function(t, n, r) {
|
|
|
1462
1515
|
ae.spelling = function(t) {
|
|
1463
1516
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1464
1517
|
};
|
|
1465
|
-
function
|
|
1518
|
+
function Vn(e, t, n) {
|
|
1466
1519
|
if (typeof e != "object")
|
|
1467
1520
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1468
1521
|
const r = Object.keys(e);
|
|
@@ -1470,9 +1523,12 @@ function Hn(e, t, n) {
|
|
|
1470
1523
|
for (; s-- > 0; ) {
|
|
1471
1524
|
const o = r[s], i = t[o];
|
|
1472
1525
|
if (i) {
|
|
1473
|
-
const c = e[o],
|
|
1474
|
-
if (
|
|
1475
|
-
throw new y(
|
|
1526
|
+
const c = e[o], p = c === void 0 || i(c, o, e);
|
|
1527
|
+
if (p !== !0)
|
|
1528
|
+
throw new y(
|
|
1529
|
+
"option " + o + " must be " + p,
|
|
1530
|
+
y.ERR_BAD_OPTION_VALUE
|
|
1531
|
+
);
|
|
1476
1532
|
continue;
|
|
1477
1533
|
}
|
|
1478
1534
|
if (n !== !0)
|
|
@@ -1480,14 +1536,14 @@ function Hn(e, t, n) {
|
|
|
1480
1536
|
}
|
|
1481
1537
|
}
|
|
1482
1538
|
const te = {
|
|
1483
|
-
assertOptions:
|
|
1539
|
+
assertOptions: Vn,
|
|
1484
1540
|
validators: ae
|
|
1485
1541
|
}, N = te.validators;
|
|
1486
1542
|
let j = class {
|
|
1487
1543
|
constructor(t) {
|
|
1488
1544
|
this.defaults = t || {}, this.interceptors = {
|
|
1489
|
-
request: new
|
|
1490
|
-
response: new
|
|
1545
|
+
request: new Be(),
|
|
1546
|
+
response: new Be()
|
|
1491
1547
|
};
|
|
1492
1548
|
}
|
|
1493
1549
|
/**
|
|
@@ -1518,46 +1574,52 @@ let j = class {
|
|
|
1518
1574
|
_request(t, n) {
|
|
1519
1575
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
|
|
1520
1576
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1521
|
-
r !== void 0 && te.assertOptions(
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1577
|
+
r !== void 0 && te.assertOptions(
|
|
1578
|
+
r,
|
|
1579
|
+
{
|
|
1580
|
+
silentJSONParsing: N.transitional(N.boolean),
|
|
1581
|
+
forcedJSONParsing: N.transitional(N.boolean),
|
|
1582
|
+
clarifyTimeoutError: N.transitional(N.boolean),
|
|
1583
|
+
legacyInterceptorReqResOrdering: N.transitional(N.boolean)
|
|
1584
|
+
},
|
|
1585
|
+
!1
|
|
1586
|
+
), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1527
1587
|
serialize: s
|
|
1528
|
-
} : te.assertOptions(
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1588
|
+
} : te.assertOptions(
|
|
1589
|
+
s,
|
|
1590
|
+
{
|
|
1591
|
+
encode: N.function,
|
|
1592
|
+
serialize: N.function
|
|
1593
|
+
},
|
|
1594
|
+
!0
|
|
1595
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), te.assertOptions(
|
|
1596
|
+
n,
|
|
1597
|
+
{
|
|
1598
|
+
baseUrl: N.spelling("baseURL"),
|
|
1599
|
+
withXsrfToken: N.spelling("withXSRFToken")
|
|
1600
|
+
},
|
|
1601
|
+
!0
|
|
1602
|
+
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1603
|
+
let i = o && a.merge(o.common, o[n.method]);
|
|
1604
|
+
o && a.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (u) => {
|
|
1605
|
+
delete o[u];
|
|
1606
|
+
}), n.headers = C.concat(i, o);
|
|
1545
1607
|
const c = [];
|
|
1546
|
-
let
|
|
1608
|
+
let p = !0;
|
|
1547
1609
|
this.interceptors.request.forEach(function(m) {
|
|
1548
1610
|
if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
|
|
1549
1611
|
return;
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1612
|
+
p = p && m.synchronous;
|
|
1613
|
+
const d = n.transitional || ge;
|
|
1614
|
+
d && d.legacyInterceptorReqResOrdering ? c.unshift(m.fulfilled, m.rejected) : c.push(m.fulfilled, m.rejected);
|
|
1553
1615
|
});
|
|
1554
1616
|
const f = [];
|
|
1555
1617
|
this.interceptors.response.forEach(function(m) {
|
|
1556
1618
|
f.push(m.fulfilled, m.rejected);
|
|
1557
1619
|
});
|
|
1558
1620
|
let l, h = 0, b;
|
|
1559
|
-
if (!
|
|
1560
|
-
const u = [
|
|
1621
|
+
if (!p) {
|
|
1622
|
+
const u = [Ve.bind(this), void 0];
|
|
1561
1623
|
for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); h < b; )
|
|
1562
1624
|
l = l.then(u[h++], u[h++]);
|
|
1563
1625
|
return l;
|
|
@@ -1568,13 +1630,13 @@ let j = class {
|
|
|
1568
1630
|
const u = c[h++], m = c[h++];
|
|
1569
1631
|
try {
|
|
1570
1632
|
g = u(g);
|
|
1571
|
-
} catch (
|
|
1572
|
-
m.call(this,
|
|
1633
|
+
} catch (d) {
|
|
1634
|
+
m.call(this, d);
|
|
1573
1635
|
break;
|
|
1574
1636
|
}
|
|
1575
1637
|
}
|
|
1576
1638
|
try {
|
|
1577
|
-
l =
|
|
1639
|
+
l = Ve.call(this, g);
|
|
1578
1640
|
} catch (u) {
|
|
1579
1641
|
return Promise.reject(u);
|
|
1580
1642
|
}
|
|
@@ -1584,35 +1646,39 @@ let j = class {
|
|
|
1584
1646
|
}
|
|
1585
1647
|
getUri(t) {
|
|
1586
1648
|
t = q(this.defaults, t);
|
|
1587
|
-
const n =
|
|
1588
|
-
return
|
|
1649
|
+
const n = ct(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1650
|
+
return st(n, t.params, t.paramsSerializer);
|
|
1589
1651
|
}
|
|
1590
1652
|
};
|
|
1591
1653
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1592
1654
|
j.prototype[t] = function(n, r) {
|
|
1593
|
-
return this.request(
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1655
|
+
return this.request(
|
|
1656
|
+
q(r || {}, {
|
|
1657
|
+
method: t,
|
|
1658
|
+
url: n,
|
|
1659
|
+
data: (r || {}).data
|
|
1660
|
+
})
|
|
1661
|
+
);
|
|
1598
1662
|
};
|
|
1599
1663
|
});
|
|
1600
1664
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1601
1665
|
function n(r) {
|
|
1602
1666
|
return function(o, i, c) {
|
|
1603
|
-
return this.request(
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1667
|
+
return this.request(
|
|
1668
|
+
q(c || {}, {
|
|
1669
|
+
method: t,
|
|
1670
|
+
headers: r ? {
|
|
1671
|
+
"Content-Type": "multipart/form-data"
|
|
1672
|
+
} : {},
|
|
1673
|
+
url: o,
|
|
1674
|
+
data: i
|
|
1675
|
+
})
|
|
1676
|
+
);
|
|
1611
1677
|
};
|
|
1612
1678
|
}
|
|
1613
1679
|
j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
|
|
1614
1680
|
});
|
|
1615
|
-
let
|
|
1681
|
+
let Wn = class pt {
|
|
1616
1682
|
constructor(t) {
|
|
1617
1683
|
if (typeof t != "function")
|
|
1618
1684
|
throw new TypeError("executor must be a function.");
|
|
@@ -1678,22 +1744,22 @@ let Mn = class ft {
|
|
|
1678
1744
|
static source() {
|
|
1679
1745
|
let t;
|
|
1680
1746
|
return {
|
|
1681
|
-
token: new
|
|
1747
|
+
token: new pt(function(s) {
|
|
1682
1748
|
t = s;
|
|
1683
1749
|
}),
|
|
1684
1750
|
cancel: t
|
|
1685
1751
|
};
|
|
1686
1752
|
}
|
|
1687
1753
|
};
|
|
1688
|
-
function
|
|
1754
|
+
function Kn(e) {
|
|
1689
1755
|
return function(n) {
|
|
1690
1756
|
return e.apply(null, n);
|
|
1691
1757
|
};
|
|
1692
1758
|
}
|
|
1693
|
-
function
|
|
1759
|
+
function vn(e) {
|
|
1694
1760
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1695
1761
|
}
|
|
1696
|
-
const
|
|
1762
|
+
const we = {
|
|
1697
1763
|
Continue: 100,
|
|
1698
1764
|
SwitchingProtocols: 101,
|
|
1699
1765
|
Processing: 102,
|
|
@@ -1764,69 +1830,69 @@ const be = {
|
|
|
1764
1830
|
SslHandshakeFailed: 525,
|
|
1765
1831
|
InvalidSslCertificate: 526
|
|
1766
1832
|
};
|
|
1767
|
-
Object.entries(
|
|
1768
|
-
|
|
1833
|
+
Object.entries(we).forEach(([e, t]) => {
|
|
1834
|
+
we[t] = e;
|
|
1769
1835
|
});
|
|
1770
|
-
function
|
|
1771
|
-
const t = new j(e), n =
|
|
1836
|
+
function ht(e) {
|
|
1837
|
+
const t = new j(e), n = Ke(j.prototype.request, t);
|
|
1772
1838
|
return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1773
|
-
return
|
|
1839
|
+
return ht(q(e, s));
|
|
1774
1840
|
}, n;
|
|
1775
1841
|
}
|
|
1776
|
-
const w =
|
|
1842
|
+
const w = ht(K);
|
|
1777
1843
|
w.Axios = j;
|
|
1778
1844
|
w.CanceledError = v;
|
|
1779
|
-
w.CancelToken =
|
|
1780
|
-
w.isCancel =
|
|
1781
|
-
w.VERSION =
|
|
1845
|
+
w.CancelToken = Wn;
|
|
1846
|
+
w.isCancel = it;
|
|
1847
|
+
w.VERSION = dt;
|
|
1782
1848
|
w.toFormData = ie;
|
|
1783
1849
|
w.AxiosError = y;
|
|
1784
1850
|
w.Cancel = w.CanceledError;
|
|
1785
1851
|
w.all = function(t) {
|
|
1786
1852
|
return Promise.all(t);
|
|
1787
1853
|
};
|
|
1788
|
-
w.spread =
|
|
1789
|
-
w.isAxiosError =
|
|
1854
|
+
w.spread = Kn;
|
|
1855
|
+
w.isAxiosError = vn;
|
|
1790
1856
|
w.mergeConfig = q;
|
|
1791
1857
|
w.AxiosHeaders = C;
|
|
1792
|
-
w.formToJSON = (e) =>
|
|
1793
|
-
w.getAdapter =
|
|
1794
|
-
w.HttpStatusCode =
|
|
1858
|
+
w.formToJSON = (e) => ot(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1859
|
+
w.getAdapter = ft.getAdapter;
|
|
1860
|
+
w.HttpStatusCode = we;
|
|
1795
1861
|
w.default = w;
|
|
1796
1862
|
const {
|
|
1797
|
-
Axios:
|
|
1798
|
-
AxiosError:
|
|
1799
|
-
CanceledError:
|
|
1800
|
-
isCancel:
|
|
1801
|
-
CancelToken:
|
|
1802
|
-
VERSION:
|
|
1803
|
-
all:
|
|
1804
|
-
Cancel:
|
|
1805
|
-
isAxiosError:
|
|
1806
|
-
spread:
|
|
1807
|
-
toFormData:
|
|
1808
|
-
AxiosHeaders:
|
|
1809
|
-
HttpStatusCode:
|
|
1810
|
-
formToJSON:
|
|
1811
|
-
getAdapter:
|
|
1812
|
-
mergeConfig:
|
|
1863
|
+
Axios: Zn,
|
|
1864
|
+
AxiosError: Yn,
|
|
1865
|
+
CanceledError: er,
|
|
1866
|
+
isCancel: tr,
|
|
1867
|
+
CancelToken: nr,
|
|
1868
|
+
VERSION: rr,
|
|
1869
|
+
all: sr,
|
|
1870
|
+
Cancel: or,
|
|
1871
|
+
isAxiosError: ir,
|
|
1872
|
+
spread: ar,
|
|
1873
|
+
toFormData: cr,
|
|
1874
|
+
AxiosHeaders: lr,
|
|
1875
|
+
HttpStatusCode: ur,
|
|
1876
|
+
formToJSON: fr,
|
|
1877
|
+
getAdapter: dr,
|
|
1878
|
+
mergeConfig: pr
|
|
1813
1879
|
} = w, ce = w;
|
|
1814
|
-
function
|
|
1880
|
+
function hr(e) {
|
|
1815
1881
|
ce.defaults.baseURL = e;
|
|
1816
1882
|
}
|
|
1817
|
-
function
|
|
1883
|
+
function mr(e) {
|
|
1818
1884
|
ce.defaults.headers.common.Authorization = `Bearer ${e}`;
|
|
1819
1885
|
}
|
|
1820
|
-
function
|
|
1886
|
+
function yr() {
|
|
1821
1887
|
ce.defaults.headers.common.Authorization = void 0;
|
|
1822
1888
|
}
|
|
1823
|
-
function
|
|
1889
|
+
function br(e) {
|
|
1824
1890
|
return ce.isAxiosError(e) ? e.response?.data.message : "Ошибка";
|
|
1825
1891
|
}
|
|
1826
1892
|
export {
|
|
1827
1893
|
ce as api,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1894
|
+
yr as deleteAuthHeader,
|
|
1895
|
+
br as handleError,
|
|
1896
|
+
mr as setAuthHeader,
|
|
1897
|
+
hr as setBaseURL
|
|
1832
1898
|
};
|