@das-fed/utils 6.4.0-dev.55.4 → 6.4.0-dev.55.6
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 +486 -480
- 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 +297 -296
- 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 +336 -335
- 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
|
@@ -4,35 +4,35 @@ import { getToken as Sn, getQuery as En, login as An, getTokenParams as On, real
|
|
|
4
4
|
import Ot from "dayjs";
|
|
5
5
|
import Pn from "dayjs/plugin/utc";
|
|
6
6
|
import Tn from "dayjs/plugin/timezone";
|
|
7
|
-
import { getProjectInfo as xn, getInstanceInfo as
|
|
8
|
-
import { getAccessToken as
|
|
7
|
+
import { getProjectInfo as xn, getInstanceInfo as Cn } from "@das-fed/utils/common-info";
|
|
8
|
+
import { getAccessToken as Fn } from "@das-fed/utils/token-tools";
|
|
9
9
|
import { getConfig as Er } from "@das-fed/utils/config";
|
|
10
10
|
function Ar(t, e) {
|
|
11
11
|
return function() {
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: Nn } = Object.prototype, { getPrototypeOf: Rt } = Object,
|
|
15
|
+
const { toString: Nn } = Object.prototype, { getPrototypeOf: Rt } = Object, Me = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Nn.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) =>
|
|
18
|
+
})(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), qe = (t) => (e) => typeof e === t, { isArray: ue } = Array, we = qe("undefined");
|
|
19
19
|
function Dn(t) {
|
|
20
|
-
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) &&
|
|
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 Or = B("ArrayBuffer");
|
|
23
|
-
function
|
|
23
|
+
function _n(t) {
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Or(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
27
|
+
const In = qe("string"), I = qe("function"), Rr = qe("number"), je = (t) => t !== null && typeof t == "object", $n = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
|
+
if (Me(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Rt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
32
|
-
}, Bn = B("Date"), Un = B("File"), Ln = B("Blob"),
|
|
32
|
+
}, Bn = B("Date"), Un = B("File"), Ln = B("Blob"), kn = B("FileList"), Mn = (t) => je(t) && I(t.pipe), qn = (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
|
}, jn = B("URLSearchParams"), [zn, Hn, Wn, Gn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Jn = (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")
|
|
@@ -61,14 +61,14 @@ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
61
61
|
function ct() {
|
|
62
62
|
const { caseless: t } = Tr(this) && this || {}, e = {}, n = (r, o) => {
|
|
63
63
|
const a = t && Pr(e, o) || o;
|
|
64
|
-
|
|
64
|
+
Fe(e[a]) && Fe(r) ? e[a] = ct(e[a], r) : Fe(r) ? e[a] = ct({}, 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 Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
71
|
-
n &&
|
|
71
|
+
n && I(o) ? t[a] = Ar(o, n) : t[a] = o;
|
|
72
72
|
}, { allOwnKeys: r }), t), Kn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Qn = (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
|
|
@@ -122,10 +122,10 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
122
122
|
}), Object.defineProperties(t, r);
|
|
123
123
|
}, io = (t) => {
|
|
124
124
|
xr(t, (e, n) => {
|
|
125
|
-
if (
|
|
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;
|
|
@@ -143,11 +143,11 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
143
143
|
};
|
|
144
144
|
return ue(t) ? r(t) : r(String(t).split(e)), n;
|
|
145
145
|
}, lo = () => {
|
|
146
|
-
}, co = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Je = "abcdefghijklmnopqrstuvwxyz",
|
|
147
|
-
DIGIT:
|
|
146
|
+
}, co = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Je = "abcdefghijklmnopqrstuvwxyz", kt = "0123456789", Cr = {
|
|
147
|
+
DIGIT: kt,
|
|
148
148
|
ALPHA: Je,
|
|
149
|
-
ALPHA_DIGIT: Je + Je.toUpperCase() +
|
|
150
|
-
}, uo = (t = 16, e =
|
|
149
|
+
ALPHA_DIGIT: Je + Je.toUpperCase() + kt
|
|
150
|
+
}, uo = (t = 16, e = Cr.ALPHA_DIGIT) => {
|
|
151
151
|
let n = "";
|
|
152
152
|
const { length: r } = e;
|
|
153
153
|
for (; t--; )
|
|
@@ -155,7 +155,7 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
155
155
|
return n;
|
|
156
156
|
};
|
|
157
157
|
function fo(t) {
|
|
158
|
-
return !!(t &&
|
|
158
|
+
return !!(t && I(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
159
159
|
}
|
|
160
160
|
const po = (t) => {
|
|
161
161
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -174,24 +174,24 @@ const po = (t) => {
|
|
|
174
174
|
return r;
|
|
175
175
|
};
|
|
176
176
|
return n(t, 0);
|
|
177
|
-
}, yo = B("AsyncFunction"), ho = (t) => t && (je(t) ||
|
|
177
|
+
}, yo = B("AsyncFunction"), ho = (t) => t && (je(t) || I(t)) && I(t.then) && I(t.catch), Fr = ((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
|
-
|
|
184
|
-
), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick ||
|
|
183
|
+
I(X.postMessage)
|
|
184
|
+
), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Fr, f = {
|
|
185
185
|
isArray: ue,
|
|
186
186
|
isArrayBuffer: Or,
|
|
187
187
|
isBuffer: Dn,
|
|
188
188
|
isFormData: qn,
|
|
189
|
-
isArrayBufferView:
|
|
190
|
-
isString:
|
|
189
|
+
isArrayBufferView: _n,
|
|
190
|
+
isString: In,
|
|
191
191
|
isNumber: Rr,
|
|
192
192
|
isBoolean: $n,
|
|
193
193
|
isObject: je,
|
|
194
|
-
isPlainObject:
|
|
194
|
+
isPlainObject: Fe,
|
|
195
195
|
isReadableStream: zn,
|
|
196
196
|
isRequest: Hn,
|
|
197
197
|
isResponse: Wn,
|
|
@@ -201,11 +201,11 @@ const po = (t) => {
|
|
|
201
201
|
isFile: Un,
|
|
202
202
|
isBlob: Ln,
|
|
203
203
|
isRegExp: ao,
|
|
204
|
-
isFunction:
|
|
205
|
-
isStream:
|
|
204
|
+
isFunction: I,
|
|
205
|
+
isStream: Mn,
|
|
206
206
|
isURLSearchParams: jn,
|
|
207
207
|
isTypedArray: eo,
|
|
208
|
-
isFileList:
|
|
208
|
+
isFileList: kn,
|
|
209
209
|
forEach: Se,
|
|
210
210
|
merge: ct,
|
|
211
211
|
extend: Vn,
|
|
@@ -213,7 +213,7 @@ const po = (t) => {
|
|
|
213
213
|
stripBOM: Kn,
|
|
214
214
|
inherits: Qn,
|
|
215
215
|
toFlatObject: Xn,
|
|
216
|
-
kindOf:
|
|
216
|
+
kindOf: Me,
|
|
217
217
|
kindOfTest: B,
|
|
218
218
|
endsWith: Yn,
|
|
219
219
|
toArray: Zn,
|
|
@@ -232,13 +232,13 @@ const po = (t) => {
|
|
|
232
232
|
findKey: Pr,
|
|
233
233
|
global: X,
|
|
234
234
|
isContextDefined: Tr,
|
|
235
|
-
ALPHABET:
|
|
235
|
+
ALPHABET: Cr,
|
|
236
236
|
generateString: uo,
|
|
237
237
|
isSpecCompliantForm: fo,
|
|
238
238
|
toJSONObject: po,
|
|
239
239
|
isAsyncFn: yo,
|
|
240
240
|
isThenable: ho,
|
|
241
|
-
setImmediate:
|
|
241
|
+
setImmediate: Fr,
|
|
242
242
|
asap: mo
|
|
243
243
|
};
|
|
244
244
|
function b(t, e, n, r, o) {
|
|
@@ -295,12 +295,12 @@ const go = null;
|
|
|
295
295
|
function ut(t) {
|
|
296
296
|
return f.isPlainObject(t) || f.isArray(t);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function _r(t) {
|
|
299
299
|
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Mt(t, e, n) {
|
|
302
302
|
return t ? t.concat(e).map(function(o, a) {
|
|
303
|
-
return o =
|
|
303
|
+
return o = _r(o), !n && a ? "[" + o + "]" : o;
|
|
304
304
|
}).join(n ? "." : "") : e;
|
|
305
305
|
}
|
|
306
306
|
function vo(t) {
|
|
@@ -336,15 +336,15 @@ function ze(t, e, n) {
|
|
|
336
336
|
if (f.endsWith(m, "{}"))
|
|
337
337
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
338
338
|
else if (f.isArray(y) && vo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
339
|
-
return m =
|
|
339
|
+
return m = _r(m), S.forEach(function(v, T) {
|
|
340
340
|
!(f.isUndefined(v) || v === null) && e.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
i === !0 ?
|
|
342
|
+
i === !0 ? Mt([m], T, a) : i === null ? m : m + "[]",
|
|
343
343
|
l(v)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return ut(y) ? !0 : (e.append(
|
|
347
|
+
return ut(y) ? !0 : (e.append(Mt(h, m, a), l(y)), !1);
|
|
348
348
|
}
|
|
349
349
|
const p = [], d = Object.assign(bo, {
|
|
350
350
|
defaultVisitor: c,
|
|
@@ -387,11 +387,11 @@ function qt(t) {
|
|
|
387
387
|
function Pt(t, e) {
|
|
388
388
|
this._pairs = [], t && ze(t, this, e);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
390
|
+
const Ir = Pt.prototype;
|
|
391
|
+
Ir.append = function(e, n) {
|
|
392
392
|
this._pairs.push([e, n]);
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
Ir.toString = function(e) {
|
|
395
395
|
const n = e ? function(r) {
|
|
396
396
|
return e.call(this, r, qt);
|
|
397
397
|
} : qt;
|
|
@@ -491,14 +491,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", To
|
|
|
491
491
|
...xo,
|
|
492
492
|
...Oo
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function Co(t, e) {
|
|
495
495
|
return ze(t, new D.classes.URLSearchParams(), Object.assign({
|
|
496
496
|
visitor: function(n, r, o, a) {
|
|
497
497
|
return D.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
498
498
|
}
|
|
499
499
|
}, e));
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Fo(t) {
|
|
502
502
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
503
503
|
}
|
|
504
504
|
function No(t) {
|
|
@@ -520,7 +520,7 @@ function Ur(t) {
|
|
|
520
520
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
521
521
|
const n = {};
|
|
522
522
|
return f.forEachEntry(t, (r, o) => {
|
|
523
|
-
e(
|
|
523
|
+
e(Fo(r), o, n, 0);
|
|
524
524
|
}), n;
|
|
525
525
|
}
|
|
526
526
|
return null;
|
|
@@ -551,7 +551,7 @@ const Ee = {
|
|
|
551
551
|
let s;
|
|
552
552
|
if (a) {
|
|
553
553
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
554
|
-
return
|
|
554
|
+
return Co(e, this.formSerializer).toString();
|
|
555
555
|
if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
556
556
|
const u = this.env && this.env.FormData;
|
|
557
557
|
return ze(
|
|
@@ -604,7 +604,7 @@ const Ee = {
|
|
|
604
604
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
605
605
|
Ee.headers[t] = {};
|
|
606
606
|
});
|
|
607
|
-
const
|
|
607
|
+
const _o = f.toObjectSet([
|
|
608
608
|
"age",
|
|
609
609
|
"authorization",
|
|
610
610
|
"content-length",
|
|
@@ -622,12 +622,12 @@ const Io = f.toObjectSet([
|
|
|
622
622
|
"referer",
|
|
623
623
|
"retry-after",
|
|
624
624
|
"user-agent"
|
|
625
|
-
]),
|
|
625
|
+
]), Io = (t) => {
|
|
626
626
|
const e = {};
|
|
627
627
|
let n, r, o;
|
|
628
628
|
return t && t.split(`
|
|
629
629
|
`).forEach(function(i) {
|
|
630
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] &&
|
|
630
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && _o[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
631
631
|
}), e;
|
|
632
632
|
}, zt = Symbol("internals");
|
|
633
633
|
function he(t) {
|
|
@@ -668,7 +668,7 @@ function Lo(t, e) {
|
|
|
668
668
|
});
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class _ {
|
|
672
672
|
constructor(e) {
|
|
673
673
|
e && this.set(e);
|
|
674
674
|
}
|
|
@@ -685,7 +685,7 @@ class I {
|
|
|
685
685
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
686
686
|
i(e, n);
|
|
687
687
|
else if (f.isString(e) && (e = e.trim()) && !Bo(e))
|
|
688
|
-
i(
|
|
688
|
+
i(Io(e), n);
|
|
689
689
|
else if (f.isHeaders(e))
|
|
690
690
|
for (const [s, u] of e.entries())
|
|
691
691
|
a(u, s, r);
|
|
@@ -786,8 +786,8 @@ class I {
|
|
|
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,9 +796,9 @@ 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);
|
|
@@ -813,7 +813,7 @@ function fe(t, e, n) {
|
|
|
813
813
|
f.inherits(fe, b, {
|
|
814
814
|
__CANCEL__: !0
|
|
815
815
|
});
|
|
816
|
-
function
|
|
816
|
+
function kr(t, e, n) {
|
|
817
817
|
const r = n.config.validateStatus;
|
|
818
818
|
!n.status || !r || r(n.status) ? t(n) : e(new b(
|
|
819
819
|
"Request failed with status code " + n.status,
|
|
@@ -823,11 +823,11 @@ function Mr(t, e, n) {
|
|
|
823
823
|
n
|
|
824
824
|
));
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function ko(t) {
|
|
827
827
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
828
828
|
return e && e[1] || "";
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Mo(t, e) {
|
|
831
831
|
t = t || 10;
|
|
832
832
|
const n = new Array(t), r = new Array(t);
|
|
833
833
|
let o = 0, a = 0, i;
|
|
@@ -855,9 +855,9 @@ function qo(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
|
-
const o =
|
|
860
|
+
const o = Mo(50, 250);
|
|
861
861
|
return qo((a) => {
|
|
862
862
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
|
|
863
863
|
r = i;
|
|
@@ -945,10 +945,10 @@ function Ho(t) {
|
|
|
945
945
|
function Wo(t, e) {
|
|
946
946
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Mr(t, e) {
|
|
949
949
|
return t && !Ho(e) ? Wo(t, e) : e;
|
|
950
950
|
}
|
|
951
|
-
const Gt = (t) => t instanceof
|
|
951
|
+
const Gt = (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 qr = (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 = $r(Mr(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 qr = (t) => {
|
|
|
1038
1038
|
return new Promise(function(n, r) {
|
|
1039
1039
|
const o = qr(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 qr = (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,
|
|
@@ -1058,7 +1058,7 @@ const qr = (t) => {
|
|
|
1058
1058
|
config: t,
|
|
1059
1059
|
request: h
|
|
1060
1060
|
};
|
|
1061
|
-
|
|
1061
|
+
kr(function(N) {
|
|
1062
1062
|
n(N), m();
|
|
1063
1063
|
}, function(N) {
|
|
1064
1064
|
r(N), m();
|
|
@@ -1081,10 +1081,10 @@ const qr = (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
|
-
const E =
|
|
1087
|
+
const E = ko(o.url);
|
|
1088
1088
|
if (E && D.protocols.indexOf(E) === -1) {
|
|
1089
1089
|
r(new b("Unsupported protocol " + E + ":", b.ERR_BAD_REQUEST, t));
|
|
1090
1090
|
return;
|
|
@@ -1241,11 +1241,11 @@ const ea = 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, q] = Ht(
|
|
1247
1247
|
h,
|
|
1248
|
-
|
|
1248
|
+
Ie(Wt(u))
|
|
1249
1249
|
);
|
|
1250
1250
|
r = Jt(A.body, Vt, N, q);
|
|
1251
1251
|
}
|
|
@@ -1268,9 +1268,9 @@ const ea = 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, q] = s && Ht(
|
|
1272
|
+
F,
|
|
1273
|
+
Ie(Wt(s), !0)
|
|
1274
1274
|
) || [];
|
|
1275
1275
|
E = new Response(
|
|
1276
1276
|
Jt(E.body, Vt, N, () => {
|
|
@@ -1281,10 +1281,10 @@ const ea = 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
|
-
|
|
1284
|
+
return !v && m && m(), await new Promise((A, F) => {
|
|
1285
|
+
kr(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 Qt(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), Hr.getAdapter(t.adapter || Ee.adapter)(t).then(function(r) {
|
|
@@ -1357,13 +1357,13 @@ function Qt(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
1362
|
return Lr(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
1369
|
const Wr = "1.7.7", xt = {};
|
|
@@ -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) {
|
|
@@ -1500,7 +1500,7 @@ class Y {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
getUri(e) {
|
|
1502
1502
|
e = te(this.defaults, e);
|
|
1503
|
-
const n =
|
|
1503
|
+
const n = Mr(e.baseURL, e.url);
|
|
1504
1504
|
return $r(n, e.params, e.paramsSerializer);
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
@@ -1528,7 +1528,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
Y.prototype[e] = n(), Y.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
|
-
class
|
|
1531
|
+
class Ct {
|
|
1532
1532
|
constructor(e) {
|
|
1533
1533
|
if (typeof e != "function")
|
|
1534
1534
|
throw new TypeError("executor must be a function.");
|
|
@@ -1594,7 +1594,7 @@ class Ft {
|
|
|
1594
1594
|
static source() {
|
|
1595
1595
|
let e;
|
|
1596
1596
|
return {
|
|
1597
|
-
token: new
|
|
1597
|
+
token: new Ct(function(o) {
|
|
1598
1598
|
e = o;
|
|
1599
1599
|
}),
|
|
1600
1600
|
cancel: e
|
|
@@ -1686,7 +1686,7 @@ function Gr(t) {
|
|
|
1686
1686
|
const R = Gr(Ee);
|
|
1687
1687
|
R.Axios = Y;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
|
-
R.CancelToken =
|
|
1689
|
+
R.CancelToken = Ct;
|
|
1690
1690
|
R.isCancel = Lr;
|
|
1691
1691
|
R.VERSION = Wr;
|
|
1692
1692
|
R.toFormData = ze;
|
|
@@ -1698,7 +1698,7 @@ R.all = function(e) {
|
|
|
1698
1698
|
R.spread = aa;
|
|
1699
1699
|
R.isAxiosError = ia;
|
|
1700
1700
|
R.mergeConfig = te;
|
|
1701
|
-
R.AxiosHeaders =
|
|
1701
|
+
R.AxiosHeaders = _;
|
|
1702
1702
|
R.formToJSON = (t) => Ur(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1703
1703
|
R.getAdapter = Hr.getAdapter;
|
|
1704
1704
|
R.HttpStatusCode = ht;
|
|
@@ -1794,7 +1794,7 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Jr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, Pa = Ra,
|
|
1797
|
+
}, Pa = Ra, Ft = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Ca = Ft, Fa = Ca.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Jr, ie = Ae, $a = da, Vr = Function, Ye = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Vr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
@@ -1867,8 +1867,8 @@ var Ze = function() {
|
|
|
1867
1867
|
"%parseInt%": parseInt,
|
|
1868
1868
|
"%Promise%": typeof Promise > "u" ? w : Promise,
|
|
1869
1869
|
"%Proxy%": typeof Proxy > "u" ? w : Proxy,
|
|
1870
|
-
"%RangeError%":
|
|
1871
|
-
"%ReferenceError%":
|
|
1870
|
+
"%RangeError%": _a,
|
|
1871
|
+
"%ReferenceError%": Ia,
|
|
1872
1872
|
"%Reflect%": typeof Reflect > "u" ? w : Reflect,
|
|
1873
1873
|
"%RegExp%": RegExp,
|
|
1874
1874
|
"%Set%": typeof Set > "u" ? w : Set,
|
|
@@ -1894,10 +1894,10 @@ if (x)
|
|
|
1894
1894
|
try {
|
|
1895
1895
|
null.error;
|
|
1896
1896
|
} catch (t) {
|
|
1897
|
-
var
|
|
1898
|
-
ee["%Error.prototype%"] =
|
|
1897
|
+
var ka = x(x(t));
|
|
1898
|
+
ee["%Error.prototype%"] = ka;
|
|
1899
1899
|
}
|
|
1900
|
-
var
|
|
1900
|
+
var Ma = function t(e) {
|
|
1901
1901
|
var n;
|
|
1902
1902
|
if (e === "%AsyncFunction%")
|
|
1903
1903
|
n = Ye("async function () {}");
|
|
@@ -1966,7 +1966,7 @@ var ka = function t(e) {
|
|
|
1966
1966
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1967
1967
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1968
1968
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1969
|
-
}, Oe =
|
|
1969
|
+
}, Oe = Ft, Be = Fa, qa = Oe.call(Function.call, Array.prototype.concat), ja = Oe.call(Function.apply, Array.prototype.splice), rr = Oe.call(Function.call, String.prototype.replace), Ue = Oe.call(Function.call, String.prototype.slice), za = Oe.call(Function.call, RegExp.prototype.exec), Ha = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wa = /\\(\\)?/g, Ga = function(e) {
|
|
1970
1970
|
var n = Ue(e, 0, 1), r = Ue(e, -1);
|
|
1971
1971
|
if (n === "%" && r !== "%")
|
|
1972
1972
|
throw new se("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -1980,7 +1980,7 @@ var ka = function t(e) {
|
|
|
1980
1980
|
var r = e, o;
|
|
1981
1981
|
if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(ee, r)) {
|
|
1982
1982
|
var a = ee[r];
|
|
1983
|
-
if (a === ae && (a =
|
|
1983
|
+
if (a === ae && (a = Ma(r)), typeof a > "u" && !n)
|
|
1984
1984
|
throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1985
1985
|
return {
|
|
1986
1986
|
alias: o,
|
|
@@ -2101,7 +2101,7 @@ var Xa = Xr, Ya = pe, ir = Qa, Za = Xa(), sr = Qr, lr = Ae, ei = Ya("%Math.floor
|
|
|
2101
2101
|
)), e;
|
|
2102
2102
|
};
|
|
2103
2103
|
(function(t) {
|
|
2104
|
-
var e =
|
|
2104
|
+
var e = Ft, n = pe, r = ti, o = Ae, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Nt(), 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 ai = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: ai
|
|
2127
2127
|
}, Symbol.toStringTag, { value: "Module" })), si = /* @__PURE__ */ la(ii);
|
|
2128
|
-
var Dt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Dt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Dt && tt && typeof tt.get == "function" ? tt.get : null, cr = Dt && Map.prototype.forEach,
|
|
2128
|
+
var Dt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Dt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Dt && tt && typeof tt.get == "function" ? tt.get : null, cr = Dt && 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, ur = _t && Set.prototype.forEach, li = typeof WeakMap == "function" && WeakMap.prototype, ge = li ? WeakMap.prototype.has : null, ci = typeof WeakSet == "function" && WeakSet.prototype, ve = ci ? WeakSet.prototype.has : null, ui = typeof WeakRef == "function" && WeakRef.prototype, fr = ui ? WeakRef.prototype.deref : null, fi = Boolean.prototype.valueOf, pi = Object.prototype.toString, di = Function.prototype.toString, yi = String.prototype.match, It = String.prototype.slice, V = String.prototype.replace, hi = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, en = RegExp.prototype.test, dr = Array.prototype.concat, M = Array.prototype.join, mi = Array.prototype.slice, yr = Math.floor, gt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, vt = 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, tn = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function mr(t, e) {
|
|
@@ -2135,7 +2135,7 @@ function mr(t, e) {
|
|
|
2135
2135
|
if (typeof t == "number") {
|
|
2136
2136
|
var r = t < 0 ? -yr(-t) : yr(t);
|
|
2137
2137
|
if (r !== t) {
|
|
2138
|
-
var o = String(r), a =
|
|
2138
|
+
var o = String(r), a = It.call(e, o.length + 1);
|
|
2139
2139
|
return V.call(o, n, "$&_") + "." + V.call(V.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
@@ -2192,7 +2192,7 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
|
|
|
2192
2192
|
}
|
|
2193
2193
|
if (typeof e == "function" && !br(e)) {
|
|
2194
2194
|
var g = Pi(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 (nn(e)) {
|
|
2198
2198
|
var m = le ? V.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
|
|
@@ -2207,11 +2207,11 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = 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 && !
|
|
2210
|
+
return p && !Ii(v) ? "[" + St(v, p) + "]" : "[ " + M.call(v, ", ") + " ]";
|
|
2211
2211
|
}
|
|
2212
2212
|
if (wi(e)) {
|
|
2213
2213
|
var T = Pe(e, d);
|
|
2214
|
-
return !("cause" in Error.prototype) && "cause" in e && !tn.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2214
|
+
return !("cause" in Error.prototype) && "cause" in e && !tn.call(e, "cause") ? "{ [" + String(e) + "] " + M.call(dr.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 (vr && typeof e[vr] == "function" && bt)
|
|
@@ -2225,17 +2225,17 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
|
|
|
2225
2225
|
A.push(d(z, e, !0) + " => " + d($, e));
|
|
2226
2226
|
}), wr("Map", Le.call(e), A, p);
|
|
2227
2227
|
}
|
|
2228
|
-
if (
|
|
2229
|
-
var
|
|
2228
|
+
if (Fi(e)) {
|
|
2229
|
+
var F = [];
|
|
2230
2230
|
return ur && ur.call(e, function($) {
|
|
2231
|
-
|
|
2232
|
-
}), wr("Set",
|
|
2231
|
+
F.push(d($, e));
|
|
2232
|
+
}), wr("Set", ke.call(e), F, p);
|
|
2233
2233
|
}
|
|
2234
2234
|
if (xi(e))
|
|
2235
2235
|
return ot("WeakMap");
|
|
2236
2236
|
if (Ni(e))
|
|
2237
2237
|
return ot("WeakSet");
|
|
2238
|
-
if (
|
|
2238
|
+
if (Ci(e))
|
|
2239
2239
|
return ot("WeakRef");
|
|
2240
2240
|
if (Ei(e))
|
|
2241
2241
|
return me(d(Number(e)));
|
|
@@ -2250,8 +2250,8 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
|
|
|
2250
2250
|
if (typeof globalThis < "u" && e === globalThis || typeof Yt < "u" && e === Yt)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!bi(e) && !br(e)) {
|
|
2253
|
-
var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q &&
|
|
2254
|
-
return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " +
|
|
2253
|
+
var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && C && Object(e) === e && C in e ? It.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + M.call(dr.call([], j || [], U || []), ": ") + "] " : "");
|
|
2254
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " + M.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
2257
2257
|
};
|
|
@@ -2263,25 +2263,25 @@ function vi(t) {
|
|
|
2263
2263
|
return V.call(String(t), /"/g, """);
|
|
2264
2264
|
}
|
|
2265
2265
|
function wt(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 bi(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 br(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 wi(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 Si(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 Ei(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 Ai(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 nn(t) {
|
|
2287
2287
|
if (le)
|
|
@@ -2334,7 +2334,7 @@ function Ti(t) {
|
|
|
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
|
}
|
|
@@ -2358,7 +2358,7 @@ function xi(t) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
return !1;
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Ci(t) {
|
|
2362
2362
|
if (!fr || !t || typeof t != "object")
|
|
2363
2363
|
return !1;
|
|
2364
2364
|
try {
|
|
@@ -2367,11 +2367,11 @@ function Fi(t) {
|
|
|
2367
2367
|
}
|
|
2368
2368
|
return !1;
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2371
|
-
if (!
|
|
2370
|
+
function Fi(t) {
|
|
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 {
|
|
@@ -2403,12 +2403,12 @@ function Di(t) {
|
|
|
2403
2403
|
function an(t, e) {
|
|
2404
2404
|
if (t.length > e.maxStringLength) {
|
|
2405
2405
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2406
|
-
return an(
|
|
2406
|
+
return an(It.call(t, 0, e.maxStringLength), e) + r;
|
|
2407
2407
|
}
|
|
2408
|
-
var o = V.call(V.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
2408
|
+
var o = V.call(V.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _i);
|
|
2409
2409
|
return rn(o, "single", e);
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function _i(t) {
|
|
2412
2412
|
var e = t.charCodeAt(0), n = {
|
|
2413
2413
|
8: "b",
|
|
2414
2414
|
9: "t",
|
|
@@ -2425,10 +2425,10 @@ function ot(t) {
|
|
|
2425
2425
|
return t + " { ? }";
|
|
2426
2426
|
}
|
|
2427
2427
|
function wr(t, e, n, r) {
|
|
2428
|
-
var o = r ? St(n, r) :
|
|
2428
|
+
var o = r ? St(n, r) : M.call(n, ", ");
|
|
2429
2429
|
return t + " (" + e + ") {" + o + "}";
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Ii(t) {
|
|
2432
2432
|
for (var e = 0; e < t.length; e++)
|
|
2433
2433
|
if (on(t[e], `
|
|
2434
2434
|
`) >= 0)
|
|
@@ -2440,12 +2440,12 @@ function $i(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 St(t, e) {
|
|
@@ -2453,7 +2453,7 @@ function St(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
|
tn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2477
2477
|
return r;
|
|
2478
2478
|
}
|
|
2479
|
-
var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%", !0), Li = de("WeakMap.prototype.get", !0),
|
|
2479
|
+
var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%", !0), Li = de("WeakMap.prototype.get", !0), ki = de("WeakMap.prototype.set", !0), Mi = de("WeakMap.prototype.has", !0), qi = de("Map.prototype.get", !0), ji = de("Map.prototype.set", !0), zi = de("Map.prototype.has", !0), $t = 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>} */
|
|
@@ -2514,7 +2514,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2514
2514
|
has: function(a) {
|
|
2515
2515
|
if (Te && a && (typeof a == "object" || typeof a == "function")) {
|
|
2516
2516
|
if (e)
|
|
2517
|
-
return
|
|
2517
|
+
return Mi(e, a);
|
|
2518
2518
|
} else if (xe) {
|
|
2519
2519
|
if (n)
|
|
2520
2520
|
return zi(n, a);
|
|
@@ -2523,7 +2523,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2523
2523
|
return !1;
|
|
2524
2524
|
},
|
|
2525
2525
|
set: function(a, i) {
|
|
2526
|
-
Te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Te()),
|
|
2526
|
+
Te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Te()), ki(e, a, i)) : xe ? (n || (n = new xe()), ji(n, a, i)) : (r || (r = { key: {}, next: null }), Wi(r, a, i));
|
|
2527
2527
|
}
|
|
2528
2528
|
};
|
|
2529
2529
|
return o;
|
|
@@ -2660,7 +2660,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2660
2660
|
isRegExp: ns,
|
|
2661
2661
|
maybeMap: is,
|
|
2662
2662
|
merge: Yi
|
|
2663
|
-
}, un = Ji,
|
|
2663
|
+
}, un = Ji, _e = cn, be = Bt, ss = Object.prototype.hasOwnProperty, fn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
2666
2666
|
},
|
|
@@ -2671,8 +2671,8 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2671
2671
|
repeat: function(e) {
|
|
2672
2672
|
return e;
|
|
2673
2673
|
}
|
|
2674
|
-
},
|
|
2675
|
-
ls.apply(t,
|
|
2674
|
+
}, k = Array.isArray, ls = Array.prototype.push, pn = function(t, e) {
|
|
2675
|
+
ls.apply(t, k(e) ? e : [e]);
|
|
2676
2676
|
}, cs = Date.prototype.toISOString, Sr = be.default, P = {
|
|
2677
2677
|
addQueryPrefix: !1,
|
|
2678
2678
|
allowDots: !1,
|
|
@@ -2683,7 +2683,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%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: Sr,
|
|
2689
2689
|
formatter: be.formatters[Sr],
|
|
@@ -2697,23 +2697,23 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2697
2697
|
}, us = function(e) {
|
|
2698
2698
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2699
2699
|
}, lt = {}, fs = 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 (us(v) ||
|
|
2716
|
+
if (us(v) || _e.isBuffer(v)) {
|
|
2717
2717
|
if (l) {
|
|
2718
2718
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2719
2719
|
return [m(q) + "=" + m(l(v, P.encoder, S, "value", y))];
|
|
@@ -2724,21 +2724,21 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2724
2724
|
if (typeof v > "u")
|
|
2725
2725
|
return U;
|
|
2726
2726
|
var j;
|
|
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)), j = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2729
|
+
else if (k(c))
|
|
2730
2730
|
j = c;
|
|
2731
2731
|
else {
|
|
2732
2732
|
var Re = Object.keys(v);
|
|
2733
2733
|
j = 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 < j.length; ++z) {
|
|
2739
2739
|
var H = j[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, vn =
|
|
2741
|
+
var We = d && u ? H.replace(/\./g, "%2E") : H, vn = k(v) ? typeof r == "function" ? r($, We) : $ : $ + (d ? "." + We : "[" + We + "]");
|
|
2742
2742
|
E.set(e, A);
|
|
2743
2743
|
var Ut = un();
|
|
2744
2744
|
Ut.set(lt, E), pn(U, t(
|
|
@@ -2750,7 +2750,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%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,
|
|
@@ -2783,7 +2783,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%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 fn ? 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 sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2811
2811
|
};
|
|
2812
2812
|
}, ds = function(t, e) {
|
|
2813
2813
|
var n = t, r = ps(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 "";
|
|
@@ -2976,7 +2976,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2976
2976
|
};
|
|
2977
2977
|
const Ts = /* @__PURE__ */ sa(Ps);
|
|
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)
|
|
@@ -2998,7 +2998,7 @@ var xs = {
|
|
|
2998
2998
|
function At(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 At(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 At(this.converter,
|
|
3036
|
+
return At(this.converter, Ce({}, this.attributes, o));
|
|
3037
3037
|
},
|
|
3038
3038
|
withConverter: function(o) {
|
|
3039
|
-
return At(
|
|
3039
|
+
return At(Ce({}, this.converter, o), this.attributes);
|
|
3040
3040
|
}
|
|
3041
3041
|
},
|
|
3042
3042
|
{
|
|
@@ -3045,19 +3045,20 @@ function At(t, e) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
);
|
|
3047
3047
|
}
|
|
3048
|
-
var
|
|
3049
|
-
const
|
|
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" },
|
|
3048
|
+
var Cs = At(xs, { path: "/" });
|
|
3049
|
+
const Fs = {
|
|
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
|
-
bn(
|
|
3061
|
+
bn(Fs);
|
|
3061
3062
|
Ot.extend(Pn);
|
|
3062
3063
|
Ot.extend(Tn);
|
|
3063
3064
|
const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
@@ -3095,7 +3096,7 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
|
3095
3096
|
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
|
|
3096
3097
|
}
|
|
3097
3098
|
return { ...o, code: n, msg: r, error: t };
|
|
3098
|
-
},
|
|
3099
|
+
}, _s = (t, e) => {
|
|
3099
3100
|
const n = R.create();
|
|
3100
3101
|
return wn(n, async (r) => {
|
|
3101
3102
|
const o = Er();
|
|
@@ -3105,9 +3106,9 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
|
3105
3106
|
const c = new URL(location.href).searchParams;
|
|
3106
3107
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3107
3108
|
}
|
|
3108
|
-
hn ? l || (l = await Sn(r)) : (l || (l =
|
|
3109
|
+
hn ? l || (l = await Sn(r)) : (l || (l = Fn()), l || gn()), 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) => Ts.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ns), r.onError || (r.onError = Ds), (r.csrf ?? !1) && (r.headers["csrf-token"] =
|
|
3111
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Ts.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ns), r.onError || (r.onError = Ds), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cs.get("csrf-token"));
|
|
3111
3112
|
const s = r.params || {};
|
|
3112
3113
|
if (s.project === void 0) {
|
|
3113
3114
|
let l = 0;
|
|
@@ -3115,12 +3116,12 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
|
3115
3116
|
l = c.get("project") || c.get("projectId") || 0, l || (l = xn().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
|
-
const { instanceInfo: l } =
|
|
3119
|
+
const { instanceInfo: l } = Cn();
|
|
3119
3120
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3120
3121
|
}
|
|
3121
3122
|
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3122
3123
|
});
|
|
3123
|
-
},
|
|
3124
|
+
}, Is = "v1", Hs = _s(`/api/license/admin/${Is}`);
|
|
3124
3125
|
export {
|
|
3125
3126
|
Hs as authentication
|
|
3126
3127
|
};
|