@das-fed/utils 7.0.5-test.20 → 7.0.5-test.22
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/index.js +1034 -1035
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +826 -824
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +851 -853
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +204 -188
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +851 -853
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +856 -858
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +851 -853
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +178 -162
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +192 -176
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +643 -626
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1100 -1102
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.d.ts +1 -1
- package/api-services/modules/justauth/index.js +387 -370
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +192 -176
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +851 -853
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +851 -853
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +276 -260
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +851 -853
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +192 -176
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +207 -191
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +199 -183
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +755 -721
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +192 -176
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +720 -708
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +850 -852
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +850 -852
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +1 -1
- package/create-api-service/sso/index.js +520 -485
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.d.ts +19 -0
- package/create-api-service/thirdLogout/index.js +1834 -0
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +30 -0
- package/create-api-service/unauthorized-recovery/index.js +10 -0
- package/curring-http/type.d.ts +93 -87
- package/esm-map.json +8 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as zn, currentLang as Hn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as Wn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as Gn, getQuery as Jn, login as Vn, real_uri as Kn, getTokenParams as Qn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Mt from "dayjs";
|
|
@@ -6,29 +6,29 @@ import Xn from "dayjs/plugin/utc";
|
|
|
6
6
|
import Zn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Yn, getInstanceInfo as eo } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as to } from "@das-fed/utils/token-tools";
|
|
9
|
-
import { getConfig as
|
|
10
|
-
function
|
|
9
|
+
import { getConfig as qr } from "@das-fed/utils/config";
|
|
10
|
+
function jr(t, e) {
|
|
11
11
|
return function() {
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: ro } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator:
|
|
15
|
+
const { toString: ro } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator: He, toStringTag: zr } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = ro.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Ge = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = Ge("undefined");
|
|
19
19
|
function Se(t) {
|
|
20
20
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Hr = I("ArrayBuffer");
|
|
23
23
|
function no(t) {
|
|
24
24
|
let e;
|
|
25
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
25
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Hr(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const oo = Ge("string"), F = Ge("function"),
|
|
27
|
+
const oo = Ge("string"), F = Ge("function"), Wr = Ge("number"), Ee = (t) => t !== null && typeof t == "object", ao = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
28
|
if (We(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = kt(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(zr in t) && !(He in t);
|
|
32
32
|
}, io = (t) => {
|
|
33
33
|
if (!Ee(t) || Se(t))
|
|
34
34
|
return !1;
|
|
@@ -58,7 +58,7 @@ function Ae(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
58
58
|
s = a[r], e.call(null, t[s], s, t);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Gr(t, e) {
|
|
62
62
|
if (Se(t))
|
|
63
63
|
return null;
|
|
64
64
|
e = e.toLowerCase();
|
|
@@ -69,10 +69,10 @@ function zr(t, e) {
|
|
|
69
69
|
return o;
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
|
-
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
72
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Jr = (t) => !we(t) && t !== Q;
|
|
73
73
|
function Pt() {
|
|
74
|
-
const { caseless: t } =
|
|
75
|
-
const a = t &&
|
|
74
|
+
const { caseless: t } = Jr(this) && this || {}, e = {}, n = (r, o) => {
|
|
75
|
+
const a = t && Gr(e, o) || o;
|
|
76
76
|
Fe(e[a]) && Fe(r) ? e[a] = Pt(e[a], r) : Fe(r) ? e[a] = Pt({}, r) : ce(r) ? e[a] = r.slice() : e[a] = r;
|
|
77
77
|
};
|
|
78
78
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -80,7 +80,7 @@ function Pt() {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
83
|
-
n && F(o) ? t[a] =
|
|
83
|
+
n && F(o) ? t[a] = jr(o, n) : t[a] = o;
|
|
84
84
|
}, { allOwnKeys: r }), t), So = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Eo = (t, e, n, r) => {
|
|
85
85
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
86
86
|
value: e.prototype
|
|
@@ -103,13 +103,13 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
103
103
|
if (!t) return null;
|
|
104
104
|
if (ce(t)) return t;
|
|
105
105
|
let e = t.length;
|
|
106
|
-
if (!
|
|
106
|
+
if (!Wr(e)) return null;
|
|
107
107
|
const n = new Array(e);
|
|
108
108
|
for (; e-- > 0; )
|
|
109
109
|
n[e] = t[e];
|
|
110
110
|
return n;
|
|
111
111
|
}, Po = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kt(Uint8Array)), To = (t, e) => {
|
|
112
|
-
const r = (t && t[
|
|
112
|
+
const r = (t && t[He]).call(t);
|
|
113
113
|
let o;
|
|
114
114
|
for (; (o = r.next()) && !o.done; ) {
|
|
115
115
|
const a = o.value;
|
|
@@ -126,14 +126,14 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
126
126
|
function(n, r, o) {
|
|
127
127
|
return r.toUpperCase() + o;
|
|
128
128
|
}
|
|
129
|
-
),
|
|
129
|
+
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), No = I("RegExp"), Vr = (t, e) => {
|
|
130
130
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
131
131
|
Ae(n, (o, a) => {
|
|
132
132
|
let i;
|
|
133
133
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
134
134
|
}), Object.defineProperties(t, r);
|
|
135
135
|
}, Fo = (t) => {
|
|
136
|
-
|
|
136
|
+
Vr(t, (e, n) => {
|
|
137
137
|
if (F(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
138
138
|
return !1;
|
|
139
139
|
const r = t[n];
|
|
@@ -157,9 +157,9 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
157
157
|
}, Do = () => {
|
|
158
158
|
}, Io = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function Bo(t) {
|
|
160
|
-
return !!(t && F(t.append) && t[
|
|
160
|
+
return !!(t && F(t.append) && t[zr] === "FormData" && t[He]);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const Uo = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
164
164
|
if (Ee(r)) {
|
|
165
165
|
if (e.indexOf(r) >= 0)
|
|
@@ -178,21 +178,21 @@ const Lo = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
},
|
|
181
|
+
}, Lo = I("AsyncFunction"), Mo = (t) => t && (Ee(t) || F(t)) && F(t.then) && F(t.catch), Kr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
182
182
|
o === Q && a === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Q.postMessage(n, "*");
|
|
185
185
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
186
186
|
typeof setImmediate == "function",
|
|
187
187
|
F(Q.postMessage)
|
|
188
|
-
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick ||
|
|
188
|
+
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Kr, qo = (t) => t != null && F(t[He]), f = {
|
|
189
189
|
isArray: ce,
|
|
190
|
-
isArrayBuffer:
|
|
190
|
+
isArrayBuffer: Hr,
|
|
191
191
|
isBuffer: Se,
|
|
192
192
|
isFormData: po,
|
|
193
193
|
isArrayBufferView: no,
|
|
194
194
|
isString: oo,
|
|
195
|
-
isNumber:
|
|
195
|
+
isNumber: Wr,
|
|
196
196
|
isBoolean: ao,
|
|
197
197
|
isObject: Ee,
|
|
198
198
|
isPlainObject: Fe,
|
|
@@ -225,23 +225,23 @@ const Lo = (t) => {
|
|
|
225
225
|
forEachEntry: To,
|
|
226
226
|
matchAll: xo,
|
|
227
227
|
isHTMLForm: Co,
|
|
228
|
-
hasOwnProperty:
|
|
229
|
-
hasOwnProp:
|
|
228
|
+
hasOwnProperty: Yt,
|
|
229
|
+
hasOwnProp: Yt,
|
|
230
230
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
231
|
-
reduceDescriptors:
|
|
231
|
+
reduceDescriptors: Vr,
|
|
232
232
|
freezeMethods: Fo,
|
|
233
233
|
toObjectSet: $o,
|
|
234
234
|
toCamelCase: _o,
|
|
235
235
|
noop: Do,
|
|
236
236
|
toFiniteNumber: Io,
|
|
237
|
-
findKey:
|
|
237
|
+
findKey: Gr,
|
|
238
238
|
global: Q,
|
|
239
|
-
isContextDefined:
|
|
239
|
+
isContextDefined: Jr,
|
|
240
240
|
isSpecCompliantForm: Bo,
|
|
241
|
-
toJSONObject:
|
|
242
|
-
isAsyncFn:
|
|
241
|
+
toJSONObject: Uo,
|
|
242
|
+
isAsyncFn: Lo,
|
|
243
243
|
isThenable: Mo,
|
|
244
|
-
setImmediate:
|
|
244
|
+
setImmediate: Kr,
|
|
245
245
|
asap: ko,
|
|
246
246
|
isIterable: qo
|
|
247
247
|
};
|
|
@@ -269,7 +269,7 @@ f.inherits(w, Error, {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
const
|
|
272
|
+
const Qr = w.prototype, Xr = {};
|
|
273
273
|
[
|
|
274
274
|
"ERR_BAD_OPTION_VALUE",
|
|
275
275
|
"ERR_BAD_OPTION",
|
|
@@ -285,12 +285,12 @@ const Vr = w.prototype, Kr = {};
|
|
|
285
285
|
"ERR_INVALID_URL"
|
|
286
286
|
// eslint-disable-next-line func-names
|
|
287
287
|
].forEach((t) => {
|
|
288
|
-
|
|
288
|
+
Xr[t] = { value: t };
|
|
289
289
|
});
|
|
290
|
-
Object.defineProperties(w,
|
|
291
|
-
Object.defineProperty(
|
|
290
|
+
Object.defineProperties(w, Xr);
|
|
291
|
+
Object.defineProperty(Qr, "isAxiosError", { value: !0 });
|
|
292
292
|
w.from = (t, e, n, r, o, a) => {
|
|
293
|
-
const i = Object.create(
|
|
293
|
+
const i = Object.create(Qr);
|
|
294
294
|
return f.toFlatObject(t, i, function(u) {
|
|
295
295
|
return u !== Error.prototype;
|
|
296
296
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
@@ -299,18 +299,18 @@ const jo = null;
|
|
|
299
299
|
function Tt(t) {
|
|
300
300
|
return f.isPlainObject(t) || f.isArray(t);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Zr(t) {
|
|
303
303
|
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function er(t, e, n) {
|
|
306
306
|
return t ? t.concat(e).map(function(o, a) {
|
|
307
|
-
return o =
|
|
307
|
+
return o = Zr(o), !n && a ? "[" + o + "]" : o;
|
|
308
308
|
}).join(n ? "." : "") : e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function zo(t) {
|
|
311
311
|
return f.isArray(t) && !t.some(Tt);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Ho = f.toFlatObject(f, {}, null, function(e) {
|
|
314
314
|
return /^is[A-Z]/.test(e);
|
|
315
315
|
});
|
|
316
316
|
function Je(t, e, n) {
|
|
@@ -341,23 +341,23 @@ function Je(t, e, n) {
|
|
|
341
341
|
if (y && !h && typeof y == "object") {
|
|
342
342
|
if (f.endsWith(m, "{}"))
|
|
343
343
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
344
|
-
else if (f.isArray(y) &&
|
|
345
|
-
return m =
|
|
346
|
-
!(f.isUndefined(
|
|
344
|
+
else if (f.isArray(y) && zo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
|
+
return m = Zr(m), S.forEach(function(g, T) {
|
|
346
|
+
!(f.isUndefined(g) || g === null) && e.append(
|
|
347
347
|
// eslint-disable-next-line no-nested-ternary
|
|
348
|
-
i === !0 ?
|
|
349
|
-
l(
|
|
348
|
+
i === !0 ? er([m], T, a) : i === null ? m : m + "[]",
|
|
349
|
+
l(g)
|
|
350
350
|
);
|
|
351
351
|
}), !1;
|
|
352
352
|
}
|
|
353
|
-
return Tt(y) ? !0 : (e.append(
|
|
353
|
+
return Tt(y) ? !0 : (e.append(er(h, m, a), l(y)), !1);
|
|
354
354
|
}
|
|
355
|
-
const p = [], d = Object.assign(
|
|
355
|
+
const p = [], d = Object.assign(Ho, {
|
|
356
356
|
defaultVisitor: c,
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Tt
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function v(y, m) {
|
|
361
361
|
if (!f.isUndefined(y)) {
|
|
362
362
|
if (p.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -368,15 +368,15 @@ function Je(t, e, n) {
|
|
|
368
368
|
f.isString(E) ? E.trim() : E,
|
|
369
369
|
m,
|
|
370
370
|
d
|
|
371
|
-
)) === !0 &&
|
|
371
|
+
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
372
|
}), p.pop();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
if (!f.isObject(t))
|
|
376
376
|
throw new TypeError("data must be an object");
|
|
377
|
-
return
|
|
377
|
+
return v(t), e;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function tr(t) {
|
|
380
380
|
const e = {
|
|
381
381
|
"!": "%21",
|
|
382
382
|
"'": "%27",
|
|
@@ -393,14 +393,14 @@ function Yt(t) {
|
|
|
393
393
|
function qt(t, e) {
|
|
394
394
|
this._pairs = [], t && Je(t, this, e);
|
|
395
395
|
}
|
|
396
|
-
const
|
|
397
|
-
|
|
396
|
+
const Yr = qt.prototype;
|
|
397
|
+
Yr.append = function(e, n) {
|
|
398
398
|
this._pairs.push([e, n]);
|
|
399
399
|
};
|
|
400
|
-
|
|
400
|
+
Yr.toString = function(e) {
|
|
401
401
|
const n = e ? function(r) {
|
|
402
|
-
return e.call(this, r,
|
|
403
|
-
} :
|
|
402
|
+
return e.call(this, r, tr);
|
|
403
|
+
} : tr;
|
|
404
404
|
return this._pairs.map(function(o) {
|
|
405
405
|
return n(o[0]) + "=" + n(o[1]);
|
|
406
406
|
}, "").join("&");
|
|
@@ -408,7 +408,7 @@ Xr.toString = function(e) {
|
|
|
408
408
|
function Wo(t) {
|
|
409
409
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function en(t, e, n) {
|
|
412
412
|
if (!e)
|
|
413
413
|
return t;
|
|
414
414
|
const r = n && n.encode || Wo;
|
|
@@ -423,7 +423,7 @@ function Zr(t, e, n) {
|
|
|
423
423
|
}
|
|
424
424
|
return t;
|
|
425
425
|
}
|
|
426
|
-
class
|
|
426
|
+
class rr {
|
|
427
427
|
constructor() {
|
|
428
428
|
this.handlers = [];
|
|
429
429
|
}
|
|
@@ -477,7 +477,7 @@ class er {
|
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const tn = {
|
|
481
481
|
silentJSONParsing: !0,
|
|
482
482
|
forcedJSONParsing: !0,
|
|
483
483
|
clarifyTimeoutError: !1
|
|
@@ -521,7 +521,7 @@ function ra(t) {
|
|
|
521
521
|
a = n[r], e[a] = t[a];
|
|
522
522
|
return e;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function rn(t) {
|
|
525
525
|
function e(n, r, o, a) {
|
|
526
526
|
let i = n[a++];
|
|
527
527
|
if (i === "__proto__") return !0;
|
|
@@ -547,12 +547,12 @@ function na(t, e, n) {
|
|
|
547
547
|
return (n || JSON.stringify)(t);
|
|
548
548
|
}
|
|
549
549
|
const Oe = {
|
|
550
|
-
transitional:
|
|
550
|
+
transitional: tn,
|
|
551
551
|
adapter: ["xhr", "http", "fetch"],
|
|
552
552
|
transformRequest: [function(e, n) {
|
|
553
553
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
|
|
554
554
|
if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
|
|
555
|
-
return o ? JSON.stringify(
|
|
555
|
+
return o ? JSON.stringify(rn(e)) : e;
|
|
556
556
|
if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
|
|
557
557
|
return e;
|
|
558
558
|
if (f.isArrayBufferView(e))
|
|
@@ -640,7 +640,7 @@ const oa = f.toObjectSet([
|
|
|
640
640
|
`).forEach(function(i) {
|
|
641
641
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && oa[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
642
642
|
}), e;
|
|
643
|
-
},
|
|
643
|
+
}, nr = Symbol("internals");
|
|
644
644
|
function de(t) {
|
|
645
645
|
return t && String(t).trim().toLowerCase();
|
|
646
646
|
}
|
|
@@ -795,7 +795,7 @@ let $ = class {
|
|
|
795
795
|
return n.forEach((o) => r.set(o)), r;
|
|
796
796
|
}
|
|
797
797
|
static accessor(e) {
|
|
798
|
-
const r = (this[
|
|
798
|
+
const r = (this[nr] = this[nr] = {
|
|
799
799
|
accessors: {}
|
|
800
800
|
}).accessors, o = this.prototype;
|
|
801
801
|
function a(i) {
|
|
@@ -823,7 +823,7 @@ function nt(t, e) {
|
|
|
823
823
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
824
824
|
}), o.normalize(), a;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function nn(t) {
|
|
827
827
|
return !!(t && t.__CANCEL__);
|
|
828
828
|
}
|
|
829
829
|
function ue(t, e, n) {
|
|
@@ -832,7 +832,7 @@ function ue(t, e, n) {
|
|
|
832
832
|
f.inherits(ue, w, {
|
|
833
833
|
__CANCEL__: !0
|
|
834
834
|
});
|
|
835
|
-
function
|
|
835
|
+
function on(t, e, n) {
|
|
836
836
|
const r = n.config.validateStatus;
|
|
837
837
|
!n.status || !r || r(n.status) ? t(n) : e(new w(
|
|
838
838
|
"Request failed with status code " + n.status,
|
|
@@ -858,8 +858,8 @@ function fa(t, e) {
|
|
|
858
858
|
d += n[p++], p = p % t;
|
|
859
859
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
860
860
|
return;
|
|
861
|
-
const
|
|
862
|
-
return
|
|
861
|
+
const v = c && l - c;
|
|
862
|
+
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function pa(t, e) {
|
|
@@ -874,7 +874,7 @@ function pa(t, e) {
|
|
|
874
874
|
}, r - p)));
|
|
875
875
|
}, () => o && i(o)];
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Le = (t, e, n = 3) => {
|
|
878
878
|
let r = 0;
|
|
879
879
|
const o = fa(50, 250);
|
|
880
880
|
return pa((a) => {
|
|
@@ -893,14 +893,14 @@ const Ue = (t, e, n = 3) => {
|
|
|
893
893
|
};
|
|
894
894
|
t(p);
|
|
895
895
|
}, n);
|
|
896
|
-
},
|
|
896
|
+
}, or = (t, e) => {
|
|
897
897
|
const n = t != null;
|
|
898
898
|
return [(r) => e[0]({
|
|
899
899
|
lengthComputable: n,
|
|
900
900
|
total: t,
|
|
901
901
|
loaded: r
|
|
902
902
|
}), e[1]];
|
|
903
|
-
},
|
|
903
|
+
}, ar = (t) => (...e) => f.asap(() => t(...e)), da = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, C.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
904
904
|
new URL(C.origin),
|
|
905
905
|
C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
|
|
906
906
|
) : () => !0, ya = C.hasStandardBrowserEnv ? (
|
|
@@ -936,11 +936,11 @@ function ha(t) {
|
|
|
936
936
|
function ma(t, e) {
|
|
937
937
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function an(t, e, n) {
|
|
940
940
|
let r = !ha(e);
|
|
941
941
|
return t && (r || n == !1) ? ma(t, e) : e;
|
|
942
942
|
}
|
|
943
|
-
const
|
|
943
|
+
const ir = (t) => t instanceof $ ? { ...t } : t;
|
|
944
944
|
function Y(t, e) {
|
|
945
945
|
e = e || {};
|
|
946
946
|
const n = {};
|
|
@@ -998,17 +998,17 @@ function Y(t, e) {
|
|
|
998
998
|
socketPath: i,
|
|
999
999
|
responseEncoding: i,
|
|
1000
1000
|
validateStatus: s,
|
|
1001
|
-
headers: (l, c, p) => o(
|
|
1001
|
+
headers: (l, c, p) => o(ir(l), ir(c), p, !0)
|
|
1002
1002
|
};
|
|
1003
1003
|
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
1004
1004
|
const p = u[c] || o, d = p(t[c], e[c], c);
|
|
1005
1005
|
f.isUndefined(d) && p !== s || (n[c] = d);
|
|
1006
1006
|
}), n;
|
|
1007
1007
|
}
|
|
1008
|
-
const
|
|
1008
|
+
const sn = (t) => {
|
|
1009
1009
|
const e = Y({}, t);
|
|
1010
1010
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
|
|
1011
|
-
e.headers = i = $.from(i), e.url =
|
|
1011
|
+
e.headers = i = $.from(i), e.url = en(an(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && i.set(
|
|
1012
1012
|
"Authorization",
|
|
1013
1013
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1014
1014
|
);
|
|
@@ -1028,29 +1028,29 @@ const on = (t) => {
|
|
|
1028
1028
|
return e;
|
|
1029
1029
|
}, ga = typeof XMLHttpRequest < "u", va = ga && function(t) {
|
|
1030
1030
|
return new Promise(function(n, r) {
|
|
1031
|
-
const o =
|
|
1031
|
+
const o = sn(t);
|
|
1032
1032
|
let a = o.data;
|
|
1033
1033
|
const i = $.from(o.headers).normalize();
|
|
1034
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d,
|
|
1034
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
|
|
1035
1035
|
function m() {
|
|
1036
|
-
|
|
1036
|
+
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1037
1037
|
}
|
|
1038
1038
|
let h = new XMLHttpRequest();
|
|
1039
1039
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1040
1040
|
function S() {
|
|
1041
1041
|
if (!h)
|
|
1042
1042
|
return;
|
|
1043
|
-
const
|
|
1043
|
+
const g = $.from(
|
|
1044
1044
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1045
1045
|
), A = {
|
|
1046
1046
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1047
1047
|
status: h.status,
|
|
1048
1048
|
statusText: h.statusText,
|
|
1049
|
-
headers:
|
|
1049
|
+
headers: g,
|
|
1050
1050
|
config: t,
|
|
1051
1051
|
request: h
|
|
1052
1052
|
};
|
|
1053
|
-
|
|
1053
|
+
on(function(N) {
|
|
1054
1054
|
n(N), m();
|
|
1055
1055
|
}, function(N) {
|
|
1056
1056
|
r(N), m();
|
|
@@ -1064,7 +1064,7 @@ const on = (t) => {
|
|
|
1064
1064
|
r(new w("Network Error", w.ERR_NETWORK, t, h)), h = null;
|
|
1065
1065
|
}, h.ontimeout = function() {
|
|
1066
1066
|
let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
|
-
const A = o.transitional ||
|
|
1067
|
+
const A = o.transitional || tn;
|
|
1068
1068
|
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new w(
|
|
1069
1069
|
T,
|
|
1070
1070
|
A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
@@ -1073,8 +1073,8 @@ const on = (t) => {
|
|
|
1073
1073
|
)), h = null;
|
|
1074
1074
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1075
1075
|
h.setRequestHeader(A, T);
|
|
1076
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1077
|
-
h && (r(!
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Le(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Le(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
|
+
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1078
1078
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1079
1079
|
const E = ua(o.url);
|
|
1080
1080
|
if (E && C.protocols.indexOf(E) === -1) {
|
|
@@ -1134,7 +1134,7 @@ const on = (t) => {
|
|
|
1134
1134
|
} finally {
|
|
1135
1135
|
await e.cancel();
|
|
1136
1136
|
}
|
|
1137
|
-
},
|
|
1137
|
+
}, sr = (t, e, n, r) => {
|
|
1138
1138
|
const o = Sa(t, e);
|
|
1139
1139
|
let a = 0, i, s = (u) => {
|
|
1140
1140
|
i || (i = !0, r && r(u));
|
|
@@ -1163,13 +1163,13 @@ const on = (t) => {
|
|
|
1163
1163
|
}, {
|
|
1164
1164
|
highWaterMark: 2
|
|
1165
1165
|
});
|
|
1166
|
-
}, Ve = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1166
|
+
}, Ve = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ln = Ve && typeof ReadableStream == "function", Aa = Ve && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), cn = (t, ...e) => {
|
|
1167
1167
|
try {
|
|
1168
1168
|
return !!t(...e);
|
|
1169
1169
|
} catch {
|
|
1170
1170
|
return !1;
|
|
1171
1171
|
}
|
|
1172
|
-
}, Oa =
|
|
1172
|
+
}, Oa = ln && cn(() => {
|
|
1173
1173
|
let t = !1;
|
|
1174
1174
|
const e = new Request(C.origin, {
|
|
1175
1175
|
body: new ReadableStream(),
|
|
@@ -1179,7 +1179,7 @@ const on = (t) => {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}).headers.has("Content-Type");
|
|
1181
1181
|
return t && !e;
|
|
1182
|
-
}),
|
|
1182
|
+
}), lr = 64 * 1024, Ct = ln && cn(() => f.isReadableStream(new Response("").body)), Me = {
|
|
1183
1183
|
stream: Ct && ((t) => t.body)
|
|
1184
1184
|
};
|
|
1185
1185
|
Ve && ((t) => {
|
|
@@ -1220,11 +1220,11 @@ const Ra = async (t) => {
|
|
|
1220
1220
|
headers: c,
|
|
1221
1221
|
withCredentials: p = "same-origin",
|
|
1222
1222
|
fetchOptions: d
|
|
1223
|
-
} =
|
|
1223
|
+
} = sn(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
|
-
let
|
|
1226
|
-
const m =
|
|
1227
|
-
|
|
1225
|
+
let v = wa([o, a && a.toAbortSignal()], i), y;
|
|
1226
|
+
const m = v && v.unsubscribe && (() => {
|
|
1227
|
+
v.unsubscribe();
|
|
1228
1228
|
});
|
|
1229
1229
|
let h;
|
|
1230
1230
|
try {
|
|
@@ -1235,18 +1235,18 @@ const Ra = async (t) => {
|
|
|
1235
1235
|
duplex: "half"
|
|
1236
1236
|
}), _;
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
|
-
const [N, q] =
|
|
1238
|
+
const [N, q] = or(
|
|
1239
1239
|
h,
|
|
1240
|
-
|
|
1240
|
+
Le(ar(u))
|
|
1241
1241
|
);
|
|
1242
|
-
r =
|
|
1242
|
+
r = sr(A.body, lr, N, q);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
1248
|
...d,
|
|
1249
|
-
signal:
|
|
1249
|
+
signal: v,
|
|
1250
1250
|
method: n.toUpperCase(),
|
|
1251
1251
|
headers: c.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
@@ -1254,18 +1254,18 @@ const Ra = async (t) => {
|
|
|
1254
1254
|
credentials: S ? p : void 0
|
|
1255
1255
|
});
|
|
1256
1256
|
let E = await fetch(y, d);
|
|
1257
|
-
const
|
|
1258
|
-
if (Ct && (s ||
|
|
1257
|
+
const g = Ct && (l === "stream" || l === "response");
|
|
1258
|
+
if (Ct && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
1260
|
["status", "statusText", "headers"].forEach((B) => {
|
|
1261
1261
|
A[B] = E[B];
|
|
1262
1262
|
});
|
|
1263
|
-
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s &&
|
|
1263
|
+
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && or(
|
|
1264
1264
|
_,
|
|
1265
|
-
|
|
1265
|
+
Le(ar(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
|
-
|
|
1268
|
+
sr(E.body, lr, N, () => {
|
|
1269
1269
|
q && q(), m && m();
|
|
1270
1270
|
}),
|
|
1271
1271
|
A
|
|
@@ -1273,8 +1273,8 @@ const Ra = async (t) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
l = l || "text";
|
|
1275
1275
|
let T = await Me[f.findKey(Me, l) || "text"](E, t);
|
|
1276
|
-
return !
|
|
1277
|
-
|
|
1276
|
+
return !g && m && m(), await new Promise((A, _) => {
|
|
1277
|
+
on(A, _, {
|
|
1278
1278
|
data: T,
|
|
1279
1279
|
headers: $.from(E.headers),
|
|
1280
1280
|
status: E.status,
|
|
@@ -1305,7 +1305,7 @@ f.forEach(_t, (t, e) => {
|
|
|
1305
1305
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1306
1306
|
}
|
|
1307
1307
|
});
|
|
1308
|
-
const
|
|
1308
|
+
const cr = (t) => `- ${t}`, xa = (t) => f.isFunction(t) || t === null || t === !1, un = {
|
|
1309
1309
|
getAdapter: (t) => {
|
|
1310
1310
|
t = f.isArray(t) ? t : [t];
|
|
1311
1311
|
const { length: e } = t;
|
|
@@ -1325,8 +1325,8 @@ const sr = (t) => `- ${t}`, xa = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1325
1325
|
([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1326
1326
|
);
|
|
1327
1327
|
let i = e ? a.length > 1 ? `since :
|
|
1328
|
-
` + a.map(
|
|
1329
|
-
`) : " " +
|
|
1328
|
+
` + a.map(cr).join(`
|
|
1329
|
+
`) : " " + cr(a[0]) : "as no adapter specified";
|
|
1330
1330
|
throw new w(
|
|
1331
1331
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1332
1332
|
"ERR_NOT_SUPPORT"
|
|
@@ -1340,34 +1340,34 @@ function ot(t) {
|
|
|
1340
1340
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1341
1341
|
throw new ue(null, t);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function ur(t) {
|
|
1344
1344
|
return ot(t), t.headers = $.from(t.headers), t.data = nt.call(
|
|
1345
1345
|
t,
|
|
1346
1346
|
t.transformRequest
|
|
1347
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1347
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), un.getAdapter(t.adapter || Oe.adapter)(t).then(function(r) {
|
|
1348
1348
|
return ot(t), r.data = nt.call(
|
|
1349
1349
|
t,
|
|
1350
1350
|
t.transformResponse,
|
|
1351
1351
|
r
|
|
1352
1352
|
), r.headers = $.from(r.headers), r;
|
|
1353
1353
|
}, function(r) {
|
|
1354
|
-
return
|
|
1354
|
+
return nn(r) || (ot(t), r && r.response && (r.response.data = nt.call(
|
|
1355
1355
|
t,
|
|
1356
1356
|
t.transformResponse,
|
|
1357
1357
|
r.response
|
|
1358
1358
|
), r.response.headers = $.from(r.response.headers))), Promise.reject(r);
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
const
|
|
1361
|
+
const fn = "1.11.0", Ke = {};
|
|
1362
1362
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1363
1363
|
Ke[t] = function(r) {
|
|
1364
1364
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1365
1365
|
};
|
|
1366
1366
|
});
|
|
1367
|
-
const
|
|
1367
|
+
const fr = {};
|
|
1368
1368
|
Ke.transitional = function(e, n, r) {
|
|
1369
1369
|
function o(a, i) {
|
|
1370
|
-
return "[Axios v" +
|
|
1370
|
+
return "[Axios v" + fn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1371
1371
|
}
|
|
1372
1372
|
return (a, i, s) => {
|
|
1373
1373
|
if (e === !1)
|
|
@@ -1375,7 +1375,7 @@ Ke.transitional = function(e, n, r) {
|
|
|
1375
1375
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1376
1376
|
w.ERR_DEPRECATED
|
|
1377
1377
|
);
|
|
1378
|
-
return n && !
|
|
1378
|
+
return n && !fr[i] && (fr[i] = !0), e ? e(a, i, s) : !0;
|
|
1379
1379
|
};
|
|
1380
1380
|
};
|
|
1381
1381
|
Ke.spelling = function(e) {
|
|
@@ -1401,12 +1401,12 @@ function Ca(t, e, n) {
|
|
|
1401
1401
|
const De = {
|
|
1402
1402
|
assertOptions: Ca,
|
|
1403
1403
|
validators: Ke
|
|
1404
|
-
},
|
|
1404
|
+
}, U = De.validators;
|
|
1405
1405
|
let X = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
1408
|
-
request: new
|
|
1409
|
-
response: new
|
|
1408
|
+
request: new rr(),
|
|
1409
|
+
response: new rr()
|
|
1410
1410
|
};
|
|
1411
1411
|
}
|
|
1412
1412
|
/**
|
|
@@ -1438,17 +1438,17 @@ let X = class {
|
|
|
1438
1438
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1439
1439
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1440
1440
|
r !== void 0 && De.assertOptions(r, {
|
|
1441
|
-
silentJSONParsing:
|
|
1442
|
-
forcedJSONParsing:
|
|
1443
|
-
clarifyTimeoutError:
|
|
1441
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1442
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1443
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1444
1444
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1445
1445
|
serialize: o
|
|
1446
1446
|
} : De.assertOptions(o, {
|
|
1447
|
-
encode:
|
|
1448
|
-
serialize:
|
|
1447
|
+
encode: U.function,
|
|
1448
|
+
serialize: U.function
|
|
1449
1449
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1450
|
-
baseUrl:
|
|
1451
|
-
withXsrfToken:
|
|
1450
|
+
baseUrl: U.spelling("baseURL"),
|
|
1451
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1452
1452
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
1453
|
let i = a && f.merge(
|
|
1454
1454
|
a.common,
|
|
@@ -1471,24 +1471,24 @@ let X = class {
|
|
|
1471
1471
|
});
|
|
1472
1472
|
let c, p = 0, d;
|
|
1473
1473
|
if (!u) {
|
|
1474
|
-
const y = [
|
|
1474
|
+
const y = [ur.bind(this), void 0];
|
|
1475
1475
|
for (y.unshift(...s), y.push(...l), d = y.length, c = Promise.resolve(n); p < d; )
|
|
1476
1476
|
c = c.then(y[p++], y[p++]);
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
1479
|
d = s.length;
|
|
1480
|
-
let
|
|
1480
|
+
let v = n;
|
|
1481
1481
|
for (p = 0; p < d; ) {
|
|
1482
1482
|
const y = s[p++], m = s[p++];
|
|
1483
1483
|
try {
|
|
1484
|
-
|
|
1484
|
+
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
1486
1486
|
m.call(this, h);
|
|
1487
1487
|
break;
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
try {
|
|
1491
|
-
c =
|
|
1491
|
+
c = ur.call(this, v);
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
@@ -1498,8 +1498,8 @@ let X = class {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
getUri(e) {
|
|
1500
1500
|
e = Y(this.defaults, e);
|
|
1501
|
-
const n =
|
|
1502
|
-
return
|
|
1501
|
+
const n = an(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1502
|
+
return en(n, e.params, e.paramsSerializer);
|
|
1503
1503
|
}
|
|
1504
1504
|
};
|
|
1505
1505
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
X.prototype[e] = n(), X.prototype[e + "Form"] = n(!0);
|
|
1528
1528
|
});
|
|
1529
|
-
let _a = class
|
|
1529
|
+
let _a = class pn {
|
|
1530
1530
|
constructor(e) {
|
|
1531
1531
|
if (typeof e != "function")
|
|
1532
1532
|
throw new TypeError("executor must be a function.");
|
|
@@ -1592,7 +1592,7 @@ let _a = class un {
|
|
|
1592
1592
|
static source() {
|
|
1593
1593
|
let e;
|
|
1594
1594
|
return {
|
|
1595
|
-
token: new
|
|
1595
|
+
token: new pn(function(o) {
|
|
1596
1596
|
e = o;
|
|
1597
1597
|
}),
|
|
1598
1598
|
cancel: e
|
|
@@ -1675,18 +1675,18 @@ const Nt = {
|
|
|
1675
1675
|
Object.entries(Nt).forEach(([t, e]) => {
|
|
1676
1676
|
Nt[e] = t;
|
|
1677
1677
|
});
|
|
1678
|
-
function
|
|
1679
|
-
const e = new X(t), n =
|
|
1678
|
+
function dn(t) {
|
|
1679
|
+
const e = new X(t), n = jr(X.prototype.request, e);
|
|
1680
1680
|
return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1681
|
-
return
|
|
1681
|
+
return dn(Y(t, o));
|
|
1682
1682
|
}, n;
|
|
1683
1683
|
}
|
|
1684
|
-
const R =
|
|
1684
|
+
const R = dn(Oe);
|
|
1685
1685
|
R.Axios = X;
|
|
1686
1686
|
R.CanceledError = ue;
|
|
1687
1687
|
R.CancelToken = _a;
|
|
1688
|
-
R.isCancel =
|
|
1689
|
-
R.VERSION =
|
|
1688
|
+
R.isCancel = nn;
|
|
1689
|
+
R.VERSION = fn;
|
|
1690
1690
|
R.toFormData = Je;
|
|
1691
1691
|
R.AxiosError = w;
|
|
1692
1692
|
R.Cancel = R.CanceledError;
|
|
@@ -1697,29 +1697,29 @@ R.spread = Na;
|
|
|
1697
1697
|
R.isAxiosError = Fa;
|
|
1698
1698
|
R.mergeConfig = Y;
|
|
1699
1699
|
R.AxiosHeaders = $;
|
|
1700
|
-
R.formToJSON = (t) =>
|
|
1701
|
-
R.getAdapter =
|
|
1700
|
+
R.formToJSON = (t) => rn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1701
|
+
R.getAdapter = un.getAdapter;
|
|
1702
1702
|
R.HttpStatusCode = Nt;
|
|
1703
1703
|
R.default = R;
|
|
1704
1704
|
const {
|
|
1705
|
-
Axios:
|
|
1706
|
-
AxiosError:
|
|
1707
|
-
CanceledError:
|
|
1708
|
-
isCancel:
|
|
1709
|
-
CancelToken:
|
|
1710
|
-
VERSION:
|
|
1711
|
-
all:
|
|
1712
|
-
Cancel:
|
|
1713
|
-
isAxiosError:
|
|
1714
|
-
spread:
|
|
1715
|
-
toFormData:
|
|
1716
|
-
AxiosHeaders:
|
|
1717
|
-
HttpStatusCode:
|
|
1718
|
-
formToJSON:
|
|
1719
|
-
getAdapter:
|
|
1720
|
-
mergeConfig:
|
|
1705
|
+
Axios: Vl,
|
|
1706
|
+
AxiosError: Kl,
|
|
1707
|
+
CanceledError: Ql,
|
|
1708
|
+
isCancel: Xl,
|
|
1709
|
+
CancelToken: Zl,
|
|
1710
|
+
VERSION: Yl,
|
|
1711
|
+
all: ec,
|
|
1712
|
+
Cancel: tc,
|
|
1713
|
+
isAxiosError: rc,
|
|
1714
|
+
spread: nc,
|
|
1715
|
+
toFormData: oc,
|
|
1716
|
+
AxiosHeaders: ac,
|
|
1717
|
+
HttpStatusCode: ic,
|
|
1718
|
+
formToJSON: sc,
|
|
1719
|
+
getAdapter: lc,
|
|
1720
|
+
mergeConfig: cc
|
|
1721
1721
|
} = R;
|
|
1722
|
-
var
|
|
1722
|
+
var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function $a(t) {
|
|
1724
1724
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1725
1725
|
}
|
|
@@ -1746,16 +1746,16 @@ var fe = TypeError;
|
|
|
1746
1746
|
const Ia = {}, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: Ia
|
|
1749
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1750
|
-
var
|
|
1749
|
+
}, Symbol.toStringTag, { value: "Module" })), Ua = /* @__PURE__ */ Da(Ba);
|
|
1750
|
+
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, dr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, yr = Ht && Set.prototype.forEach, La = typeof WeakMap == "function" && WeakMap.prototype, he = La ? WeakMap.prototype.has : null, Ma = typeof WeakSet == "function" && WeakSet.prototype, me = Ma ? WeakSet.prototype.has : null, ka = typeof WeakRef == "function" && WeakRef.prototype, hr = ka ? WeakRef.prototype.deref : null, qa = Boolean.prototype.valueOf, ja = Object.prototype.toString, za = Function.prototype.toString, Ha = String.prototype.match, Wt = String.prototype.slice, J = String.prototype.replace, Wa = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, yn = RegExp.prototype.test, gr = Array.prototype.concat, k = Array.prototype.join, Ga = Array.prototype.slice, vr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
|
-
function
|
|
1754
|
-
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 ||
|
|
1753
|
+
function br(t, e) {
|
|
1754
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || yn.call(/e/, e))
|
|
1755
1755
|
return e;
|
|
1756
1756
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1757
1757
|
if (typeof t == "number") {
|
|
1758
|
-
var r = t < 0 ? -
|
|
1758
|
+
var r = t < 0 ? -vr(-t) : vr(t);
|
|
1759
1759
|
if (r !== t) {
|
|
1760
1760
|
var o = String(r), a = Wt.call(e, o.length + 1);
|
|
1761
1761
|
return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
@@ -1763,7 +1763,7 @@ function vr(t, e) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
return J.call(e, n, "$&_");
|
|
1765
1765
|
}
|
|
1766
|
-
var Dt =
|
|
1766
|
+
var Dt = Ua, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
1767
1767
|
__proto__: null,
|
|
1768
1768
|
double: '"',
|
|
1769
1769
|
single: "'"
|
|
@@ -1773,16 +1773,16 @@ var Dt = La, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1773
1773
|
single: /(['\\])/g
|
|
1774
1774
|
}, Qe = function t(e, n, r, o) {
|
|
1775
1775
|
var a = n || {};
|
|
1776
|
-
if (
|
|
1776
|
+
if (z(a, "quoteStyle") && !z(mn, a.quoteStyle))
|
|
1777
1777
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1778
|
-
if (
|
|
1778
|
+
if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
1779
1779
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1780
|
-
var i =
|
|
1780
|
+
var i = z(a, "customInspect") ? a.customInspect : !0;
|
|
1781
1781
|
if (typeof i != "boolean" && i !== "symbol")
|
|
1782
1782
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1783
|
-
if (
|
|
1783
|
+
if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
1784
1784
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1785
|
-
if (
|
|
1785
|
+
if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
1786
1786
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1787
1787
|
var s = a.numericSeparator;
|
|
1788
1788
|
if (typeof e > "u")
|
|
@@ -1792,16 +1792,16 @@ var Dt = La, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1792
1792
|
if (typeof e == "boolean")
|
|
1793
1793
|
return e ? "true" : "false";
|
|
1794
1794
|
if (typeof e == "string")
|
|
1795
|
-
return
|
|
1795
|
+
return bn(e, a);
|
|
1796
1796
|
if (typeof e == "number") {
|
|
1797
1797
|
if (e === 0)
|
|
1798
1798
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1799
1799
|
var u = String(e);
|
|
1800
|
-
return s ?
|
|
1800
|
+
return s ? br(e, u) : u;
|
|
1801
1801
|
}
|
|
1802
1802
|
if (typeof e == "bigint") {
|
|
1803
1803
|
var l = String(e) + "n";
|
|
1804
|
-
return s ?
|
|
1804
|
+
return s ? br(e, l) : l;
|
|
1805
1805
|
}
|
|
1806
1806
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1807
1807
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
@@ -1809,57 +1809,57 @@ var Dt = La, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1809
1809
|
var p = fi(a, r);
|
|
1810
1810
|
if (typeof o > "u")
|
|
1811
1811
|
o = [];
|
|
1812
|
-
else if (
|
|
1812
|
+
else if (wn(o, e) >= 0)
|
|
1813
1813
|
return "[Circular]";
|
|
1814
1814
|
function d(D, W, j) {
|
|
1815
1815
|
if (W && (o = Ga.call(o), o.push(W)), j) {
|
|
1816
1816
|
var pe = {
|
|
1817
1817
|
depth: a.depth
|
|
1818
1818
|
};
|
|
1819
|
-
return
|
|
1819
|
+
return z(a, "quoteStyle") && (pe.quoteStyle = a.quoteStyle), t(D, pe, r + 1, o);
|
|
1820
1820
|
}
|
|
1821
1821
|
return t(D, a, r + 1, o);
|
|
1822
1822
|
}
|
|
1823
|
-
if (typeof e == "function" && !
|
|
1824
|
-
var
|
|
1825
|
-
return "[Function" + (
|
|
1823
|
+
if (typeof e == "function" && !Ar(e)) {
|
|
1824
|
+
var v = ri(e), y = Ce(e, d);
|
|
1825
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
|
-
if (
|
|
1827
|
+
if (vn(e)) {
|
|
1828
1828
|
var m = se ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : $t.call(e);
|
|
1829
1829
|
return typeof e == "object" && !se ? ye(m) : m;
|
|
1830
1830
|
}
|
|
1831
1831
|
if (li(e)) {
|
|
1832
|
-
for (var h = "<" +
|
|
1833
|
-
h += " " + S[E].name + "=" +
|
|
1834
|
-
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" +
|
|
1832
|
+
for (var h = "<" + mr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
|
|
1833
|
+
h += " " + S[E].name + "=" + gn(Va(S[E].value), "double", a);
|
|
1834
|
+
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
|
|
1835
1835
|
}
|
|
1836
1836
|
if (It(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var
|
|
1840
|
-
return p && !ui(
|
|
1839
|
+
var g = Ce(e, d);
|
|
1840
|
+
return p && !ui(g) ? "[" + Bt(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Qa(e)) {
|
|
1843
1843
|
var T = Ce(e, d);
|
|
1844
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
1844
|
+
return !("cause" in Error.prototype) && "cause" in e && !hn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(gr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(T, ", ") + " }";
|
|
1845
1845
|
}
|
|
1846
1846
|
if (typeof e == "object" && i) {
|
|
1847
|
-
if (
|
|
1847
|
+
if (Er && typeof e[Er] == "function" && Dt)
|
|
1848
1848
|
return Dt(e, { depth: c - r });
|
|
1849
1849
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
1850
1850
|
return e.inspect();
|
|
1851
1851
|
}
|
|
1852
1852
|
if (ni(e)) {
|
|
1853
1853
|
var A = [];
|
|
1854
|
-
return
|
|
1854
|
+
return dr && dr.call(e, function(D, W) {
|
|
1855
1855
|
A.push(d(W, e, !0) + " => " + d(D, e));
|
|
1856
|
-
}),
|
|
1856
|
+
}), Or("Map", ke.call(e), A, p);
|
|
1857
1857
|
}
|
|
1858
1858
|
if (ii(e)) {
|
|
1859
1859
|
var _ = [];
|
|
1860
|
-
return
|
|
1860
|
+
return yr && yr.call(e, function(D) {
|
|
1861
1861
|
_.push(d(D, e));
|
|
1862
|
-
}),
|
|
1862
|
+
}), Or("Set", qe.call(e), _, p);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (oi(e))
|
|
1865
1865
|
return lt("WeakMap");
|
|
@@ -1877,16 +1877,16 @@ var Dt = La, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1877
1877
|
return ye(d(String(e)));
|
|
1878
1878
|
if (typeof window < "u" && e === window)
|
|
1879
1879
|
return "{ [object Window] }";
|
|
1880
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
1880
|
+
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
|
-
if (!Ka(e) && !
|
|
1883
|
-
var N = Ce(e, d), q =
|
|
1882
|
+
if (!Ka(e) && !Ar(e)) {
|
|
1883
|
+
var N = Ce(e, d), q = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Wt.call(V(e), 8, -1) : B ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || B ? "[" + k.call(gr.call([], H || [], B || []), ": ") + "] " : "");
|
|
1884
1884
|
return N.length === 0 ? re + "{}" : p ? re + "{" + Bt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
1887
1887
|
};
|
|
1888
|
-
function
|
|
1889
|
-
var r = n.quoteStyle || e, o =
|
|
1888
|
+
function gn(t, e, n) {
|
|
1889
|
+
var r = n.quoteStyle || e, o = mn[r];
|
|
1890
1890
|
return o + t + o;
|
|
1891
1891
|
}
|
|
1892
1892
|
function Va(t) {
|
|
@@ -1901,7 +1901,7 @@ function It(t) {
|
|
|
1901
1901
|
function Ka(t) {
|
|
1902
1902
|
return V(t) === "[object Date]" && te(t);
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function Ar(t) {
|
|
1905
1905
|
return V(t) === "[object RegExp]" && te(t);
|
|
1906
1906
|
}
|
|
1907
1907
|
function Qa(t) {
|
|
@@ -1916,7 +1916,7 @@ function Za(t) {
|
|
|
1916
1916
|
function Ya(t) {
|
|
1917
1917
|
return V(t) === "[object Boolean]" && te(t);
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function vn(t) {
|
|
1920
1920
|
if (se)
|
|
1921
1921
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1922
1922
|
if (typeof t == "symbol")
|
|
@@ -1941,7 +1941,7 @@ function ei(t) {
|
|
|
1941
1941
|
var ti = Object.prototype.hasOwnProperty || function(t) {
|
|
1942
1942
|
return t in this;
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function z(t, e) {
|
|
1945
1945
|
return ti.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function V(t) {
|
|
@@ -1950,10 +1950,10 @@ function V(t) {
|
|
|
1950
1950
|
function ri(t) {
|
|
1951
1951
|
if (t.name)
|
|
1952
1952
|
return t.name;
|
|
1953
|
-
var e =
|
|
1953
|
+
var e = Ha.call(za.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function wn(t, e) {
|
|
1957
1957
|
if (t.indexOf)
|
|
1958
1958
|
return t.indexOf(e);
|
|
1959
1959
|
for (var n = 0, r = t.length; n < r; n++)
|
|
@@ -1992,10 +1992,10 @@ function oi(t) {
|
|
|
1992
1992
|
return !1;
|
|
1993
1993
|
}
|
|
1994
1994
|
function ai(t) {
|
|
1995
|
-
if (!
|
|
1995
|
+
if (!hr || !t || typeof t != "object")
|
|
1996
1996
|
return !1;
|
|
1997
1997
|
try {
|
|
1998
|
-
return
|
|
1998
|
+
return hr.call(t), !0;
|
|
1999
1999
|
} catch {
|
|
2000
2000
|
}
|
|
2001
2001
|
return !1;
|
|
@@ -2033,15 +2033,15 @@ function si(t) {
|
|
|
2033
2033
|
function li(t) {
|
|
2034
2034
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function bn(t, e) {
|
|
2037
2037
|
if (t.length > e.maxStringLength) {
|
|
2038
2038
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2039
|
-
return
|
|
2039
|
+
return bn(Wt.call(t, 0, e.maxStringLength), e) + r;
|
|
2040
2040
|
}
|
|
2041
2041
|
var o = Ja[e.quoteStyle || "single"];
|
|
2042
2042
|
o.lastIndex = 0;
|
|
2043
2043
|
var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g, ci);
|
|
2044
|
-
return
|
|
2044
|
+
return gn(a, "single", e);
|
|
2045
2045
|
}
|
|
2046
2046
|
function ci(t) {
|
|
2047
2047
|
var e = t.charCodeAt(0), n = {
|
|
@@ -2059,13 +2059,13 @@ function ye(t) {
|
|
|
2059
2059
|
function lt(t) {
|
|
2060
2060
|
return t + " { ? }";
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2062
|
+
function Or(t, e, n, r) {
|
|
2063
2063
|
var o = r ? Bt(n, r) : k.call(n, ", ");
|
|
2064
2064
|
return t + " (" + e + ") {" + o + "}";
|
|
2065
2065
|
}
|
|
2066
2066
|
function ui(t) {
|
|
2067
2067
|
for (var e = 0; e < t.length; e++)
|
|
2068
|
-
if (
|
|
2068
|
+
if (wn(t[e], `
|
|
2069
2069
|
`) >= 0)
|
|
2070
2070
|
return !1;
|
|
2071
2071
|
return !0;
|
|
@@ -2096,7 +2096,7 @@ function Ce(t, e) {
|
|
|
2096
2096
|
if (n) {
|
|
2097
2097
|
r.length = t.length;
|
|
2098
2098
|
for (var o = 0; o < t.length; o++)
|
|
2099
|
-
r[o] =
|
|
2099
|
+
r[o] = z(t, o) ? e(t[o], t) : "";
|
|
2100
2100
|
}
|
|
2101
2101
|
var a = typeof st == "function" ? st(t) : [], i;
|
|
2102
2102
|
if (se) {
|
|
@@ -2105,10 +2105,10 @@ function Ce(t, e) {
|
|
|
2105
2105
|
i["$" + a[s]] = a[s];
|
|
2106
2106
|
}
|
|
2107
2107
|
for (var u in t)
|
|
2108
|
-
|
|
2108
|
+
z(t, u) && (n && String(Number(u)) === u && u < t.length || se && i["$" + u] instanceof Symbol || (yn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2109
2109
|
if (typeof st == "function")
|
|
2110
2110
|
for (var l = 0; l < a.length; l++)
|
|
2111
|
-
|
|
2111
|
+
hn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2112
2112
|
return r;
|
|
2113
2113
|
}
|
|
2114
2114
|
var pi = Qe, di = fe, Xe = function(t, e, n) {
|
|
@@ -2163,7 +2163,7 @@ var pi = Qe, di = fe, Xe = function(t, e, n) {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
};
|
|
2165
2165
|
return n;
|
|
2166
|
-
},
|
|
2166
|
+
}, Sn = Object, wi = Error, bi = EvalError, Si = RangeError, Ei = ReferenceError, Ai = SyntaxError, Oi = URIError, Ri = Math.abs, Pi = Math.floor, Ti = Math.max, xi = Math.min, Ci = Math.pow, _i = Math.round, Ni = Number.isNaN || function(e) {
|
|
2167
2167
|
return e !== e;
|
|
2168
2168
|
}, Fi = Ni, $i = function(e) {
|
|
2169
2169
|
return Fi(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
@@ -2174,16 +2174,16 @@ if (Ie)
|
|
|
2174
2174
|
} catch {
|
|
2175
2175
|
Ie = null;
|
|
2176
2176
|
}
|
|
2177
|
-
var
|
|
2177
|
+
var En = Ie, Be = Object.defineProperty || !1;
|
|
2178
2178
|
if (Be)
|
|
2179
2179
|
try {
|
|
2180
2180
|
Be({}, "a", { value: 1 });
|
|
2181
2181
|
} catch {
|
|
2182
2182
|
Be = !1;
|
|
2183
2183
|
}
|
|
2184
|
-
var Ii = Be, ct,
|
|
2184
|
+
var Ii = Be, ct, Rr;
|
|
2185
2185
|
function Bi() {
|
|
2186
|
-
return
|
|
2186
|
+
return Rr || (Rr = 1, ct = function() {
|
|
2187
2187
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2188
2188
|
return !1;
|
|
2189
2189
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2211,30 +2211,30 @@ function Bi() {
|
|
|
2211
2211
|
return !0;
|
|
2212
2212
|
}), ct;
|
|
2213
2213
|
}
|
|
2214
|
-
var ut,
|
|
2215
|
-
function
|
|
2216
|
-
if (
|
|
2217
|
-
|
|
2214
|
+
var ut, Pr;
|
|
2215
|
+
function Ui() {
|
|
2216
|
+
if (Pr) return ut;
|
|
2217
|
+
Pr = 1;
|
|
2218
2218
|
var t = typeof Symbol < "u" && Symbol, e = Bi();
|
|
2219
2219
|
return ut = function() {
|
|
2220
2220
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2221
2221
|
}, ut;
|
|
2222
2222
|
}
|
|
2223
|
-
var ft,
|
|
2224
|
-
function
|
|
2225
|
-
return
|
|
2223
|
+
var ft, Tr;
|
|
2224
|
+
function An() {
|
|
2225
|
+
return Tr || (Tr = 1, ft = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ft;
|
|
2226
2226
|
}
|
|
2227
|
-
var pt,
|
|
2228
|
-
function
|
|
2229
|
-
if (
|
|
2230
|
-
|
|
2231
|
-
var t =
|
|
2227
|
+
var pt, xr;
|
|
2228
|
+
function On() {
|
|
2229
|
+
if (xr) return pt;
|
|
2230
|
+
xr = 1;
|
|
2231
|
+
var t = Sn;
|
|
2232
2232
|
return pt = t.getPrototypeOf || null, pt;
|
|
2233
2233
|
}
|
|
2234
|
-
var dt,
|
|
2235
|
-
function
|
|
2236
|
-
if (
|
|
2237
|
-
|
|
2234
|
+
var dt, Cr;
|
|
2235
|
+
function Li() {
|
|
2236
|
+
if (Cr) return dt;
|
|
2237
|
+
Cr = 1;
|
|
2238
2238
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
|
|
2239
2239
|
for (var c = [], p = 0; p < u.length; p += 1)
|
|
2240
2240
|
c[p] = u[p];
|
|
@@ -2266,7 +2266,7 @@ function Ui() {
|
|
|
2266
2266
|
u,
|
|
2267
2267
|
o(c, arguments)
|
|
2268
2268
|
);
|
|
2269
|
-
},
|
|
2269
|
+
}, v = n(0, l.length - c.length), y = [], m = 0; m < v; m++)
|
|
2270
2270
|
y[m] = "$" + m;
|
|
2271
2271
|
if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), l.prototype) {
|
|
2272
2272
|
var h = function() {
|
|
@@ -2276,30 +2276,30 @@ function Ui() {
|
|
|
2276
2276
|
return p;
|
|
2277
2277
|
}, dt;
|
|
2278
2278
|
}
|
|
2279
|
-
var yt,
|
|
2279
|
+
var yt, _r;
|
|
2280
2280
|
function Ze() {
|
|
2281
|
-
if (
|
|
2282
|
-
|
|
2283
|
-
var t =
|
|
2281
|
+
if (_r) return yt;
|
|
2282
|
+
_r = 1;
|
|
2283
|
+
var t = Li();
|
|
2284
2284
|
return yt = Function.prototype.bind || t, yt;
|
|
2285
2285
|
}
|
|
2286
|
-
var ht,
|
|
2286
|
+
var ht, Nr;
|
|
2287
2287
|
function Gt() {
|
|
2288
|
-
return
|
|
2288
|
+
return Nr || (Nr = 1, ht = Function.prototype.call), ht;
|
|
2289
2289
|
}
|
|
2290
|
-
var mt,
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2290
|
+
var mt, Fr;
|
|
2291
|
+
function Rn() {
|
|
2292
|
+
return Fr || (Fr = 1, mt = Function.prototype.apply), mt;
|
|
2293
2293
|
}
|
|
2294
|
-
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze(), qi =
|
|
2294
|
+
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze(), qi = Rn(), ji = Gt(), zi = Mi, Hi = zi || ki.call(ji, qi), Wi = Ze(), Gi = fe, Ji = Gt(), Vi = Hi, Pn = function(e) {
|
|
2295
2295
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2296
2296
|
throw new Gi("a function is required");
|
|
2297
2297
|
return Vi(Wi, Ji, e);
|
|
2298
|
-
}, gt,
|
|
2298
|
+
}, gt, $r;
|
|
2299
2299
|
function Ki() {
|
|
2300
|
-
if (
|
|
2301
|
-
|
|
2302
|
-
var t =
|
|
2300
|
+
if ($r) return gt;
|
|
2301
|
+
$r = 1;
|
|
2302
|
+
var t = Pn, e = En, n;
|
|
2303
2303
|
try {
|
|
2304
2304
|
n = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2305
2305
|
[].__proto__ === Array.prototype;
|
|
@@ -2319,11 +2319,11 @@ function Ki() {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
) : !1, gt;
|
|
2321
2321
|
}
|
|
2322
|
-
var vt,
|
|
2322
|
+
var vt, Dr;
|
|
2323
2323
|
function Qi() {
|
|
2324
|
-
if (
|
|
2325
|
-
|
|
2326
|
-
var t =
|
|
2324
|
+
if (Dr) return vt;
|
|
2325
|
+
Dr = 1;
|
|
2326
|
+
var t = An(), e = On(), n = Ki();
|
|
2327
2327
|
return vt = t ? function(o) {
|
|
2328
2328
|
return t(o);
|
|
2329
2329
|
} : e ? function(o) {
|
|
@@ -2334,19 +2334,19 @@ function Qi() {
|
|
|
2334
2334
|
return n(o);
|
|
2335
2335
|
} : null, vt;
|
|
2336
2336
|
}
|
|
2337
|
-
var wt,
|
|
2337
|
+
var wt, Ir;
|
|
2338
2338
|
function Xi() {
|
|
2339
|
-
if (
|
|
2340
|
-
|
|
2339
|
+
if (Ir) return wt;
|
|
2340
|
+
Ir = 1;
|
|
2341
2341
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ze();
|
|
2342
2342
|
return wt = n.call(t, e), wt;
|
|
2343
2343
|
}
|
|
2344
|
-
var b, Zi =
|
|
2344
|
+
var b, Zi = Sn, Yi = wi, es = bi, ts = Si, rs = Ei, le = Ai, ie = fe, ns = Oi, os = Ri, as = Pi, is = Ti, ss = xi, ls = Ci, cs = _i, us = $i, Tn = Function, bt = function(t) {
|
|
2345
2345
|
try {
|
|
2346
|
-
return
|
|
2346
|
+
return Tn('"use strict"; return (' + t + ").constructor;")();
|
|
2347
2347
|
} catch {
|
|
2348
2348
|
}
|
|
2349
|
-
}, be =
|
|
2349
|
+
}, be = En, fs = Ii, St = function() {
|
|
2350
2350
|
throw new ie();
|
|
2351
2351
|
}, ps = be ? function() {
|
|
2352
2352
|
try {
|
|
@@ -2358,7 +2358,7 @@ var b, Zi = wn, Yi = wi, es = bi, ts = Si, rs = Ei, le = Ai, ie = fe, ns = Oi, o
|
|
|
2358
2358
|
return St;
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
}() : St, ne =
|
|
2361
|
+
}() : St, ne = Ui()(), x = Qi(), ds = On(), ys = An(), xn = Rn(), Re = Gt(), ae = {}, hs = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), Z = {
|
|
2362
2362
|
__proto__: null,
|
|
2363
2363
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2364
2364
|
"%Array%": Array,
|
|
@@ -2388,7 +2388,7 @@ var b, Zi = wn, Yi = wi, es = bi, ts = Si, rs = Ei, le = Ai, ie = fe, ns = Oi, o
|
|
|
2388
2388
|
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
2389
2389
|
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
2390
2390
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
|
|
2391
|
-
"%Function%":
|
|
2391
|
+
"%Function%": Tn,
|
|
2392
2392
|
"%GeneratorFunction%": ae,
|
|
2393
2393
|
"%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
|
|
2394
2394
|
"%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
|
|
@@ -2430,7 +2430,7 @@ var b, Zi = wn, Yi = wi, es = bi, ts = Si, rs = Ei, le = Ai, ie = fe, ns = Oi, o
|
|
|
2430
2430
|
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
|
|
2431
2431
|
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
|
|
2432
2432
|
"%Function.prototype.call%": Re,
|
|
2433
|
-
"%Function.prototype.apply%":
|
|
2433
|
+
"%Function.prototype.apply%": xn,
|
|
2434
2434
|
"%Object.defineProperty%": fs,
|
|
2435
2435
|
"%Object.getPrototypeOf%": ds,
|
|
2436
2436
|
"%Math.abs%": os,
|
|
@@ -2465,7 +2465,7 @@ var gs = function t(e) {
|
|
|
2465
2465
|
o && x && (n = x(o.prototype));
|
|
2466
2466
|
}
|
|
2467
2467
|
return Z[e] = n, n;
|
|
2468
|
-
},
|
|
2468
|
+
}, Br = {
|
|
2469
2469
|
__proto__: null,
|
|
2470
2470
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2471
2471
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -2518,19 +2518,19 @@ var gs = function t(e) {
|
|
|
2518
2518
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2519
2519
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2520
2520
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2521
|
-
}, Pe = Ze(), je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(
|
|
2522
|
-
var n =
|
|
2521
|
+
}, Pe = Ze(), je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(xn, Array.prototype.splice), Ur = Pe.call(Re, String.prototype.replace), ze = Pe.call(Re, String.prototype.slice), bs = Pe.call(Re, RegExp.prototype.exec), Ss = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Es = /\\(\\)?/g, As = function(e) {
|
|
2522
|
+
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2523
2523
|
if (n === "%" && r !== "%")
|
|
2524
2524
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2525
2525
|
if (r === "%" && n !== "%")
|
|
2526
2526
|
throw new le("invalid intrinsic syntax, expected opening `%`");
|
|
2527
2527
|
var o = [];
|
|
2528
|
-
return
|
|
2529
|
-
o[o.length] = s ?
|
|
2528
|
+
return Ur(e, Ss, function(a, i, s, u) {
|
|
2529
|
+
o[o.length] = s ? Ur(u, Es, "$1") : i || a;
|
|
2530
2530
|
}), o;
|
|
2531
2531
|
}, Os = function(e, n) {
|
|
2532
2532
|
var r = e, o;
|
|
2533
|
-
if (je(
|
|
2533
|
+
if (je(Br, r) && (o = Br[r], r = "%" + o[0] + "%"), je(Z, r)) {
|
|
2534
2534
|
var a = Z[r];
|
|
2535
2535
|
if (a === ae && (a = gs(r)), typeof a > "u" && !n)
|
|
2536
2536
|
throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2551,8 +2551,8 @@ var gs = function t(e) {
|
|
|
2551
2551
|
var r = As(e), o = r.length > 0 ? r[0] : "", a = Os("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2552
2552
|
l && (o = l[0], ws(r, vs([0, 1], l)));
|
|
2553
2553
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2554
|
-
var d = r[c],
|
|
2555
|
-
if ((
|
|
2554
|
+
var d = r[c], v = ze(d, 0, 1), y = ze(d, -1);
|
|
2555
|
+
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2556
2556
|
throw new le("property names with quotes must have matching quotes");
|
|
2557
2557
|
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", je(Z, i))
|
|
2558
2558
|
s = Z[i];
|
|
@@ -2571,16 +2571,16 @@ var gs = function t(e) {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
2573
|
return s;
|
|
2574
|
-
},
|
|
2574
|
+
}, Cn = Jt, _n = Pn, Rs = _n([Cn("%String.prototype.indexOf%")]), Nn = function(e, n) {
|
|
2575
2575
|
var r = (
|
|
2576
2576
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2577
|
-
|
|
2577
|
+
Cn(e, !!n)
|
|
2578
2578
|
);
|
|
2579
|
-
return typeof r == "function" && Rs(e, ".prototype.") > -1 ?
|
|
2579
|
+
return typeof r == "function" && Rs(e, ".prototype.") > -1 ? _n(
|
|
2580
2580
|
/** @type {const} */
|
|
2581
2581
|
[r]
|
|
2582
2582
|
) : r;
|
|
2583
|
-
}, Ps = Jt, Te =
|
|
2583
|
+
}, Ps = Jt, Te = Nn, Ts = Qe, xs = fe, Lr = Ps("%Map%", !0), Cs = Te("Map.prototype.get", !0), _s = Te("Map.prototype.set", !0), Ns = Te("Map.prototype.has", !0), Fs = Te("Map.prototype.delete", !0), $s = Te("Map.prototype.size", !0), Fn = !!Lr && /** @type {Exclude<import('.'), false>} */
|
|
2584
2584
|
function() {
|
|
2585
2585
|
var e, n = {
|
|
2586
2586
|
assert: function(r) {
|
|
@@ -2602,11 +2602,11 @@ function() {
|
|
|
2602
2602
|
return e ? Ns(e, r) : !1;
|
|
2603
2603
|
},
|
|
2604
2604
|
set: function(r, o) {
|
|
2605
|
-
e || (e = new
|
|
2605
|
+
e || (e = new Lr()), _s(e, r, o);
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
return n;
|
|
2609
|
-
}, Ds = Jt, Ye =
|
|
2609
|
+
}, Ds = Jt, Ye = Nn, Is = Qe, _e = Fn, Bs = fe, oe = Ds("%WeakMap%", !0), Us = Ye("WeakMap.prototype.get", !0), Ls = Ye("WeakMap.prototype.set", !0), Ms = Ye("WeakMap.prototype.has", !0), ks = Ye("WeakMap.prototype.delete", !0), qs = oe ? (
|
|
2610
2610
|
/** @type {Exclude<import('.'), false>} */
|
|
2611
2611
|
function() {
|
|
2612
2612
|
var e, n, r = {
|
|
@@ -2623,22 +2623,22 @@ function() {
|
|
|
2623
2623
|
return !1;
|
|
2624
2624
|
},
|
|
2625
2625
|
get: function(o) {
|
|
2626
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2626
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : n && n.get(o);
|
|
2627
2627
|
},
|
|
2628
2628
|
has: function(o) {
|
|
2629
2629
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Ms(e, o) : !!n && n.has(o);
|
|
2630
2630
|
},
|
|
2631
2631
|
set: function(o, a) {
|
|
2632
|
-
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()),
|
|
2632
|
+
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Ls(e, o, a)) : _e && (n || (n = _e()), n.set(o, a));
|
|
2633
2633
|
}
|
|
2634
2634
|
};
|
|
2635
2635
|
return r;
|
|
2636
2636
|
}
|
|
2637
|
-
) : _e, js = fe,
|
|
2637
|
+
) : _e, js = fe, zs = Qe, Hs = vi, Ws = Fn, Gs = qs, Js = Gs || Ws || Hs, Vs = function() {
|
|
2638
2638
|
var e, n = {
|
|
2639
2639
|
assert: function(r) {
|
|
2640
2640
|
if (!n.has(r))
|
|
2641
|
-
throw new js("Side channel does not contain " +
|
|
2641
|
+
throw new js("Side channel does not contain " + zs(r));
|
|
2642
2642
|
},
|
|
2643
2643
|
delete: function(r) {
|
|
2644
2644
|
return !!e && e.delete(r);
|
|
@@ -2669,7 +2669,7 @@ function() {
|
|
|
2669
2669
|
},
|
|
2670
2670
|
RFC1738: Et.RFC1738,
|
|
2671
2671
|
RFC3986: Et.RFC3986
|
|
2672
|
-
}, Xs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2672
|
+
}, Xs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2673
2673
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2674
2674
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2675
2675
|
return t;
|
|
@@ -2682,7 +2682,7 @@ function() {
|
|
|
2682
2682
|
n.obj[n.prop] = o;
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
-
},
|
|
2685
|
+
}, $n = function(e, n) {
|
|
2686
2686
|
for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2687
2687
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2688
2688
|
return r;
|
|
@@ -2701,7 +2701,7 @@ function() {
|
|
|
2701
2701
|
if (!e || typeof e != "object")
|
|
2702
2702
|
return [e].concat(n);
|
|
2703
2703
|
var o = e;
|
|
2704
|
-
return K(e) && !K(n) && (o =
|
|
2704
|
+
return K(e) && !K(n) && (o = $n(e, r)), K(e) && K(n) ? (n.forEach(function(a, i) {
|
|
2705
2705
|
if (At.call(e, i)) {
|
|
2706
2706
|
var s = e[i];
|
|
2707
2707
|
s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
|
|
@@ -2729,8 +2729,8 @@ function() {
|
|
|
2729
2729
|
return e;
|
|
2730
2730
|
var i = e;
|
|
2731
2731
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
|
|
2732
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2733
|
-
return "%26%23" + parseInt(
|
|
2732
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
2733
|
+
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2734
2734
|
});
|
|
2735
2735
|
for (var s = "", u = 0; u < i.length; u += Ot) {
|
|
2736
2736
|
for (var l = i.length >= Ot ? i.slice(u, u + Ot) : i, c = [], p = 0; p < l.length; ++p) {
|
|
@@ -2740,18 +2740,18 @@ function() {
|
|
|
2740
2740
|
continue;
|
|
2741
2741
|
}
|
|
2742
2742
|
if (d < 128) {
|
|
2743
|
-
c[c.length] =
|
|
2743
|
+
c[c.length] = L[d];
|
|
2744
2744
|
continue;
|
|
2745
2745
|
}
|
|
2746
2746
|
if (d < 2048) {
|
|
2747
|
-
c[c.length] =
|
|
2747
|
+
c[c.length] = L[192 | d >> 6] + L[128 | d & 63];
|
|
2748
2748
|
continue;
|
|
2749
2749
|
}
|
|
2750
2750
|
if (d < 55296 || d >= 57344) {
|
|
2751
|
-
c[c.length] =
|
|
2751
|
+
c[c.length] = L[224 | d >> 12] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2752
2752
|
continue;
|
|
2753
2753
|
}
|
|
2754
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2754
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = L[240 | d >> 18] + L[128 | d >> 12 & 63] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2755
2755
|
}
|
|
2756
2756
|
s += c.join("");
|
|
2757
2757
|
}
|
|
@@ -2776,8 +2776,8 @@ function() {
|
|
|
2776
2776
|
return r;
|
|
2777
2777
|
}
|
|
2778
2778
|
return n(e);
|
|
2779
|
-
},
|
|
2780
|
-
arrayToObject:
|
|
2779
|
+
}, Dn = {
|
|
2780
|
+
arrayToObject: $n,
|
|
2781
2781
|
assign: el,
|
|
2782
2782
|
combine: il,
|
|
2783
2783
|
compact: nl,
|
|
@@ -2787,7 +2787,7 @@ function() {
|
|
|
2787
2787
|
isRegExp: ol,
|
|
2788
2788
|
maybeMap: sl,
|
|
2789
2789
|
merge: Ys
|
|
2790
|
-
},
|
|
2790
|
+
}, In = Vs, Ue = Dn, ve = Vt, ll = Object.prototype.hasOwnProperty, Bn = {
|
|
2791
2791
|
brackets: function(e) {
|
|
2792
2792
|
return e + "[]";
|
|
2793
2793
|
},
|
|
@@ -2798,9 +2798,9 @@ function() {
|
|
|
2798
2798
|
repeat: function(e) {
|
|
2799
2799
|
return e;
|
|
2800
2800
|
}
|
|
2801
|
-
}, M = Array.isArray, cl = Array.prototype.push,
|
|
2801
|
+
}, M = Array.isArray, cl = Array.prototype.push, Un = function(t, e) {
|
|
2802
2802
|
cl.apply(t, M(e) ? e : [e]);
|
|
2803
|
-
}, ul = Date.prototype.toISOString,
|
|
2803
|
+
}, ul = Date.prototype.toISOString, Mr = ve.default, P = {
|
|
2804
2804
|
addQueryPrefix: !1,
|
|
2805
2805
|
allowDots: !1,
|
|
2806
2806
|
allowEmptyArrays: !1,
|
|
@@ -2811,11 +2811,11 @@ function() {
|
|
|
2811
2811
|
delimiter: "&",
|
|
2812
2812
|
encode: !0,
|
|
2813
2813
|
encodeDotInKeys: !1,
|
|
2814
|
-
encoder:
|
|
2814
|
+
encoder: Ue.encode,
|
|
2815
2815
|
encodeValuesOnly: !1,
|
|
2816
2816
|
filter: void 0,
|
|
2817
|
-
format:
|
|
2818
|
-
formatter: ve.formatters[
|
|
2817
|
+
format: Mr,
|
|
2818
|
+
formatter: ve.formatters[Mr],
|
|
2819
2819
|
// deprecated
|
|
2820
2820
|
indices: !1,
|
|
2821
2821
|
serializeDate: function(e) {
|
|
@@ -2825,8 +2825,8 @@ function() {
|
|
|
2825
2825
|
strictNullHandling: !1
|
|
2826
2826
|
}, fl = function(e) {
|
|
2827
2827
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2828
|
-
}, Rt = {}, pl = function t(e, n, r, o, a, i, s, u, l, c, p, d,
|
|
2829
|
-
for (var
|
|
2828
|
+
}, Rt = {}, pl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
|
|
2829
|
+
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Rt)) !== void 0 && !_; ) {
|
|
2830
2830
|
var N = T.get(e);
|
|
2831
2831
|
if (A += 1, typeof N < "u") {
|
|
2832
2832
|
if (N === A)
|
|
@@ -2835,42 +2835,42 @@ function() {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
typeof T.get(Rt) > "u" && (A = 0);
|
|
2837
2837
|
}
|
|
2838
|
-
if (typeof c == "function" ?
|
|
2839
|
-
return tt instanceof Date ?
|
|
2840
|
-
})),
|
|
2838
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ue.maybeMap(g, function(tt) {
|
|
2839
|
+
return tt instanceof Date ? v(tt) : tt;
|
|
2840
|
+
})), g === null) {
|
|
2841
2841
|
if (i)
|
|
2842
2842
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2843
|
-
|
|
2843
|
+
g = "";
|
|
2844
2844
|
}
|
|
2845
|
-
if (fl(
|
|
2845
|
+
if (fl(g) || Ue.isBuffer(g)) {
|
|
2846
2846
|
if (l) {
|
|
2847
2847
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2848
|
-
return [m(q) + "=" + m(l(
|
|
2848
|
+
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2849
2849
|
}
|
|
2850
|
-
return [m(n) + "=" + m(String(
|
|
2850
|
+
return [m(n) + "=" + m(String(g))];
|
|
2851
2851
|
}
|
|
2852
2852
|
var B = [];
|
|
2853
|
-
if (typeof
|
|
2853
|
+
if (typeof g > "u")
|
|
2854
2854
|
return B;
|
|
2855
|
-
var
|
|
2856
|
-
if (r === "comma" && M(
|
|
2857
|
-
h && l && (
|
|
2855
|
+
var H;
|
|
2856
|
+
if (r === "comma" && M(g))
|
|
2857
|
+
h && l && (g = Ue.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2858
2858
|
else if (M(c))
|
|
2859
|
-
|
|
2859
|
+
H = c;
|
|
2860
2860
|
else {
|
|
2861
|
-
var xe = Object.keys(
|
|
2862
|
-
|
|
2861
|
+
var xe = Object.keys(g);
|
|
2862
|
+
H = p ? xe.sort(p) : xe;
|
|
2863
2863
|
}
|
|
2864
|
-
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(
|
|
2865
|
-
if (a && M(
|
|
2864
|
+
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2865
|
+
if (a && M(g) && g.length === 0)
|
|
2866
2866
|
return D + "[]";
|
|
2867
|
-
for (var W = 0; W <
|
|
2868
|
-
var j =
|
|
2867
|
+
for (var W = 0; W < H.length; ++W) {
|
|
2868
|
+
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2869
2869
|
if (!(s && pe === null)) {
|
|
2870
|
-
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), jn = M(
|
|
2870
|
+
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), jn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (d ? "." + et : "[" + et + "]");
|
|
2871
2871
|
E.set(e, A);
|
|
2872
|
-
var
|
|
2873
|
-
|
|
2872
|
+
var Zt = In();
|
|
2873
|
+
Zt.set(Rt, E), Un(B, t(
|
|
2874
2874
|
pe,
|
|
2875
2875
|
jn,
|
|
2876
2876
|
r,
|
|
@@ -2879,16 +2879,16 @@ function() {
|
|
|
2879
2879
|
i,
|
|
2880
2880
|
s,
|
|
2881
2881
|
u,
|
|
2882
|
-
r === "comma" && h && M(
|
|
2882
|
+
r === "comma" && h && M(g) ? null : l,
|
|
2883
2883
|
c,
|
|
2884
2884
|
p,
|
|
2885
2885
|
d,
|
|
2886
|
-
|
|
2886
|
+
v,
|
|
2887
2887
|
y,
|
|
2888
2888
|
m,
|
|
2889
2889
|
h,
|
|
2890
2890
|
S,
|
|
2891
|
-
|
|
2891
|
+
Zt
|
|
2892
2892
|
));
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
@@ -2914,7 +2914,7 @@ function() {
|
|
|
2914
2914
|
var o = ve.formatters[r], a = P.filter;
|
|
2915
2915
|
(typeof e.filter == "function" || M(e.filter)) && (a = e.filter);
|
|
2916
2916
|
var i;
|
|
2917
|
-
if (e.arrayFormat in
|
|
2917
|
+
if (e.arrayFormat in Bn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2918
2918
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2919
2919
|
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : P.allowDots : !!e.allowDots;
|
|
2920
2920
|
return {
|
|
@@ -2944,11 +2944,11 @@ function() {
|
|
|
2944
2944
|
var i = [];
|
|
2945
2945
|
if (typeof n != "object" || n === null)
|
|
2946
2946
|
return "";
|
|
2947
|
-
var s =
|
|
2947
|
+
var s = Bn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2948
2948
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2949
|
-
for (var l =
|
|
2949
|
+
for (var l = In(), c = 0; c < o.length; ++c) {
|
|
2950
2950
|
var p = o[c], d = n[p];
|
|
2951
|
-
r.skipNulls && d === null ||
|
|
2951
|
+
r.skipNulls && d === null || Un(i, pl(
|
|
2952
2952
|
d,
|
|
2953
2953
|
p,
|
|
2954
2954
|
s,
|
|
@@ -2969,9 +2969,9 @@ function() {
|
|
|
2969
2969
|
l
|
|
2970
2970
|
));
|
|
2971
2971
|
}
|
|
2972
|
-
var
|
|
2973
|
-
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"),
|
|
2974
|
-
}, ee =
|
|
2972
|
+
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2973
|
+
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2974
|
+
}, ee = Dn, Ut = Object.prototype.hasOwnProperty, kr = Array.isArray, O = {
|
|
2975
2975
|
allowDots: !1,
|
|
2976
2976
|
allowEmptyArrays: !1,
|
|
2977
2977
|
allowPrototypes: !1,
|
|
@@ -2997,7 +2997,7 @@ function() {
|
|
|
2997
2997
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2998
2998
|
return String.fromCharCode(parseInt(n, 10));
|
|
2999
2999
|
});
|
|
3000
|
-
},
|
|
3000
|
+
}, Ln = function(t, e, n) {
|
|
3001
3001
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3002
3002
|
return t.split(",");
|
|
3003
3003
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3018,19 +3018,19 @@ function() {
|
|
|
3018
3018
|
i[u].indexOf("utf8=") === 0 && (i[u] === gl ? l = "utf-8" : i[u] === ml && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3019
3019
|
for (u = 0; u < i.length; ++u)
|
|
3020
3020
|
if (u !== s) {
|
|
3021
|
-
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1,
|
|
3022
|
-
d === -1 ? (
|
|
3023
|
-
|
|
3021
|
+
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3022
|
+
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3023
|
+
Ln(
|
|
3024
3024
|
c.slice(d + 1),
|
|
3025
3025
|
n,
|
|
3026
|
-
|
|
3026
|
+
kr(r[v]) ? r[v].length : 0
|
|
3027
3027
|
),
|
|
3028
3028
|
function(h) {
|
|
3029
3029
|
return n.decoder(h, O.decoder, l, "value");
|
|
3030
3030
|
}
|
|
3031
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y =
|
|
3032
|
-
var m =
|
|
3033
|
-
m && n.duplicates === "combine" ? r[
|
|
3031
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
|
|
3032
|
+
var m = Ut.call(r, v);
|
|
3033
|
+
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3034
3034
|
}
|
|
3035
3035
|
return r;
|
|
3036
3036
|
}, wl = function(t, e, n, r) {
|
|
@@ -3039,7 +3039,7 @@ function() {
|
|
|
3039
3039
|
var a = t.slice(0, -1).join("");
|
|
3040
3040
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
3041
3041
|
}
|
|
3042
|
-
for (var i = r ? e :
|
|
3042
|
+
for (var i = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3043
3043
|
var u, l = t[s];
|
|
3044
3044
|
if (l === "[]" && n.parseArrays)
|
|
3045
3045
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
@@ -3055,12 +3055,12 @@ function() {
|
|
|
3055
3055
|
if (e) {
|
|
3056
3056
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3057
3057
|
if (l) {
|
|
3058
|
-
if (!r.plainObjects &&
|
|
3058
|
+
if (!r.plainObjects && Ut.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3059
3059
|
return;
|
|
3060
3060
|
c.push(l);
|
|
3061
3061
|
}
|
|
3062
3062
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3063
|
-
if (p += 1, !r.plainObjects &&
|
|
3063
|
+
if (p += 1, !r.plainObjects && Ut.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3064
3064
|
return;
|
|
3065
3065
|
c.push(u[1]);
|
|
3066
3066
|
}
|
|
@@ -3147,7 +3147,7 @@ var xl = {
|
|
|
3147
3147
|
);
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3150
|
+
function Lt(t, e) {
|
|
3151
3151
|
function n(o, a, i) {
|
|
3152
3152
|
if (!(typeof document > "u")) {
|
|
3153
3153
|
i = Ne({}, 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);
|
|
@@ -3185,10 +3185,10 @@ function Ut(t, e) {
|
|
|
3185
3185
|
);
|
|
3186
3186
|
},
|
|
3187
3187
|
withAttributes: function(o) {
|
|
3188
|
-
return
|
|
3188
|
+
return Lt(this.converter, Ne({}, this.attributes, o));
|
|
3189
3189
|
},
|
|
3190
3190
|
withConverter: function(o) {
|
|
3191
|
-
return
|
|
3191
|
+
return Lt(Ne({}, this.converter, o), this.attributes);
|
|
3192
3192
|
}
|
|
3193
3193
|
},
|
|
3194
3194
|
{
|
|
@@ -3197,7 +3197,7 @@ function Ut(t, e) {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
}
|
|
3200
|
-
var Cl =
|
|
3200
|
+
var Cl = Lt(xl, { path: "/" });
|
|
3201
3201
|
const _l = {
|
|
3202
3202
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3203
3203
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3209,63 +3209,79 @@ const _l = {
|
|
|
3209
3209
|
en: "Network error, please check your network status",
|
|
3210
3210
|
_appCode: "framework"
|
|
3211
3211
|
}
|
|
3212
|
-
};
|
|
3213
|
-
|
|
3212
|
+
}, Nl = async (t) => null;
|
|
3213
|
+
zn(_l);
|
|
3214
3214
|
Mt.extend(Xn);
|
|
3215
3215
|
Mt.extend(Zn);
|
|
3216
|
-
const Kt =
|
|
3217
|
-
|
|
3216
|
+
const Kt = qr(), Mn = Kt.sso ?? !0, Fl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ?? !1, $l = (t) => {
|
|
3217
|
+
var e, n, r;
|
|
3218
|
+
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3219
|
+
}, Dl = (t) => {
|
|
3220
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3221
|
+
const n = e == null ? void 0 : e.config;
|
|
3222
|
+
if (!n || n.public || !$l(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3223
|
+
return Promise.reject(e);
|
|
3224
|
+
try {
|
|
3225
|
+
const r = await Nl({ error: e, config: n });
|
|
3226
|
+
return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
|
|
3227
|
+
} catch {
|
|
3228
|
+
return Promise.reject(e);
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3231
|
+
}, qn = () => {
|
|
3232
|
+
if (kn) return;
|
|
3218
3233
|
const t = "/login";
|
|
3219
3234
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3220
|
-
},
|
|
3235
|
+
}, Il = async (t) => {
|
|
3221
3236
|
var n;
|
|
3222
3237
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3223
|
-
},
|
|
3224
|
-
var
|
|
3225
|
-
let n = ((
|
|
3238
|
+
}, Bl = async (t, e) => {
|
|
3239
|
+
var l, c, p, d, v;
|
|
3240
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3226
3241
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3227
|
-
let i = ((
|
|
3228
|
-
|
|
3229
|
-
|
|
3242
|
+
let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
|
|
3243
|
+
const s = Jn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? kn);
|
|
3244
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3245
|
+
Mn ? Vn({ ...Qn, redirect_uri: Kn }) : qn(), o = i;
|
|
3230
3246
|
else {
|
|
3231
3247
|
if (t.response) {
|
|
3232
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3233
|
-
const
|
|
3234
|
-
|
|
3248
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3249
|
+
const m = new FileReader();
|
|
3250
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3235
3251
|
try {
|
|
3236
|
-
|
|
3252
|
+
y(JSON.parse(m.result || "{}"));
|
|
3237
3253
|
} catch {
|
|
3238
|
-
|
|
3254
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3239
3255
|
}
|
|
3240
3256
|
};
|
|
3241
3257
|
})), i.code) {
|
|
3242
3258
|
n = i.code;
|
|
3243
|
-
const
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3246
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3259
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3260
|
+
if (Fl && y) {
|
|
3261
|
+
const m = (i == null ? void 0 : i.status) ?? "";
|
|
3262
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3247
3263
|
} else
|
|
3248
3264
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3249
3265
|
o = i;
|
|
3250
3266
|
}
|
|
3251
3267
|
r || (r = a[t.response.status] || t.message);
|
|
3252
3268
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3253
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3269
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((v = (d = window.DasMessage) == null ? void 0 : d.error) == null || v.call(d, { message: r, showClose: !0 }));
|
|
3254
3270
|
}
|
|
3255
3271
|
return { ...o, code: n, msg: r, error: t };
|
|
3256
|
-
},
|
|
3272
|
+
}, Qt = (t, e) => {
|
|
3257
3273
|
const n = R.create();
|
|
3258
|
-
return Wn(n, async (r) => {
|
|
3259
|
-
const o =
|
|
3274
|
+
return Dl(n), Wn(n, async (r) => {
|
|
3275
|
+
const o = qr();
|
|
3260
3276
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3261
3277
|
let l = "";
|
|
3262
3278
|
if (o.token && (l = o.token), !l) {
|
|
3263
3279
|
const c = new URL(location.href).searchParams;
|
|
3264
3280
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3265
3281
|
}
|
|
3266
|
-
|
|
3282
|
+
Mn ? l || (l = await Gn(r)) : (l || (l = to()), l || qn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3267
3283
|
}
|
|
3268
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Tl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3284
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Tl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Bl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cl.get("csrf-token"));
|
|
3269
3285
|
const s = r.params || {};
|
|
3270
3286
|
if (s.project === void 0) {
|
|
3271
3287
|
let l = 0;
|
|
@@ -3276,10 +3292,11 @@ const Kt = Mr(), Ln = Kt.sso ?? !0, Nl = Kt.i18n ?? !0, Un = Kt.noRedireLogin ??
|
|
|
3276
3292
|
const { instanceInfo: l } = eo();
|
|
3277
3293
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3278
3294
|
}
|
|
3279
|
-
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] =
|
|
3295
|
+
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3280
3296
|
});
|
|
3281
|
-
},
|
|
3297
|
+
}, Xt = "v1", uc = Qt(`/api/justauth/oauth-server/${Xt}/visitor`), fc = Qt(`/api/justauth/oauth-server/${Xt}`), pc = Qt(`/api/justauth/client/${Xt}/visitor`);
|
|
3282
3298
|
export {
|
|
3283
|
-
|
|
3284
|
-
|
|
3299
|
+
uc as justauth,
|
|
3300
|
+
pc as oauthClient,
|
|
3301
|
+
fc as oauthServer
|
|
3285
3302
|
};
|