@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228
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 +1520 -1526
- package/api-services/index.js +1223 -1237
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +313 -310
- package/api-services/modules/app-manage/index.js +292 -292
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +313 -310
- package/api-services/modules/authentication/index.js +292 -292
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +308 -305
- package/api-services/modules/bems/index.js +287 -287
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +313 -310
- package/api-services/modules/contract/index.js +292 -292
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1153 -1159
- package/api-services/modules/duty-manage/index.js +958 -972
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1153 -1162
- package/api-services/modules/enterpriseright/index.js +957 -975
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1518 -1527
- package/api-services/modules/file/es5.js +250 -247
- package/api-services/modules/file/index.js +209 -209
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +188 -185
- package/api-services/modules/gateway-edge/index.js +184 -184
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1221 -1239
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1168 -1177
- package/api-services/modules/iot/index.js +968 -986
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +314 -311
- package/api-services/modules/justauth/index.js +293 -293
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +313 -310
- package/api-services/modules/knowledge/index.js +292 -292
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +313 -310
- package/api-services/modules/link/index.js +292 -292
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1153 -1162
- package/api-services/modules/permission/index.js +957 -975
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +312 -309
- package/api-services/modules/platformManage/index.js +287 -287
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1135 -1141
- package/api-services/modules/portal/index.js +941 -955
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1247 -1232
- package/api-services/modules/space-manage/index.js +1042 -1024
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +262 -259
- package/api-services/modules/super-admin/index.js +244 -244
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +315 -312
- package/api-services/modules/supplier/index.js +292 -292
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1164 -1173
- package/api-services/modules/supplychain-manage/index.js +967 -985
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +313 -310
- package/api-services/modules/systemConfiguration/index.js +292 -292
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +313 -310
- package/api-services/modules/tool/index.js +292 -292
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +311 -308
- package/api-services/src/create-service/index.js +291 -291
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4357 -124
- package/common-info/getPermissionMethod/es5.js +4209 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3328 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +3414 -63
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/create-api-service/es5.js +1142 -1150
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +948 -965
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +63 -44
- package/directive/auth/index.js +42 -33
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +7 -1
- package/hooks/use-get-auth/es5.js +13 -17
- package/hooks/use-get-auth/index.js +10 -13
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { curringHttp as Jn } from "@das-fed/upf-utils/curring-http";
|
|
2
2
|
import { getI18nBridge as zr } from "@das-fed/upf-utils/i18n-bridge";
|
|
3
3
|
import { getToken as Vn, getQuery as Kn, login as Qn, getTokenParams as Xn, real_uri as Zn } from "@das-fed/upf-utils/create-api-service/sso";
|
|
4
|
-
import
|
|
4
|
+
import Lt from "dayjs";
|
|
5
5
|
import Yn from "dayjs/plugin/utc";
|
|
6
6
|
import eo from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as to, getInstanceInfo as ro } from "@das-fed/upf-utils/common-info";
|
|
@@ -143,8 +143,8 @@ const Oo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
return le(t) ? r(t) : r(String(t).split(e)), n;
|
|
146
|
-
},
|
|
147
|
-
},
|
|
146
|
+
}, Uo = () => {
|
|
147
|
+
}, Lo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
148
148
|
function Mo(t) {
|
|
149
149
|
return !!(t && N(t.append) && t[Jr] === "FormData" && t[qe]);
|
|
150
150
|
}
|
|
@@ -172,7 +172,7 @@ const ko = (t) => {
|
|
|
172
172
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
173
173
|
typeof setImmediate == "function",
|
|
174
174
|
N(K.postMessage)
|
|
175
|
-
), Ho = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || Yr, zo = (t) => t != null && N(t[qe]),
|
|
175
|
+
), Ho = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || Yr, zo = (t) => t != null && N(t[qe]), p = {
|
|
176
176
|
isArray: le,
|
|
177
177
|
isArrayBuffer: Vr,
|
|
178
178
|
isBuffer: io,
|
|
@@ -218,8 +218,8 @@ const ko = (t) => {
|
|
|
218
218
|
freezeMethods: $o,
|
|
219
219
|
toObjectSet: Bo,
|
|
220
220
|
toCamelCase: Do,
|
|
221
|
-
noop:
|
|
222
|
-
toFiniteNumber:
|
|
221
|
+
noop: Uo,
|
|
222
|
+
toFiniteNumber: Lo,
|
|
223
223
|
findKey: Qr,
|
|
224
224
|
global: K,
|
|
225
225
|
isContextDefined: Xr,
|
|
@@ -234,7 +234,7 @@ const ko = (t) => {
|
|
|
234
234
|
function w(t, e, n, r, o) {
|
|
235
235
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
p.inherits(w, Error, {
|
|
238
238
|
toJSON: function() {
|
|
239
239
|
return {
|
|
240
240
|
// Standard
|
|
@@ -249,7 +249,7 @@ f.inherits(w, Error, {
|
|
|
249
249
|
columnNumber: this.columnNumber,
|
|
250
250
|
stack: this.stack,
|
|
251
251
|
// Axios
|
|
252
|
-
config:
|
|
252
|
+
config: p.toJSONObject(this.config),
|
|
253
253
|
code: this.code,
|
|
254
254
|
status: this.status
|
|
255
255
|
};
|
|
@@ -277,16 +277,16 @@ Object.defineProperties(w, tn);
|
|
|
277
277
|
Object.defineProperty(en, "isAxiosError", { value: !0 });
|
|
278
278
|
w.from = (t, e, n, r, o, a) => {
|
|
279
279
|
const i = Object.create(en);
|
|
280
|
-
return
|
|
280
|
+
return p.toFlatObject(t, i, function(u) {
|
|
281
281
|
return u !== Error.prototype;
|
|
282
282
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
283
283
|
};
|
|
284
284
|
const Wo = null;
|
|
285
285
|
function Pt(t) {
|
|
286
|
-
return
|
|
286
|
+
return p.isPlainObject(t) || p.isArray(t);
|
|
287
287
|
}
|
|
288
288
|
function rn(t) {
|
|
289
|
-
return
|
|
289
|
+
return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
290
290
|
}
|
|
291
291
|
function Zt(t, e, n) {
|
|
292
292
|
return t ? t.concat(e).map(function(o, a) {
|
|
@@ -294,71 +294,71 @@ function Zt(t, e, n) {
|
|
|
294
294
|
}).join(n ? "." : "") : e;
|
|
295
295
|
}
|
|
296
296
|
function Go(t) {
|
|
297
|
-
return
|
|
297
|
+
return p.isArray(t) && !t.some(Pt);
|
|
298
298
|
}
|
|
299
|
-
const Jo =
|
|
299
|
+
const Jo = p.toFlatObject(p, {}, null, function(e) {
|
|
300
300
|
return /^is[A-Z]/.test(e);
|
|
301
301
|
});
|
|
302
302
|
function We(t, e, n) {
|
|
303
|
-
if (!
|
|
303
|
+
if (!p.isObject(t))
|
|
304
304
|
throw new TypeError("target must be an object");
|
|
305
|
-
e = e || new FormData(), n =
|
|
305
|
+
e = e || new FormData(), n = p.toFlatObject(n, {
|
|
306
306
|
metaTokens: !0,
|
|
307
307
|
dots: !1,
|
|
308
308
|
indexes: !1
|
|
309
309
|
}, !1, function(m, h) {
|
|
310
|
-
return !
|
|
310
|
+
return !p.isUndefined(h[m]);
|
|
311
311
|
});
|
|
312
|
-
const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
313
|
-
if (!
|
|
312
|
+
const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
|
|
313
|
+
if (!p.isFunction(o))
|
|
314
314
|
throw new TypeError("visitor must be a function");
|
|
315
315
|
function c(y) {
|
|
316
316
|
if (y === null) return "";
|
|
317
|
-
if (
|
|
317
|
+
if (p.isDate(y))
|
|
318
318
|
return y.toISOString();
|
|
319
|
-
if (
|
|
319
|
+
if (p.isBoolean(y))
|
|
320
320
|
return y.toString();
|
|
321
|
-
if (!u &&
|
|
321
|
+
if (!u && p.isBlob(y))
|
|
322
322
|
throw new w("Blob is not supported. Use a Buffer instead.");
|
|
323
|
-
return
|
|
323
|
+
return p.isArrayBuffer(y) || p.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
324
324
|
}
|
|
325
325
|
function l(y, m, h) {
|
|
326
326
|
let b = y;
|
|
327
327
|
if (y && !h && typeof y == "object") {
|
|
328
|
-
if (
|
|
328
|
+
if (p.endsWith(m, "{}"))
|
|
329
329
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
330
|
-
else if (
|
|
331
|
-
return m = rn(m), b.forEach(function(g,
|
|
332
|
-
!(
|
|
330
|
+
else if (p.isArray(y) && Go(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (b = p.toArray(y)))
|
|
331
|
+
return m = rn(m), b.forEach(function(g, O) {
|
|
332
|
+
!(p.isUndefined(g) || g === null) && e.append(
|
|
333
333
|
// eslint-disable-next-line no-nested-ternary
|
|
334
|
-
i === !0 ? Zt([m],
|
|
334
|
+
i === !0 ? Zt([m], O, a) : i === null ? m : m + "[]",
|
|
335
335
|
c(g)
|
|
336
336
|
);
|
|
337
337
|
}), !1;
|
|
338
338
|
}
|
|
339
339
|
return Pt(y) ? !0 : (e.append(Zt(h, m, a), c(y)), !1);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const f = [], d = Object.assign(Jo, {
|
|
342
342
|
defaultVisitor: l,
|
|
343
343
|
convertValue: c,
|
|
344
344
|
isVisitable: Pt
|
|
345
345
|
});
|
|
346
346
|
function v(y, m) {
|
|
347
|
-
if (!
|
|
348
|
-
if (
|
|
347
|
+
if (!p.isUndefined(y)) {
|
|
348
|
+
if (f.indexOf(y) !== -1)
|
|
349
349
|
throw Error("Circular reference detected in " + m.join("."));
|
|
350
|
-
|
|
351
|
-
(!(
|
|
350
|
+
f.push(y), p.forEach(y, function(b, E) {
|
|
351
|
+
(!(p.isUndefined(b) || b === null) && o.call(
|
|
352
352
|
e,
|
|
353
353
|
b,
|
|
354
|
-
|
|
354
|
+
p.isString(E) ? E.trim() : E,
|
|
355
355
|
m,
|
|
356
356
|
d
|
|
357
357
|
)) === !0 && v(b, m ? m.concat(E) : [E]);
|
|
358
|
-
}),
|
|
358
|
+
}), f.pop();
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
if (!
|
|
361
|
+
if (!p.isObject(t))
|
|
362
362
|
throw new TypeError("data must be an object");
|
|
363
363
|
return v(t), e;
|
|
364
364
|
}
|
|
@@ -398,12 +398,12 @@ function on(t, e, n) {
|
|
|
398
398
|
if (!e)
|
|
399
399
|
return t;
|
|
400
400
|
const r = n && n.encode || Vo;
|
|
401
|
-
|
|
401
|
+
p.isFunction(n) && (n = {
|
|
402
402
|
serialize: n
|
|
403
403
|
});
|
|
404
404
|
const o = n && n.serialize;
|
|
405
405
|
let a;
|
|
406
|
-
if (o ? a = o(e, n) : a =
|
|
406
|
+
if (o ? a = o(e, n) : a = p.isURLSearchParams(e) ? e.toString() : new kt(e, n).toString(r), a) {
|
|
407
407
|
const i = t.indexOf("#");
|
|
408
408
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
409
409
|
}
|
|
@@ -458,7 +458,7 @@ class er {
|
|
|
458
458
|
* @returns {void}
|
|
459
459
|
*/
|
|
460
460
|
forEach(e) {
|
|
461
|
-
|
|
461
|
+
p.forEach(this.handlers, function(r) {
|
|
462
462
|
r !== null && e(r);
|
|
463
463
|
});
|
|
464
464
|
}
|
|
@@ -490,12 +490,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ta
|
|
|
490
490
|
function na(t, e) {
|
|
491
491
|
return We(t, new _.classes.URLSearchParams(), Object.assign({
|
|
492
492
|
visitor: function(n, r, o, a) {
|
|
493
|
-
return _.isNode &&
|
|
493
|
+
return _.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
494
494
|
}
|
|
495
495
|
}, e));
|
|
496
496
|
}
|
|
497
497
|
function oa(t) {
|
|
498
|
-
return
|
|
498
|
+
return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
499
499
|
}
|
|
500
500
|
function aa(t) {
|
|
501
501
|
const e = {}, n = Object.keys(t);
|
|
@@ -511,20 +511,20 @@ function sn(t) {
|
|
|
511
511
|
let i = n[a++];
|
|
512
512
|
if (i === "__proto__") return !0;
|
|
513
513
|
const s = Number.isFinite(+i), u = a >= n.length;
|
|
514
|
-
return i = !i &&
|
|
514
|
+
return i = !i && p.isArray(o) ? o.length : i, u ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] = aa(o[i])), !s);
|
|
515
515
|
}
|
|
516
|
-
if (
|
|
516
|
+
if (p.isFormData(t) && p.isFunction(t.entries)) {
|
|
517
517
|
const n = {};
|
|
518
|
-
return
|
|
518
|
+
return p.forEachEntry(t, (r, o) => {
|
|
519
519
|
e(oa(r), o, n, 0);
|
|
520
520
|
}), n;
|
|
521
521
|
}
|
|
522
522
|
return null;
|
|
523
523
|
}
|
|
524
524
|
function ia(t, e, n) {
|
|
525
|
-
if (
|
|
525
|
+
if (p.isString(t))
|
|
526
526
|
try {
|
|
527
|
-
return (e || JSON.parse)(t),
|
|
527
|
+
return (e || JSON.parse)(t), p.trim(t);
|
|
528
528
|
} catch (r) {
|
|
529
529
|
if (r.name !== "SyntaxError")
|
|
530
530
|
throw r;
|
|
@@ -535,20 +535,20 @@ const Se = {
|
|
|
535
535
|
transitional: an,
|
|
536
536
|
adapter: ["xhr", "http", "fetch"],
|
|
537
537
|
transformRequest: [function(e, n) {
|
|
538
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a =
|
|
539
|
-
if (a &&
|
|
538
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = p.isObject(e);
|
|
539
|
+
if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
|
|
540
540
|
return o ? JSON.stringify(sn(e)) : e;
|
|
541
|
-
if (
|
|
541
|
+
if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
|
|
542
542
|
return e;
|
|
543
|
-
if (
|
|
543
|
+
if (p.isArrayBufferView(e))
|
|
544
544
|
return e.buffer;
|
|
545
|
-
if (
|
|
545
|
+
if (p.isURLSearchParams(e))
|
|
546
546
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
547
547
|
let s;
|
|
548
548
|
if (a) {
|
|
549
549
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
550
550
|
return na(e, this.formSerializer).toString();
|
|
551
|
-
if ((s =
|
|
551
|
+
if ((s = p.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
552
552
|
const u = this.env && this.env.FormData;
|
|
553
553
|
return We(
|
|
554
554
|
s ? { "files[]": e } : e,
|
|
@@ -561,9 +561,9 @@ const Se = {
|
|
|
561
561
|
}],
|
|
562
562
|
transformResponse: [function(e) {
|
|
563
563
|
const n = this.transitional || Se.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
564
|
-
if (
|
|
564
|
+
if (p.isResponse(e) || p.isReadableStream(e))
|
|
565
565
|
return e;
|
|
566
|
-
if (e &&
|
|
566
|
+
if (e && p.isString(e) && (r && !this.responseType || o)) {
|
|
567
567
|
const i = !(n && n.silentJSONParsing) && o;
|
|
568
568
|
try {
|
|
569
569
|
return JSON.parse(e);
|
|
@@ -597,10 +597,10 @@ const Se = {
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
|
-
|
|
600
|
+
p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
601
601
|
Se.headers[t] = {};
|
|
602
602
|
});
|
|
603
|
-
const sa =
|
|
603
|
+
const sa = p.toObjectSet([
|
|
604
604
|
"age",
|
|
605
605
|
"authorization",
|
|
606
606
|
"content-length",
|
|
@@ -630,7 +630,7 @@ function pe(t) {
|
|
|
630
630
|
return t && String(t).trim().toLowerCase();
|
|
631
631
|
}
|
|
632
632
|
function Ce(t) {
|
|
633
|
-
return t === !1 || t == null ? t :
|
|
633
|
+
return t === !1 || t == null ? t : p.isArray(t) ? t.map(Ce) : String(t);
|
|
634
634
|
}
|
|
635
635
|
function ca(t) {
|
|
636
636
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -641,12 +641,12 @@ function ca(t) {
|
|
|
641
641
|
}
|
|
642
642
|
const ua = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
643
643
|
function et(t, e, n, r, o) {
|
|
644
|
-
if (
|
|
644
|
+
if (p.isFunction(r))
|
|
645
645
|
return r.call(this, e, n);
|
|
646
|
-
if (o && (e = n), !!
|
|
647
|
-
if (
|
|
646
|
+
if (o && (e = n), !!p.isString(e)) {
|
|
647
|
+
if (p.isString(r))
|
|
648
648
|
return e.indexOf(r) !== -1;
|
|
649
|
-
if (
|
|
649
|
+
if (p.isRegExp(r))
|
|
650
650
|
return r.test(e);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
@@ -654,7 +654,7 @@ function fa(t) {
|
|
|
654
654
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
655
655
|
}
|
|
656
656
|
function pa(t, e) {
|
|
657
|
-
const n =
|
|
657
|
+
const n = p.toCamelCase(" " + e);
|
|
658
658
|
["get", "set", "has"].forEach((r) => {
|
|
659
659
|
Object.defineProperty(t, r + n, {
|
|
660
660
|
value: function(o, a, i) {
|
|
@@ -674,20 +674,20 @@ class D {
|
|
|
674
674
|
const l = pe(u);
|
|
675
675
|
if (!l)
|
|
676
676
|
throw new Error("header name must be a non-empty string");
|
|
677
|
-
const
|
|
678
|
-
(!
|
|
677
|
+
const f = p.findKey(o, l);
|
|
678
|
+
(!f || o[f] === void 0 || c === !0 || c === void 0 && o[f] !== !1) && (o[f || u] = Ce(s));
|
|
679
679
|
}
|
|
680
|
-
const i = (s, u) =>
|
|
681
|
-
if (
|
|
680
|
+
const i = (s, u) => p.forEach(s, (c, l) => a(c, l, u));
|
|
681
|
+
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
682
682
|
i(e, n);
|
|
683
|
-
else if (
|
|
683
|
+
else if (p.isString(e) && (e = e.trim()) && !ua(e))
|
|
684
684
|
i(la(e), n);
|
|
685
|
-
else if (
|
|
685
|
+
else if (p.isObject(e) && p.isIterable(e)) {
|
|
686
686
|
let s = {}, u, c;
|
|
687
687
|
for (const l of e) {
|
|
688
|
-
if (!
|
|
688
|
+
if (!p.isArray(l))
|
|
689
689
|
throw TypeError("Object iterator must return a key-value pair");
|
|
690
|
-
s[c = l[0]] = (u = s[c]) ?
|
|
690
|
+
s[c = l[0]] = (u = s[c]) ? p.isArray(u) ? [...u, l[1]] : [u, l[1]] : l[1];
|
|
691
691
|
}
|
|
692
692
|
i(s, n);
|
|
693
693
|
} else
|
|
@@ -696,16 +696,16 @@ class D {
|
|
|
696
696
|
}
|
|
697
697
|
get(e, n) {
|
|
698
698
|
if (e = pe(e), e) {
|
|
699
|
-
const r =
|
|
699
|
+
const r = p.findKey(this, e);
|
|
700
700
|
if (r) {
|
|
701
701
|
const o = this[r];
|
|
702
702
|
if (!n)
|
|
703
703
|
return o;
|
|
704
704
|
if (n === !0)
|
|
705
705
|
return ca(o);
|
|
706
|
-
if (
|
|
706
|
+
if (p.isFunction(n))
|
|
707
707
|
return n.call(this, o, r);
|
|
708
|
-
if (
|
|
708
|
+
if (p.isRegExp(n))
|
|
709
709
|
return n.exec(o);
|
|
710
710
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
711
711
|
}
|
|
@@ -713,7 +713,7 @@ class D {
|
|
|
713
713
|
}
|
|
714
714
|
has(e, n) {
|
|
715
715
|
if (e = pe(e), e) {
|
|
716
|
-
const r =
|
|
716
|
+
const r = p.findKey(this, e);
|
|
717
717
|
return !!(r && this[r] !== void 0 && (!n || et(this, this[r], r, n)));
|
|
718
718
|
}
|
|
719
719
|
return !1;
|
|
@@ -723,11 +723,11 @@ class D {
|
|
|
723
723
|
let o = !1;
|
|
724
724
|
function a(i) {
|
|
725
725
|
if (i = pe(i), i) {
|
|
726
|
-
const s =
|
|
726
|
+
const s = p.findKey(r, i);
|
|
727
727
|
s && (!n || et(r, r[s], s, n)) && (delete r[s], o = !0);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
return
|
|
730
|
+
return p.isArray(e) ? e.forEach(a) : a(e), o;
|
|
731
731
|
}
|
|
732
732
|
clear(e) {
|
|
733
733
|
const n = Object.keys(this);
|
|
@@ -740,8 +740,8 @@ class D {
|
|
|
740
740
|
}
|
|
741
741
|
normalize(e) {
|
|
742
742
|
const n = this, r = {};
|
|
743
|
-
return
|
|
744
|
-
const i =
|
|
743
|
+
return p.forEach(this, (o, a) => {
|
|
744
|
+
const i = p.findKey(r, a);
|
|
745
745
|
if (i) {
|
|
746
746
|
n[i] = Ce(o), delete n[a];
|
|
747
747
|
return;
|
|
@@ -755,8 +755,8 @@ class D {
|
|
|
755
755
|
}
|
|
756
756
|
toJSON(e) {
|
|
757
757
|
const n = /* @__PURE__ */ Object.create(null);
|
|
758
|
-
return
|
|
759
|
-
r != null && r !== !1 && (n[o] = e &&
|
|
758
|
+
return p.forEach(this, (r, o) => {
|
|
759
|
+
r != null && r !== !1 && (n[o] = e && p.isArray(r) ? r.join(", ") : r);
|
|
760
760
|
}), n;
|
|
761
761
|
}
|
|
762
762
|
[Symbol.iterator]() {
|
|
@@ -787,11 +787,11 @@ class D {
|
|
|
787
787
|
const s = pe(i);
|
|
788
788
|
r[s] || (pa(o, i), r[s] = !0);
|
|
789
789
|
}
|
|
790
|
-
return
|
|
790
|
+
return p.isArray(e) ? e.forEach(a) : a(e), this;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
794
|
-
|
|
794
|
+
p.reduceDescriptors(D.prototype, ({ value: t }, e) => {
|
|
795
795
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
796
796
|
return {
|
|
797
797
|
get: () => t,
|
|
@@ -800,11 +800,11 @@ f.reduceDescriptors(D.prototype, ({ value: t }, e) => {
|
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
});
|
|
803
|
-
|
|
803
|
+
p.freezeMethods(D);
|
|
804
804
|
function tt(t, e) {
|
|
805
805
|
const n = this || Se, r = e || n, o = D.from(r.headers);
|
|
806
806
|
let a = r.data;
|
|
807
|
-
return
|
|
807
|
+
return p.forEach(t, function(s) {
|
|
808
808
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
809
809
|
}), o.normalize(), a;
|
|
810
810
|
}
|
|
@@ -814,7 +814,7 @@ function ln(t) {
|
|
|
814
814
|
function ce(t, e, n) {
|
|
815
815
|
w.call(this, t ?? "canceled", w.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
816
816
|
}
|
|
817
|
-
|
|
817
|
+
p.inherits(ce, w, {
|
|
818
818
|
__CANCEL__: !0
|
|
819
819
|
});
|
|
820
820
|
function cn(t, e, n) {
|
|
@@ -838,9 +838,9 @@ function ya(t, e) {
|
|
|
838
838
|
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
839
839
|
const c = Date.now(), l = r[a];
|
|
840
840
|
i || (i = c), n[o] = u, r[o] = c;
|
|
841
|
-
let
|
|
842
|
-
for (;
|
|
843
|
-
d += n[
|
|
841
|
+
let f = a, d = 0;
|
|
842
|
+
for (; f !== o; )
|
|
843
|
+
d += n[f++], f = f % t;
|
|
844
844
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), c - i < e)
|
|
845
845
|
return;
|
|
846
846
|
const v = l && c - l;
|
|
@@ -853,10 +853,10 @@ function ha(t, e) {
|
|
|
853
853
|
n = l, o = null, a && (clearTimeout(a), a = null), t.apply(null, c);
|
|
854
854
|
};
|
|
855
855
|
return [(...c) => {
|
|
856
|
-
const l = Date.now(),
|
|
857
|
-
|
|
856
|
+
const l = Date.now(), f = l - n;
|
|
857
|
+
f >= r ? i(c, l) : (o = c, a || (a = setTimeout(() => {
|
|
858
858
|
a = null, i(o);
|
|
859
|
-
}, r -
|
|
859
|
+
}, r - f)));
|
|
860
860
|
}, () => o && i(o)];
|
|
861
861
|
}
|
|
862
862
|
const $e = (t, e, n = 3) => {
|
|
@@ -865,7 +865,7 @@ const $e = (t, e, n = 3) => {
|
|
|
865
865
|
return ha((a) => {
|
|
866
866
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, c = o(u), l = i <= s;
|
|
867
867
|
r = i;
|
|
868
|
-
const
|
|
868
|
+
const f = {
|
|
869
869
|
loaded: i,
|
|
870
870
|
total: s,
|
|
871
871
|
progress: s ? i / s : void 0,
|
|
@@ -876,7 +876,7 @@ const $e = (t, e, n = 3) => {
|
|
|
876
876
|
lengthComputable: s != null,
|
|
877
877
|
[e ? "download" : "upload"]: !0
|
|
878
878
|
};
|
|
879
|
-
t(
|
|
879
|
+
t(f);
|
|
880
880
|
}, n);
|
|
881
881
|
}, rr = (t, e) => {
|
|
882
882
|
const n = t != null;
|
|
@@ -885,7 +885,7 @@ const $e = (t, e, n = 3) => {
|
|
|
885
885
|
total: t,
|
|
886
886
|
loaded: r
|
|
887
887
|
}), e[1]];
|
|
888
|
-
}, nr = (t) => (...e) =>
|
|
888
|
+
}, nr = (t) => (...e) => p.asap(() => t(...e)), ma = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, _.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
889
889
|
new URL(_.origin),
|
|
890
890
|
_.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
|
|
891
891
|
) : () => !0, ga = _.hasStandardBrowserEnv ? (
|
|
@@ -893,7 +893,7 @@ const $e = (t, e, n = 3) => {
|
|
|
893
893
|
{
|
|
894
894
|
write(t, e, n, r, o, a) {
|
|
895
895
|
const i = [t + "=" + encodeURIComponent(e)];
|
|
896
|
-
|
|
896
|
+
p.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), p.isString(r) && i.push("path=" + r), p.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
897
897
|
},
|
|
898
898
|
read(t) {
|
|
899
899
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -929,29 +929,29 @@ const or = (t) => t instanceof D ? { ...t } : t;
|
|
|
929
929
|
function Z(t, e) {
|
|
930
930
|
e = e || {};
|
|
931
931
|
const n = {};
|
|
932
|
-
function r(c, l,
|
|
933
|
-
return
|
|
932
|
+
function r(c, l, f, d) {
|
|
933
|
+
return p.isPlainObject(c) && p.isPlainObject(l) ? p.merge.call({ caseless: d }, c, l) : p.isPlainObject(l) ? p.merge({}, l) : p.isArray(l) ? l.slice() : l;
|
|
934
934
|
}
|
|
935
|
-
function o(c, l,
|
|
936
|
-
if (
|
|
937
|
-
if (!
|
|
938
|
-
return r(void 0, c,
|
|
939
|
-
} else return r(c, l,
|
|
935
|
+
function o(c, l, f, d) {
|
|
936
|
+
if (p.isUndefined(l)) {
|
|
937
|
+
if (!p.isUndefined(c))
|
|
938
|
+
return r(void 0, c, f, d);
|
|
939
|
+
} else return r(c, l, f, d);
|
|
940
940
|
}
|
|
941
941
|
function a(c, l) {
|
|
942
|
-
if (!
|
|
942
|
+
if (!p.isUndefined(l))
|
|
943
943
|
return r(void 0, l);
|
|
944
944
|
}
|
|
945
945
|
function i(c, l) {
|
|
946
|
-
if (
|
|
947
|
-
if (!
|
|
946
|
+
if (p.isUndefined(l)) {
|
|
947
|
+
if (!p.isUndefined(c))
|
|
948
948
|
return r(void 0, c);
|
|
949
949
|
} else return r(void 0, l);
|
|
950
950
|
}
|
|
951
|
-
function s(c, l,
|
|
952
|
-
if (
|
|
951
|
+
function s(c, l, f) {
|
|
952
|
+
if (f in e)
|
|
953
953
|
return r(c, l);
|
|
954
|
-
if (
|
|
954
|
+
if (f in t)
|
|
955
955
|
return r(void 0, c);
|
|
956
956
|
}
|
|
957
957
|
const u = {
|
|
@@ -983,11 +983,11 @@ function Z(t, e) {
|
|
|
983
983
|
socketPath: i,
|
|
984
984
|
responseEncoding: i,
|
|
985
985
|
validateStatus: s,
|
|
986
|
-
headers: (c, l,
|
|
986
|
+
headers: (c, l, f) => o(or(c), or(l), f, !0)
|
|
987
987
|
};
|
|
988
|
-
return
|
|
989
|
-
const
|
|
990
|
-
|
|
988
|
+
return p.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
989
|
+
const f = u[l] || o, d = f(t[l], e[l], l);
|
|
990
|
+
p.isUndefined(d) && f !== s || (n[l] = d);
|
|
991
991
|
}), n;
|
|
992
992
|
}
|
|
993
993
|
const fn = (t) => {
|
|
@@ -998,15 +998,15 @@ const fn = (t) => {
|
|
|
998
998
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
999
999
|
);
|
|
1000
1000
|
let u;
|
|
1001
|
-
if (
|
|
1001
|
+
if (p.isFormData(n)) {
|
|
1002
1002
|
if (_.hasStandardBrowserEnv || _.hasStandardBrowserWebWorkerEnv)
|
|
1003
1003
|
i.setContentType(void 0);
|
|
1004
1004
|
else if ((u = i.getContentType()) !== !1) {
|
|
1005
|
-
const [c, ...l] = u ? u.split(";").map((
|
|
1005
|
+
const [c, ...l] = u ? u.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1006
1006
|
i.setContentType([c || "multipart/form-data", ...l].join("; "));
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
|
-
if (_.hasStandardBrowserEnv && (r &&
|
|
1009
|
+
if (_.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== !1 && ma(e.url))) {
|
|
1010
1010
|
const c = o && a && ga.read(a);
|
|
1011
1011
|
c && i.set(o, c);
|
|
1012
1012
|
}
|
|
@@ -1016,7 +1016,7 @@ const fn = (t) => {
|
|
|
1016
1016
|
const o = fn(t);
|
|
1017
1017
|
let a = o.data;
|
|
1018
1018
|
const i = D.from(o.headers).normalize();
|
|
1019
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: c } = o, l,
|
|
1019
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: c } = o, l, f, d, v, y;
|
|
1020
1020
|
function m() {
|
|
1021
1021
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1022
1022
|
}
|
|
@@ -1027,7 +1027,7 @@ const fn = (t) => {
|
|
|
1027
1027
|
return;
|
|
1028
1028
|
const g = D.from(
|
|
1029
1029
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1030
|
-
),
|
|
1030
|
+
), A = {
|
|
1031
1031
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1032
1032
|
status: h.status,
|
|
1033
1033
|
statusText: h.statusText,
|
|
@@ -1039,7 +1039,7 @@ const fn = (t) => {
|
|
|
1039
1039
|
n(F), m();
|
|
1040
1040
|
}, function(F) {
|
|
1041
1041
|
r(F), m();
|
|
1042
|
-
},
|
|
1042
|
+
}, A), h = null;
|
|
1043
1043
|
}
|
|
1044
1044
|
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
1045
1045
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
@@ -1048,17 +1048,17 @@ const fn = (t) => {
|
|
|
1048
1048
|
}, h.onerror = function() {
|
|
1049
1049
|
r(new w("Network Error", w.ERR_NETWORK, t, h)), h = null;
|
|
1050
1050
|
}, h.ontimeout = function() {
|
|
1051
|
-
let
|
|
1052
|
-
const
|
|
1053
|
-
o.timeoutErrorMessage && (
|
|
1054
|
-
|
|
1055
|
-
|
|
1051
|
+
let O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1052
|
+
const A = o.transitional || an;
|
|
1053
|
+
o.timeoutErrorMessage && (O = o.timeoutErrorMessage), r(new w(
|
|
1054
|
+
O,
|
|
1055
|
+
A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1056
1056
|
t,
|
|
1057
1057
|
h
|
|
1058
1058
|
)), h = null;
|
|
1059
|
-
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h &&
|
|
1060
|
-
h.setRequestHeader(
|
|
1061
|
-
}),
|
|
1059
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(O, A) {
|
|
1060
|
+
h.setRequestHeader(A, O);
|
|
1061
|
+
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), c && ([d, y] = $e(c, !0), h.addEventListener("progress", d)), u && h.upload && ([f, v] = $e(u), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1062
1062
|
h && (r(!g || g.type ? new ce(null, t, h) : g), h.abort(), h = null);
|
|
1063
1063
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1064
1064
|
const E = da(o.url);
|
|
@@ -1089,7 +1089,7 @@ const fn = (t) => {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
t.forEach((c) => c.addEventListener("abort", a));
|
|
1091
1091
|
const { signal: u } = r;
|
|
1092
|
-
return u.unsubscribe = () =>
|
|
1092
|
+
return u.unsubscribe = () => p.asap(s), u;
|
|
1093
1093
|
}
|
|
1094
1094
|
}, Oa = function* (t, e) {
|
|
1095
1095
|
let n = t.byteLength;
|
|
@@ -1132,9 +1132,9 @@ const fn = (t) => {
|
|
|
1132
1132
|
s(), u.close();
|
|
1133
1133
|
return;
|
|
1134
1134
|
}
|
|
1135
|
-
let
|
|
1135
|
+
let f = l.byteLength;
|
|
1136
1136
|
if (n) {
|
|
1137
|
-
let d = a +=
|
|
1137
|
+
let d = a += f;
|
|
1138
1138
|
n(d);
|
|
1139
1139
|
}
|
|
1140
1140
|
u.enqueue(new Uint8Array(l));
|
|
@@ -1164,12 +1164,12 @@ const fn = (t) => {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}).headers.has("Content-Type");
|
|
1166
1166
|
return t && !e;
|
|
1167
|
-
}), ir = 64 * 1024, xt = pn && dn(() =>
|
|
1167
|
+
}), ir = 64 * 1024, xt = pn && dn(() => p.isReadableStream(new Response("").body)), Be = {
|
|
1168
1168
|
stream: xt && ((t) => t.body)
|
|
1169
1169
|
};
|
|
1170
1170
|
Ge && ((t) => {
|
|
1171
1171
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1172
|
-
!Be[e] && (Be[e] =
|
|
1172
|
+
!Be[e] && (Be[e] = p.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1173
1173
|
throw new w(`Response type '${e}' is not supported`, w.ERR_NOT_SUPPORT, r);
|
|
1174
1174
|
});
|
|
1175
1175
|
});
|
|
@@ -1177,19 +1177,19 @@ Ge && ((t) => {
|
|
|
1177
1177
|
const xa = async (t) => {
|
|
1178
1178
|
if (t == null)
|
|
1179
1179
|
return 0;
|
|
1180
|
-
if (
|
|
1180
|
+
if (p.isBlob(t))
|
|
1181
1181
|
return t.size;
|
|
1182
|
-
if (
|
|
1182
|
+
if (p.isSpecCompliantForm(t))
|
|
1183
1183
|
return (await new Request(_.origin, {
|
|
1184
1184
|
method: "POST",
|
|
1185
1185
|
body: t
|
|
1186
1186
|
}).arrayBuffer()).byteLength;
|
|
1187
|
-
if (
|
|
1187
|
+
if (p.isArrayBufferView(t) || p.isArrayBuffer(t))
|
|
1188
1188
|
return t.byteLength;
|
|
1189
|
-
if (
|
|
1189
|
+
if (p.isURLSearchParams(t) && (t = t + ""), p.isString(t))
|
|
1190
1190
|
return (await Pa(t)).byteLength;
|
|
1191
1191
|
}, _a = async (t, e) => {
|
|
1192
|
-
const n =
|
|
1192
|
+
const n = p.toFiniteNumber(t.getContentLength());
|
|
1193
1193
|
return n ?? xa(e);
|
|
1194
1194
|
}, Ca = Ge && (async (t) => {
|
|
1195
1195
|
let {
|
|
@@ -1203,7 +1203,7 @@ const xa = async (t) => {
|
|
|
1203
1203
|
onUploadProgress: u,
|
|
1204
1204
|
responseType: c,
|
|
1205
1205
|
headers: l,
|
|
1206
|
-
withCredentials:
|
|
1206
|
+
withCredentials: f = "same-origin",
|
|
1207
1207
|
fetchOptions: d
|
|
1208
1208
|
} = fn(t);
|
|
1209
1209
|
c = c ? (c + "").toLowerCase() : "text";
|
|
@@ -1214,20 +1214,20 @@ const xa = async (t) => {
|
|
|
1214
1214
|
let h;
|
|
1215
1215
|
try {
|
|
1216
1216
|
if (u && Ta && n !== "get" && n !== "head" && (h = await _a(l, r)) !== 0) {
|
|
1217
|
-
let
|
|
1217
|
+
let A = new Request(e, {
|
|
1218
1218
|
method: "POST",
|
|
1219
1219
|
body: r,
|
|
1220
1220
|
duplex: "half"
|
|
1221
1221
|
}), C;
|
|
1222
|
-
if (
|
|
1222
|
+
if (p.isFormData(r) && (C = A.headers.get("content-type")) && l.setContentType(C), A.body) {
|
|
1223
1223
|
const [F, q] = rr(
|
|
1224
1224
|
h,
|
|
1225
1225
|
$e(nr(u))
|
|
1226
1226
|
);
|
|
1227
|
-
r = ar(
|
|
1227
|
+
r = ar(A.body, ir, F, q);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
|
|
1230
|
+
p.isString(f) || (f = f ? "include" : "omit");
|
|
1231
1231
|
const b = "credentials" in Request.prototype;
|
|
1232
1232
|
y = new Request(e, {
|
|
1233
1233
|
...d,
|
|
@@ -1236,16 +1236,16 @@ const xa = async (t) => {
|
|
|
1236
1236
|
headers: l.normalize().toJSON(),
|
|
1237
1237
|
body: r,
|
|
1238
1238
|
duplex: "half",
|
|
1239
|
-
credentials: b ?
|
|
1239
|
+
credentials: b ? f : void 0
|
|
1240
1240
|
});
|
|
1241
1241
|
let E = await fetch(y, d);
|
|
1242
1242
|
const g = xt && (c === "stream" || c === "response");
|
|
1243
1243
|
if (xt && (s || g && m)) {
|
|
1244
|
-
const
|
|
1244
|
+
const A = {};
|
|
1245
1245
|
["status", "statusText", "headers"].forEach((B) => {
|
|
1246
|
-
|
|
1246
|
+
A[B] = E[B];
|
|
1247
1247
|
});
|
|
1248
|
-
const C =
|
|
1248
|
+
const C = p.toFiniteNumber(E.headers.get("content-length")), [F, q] = s && rr(
|
|
1249
1249
|
C,
|
|
1250
1250
|
$e(nr(s), !0)
|
|
1251
1251
|
) || [];
|
|
@@ -1253,14 +1253,14 @@ const xa = async (t) => {
|
|
|
1253
1253
|
ar(E.body, ir, F, () => {
|
|
1254
1254
|
q && q(), m && m();
|
|
1255
1255
|
}),
|
|
1256
|
-
|
|
1256
|
+
A
|
|
1257
1257
|
);
|
|
1258
1258
|
}
|
|
1259
1259
|
c = c || "text";
|
|
1260
|
-
let
|
|
1261
|
-
return !g && m && m(), await new Promise((
|
|
1262
|
-
cn(
|
|
1263
|
-
data:
|
|
1260
|
+
let O = await Be[p.findKey(Be, c) || "text"](E, t);
|
|
1261
|
+
return !g && m && m(), await new Promise((A, C) => {
|
|
1262
|
+
cn(A, C, {
|
|
1263
|
+
data: O,
|
|
1264
1264
|
headers: D.from(E.headers),
|
|
1265
1265
|
status: E.status,
|
|
1266
1266
|
statusText: E.statusText,
|
|
@@ -1281,7 +1281,7 @@ const xa = async (t) => {
|
|
|
1281
1281
|
xhr: Sa,
|
|
1282
1282
|
fetch: Ca
|
|
1283
1283
|
};
|
|
1284
|
-
|
|
1284
|
+
p.forEach(_t, (t, e) => {
|
|
1285
1285
|
if (t) {
|
|
1286
1286
|
try {
|
|
1287
1287
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1290,9 +1290,9 @@ f.forEach(_t, (t, e) => {
|
|
|
1290
1290
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
|
-
const sr = (t) => `- ${t}`, Fa = (t) =>
|
|
1293
|
+
const sr = (t) => `- ${t}`, Fa = (t) => p.isFunction(t) || t === null || t === !1, yn = {
|
|
1294
1294
|
getAdapter: (t) => {
|
|
1295
|
-
t =
|
|
1295
|
+
t = p.isArray(t) ? t : [t];
|
|
1296
1296
|
const { length: e } = t;
|
|
1297
1297
|
let n, r;
|
|
1298
1298
|
const o = {};
|
|
@@ -1386,7 +1386,7 @@ function Na(t, e, n) {
|
|
|
1386
1386
|
const Fe = {
|
|
1387
1387
|
assertOptions: Na,
|
|
1388
1388
|
validators: Je
|
|
1389
|
-
},
|
|
1389
|
+
}, U = Fe.validators;
|
|
1390
1390
|
class Q {
|
|
1391
1391
|
constructor(e) {
|
|
1392
1392
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1423,23 +1423,23 @@ class Q {
|
|
|
1423
1423
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Z(this.defaults, n);
|
|
1424
1424
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1425
1425
|
r !== void 0 && Fe.assertOptions(r, {
|
|
1426
|
-
silentJSONParsing:
|
|
1427
|
-
forcedJSONParsing:
|
|
1428
|
-
clarifyTimeoutError:
|
|
1429
|
-
}, !1), o != null && (
|
|
1426
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1427
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1428
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1429
|
+
}, !1), o != null && (p.isFunction(o) ? n.paramsSerializer = {
|
|
1430
1430
|
serialize: o
|
|
1431
1431
|
} : Fe.assertOptions(o, {
|
|
1432
|
-
encode:
|
|
1433
|
-
serialize:
|
|
1432
|
+
encode: U.function,
|
|
1433
|
+
serialize: U.function
|
|
1434
1434
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Fe.assertOptions(n, {
|
|
1435
|
-
baseUrl:
|
|
1436
|
-
withXsrfToken:
|
|
1435
|
+
baseUrl: U.spelling("baseURL"),
|
|
1436
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1437
1437
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1438
|
-
let i = a &&
|
|
1438
|
+
let i = a && p.merge(
|
|
1439
1439
|
a.common,
|
|
1440
1440
|
a[n.method]
|
|
1441
1441
|
);
|
|
1442
|
-
a &&
|
|
1442
|
+
a && p.forEach(
|
|
1443
1443
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1444
1444
|
(y) => {
|
|
1445
1445
|
delete a[y];
|
|
@@ -1454,17 +1454,17 @@ class Q {
|
|
|
1454
1454
|
this.interceptors.response.forEach(function(m) {
|
|
1455
1455
|
c.push(m.fulfilled, m.rejected);
|
|
1456
1456
|
});
|
|
1457
|
-
let l,
|
|
1457
|
+
let l, f = 0, d;
|
|
1458
1458
|
if (!u) {
|
|
1459
1459
|
const y = [lr.bind(this), void 0];
|
|
1460
|
-
for (y.unshift.apply(y, s), y.push.apply(y, c), d = y.length, l = Promise.resolve(n);
|
|
1461
|
-
l = l.then(y[
|
|
1460
|
+
for (y.unshift.apply(y, s), y.push.apply(y, c), d = y.length, l = Promise.resolve(n); f < d; )
|
|
1461
|
+
l = l.then(y[f++], y[f++]);
|
|
1462
1462
|
return l;
|
|
1463
1463
|
}
|
|
1464
1464
|
d = s.length;
|
|
1465
1465
|
let v = n;
|
|
1466
|
-
for (
|
|
1467
|
-
const y = s[
|
|
1466
|
+
for (f = 0; f < d; ) {
|
|
1467
|
+
const y = s[f++], m = s[f++];
|
|
1468
1468
|
try {
|
|
1469
1469
|
v = y(v);
|
|
1470
1470
|
} catch (h) {
|
|
@@ -1477,8 +1477,8 @@ class Q {
|
|
|
1477
1477
|
} catch (y) {
|
|
1478
1478
|
return Promise.reject(y);
|
|
1479
1479
|
}
|
|
1480
|
-
for (
|
|
1481
|
-
l = l.then(c[
|
|
1480
|
+
for (f = 0, d = c.length; f < d; )
|
|
1481
|
+
l = l.then(c[f++], c[f++]);
|
|
1482
1482
|
return l;
|
|
1483
1483
|
}
|
|
1484
1484
|
getUri(e) {
|
|
@@ -1487,7 +1487,7 @@ class Q {
|
|
|
1487
1487
|
return on(n, e.params, e.paramsSerializer);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
|
|
1490
|
+
p.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1491
1491
|
Q.prototype[e] = function(n, r) {
|
|
1492
1492
|
return this.request(Z(r || {}, {
|
|
1493
1493
|
method: e,
|
|
@@ -1496,7 +1496,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1496
1496
|
}));
|
|
1497
1497
|
};
|
|
1498
1498
|
});
|
|
1499
|
-
|
|
1499
|
+
p.forEach(["post", "put", "patch"], function(e) {
|
|
1500
1500
|
function n(r) {
|
|
1501
1501
|
return function(a, i, s) {
|
|
1502
1502
|
return this.request(Z(s || {}, {
|
|
@@ -1590,7 +1590,7 @@ function Da(t) {
|
|
|
1590
1590
|
};
|
|
1591
1591
|
}
|
|
1592
1592
|
function Ia(t) {
|
|
1593
|
-
return
|
|
1593
|
+
return p.isObject(t) && t.isAxiosError === !0;
|
|
1594
1594
|
}
|
|
1595
1595
|
const Ct = {
|
|
1596
1596
|
Continue: 100,
|
|
@@ -1662,7 +1662,7 @@ Object.entries(Ct).forEach(([t, e]) => {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
function mn(t) {
|
|
1664
1664
|
const e = new Q(t), n = Gr(Q.prototype.request, e);
|
|
1665
|
-
return
|
|
1665
|
+
return p.extend(n, Q.prototype, e, { allOwnKeys: !0 }), p.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1666
1666
|
return mn(Z(t, o));
|
|
1667
1667
|
}, n;
|
|
1668
1668
|
}
|
|
@@ -1682,7 +1682,7 @@ P.spread = Da;
|
|
|
1682
1682
|
P.isAxiosError = Ia;
|
|
1683
1683
|
P.mergeConfig = Z;
|
|
1684
1684
|
P.AxiosHeaders = D;
|
|
1685
|
-
P.formToJSON = (t) => sn(
|
|
1685
|
+
P.formToJSON = (t) => sn(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
1686
1686
|
P.getAdapter = yn.getAdapter;
|
|
1687
1687
|
P.HttpStatusCode = Ct;
|
|
1688
1688
|
P.default = P;
|
|
@@ -1710,11 +1710,11 @@ function Ba(t) {
|
|
|
1710
1710
|
}), n;
|
|
1711
1711
|
}
|
|
1712
1712
|
var ue = TypeError;
|
|
1713
|
-
const
|
|
1713
|
+
const Ua = {}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1714
1714
|
__proto__: null,
|
|
1715
|
-
default:
|
|
1716
|
-
}, Symbol.toStringTag, { value: "Module" })), Ma = /* @__PURE__ */ Ba(
|
|
1717
|
-
var Ht = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
1715
|
+
default: Ua
|
|
1716
|
+
}, Symbol.toStringTag, { value: "Module" })), Ma = /* @__PURE__ */ Ba(La);
|
|
1717
|
+
var Ht = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Ht && nt && typeof nt.get == "function" ? nt.get : null, fr = Ht && Map.prototype.forEach, zt = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Le = zt && ot && typeof ot.get == "function" ? ot.get : null, pr = zt && Set.prototype.forEach, ka = typeof WeakMap == "function" && WeakMap.prototype, ye = ka ? WeakMap.prototype.has : null, qa = typeof WeakSet == "function" && WeakSet.prototype, he = qa ? WeakSet.prototype.has : null, ja = typeof WeakRef == "function" && WeakRef.prototype, dr = ja ? WeakRef.prototype.deref : null, Ha = Boolean.prototype.valueOf, za = Object.prototype.toString, Wa = Function.prototype.toString, Ga = String.prototype.match, Wt = String.prototype.slice, G = String.prototype.replace, Ja = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, gn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, Va = Array.prototype.slice, mr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, vn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1718
1718
|
return t.__proto__;
|
|
1719
1719
|
} : null);
|
|
1720
1720
|
function vr(t, e) {
|
|
@@ -1773,7 +1773,7 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1773
1773
|
var l = typeof a.depth > "u" ? 5 : a.depth;
|
|
1774
1774
|
if (typeof r > "u" && (r = 0), r >= l && l > 0 && typeof e == "object")
|
|
1775
1775
|
return It(e) ? "[Array]" : "[Object]";
|
|
1776
|
-
var
|
|
1776
|
+
var f = di(a, r);
|
|
1777
1777
|
if (typeof o > "u")
|
|
1778
1778
|
o = [];
|
|
1779
1779
|
else if (En(o, e) >= 0)
|
|
@@ -1804,11 +1804,11 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1804
1804
|
if (e.length === 0)
|
|
1805
1805
|
return "[]";
|
|
1806
1806
|
var g = Pe(e, d);
|
|
1807
|
-
return
|
|
1807
|
+
return f && !pi(g) ? "[" + $t(g, f) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1808
1808
|
}
|
|
1809
1809
|
if (Za(e)) {
|
|
1810
|
-
var
|
|
1811
|
-
return !("cause" in Error.prototype) && "cause" in e && !vn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(hr.call("[cause]: " + d(e.cause),
|
|
1810
|
+
var O = Pe(e, d);
|
|
1811
|
+
return !("cause" in Error.prototype) && "cause" in e && !vn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(hr.call("[cause]: " + d(e.cause), O), ", ") + " }" : O.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(O, ", ") + " }";
|
|
1812
1812
|
}
|
|
1813
1813
|
if (typeof e == "object" && i) {
|
|
1814
1814
|
if (br && typeof e[br] == "function" && Dt)
|
|
@@ -1817,16 +1817,16 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1817
1817
|
return e.inspect();
|
|
1818
1818
|
}
|
|
1819
1819
|
if (ai(e)) {
|
|
1820
|
-
var
|
|
1820
|
+
var A = [];
|
|
1821
1821
|
return fr && fr.call(e, function(I, W) {
|
|
1822
|
-
|
|
1823
|
-
}), Er("Map",
|
|
1822
|
+
A.push(d(W, e, !0) + " => " + d(I, e));
|
|
1823
|
+
}), Er("Map", Ue.call(e), A, f);
|
|
1824
1824
|
}
|
|
1825
1825
|
if (li(e)) {
|
|
1826
1826
|
var C = [];
|
|
1827
1827
|
return pr && pr.call(e, function(I) {
|
|
1828
1828
|
C.push(d(I, e));
|
|
1829
|
-
}), Er("Set",
|
|
1829
|
+
}), Er("Set", Le.call(e), C, f);
|
|
1830
1830
|
}
|
|
1831
1831
|
if (ii(e))
|
|
1832
1832
|
return it("WeakMap");
|
|
@@ -1848,7 +1848,7 @@ var Dt = Ma, wr = Dt.custom, br = Sn(wr) ? wr : null, wn = {
|
|
|
1848
1848
|
return "{ [object globalThis] }";
|
|
1849
1849
|
if (!Xa(e) && !Sr(e)) {
|
|
1850
1850
|
var F = Pe(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", z = !q && me && Object(e) === e && me in e ? Wt.call(J(e), 8, -1) : B ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (z || B ? "[" + k.call(hr.call([], z || [], B || []), ": ") + "] " : "");
|
|
1851
|
-
return F.length === 0 ? te + "{}" :
|
|
1851
|
+
return F.length === 0 ? te + "{}" : f ? te + "{" + $t(F, f) + "}" : te + "{ " + k.call(F, ", ") + " }";
|
|
1852
1852
|
}
|
|
1853
1853
|
return String(e);
|
|
1854
1854
|
};
|
|
@@ -1929,12 +1929,12 @@ function En(t, e) {
|
|
|
1929
1929
|
return -1;
|
|
1930
1930
|
}
|
|
1931
1931
|
function ai(t) {
|
|
1932
|
-
if (!
|
|
1932
|
+
if (!Ue || !t || typeof t != "object")
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
try {
|
|
1935
|
-
|
|
1935
|
+
Ue.call(t);
|
|
1936
1936
|
try {
|
|
1937
|
-
|
|
1937
|
+
Le.call(t);
|
|
1938
1938
|
} catch {
|
|
1939
1939
|
return !0;
|
|
1940
1940
|
}
|
|
@@ -1968,12 +1968,12 @@ function si(t) {
|
|
|
1968
1968
|
return !1;
|
|
1969
1969
|
}
|
|
1970
1970
|
function li(t) {
|
|
1971
|
-
if (!
|
|
1971
|
+
if (!Le || !t || typeof t != "object")
|
|
1972
1972
|
return !1;
|
|
1973
1973
|
try {
|
|
1974
|
-
|
|
1974
|
+
Le.call(t);
|
|
1975
1975
|
try {
|
|
1976
|
-
|
|
1976
|
+
Ue.call(t);
|
|
1977
1977
|
} catch {
|
|
1978
1978
|
return !0;
|
|
1979
1979
|
}
|
|
@@ -2148,8 +2148,8 @@ if (De)
|
|
|
2148
2148
|
} catch {
|
|
2149
2149
|
De = !1;
|
|
2150
2150
|
}
|
|
2151
|
-
var
|
|
2152
|
-
function
|
|
2151
|
+
var Ui = De, st, Or;
|
|
2152
|
+
function Li() {
|
|
2153
2153
|
return Or || (Or = 1, st = function() {
|
|
2154
2154
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2155
2155
|
return !1;
|
|
@@ -2182,7 +2182,7 @@ var lt, Ar;
|
|
|
2182
2182
|
function Mi() {
|
|
2183
2183
|
if (Ar) return lt;
|
|
2184
2184
|
Ar = 1;
|
|
2185
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2185
|
+
var t = typeof Symbol < "u" && Symbol, e = Li();
|
|
2186
2186
|
return lt = function() {
|
|
2187
2187
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2188
2188
|
}, lt;
|
|
@@ -2203,14 +2203,14 @@ function ki() {
|
|
|
2203
2203
|
if (Tr) return ft;
|
|
2204
2204
|
Tr = 1;
|
|
2205
2205
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, c) {
|
|
2206
|
-
for (var l = [],
|
|
2207
|
-
l[
|
|
2206
|
+
for (var l = [], f = 0; f < u.length; f += 1)
|
|
2207
|
+
l[f] = u[f];
|
|
2208
2208
|
for (var d = 0; d < c.length; d += 1)
|
|
2209
2209
|
l[d + u.length] = c[d];
|
|
2210
2210
|
return l;
|
|
2211
2211
|
}, a = function(u, c) {
|
|
2212
|
-
for (var l = [],
|
|
2213
|
-
l[d] = u[
|
|
2212
|
+
for (var l = [], f = c, d = 0; f < u.length; f += 1, d += 1)
|
|
2213
|
+
l[d] = u[f];
|
|
2214
2214
|
return l;
|
|
2215
2215
|
}, i = function(s, u) {
|
|
2216
2216
|
for (var c = "", l = 0; l < s.length; l += 1)
|
|
@@ -2221,8 +2221,8 @@ function ki() {
|
|
|
2221
2221
|
var c = this;
|
|
2222
2222
|
if (typeof c != "function" || e.apply(c) !== r)
|
|
2223
2223
|
throw new TypeError(t + c);
|
|
2224
|
-
for (var l = a(arguments, 1),
|
|
2225
|
-
if (this instanceof
|
|
2224
|
+
for (var l = a(arguments, 1), f, d = function() {
|
|
2225
|
+
if (this instanceof f) {
|
|
2226
2226
|
var b = c.apply(
|
|
2227
2227
|
this,
|
|
2228
2228
|
o(l, arguments)
|
|
@@ -2235,12 +2235,12 @@ function ki() {
|
|
|
2235
2235
|
);
|
|
2236
2236
|
}, v = n(0, c.length - l.length), y = [], m = 0; m < v; m++)
|
|
2237
2237
|
y[m] = "$" + m;
|
|
2238
|
-
if (
|
|
2238
|
+
if (f = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), c.prototype) {
|
|
2239
2239
|
var h = function() {
|
|
2240
2240
|
};
|
|
2241
|
-
h.prototype = c.prototype,
|
|
2241
|
+
h.prototype = c.prototype, f.prototype = new h(), h.prototype = null;
|
|
2242
2242
|
}
|
|
2243
|
-
return
|
|
2243
|
+
return f;
|
|
2244
2244
|
}, ft;
|
|
2245
2245
|
}
|
|
2246
2246
|
var pt, xr;
|
|
@@ -2313,7 +2313,7 @@ var S, es = An, ts = Si, rs = Ei, ns = Oi, os = Ai, se = Ri, ae = ue, as = Pi, i
|
|
|
2313
2313
|
return Cn('"use strict"; return (' + t + ").constructor;")();
|
|
2314
2314
|
} catch {
|
|
2315
2315
|
}
|
|
2316
|
-
}, we = Rn, ds =
|
|
2316
|
+
}, we = Rn, ds = Ui, wt = function() {
|
|
2317
2317
|
throw new ae();
|
|
2318
2318
|
}, ys = we ? function() {
|
|
2319
2319
|
try {
|
|
@@ -2517,11 +2517,11 @@ var ws = function t(e) {
|
|
|
2517
2517
|
throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2518
2518
|
var r = Rs(e), o = r.length > 0 ? r[0] : "", a = Ps("%" + o + "%", n), i = a.name, s = a.value, u = !1, c = a.alias;
|
|
2519
2519
|
c && (o = c[0], Ss(r, bs([0, 1], c)));
|
|
2520
|
-
for (var l = 1,
|
|
2520
|
+
for (var l = 1, f = !0; l < r.length; l += 1) {
|
|
2521
2521
|
var d = r[l], v = ke(d, 0, 1), y = ke(d, -1);
|
|
2522
2522
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2523
2523
|
throw new se("property names with quotes must have matching quotes");
|
|
2524
|
-
if ((d === "constructor" || !
|
|
2524
|
+
if ((d === "constructor" || !f) && (u = !0), o += "." + d, i = "%" + o + "%", Me(X, i))
|
|
2525
2525
|
s = X[i];
|
|
2526
2526
|
else if (s != null) {
|
|
2527
2527
|
if (!(d in s)) {
|
|
@@ -2531,10 +2531,10 @@ var ws = function t(e) {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
if (we && l + 1 >= r.length) {
|
|
2533
2533
|
var m = we(s, d);
|
|
2534
|
-
|
|
2534
|
+
f = !!m, f && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2535
2535
|
} else
|
|
2536
|
-
|
|
2537
|
-
|
|
2536
|
+
f = Me(s, d), s = s[d];
|
|
2537
|
+
f && !u && (X[i] = s);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
return s;
|
|
@@ -2573,13 +2573,13 @@ function() {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
};
|
|
2575
2575
|
return n;
|
|
2576
|
-
}, Bs = Jt, Xe = In,
|
|
2576
|
+
}, Bs = Jt, Xe = In, Us = Ve, Te = $n, Ls = ue, ne = Bs("%WeakMap%", !0), Ms = Xe("WeakMap.prototype.get", !0), ks = Xe("WeakMap.prototype.set", !0), qs = Xe("WeakMap.prototype.has", !0), js = Xe("WeakMap.prototype.delete", !0), Hs = ne ? (
|
|
2577
2577
|
/** @type {Exclude<import('.'), false>} */
|
|
2578
2578
|
function() {
|
|
2579
2579
|
var e, n, r = {
|
|
2580
2580
|
assert: function(o) {
|
|
2581
2581
|
if (!r.has(o))
|
|
2582
|
-
throw new
|
|
2582
|
+
throw new Ls("Side channel does not contain " + Us(o));
|
|
2583
2583
|
},
|
|
2584
2584
|
delete: function(o) {
|
|
2585
2585
|
if (ne && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2636,7 +2636,7 @@ function() {
|
|
|
2636
2636
|
},
|
|
2637
2637
|
RFC1738: bt.RFC1738,
|
|
2638
2638
|
RFC3986: bt.RFC3986
|
|
2639
|
-
}, Ys = Vt, St = Object.prototype.hasOwnProperty, V = Array.isArray,
|
|
2639
|
+
}, Ys = Vt, St = Object.prototype.hasOwnProperty, V = Array.isArray, L = function() {
|
|
2640
2640
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2641
2641
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2642
2642
|
return t;
|
|
@@ -2700,25 +2700,25 @@ function() {
|
|
|
2700
2700
|
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2701
2701
|
});
|
|
2702
2702
|
for (var s = "", u = 0; u < i.length; u += Et) {
|
|
2703
|
-
for (var c = i.length >= Et ? i.slice(u, u + Et) : i, l = [],
|
|
2704
|
-
var d = c.charCodeAt(
|
|
2703
|
+
for (var c = i.length >= Et ? i.slice(u, u + Et) : i, l = [], f = 0; f < c.length; ++f) {
|
|
2704
|
+
var d = c.charCodeAt(f);
|
|
2705
2705
|
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Ys.RFC1738 && (d === 40 || d === 41)) {
|
|
2706
|
-
l[l.length] = c.charAt(
|
|
2706
|
+
l[l.length] = c.charAt(f);
|
|
2707
2707
|
continue;
|
|
2708
2708
|
}
|
|
2709
2709
|
if (d < 128) {
|
|
2710
|
-
l[l.length] =
|
|
2710
|
+
l[l.length] = L[d];
|
|
2711
2711
|
continue;
|
|
2712
2712
|
}
|
|
2713
2713
|
if (d < 2048) {
|
|
2714
|
-
l[l.length] =
|
|
2714
|
+
l[l.length] = L[192 | d >> 6] + L[128 | d & 63];
|
|
2715
2715
|
continue;
|
|
2716
2716
|
}
|
|
2717
2717
|
if (d < 55296 || d >= 57344) {
|
|
2718
|
-
l[l.length] =
|
|
2718
|
+
l[l.length] = L[224 | d >> 12] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2719
2719
|
continue;
|
|
2720
2720
|
}
|
|
2721
|
-
|
|
2721
|
+
f += 1, d = 65536 + ((d & 1023) << 10 | c.charCodeAt(f) & 1023), l[l.length] = L[240 | d >> 18] + L[128 | d >> 12 & 63] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2722
2722
|
}
|
|
2723
2723
|
s += l.join("");
|
|
2724
2724
|
}
|
|
@@ -2743,7 +2743,7 @@ function() {
|
|
|
2743
2743
|
return r;
|
|
2744
2744
|
}
|
|
2745
2745
|
return n(e);
|
|
2746
|
-
},
|
|
2746
|
+
}, Un = {
|
|
2747
2747
|
arrayToObject: Bn,
|
|
2748
2748
|
assign: rl,
|
|
2749
2749
|
combine: ll,
|
|
@@ -2754,7 +2754,7 @@ function() {
|
|
|
2754
2754
|
isRegExp: il,
|
|
2755
2755
|
maybeMap: cl,
|
|
2756
2756
|
merge: tl
|
|
2757
|
-
},
|
|
2757
|
+
}, Ln = Qs, Ie = Un, ge = Vt, ul = Object.prototype.hasOwnProperty, Mn = {
|
|
2758
2758
|
brackets: function(e) {
|
|
2759
2759
|
return e + "[]";
|
|
2760
2760
|
},
|
|
@@ -2767,7 +2767,7 @@ function() {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
}, M = Array.isArray, fl = Array.prototype.push, kn = function(t, e) {
|
|
2769
2769
|
fl.apply(t, M(e) ? e : [e]);
|
|
2770
|
-
}, pl = Date.prototype.toISOString,
|
|
2770
|
+
}, pl = Date.prototype.toISOString, Ur = ge.default, T = {
|
|
2771
2771
|
addQueryPrefix: !1,
|
|
2772
2772
|
allowDots: !1,
|
|
2773
2773
|
allowEmptyArrays: !1,
|
|
@@ -2781,8 +2781,8 @@ function() {
|
|
|
2781
2781
|
encoder: Ie.encode,
|
|
2782
2782
|
encodeValuesOnly: !1,
|
|
2783
2783
|
filter: void 0,
|
|
2784
|
-
format:
|
|
2785
|
-
formatter: ge.formatters[
|
|
2784
|
+
format: Ur,
|
|
2785
|
+
formatter: ge.formatters[Ur],
|
|
2786
2786
|
// deprecated
|
|
2787
2787
|
indices: !1,
|
|
2788
2788
|
serializeDate: function(e) {
|
|
@@ -2792,15 +2792,15 @@ function() {
|
|
|
2792
2792
|
strictNullHandling: !1
|
|
2793
2793
|
}, dl = function(e) {
|
|
2794
2794
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2795
|
-
}, Ot = {}, yl = function t(e, n, r, o, a, i, s, u, c, l,
|
|
2796
|
-
for (var g = e,
|
|
2797
|
-
var F =
|
|
2798
|
-
if (
|
|
2799
|
-
if (F ===
|
|
2795
|
+
}, Ot = {}, yl = function t(e, n, r, o, a, i, s, u, c, l, f, d, v, y, m, h, b, E) {
|
|
2796
|
+
for (var g = e, O = E, A = 0, C = !1; (O = O.get(Ot)) !== void 0 && !C; ) {
|
|
2797
|
+
var F = O.get(e);
|
|
2798
|
+
if (A += 1, typeof F < "u") {
|
|
2799
|
+
if (F === A)
|
|
2800
2800
|
throw new RangeError("Cyclic object value");
|
|
2801
2801
|
C = !0;
|
|
2802
2802
|
}
|
|
2803
|
-
typeof
|
|
2803
|
+
typeof O.get(Ot) > "u" && (A = 0);
|
|
2804
2804
|
}
|
|
2805
2805
|
if (typeof l == "function" ? g = l(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ie.maybeMap(g, function(Ye) {
|
|
2806
2806
|
return Ye instanceof Date ? v(Ye) : Ye;
|
|
@@ -2826,7 +2826,7 @@ function() {
|
|
|
2826
2826
|
z = l;
|
|
2827
2827
|
else {
|
|
2828
2828
|
var Re = Object.keys(g);
|
|
2829
|
-
z =
|
|
2829
|
+
z = f ? Re.sort(f) : Re;
|
|
2830
2830
|
}
|
|
2831
2831
|
var te = u ? String(n).replace(/\./g, "%2E") : String(n), I = o && M(g) && g.length === 1 ? te + "[]" : te;
|
|
2832
2832
|
if (a && M(g) && g.length === 0)
|
|
@@ -2835,8 +2835,8 @@ function() {
|
|
|
2835
2835
|
var j = z[W], fe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2836
2836
|
if (!(s && fe === null)) {
|
|
2837
2837
|
var Ze = d && u ? String(j).replace(/\./g, "%2E") : String(j), Gn = M(g) ? typeof r == "function" ? r(I, Ze) : I : I + (d ? "." + Ze : "[" + Ze + "]");
|
|
2838
|
-
E.set(e,
|
|
2839
|
-
var Qt =
|
|
2838
|
+
E.set(e, A);
|
|
2839
|
+
var Qt = Ln();
|
|
2840
2840
|
Qt.set(Ot, E), kn(B, t(
|
|
2841
2841
|
fe,
|
|
2842
2842
|
Gn,
|
|
@@ -2848,7 +2848,7 @@ function() {
|
|
|
2848
2848
|
u,
|
|
2849
2849
|
r === "comma" && h && M(g) ? null : c,
|
|
2850
2850
|
l,
|
|
2851
|
-
|
|
2851
|
+
f,
|
|
2852
2852
|
d,
|
|
2853
2853
|
v,
|
|
2854
2854
|
y,
|
|
@@ -2913,11 +2913,11 @@ function() {
|
|
|
2913
2913
|
return "";
|
|
2914
2914
|
var s = Mn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2915
2915
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2916
|
-
for (var c =
|
|
2917
|
-
var
|
|
2916
|
+
for (var c = Ln(), l = 0; l < o.length; ++l) {
|
|
2917
|
+
var f = o[l], d = n[f];
|
|
2918
2918
|
r.skipNulls && d === null || kn(i, yl(
|
|
2919
2919
|
d,
|
|
2920
|
-
|
|
2920
|
+
f,
|
|
2921
2921
|
s,
|
|
2922
2922
|
u,
|
|
2923
2923
|
r.allowEmptyArrays,
|
|
@@ -2938,7 +2938,7 @@ function() {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2940
2940
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2941
|
-
}, Y =
|
|
2941
|
+
}, Y = Un, Bt = Object.prototype.hasOwnProperty, Lr = Array.isArray, R = {
|
|
2942
2942
|
allowDots: !1,
|
|
2943
2943
|
allowEmptyArrays: !1,
|
|
2944
2944
|
allowPrototypes: !1,
|
|
@@ -2985,17 +2985,17 @@ function() {
|
|
|
2985
2985
|
i[u].indexOf("utf8=") === 0 && (i[u] === wl ? c = "utf-8" : i[u] === vl && (c = "iso-8859-1"), s = u, u = i.length);
|
|
2986
2986
|
for (u = 0; u < i.length; ++u)
|
|
2987
2987
|
if (u !== s) {
|
|
2988
|
-
var l = i[u],
|
|
2988
|
+
var l = i[u], f = l.indexOf("]="), d = f === -1 ? l.indexOf("=") : f + 1, v, y;
|
|
2989
2989
|
d === -1 ? (v = n.decoder(l, R.decoder, c, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), R.decoder, c, "key"), y = Y.maybeMap(
|
|
2990
2990
|
qn(
|
|
2991
2991
|
l.slice(d + 1),
|
|
2992
2992
|
n,
|
|
2993
|
-
|
|
2993
|
+
Lr(r[v]) ? r[v].length : 0
|
|
2994
2994
|
),
|
|
2995
2995
|
function(h) {
|
|
2996
2996
|
return n.decoder(h, R.decoder, c, "value");
|
|
2997
2997
|
}
|
|
2998
|
-
)), y && n.interpretNumericEntities && c === "iso-8859-1" && (y = gl(String(y))), l.indexOf("[]=") > -1 && (y =
|
|
2998
|
+
)), y && n.interpretNumericEntities && c === "iso-8859-1" && (y = gl(String(y))), l.indexOf("[]=") > -1 && (y = Lr(y) ? [y] : y);
|
|
2999
2999
|
var m = Bt.call(r, v);
|
|
3000
3000
|
m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3001
3001
|
}
|
|
@@ -3012,8 +3012,8 @@ function() {
|
|
|
3012
3012
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : Y.combine([], i);
|
|
3013
3013
|
else {
|
|
3014
3014
|
u = n.plainObjects ? { __proto__: null } : {};
|
|
3015
|
-
var l = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c,
|
|
3016
|
-
!n.parseArrays &&
|
|
3015
|
+
var l = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, f = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, d = parseInt(f, 10);
|
|
3016
|
+
!n.parseArrays && f === "" ? u = { 0: i } : !isNaN(d) && c !== f && String(d) === f && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (u = [], u[d] = i) : f !== "__proto__" && (u[f] = i);
|
|
3017
3017
|
}
|
|
3018
3018
|
i = u;
|
|
3019
3019
|
}
|
|
@@ -3026,8 +3026,8 @@ function() {
|
|
|
3026
3026
|
return;
|
|
3027
3027
|
l.push(c);
|
|
3028
3028
|
}
|
|
3029
|
-
for (var
|
|
3030
|
-
if (
|
|
3029
|
+
for (var f = 0; r.depth > 0 && (u = s.exec(a)) !== null && f < r.depth; ) {
|
|
3030
|
+
if (f += 1, !r.plainObjects && Bt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3031
3031
|
return;
|
|
3032
3032
|
l.push(u[1]);
|
|
3033
3033
|
}
|
|
@@ -3114,7 +3114,7 @@ var Cl = {
|
|
|
3114
3114
|
);
|
|
3115
3115
|
}
|
|
3116
3116
|
};
|
|
3117
|
-
function
|
|
3117
|
+
function Ut(t, e) {
|
|
3118
3118
|
function n(o, a, i) {
|
|
3119
3119
|
if (!(typeof document > "u")) {
|
|
3120
3120
|
i = xe({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3152,10 +3152,10 @@ function Lt(t, e) {
|
|
|
3152
3152
|
);
|
|
3153
3153
|
},
|
|
3154
3154
|
withAttributes: function(o) {
|
|
3155
|
-
return
|
|
3155
|
+
return Ut(this.converter, xe({}, this.attributes, o));
|
|
3156
3156
|
},
|
|
3157
3157
|
withConverter: function(o) {
|
|
3158
|
-
return
|
|
3158
|
+
return Ut(xe({}, this.converter, o), this.attributes);
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
3161
|
{
|
|
@@ -3164,9 +3164,9 @@ function Lt(t, e) {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
);
|
|
3166
3166
|
}
|
|
3167
|
-
var Mr =
|
|
3168
|
-
|
|
3169
|
-
|
|
3167
|
+
var Mr = Ut(Cl, { path: "/" });
|
|
3168
|
+
Lt.extend(Yn);
|
|
3169
|
+
Lt.extend(eo);
|
|
3170
3170
|
const Kt = Wr(), jn = Kt.sso ?? !0, kr = Kt.i18n ?? !0, Hn = Kt.noRedireLogin ?? !1;
|
|
3171
3171
|
let qr = "", jr = 0;
|
|
3172
3172
|
const Fl = 1e3, Hr = async (t, e, n = []) => {
|
|
@@ -3186,40 +3186,40 @@ const Nl = 5e3, zn = () => At ? !1 : (At = !0, setTimeout(() => {
|
|
|
3186
3186
|
if (Hn) return;
|
|
3187
3187
|
const t = "/login";
|
|
3188
3188
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3189
|
-
}, Dl = async (t) => {
|
|
3189
|
+
}, Dl = () => Kn("code") || "" || Hn ? !1 : zn() ? (jn ? Qn({ ...Xn, redirect_uri: Zn }) : Wn(), !0) : !1, Il = async (t) => {
|
|
3190
3190
|
var n;
|
|
3191
3191
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3192
|
-
},
|
|
3193
|
-
var m, h, b
|
|
3192
|
+
}, $l = async (t, e) => {
|
|
3193
|
+
var y, m, h, b;
|
|
3194
3194
|
const { t: n } = zr();
|
|
3195
3195
|
let r, o, a = {};
|
|
3196
3196
|
const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
|
|
3197
|
-
let s = ((
|
|
3198
|
-
const u =
|
|
3199
|
-
if (
|
|
3200
|
-
|
|
3201
|
-
const
|
|
3202
|
-
if (kr &&
|
|
3203
|
-
const
|
|
3204
|
-
o = O === s.status ? await Hr(n, s.status,
|
|
3197
|
+
let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
|
|
3198
|
+
const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
|
|
3199
|
+
if (u === 401 || c === 401) {
|
|
3200
|
+
Dl(), r = u || c, a = s;
|
|
3201
|
+
const E = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3202
|
+
if (kr && E && (s != null && s.status)) {
|
|
3203
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...g);
|
|
3204
|
+
o = O === s.status ? await Hr(n, s.status, g) : O;
|
|
3205
3205
|
} else
|
|
3206
3206
|
o = (s == null ? void 0 : s.msg) || i[r] || (t == null ? void 0 : t.message);
|
|
3207
3207
|
} else if (t.response) {
|
|
3208
|
-
if (s instanceof Blob && (s = await new Promise((
|
|
3209
|
-
const
|
|
3210
|
-
|
|
3208
|
+
if (s instanceof Blob && (s = await new Promise((E) => {
|
|
3209
|
+
const g = new FileReader();
|
|
3210
|
+
g.readAsText(s, "utf-8"), g.onload = () => {
|
|
3211
3211
|
try {
|
|
3212
|
-
|
|
3212
|
+
E(JSON.parse(g.result || "{}"));
|
|
3213
3213
|
} catch {
|
|
3214
|
-
|
|
3214
|
+
E({ code: 400, msg: n("解析错误") });
|
|
3215
3215
|
}
|
|
3216
3216
|
};
|
|
3217
3217
|
})), s.code !== void 0 && s.code !== null) {
|
|
3218
3218
|
r = s.code, a = s;
|
|
3219
|
-
const
|
|
3220
|
-
if (kr &&
|
|
3221
|
-
const
|
|
3222
|
-
o = O === s.status ? await Hr(n, s.status,
|
|
3219
|
+
const E = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3220
|
+
if (kr && E && (s != null && s.status)) {
|
|
3221
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...g);
|
|
3222
|
+
o = O === s.status ? await Hr(n, s.status, g) : O;
|
|
3223
3223
|
} else
|
|
3224
3224
|
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3225
3225
|
} else
|
|
@@ -3227,46 +3227,46 @@ const Nl = 5e3, zn = () => At ? !1 : (At = !0, setTimeout(() => {
|
|
|
3227
3227
|
o || (o = i[t.response.status] || t.message);
|
|
3228
3228
|
} else t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3229
3229
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3230
|
-
const
|
|
3231
|
-
return !(e != null && e.ignoreErrorMessage) && o && (!
|
|
3230
|
+
const f = Date.now(), d = o === qr, v = f - jr < Fl;
|
|
3231
|
+
return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), qr = o, jr = f), { ...a, code: r, msg: o, error: t };
|
|
3232
3232
|
};
|
|
3233
|
-
function
|
|
3233
|
+
function Gl(t, e) {
|
|
3234
3234
|
const n = P.create();
|
|
3235
3235
|
return Jn(n, async (r) => {
|
|
3236
3236
|
const { currentLang: o } = zr(), a = Wr();
|
|
3237
3237
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3238
|
-
let
|
|
3239
|
-
if (a.token && (
|
|
3238
|
+
let f = "";
|
|
3239
|
+
if (a.token && (f = a.token), !f) {
|
|
3240
3240
|
const d = new URL(location.href).searchParams;
|
|
3241
|
-
|
|
3241
|
+
f = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
|
|
3242
3242
|
}
|
|
3243
3243
|
if (jn)
|
|
3244
|
-
|
|
3244
|
+
f || (f = await Vn(r));
|
|
3245
3245
|
else {
|
|
3246
|
-
|
|
3246
|
+
f || (f = no());
|
|
3247
3247
|
let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3248
|
-
|
|
3248
|
+
f ? f = await oo(d, (y) => {
|
|
3249
3249
|
window.localStorage.setItem("tokenInfo", JSON.stringify(y));
|
|
3250
3250
|
}) : zn() && Wn();
|
|
3251
3251
|
}
|
|
3252
|
-
|
|
3252
|
+
f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
|
|
3253
3253
|
}
|
|
3254
|
-
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (
|
|
3254
|
+
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => _l.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = $l), (r.csrf ?? !1) && (r.headers["csrf-token"] = Mr.get("csrf-token"));
|
|
3255
3255
|
const u = r.params || {};
|
|
3256
3256
|
if (u.project === void 0) {
|
|
3257
|
-
let
|
|
3257
|
+
let f = 0;
|
|
3258
3258
|
const d = new URL(location.href).searchParams;
|
|
3259
|
-
|
|
3259
|
+
f = d.get("project") || d.get("projectId") || 0, f || (f = to().id ?? 0), (f || f === 0) && (u.project = f);
|
|
3260
3260
|
}
|
|
3261
3261
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3262
|
-
const { instanceInfo:
|
|
3263
|
-
|
|
3262
|
+
const { instanceInfo: f } = ro();
|
|
3263
|
+
f != null && f.instanceId && (u.instance = f.instanceId);
|
|
3264
3264
|
}
|
|
3265
|
-
r.params = u, r.headers.Timezone =
|
|
3265
|
+
r.params = u, r.headers.Timezone = Lt.tz.guess(), r.headers["X-Origin"] = location.origin;
|
|
3266
3266
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3267
3267
|
return l && (r.headers["Accept-Language"] = l), l && Mr.set("locale", l), (e == null ? void 0 : e(r)) || r;
|
|
3268
3268
|
});
|
|
3269
3269
|
}
|
|
3270
3270
|
export {
|
|
3271
|
-
|
|
3271
|
+
Gl as createService
|
|
3272
3272
|
};
|