@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/es5.js +4661 -0
- package/api-services/i18n/es5.js +58 -0
- package/api-services/index.js +593 -611
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +847 -883
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +701 -715
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +882 -882
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +880 -880
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +473 -491
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +490 -508
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +4619 -0
- package/api-services/modules/file/index.js +942 -978
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +701 -715
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +651 -669
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1104 -1140
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +492 -510
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +698 -712
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +880 -880
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +490 -508
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +463 -481
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +880 -880
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +487 -505
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +881 -881
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +483 -501
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +490 -508
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +880 -880
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +880 -880
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +865 -901
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.js +12 -0
- package/common-info/es5.js +219 -0
- package/common-info/getIframeUrl/es5.js +18 -0
- package/common-info/getInfoFromUrl/es5.js +94 -0
- package/common-info/index.js +18 -18
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +2212 -0
- package/common-info/set-personal-info/index.js +172 -189
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/arr-tools/es5.js +14 -0
- package/common-tools/calc-text-width/es5.js +10 -0
- package/common-tools/date-format/es5.js +20 -0
- package/common-tools/es5.js +128 -0
- package/common-tools/extract-file-name/es5.js +2213 -0
- package/common-tools/extract-file-name/index.js +138 -155
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/es5.js +7 -0
- package/common-tools/get-url-params/es5.js +109 -0
- package/common-tools/handle-data/es5.js +170 -0
- package/common-tools/handle-data/index.js +28 -28
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/nest-tree-format/es5.js +58 -0
- package/common-tools/obj-tools/es5.js +15 -0
- package/common-tools/platform-tools/es5.js +24 -0
- package/common-tools/queue-promise/es5.js +15 -0
- package/common-tools/setHtmlMinWH/es5.js +8 -0
- package/common-tools/update-browser-title/es5.js +56 -0
- package/common-tools/update-fav-icon/es5.js +76 -0
- package/config/es5.js +17 -0
- package/create-api-service/check-token/es5.js +2307 -0
- package/create-api-service/check-token/index.js +158 -175
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +3949 -0
- package/create-api-service/i18n/es5.js +38 -0
- package/create-api-service/index.js +503 -521
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +35 -0
- package/create-api-service/sso/es5.js +2823 -0
- package/create-api-service/sso/index.js +309 -327
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2915 -0
- package/curring-http/index.js +285 -303
- package/curring-http/index.js.gz +0 -0
- package/dimple-canvas/es5.js +15 -0
- package/directive/auth/es5.js +96 -0
- package/directive/clickOutside/es5.js +87 -0
- package/directive/es5.js +23 -0
- package/directive/hoverInside/es5.js +61 -0
- package/directive/utils/es5.js +38 -0
- package/dom-check-in/es5.js +13 -0
- package/dom-watcher/es5.js +15 -0
- package/hooks/use-get-auth/es5.js +201 -0
- package/hooks/use-get-auth/index.js +22 -22
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/load-js/es5.js +15 -0
- package/nextTiken/es5.js +70 -0
- package/oss/es5.js +13 -0
- package/package.json +17 -4
- package/pinyin-first-character/es5.js +9313 -0
- package/pinyin-first-character/index.js +24 -24
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/es5.js +20 -0
- package/pure-image-src/es5.js +30 -0
- package/size-watcher/es5.js +35 -0
- package/style/es5.js +143 -0
- package/token-tools/es5.js +26 -0
- package/use-low-code/es5.js +117 -0
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
- package/vue/es5.js +9 -0
- package/webSocket-service/es5.js +122 -0
- package/with-install/es5.js +8 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { getConfig as Qe } from "@das-fed/upf-utils/config";
|
|
2
|
-
function
|
|
2
|
+
function Ce(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString: Ze } = Object.prototype, { getPrototypeOf: le } = Object, { iterator: K, toStringTag:
|
|
7
|
+
const { toString: Ze } = Object.prototype, { getPrototypeOf: le } = Object, { iterator: K, toStringTag: Ne } = Symbol, v = /* @__PURE__ */ ((e) => (t) => {
|
|
8
8
|
const n = Ze.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
10
|
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), X = (e) => (t) => typeof t === e, { isArray: D } = Array, q = X("undefined");
|
|
11
11
|
function Ye(e) {
|
|
12
12
|
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Pe = C("ArrayBuffer");
|
|
15
15
|
function et(e) {
|
|
16
16
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const tt = X("string"), A = X("function"),
|
|
19
|
+
const tt = X("string"), A = X("function"), Fe = X("number"), G = (e) => e !== null && typeof e == "object", nt = (e) => e === !0 || e === !1, z = (e) => {
|
|
20
20
|
if (v(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const t = le(e);
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(K in e);
|
|
24
24
|
}, rt = C("Date"), st = C("File"), ot = C("Blob"), it = C("FileList"), at = (e) => G(e) && A(e.pipe), ct = (e) => {
|
|
25
25
|
let t;
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = v(e)) === "formdata" || // detect form-data instance
|
|
@@ -40,7 +40,7 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
40
40
|
c = o[r], t.call(null, e[c], c, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function _e(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const n = Object.keys(e);
|
|
46
46
|
let r = n.length, s;
|
|
@@ -49,18 +49,18 @@ function Fe(e, t) {
|
|
|
49
49
|
return s;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
52
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ue = (e) => !q(e) && e !== U;
|
|
53
53
|
function re() {
|
|
54
|
-
const { caseless: e } =
|
|
55
|
-
const o = e &&
|
|
56
|
-
|
|
54
|
+
const { caseless: e } = Ue(this) && this || {}, t = {}, n = (r, s) => {
|
|
55
|
+
const o = e && _e(t, s) || s;
|
|
56
|
+
z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(r) ? t[o] = re({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
|
|
57
57
|
};
|
|
58
58
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
59
59
|
arguments[r] && I(arguments[r], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
62
|
const mt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
63
|
-
n && A(s) ? e[o] =
|
|
63
|
+
n && A(s) ? e[o] = Ce(s, n) : e[o] = s;
|
|
64
64
|
}, { allOwnKeys: r }), e), yt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), bt = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
@@ -83,7 +83,7 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
83
83
|
if (!e) return null;
|
|
84
84
|
if (D(e)) return e;
|
|
85
85
|
let t = e.length;
|
|
86
|
-
if (!
|
|
86
|
+
if (!Fe(t)) return null;
|
|
87
87
|
const n = new Array(t);
|
|
88
88
|
for (; t-- > 0; )
|
|
89
89
|
n[t] = e[t];
|
|
@@ -106,14 +106,14 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
106
106
|
function(n, r, s) {
|
|
107
107
|
return r.toUpperCase() + s;
|
|
108
108
|
}
|
|
109
|
-
),
|
|
109
|
+
), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xt = C("RegExp"), Le = (e, t) => {
|
|
110
110
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
111
|
I(n, (s, o) => {
|
|
112
112
|
let i;
|
|
113
113
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
114
114
|
}), Object.defineProperties(e, r);
|
|
115
115
|
}, Ct = (e) => {
|
|
116
|
-
|
|
116
|
+
Le(e, (t, n) => {
|
|
117
117
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
118
|
return !1;
|
|
119
119
|
const r = e[n];
|
|
@@ -137,7 +137,7 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
137
137
|
}, Pt = () => {
|
|
138
138
|
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
139
139
|
function _t(e) {
|
|
140
|
-
return !!(e && A(e.append) && e[
|
|
140
|
+
return !!(e && A(e.append) && e[Ne] === "FormData" && e[K]);
|
|
141
141
|
}
|
|
142
142
|
const Ut = (e) => {
|
|
143
143
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -156,24 +156,24 @@ const Ut = (e) => {
|
|
|
156
156
|
return r;
|
|
157
157
|
};
|
|
158
158
|
return n(e, 0);
|
|
159
|
-
}, Lt = C("AsyncFunction"), Bt = (e) => e && (G(e) || A(e)) && A(e.then) && A(e.catch),
|
|
159
|
+
}, Lt = C("AsyncFunction"), Bt = (e) => e && (G(e) || A(e)) && A(e.then) && A(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
160
160
|
s === U && o === n && r.length && r.shift()();
|
|
161
161
|
}, !1), (s) => {
|
|
162
162
|
r.push(s), U.postMessage(n, "*");
|
|
163
163
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
164
164
|
typeof setImmediate == "function",
|
|
165
165
|
A(U.postMessage)
|
|
166
|
-
), Dt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick ||
|
|
166
|
+
), Dt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || Be, kt = (e) => e != null && A(e[K]), a = {
|
|
167
167
|
isArray: D,
|
|
168
|
-
isArrayBuffer:
|
|
168
|
+
isArrayBuffer: Pe,
|
|
169
169
|
isBuffer: Ye,
|
|
170
170
|
isFormData: ct,
|
|
171
171
|
isArrayBufferView: et,
|
|
172
172
|
isString: tt,
|
|
173
|
-
isNumber:
|
|
173
|
+
isNumber: Fe,
|
|
174
174
|
isBoolean: nt,
|
|
175
175
|
isObject: G,
|
|
176
|
-
isPlainObject:
|
|
176
|
+
isPlainObject: z,
|
|
177
177
|
isReadableStream: ut,
|
|
178
178
|
isRequest: ft,
|
|
179
179
|
isResponse: dt,
|
|
@@ -202,23 +202,23 @@ const Ut = (e) => {
|
|
|
202
202
|
forEachEntry: St,
|
|
203
203
|
matchAll: Ot,
|
|
204
204
|
isHTMLForm: Tt,
|
|
205
|
-
hasOwnProperty:
|
|
206
|
-
hasOwnProp:
|
|
205
|
+
hasOwnProperty: he,
|
|
206
|
+
hasOwnProp: he,
|
|
207
207
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
208
|
-
reduceDescriptors:
|
|
208
|
+
reduceDescriptors: Le,
|
|
209
209
|
freezeMethods: Ct,
|
|
210
210
|
toObjectSet: Nt,
|
|
211
211
|
toCamelCase: At,
|
|
212
212
|
noop: Pt,
|
|
213
213
|
toFiniteNumber: Ft,
|
|
214
|
-
findKey:
|
|
214
|
+
findKey: _e,
|
|
215
215
|
global: U,
|
|
216
|
-
isContextDefined:
|
|
216
|
+
isContextDefined: Ue,
|
|
217
217
|
isSpecCompliantForm: _t,
|
|
218
218
|
toJSONObject: Ut,
|
|
219
219
|
isAsyncFn: Lt,
|
|
220
220
|
isThenable: Bt,
|
|
221
|
-
setImmediate:
|
|
221
|
+
setImmediate: Be,
|
|
222
222
|
asap: Dt,
|
|
223
223
|
isIterable: kt
|
|
224
224
|
};
|
|
@@ -246,7 +246,7 @@ a.inherits(m, Error, {
|
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const
|
|
249
|
+
const De = m.prototype, ke = {};
|
|
250
250
|
[
|
|
251
251
|
"ERR_BAD_OPTION_VALUE",
|
|
252
252
|
"ERR_BAD_OPTION",
|
|
@@ -262,12 +262,12 @@ const Be = m.prototype, De = {};
|
|
|
262
262
|
"ERR_INVALID_URL"
|
|
263
263
|
// eslint-disable-next-line func-names
|
|
264
264
|
].forEach((e) => {
|
|
265
|
-
|
|
265
|
+
ke[e] = { value: e };
|
|
266
266
|
});
|
|
267
|
-
Object.defineProperties(m,
|
|
268
|
-
Object.defineProperty(
|
|
267
|
+
Object.defineProperties(m, ke);
|
|
268
|
+
Object.defineProperty(De, "isAxiosError", { value: !0 });
|
|
269
269
|
m.from = (e, t, n, r, s, o) => {
|
|
270
|
-
const i = Object.create(
|
|
270
|
+
const i = Object.create(De);
|
|
271
271
|
return a.toFlatObject(e, i, function(f) {
|
|
272
272
|
return f !== Error.prototype;
|
|
273
273
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -276,12 +276,12 @@ const jt = null;
|
|
|
276
276
|
function se(e) {
|
|
277
277
|
return a.isPlainObject(e) || a.isArray(e);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function je(e) {
|
|
280
280
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function me(e, t, n) {
|
|
283
283
|
return e ? e.concat(t).map(function(s, o) {
|
|
284
|
-
return s =
|
|
284
|
+
return s = je(s), !n && o ? "[" + s + "]" : s;
|
|
285
285
|
}).join(n ? "." : "") : t;
|
|
286
286
|
}
|
|
287
287
|
function qt(e) {
|
|
@@ -319,15 +319,15 @@ function Q(e, t, n) {
|
|
|
319
319
|
if (a.endsWith(y, "{}"))
|
|
320
320
|
y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
|
|
321
321
|
else if (a.isArray(d) && qt(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (w = a.toArray(d)))
|
|
322
|
-
return y =
|
|
322
|
+
return y = je(y), w.forEach(function(S, P) {
|
|
323
323
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
324
324
|
// eslint-disable-next-line no-nested-ternary
|
|
325
|
-
i === !0 ?
|
|
325
|
+
i === !0 ? me([y], P, o) : i === null ? y : y + "[]",
|
|
326
326
|
l(S)
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
329
329
|
}
|
|
330
|
-
return se(d) ? !0 : (t.append(
|
|
330
|
+
return se(d) ? !0 : (t.append(me(h, y, o), l(d)), !1);
|
|
331
331
|
}
|
|
332
332
|
const p = [], b = Object.assign(It, {
|
|
333
333
|
defaultVisitor: u,
|
|
@@ -353,7 +353,7 @@ function Q(e, t, n) {
|
|
|
353
353
|
throw new TypeError("data must be an object");
|
|
354
354
|
return R(e), t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function ye(e) {
|
|
357
357
|
const t = {
|
|
358
358
|
"!": "%21",
|
|
359
359
|
"'": "%27",
|
|
@@ -370,25 +370,25 @@ function me(e) {
|
|
|
370
370
|
function ue(e, t) {
|
|
371
371
|
this._pairs = [], e && Q(e, this, t);
|
|
372
372
|
}
|
|
373
|
-
const
|
|
374
|
-
|
|
373
|
+
const qe = ue.prototype;
|
|
374
|
+
qe.append = function(t, n) {
|
|
375
375
|
this._pairs.push([t, n]);
|
|
376
376
|
};
|
|
377
|
-
|
|
377
|
+
qe.toString = function(t) {
|
|
378
378
|
const n = t ? function(r) {
|
|
379
|
-
return t.call(this, r,
|
|
380
|
-
} :
|
|
379
|
+
return t.call(this, r, ye);
|
|
380
|
+
} : ye;
|
|
381
381
|
return this._pairs.map(function(s) {
|
|
382
382
|
return n(s[0]) + "=" + n(s[1]);
|
|
383
383
|
}, "").join("&");
|
|
384
384
|
};
|
|
385
|
-
function
|
|
385
|
+
function Mt(e) {
|
|
386
386
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ie(e, t, n) {
|
|
389
389
|
if (!t)
|
|
390
390
|
return e;
|
|
391
|
-
const r = n && n.encode ||
|
|
391
|
+
const r = n && n.encode || Mt;
|
|
392
392
|
a.isFunction(n) && (n = {
|
|
393
393
|
serialize: n
|
|
394
394
|
});
|
|
@@ -400,7 +400,7 @@ function qe(e, t, n) {
|
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class be {
|
|
404
404
|
constructor() {
|
|
405
405
|
this.handlers = [];
|
|
406
406
|
}
|
|
@@ -454,29 +454,29 @@ class ye {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const Me = {
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
461
|
-
},
|
|
461
|
+
}, Ht = typeof URLSearchParams < "u" ? URLSearchParams : ue, zt = typeof FormData < "u" ? FormData : null, Jt = typeof Blob < "u" ? Blob : null, Vt = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
|
-
URLSearchParams:
|
|
465
|
-
FormData:
|
|
466
|
-
Blob:
|
|
464
|
+
URLSearchParams: Ht,
|
|
465
|
+
FormData: zt,
|
|
466
|
+
Blob: Jt
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
}, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0,
|
|
469
|
+
}, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, $t = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Wt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
470
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kt = fe && window.location.href || "http://localhost", vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
472
|
hasBrowserEnv: fe,
|
|
473
|
-
hasStandardBrowserEnv:
|
|
473
|
+
hasStandardBrowserEnv: $t,
|
|
474
474
|
hasStandardBrowserWebWorkerEnv: Wt,
|
|
475
475
|
navigator: oe,
|
|
476
476
|
origin: Kt
|
|
477
477
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
478
478
|
...vt,
|
|
479
|
-
...
|
|
479
|
+
...Vt
|
|
480
480
|
};
|
|
481
481
|
function Xt(e, t) {
|
|
482
482
|
return Q(e, new O.classes.URLSearchParams(), Object.assign({
|
|
@@ -520,10 +520,10 @@ function Zt(e, t, n) {
|
|
|
520
520
|
if (r.name !== "SyntaxError")
|
|
521
521
|
throw r;
|
|
522
522
|
}
|
|
523
|
-
return (
|
|
523
|
+
return (0, JSON.stringify)(e);
|
|
524
524
|
}
|
|
525
|
-
const
|
|
526
|
-
transitional:
|
|
525
|
+
const M = {
|
|
526
|
+
transitional: Me,
|
|
527
527
|
adapter: ["xhr", "http", "fetch"],
|
|
528
528
|
transformRequest: [function(t, n) {
|
|
529
529
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
@@ -551,7 +551,7 @@ const H = {
|
|
|
551
551
|
return o || s ? (n.setContentType("application/json", !1), Zt(t)) : t;
|
|
552
552
|
}],
|
|
553
553
|
transformResponse: [function(t) {
|
|
554
|
-
const n = this.transitional ||
|
|
554
|
+
const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
555
555
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
556
556
|
return t;
|
|
557
557
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -589,7 +589,7 @@ const H = {
|
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
592
|
-
|
|
592
|
+
M.headers[e] = {};
|
|
593
593
|
});
|
|
594
594
|
const Yt = a.toObjectSet([
|
|
595
595
|
"age",
|
|
@@ -616,12 +616,12 @@ const Yt = a.toObjectSet([
|
|
|
616
616
|
`).forEach(function(i) {
|
|
617
617
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Yt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
618
618
|
}), t;
|
|
619
|
-
},
|
|
619
|
+
}, we = Symbol("internals");
|
|
620
620
|
function j(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
623
|
+
function J(e) {
|
|
624
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
|
|
625
625
|
}
|
|
626
626
|
function tn(e) {
|
|
627
627
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -655,7 +655,7 @@ function sn(e, t) {
|
|
|
655
655
|
});
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
class x {
|
|
659
659
|
constructor(t) {
|
|
660
660
|
t && this.set(t);
|
|
661
661
|
}
|
|
@@ -666,7 +666,7 @@ let x = class {
|
|
|
666
666
|
if (!u)
|
|
667
667
|
throw new Error("header name must be a non-empty string");
|
|
668
668
|
const p = a.findKey(s, u);
|
|
669
|
-
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] =
|
|
669
|
+
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] = J(c));
|
|
670
670
|
}
|
|
671
671
|
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
672
672
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -734,11 +734,11 @@ let x = class {
|
|
|
734
734
|
return a.forEach(this, (s, o) => {
|
|
735
735
|
const i = a.findKey(r, o);
|
|
736
736
|
if (i) {
|
|
737
|
-
n[i] =
|
|
737
|
+
n[i] = J(s), delete n[o];
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
const c = t ? rn(o) : String(o).trim();
|
|
741
|
-
c !== o && delete n[o], n[c] =
|
|
741
|
+
c !== o && delete n[o], n[c] = J(s), r[c] = !0;
|
|
742
742
|
}), this;
|
|
743
743
|
}
|
|
744
744
|
concat(...t) {
|
|
@@ -771,7 +771,7 @@ let x = class {
|
|
|
771
771
|
return n.forEach((s) => r.set(s)), r;
|
|
772
772
|
}
|
|
773
773
|
static accessor(t) {
|
|
774
|
-
const r = (this[
|
|
774
|
+
const r = (this[we] = this[we] = {
|
|
775
775
|
accessors: {}
|
|
776
776
|
}).accessors, s = this.prototype;
|
|
777
777
|
function o(i) {
|
|
@@ -780,7 +780,7 @@ let x = class {
|
|
|
780
780
|
}
|
|
781
781
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
782
782
|
}
|
|
783
|
-
}
|
|
783
|
+
}
|
|
784
784
|
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
785
785
|
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
786
786
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
@@ -793,13 +793,13 @@ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
|
793
793
|
});
|
|
794
794
|
a.freezeMethods(x);
|
|
795
795
|
function te(e, t) {
|
|
796
|
-
const n = this ||
|
|
796
|
+
const n = this || M, r = t || n, s = x.from(r.headers);
|
|
797
797
|
let o = r.data;
|
|
798
798
|
return a.forEach(e, function(c) {
|
|
799
799
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
800
800
|
}), s.normalize(), o;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function ze(e) {
|
|
803
803
|
return !!(e && e.__CANCEL__);
|
|
804
804
|
}
|
|
805
805
|
function k(e, t, n) {
|
|
@@ -808,7 +808,7 @@ function k(e, t, n) {
|
|
|
808
808
|
a.inherits(k, m, {
|
|
809
809
|
__CANCEL__: !0
|
|
810
810
|
});
|
|
811
|
-
function
|
|
811
|
+
function Je(e, t, n) {
|
|
812
812
|
const r = n.config.validateStatus;
|
|
813
813
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
814
814
|
"Request failed with status code " + n.status,
|
|
@@ -850,7 +850,7 @@ function cn(e, t) {
|
|
|
850
850
|
}, r - p)));
|
|
851
851
|
}, () => s && i(s)];
|
|
852
852
|
}
|
|
853
|
-
const
|
|
853
|
+
const $ = (e, t, n = 3) => {
|
|
854
854
|
let r = 0;
|
|
855
855
|
const s = an(50, 250);
|
|
856
856
|
return cn((o) => {
|
|
@@ -869,14 +869,14 @@ const V = (e, t, n = 3) => {
|
|
|
869
869
|
};
|
|
870
870
|
e(p);
|
|
871
871
|
}, n);
|
|
872
|
-
},
|
|
872
|
+
}, Ee = (e, t) => {
|
|
873
873
|
const n = e != null;
|
|
874
874
|
return [(r) => t[0]({
|
|
875
875
|
lengthComputable: n,
|
|
876
876
|
total: e,
|
|
877
877
|
loaded: r
|
|
878
878
|
}), t[1]];
|
|
879
|
-
},
|
|
879
|
+
}, Re = (e) => (...t) => a.asap(() => e(...t)), ln = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
880
880
|
new URL(O.origin),
|
|
881
881
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
882
882
|
) : () => !0, un = O.hasStandardBrowserEnv ? (
|
|
@@ -912,11 +912,11 @@ function fn(e) {
|
|
|
912
912
|
function dn(e, t) {
|
|
913
913
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function Ve(e, t, n) {
|
|
916
916
|
let r = !fn(t);
|
|
917
917
|
return e && (r || n == !1) ? dn(e, t) : t;
|
|
918
918
|
}
|
|
919
|
-
const
|
|
919
|
+
const ge = (e) => e instanceof x ? { ...e } : e;
|
|
920
920
|
function B(e, t) {
|
|
921
921
|
t = t || {};
|
|
922
922
|
const n = {};
|
|
@@ -974,17 +974,17 @@ function B(e, t) {
|
|
|
974
974
|
socketPath: i,
|
|
975
975
|
responseEncoding: i,
|
|
976
976
|
validateStatus: c,
|
|
977
|
-
headers: (l, u, p) => s(
|
|
977
|
+
headers: (l, u, p) => s(ge(l), ge(u), p, !0)
|
|
978
978
|
};
|
|
979
979
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
980
980
|
const p = f[u] || s, b = p(e[u], t[u], u);
|
|
981
981
|
a.isUndefined(b) && p !== c || (n[u] = b);
|
|
982
982
|
}), n;
|
|
983
983
|
}
|
|
984
|
-
const
|
|
984
|
+
const $e = (e) => {
|
|
985
985
|
const t = B({}, e);
|
|
986
986
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
987
|
-
t.headers = i = x.from(i), t.url =
|
|
987
|
+
t.headers = i = x.from(i), t.url = Ie(Ve(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
988
988
|
"Authorization",
|
|
989
989
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
990
990
|
);
|
|
@@ -1004,7 +1004,7 @@ const Je = (e) => {
|
|
|
1004
1004
|
return t;
|
|
1005
1005
|
}, pn = typeof XMLHttpRequest < "u", hn = pn && function(e) {
|
|
1006
1006
|
return new Promise(function(n, r) {
|
|
1007
|
-
const s =
|
|
1007
|
+
const s = $e(e);
|
|
1008
1008
|
let o = s.data;
|
|
1009
1009
|
const i = x.from(s.headers).normalize();
|
|
1010
1010
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, p, b, R, d;
|
|
@@ -1026,7 +1026,7 @@ const Je = (e) => {
|
|
|
1026
1026
|
config: e,
|
|
1027
1027
|
request: h
|
|
1028
1028
|
};
|
|
1029
|
-
|
|
1029
|
+
Je(function(_) {
|
|
1030
1030
|
n(_), y();
|
|
1031
1031
|
}, function(_) {
|
|
1032
1032
|
r(_), y();
|
|
@@ -1040,7 +1040,7 @@ const Je = (e) => {
|
|
|
1040
1040
|
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1041
1041
|
}, h.ontimeout = function() {
|
|
1042
1042
|
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1043
|
-
const T = s.transitional ||
|
|
1043
|
+
const T = s.transitional || Me;
|
|
1044
1044
|
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1045
1045
|
P,
|
|
1046
1046
|
T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1049,7 +1049,7 @@ const Je = (e) => {
|
|
|
1049
1049
|
)), h = null;
|
|
1050
1050
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, T) {
|
|
1051
1051
|
h.setRequestHeader(T, P);
|
|
1052
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, d] =
|
|
1052
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, d] = $(l, !0), h.addEventListener("progress", b)), f && h.upload && ([p, R] = $(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (S) => {
|
|
1053
1053
|
h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
|
|
1054
1054
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1055
1055
|
const g = on(s.url);
|
|
@@ -1110,7 +1110,7 @@ const Je = (e) => {
|
|
|
1110
1110
|
} finally {
|
|
1111
1111
|
await t.cancel();
|
|
1112
1112
|
}
|
|
1113
|
-
},
|
|
1113
|
+
}, Se = (e, t, n, r) => {
|
|
1114
1114
|
const s = bn(e, t);
|
|
1115
1115
|
let o = 0, i, c = (f) => {
|
|
1116
1116
|
i || (i = !0, r && r(f));
|
|
@@ -1139,13 +1139,13 @@ const Je = (e) => {
|
|
|
1139
1139
|
}, {
|
|
1140
1140
|
highWaterMark: 2
|
|
1141
1141
|
});
|
|
1142
|
-
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1142
|
+
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = Z && typeof ReadableStream == "function", En = Z && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
|
|
1143
1143
|
try {
|
|
1144
1144
|
return !!e(...t);
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
1148
|
-
}, Rn =
|
|
1148
|
+
}, Rn = We && Ke(() => {
|
|
1149
1149
|
let e = !1;
|
|
1150
1150
|
const t = new Request(O.origin, {
|
|
1151
1151
|
body: new ReadableStream(),
|
|
@@ -1155,7 +1155,7 @@ const Je = (e) => {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}).headers.has("Content-Type");
|
|
1157
1157
|
return e && !t;
|
|
1158
|
-
}),
|
|
1158
|
+
}), Oe = 64 * 1024, ie = We && Ke(() => a.isReadableStream(new Response("").body)), W = {
|
|
1159
1159
|
stream: ie && ((e) => e.body)
|
|
1160
1160
|
};
|
|
1161
1161
|
Z && ((e) => {
|
|
@@ -1196,7 +1196,7 @@ const gn = async (e) => {
|
|
|
1196
1196
|
headers: u,
|
|
1197
1197
|
withCredentials: p = "same-origin",
|
|
1198
1198
|
fetchOptions: b
|
|
1199
|
-
} =
|
|
1199
|
+
} = $e(e);
|
|
1200
1200
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1201
1201
|
let R = mn([s, o && o.toAbortSignal()], i), d;
|
|
1202
1202
|
const y = R && R.unsubscribe && (() => {
|
|
@@ -1211,11 +1211,11 @@ const gn = async (e) => {
|
|
|
1211
1211
|
duplex: "half"
|
|
1212
1212
|
}), F;
|
|
1213
1213
|
if (a.isFormData(r) && (F = T.headers.get("content-type")) && u.setContentType(F), T.body) {
|
|
1214
|
-
const [_,
|
|
1214
|
+
const [_, H] = Ee(
|
|
1215
1215
|
h,
|
|
1216
|
-
|
|
1216
|
+
$(Re(f))
|
|
1217
1217
|
);
|
|
1218
|
-
r =
|
|
1218
|
+
r = Se(T.body, Oe, _, H);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
a.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -1233,16 +1233,16 @@ const gn = async (e) => {
|
|
|
1233
1233
|
const S = ie && (l === "stream" || l === "response");
|
|
1234
1234
|
if (ie && (c || S && y)) {
|
|
1235
1235
|
const T = {};
|
|
1236
|
-
["status", "statusText", "headers"].forEach((
|
|
1237
|
-
T[
|
|
1236
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
1237
|
+
T[pe] = g[pe];
|
|
1238
1238
|
});
|
|
1239
|
-
const F = a.toFiniteNumber(g.headers.get("content-length")), [_,
|
|
1239
|
+
const F = a.toFiniteNumber(g.headers.get("content-length")), [_, H] = c && Ee(
|
|
1240
1240
|
F,
|
|
1241
|
-
|
|
1241
|
+
$(Re(c), !0)
|
|
1242
1242
|
) || [];
|
|
1243
1243
|
g = new Response(
|
|
1244
|
-
|
|
1245
|
-
|
|
1244
|
+
Se(g.body, Oe, _, () => {
|
|
1245
|
+
H && H(), y && y();
|
|
1246
1246
|
}),
|
|
1247
1247
|
T
|
|
1248
1248
|
);
|
|
@@ -1250,7 +1250,7 @@ const gn = async (e) => {
|
|
|
1250
1250
|
l = l || "text";
|
|
1251
1251
|
let P = await W[a.findKey(W, l) || "text"](g, e);
|
|
1252
1252
|
return !S && y && y(), await new Promise((T, F) => {
|
|
1253
|
-
|
|
1253
|
+
Je(T, F, {
|
|
1254
1254
|
data: P,
|
|
1255
1255
|
headers: x.from(g.headers),
|
|
1256
1256
|
status: g.status,
|
|
@@ -1281,7 +1281,7 @@ a.forEach(ae, (e, t) => {
|
|
|
1281
1281
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
|
-
const
|
|
1284
|
+
const Te = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !1, ve = {
|
|
1285
1285
|
getAdapter: (e) => {
|
|
1286
1286
|
e = a.isArray(e) ? e : [e];
|
|
1287
1287
|
const { length: t } = e;
|
|
@@ -1301,8 +1301,8 @@ const Oe = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1301
1301
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1302
1302
|
);
|
|
1303
1303
|
let i = t ? o.length > 1 ? `since :
|
|
1304
|
-
` + o.map(
|
|
1305
|
-
`) : " " +
|
|
1304
|
+
` + o.map(Te).join(`
|
|
1305
|
+
`) : " " + Te(o[0]) : "as no adapter specified";
|
|
1306
1306
|
throw new m(
|
|
1307
1307
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1308
1308
|
"ERR_NOT_SUPPORT"
|
|
@@ -1316,34 +1316,34 @@ function ne(e) {
|
|
|
1316
1316
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1317
1317
|
throw new k(null, e);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Ae(e) {
|
|
1320
1320
|
return ne(e), e.headers = x.from(e.headers), e.data = te.call(
|
|
1321
1321
|
e,
|
|
1322
1322
|
e.transformRequest
|
|
1323
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1323
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ve.getAdapter(e.adapter || M.adapter)(e).then(function(r) {
|
|
1324
1324
|
return ne(e), r.data = te.call(
|
|
1325
1325
|
e,
|
|
1326
1326
|
e.transformResponse,
|
|
1327
1327
|
r
|
|
1328
1328
|
), r.headers = x.from(r.headers), r;
|
|
1329
1329
|
}, function(r) {
|
|
1330
|
-
return
|
|
1330
|
+
return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1331
1331
|
e,
|
|
1332
1332
|
e.transformResponse,
|
|
1333
1333
|
r.response
|
|
1334
1334
|
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
|
-
const
|
|
1337
|
+
const Xe = "1.10.0", Y = {};
|
|
1338
1338
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1339
1339
|
Y[e] = function(r) {
|
|
1340
1340
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1341
1341
|
};
|
|
1342
1342
|
});
|
|
1343
|
-
const
|
|
1343
|
+
const xe = {};
|
|
1344
1344
|
Y.transitional = function(t, n, r) {
|
|
1345
1345
|
function s(o, i) {
|
|
1346
|
-
return "[Axios v" +
|
|
1346
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1347
1347
|
}
|
|
1348
1348
|
return (o, i, c) => {
|
|
1349
1349
|
if (t === !1)
|
|
@@ -1351,7 +1351,7 @@ Y.transitional = function(t, n, r) {
|
|
|
1351
1351
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1352
1352
|
m.ERR_DEPRECATED
|
|
1353
1353
|
);
|
|
1354
|
-
return n && !
|
|
1354
|
+
return n && !xe[i] && (xe[i] = !0), t ? t(o, i, c) : !0;
|
|
1355
1355
|
};
|
|
1356
1356
|
};
|
|
1357
1357
|
Y.spelling = function(t) {
|
|
@@ -1374,15 +1374,15 @@ function An(e, t, n) {
|
|
|
1374
1374
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
const
|
|
1377
|
+
const V = {
|
|
1378
1378
|
assertOptions: An,
|
|
1379
1379
|
validators: Y
|
|
1380
|
-
}, N =
|
|
1381
|
-
|
|
1380
|
+
}, N = V.validators;
|
|
1381
|
+
class L {
|
|
1382
1382
|
constructor(t) {
|
|
1383
1383
|
this.defaults = t || {}, this.interceptors = {
|
|
1384
|
-
request: new
|
|
1385
|
-
response: new
|
|
1384
|
+
request: new be(),
|
|
1385
|
+
response: new be()
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
/**
|
|
@@ -1413,16 +1413,16 @@ let L = class {
|
|
|
1413
1413
|
_request(t, n) {
|
|
1414
1414
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1415
1415
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1416
|
-
r !== void 0 &&
|
|
1416
|
+
r !== void 0 && V.assertOptions(r, {
|
|
1417
1417
|
silentJSONParsing: N.transitional(N.boolean),
|
|
1418
1418
|
forcedJSONParsing: N.transitional(N.boolean),
|
|
1419
1419
|
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1420
1420
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1421
1421
|
serialize: s
|
|
1422
|
-
} :
|
|
1422
|
+
} : V.assertOptions(s, {
|
|
1423
1423
|
encode: N.function,
|
|
1424
1424
|
serialize: N.function
|
|
1425
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1425
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), V.assertOptions(n, {
|
|
1426
1426
|
baseUrl: N.spelling("baseURL"),
|
|
1427
1427
|
withXsrfToken: N.spelling("withXSRFToken")
|
|
1428
1428
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1447,7 +1447,7 @@ let L = class {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
let u, p = 0, b;
|
|
1449
1449
|
if (!f) {
|
|
1450
|
-
const d = [
|
|
1450
|
+
const d = [Ae.bind(this), void 0];
|
|
1451
1451
|
for (d.unshift.apply(d, c), d.push.apply(d, l), b = d.length, u = Promise.resolve(n); p < b; )
|
|
1452
1452
|
u = u.then(d[p++], d[p++]);
|
|
1453
1453
|
return u;
|
|
@@ -1464,7 +1464,7 @@ let L = class {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
try {
|
|
1467
|
-
u =
|
|
1467
|
+
u = Ae.call(this, R);
|
|
1468
1468
|
} catch (d) {
|
|
1469
1469
|
return Promise.reject(d);
|
|
1470
1470
|
}
|
|
@@ -1474,10 +1474,10 @@ let L = class {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
getUri(t) {
|
|
1476
1476
|
t = B(this.defaults, t);
|
|
1477
|
-
const n =
|
|
1478
|
-
return
|
|
1477
|
+
const n = Ve(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1478
|
+
return Ie(n, t.params, t.paramsSerializer);
|
|
1479
1479
|
}
|
|
1480
|
-
}
|
|
1480
|
+
}
|
|
1481
1481
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1482
1482
|
L.prototype[t] = function(n, r) {
|
|
1483
1483
|
return this.request(B(r || {}, {
|
|
@@ -1502,7 +1502,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1504
1504
|
});
|
|
1505
|
-
|
|
1505
|
+
class de {
|
|
1506
1506
|
constructor(t) {
|
|
1507
1507
|
if (typeof t != "function")
|
|
1508
1508
|
throw new TypeError("executor must be a function.");
|
|
@@ -1568,19 +1568,19 @@ let xn = class Xe {
|
|
|
1568
1568
|
static source() {
|
|
1569
1569
|
let t;
|
|
1570
1570
|
return {
|
|
1571
|
-
token: new
|
|
1571
|
+
token: new de(function(s) {
|
|
1572
1572
|
t = s;
|
|
1573
1573
|
}),
|
|
1574
1574
|
cancel: t
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
}
|
|
1578
|
-
function
|
|
1577
|
+
}
|
|
1578
|
+
function xn(e) {
|
|
1579
1579
|
return function(n) {
|
|
1580
1580
|
return e.apply(null, n);
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Cn(e) {
|
|
1584
1584
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1585
1585
|
}
|
|
1586
1586
|
const ce = {
|
|
@@ -1652,49 +1652,32 @@ Object.entries(ce).forEach(([e, t]) => {
|
|
|
1652
1652
|
ce[t] = e;
|
|
1653
1653
|
});
|
|
1654
1654
|
function Ge(e) {
|
|
1655
|
-
const t = new L(e), n =
|
|
1655
|
+
const t = new L(e), n = Ce(L.prototype.request, t);
|
|
1656
1656
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1657
1657
|
return Ge(B(e, s));
|
|
1658
1658
|
}, n;
|
|
1659
1659
|
}
|
|
1660
|
-
const E = Ge(
|
|
1660
|
+
const E = Ge(M);
|
|
1661
1661
|
E.Axios = L;
|
|
1662
1662
|
E.CanceledError = k;
|
|
1663
|
-
E.CancelToken =
|
|
1664
|
-
E.isCancel =
|
|
1665
|
-
E.VERSION =
|
|
1663
|
+
E.CancelToken = de;
|
|
1664
|
+
E.isCancel = ze;
|
|
1665
|
+
E.VERSION = Xe;
|
|
1666
1666
|
E.toFormData = Q;
|
|
1667
1667
|
E.AxiosError = m;
|
|
1668
1668
|
E.Cancel = E.CanceledError;
|
|
1669
1669
|
E.all = function(t) {
|
|
1670
1670
|
return Promise.all(t);
|
|
1671
1671
|
};
|
|
1672
|
-
E.spread =
|
|
1673
|
-
E.isAxiosError =
|
|
1672
|
+
E.spread = xn;
|
|
1673
|
+
E.isAxiosError = Cn;
|
|
1674
1674
|
E.mergeConfig = B;
|
|
1675
1675
|
E.AxiosHeaders = x;
|
|
1676
1676
|
E.formToJSON = (e) => He(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1677
|
-
E.getAdapter =
|
|
1677
|
+
E.getAdapter = ve.getAdapter;
|
|
1678
1678
|
E.HttpStatusCode = ce;
|
|
1679
1679
|
E.default = E;
|
|
1680
|
-
const {
|
|
1681
|
-
Axios: Un,
|
|
1682
|
-
AxiosError: Ln,
|
|
1683
|
-
CanceledError: Bn,
|
|
1684
|
-
isCancel: Dn,
|
|
1685
|
-
CancelToken: kn,
|
|
1686
|
-
VERSION: jn,
|
|
1687
|
-
all: qn,
|
|
1688
|
-
Cancel: In,
|
|
1689
|
-
isAxiosError: Hn,
|
|
1690
|
-
spread: Mn,
|
|
1691
|
-
toFormData: $n,
|
|
1692
|
-
AxiosHeaders: zn,
|
|
1693
|
-
HttpStatusCode: Jn,
|
|
1694
|
-
formToJSON: Vn,
|
|
1695
|
-
getAdapter: Wn,
|
|
1696
|
-
mergeConfig: Kn
|
|
1697
|
-
} = E, vn = async (e) => {
|
|
1680
|
+
const Pn = async (e) => {
|
|
1698
1681
|
var s;
|
|
1699
1682
|
if (!e) return "";
|
|
1700
1683
|
let t = e;
|
|
@@ -1711,5 +1694,5 @@ const {
|
|
|
1711
1694
|
}
|
|
1712
1695
|
};
|
|
1713
1696
|
export {
|
|
1714
|
-
|
|
1697
|
+
Pn as extractFilename
|
|
1715
1698
|
};
|