@das-fed/utils 6.4.0-dev.55.4 → 6.4.0-dev.55.5
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/i18n/index.d.ts +13 -0
- package/api-services/i18n/index.js +18 -13
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +359 -353
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +166 -165
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +166 -165
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +170 -169
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +166 -165
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +175 -174
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +166 -165
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +104 -103
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +166 -165
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +138 -137
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +170 -169
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +165 -164
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +120 -119
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +120 -119
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +166 -165
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +170 -169
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +166 -165
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +166 -165
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +170 -169
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +167 -166
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +166 -165
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +166 -165
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +166 -165
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +116 -115
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/i18n/index.d.ts +6 -0
- package/create-api-service/i18n/index.js +7 -6
- package/create-api-service/index.js +116 -115
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -3,8 +3,8 @@ import { curringHttp as En } from "@das-fed/utils/curring-http";
|
|
|
3
3
|
import { getToken as An, getQuery as On, login as Rn, getTokenParams as Pn, real_uri as Tn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Pt from "dayjs";
|
|
5
5
|
import xn from "dayjs/plugin/utc";
|
|
6
|
-
import
|
|
7
|
-
import { getProjectInfo as
|
|
6
|
+
import Cn from "dayjs/plugin/timezone";
|
|
7
|
+
import { getProjectInfo as Fn, getInstanceInfo as Nn } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as Dn } from "@das-fed/utils/token-tools";
|
|
9
9
|
import { getConfig as Or } from "@das-fed/utils/config";
|
|
10
10
|
function Rr(t, e) {
|
|
@@ -12,27 +12,27 @@ function Rr(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString:
|
|
16
|
-
const n =
|
|
15
|
+
const { toString: _n } = Object.prototype, { getPrototypeOf: Tt } = Object, Me = /* @__PURE__ */ ((t) => (e) => {
|
|
16
|
+
const n = _n.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
|
-
})(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) =>
|
|
19
|
-
function
|
|
20
|
-
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) &&
|
|
18
|
+
})(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), je = (t) => (e) => typeof e === t, { isArray: ue } = Array, we = je("undefined");
|
|
19
|
+
function In(t) {
|
|
20
|
+
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && I(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
22
|
const Pr = B("ArrayBuffer");
|
|
23
23
|
function $n(t) {
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Pr(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const Bn = je("string"),
|
|
28
|
-
if (
|
|
27
|
+
const Bn = je("string"), I = je("function"), Tr = je("number"), qe = (t) => t !== null && typeof t == "object", Un = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
|
+
if (Me(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Tt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
32
|
-
}, Ln = B("Date"),
|
|
32
|
+
}, Ln = B("Date"), kn = B("File"), Mn = B("Blob"), jn = B("FileList"), qn = (t) => qe(t) && I(t.pipe), zn = (t) => {
|
|
33
33
|
let e;
|
|
34
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
35
|
-
e === "object" &&
|
|
34
|
+
return t && (typeof FormData == "function" && t instanceof FormData || I(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
|
|
35
|
+
e === "object" && I(t.toString) && t.toString() === "[object FormData]"));
|
|
36
36
|
}, Hn = B("URLSearchParams"), [Wn, Gn, Jn, Vn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Kn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Se(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
@@ -57,18 +57,18 @@ function xr(t, e) {
|
|
|
57
57
|
return o;
|
|
58
58
|
return null;
|
|
59
59
|
}
|
|
60
|
-
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
60
|
+
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Cr = (t) => !we(t) && t !== X;
|
|
61
61
|
function ft() {
|
|
62
|
-
const { caseless: t } =
|
|
62
|
+
const { caseless: t } = Cr(this) && this || {}, e = {}, n = (r, o) => {
|
|
63
63
|
const a = t && xr(e, o) || o;
|
|
64
|
-
|
|
64
|
+
Fe(e[a]) && Fe(r) ? e[a] = ft(e[a], r) : Fe(r) ? e[a] = ft({}, r) : ue(r) ? e[a] = r.slice() : e[a] = r;
|
|
65
65
|
};
|
|
66
66
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
67
67
|
arguments[r] && Se(arguments[r], n);
|
|
68
68
|
return e;
|
|
69
69
|
}
|
|
70
70
|
const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
71
|
-
n &&
|
|
71
|
+
n && I(o) ? t[a] = Rr(o, n) : t[a] = o;
|
|
72
72
|
}, { allOwnKeys: r }), t), Xn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Yn = (t, e, n, r) => {
|
|
73
73
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
74
74
|
value: e.prototype
|
|
@@ -114,18 +114,18 @@ const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
114
114
|
function(n, r, o) {
|
|
115
115
|
return r.toUpperCase() + o;
|
|
116
116
|
}
|
|
117
|
-
),
|
|
117
|
+
), Mt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), so = B("RegExp"), Fr = (t, e) => {
|
|
118
118
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
119
119
|
Se(n, (o, a) => {
|
|
120
120
|
let i;
|
|
121
121
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
122
122
|
}), Object.defineProperties(t, r);
|
|
123
123
|
}, lo = (t) => {
|
|
124
|
-
|
|
125
|
-
if (
|
|
124
|
+
Fr(t, (e, n) => {
|
|
125
|
+
if (I(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
126
126
|
return !1;
|
|
127
127
|
const r = t[n];
|
|
128
|
-
if (
|
|
128
|
+
if (I(r)) {
|
|
129
129
|
if (e.enumerable = !1, "writable" in e) {
|
|
130
130
|
e.writable = !1;
|
|
131
131
|
return;
|
|
@@ -155,7 +155,7 @@ const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
155
155
|
return n;
|
|
156
156
|
};
|
|
157
157
|
function yo(t) {
|
|
158
|
-
return !!(t &&
|
|
158
|
+
return !!(t && I(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
159
159
|
}
|
|
160
160
|
const ho = (t) => {
|
|
161
161
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -174,34 +174,34 @@ const ho = (t) => {
|
|
|
174
174
|
return r;
|
|
175
175
|
};
|
|
176
176
|
return n(t, 0);
|
|
177
|
-
}, mo = B("AsyncFunction"), go = (t) => t && (qe(t) ||
|
|
177
|
+
}, mo = B("AsyncFunction"), go = (t) => t && (qe(t) || I(t)) && I(t.then) && I(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, r) => (X.addEventListener("message", ({ source: o, data: a }) => {
|
|
178
178
|
o === X && a === n && r.length && r.shift()();
|
|
179
179
|
}, !1), (o) => {
|
|
180
180
|
r.push(o), X.postMessage(n, "*");
|
|
181
181
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
182
182
|
typeof setImmediate == "function",
|
|
183
|
-
|
|
183
|
+
I(X.postMessage)
|
|
184
184
|
), vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Dr, f = {
|
|
185
185
|
isArray: ue,
|
|
186
186
|
isArrayBuffer: Pr,
|
|
187
|
-
isBuffer:
|
|
187
|
+
isBuffer: In,
|
|
188
188
|
isFormData: zn,
|
|
189
189
|
isArrayBufferView: $n,
|
|
190
190
|
isString: Bn,
|
|
191
191
|
isNumber: Tr,
|
|
192
192
|
isBoolean: Un,
|
|
193
193
|
isObject: qe,
|
|
194
|
-
isPlainObject:
|
|
194
|
+
isPlainObject: Fe,
|
|
195
195
|
isReadableStream: Wn,
|
|
196
196
|
isRequest: Gn,
|
|
197
197
|
isResponse: Jn,
|
|
198
198
|
isHeaders: Vn,
|
|
199
199
|
isUndefined: we,
|
|
200
200
|
isDate: Ln,
|
|
201
|
-
isFile:
|
|
202
|
-
isBlob:
|
|
201
|
+
isFile: kn,
|
|
202
|
+
isBlob: Mn,
|
|
203
203
|
isRegExp: so,
|
|
204
|
-
isFunction:
|
|
204
|
+
isFunction: I,
|
|
205
205
|
isStream: qn,
|
|
206
206
|
isURLSearchParams: Hn,
|
|
207
207
|
isTypedArray: ro,
|
|
@@ -213,17 +213,17 @@ const ho = (t) => {
|
|
|
213
213
|
stripBOM: Xn,
|
|
214
214
|
inherits: Yn,
|
|
215
215
|
toFlatObject: Zn,
|
|
216
|
-
kindOf:
|
|
216
|
+
kindOf: Me,
|
|
217
217
|
kindOfTest: B,
|
|
218
218
|
endsWith: eo,
|
|
219
219
|
toArray: to,
|
|
220
220
|
forEachEntry: no,
|
|
221
221
|
matchAll: oo,
|
|
222
222
|
isHTMLForm: ao,
|
|
223
|
-
hasOwnProperty:
|
|
224
|
-
hasOwnProp:
|
|
223
|
+
hasOwnProperty: Mt,
|
|
224
|
+
hasOwnProp: Mt,
|
|
225
225
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
226
|
-
reduceDescriptors:
|
|
226
|
+
reduceDescriptors: Fr,
|
|
227
227
|
freezeMethods: lo,
|
|
228
228
|
toObjectSet: co,
|
|
229
229
|
toCamelCase: io,
|
|
@@ -231,7 +231,7 @@ const ho = (t) => {
|
|
|
231
231
|
toFiniteNumber: fo,
|
|
232
232
|
findKey: xr,
|
|
233
233
|
global: X,
|
|
234
|
-
isContextDefined:
|
|
234
|
+
isContextDefined: Cr,
|
|
235
235
|
ALPHABET: Nr,
|
|
236
236
|
generateString: po,
|
|
237
237
|
isSpecCompliantForm: yo,
|
|
@@ -265,7 +265,7 @@ f.inherits(b, Error, {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
const
|
|
268
|
+
const _r = b.prototype, Ir = {};
|
|
269
269
|
[
|
|
270
270
|
"ERR_BAD_OPTION_VALUE",
|
|
271
271
|
"ERR_BAD_OPTION",
|
|
@@ -281,12 +281,12 @@ const Ir = b.prototype, _r = {};
|
|
|
281
281
|
"ERR_INVALID_URL"
|
|
282
282
|
// eslint-disable-next-line func-names
|
|
283
283
|
].forEach((t) => {
|
|
284
|
-
|
|
284
|
+
Ir[t] = { value: t };
|
|
285
285
|
});
|
|
286
|
-
Object.defineProperties(b,
|
|
287
|
-
Object.defineProperty(
|
|
286
|
+
Object.defineProperties(b, Ir);
|
|
287
|
+
Object.defineProperty(_r, "isAxiosError", { value: !0 });
|
|
288
288
|
b.from = (t, e, n, r, o, a) => {
|
|
289
|
-
const i = Object.create(
|
|
289
|
+
const i = Object.create(_r);
|
|
290
290
|
return f.toFlatObject(t, i, function(u) {
|
|
291
291
|
return u !== Error.prototype;
|
|
292
292
|
}, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
@@ -479,16 +479,16 @@ const Lr = {
|
|
|
479
479
|
Blob: Ro
|
|
480
480
|
},
|
|
481
481
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
482
|
-
},
|
|
483
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
482
|
+
}, Ct = typeof window < "u" && typeof document < "u", dt = typeof navigator == "object" && navigator || void 0, To = Ct && (!dt || ["ReactNative", "NativeScript", "NS"].indexOf(dt.product) < 0), xo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
483
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Co = Ct && window.location.href || "http://localhost", Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
484
484
|
__proto__: null,
|
|
485
|
-
hasBrowserEnv:
|
|
485
|
+
hasBrowserEnv: Ct,
|
|
486
486
|
hasStandardBrowserEnv: To,
|
|
487
487
|
hasStandardBrowserWebWorkerEnv: xo,
|
|
488
488
|
navigator: dt,
|
|
489
|
-
origin:
|
|
489
|
+
origin: Co
|
|
490
490
|
}, Symbol.toStringTag, { value: "Module" })), D = {
|
|
491
|
-
...
|
|
491
|
+
...Fo,
|
|
492
492
|
...Po
|
|
493
493
|
};
|
|
494
494
|
function No(t, e) {
|
|
@@ -501,7 +501,7 @@ function No(t, e) {
|
|
|
501
501
|
function Do(t) {
|
|
502
502
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function _o(t) {
|
|
505
505
|
const e = {}, n = Object.keys(t);
|
|
506
506
|
let r;
|
|
507
507
|
const o = n.length;
|
|
@@ -510,12 +510,12 @@ function Io(t) {
|
|
|
510
510
|
a = n[r], e[a] = t[a];
|
|
511
511
|
return e;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function kr(t) {
|
|
514
514
|
function e(n, r, o, a) {
|
|
515
515
|
let i = n[a++];
|
|
516
516
|
if (i === "__proto__") return !0;
|
|
517
517
|
const s = Number.isFinite(+i), u = a >= n.length;
|
|
518
|
-
return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] =
|
|
518
|
+
return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = _o(o[i])), !s);
|
|
519
519
|
}
|
|
520
520
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
521
521
|
const n = {};
|
|
@@ -525,7 +525,7 @@ function Mr(t) {
|
|
|
525
525
|
}
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Io(t, e, n) {
|
|
529
529
|
if (f.isString(t))
|
|
530
530
|
try {
|
|
531
531
|
return (e || JSON.parse)(t), f.trim(t);
|
|
@@ -541,7 +541,7 @@ const Ee = {
|
|
|
541
541
|
transformRequest: [function(e, n) {
|
|
542
542
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
|
|
543
543
|
if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
|
|
544
|
-
return o ? JSON.stringify(
|
|
544
|
+
return o ? JSON.stringify(kr(e)) : e;
|
|
545
545
|
if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
|
|
546
546
|
return e;
|
|
547
547
|
if (f.isArrayBufferView(e))
|
|
@@ -561,7 +561,7 @@ const Ee = {
|
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
return a || o ? (n.setContentType("application/json", !1),
|
|
564
|
+
return a || o ? (n.setContentType("application/json", !1), Io(e)) : e;
|
|
565
565
|
}],
|
|
566
566
|
transformResponse: [function(e) {
|
|
567
567
|
const n = this.transitional || Ee.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -654,10 +654,10 @@ function Ve(t, e, n, r, o) {
|
|
|
654
654
|
return r.test(e);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function ko(t) {
|
|
658
658
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Mo(t, e) {
|
|
661
661
|
const n = f.toCamelCase(" " + e);
|
|
662
662
|
["get", "set", "has"].forEach((r) => {
|
|
663
663
|
Object.defineProperty(t, r + n, {
|
|
@@ -668,7 +668,7 @@ function ko(t, e) {
|
|
|
668
668
|
});
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class _ {
|
|
672
672
|
constructor(e) {
|
|
673
673
|
e && this.set(e);
|
|
674
674
|
}
|
|
@@ -745,7 +745,7 @@ class I {
|
|
|
745
745
|
n[i] = Ne(o), delete n[a];
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
|
-
const s = e ?
|
|
748
|
+
const s = e ? ko(a) : String(a).trim();
|
|
749
749
|
s !== a && delete n[a], n[s] = Ne(o), r[s] = !0;
|
|
750
750
|
}), this;
|
|
751
751
|
}
|
|
@@ -781,13 +781,13 @@ class I {
|
|
|
781
781
|
}).accessors, o = this.prototype;
|
|
782
782
|
function a(i) {
|
|
783
783
|
const s = he(i);
|
|
784
|
-
r[s] || (
|
|
784
|
+
r[s] || (Mo(o, i), r[s] = !0);
|
|
785
785
|
}
|
|
786
786
|
return f.isArray(e) ? e.forEach(a) : a(e), this;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
|
|
790
|
-
f.reduceDescriptors(
|
|
789
|
+
_.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
790
|
+
f.reduceDescriptors(_.prototype, ({ value: t }, e) => {
|
|
791
791
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
792
792
|
return {
|
|
793
793
|
get: () => t,
|
|
@@ -796,15 +796,15 @@ f.reduceDescriptors(I.prototype, ({ value: t }, e) => {
|
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
798
|
});
|
|
799
|
-
f.freezeMethods(
|
|
799
|
+
f.freezeMethods(_);
|
|
800
800
|
function Ke(t, e) {
|
|
801
|
-
const n = this || Ee, r = e || n, o =
|
|
801
|
+
const n = this || Ee, r = e || n, o = _.from(r.headers);
|
|
802
802
|
let a = r.data;
|
|
803
803
|
return f.forEach(t, function(s) {
|
|
804
804
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
805
805
|
}), o.normalize(), a;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function Mr(t) {
|
|
808
808
|
return !!(t && t.__CANCEL__);
|
|
809
809
|
}
|
|
810
810
|
function fe(t, e, n) {
|
|
@@ -855,7 +855,7 @@ function zo(t, e) {
|
|
|
855
855
|
}, r - p)));
|
|
856
856
|
}, () => o && i(o)];
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const Ie = (t, e, n = 3) => {
|
|
859
859
|
let r = 0;
|
|
860
860
|
const o = qo(50, 250);
|
|
861
861
|
return zo((a) => {
|
|
@@ -948,7 +948,7 @@ function Jo(t, e) {
|
|
|
948
948
|
function qr(t, e) {
|
|
949
949
|
return t && !Go(e) ? Jo(t, e) : e;
|
|
950
950
|
}
|
|
951
|
-
const Vt = (t) => t instanceof
|
|
951
|
+
const Vt = (t) => t instanceof _ ? { ...t } : t;
|
|
952
952
|
function te(t, e) {
|
|
953
953
|
e = e || {};
|
|
954
954
|
const n = {};
|
|
@@ -1016,7 +1016,7 @@ function te(t, e) {
|
|
|
1016
1016
|
const zr = (t) => {
|
|
1017
1017
|
const e = te({}, t);
|
|
1018
1018
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
|
|
1019
|
-
e.headers = i =
|
|
1019
|
+
e.headers = i = _.from(i), e.url = Ur(qr(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
|
|
1020
1020
|
"Authorization",
|
|
1021
1021
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1022
1022
|
);
|
|
@@ -1038,7 +1038,7 @@ const zr = (t) => {
|
|
|
1038
1038
|
return new Promise(function(n, r) {
|
|
1039
1039
|
const o = zr(t);
|
|
1040
1040
|
let a = o.data;
|
|
1041
|
-
const i =
|
|
1041
|
+
const i = _.from(o.headers).normalize();
|
|
1042
1042
|
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, g, y;
|
|
1043
1043
|
function m() {
|
|
1044
1044
|
g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
@@ -1048,7 +1048,7 @@ const zr = (t) => {
|
|
|
1048
1048
|
function S() {
|
|
1049
1049
|
if (!h)
|
|
1050
1050
|
return;
|
|
1051
|
-
const v =
|
|
1051
|
+
const v = _.from(
|
|
1052
1052
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1053
1053
|
), A = {
|
|
1054
1054
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
@@ -1081,7 +1081,7 @@ const zr = (t) => {
|
|
|
1081
1081
|
)), h = null;
|
|
1082
1082
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1083
1083
|
h.setRequestHeader(A, T);
|
|
1084
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1084
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Ie(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, g] = Ie(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
|
|
1085
1085
|
h && (r(!v || v.type ? new fe(null, t, h) : v), h.abort(), h = null);
|
|
1086
1086
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1087
1087
|
const E = jo(o.url);
|
|
@@ -1241,11 +1241,11 @@ const ra = async (t) => {
|
|
|
1241
1241
|
method: "POST",
|
|
1242
1242
|
body: r,
|
|
1243
1243
|
duplex: "half"
|
|
1244
|
-
}),
|
|
1245
|
-
if (f.isFormData(r) && (
|
|
1244
|
+
}), F;
|
|
1245
|
+
if (f.isFormData(r) && (F = A.headers.get("content-type")) && c.setContentType(F), A.body) {
|
|
1246
1246
|
const [N, j] = Gt(
|
|
1247
1247
|
h,
|
|
1248
|
-
|
|
1248
|
+
Ie(Jt(u))
|
|
1249
1249
|
);
|
|
1250
1250
|
r = Kt(A.body, Qt, N, j);
|
|
1251
1251
|
}
|
|
@@ -1268,9 +1268,9 @@ const ra = async (t) => {
|
|
|
1268
1268
|
["status", "statusText", "headers"].forEach((U) => {
|
|
1269
1269
|
A[U] = E[U];
|
|
1270
1270
|
});
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1273
|
-
|
|
1271
|
+
const F = f.toFiniteNumber(E.headers.get("content-length")), [N, j] = s && Gt(
|
|
1272
|
+
F,
|
|
1273
|
+
Ie(Jt(s), !0)
|
|
1274
1274
|
) || [];
|
|
1275
1275
|
E = new Response(
|
|
1276
1276
|
Kt(E.body, Qt, N, () => {
|
|
@@ -1281,10 +1281,10 @@ const ra = async (t) => {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
l = l || "text";
|
|
1283
1283
|
let T = await $e[f.findKey($e, l) || "text"](E, t);
|
|
1284
|
-
return !v && m && m(), await new Promise((A,
|
|
1285
|
-
jr(A,
|
|
1284
|
+
return !v && m && m(), await new Promise((A, F) => {
|
|
1285
|
+
jr(A, F, {
|
|
1286
1286
|
data: T,
|
|
1287
|
-
headers:
|
|
1287
|
+
headers: _.from(E.headers),
|
|
1288
1288
|
status: E.status,
|
|
1289
1289
|
statusText: E.statusText,
|
|
1290
1290
|
config: t,
|
|
@@ -1349,7 +1349,7 @@ function Qe(t) {
|
|
|
1349
1349
|
throw new fe(null, t);
|
|
1350
1350
|
}
|
|
1351
1351
|
function Yt(t) {
|
|
1352
|
-
return Qe(t), t.headers =
|
|
1352
|
+
return Qe(t), t.headers = _.from(t.headers), t.data = Ke.call(
|
|
1353
1353
|
t,
|
|
1354
1354
|
t.transformRequest
|
|
1355
1355
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gr.getAdapter(t.adapter || Ee.adapter)(t).then(function(r) {
|
|
@@ -1357,23 +1357,23 @@ function Yt(t) {
|
|
|
1357
1357
|
t,
|
|
1358
1358
|
t.transformResponse,
|
|
1359
1359
|
r
|
|
1360
|
-
), r.headers =
|
|
1360
|
+
), r.headers = _.from(r.headers), r;
|
|
1361
1361
|
}, function(r) {
|
|
1362
|
-
return
|
|
1362
|
+
return Mr(r) || (Qe(t), r && r.response && (r.response.data = Ke.call(
|
|
1363
1363
|
t,
|
|
1364
1364
|
t.transformResponse,
|
|
1365
1365
|
r.response
|
|
1366
|
-
), r.response.headers =
|
|
1366
|
+
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
const Jr = "1.7.7",
|
|
1369
|
+
const Jr = "1.7.7", Ft = {};
|
|
1370
1370
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1371
|
-
|
|
1371
|
+
Ft[t] = function(r) {
|
|
1372
1372
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
1375
|
const Zt = {};
|
|
1376
|
-
|
|
1376
|
+
Ft.transitional = function(e, n, r) {
|
|
1377
1377
|
function o(a, i) {
|
|
1378
1378
|
return "[Axios v" + Jr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1379
1379
|
}
|
|
@@ -1405,7 +1405,7 @@ function ia(t, e, n) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
const mt = {
|
|
1407
1407
|
assertOptions: ia,
|
|
1408
|
-
validators:
|
|
1408
|
+
validators: Ft
|
|
1409
1409
|
}, G = mt.validators;
|
|
1410
1410
|
class Y {
|
|
1411
1411
|
constructor(e) {
|
|
@@ -1461,7 +1461,7 @@ class Y {
|
|
|
1461
1461
|
(y) => {
|
|
1462
1462
|
delete a[y];
|
|
1463
1463
|
}
|
|
1464
|
-
), n.headers =
|
|
1464
|
+
), n.headers = _.concat(i, a);
|
|
1465
1465
|
const s = [];
|
|
1466
1466
|
let u = !0;
|
|
1467
1467
|
this.interceptors.request.forEach(function(m) {
|
|
@@ -1687,7 +1687,7 @@ const R = Vr(Ee);
|
|
|
1687
1687
|
R.Axios = Y;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
1689
|
R.CancelToken = Nt;
|
|
1690
|
-
R.isCancel =
|
|
1690
|
+
R.isCancel = Mr;
|
|
1691
1691
|
R.VERSION = Jr;
|
|
1692
1692
|
R.toFormData = ze;
|
|
1693
1693
|
R.AxiosError = b;
|
|
@@ -1698,8 +1698,8 @@ R.all = function(e) {
|
|
|
1698
1698
|
R.spread = sa;
|
|
1699
1699
|
R.isAxiosError = la;
|
|
1700
1700
|
R.mergeConfig = te;
|
|
1701
|
-
R.AxiosHeaders =
|
|
1702
|
-
R.formToJSON = (t) =>
|
|
1701
|
+
R.AxiosHeaders = _;
|
|
1702
|
+
R.formToJSON = (t) => kr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1703
1703
|
R.getAdapter = Gr.getAdapter;
|
|
1704
1704
|
R.HttpStatusCode = gt;
|
|
1705
1705
|
R.default = R;
|
|
@@ -1794,7 +1794,7 @@ var fa = Error, pa = EvalError, da = RangeError, ya = ReferenceError, Kr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, xa = Ta, Dt = Function.prototype.bind || xa,
|
|
1797
|
+
}, xa = Ta, Dt = Function.prototype.bind || xa, Ca = Function.prototype.call, Fa = Object.prototype.hasOwnProperty, Na = Dt, Da = Na.call(Ca, Fa), w, _a = fa, Ia = pa, $a = da, Ba = ya, se = Kr, ie = Ae, Ua = ha, Qr = Function, Ye = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Qr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
@@ -1818,9 +1818,9 @@ var Ze = function() {
|
|
|
1818
1818
|
return Ze;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
}() : Ze, ne = va(),
|
|
1821
|
+
}() : Ze, ne = va(), ka = wa(), x = Object.getPrototypeOf || (ka ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
|
-
} : null), ae = {},
|
|
1823
|
+
} : null), ae = {}, Ma = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
|
|
1824
1824
|
__proto__: null,
|
|
1825
1825
|
"%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
|
|
1826
1826
|
"%Array%": Array,
|
|
@@ -1842,10 +1842,10 @@ var Ze = function() {
|
|
|
1842
1842
|
"%decodeURIComponent%": decodeURIComponent,
|
|
1843
1843
|
"%encodeURI%": encodeURI,
|
|
1844
1844
|
"%encodeURIComponent%": encodeURIComponent,
|
|
1845
|
-
"%Error%":
|
|
1845
|
+
"%Error%": _a,
|
|
1846
1846
|
"%eval%": eval,
|
|
1847
1847
|
// eslint-disable-line no-eval
|
|
1848
|
-
"%EvalError%":
|
|
1848
|
+
"%EvalError%": Ia,
|
|
1849
1849
|
"%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
|
|
1850
1850
|
"%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
|
|
1851
1851
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry,
|
|
@@ -1879,7 +1879,7 @@ var Ze = function() {
|
|
|
1879
1879
|
"%Symbol%": ne ? Symbol : w,
|
|
1880
1880
|
"%SyntaxError%": se,
|
|
1881
1881
|
"%ThrowTypeError%": La,
|
|
1882
|
-
"%TypedArray%":
|
|
1882
|
+
"%TypedArray%": Ma,
|
|
1883
1883
|
"%TypeError%": ie,
|
|
1884
1884
|
"%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array,
|
|
1885
1885
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray,
|
|
@@ -2020,7 +2020,7 @@ var qa = function t(e) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
return s;
|
|
2022
2022
|
}, Xr = { exports: {} }, et, ar;
|
|
2023
|
-
function
|
|
2023
|
+
function _t() {
|
|
2024
2024
|
if (ar) return et;
|
|
2025
2025
|
ar = 1;
|
|
2026
2026
|
var t = pe, e = t("%Object.defineProperty%", !0) || !1;
|
|
@@ -2039,7 +2039,7 @@ if (De)
|
|
|
2039
2039
|
} catch {
|
|
2040
2040
|
De = null;
|
|
2041
2041
|
}
|
|
2042
|
-
var Yr = De, ir =
|
|
2042
|
+
var Yr = De, ir = _t(), Xa = Kr, oe = Ae, sr = Yr, Ya = function(e, n, r) {
|
|
2043
2043
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2044
2044
|
throw new oe("`obj` must be an object or a function`");
|
|
2045
2045
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2064,7 +2064,7 @@ var Yr = De, ir = It(), Xa = Kr, oe = Ae, sr = Yr, Ya = function(e, n, r) {
|
|
|
2064
2064
|
e[n] = r;
|
|
2065
2065
|
else
|
|
2066
2066
|
throw new Xa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2067
|
-
}, vt =
|
|
2067
|
+
}, vt = _t(), Zr = function() {
|
|
2068
2068
|
return !!vt;
|
|
2069
2069
|
};
|
|
2070
2070
|
Zr.hasArrayLengthDefineBug = function() {
|
|
@@ -2101,7 +2101,7 @@ var Za = Zr, ei = pe, lr = Ya, ti = Za(), cr = Yr, ur = Ae, ri = ei("%Math.floor
|
|
|
2101
2101
|
)), e;
|
|
2102
2102
|
};
|
|
2103
2103
|
(function(t) {
|
|
2104
|
-
var e = Dt, n = pe, r = ni, o = Ae, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u =
|
|
2104
|
+
var e = Dt, n = pe, r = ni, o = Ae, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = _t(), l = n("%Math.max%");
|
|
2105
2105
|
t.exports = function(d) {
|
|
2106
2106
|
if (typeof d != "function")
|
|
2107
2107
|
throw new o("a function is required");
|
|
@@ -2125,7 +2125,7 @@ const si = {}, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: si
|
|
2127
2127
|
}, Symbol.toStringTag, { value: "Module" })), ci = /* @__PURE__ */ ua(li);
|
|
2128
|
-
var
|
|
2128
|
+
var It = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = It && tt && typeof tt.get == "function" ? tt.get : null, fr = It && Map.prototype.forEach, $t = typeof Set == "function" && Set.prototype, rt = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ke = $t && rt && typeof rt.get == "function" ? rt.get : null, pr = $t && Set.prototype.forEach, ui = typeof WeakMap == "function" && WeakMap.prototype, ge = ui ? WeakMap.prototype.has : null, fi = typeof WeakSet == "function" && WeakSet.prototype, ve = fi ? WeakSet.prototype.has : null, pi = typeof WeakRef == "function" && WeakRef.prototype, dr = pi ? WeakRef.prototype.deref : null, di = Boolean.prototype.valueOf, yi = Object.prototype.toString, hi = Function.prototype.toString, mi = String.prototype.match, Bt = String.prototype.slice, V = String.prototype.replace, gi = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, rn = RegExp.prototype.test, hr = Array.prototype.concat, M = Array.prototype.join, vi = Array.prototype.slice, mr = Math.floor, bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", C = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, nn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function vr(t, e) {
|
|
@@ -2192,13 +2192,13 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2192
2192
|
}
|
|
2193
2193
|
if (typeof e == "function" && !Sr(e)) {
|
|
2194
2194
|
var g = xi(e), y = Pe(e, d);
|
|
2195
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2195
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + M.call(y, ", ") + " }" : "");
|
|
2196
2196
|
}
|
|
2197
2197
|
if (an(e)) {
|
|
2198
2198
|
var m = le ? V.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : wt.call(e);
|
|
2199
2199
|
return typeof e == "object" && !le ? me(m) : m;
|
|
2200
2200
|
}
|
|
2201
|
-
if (
|
|
2201
|
+
if (Ii(e)) {
|
|
2202
2202
|
for (var h = "<" + yr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
|
|
2203
2203
|
h += " " + S[E].name + "=" + on(wi(S[E].value), "double", a);
|
|
2204
2204
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + yr.call(String(e.nodeName)) + ">", h;
|
|
@@ -2207,11 +2207,11 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2207
2207
|
if (e.length === 0)
|
|
2208
2208
|
return "[]";
|
|
2209
2209
|
var v = Pe(e, d);
|
|
2210
|
-
return p && !Bi(v) ? "[" + At(v, p) + "]" : "[ " +
|
|
2210
|
+
return p && !Bi(v) ? "[" + At(v, p) + "]" : "[ " + M.call(v, ", ") + " ]";
|
|
2211
2211
|
}
|
|
2212
2212
|
if (Ei(e)) {
|
|
2213
2213
|
var T = Pe(e, d);
|
|
2214
|
-
return !("cause" in Error.prototype) && "cause" in e && !nn.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2214
|
+
return !("cause" in Error.prototype) && "cause" in e && !nn.call(e, "cause") ? "{ [" + String(e) + "] " + M.call(hr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + M.call(T, ", ") + " }";
|
|
2215
2215
|
}
|
|
2216
2216
|
if (typeof e == "object" && i) {
|
|
2217
2217
|
if (wr && typeof e[wr] == "function" && St)
|
|
@@ -2219,21 +2219,21 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2219
2219
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
2220
2220
|
return e.inspect();
|
|
2221
2221
|
}
|
|
2222
|
-
if (
|
|
2222
|
+
if (Ci(e)) {
|
|
2223
2223
|
var A = [];
|
|
2224
2224
|
return fr && fr.call(e, function($, z) {
|
|
2225
2225
|
A.push(d(z, e, !0) + " => " + d($, e));
|
|
2226
2226
|
}), Er("Map", Le.call(e), A, p);
|
|
2227
2227
|
}
|
|
2228
2228
|
if (Di(e)) {
|
|
2229
|
-
var
|
|
2229
|
+
var F = [];
|
|
2230
2230
|
return pr && pr.call(e, function($) {
|
|
2231
|
-
|
|
2232
|
-
}), Er("Set",
|
|
2231
|
+
F.push(d($, e));
|
|
2232
|
+
}), Er("Set", ke.call(e), F, p);
|
|
2233
2233
|
}
|
|
2234
|
-
if (
|
|
2234
|
+
if (Fi(e))
|
|
2235
2235
|
return ot("WeakMap");
|
|
2236
|
-
if (
|
|
2236
|
+
if (_i(e))
|
|
2237
2237
|
return ot("WeakSet");
|
|
2238
2238
|
if (Ni(e))
|
|
2239
2239
|
return ot("WeakRef");
|
|
@@ -2250,8 +2250,8 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2250
2250
|
if (typeof globalThis < "u" && e === globalThis || typeof er < "u" && e === er)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!Si(e) && !Sr(e)) {
|
|
2253
|
-
var N = Pe(e, d), j = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j &&
|
|
2254
|
-
return N.length === 0 ? re + "{}" : p ? re + "{" + At(N, p) + "}" : re + "{ " +
|
|
2253
|
+
var N = Pe(e, d), j = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && C && Object(e) === e && C in e ? Bt.call(K(e), 8, -1) : U ? "Object" : "", Re = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (q || U ? "[" + M.call(hr.call([], q || [], U || []), ": ") + "] " : "");
|
|
2254
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + At(N, p) + "}" : re + "{ " + M.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
2257
2257
|
};
|
|
@@ -2263,25 +2263,25 @@ function wi(t) {
|
|
|
2263
2263
|
return V.call(String(t), /"/g, """);
|
|
2264
2264
|
}
|
|
2265
2265
|
function Et(t) {
|
|
2266
|
-
return K(t) === "[object Array]" && (!
|
|
2266
|
+
return K(t) === "[object Array]" && (!C || !(typeof t == "object" && C in t));
|
|
2267
2267
|
}
|
|
2268
2268
|
function Si(t) {
|
|
2269
|
-
return K(t) === "[object Date]" && (!
|
|
2269
|
+
return K(t) === "[object Date]" && (!C || !(typeof t == "object" && C in t));
|
|
2270
2270
|
}
|
|
2271
2271
|
function Sr(t) {
|
|
2272
|
-
return K(t) === "[object RegExp]" && (!
|
|
2272
|
+
return K(t) === "[object RegExp]" && (!C || !(typeof t == "object" && C in t));
|
|
2273
2273
|
}
|
|
2274
2274
|
function Ei(t) {
|
|
2275
|
-
return K(t) === "[object Error]" && (!
|
|
2275
|
+
return K(t) === "[object Error]" && (!C || !(typeof t == "object" && C in t));
|
|
2276
2276
|
}
|
|
2277
2277
|
function Ai(t) {
|
|
2278
|
-
return K(t) === "[object String]" && (!
|
|
2278
|
+
return K(t) === "[object String]" && (!C || !(typeof t == "object" && C in t));
|
|
2279
2279
|
}
|
|
2280
2280
|
function Oi(t) {
|
|
2281
|
-
return K(t) === "[object Number]" && (!
|
|
2281
|
+
return K(t) === "[object Number]" && (!C || !(typeof t == "object" && C in t));
|
|
2282
2282
|
}
|
|
2283
2283
|
function Ri(t) {
|
|
2284
|
-
return K(t) === "[object Boolean]" && (!
|
|
2284
|
+
return K(t) === "[object Boolean]" && (!C || !(typeof t == "object" && C in t));
|
|
2285
2285
|
}
|
|
2286
2286
|
function an(t) {
|
|
2287
2287
|
if (le)
|
|
@@ -2328,13 +2328,13 @@ function sn(t, e) {
|
|
|
2328
2328
|
return n;
|
|
2329
2329
|
return -1;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Ci(t) {
|
|
2332
2332
|
if (!Le || !t || typeof t != "object")
|
|
2333
2333
|
return !1;
|
|
2334
2334
|
try {
|
|
2335
2335
|
Le.call(t);
|
|
2336
2336
|
try {
|
|
2337
|
-
|
|
2337
|
+
ke.call(t);
|
|
2338
2338
|
} catch {
|
|
2339
2339
|
return !0;
|
|
2340
2340
|
}
|
|
@@ -2343,7 +2343,7 @@ function Fi(t) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
return !1;
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function Fi(t) {
|
|
2347
2347
|
if (!ge || !t || typeof t != "object")
|
|
2348
2348
|
return !1;
|
|
2349
2349
|
try {
|
|
@@ -2368,10 +2368,10 @@ function Ni(t) {
|
|
|
2368
2368
|
return !1;
|
|
2369
2369
|
}
|
|
2370
2370
|
function Di(t) {
|
|
2371
|
-
if (!
|
|
2371
|
+
if (!ke || !t || typeof t != "object")
|
|
2372
2372
|
return !1;
|
|
2373
2373
|
try {
|
|
2374
|
-
|
|
2374
|
+
ke.call(t);
|
|
2375
2375
|
try {
|
|
2376
2376
|
Le.call(t);
|
|
2377
2377
|
} catch {
|
|
@@ -2382,7 +2382,7 @@ function Di(t) {
|
|
|
2382
2382
|
}
|
|
2383
2383
|
return !1;
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function _i(t) {
|
|
2386
2386
|
if (!ve || !t || typeof t != "object")
|
|
2387
2387
|
return !1;
|
|
2388
2388
|
try {
|
|
@@ -2397,7 +2397,7 @@ function Ii(t) {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
return !1;
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function Ii(t) {
|
|
2401
2401
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2402
2402
|
}
|
|
2403
2403
|
function ln(t, e) {
|
|
@@ -2425,7 +2425,7 @@ function ot(t) {
|
|
|
2425
2425
|
return t + " { ? }";
|
|
2426
2426
|
}
|
|
2427
2427
|
function Er(t, e, n, r) {
|
|
2428
|
-
var o = r ? At(n, r) :
|
|
2428
|
+
var o = r ? At(n, r) : M.call(n, ", ");
|
|
2429
2429
|
return t + " (" + e + ") {" + o + "}";
|
|
2430
2430
|
}
|
|
2431
2431
|
function Bi(t) {
|
|
@@ -2440,12 +2440,12 @@ function Ui(t, e) {
|
|
|
2440
2440
|
if (t.indent === " ")
|
|
2441
2441
|
n = " ";
|
|
2442
2442
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2443
|
-
n =
|
|
2443
|
+
n = M.call(Array(t.indent + 1), " ");
|
|
2444
2444
|
else
|
|
2445
2445
|
return null;
|
|
2446
2446
|
return {
|
|
2447
2447
|
base: n,
|
|
2448
|
-
prev:
|
|
2448
|
+
prev: M.call(Array(e + 1), n)
|
|
2449
2449
|
};
|
|
2450
2450
|
}
|
|
2451
2451
|
function At(t, e) {
|
|
@@ -2453,7 +2453,7 @@ function At(t, e) {
|
|
|
2453
2453
|
return "";
|
|
2454
2454
|
var n = `
|
|
2455
2455
|
` + e.prev + e.base;
|
|
2456
|
-
return n +
|
|
2456
|
+
return n + M.call(t, "," + n) + `
|
|
2457
2457
|
` + e.prev;
|
|
2458
2458
|
}
|
|
2459
2459
|
function Pe(t, e) {
|
|
@@ -2476,7 +2476,7 @@ function Pe(t, e) {
|
|
|
2476
2476
|
nn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2477
2477
|
return r;
|
|
2478
2478
|
}
|
|
2479
|
-
var cn = pe, de = ii, Li = bi,
|
|
2479
|
+
var cn = pe, de = ii, Li = bi, ki = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%", !0), Mi = de("WeakMap.prototype.get", !0), ji = de("WeakMap.prototype.set", !0), qi = de("WeakMap.prototype.has", !0), zi = de("Map.prototype.get", !0), Hi = de("Map.prototype.set", !0), Wi = de("Map.prototype.has", !0), Ut = function(t, e) {
|
|
2480
2480
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2481
2481
|
if (r.key === e)
|
|
2482
2482
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -2499,12 +2499,12 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2499
2499
|
var e, n, r, o = {
|
|
2500
2500
|
assert: function(a) {
|
|
2501
2501
|
if (!o.has(a))
|
|
2502
|
-
throw new
|
|
2502
|
+
throw new ki("Side channel does not contain " + Li(a));
|
|
2503
2503
|
},
|
|
2504
2504
|
get: function(a) {
|
|
2505
2505
|
if (Te && a && (typeof a == "object" || typeof a == "function")) {
|
|
2506
2506
|
if (e)
|
|
2507
|
-
return
|
|
2507
|
+
return Mi(e, a);
|
|
2508
2508
|
} else if (xe) {
|
|
2509
2509
|
if (n)
|
|
2510
2510
|
return zi(n, a);
|
|
@@ -2660,7 +2660,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2660
2660
|
isRegExp: as,
|
|
2661
2661
|
maybeMap: ls,
|
|
2662
2662
|
merge: es
|
|
2663
|
-
}, pn = Ki,
|
|
2663
|
+
}, pn = Ki, _e = fn, be = Lt, cs = Object.prototype.hasOwnProperty, dn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
2666
2666
|
},
|
|
@@ -2671,8 +2671,8 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2671
2671
|
repeat: function(e) {
|
|
2672
2672
|
return e;
|
|
2673
2673
|
}
|
|
2674
|
-
},
|
|
2675
|
-
us.apply(t,
|
|
2674
|
+
}, k = Array.isArray, us = Array.prototype.push, yn = function(t, e) {
|
|
2675
|
+
us.apply(t, k(e) ? e : [e]);
|
|
2676
2676
|
}, fs = Date.prototype.toISOString, Ar = be.default, P = {
|
|
2677
2677
|
addQueryPrefix: !1,
|
|
2678
2678
|
allowDots: !1,
|
|
@@ -2683,7 +2683,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2683
2683
|
delimiter: "&",
|
|
2684
2684
|
encode: !0,
|
|
2685
2685
|
encodeDotInKeys: !1,
|
|
2686
|
-
encoder:
|
|
2686
|
+
encoder: _e.encode,
|
|
2687
2687
|
encodeValuesOnly: !1,
|
|
2688
2688
|
format: Ar,
|
|
2689
2689
|
formatter: be.formatters[Ar],
|
|
@@ -2697,23 +2697,23 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2697
2697
|
}, ps = function(e) {
|
|
2698
2698
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2699
2699
|
}, lt = {}, ds = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, S, E) {
|
|
2700
|
-
for (var v = e, T = E, A = 0,
|
|
2700
|
+
for (var v = e, T = E, A = 0, F = !1; (T = T.get(lt)) !== void 0 && !F; ) {
|
|
2701
2701
|
var N = T.get(e);
|
|
2702
2702
|
if (A += 1, typeof N < "u") {
|
|
2703
2703
|
if (N === A)
|
|
2704
2704
|
throw new RangeError("Cyclic object value");
|
|
2705
|
-
|
|
2705
|
+
F = !0;
|
|
2706
2706
|
}
|
|
2707
2707
|
typeof T.get(lt) > "u" && (A = 0);
|
|
2708
2708
|
}
|
|
2709
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2709
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && k(v) && (v = _e.maybeMap(v, function(Ge) {
|
|
2710
2710
|
return Ge instanceof Date ? g(Ge) : Ge;
|
|
2711
2711
|
})), v === null) {
|
|
2712
2712
|
if (i)
|
|
2713
2713
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2714
2714
|
v = "";
|
|
2715
2715
|
}
|
|
2716
|
-
if (ps(v) ||
|
|
2716
|
+
if (ps(v) || _e.isBuffer(v)) {
|
|
2717
2717
|
if (l) {
|
|
2718
2718
|
var j = h ? n : l(n, P.encoder, S, "key", y);
|
|
2719
2719
|
return [m(j) + "=" + m(l(v, P.encoder, S, "value", y))];
|
|
@@ -2724,24 +2724,24 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2724
2724
|
if (typeof v > "u")
|
|
2725
2725
|
return U;
|
|
2726
2726
|
var q;
|
|
2727
|
-
if (r === "comma" &&
|
|
2728
|
-
h && l && (v =
|
|
2729
|
-
else if (
|
|
2727
|
+
if (r === "comma" && k(v))
|
|
2728
|
+
h && l && (v = _e.maybeMap(v, l)), q = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2729
|
+
else if (k(c))
|
|
2730
2730
|
q = c;
|
|
2731
2731
|
else {
|
|
2732
2732
|
var Re = Object.keys(v);
|
|
2733
2733
|
q = p ? Re.sort(p) : Re;
|
|
2734
2734
|
}
|
|
2735
|
-
var re = u ? n.replace(/\./g, "%2E") : n, $ = o &&
|
|
2736
|
-
if (a &&
|
|
2735
|
+
var re = u ? n.replace(/\./g, "%2E") : n, $ = o && k(v) && v.length === 1 ? re + "[]" : re;
|
|
2736
|
+
if (a && k(v) && v.length === 0)
|
|
2737
2737
|
return $ + "[]";
|
|
2738
2738
|
for (var z = 0; z < q.length; ++z) {
|
|
2739
2739
|
var H = q[z], ye = typeof H == "object" && typeof H.value < "u" ? H.value : v[H];
|
|
2740
2740
|
if (!(s && ye === null)) {
|
|
2741
|
-
var We = d && u ? H.replace(/\./g, "%2E") : H, wn =
|
|
2741
|
+
var We = d && u ? H.replace(/\./g, "%2E") : H, wn = k(v) ? typeof r == "function" ? r($, We) : $ : $ + (d ? "." + We : "[" + We + "]");
|
|
2742
2742
|
E.set(e, A);
|
|
2743
|
-
var
|
|
2744
|
-
|
|
2743
|
+
var kt = pn();
|
|
2744
|
+
kt.set(lt, E), yn(U, t(
|
|
2745
2745
|
ye,
|
|
2746
2746
|
wn,
|
|
2747
2747
|
r,
|
|
@@ -2750,7 +2750,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2750
2750
|
i,
|
|
2751
2751
|
s,
|
|
2752
2752
|
u,
|
|
2753
|
-
r === "comma" && h &&
|
|
2753
|
+
r === "comma" && h && k(v) ? null : l,
|
|
2754
2754
|
c,
|
|
2755
2755
|
p,
|
|
2756
2756
|
d,
|
|
@@ -2759,7 +2759,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2759
2759
|
m,
|
|
2760
2760
|
h,
|
|
2761
2761
|
S,
|
|
2762
|
-
|
|
2762
|
+
kt
|
|
2763
2763
|
));
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
@@ -2783,7 +2783,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2783
2783
|
r = e.format;
|
|
2784
2784
|
}
|
|
2785
2785
|
var o = be.formatters[r], a = P.filter;
|
|
2786
|
-
(typeof e.filter == "function" ||
|
|
2786
|
+
(typeof e.filter == "function" || k(e.filter)) && (a = e.filter);
|
|
2787
2787
|
var i;
|
|
2788
2788
|
if (e.arrayFormat in dn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2789
2789
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2811,7 +2811,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2811
2811
|
};
|
|
2812
2812
|
}, hs = function(t, e) {
|
|
2813
2813
|
var n = t, r = ys(e), o, a;
|
|
2814
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2814
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : k(r.filter) && (a = r.filter, o = a);
|
|
2815
2815
|
var i = [];
|
|
2816
2816
|
if (typeof n != "object" || n === null)
|
|
2817
2817
|
return "";
|
|
@@ -2974,9 +2974,9 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
|
|
|
2974
2974
|
parse: Ps,
|
|
2975
2975
|
stringify: Rs
|
|
2976
2976
|
};
|
|
2977
|
-
const
|
|
2977
|
+
const Cs = /* @__PURE__ */ ca(xs);
|
|
2978
2978
|
/*! js-cookie v3.0.5 | MIT */
|
|
2979
|
-
function
|
|
2979
|
+
function Ce(t) {
|
|
2980
2980
|
for (var e = 1; e < arguments.length; e++) {
|
|
2981
2981
|
var n = arguments[e];
|
|
2982
2982
|
for (var r in n)
|
|
@@ -2984,7 +2984,7 @@ function Fe(t) {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
return t;
|
|
2986
2986
|
}
|
|
2987
|
-
var
|
|
2987
|
+
var Fs = {
|
|
2988
2988
|
read: function(t) {
|
|
2989
2989
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
2990
2990
|
},
|
|
@@ -2998,7 +2998,7 @@ var Cs = {
|
|
|
2998
2998
|
function Rt(t, e) {
|
|
2999
2999
|
function n(o, a, i) {
|
|
3000
3000
|
if (!(typeof document > "u")) {
|
|
3001
|
-
i =
|
|
3001
|
+
i = Ce({}, 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);
|
|
3002
3002
|
var s = "";
|
|
3003
3003
|
for (var u in i)
|
|
3004
3004
|
i[u] && (s += "; " + u, i[u] !== !0 && (s += "=" + i[u].split(";")[0]));
|
|
@@ -3027,16 +3027,16 @@ function Rt(t, e) {
|
|
|
3027
3027
|
n(
|
|
3028
3028
|
o,
|
|
3029
3029
|
"",
|
|
3030
|
-
|
|
3030
|
+
Ce({}, a, {
|
|
3031
3031
|
expires: -1
|
|
3032
3032
|
})
|
|
3033
3033
|
);
|
|
3034
3034
|
},
|
|
3035
3035
|
withAttributes: function(o) {
|
|
3036
|
-
return Rt(this.converter,
|
|
3036
|
+
return Rt(this.converter, Ce({}, this.attributes, o));
|
|
3037
3037
|
},
|
|
3038
3038
|
withConverter: function(o) {
|
|
3039
|
-
return Rt(
|
|
3039
|
+
return Rt(Ce({}, this.converter, o), this.attributes);
|
|
3040
3040
|
}
|
|
3041
3041
|
},
|
|
3042
3042
|
{
|
|
@@ -3045,29 +3045,30 @@ function Rt(t, e) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
);
|
|
3047
3047
|
}
|
|
3048
|
-
var Ns = Rt(
|
|
3048
|
+
var Ns = Rt(Fs, { path: "/" });
|
|
3049
3049
|
const Ds = {
|
|
3050
|
-
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error" },
|
|
3051
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api Endpoint Not Found" },
|
|
3052
|
-
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error" },
|
|
3053
|
-
解析错误: { "zh-CN": "解析错误", en: "Parsing Error" },
|
|
3054
|
-
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error" },
|
|
3050
|
+
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3051
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api Endpoint Not Found", _appCode: "framework" },
|
|
3052
|
+
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3053
|
+
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3054
|
+
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3055
3055
|
"网络异常,请检查您的网络情况": {
|
|
3056
3056
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3057
|
-
en: "Network Error, Please Check Your Network Status"
|
|
3057
|
+
en: "Network Error, Please Check Your Network Status",
|
|
3058
|
+
_appCode: "framework"
|
|
3058
3059
|
}
|
|
3059
3060
|
};
|
|
3060
3061
|
Sn(Ds);
|
|
3061
3062
|
Pt.extend(xn);
|
|
3062
|
-
Pt.extend(
|
|
3063
|
+
Pt.extend(Cn);
|
|
3063
3064
|
const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
|
|
3064
3065
|
if (vn) return;
|
|
3065
3066
|
const t = "/login";
|
|
3066
3067
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3067
|
-
},
|
|
3068
|
+
}, _s = async (t) => {
|
|
3068
3069
|
var n;
|
|
3069
3070
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3070
|
-
},
|
|
3071
|
+
}, Is = async (t, e) => {
|
|
3071
3072
|
var u, l, c, p, d;
|
|
3072
3073
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3073
3074
|
const a = { 400: W("参数校验错误"), 404: W("接口地址未找到"), 500: W("服务器内部错误") };
|
|
@@ -3107,12 +3108,12 @@ const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
|
|
|
3107
3108
|
}
|
|
3108
3109
|
gn ? l || (l = await An(r)) : (l || (l = Dn()), l || bn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3109
3110
|
}
|
|
3110
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) =>
|
|
3111
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Cs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = _s), r.onError || (r.onError = Is), (r.csrf ?? !1) && (r.headers["csrf-token"] = Ns.get("csrf-token"));
|
|
3111
3112
|
const s = r.params || {};
|
|
3112
3113
|
if (s.project === void 0) {
|
|
3113
3114
|
let l = 0;
|
|
3114
3115
|
const c = new URL(location.href).searchParams;
|
|
3115
|
-
l = c.get("project") || c.get("projectId") || 0, l || (l =
|
|
3116
|
+
l = c.get("project") || c.get("projectId") || 0, l || (l = Fn().id ?? 0), (l || l === 0) && (s.project = l);
|
|
3116
3117
|
}
|
|
3117
3118
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3118
3119
|
const { instanceInfo: l } = Nn();
|