@das-fed/utils 7.0.5-test.21 → 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 +786 -766
- 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 +780 -768
- 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 +758 -723
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +755 -721
- 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 +755 -721
- 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 +192 -176
- 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 +848 -846
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +308 -292
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +533 -498
- 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,8 +1,8 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
2
|
-
import { curringHttp as
|
|
3
|
-
import { getToken as Mn, getQuery as kn, login as qn, real_uri as jn, getTokenParams as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { setI18nRule as Un, currentLang as Bn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
|
+
import { curringHttp as Ln } from "@das-fed/utils/curring-http";
|
|
3
|
+
import { getToken as Mn, getQuery as kn, login as qn, real_uri as jn, getTokenParams as zn } from "@das-fed/utils/create-api-service/sso";
|
|
4
|
+
import Ut from "dayjs";
|
|
5
|
+
import Hn from "dayjs/plugin/utc";
|
|
6
6
|
import Wn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Gn, getInstanceInfo as Jn } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as Vn } from "@das-fed/utils/token-tools";
|
|
@@ -12,23 +12,23 @@ function Ir(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: Kn } = Object.prototype, { getPrototypeOf:
|
|
15
|
+
const { toString: Kn } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: He, toStringTag: Ur } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Kn.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
|
-
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) &&
|
|
20
|
+
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Br = I("ArrayBuffer");
|
|
23
23
|
function Qn(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 && Br(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const Xn = Ge("string"),
|
|
27
|
+
const Xn = Ge("string"), $ = Ge("function"), Lr = Ge("number"), Ee = (t) => t !== null && typeof t == "object", Zn = (t) => t === !0 || t === !1, $e = (t) => {
|
|
28
28
|
if (We(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
|
-
const e =
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
30
|
+
const e = Bt(t);
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ur in t) && !(He in t);
|
|
32
32
|
}, Yn = (t) => {
|
|
33
33
|
if (!Ee(t) || Se(t))
|
|
34
34
|
return !1;
|
|
@@ -37,10 +37,10 @@ const Xn = Ge("string"), F = Ge("function"), Ur = Ge("number"), Ee = (t) => t !=
|
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
|
-
}, eo = I("Date"), to = I("File"), ro = I("Blob"), no = I("FileList"), oo = (t) => Ee(t) &&
|
|
40
|
+
}, eo = I("Date"), to = I("File"), ro = I("Blob"), no = I("FileList"), oo = (t) => Ee(t) && $(t.pipe), ao = (t) => {
|
|
41
41
|
let e;
|
|
42
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
43
|
-
e === "object" &&
|
|
42
|
+
return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
|
|
43
|
+
e === "object" && $(t.toString) && t.toString() === "[object FormData]"));
|
|
44
44
|
}, io = I("URLSearchParams"), [so, lo, co, uo] = ["ReadableStream", "Request", "Response", "Headers"].map(I), fo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
45
45
|
function Ae(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
46
46
|
if (t === null || typeof t > "u")
|
|
@@ -73,14 +73,14 @@ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
73
73
|
function At() {
|
|
74
74
|
const { caseless: t } = kr(this) && this || {}, e = {}, n = (r, o) => {
|
|
75
75
|
const a = t && Mr(e, o) || o;
|
|
76
|
-
|
|
76
|
+
$e(e[a]) && $e(r) ? e[a] = At(e[a], r) : $e(r) ? e[a] = At({}, r) : ce(r) ? e[a] = r.slice() : e[a] = r;
|
|
77
77
|
};
|
|
78
78
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
79
79
|
arguments[r] && Ae(arguments[r], n);
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
const po = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
83
|
-
n &&
|
|
83
|
+
n && $(o) ? t[a] = Ir(o, n) : t[a] = o;
|
|
84
84
|
}, { allOwnKeys: r }), t), yo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), ho = (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
|
|
@@ -92,7 +92,7 @@ const po = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
92
92
|
do {
|
|
93
93
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
94
94
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
95
|
-
t = n !== !1 &&
|
|
95
|
+
t = n !== !1 && Bt(t);
|
|
96
96
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
97
97
|
return e;
|
|
98
98
|
}, go = (t, e, n) => {
|
|
@@ -103,13 +103,13 @@ const po = (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 (!Lr(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
|
-
}, wo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
112
|
-
const r = (t && t[
|
|
111
|
+
}, wo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Bt(Uint8Array)), bo = (t, e) => {
|
|
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;
|
|
@@ -134,10 +134,10 @@ const po = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
134
134
|
}), Object.defineProperties(t, r);
|
|
135
135
|
}, Ro = (t) => {
|
|
136
136
|
qr(t, (e, n) => {
|
|
137
|
-
if (
|
|
137
|
+
if ($(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
138
138
|
return !1;
|
|
139
139
|
const r = t[n];
|
|
140
|
-
if (
|
|
140
|
+
if ($(r)) {
|
|
141
141
|
if (e.enumerable = !1, "writable" in e) {
|
|
142
142
|
e.writable = !1;
|
|
143
143
|
return;
|
|
@@ -157,7 +157,7 @@ const po = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
157
157
|
}, To = () => {
|
|
158
158
|
}, xo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function Co(t) {
|
|
160
|
-
return !!(t &&
|
|
160
|
+
return !!(t && $(t.append) && t[Ur] === "FormData" && t[He]);
|
|
161
161
|
}
|
|
162
162
|
const _o = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -178,24 +178,24 @@ const _o = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
}, No = I("AsyncFunction"),
|
|
181
|
+
}, No = I("AsyncFunction"), $o = (t) => t && (Ee(t) || $(t)) && $(t.then) && $(t.catch), jr = ((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
|
-
|
|
188
|
-
),
|
|
187
|
+
$(Q.postMessage)
|
|
188
|
+
), Fo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jr, Do = (t) => t != null && $(t[He]), f = {
|
|
189
189
|
isArray: ce,
|
|
190
|
-
isArrayBuffer:
|
|
190
|
+
isArrayBuffer: Br,
|
|
191
191
|
isBuffer: Se,
|
|
192
192
|
isFormData: ao,
|
|
193
193
|
isArrayBufferView: Qn,
|
|
194
194
|
isString: Xn,
|
|
195
|
-
isNumber:
|
|
195
|
+
isNumber: Lr,
|
|
196
196
|
isBoolean: Zn,
|
|
197
197
|
isObject: Ee,
|
|
198
|
-
isPlainObject:
|
|
198
|
+
isPlainObject: $e,
|
|
199
199
|
isEmptyObject: Yn,
|
|
200
200
|
isReadableStream: so,
|
|
201
201
|
isRequest: lo,
|
|
@@ -206,7 +206,7 @@ const _o = (t) => {
|
|
|
206
206
|
isFile: to,
|
|
207
207
|
isBlob: ro,
|
|
208
208
|
isRegExp: Oo,
|
|
209
|
-
isFunction:
|
|
209
|
+
isFunction: $,
|
|
210
210
|
isStream: oo,
|
|
211
211
|
isURLSearchParams: io,
|
|
212
212
|
isTypedArray: wo,
|
|
@@ -240,9 +240,9 @@ const _o = (t) => {
|
|
|
240
240
|
isSpecCompliantForm: Co,
|
|
241
241
|
toJSONObject: _o,
|
|
242
242
|
isAsyncFn: No,
|
|
243
|
-
isThenable:
|
|
243
|
+
isThenable: $o,
|
|
244
244
|
setImmediate: jr,
|
|
245
|
-
asap:
|
|
245
|
+
asap: Fo,
|
|
246
246
|
isIterable: Do
|
|
247
247
|
};
|
|
248
248
|
function w(t, e, n, r, o) {
|
|
@@ -269,7 +269,7 @@ f.inherits(w, Error, {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
const
|
|
272
|
+
const zr = w.prototype, Hr = {};
|
|
273
273
|
[
|
|
274
274
|
"ERR_BAD_OPTION_VALUE",
|
|
275
275
|
"ERR_BAD_OPTION",
|
|
@@ -285,12 +285,12 @@ const Hr = w.prototype, zr = {};
|
|
|
285
285
|
"ERR_INVALID_URL"
|
|
286
286
|
// eslint-disable-next-line func-names
|
|
287
287
|
].forEach((t) => {
|
|
288
|
-
|
|
288
|
+
Hr[t] = { value: t };
|
|
289
289
|
});
|
|
290
|
-
Object.defineProperties(w,
|
|
291
|
-
Object.defineProperty(
|
|
290
|
+
Object.defineProperties(w, Hr);
|
|
291
|
+
Object.defineProperty(zr, "isAxiosError", { value: !0 });
|
|
292
292
|
w.from = (t, e, n, r, o, a) => {
|
|
293
|
-
const i = Object.create(
|
|
293
|
+
const i = Object.create(zr);
|
|
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;
|
|
@@ -307,10 +307,10 @@ function Kt(t, e, n) {
|
|
|
307
307
|
return o = Wr(o), !n && a ? "[" + o + "]" : o;
|
|
308
308
|
}).join(n ? "." : "") : e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Uo(t) {
|
|
311
311
|
return f.isArray(t) && !t.some(Ot);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Bo = f.toFlatObject(f, {}, null, function(e) {
|
|
314
314
|
return /^is[A-Z]/.test(e);
|
|
315
315
|
});
|
|
316
316
|
function Je(t, e, n) {
|
|
@@ -341,7 +341,7 @@ 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) &&
|
|
344
|
+
else if (f.isArray(y) && Uo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
345
|
return m = Wr(m), S.forEach(function(g, T) {
|
|
346
346
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
347
347
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -352,24 +352,24 @@ function Je(t, e, n) {
|
|
|
352
352
|
}
|
|
353
353
|
return Ot(y) ? !0 : (e.append(Kt(h, m, a), l(y)), !1);
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const d = [], p = Object.assign(Bo, {
|
|
356
356
|
defaultVisitor: c,
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Ot
|
|
359
359
|
});
|
|
360
360
|
function v(y, m) {
|
|
361
361
|
if (!f.isUndefined(y)) {
|
|
362
|
-
if (
|
|
362
|
+
if (d.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
364
|
-
|
|
364
|
+
d.push(y), f.forEach(y, function(S, E) {
|
|
365
365
|
(!(f.isUndefined(S) || S === null) && o.call(
|
|
366
366
|
e,
|
|
367
367
|
S,
|
|
368
368
|
f.isString(E) ? E.trim() : E,
|
|
369
369
|
m,
|
|
370
|
-
|
|
370
|
+
p
|
|
371
371
|
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
|
-
}),
|
|
372
|
+
}), d.pop();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
if (!f.isObject(t))
|
|
@@ -390,10 +390,10 @@ function Qt(t) {
|
|
|
390
390
|
return e[r];
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Lt(t, e) {
|
|
394
394
|
this._pairs = [], t && Je(t, this, e);
|
|
395
395
|
}
|
|
396
|
-
const Gr =
|
|
396
|
+
const Gr = Lt.prototype;
|
|
397
397
|
Gr.append = function(e, n) {
|
|
398
398
|
this._pairs.push([e, n]);
|
|
399
399
|
};
|
|
@@ -405,19 +405,19 @@ Gr.toString = function(e) {
|
|
|
405
405
|
return n(o[0]) + "=" + n(o[1]);
|
|
406
406
|
}, "").join("&");
|
|
407
407
|
};
|
|
408
|
-
function
|
|
408
|
+
function Lo(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
411
|
function Jr(t, e, n) {
|
|
412
412
|
if (!e)
|
|
413
413
|
return t;
|
|
414
|
-
const r = n && n.encode ||
|
|
414
|
+
const r = n && n.encode || Lo;
|
|
415
415
|
f.isFunction(n) && (n = {
|
|
416
416
|
serialize: n
|
|
417
417
|
});
|
|
418
418
|
const o = n && n.serialize;
|
|
419
419
|
let a;
|
|
420
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
420
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Lt(e, n).toString(r), a) {
|
|
421
421
|
const i = t.indexOf("#");
|
|
422
422
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
423
423
|
}
|
|
@@ -481,7 +481,7 @@ const Vr = {
|
|
|
481
481
|
silentJSONParsing: !0,
|
|
482
482
|
forcedJSONParsing: !0,
|
|
483
483
|
clarifyTimeoutError: !1
|
|
484
|
-
}, Mo = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
484
|
+
}, Mo = typeof URLSearchParams < "u" ? URLSearchParams : Lt, ko = typeof FormData < "u" ? FormData : null, qo = typeof Blob < "u" ? Blob : null, jo = {
|
|
485
485
|
isBrowser: !0,
|
|
486
486
|
classes: {
|
|
487
487
|
URLSearchParams: Mo,
|
|
@@ -489,12 +489,12 @@ const Vr = {
|
|
|
489
489
|
Blob: qo
|
|
490
490
|
},
|
|
491
491
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
492
|
-
}, Mt = typeof window < "u" && typeof document < "u", Rt = typeof navigator == "object" && navigator || void 0,
|
|
492
|
+
}, Mt = typeof window < "u" && typeof document < "u", Rt = typeof navigator == "object" && navigator || void 0, zo = Mt && (!Rt || ["ReactNative", "NativeScript", "NS"].indexOf(Rt.product) < 0), Ho = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
493
493
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Wo = Mt && window.location.href || "http://localhost", Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
494
494
|
__proto__: null,
|
|
495
495
|
hasBrowserEnv: Mt,
|
|
496
|
-
hasStandardBrowserEnv:
|
|
497
|
-
hasStandardBrowserWebWorkerEnv:
|
|
496
|
+
hasStandardBrowserEnv: zo,
|
|
497
|
+
hasStandardBrowserWebWorkerEnv: Ho,
|
|
498
498
|
navigator: Rt,
|
|
499
499
|
origin: Wo
|
|
500
500
|
}, Symbol.toStringTag, { value: "Module" })), C = {
|
|
@@ -644,8 +644,8 @@ const Xo = f.toObjectSet([
|
|
|
644
644
|
function de(t) {
|
|
645
645
|
return t && String(t).trim().toLowerCase();
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
return t === !1 || t == null ? t : f.isArray(t) ? t.map(
|
|
647
|
+
function Fe(t) {
|
|
648
|
+
return t === !1 || t == null ? t : f.isArray(t) ? t.map(Fe) : String(t);
|
|
649
649
|
}
|
|
650
650
|
function Yo(t) {
|
|
651
651
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -679,7 +679,7 @@ function ra(t, e) {
|
|
|
679
679
|
});
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
let
|
|
682
|
+
let F = class {
|
|
683
683
|
constructor(e) {
|
|
684
684
|
e && this.set(e);
|
|
685
685
|
}
|
|
@@ -689,8 +689,8 @@ let $ = class {
|
|
|
689
689
|
const c = de(u);
|
|
690
690
|
if (!c)
|
|
691
691
|
throw new Error("header name must be a non-empty string");
|
|
692
|
-
const
|
|
693
|
-
(!
|
|
692
|
+
const d = f.findKey(o, c);
|
|
693
|
+
(!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = Fe(s));
|
|
694
694
|
}
|
|
695
695
|
const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
|
|
696
696
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -758,11 +758,11 @@ let $ = class {
|
|
|
758
758
|
return f.forEach(this, (o, a) => {
|
|
759
759
|
const i = f.findKey(r, a);
|
|
760
760
|
if (i) {
|
|
761
|
-
n[i] =
|
|
761
|
+
n[i] = Fe(o), delete n[a];
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
const s = e ? ta(a) : String(a).trim();
|
|
765
|
-
s !== a && delete n[a], n[s] =
|
|
765
|
+
s !== a && delete n[a], n[s] = Fe(o), r[s] = !0;
|
|
766
766
|
}), this;
|
|
767
767
|
}
|
|
768
768
|
concat(...e) {
|
|
@@ -805,8 +805,8 @@ let $ = class {
|
|
|
805
805
|
return f.isArray(e) ? e.forEach(a) : a(e), this;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
|
|
809
|
-
f.reduceDescriptors(
|
|
808
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
809
|
+
f.reduceDescriptors(F.prototype, ({ value: t }, e) => {
|
|
810
810
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
811
811
|
return {
|
|
812
812
|
get: () => t,
|
|
@@ -815,9 +815,9 @@ f.reduceDescriptors($.prototype, ({ value: t }, e) => {
|
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
});
|
|
818
|
-
f.freezeMethods(
|
|
818
|
+
f.freezeMethods(F);
|
|
819
819
|
function nt(t, e) {
|
|
820
|
-
const n = this || Oe, r = e || n, o =
|
|
820
|
+
const n = this || Oe, r = e || n, o = F.from(r.headers);
|
|
821
821
|
let a = r.data;
|
|
822
822
|
return f.forEach(t, function(s) {
|
|
823
823
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
@@ -853,13 +853,13 @@ function oa(t, e) {
|
|
|
853
853
|
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
854
854
|
const l = Date.now(), c = r[a];
|
|
855
855
|
i || (i = l), n[o] = u, r[o] = l;
|
|
856
|
-
let
|
|
857
|
-
for (;
|
|
858
|
-
|
|
856
|
+
let d = a, p = 0;
|
|
857
|
+
for (; d !== o; )
|
|
858
|
+
p += n[d++], d = d % t;
|
|
859
859
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
860
860
|
return;
|
|
861
861
|
const v = c && l - c;
|
|
862
|
-
return v ? Math.round(
|
|
862
|
+
return v ? Math.round(p * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function aa(t, e) {
|
|
@@ -868,19 +868,19 @@ function aa(t, e) {
|
|
|
868
868
|
n = c, o = null, a && (clearTimeout(a), a = null), t(...l);
|
|
869
869
|
};
|
|
870
870
|
return [(...l) => {
|
|
871
|
-
const c = Date.now(),
|
|
872
|
-
|
|
871
|
+
const c = Date.now(), d = c - n;
|
|
872
|
+
d >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
|
|
873
873
|
a = null, i(o);
|
|
874
|
-
}, r -
|
|
874
|
+
}, r - d)));
|
|
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 = oa(50, 250);
|
|
880
880
|
return aa((a) => {
|
|
881
881
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
|
|
882
882
|
r = i;
|
|
883
|
-
const
|
|
883
|
+
const d = {
|
|
884
884
|
loaded: i,
|
|
885
885
|
total: s,
|
|
886
886
|
progress: s ? i / s : void 0,
|
|
@@ -891,7 +891,7 @@ const Ue = (t, e, n = 3) => {
|
|
|
891
891
|
lengthComputable: s != null,
|
|
892
892
|
[e ? "download" : "upload"]: !0
|
|
893
893
|
};
|
|
894
|
-
t(
|
|
894
|
+
t(d);
|
|
895
895
|
}, n);
|
|
896
896
|
}, Yt = (t, e) => {
|
|
897
897
|
const n = t != null;
|
|
@@ -940,18 +940,18 @@ function Zr(t, e, n) {
|
|
|
940
940
|
let r = !la(e);
|
|
941
941
|
return t && (r || n == !1) ? ca(t, e) : e;
|
|
942
942
|
}
|
|
943
|
-
const tr = (t) => t instanceof
|
|
943
|
+
const tr = (t) => t instanceof F ? { ...t } : t;
|
|
944
944
|
function Y(t, e) {
|
|
945
945
|
e = e || {};
|
|
946
946
|
const n = {};
|
|
947
|
-
function r(l, c,
|
|
948
|
-
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless:
|
|
947
|
+
function r(l, c, d, p) {
|
|
948
|
+
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: p }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
|
|
949
949
|
}
|
|
950
|
-
function o(l, c,
|
|
950
|
+
function o(l, c, d, p) {
|
|
951
951
|
if (f.isUndefined(c)) {
|
|
952
952
|
if (!f.isUndefined(l))
|
|
953
|
-
return r(void 0, l,
|
|
954
|
-
} else return r(l, c,
|
|
953
|
+
return r(void 0, l, d, p);
|
|
954
|
+
} else return r(l, c, d, p);
|
|
955
955
|
}
|
|
956
956
|
function a(l, c) {
|
|
957
957
|
if (!f.isUndefined(c))
|
|
@@ -963,10 +963,10 @@ function Y(t, e) {
|
|
|
963
963
|
return r(void 0, l);
|
|
964
964
|
} else return r(void 0, c);
|
|
965
965
|
}
|
|
966
|
-
function s(l, c,
|
|
967
|
-
if (
|
|
966
|
+
function s(l, c, d) {
|
|
967
|
+
if (d in e)
|
|
968
968
|
return r(l, c);
|
|
969
|
-
if (
|
|
969
|
+
if (d in t)
|
|
970
970
|
return r(void 0, l);
|
|
971
971
|
}
|
|
972
972
|
const u = {
|
|
@@ -998,17 +998,17 @@ function Y(t, e) {
|
|
|
998
998
|
socketPath: i,
|
|
999
999
|
responseEncoding: i,
|
|
1000
1000
|
validateStatus: s,
|
|
1001
|
-
headers: (l, c,
|
|
1001
|
+
headers: (l, c, d) => o(tr(l), tr(c), d, !0)
|
|
1002
1002
|
};
|
|
1003
1003
|
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
1004
|
-
const
|
|
1005
|
-
f.isUndefined(
|
|
1004
|
+
const d = u[c] || o, p = d(t[c], e[c], c);
|
|
1005
|
+
f.isUndefined(p) && d !== s || (n[c] = p);
|
|
1006
1006
|
}), n;
|
|
1007
1007
|
}
|
|
1008
1008
|
const Yr = (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 =
|
|
1011
|
+
e.headers = i = F.from(i), e.url = Jr(Zr(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
|
);
|
|
@@ -1017,7 +1017,7 @@ const Yr = (t) => {
|
|
|
1017
1017
|
if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
|
|
1018
1018
|
i.setContentType(void 0);
|
|
1019
1019
|
else if ((u = i.getContentType()) !== !1) {
|
|
1020
|
-
const [l, ...c] = u ? u.split(";").map((
|
|
1020
|
+
const [l, ...c] = u ? u.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1021
1021
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
@@ -1030,8 +1030,8 @@ const Yr = (t) => {
|
|
|
1030
1030
|
return new Promise(function(n, r) {
|
|
1031
1031
|
const o = Yr(t);
|
|
1032
1032
|
let a = o.data;
|
|
1033
|
-
const i =
|
|
1034
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c,
|
|
1033
|
+
const i = F.from(o.headers).normalize();
|
|
1034
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, d, p, 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
|
}
|
|
@@ -1040,7 +1040,7 @@ const Yr = (t) => {
|
|
|
1040
1040
|
function S() {
|
|
1041
1041
|
if (!h)
|
|
1042
1042
|
return;
|
|
1043
|
-
const g =
|
|
1043
|
+
const g = F.from(
|
|
1044
1044
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1045
1045
|
), A = {
|
|
1046
1046
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
@@ -1073,7 +1073,7 @@ const Yr = (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 && ([
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([p, y] = Le(l, !0), h.addEventListener("progress", p)), u && h.upload && ([d, v] = Le(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
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 = na(o.url);
|
|
@@ -1147,10 +1147,10 @@ const Yr = (t) => {
|
|
|
1147
1147
|
s(), u.close();
|
|
1148
1148
|
return;
|
|
1149
1149
|
}
|
|
1150
|
-
let
|
|
1150
|
+
let d = c.byteLength;
|
|
1151
1151
|
if (n) {
|
|
1152
|
-
let
|
|
1153
|
-
n(
|
|
1152
|
+
let p = a += d;
|
|
1153
|
+
n(p);
|
|
1154
1154
|
}
|
|
1155
1155
|
u.enqueue(new Uint8Array(c));
|
|
1156
1156
|
} catch (l) {
|
|
@@ -1218,8 +1218,8 @@ const va = async (t) => {
|
|
|
1218
1218
|
onUploadProgress: u,
|
|
1219
1219
|
responseType: l,
|
|
1220
1220
|
headers: c,
|
|
1221
|
-
withCredentials:
|
|
1222
|
-
fetchOptions:
|
|
1221
|
+
withCredentials: d = "same-origin",
|
|
1222
|
+
fetchOptions: p
|
|
1223
1223
|
} = Yr(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
1225
|
let v = pa([o, a && a.toAbortSignal()], i), y;
|
|
@@ -1237,32 +1237,32 @@ const va = async (t) => {
|
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
1238
|
const [N, q] = Yt(
|
|
1239
1239
|
h,
|
|
1240
|
-
|
|
1240
|
+
Le(er(u))
|
|
1241
1241
|
);
|
|
1242
1242
|
r = rr(A.body, nr, N, q);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
f.isString(
|
|
1245
|
+
f.isString(d) || (d = d ? "include" : "omit");
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
|
-
...
|
|
1248
|
+
...p,
|
|
1249
1249
|
signal: v,
|
|
1250
1250
|
method: n.toUpperCase(),
|
|
1251
1251
|
headers: c.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
1253
1253
|
duplex: "half",
|
|
1254
|
-
credentials: S ?
|
|
1254
|
+
credentials: S ? d : void 0
|
|
1255
1255
|
});
|
|
1256
|
-
let E = await fetch(y,
|
|
1256
|
+
let E = await fetch(y, p);
|
|
1257
1257
|
const g = Pt && (l === "stream" || l === "response");
|
|
1258
1258
|
if (Pt && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
|
-
["status", "statusText", "headers"].forEach((
|
|
1261
|
-
A[
|
|
1260
|
+
["status", "statusText", "headers"].forEach((U) => {
|
|
1261
|
+
A[U] = E[U];
|
|
1262
1262
|
});
|
|
1263
1263
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && Yt(
|
|
1264
1264
|
_,
|
|
1265
|
-
|
|
1265
|
+
Le(er(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
rr(E.body, nr, N, () => {
|
|
@@ -1276,7 +1276,7 @@ const va = async (t) => {
|
|
|
1276
1276
|
return !g && m && m(), await new Promise((A, _) => {
|
|
1277
1277
|
Xr(A, _, {
|
|
1278
1278
|
data: T,
|
|
1279
|
-
headers:
|
|
1279
|
+
headers: F.from(E.headers),
|
|
1280
1280
|
status: E.status,
|
|
1281
1281
|
statusText: E.statusText,
|
|
1282
1282
|
config: t,
|
|
@@ -1341,7 +1341,7 @@ function ot(t) {
|
|
|
1341
1341
|
throw new ue(null, t);
|
|
1342
1342
|
}
|
|
1343
1343
|
function ar(t) {
|
|
1344
|
-
return ot(t), t.headers =
|
|
1344
|
+
return ot(t), t.headers = F.from(t.headers), t.data = nt.call(
|
|
1345
1345
|
t,
|
|
1346
1346
|
t.transformRequest
|
|
1347
1347
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), rn.getAdapter(t.adapter || Oe.adapter)(t).then(function(r) {
|
|
@@ -1349,13 +1349,13 @@ function ar(t) {
|
|
|
1349
1349
|
t,
|
|
1350
1350
|
t.transformResponse,
|
|
1351
1351
|
r
|
|
1352
|
-
), r.headers =
|
|
1352
|
+
), r.headers = F.from(r.headers), r;
|
|
1353
1353
|
}, function(r) {
|
|
1354
1354
|
return Qr(r) || (ot(t), r && r.response && (r.response.data = nt.call(
|
|
1355
1355
|
t,
|
|
1356
1356
|
t.transformResponse,
|
|
1357
1357
|
r.response
|
|
1358
|
-
), r.response.headers =
|
|
1358
|
+
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
const nn = "1.11.0", Ke = {};
|
|
@@ -1401,7 +1401,7 @@ function Ea(t, e, n) {
|
|
|
1401
1401
|
const De = {
|
|
1402
1402
|
assertOptions: Ea,
|
|
1403
1403
|
validators: Ke
|
|
1404
|
-
},
|
|
1404
|
+
}, B = De.validators;
|
|
1405
1405
|
let X = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -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: B.transitional(B.boolean),
|
|
1442
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1443
|
+
clarifyTimeoutError: B.transitional(B.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: B.function,
|
|
1448
|
+
serialize: B.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: B.spelling("baseURL"),
|
|
1451
|
+
withXsrfToken: B.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,
|
|
@@ -1459,7 +1459,7 @@ let X = class {
|
|
|
1459
1459
|
(y) => {
|
|
1460
1460
|
delete a[y];
|
|
1461
1461
|
}
|
|
1462
|
-
), n.headers =
|
|
1462
|
+
), n.headers = F.concat(i, a);
|
|
1463
1463
|
const s = [];
|
|
1464
1464
|
let u = !0;
|
|
1465
1465
|
this.interceptors.request.forEach(function(m) {
|
|
@@ -1469,17 +1469,17 @@ let X = class {
|
|
|
1469
1469
|
this.interceptors.response.forEach(function(m) {
|
|
1470
1470
|
l.push(m.fulfilled, m.rejected);
|
|
1471
1471
|
});
|
|
1472
|
-
let c,
|
|
1472
|
+
let c, d = 0, p;
|
|
1473
1473
|
if (!u) {
|
|
1474
1474
|
const y = [ar.bind(this), void 0];
|
|
1475
|
-
for (y.unshift(...s), y.push(...l),
|
|
1476
|
-
c = c.then(y[
|
|
1475
|
+
for (y.unshift(...s), y.push(...l), p = y.length, c = Promise.resolve(n); d < p; )
|
|
1476
|
+
c = c.then(y[d++], y[d++]);
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
|
-
|
|
1479
|
+
p = s.length;
|
|
1480
1480
|
let v = n;
|
|
1481
|
-
for (
|
|
1482
|
-
const y = s[
|
|
1481
|
+
for (d = 0; d < p; ) {
|
|
1482
|
+
const y = s[d++], m = s[d++];
|
|
1483
1483
|
try {
|
|
1484
1484
|
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
@@ -1492,8 +1492,8 @@ let X = class {
|
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
1495
|
-
for (
|
|
1496
|
-
c = c.then(l[
|
|
1495
|
+
for (d = 0, p = l.length; d < p; )
|
|
1496
|
+
c = c.then(l[d++], l[d++]);
|
|
1497
1497
|
return c;
|
|
1498
1498
|
}
|
|
1499
1499
|
getUri(e) {
|
|
@@ -1696,28 +1696,28 @@ R.all = function(e) {
|
|
|
1696
1696
|
R.spread = Oa;
|
|
1697
1697
|
R.isAxiosError = Ra;
|
|
1698
1698
|
R.mergeConfig = Y;
|
|
1699
|
-
R.AxiosHeaders =
|
|
1699
|
+
R.AxiosHeaders = F;
|
|
1700
1700
|
R.formToJSON = (t) => Kr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1701
1701
|
R.getAdapter = rn.getAdapter;
|
|
1702
1702
|
R.HttpStatusCode = xt;
|
|
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
1722
|
var sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function Pa(t) {
|
|
@@ -1747,7 +1747,7 @@ const xa = {}, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: xa
|
|
1749
1749
|
}, Symbol.toStringTag, { value: "Module" })), _a = /* @__PURE__ */ Ta(Ca);
|
|
1750
|
-
var kt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = kt && at && typeof at.get == "function" ? at.get : null, lr = kt && Map.prototype.forEach, qt = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = qt && it && typeof it.get == "function" ? it.get : null, cr = qt && Set.prototype.forEach, Na = typeof WeakMap == "function" && WeakMap.prototype, he = Na ? WeakMap.prototype.has : null,
|
|
1750
|
+
var kt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = kt && at && typeof at.get == "function" ? at.get : null, lr = kt && Map.prototype.forEach, qt = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = qt && it && typeof it.get == "function" ? it.get : null, cr = qt && Set.prototype.forEach, Na = typeof WeakMap == "function" && WeakMap.prototype, he = Na ? WeakMap.prototype.has : null, $a = typeof WeakSet == "function" && WeakSet.prototype, me = $a ? WeakSet.prototype.has : null, Fa = typeof WeakRef == "function" && WeakRef.prototype, ur = Fa ? WeakRef.prototype.deref : null, Da = Boolean.prototype.valueOf, Ia = Object.prototype.toString, Ua = Function.prototype.toString, Ba = String.prototype.match, jt = String.prototype.slice, J = String.prototype.replace, La = String.prototype.toUpperCase, fr = String.prototype.toLowerCase, sn = RegExp.prototype.test, pr = Array.prototype.concat, k = Array.prototype.join, Ma = Array.prototype.slice, dr = Math.floor, Ct = 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, ln = Object.prototype.propertyIsEnumerable, yr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
1753
|
function hr(t, e) {
|
|
@@ -1773,16 +1773,16 @@ var Nt = _a, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
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(cn, 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")
|
|
@@ -1805,23 +1805,23 @@ var Nt = _a, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
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")
|
|
1808
|
-
return
|
|
1809
|
-
var
|
|
1808
|
+
return $t(e) ? "[Array]" : "[Object]";
|
|
1809
|
+
var d = oi(a, r);
|
|
1810
1810
|
if (typeof o > "u")
|
|
1811
1811
|
o = [];
|
|
1812
1812
|
else if (pn(o, e) >= 0)
|
|
1813
1813
|
return "[Circular]";
|
|
1814
|
-
function
|
|
1814
|
+
function p(D, W, j) {
|
|
1815
1815
|
if (W && (o = Ma.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
1823
|
if (typeof e == "function" && !vr(e)) {
|
|
1824
|
-
var v = Ka(e), y = Ce(e,
|
|
1824
|
+
var v = Ka(e), y = Ce(e, p);
|
|
1825
1825
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (fn(e)) {
|
|
@@ -1833,15 +1833,15 @@ var Nt = _a, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1833
1833
|
h += " " + S[E].name + "=" + un(qa(S[E].value), "double", a);
|
|
1834
1834
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + fr.call(String(e.nodeName)) + ">", h;
|
|
1835
1835
|
}
|
|
1836
|
-
if (
|
|
1836
|
+
if ($t(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var g = Ce(e,
|
|
1840
|
-
return
|
|
1839
|
+
var g = Ce(e, p);
|
|
1840
|
+
return d && !ni(g) ? "[" + Ft(g, d) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
|
-
if (
|
|
1843
|
-
var T = Ce(e,
|
|
1844
|
-
return !("cause" in Error.prototype) && "cause" in e && !ln.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " +
|
|
1842
|
+
if (za(e)) {
|
|
1843
|
+
var T = Ce(e, p);
|
|
1844
|
+
return !("cause" in Error.prototype) && "cause" in e && !ln.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " + p(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(T, ", ") + " }";
|
|
1845
1845
|
}
|
|
1846
1846
|
if (typeof e == "object" && i) {
|
|
1847
1847
|
if (gr && typeof e[gr] == "function" && Nt)
|
|
@@ -1852,14 +1852,14 @@ var Nt = _a, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1852
1852
|
if (Qa(e)) {
|
|
1853
1853
|
var A = [];
|
|
1854
1854
|
return lr && lr.call(e, function(D, W) {
|
|
1855
|
-
A.push(
|
|
1856
|
-
}), wr("Map", ke.call(e), A,
|
|
1855
|
+
A.push(p(W, e, !0) + " => " + p(D, e));
|
|
1856
|
+
}), wr("Map", ke.call(e), A, d);
|
|
1857
1857
|
}
|
|
1858
1858
|
if (Ya(e)) {
|
|
1859
1859
|
var _ = [];
|
|
1860
1860
|
return cr && cr.call(e, function(D) {
|
|
1861
|
-
_.push(
|
|
1862
|
-
}), wr("Set", qe.call(e), _,
|
|
1861
|
+
_.push(p(D, e));
|
|
1862
|
+
}), wr("Set", qe.call(e), _, d);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (Xa(e))
|
|
1865
1865
|
return lt("WeakMap");
|
|
@@ -1868,20 +1868,20 @@ var Nt = _a, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1868
1868
|
if (Za(e))
|
|
1869
1869
|
return lt("WeakRef");
|
|
1870
1870
|
if (Wa(e))
|
|
1871
|
-
return ye(
|
|
1871
|
+
return ye(p(Number(e)));
|
|
1872
1872
|
if (Ja(e))
|
|
1873
|
-
return ye(
|
|
1873
|
+
return ye(p(Ct.call(e)));
|
|
1874
1874
|
if (Ga(e))
|
|
1875
1875
|
return ye(Da.call(e));
|
|
1876
|
-
if (
|
|
1877
|
-
return ye(
|
|
1876
|
+
if (Ha(e))
|
|
1877
|
+
return ye(p(String(e)));
|
|
1878
1878
|
if (typeof window < "u" && e === window)
|
|
1879
1879
|
return "{ [object Window] }";
|
|
1880
1880
|
if (typeof globalThis < "u" && e === globalThis || typeof sr < "u" && e === sr)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
1882
|
if (!ja(e) && !vr(e)) {
|
|
1883
|
-
var N = Ce(e,
|
|
1884
|
-
return N.length === 0 ? re + "{}" :
|
|
1883
|
+
var N = Ce(e, p), q = yr ? yr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? jt.call(V(e), 8, -1) : U ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || U ? "[" + k.call(pr.call([], H || [], U || []), ": ") + "] " : "");
|
|
1884
|
+
return N.length === 0 ? re + "{}" : d ? re + "{" + Ft(N, d) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
1887
1887
|
};
|
|
@@ -1895,7 +1895,7 @@ function qa(t) {
|
|
|
1895
1895
|
function te(t) {
|
|
1896
1896
|
return !ge || !(typeof t == "object" && (ge in t || typeof t[ge] < "u"));
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function $t(t) {
|
|
1899
1899
|
return V(t) === "[object Array]" && te(t);
|
|
1900
1900
|
}
|
|
1901
1901
|
function ja(t) {
|
|
@@ -1904,10 +1904,10 @@ function ja(t) {
|
|
|
1904
1904
|
function vr(t) {
|
|
1905
1905
|
return V(t) === "[object RegExp]" && te(t);
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function za(t) {
|
|
1908
1908
|
return V(t) === "[object Error]" && te(t);
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function Ha(t) {
|
|
1911
1911
|
return V(t) === "[object String]" && te(t);
|
|
1912
1912
|
}
|
|
1913
1913
|
function Wa(t) {
|
|
@@ -1941,7 +1941,7 @@ function Ja(t) {
|
|
|
1941
1941
|
var Va = Object.prototype.hasOwnProperty || function(t) {
|
|
1942
1942
|
return t in this;
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function z(t, e) {
|
|
1945
1945
|
return Va.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function V(t) {
|
|
@@ -1950,7 +1950,7 @@ function V(t) {
|
|
|
1950
1950
|
function Ka(t) {
|
|
1951
1951
|
if (t.name)
|
|
1952
1952
|
return t.name;
|
|
1953
|
-
var e =
|
|
1953
|
+
var e = Ba.call(Ua.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
1956
|
function pn(t, e) {
|
|
@@ -2051,7 +2051,7 @@ function ri(t) {
|
|
|
2051
2051
|
12: "f",
|
|
2052
2052
|
13: "r"
|
|
2053
2053
|
}[e];
|
|
2054
|
-
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") +
|
|
2054
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + La.call(e.toString(16));
|
|
2055
2055
|
}
|
|
2056
2056
|
function ye(t) {
|
|
2057
2057
|
return "Object(" + t + ")";
|
|
@@ -2060,7 +2060,7 @@ function lt(t) {
|
|
|
2060
2060
|
return t + " { ? }";
|
|
2061
2061
|
}
|
|
2062
2062
|
function wr(t, e, n, r) {
|
|
2063
|
-
var o = r ?
|
|
2063
|
+
var o = r ? Ft(n, r) : k.call(n, ", ");
|
|
2064
2064
|
return t + " (" + e + ") {" + o + "}";
|
|
2065
2065
|
}
|
|
2066
2066
|
function ni(t) {
|
|
@@ -2083,7 +2083,7 @@ function oi(t, e) {
|
|
|
2083
2083
|
prev: k.call(Array(e + 1), n)
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function Ft(t, e) {
|
|
2087
2087
|
if (t.length === 0)
|
|
2088
2088
|
return "";
|
|
2089
2089
|
var n = `
|
|
@@ -2092,11 +2092,11 @@ function $t(t, e) {
|
|
|
2092
2092
|
` + e.prev;
|
|
2093
2093
|
}
|
|
2094
2094
|
function Ce(t, e) {
|
|
2095
|
-
var n =
|
|
2095
|
+
var n = $t(t), r = [];
|
|
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,7 +2105,7 @@ 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 || (sn.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
|
ln.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
@@ -2174,14 +2174,14 @@ if (Ie)
|
|
|
2174
2174
|
} catch {
|
|
2175
2175
|
Ie = null;
|
|
2176
2176
|
}
|
|
2177
|
-
var hn = Ie,
|
|
2178
|
-
if (
|
|
2177
|
+
var hn = Ie, Ue = Object.defineProperty || !1;
|
|
2178
|
+
if (Ue)
|
|
2179
2179
|
try {
|
|
2180
|
-
|
|
2180
|
+
Ue({}, "a", { value: 1 });
|
|
2181
2181
|
} catch {
|
|
2182
|
-
|
|
2182
|
+
Ue = !1;
|
|
2183
2183
|
}
|
|
2184
|
-
var xi =
|
|
2184
|
+
var xi = Ue, ct, br;
|
|
2185
2185
|
function Ci() {
|
|
2186
2186
|
return br || (br = 1, ct = function() {
|
|
2187
2187
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -2231,7 +2231,7 @@ function gn() {
|
|
|
2231
2231
|
var t = yn;
|
|
2232
2232
|
return pt = t.getPrototypeOf || null, pt;
|
|
2233
2233
|
}
|
|
2234
|
-
var Ni = "Function.prototype.bind called on incompatible ",
|
|
2234
|
+
var Ni = "Function.prototype.bind called on incompatible ", $i = Object.prototype.toString, Fi = Math.max, Di = "[object Function]", Or = function(e, n) {
|
|
2235
2235
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2236
2236
|
r[o] = e[o];
|
|
2237
2237
|
for (var a = 0; a < n.length; a += 1)
|
|
@@ -2241,13 +2241,13 @@ var Ni = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2241
2241
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
2242
2242
|
r[a] = e[o];
|
|
2243
2243
|
return r;
|
|
2244
|
-
},
|
|
2244
|
+
}, Ui = function(t, e) {
|
|
2245
2245
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
2246
2246
|
n += t[r], r + 1 < t.length && (n += e);
|
|
2247
2247
|
return n;
|
|
2248
|
-
},
|
|
2248
|
+
}, Bi = function(e) {
|
|
2249
2249
|
var n = this;
|
|
2250
|
-
if (typeof n != "function" ||
|
|
2250
|
+
if (typeof n != "function" || $i.apply(n) !== Di)
|
|
2251
2251
|
throw new TypeError(Ni + n);
|
|
2252
2252
|
for (var r = Ii(arguments, 1), o, a = function() {
|
|
2253
2253
|
if (this instanceof o) {
|
|
@@ -2261,19 +2261,19 @@ var Ni = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2261
2261
|
e,
|
|
2262
2262
|
Or(r, arguments)
|
|
2263
2263
|
);
|
|
2264
|
-
}, i =
|
|
2264
|
+
}, i = Fi(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
2265
2265
|
s[u] = "$" + u;
|
|
2266
|
-
if (o = Function("binder", "return function (" +
|
|
2266
|
+
if (o = Function("binder", "return function (" + Ui(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2267
2267
|
var l = function() {
|
|
2268
2268
|
};
|
|
2269
2269
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
2270
2270
|
}
|
|
2271
2271
|
return o;
|
|
2272
|
-
},
|
|
2272
|
+
}, Li = Bi, Ze = Function.prototype.bind || Li, zt = Function.prototype.call, dt, Rr;
|
|
2273
2273
|
function vn() {
|
|
2274
2274
|
return Rr || (Rr = 1, dt = Function.prototype.apply), dt;
|
|
2275
2275
|
}
|
|
2276
|
-
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze, qi = vn(), ji =
|
|
2276
|
+
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze, qi = vn(), ji = zt, zi = Mi, Hi = zi || ki.call(ji, qi), Wi = Ze, Gi = fe, Ji = zt, Vi = Hi, wn = function(e) {
|
|
2277
2277
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2278
2278
|
throw new Gi("a function is required");
|
|
2279
2279
|
return Vi(Wi, Ji, e);
|
|
@@ -2340,7 +2340,7 @@ var b, Zi = yn, Yi = pi, es = di, ts = yi, rs = hi, le = mi, ie = fe, ns = gi, o
|
|
|
2340
2340
|
return vt;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
}() : vt, ne = _i()(), x = Qi(), ds = gn(), ys = mn(), Sn = vn(), Re =
|
|
2343
|
+
}() : vt, ne = _i()(), x = Qi(), ds = gn(), ys = mn(), Sn = vn(), Re = zt, ae = {}, hs = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), Z = {
|
|
2344
2344
|
__proto__: null,
|
|
2345
2345
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2346
2346
|
"%Array%": Array,
|
|
@@ -2500,8 +2500,8 @@ var gs = function t(e) {
|
|
|
2500
2500
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2501
2501
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2502
2502
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2503
|
-
}, Pe = Ze, je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(Sn, Array.prototype.splice), _r = Pe.call(Re, String.prototype.replace),
|
|
2504
|
-
var n =
|
|
2503
|
+
}, Pe = Ze, je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(Sn, Array.prototype.splice), _r = 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) {
|
|
2504
|
+
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2505
2505
|
if (n === "%" && r !== "%")
|
|
2506
2506
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2507
2507
|
if (r === "%" && n !== "%")
|
|
@@ -2523,7 +2523,7 @@ var gs = function t(e) {
|
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
2525
|
throw new le("intrinsic " + e + " does not exist!");
|
|
2526
|
-
},
|
|
2526
|
+
}, Ht = function(e, n) {
|
|
2527
2527
|
if (typeof e != "string" || e.length === 0)
|
|
2528
2528
|
throw new ie("intrinsic name must be a non-empty string");
|
|
2529
2529
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
@@ -2532,28 +2532,28 @@ var gs = function t(e) {
|
|
|
2532
2532
|
throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2533
2533
|
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;
|
|
2534
2534
|
l && (o = l[0], ws(r, vs([0, 1], l)));
|
|
2535
|
-
for (var c = 1,
|
|
2536
|
-
var
|
|
2535
|
+
for (var c = 1, d = !0; c < r.length; c += 1) {
|
|
2536
|
+
var p = r[c], v = ze(p, 0, 1), y = ze(p, -1);
|
|
2537
2537
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2538
2538
|
throw new le("property names with quotes must have matching quotes");
|
|
2539
|
-
if ((
|
|
2539
|
+
if ((p === "constructor" || !d) && (u = !0), o += "." + p, i = "%" + o + "%", je(Z, i))
|
|
2540
2540
|
s = Z[i];
|
|
2541
2541
|
else if (s != null) {
|
|
2542
|
-
if (!(
|
|
2542
|
+
if (!(p in s)) {
|
|
2543
2543
|
if (!n)
|
|
2544
2544
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2545
2545
|
return;
|
|
2546
2546
|
}
|
|
2547
2547
|
if (be && c + 1 >= r.length) {
|
|
2548
|
-
var m = be(s,
|
|
2549
|
-
|
|
2548
|
+
var m = be(s, p);
|
|
2549
|
+
d = !!m, d && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[p];
|
|
2550
2550
|
} else
|
|
2551
|
-
|
|
2552
|
-
|
|
2551
|
+
d = je(s, p), s = s[p];
|
|
2552
|
+
d && !u && (Z[i] = s);
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
2555
|
return s;
|
|
2556
|
-
}, En =
|
|
2556
|
+
}, En = Ht, An = wn, Rs = An([En("%String.prototype.indexOf%")]), On = function(e, n) {
|
|
2557
2557
|
var r = (
|
|
2558
2558
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2559
2559
|
En(e, !!n)
|
|
@@ -2562,7 +2562,7 @@ var gs = function t(e) {
|
|
|
2562
2562
|
/** @type {const} */
|
|
2563
2563
|
[r]
|
|
2564
2564
|
) : r;
|
|
2565
|
-
}, Ps =
|
|
2565
|
+
}, Ps = Ht, Te = On, Ts = Qe, xs = fe, Nr = Ps("%Map%", !0), Cs = Te("Map.prototype.get", !0), _s = Te("Map.prototype.set", !0), Ns = Te("Map.prototype.has", !0), $s = Te("Map.prototype.delete", !0), Fs = Te("Map.prototype.size", !0), Rn = !!Nr && /** @type {Exclude<import('.'), false>} */
|
|
2566
2566
|
function() {
|
|
2567
2567
|
var e, n = {
|
|
2568
2568
|
assert: function(r) {
|
|
@@ -2571,8 +2571,8 @@ function() {
|
|
|
2571
2571
|
},
|
|
2572
2572
|
delete: function(r) {
|
|
2573
2573
|
if (e) {
|
|
2574
|
-
var o =
|
|
2575
|
-
return
|
|
2574
|
+
var o = $s(e, r);
|
|
2575
|
+
return Fs(e) === 0 && (e = void 0), o;
|
|
2576
2576
|
}
|
|
2577
2577
|
return !1;
|
|
2578
2578
|
},
|
|
@@ -2588,13 +2588,13 @@ function() {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
};
|
|
2590
2590
|
return n;
|
|
2591
|
-
}, Ds =
|
|
2591
|
+
}, Ds = Ht, Ye = On, Is = Qe, _e = Rn, Us = fe, oe = Ds("%WeakMap%", !0), Bs = 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 ? (
|
|
2592
2592
|
/** @type {Exclude<import('.'), false>} */
|
|
2593
2593
|
function() {
|
|
2594
2594
|
var e, n, r = {
|
|
2595
2595
|
assert: function(o) {
|
|
2596
2596
|
if (!r.has(o))
|
|
2597
|
-
throw new
|
|
2597
|
+
throw new Us("Side channel does not contain " + Is(o));
|
|
2598
2598
|
},
|
|
2599
2599
|
delete: function(o) {
|
|
2600
2600
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2605,22 +2605,22 @@ function() {
|
|
|
2605
2605
|
return !1;
|
|
2606
2606
|
},
|
|
2607
2607
|
get: function(o) {
|
|
2608
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2608
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Bs(e, o) : n && n.get(o);
|
|
2609
2609
|
},
|
|
2610
2610
|
has: function(o) {
|
|
2611
2611
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Ms(e, o) : !!n && n.has(o);
|
|
2612
2612
|
},
|
|
2613
2613
|
set: function(o, a) {
|
|
2614
|
-
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()),
|
|
2614
|
+
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Ls(e, o, a)) : _e && (n || (n = _e()), n.set(o, a));
|
|
2615
2615
|
}
|
|
2616
2616
|
};
|
|
2617
2617
|
return r;
|
|
2618
2618
|
}
|
|
2619
|
-
) : _e, js = fe,
|
|
2619
|
+
) : _e, js = fe, zs = Qe, Hs = fi, Ws = Rn, Gs = qs, Js = Gs || Ws || Hs, Vs = function() {
|
|
2620
2620
|
var e, n = {
|
|
2621
2621
|
assert: function(r) {
|
|
2622
2622
|
if (!n.has(r))
|
|
2623
|
-
throw new js("Side channel does not contain " +
|
|
2623
|
+
throw new js("Side channel does not contain " + zs(r));
|
|
2624
2624
|
},
|
|
2625
2625
|
delete: function(r) {
|
|
2626
2626
|
return !!e && e.delete(r);
|
|
@@ -2651,7 +2651,7 @@ function() {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
RFC1738: wt.RFC1738,
|
|
2653
2653
|
RFC3986: wt.RFC3986
|
|
2654
|
-
}, Xs = Wt, bt = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2654
|
+
}, Xs = Wt, bt = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2655
2655
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2656
2656
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2657
2657
|
return t;
|
|
@@ -2715,25 +2715,25 @@ function() {
|
|
|
2715
2715
|
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2716
2716
|
});
|
|
2717
2717
|
for (var s = "", u = 0; u < i.length; u += St) {
|
|
2718
|
-
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [],
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
c[c.length] = l.charAt(
|
|
2718
|
+
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [], d = 0; d < l.length; ++d) {
|
|
2719
|
+
var p = l.charCodeAt(d);
|
|
2720
|
+
if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || a === Xs.RFC1738 && (p === 40 || p === 41)) {
|
|
2721
|
+
c[c.length] = l.charAt(d);
|
|
2722
2722
|
continue;
|
|
2723
2723
|
}
|
|
2724
|
-
if (
|
|
2725
|
-
c[c.length] =
|
|
2724
|
+
if (p < 128) {
|
|
2725
|
+
c[c.length] = L[p];
|
|
2726
2726
|
continue;
|
|
2727
2727
|
}
|
|
2728
|
-
if (
|
|
2729
|
-
c[c.length] =
|
|
2728
|
+
if (p < 2048) {
|
|
2729
|
+
c[c.length] = L[192 | p >> 6] + L[128 | p & 63];
|
|
2730
2730
|
continue;
|
|
2731
2731
|
}
|
|
2732
|
-
if (
|
|
2733
|
-
c[c.length] =
|
|
2732
|
+
if (p < 55296 || p >= 57344) {
|
|
2733
|
+
c[c.length] = L[224 | p >> 12] + L[128 | p >> 6 & 63] + L[128 | p & 63];
|
|
2734
2734
|
continue;
|
|
2735
2735
|
}
|
|
2736
|
-
|
|
2736
|
+
d += 1, p = 65536 + ((p & 1023) << 10 | l.charCodeAt(d) & 1023), c[c.length] = L[240 | p >> 18] + L[128 | p >> 12 & 63] + L[128 | p >> 6 & 63] + L[128 | p & 63];
|
|
2737
2737
|
}
|
|
2738
2738
|
s += c.join("");
|
|
2739
2739
|
}
|
|
@@ -2769,7 +2769,7 @@ function() {
|
|
|
2769
2769
|
isRegExp: ol,
|
|
2770
2770
|
maybeMap: sl,
|
|
2771
2771
|
merge: Ys
|
|
2772
|
-
}, xn = Vs,
|
|
2772
|
+
}, xn = Vs, Be = Tn, ve = Wt, ll = Object.prototype.hasOwnProperty, Cn = {
|
|
2773
2773
|
brackets: function(e) {
|
|
2774
2774
|
return e + "[]";
|
|
2775
2775
|
},
|
|
@@ -2782,7 +2782,7 @@ function() {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}, M = Array.isArray, cl = Array.prototype.push, _n = function(t, e) {
|
|
2784
2784
|
cl.apply(t, M(e) ? e : [e]);
|
|
2785
|
-
}, ul = Date.prototype.toISOString,
|
|
2785
|
+
}, ul = Date.prototype.toISOString, $r = ve.default, P = {
|
|
2786
2786
|
addQueryPrefix: !1,
|
|
2787
2787
|
allowDots: !1,
|
|
2788
2788
|
allowEmptyArrays: !1,
|
|
@@ -2793,11 +2793,11 @@ function() {
|
|
|
2793
2793
|
delimiter: "&",
|
|
2794
2794
|
encode: !0,
|
|
2795
2795
|
encodeDotInKeys: !1,
|
|
2796
|
-
encoder:
|
|
2796
|
+
encoder: Be.encode,
|
|
2797
2797
|
encodeValuesOnly: !1,
|
|
2798
2798
|
filter: void 0,
|
|
2799
|
-
format:
|
|
2800
|
-
formatter: ve.formatters[
|
|
2799
|
+
format: $r,
|
|
2800
|
+
formatter: ve.formatters[$r],
|
|
2801
2801
|
// deprecated
|
|
2802
2802
|
indices: !1,
|
|
2803
2803
|
serializeDate: function(e) {
|
|
@@ -2807,7 +2807,7 @@ function() {
|
|
|
2807
2807
|
strictNullHandling: !1
|
|
2808
2808
|
}, fl = function(e) {
|
|
2809
2809
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2810
|
-
}, Et = {}, pl = function t(e, n, r, o, a, i, s, u, l, c,
|
|
2810
|
+
}, Et = {}, pl = function t(e, n, r, o, a, i, s, u, l, c, d, p, v, y, m, h, S, E) {
|
|
2811
2811
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Et)) !== void 0 && !_; ) {
|
|
2812
2812
|
var N = T.get(e);
|
|
2813
2813
|
if (A += 1, typeof N < "u") {
|
|
@@ -2817,42 +2817,42 @@ function() {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
typeof T.get(Et) > "u" && (A = 0);
|
|
2819
2819
|
}
|
|
2820
|
-
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g =
|
|
2820
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Be.maybeMap(g, function(tt) {
|
|
2821
2821
|
return tt instanceof Date ? v(tt) : tt;
|
|
2822
2822
|
})), g === null) {
|
|
2823
2823
|
if (i)
|
|
2824
2824
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2825
2825
|
g = "";
|
|
2826
2826
|
}
|
|
2827
|
-
if (fl(g) ||
|
|
2827
|
+
if (fl(g) || Be.isBuffer(g)) {
|
|
2828
2828
|
if (l) {
|
|
2829
2829
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2830
2830
|
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2831
2831
|
}
|
|
2832
2832
|
return [m(n) + "=" + m(String(g))];
|
|
2833
2833
|
}
|
|
2834
|
-
var
|
|
2834
|
+
var U = [];
|
|
2835
2835
|
if (typeof g > "u")
|
|
2836
|
-
return
|
|
2837
|
-
var
|
|
2836
|
+
return U;
|
|
2837
|
+
var H;
|
|
2838
2838
|
if (r === "comma" && M(g))
|
|
2839
|
-
h && l && (g =
|
|
2839
|
+
h && l && (g = Be.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2840
2840
|
else if (M(c))
|
|
2841
|
-
|
|
2841
|
+
H = c;
|
|
2842
2842
|
else {
|
|
2843
2843
|
var xe = Object.keys(g);
|
|
2844
|
-
|
|
2844
|
+
H = d ? xe.sort(d) : xe;
|
|
2845
2845
|
}
|
|
2846
2846
|
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2847
2847
|
if (a && M(g) && g.length === 0)
|
|
2848
2848
|
return D + "[]";
|
|
2849
|
-
for (var W = 0; W <
|
|
2850
|
-
var j =
|
|
2849
|
+
for (var W = 0; W < H.length; ++W) {
|
|
2850
|
+
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2851
2851
|
if (!(s && pe === null)) {
|
|
2852
|
-
var et =
|
|
2852
|
+
var et = p && u ? String(j).replace(/\./g, "%2E") : String(j), In = M(g) ? typeof r == "function" ? r(D, et) : D : D + (p ? "." + et : "[" + et + "]");
|
|
2853
2853
|
E.set(e, A);
|
|
2854
2854
|
var Jt = xn();
|
|
2855
|
-
Jt.set(Et, E), _n(
|
|
2855
|
+
Jt.set(Et, E), _n(U, t(
|
|
2856
2856
|
pe,
|
|
2857
2857
|
In,
|
|
2858
2858
|
r,
|
|
@@ -2863,8 +2863,8 @@ function() {
|
|
|
2863
2863
|
u,
|
|
2864
2864
|
r === "comma" && h && M(g) ? null : l,
|
|
2865
2865
|
c,
|
|
2866
|
-
p,
|
|
2867
2866
|
d,
|
|
2867
|
+
p,
|
|
2868
2868
|
v,
|
|
2869
2869
|
y,
|
|
2870
2870
|
m,
|
|
@@ -2874,7 +2874,7 @@ function() {
|
|
|
2874
2874
|
));
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
return
|
|
2877
|
+
return U;
|
|
2878
2878
|
}, dl = function(e) {
|
|
2879
2879
|
if (!e)
|
|
2880
2880
|
return P;
|
|
@@ -2929,10 +2929,10 @@ function() {
|
|
|
2929
2929
|
var s = Cn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2930
2930
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2931
2931
|
for (var l = xn(), c = 0; c < o.length; ++c) {
|
|
2932
|
-
var
|
|
2933
|
-
r.skipNulls &&
|
|
2934
|
-
d,
|
|
2932
|
+
var d = o[c], p = n[d];
|
|
2933
|
+
r.skipNulls && p === null || _n(i, pl(
|
|
2935
2934
|
p,
|
|
2935
|
+
d,
|
|
2936
2936
|
s,
|
|
2937
2937
|
u,
|
|
2938
2938
|
r.allowEmptyArrays,
|
|
@@ -2953,7 +2953,7 @@ function() {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2955
2955
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2956
|
-
}, ee = Tn, Dt = Object.prototype.hasOwnProperty,
|
|
2956
|
+
}, ee = Tn, Dt = Object.prototype.hasOwnProperty, Fr = Array.isArray, O = {
|
|
2957
2957
|
allowDots: !1,
|
|
2958
2958
|
allowEmptyArrays: !1,
|
|
2959
2959
|
allowPrototypes: !1,
|
|
@@ -3000,17 +3000,17 @@ function() {
|
|
|
3000
3000
|
i[u].indexOf("utf8=") === 0 && (i[u] === gl ? l = "utf-8" : i[u] === ml && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3001
3001
|
for (u = 0; u < i.length; ++u)
|
|
3002
3002
|
if (u !== s) {
|
|
3003
|
-
var c = i[u],
|
|
3004
|
-
|
|
3003
|
+
var c = i[u], d = c.indexOf("]="), p = d === -1 ? c.indexOf("=") : d + 1, v, y;
|
|
3004
|
+
p === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, p), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3005
3005
|
Nn(
|
|
3006
|
-
c.slice(
|
|
3006
|
+
c.slice(p + 1),
|
|
3007
3007
|
n,
|
|
3008
|
-
|
|
3008
|
+
Fr(r[v]) ? r[v].length : 0
|
|
3009
3009
|
),
|
|
3010
3010
|
function(h) {
|
|
3011
3011
|
return n.decoder(h, O.decoder, l, "value");
|
|
3012
3012
|
}
|
|
3013
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y =
|
|
3013
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y = Fr(y) ? [y] : y);
|
|
3014
3014
|
var m = Dt.call(r, v);
|
|
3015
3015
|
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3016
3016
|
}
|
|
@@ -3027,8 +3027,8 @@ function() {
|
|
|
3027
3027
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
3028
3028
|
else {
|
|
3029
3029
|
u = n.plainObjects ? { __proto__: null } : {};
|
|
3030
|
-
var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l,
|
|
3031
|
-
!n.parseArrays &&
|
|
3030
|
+
var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, d = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, p = parseInt(d, 10);
|
|
3031
|
+
!n.parseArrays && d === "" ? u = { 0: i } : !isNaN(p) && l !== d && String(p) === d && p >= 0 && n.parseArrays && p <= n.arrayLimit ? (u = [], u[p] = i) : d !== "__proto__" && (u[d] = i);
|
|
3032
3032
|
}
|
|
3033
3033
|
i = u;
|
|
3034
3034
|
}
|
|
@@ -3041,8 +3041,8 @@ function() {
|
|
|
3041
3041
|
return;
|
|
3042
3042
|
c.push(l);
|
|
3043
3043
|
}
|
|
3044
|
-
for (var
|
|
3045
|
-
if (
|
|
3044
|
+
for (var d = 0; r.depth > 0 && (u = s.exec(a)) !== null && d < r.depth; ) {
|
|
3045
|
+
if (d += 1, !r.plainObjects && Dt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3046
3046
|
return;
|
|
3047
3047
|
c.push(u[1]);
|
|
3048
3048
|
}
|
|
@@ -3191,53 +3191,69 @@ const _l = {
|
|
|
3191
3191
|
en: "Network error, please check your network status",
|
|
3192
3192
|
_appCode: "framework"
|
|
3193
3193
|
}
|
|
3194
|
-
};
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
const Gt = Dr(),
|
|
3199
|
-
|
|
3194
|
+
}, Nl = async (t) => null;
|
|
3195
|
+
Un(_l);
|
|
3196
|
+
Ut.extend(Hn);
|
|
3197
|
+
Ut.extend(Wn);
|
|
3198
|
+
const Gt = Dr(), $n = Gt.sso ?? !0, $l = Gt.i18n ?? !0, Fn = Gt.noRedireLogin ?? !1, Fl = (t) => {
|
|
3199
|
+
var e, n, r;
|
|
3200
|
+
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;
|
|
3201
|
+
}, Dl = (t) => {
|
|
3202
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3203
|
+
const n = e == null ? void 0 : e.config;
|
|
3204
|
+
if (!n || n.public || !Fl(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3205
|
+
return Promise.reject(e);
|
|
3206
|
+
try {
|
|
3207
|
+
const r = await Nl({ error: e, config: n });
|
|
3208
|
+
return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
|
|
3209
|
+
} catch {
|
|
3210
|
+
return Promise.reject(e);
|
|
3211
|
+
}
|
|
3212
|
+
});
|
|
3213
|
+
}, Dn = () => {
|
|
3214
|
+
if (Fn) return;
|
|
3200
3215
|
const t = "/login";
|
|
3201
3216
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3202
|
-
},
|
|
3217
|
+
}, Il = async (t) => {
|
|
3203
3218
|
var n;
|
|
3204
3219
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3205
|
-
},
|
|
3206
|
-
var
|
|
3207
|
-
let n = ((
|
|
3220
|
+
}, Ul = async (t, e) => {
|
|
3221
|
+
var l, c, d, p, v;
|
|
3222
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3208
3223
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3209
|
-
let i = ((
|
|
3210
|
-
|
|
3211
|
-
|
|
3224
|
+
let i = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3225
|
+
const s = kn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? Fn);
|
|
3226
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3227
|
+
$n ? qn({ ...zn, redirect_uri: jn }) : Dn(), o = i;
|
|
3212
3228
|
else {
|
|
3213
3229
|
if (t.response) {
|
|
3214
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3215
|
-
const
|
|
3216
|
-
|
|
3230
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3231
|
+
const m = new FileReader();
|
|
3232
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3217
3233
|
try {
|
|
3218
|
-
|
|
3234
|
+
y(JSON.parse(m.result || "{}"));
|
|
3219
3235
|
} catch {
|
|
3220
|
-
|
|
3236
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3221
3237
|
}
|
|
3222
3238
|
};
|
|
3223
3239
|
})), i.code) {
|
|
3224
3240
|
n = i.code;
|
|
3225
|
-
const
|
|
3226
|
-
if (
|
|
3227
|
-
const
|
|
3228
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3241
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3242
|
+
if ($l && y) {
|
|
3243
|
+
const m = (i == null ? void 0 : i.status) ?? "";
|
|
3244
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3229
3245
|
} else
|
|
3230
3246
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3231
3247
|
o = i;
|
|
3232
3248
|
}
|
|
3233
3249
|
r || (r = a[t.response.status] || t.message);
|
|
3234
3250
|
} 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("请求配置异常");
|
|
3235
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3251
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((v = (p = window.DasMessage) == null ? void 0 : p.error) == null || v.call(p, { message: r, showClose: !0 }));
|
|
3236
3252
|
}
|
|
3237
3253
|
return { ...o, code: n, msg: r, error: t };
|
|
3238
|
-
},
|
|
3254
|
+
}, uc = (t, e) => {
|
|
3239
3255
|
const n = R.create();
|
|
3240
|
-
return
|
|
3256
|
+
return Dl(n), Ln(n, async (r) => {
|
|
3241
3257
|
const o = Dr();
|
|
3242
3258
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3243
3259
|
let l = "";
|
|
@@ -3245,9 +3261,9 @@ const Gt = Dr(), Fn = Gt.sso ?? !0, Nl = Gt.i18n ?? !0, $n = Gt.noRedireLogin ??
|
|
|
3245
3261
|
const c = new URL(location.href).searchParams;
|
|
3246
3262
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3247
3263
|
}
|
|
3248
|
-
|
|
3264
|
+
$n ? l || (l = await Mn(r)) : (l || (l = Vn()), l || Dn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3249
3265
|
}
|
|
3250
|
-
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 =
|
|
3266
|
+
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 = Ul), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cl.get("csrf-token"));
|
|
3251
3267
|
const s = r.params || {};
|
|
3252
3268
|
if (s.project === void 0) {
|
|
3253
3269
|
let l = 0;
|
|
@@ -3258,9 +3274,9 @@ const Gt = Dr(), Fn = Gt.sso ?? !0, Nl = Gt.i18n ?? !0, $n = Gt.noRedireLogin ??
|
|
|
3258
3274
|
const { instanceInfo: l } = Jn();
|
|
3259
3275
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3260
3276
|
}
|
|
3261
|
-
return r.params = s, r.headers.Timezone =
|
|
3277
|
+
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Bn.value, (e == null ? void 0 : e(r)) || r;
|
|
3262
3278
|
});
|
|
3263
3279
|
};
|
|
3264
3280
|
export {
|
|
3265
|
-
|
|
3281
|
+
uc as createService
|
|
3266
3282
|
};
|