@das-fed/utils 7.0.7-hot.70 → 7.0.7-hot.71
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 +261 -261
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +726 -708
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1098 -1116
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1101 -1119
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +154 -154
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +154 -154
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +626 -626
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +372 -372
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +832 -850
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +317 -317
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +159 -159
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +156 -156
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +197 -197
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +743 -725
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1098 -1116
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +830 -844
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +154 -154
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +154 -154
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +627 -627
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +624 -624
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +626 -626
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +626 -626
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +626 -626
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +153 -153
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +182 -182
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +138 -139
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +189 -190
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
2
|
-
import { curringHttp as
|
|
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
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
|
|
4
|
+
import Ut from "dayjs";
|
|
5
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";
|
|
@@ -13,23 +13,23 @@ function Ir(t, e) {
|
|
|
13
13
|
return t.apply(e, arguments);
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
const { toString: Qn } = Object.prototype, { getPrototypeOf:
|
|
16
|
+
const { toString: Qn } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: He, toStringTag: Ur } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
17
17
|
const n = Qn.call(e);
|
|
18
18
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
19
19
|
})(/* @__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");
|
|
20
20
|
function Se(t) {
|
|
21
21
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Br = I("ArrayBuffer");
|
|
24
24
|
function Xn(t) {
|
|
25
25
|
let e;
|
|
26
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
26
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Br(t.buffer), e;
|
|
27
27
|
}
|
|
28
|
-
const Zn = Ge("string"), $ = Ge("function"),
|
|
28
|
+
const Zn = Ge("string"), $ = Ge("function"), Lr = Ge("number"), Ee = (t) => t !== null && typeof t == "object", Yn = (t) => t === !0 || t === !1, $e = (t) => {
|
|
29
29
|
if (We(t) !== "object")
|
|
30
30
|
return !1;
|
|
31
|
-
const e =
|
|
32
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
const e = Bt(t);
|
|
32
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ur in t) && !(He in t);
|
|
33
33
|
}, eo = (t) => {
|
|
34
34
|
if (!Ee(t) || Se(t))
|
|
35
35
|
return !1;
|
|
@@ -93,7 +93,7 @@ const yo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
93
93
|
do {
|
|
94
94
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
95
95
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
96
|
-
t = n !== !1 &&
|
|
96
|
+
t = n !== !1 && Bt(t);
|
|
97
97
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
98
98
|
return e;
|
|
99
99
|
}, vo = (t, e, n) => {
|
|
@@ -104,12 +104,12 @@ const yo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
104
104
|
if (!t) return null;
|
|
105
105
|
if (ce(t)) return t;
|
|
106
106
|
let e = t.length;
|
|
107
|
-
if (!
|
|
107
|
+
if (!Lr(e)) return null;
|
|
108
108
|
const n = new Array(e);
|
|
109
109
|
for (; e-- > 0; )
|
|
110
110
|
n[e] = t[e];
|
|
111
111
|
return n;
|
|
112
|
-
}, bo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
112
|
+
}, bo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Bt(Uint8Array)), So = (t, e) => {
|
|
113
113
|
const r = (t && t[He]).call(t);
|
|
114
114
|
let o;
|
|
115
115
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -158,7 +158,7 @@ const yo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
158
158
|
}, xo = () => {
|
|
159
159
|
}, Co = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
160
160
|
function _o(t) {
|
|
161
|
-
return !!(t && $(t.append) && t[
|
|
161
|
+
return !!(t && $(t.append) && t[Ur] === "FormData" && t[He]);
|
|
162
162
|
}
|
|
163
163
|
const No = (t) => {
|
|
164
164
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -188,12 +188,12 @@ const No = (t) => {
|
|
|
188
188
|
$(Q.postMessage)
|
|
189
189
|
), Do = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jr, Io = (t) => t != null && $(t[He]), f = {
|
|
190
190
|
isArray: ce,
|
|
191
|
-
isArrayBuffer:
|
|
191
|
+
isArrayBuffer: Br,
|
|
192
192
|
isBuffer: Se,
|
|
193
193
|
isFormData: io,
|
|
194
194
|
isArrayBufferView: Xn,
|
|
195
195
|
isString: Zn,
|
|
196
|
-
isNumber:
|
|
196
|
+
isNumber: Lr,
|
|
197
197
|
isBoolean: Yn,
|
|
198
198
|
isObject: Ee,
|
|
199
199
|
isPlainObject: $e,
|
|
@@ -296,7 +296,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
296
296
|
return u !== Error.prototype;
|
|
297
297
|
}, (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;
|
|
298
298
|
};
|
|
299
|
-
const
|
|
299
|
+
const Uo = null;
|
|
300
300
|
function Ot(t) {
|
|
301
301
|
return f.isPlainObject(t) || f.isArray(t);
|
|
302
302
|
}
|
|
@@ -308,10 +308,10 @@ function Kt(t, e, n) {
|
|
|
308
308
|
return o = Wr(o), !n && a ? "[" + o + "]" : o;
|
|
309
309
|
}).join(n ? "." : "") : e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Bo(t) {
|
|
312
312
|
return f.isArray(t) && !t.some(Ot);
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const Lo = f.toFlatObject(f, {}, null, function(e) {
|
|
315
315
|
return /^is[A-Z]/.test(e);
|
|
316
316
|
});
|
|
317
317
|
function Je(t, e, n) {
|
|
@@ -342,7 +342,7 @@ function Je(t, e, n) {
|
|
|
342
342
|
if (y && !h && typeof y == "object") {
|
|
343
343
|
if (f.endsWith(m, "{}"))
|
|
344
344
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
345
|
-
else if (f.isArray(y) &&
|
|
345
|
+
else if (f.isArray(y) && Bo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
346
346
|
return m = Wr(m), S.forEach(function(g, T) {
|
|
347
347
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
348
348
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -353,24 +353,24 @@ function Je(t, e, n) {
|
|
|
353
353
|
}
|
|
354
354
|
return Ot(y) ? !0 : (e.append(Kt(h, m, a), l(y)), !1);
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const d = [], p = Object.assign(Lo, {
|
|
357
357
|
defaultVisitor: c,
|
|
358
358
|
convertValue: l,
|
|
359
359
|
isVisitable: Ot
|
|
360
360
|
});
|
|
361
361
|
function v(y, m) {
|
|
362
362
|
if (!f.isUndefined(y)) {
|
|
363
|
-
if (
|
|
363
|
+
if (d.indexOf(y) !== -1)
|
|
364
364
|
throw Error("Circular reference detected in " + m.join("."));
|
|
365
|
-
|
|
365
|
+
d.push(y), f.forEach(y, function(S, E) {
|
|
366
366
|
(!(f.isUndefined(S) || S === null) && o.call(
|
|
367
367
|
e,
|
|
368
368
|
S,
|
|
369
369
|
f.isString(E) ? E.trim() : E,
|
|
370
370
|
m,
|
|
371
|
-
|
|
371
|
+
p
|
|
372
372
|
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
373
|
-
}),
|
|
373
|
+
}), d.pop();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
if (!f.isObject(t))
|
|
@@ -391,10 +391,10 @@ function Qt(t) {
|
|
|
391
391
|
return e[r];
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Lt(t, e) {
|
|
395
395
|
this._pairs = [], t && Je(t, this, e);
|
|
396
396
|
}
|
|
397
|
-
const Gr =
|
|
397
|
+
const Gr = Lt.prototype;
|
|
398
398
|
Gr.append = function(e, n) {
|
|
399
399
|
this._pairs.push([e, n]);
|
|
400
400
|
};
|
|
@@ -418,7 +418,7 @@ function Jr(t, e, n) {
|
|
|
418
418
|
});
|
|
419
419
|
const o = n && n.serialize;
|
|
420
420
|
let a;
|
|
421
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
421
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Lt(e, n).toString(r), a) {
|
|
422
422
|
const i = t.indexOf("#");
|
|
423
423
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
424
424
|
}
|
|
@@ -482,7 +482,7 @@ const Vr = {
|
|
|
482
482
|
silentJSONParsing: !0,
|
|
483
483
|
forcedJSONParsing: !0,
|
|
484
484
|
clarifyTimeoutError: !1
|
|
485
|
-
}, ko = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
485
|
+
}, ko = typeof URLSearchParams < "u" ? URLSearchParams : Lt, qo = typeof FormData < "u" ? FormData : null, jo = typeof Blob < "u" ? Blob : null, zo = {
|
|
486
486
|
isBrowser: !0,
|
|
487
487
|
classes: {
|
|
488
488
|
URLSearchParams: ko,
|
|
@@ -690,8 +690,8 @@ let F = class {
|
|
|
690
690
|
const c = de(u);
|
|
691
691
|
if (!c)
|
|
692
692
|
throw new Error("header name must be a non-empty string");
|
|
693
|
-
const
|
|
694
|
-
(!
|
|
693
|
+
const d = f.findKey(o, c);
|
|
694
|
+
(!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = Fe(s));
|
|
695
695
|
}
|
|
696
696
|
const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
|
|
697
697
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -854,13 +854,13 @@ function aa(t, e) {
|
|
|
854
854
|
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
855
855
|
const l = Date.now(), c = r[a];
|
|
856
856
|
i || (i = l), n[o] = u, r[o] = l;
|
|
857
|
-
let
|
|
858
|
-
for (;
|
|
859
|
-
|
|
857
|
+
let d = a, p = 0;
|
|
858
|
+
for (; d !== o; )
|
|
859
|
+
p += n[d++], d = d % t;
|
|
860
860
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
861
861
|
return;
|
|
862
862
|
const v = c && l - c;
|
|
863
|
-
return v ? Math.round(
|
|
863
|
+
return v ? Math.round(p * 1e3 / v) : void 0;
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
866
|
function ia(t, e) {
|
|
@@ -869,19 +869,19 @@ function ia(t, e) {
|
|
|
869
869
|
n = c, o = null, a && (clearTimeout(a), a = null), t(...l);
|
|
870
870
|
};
|
|
871
871
|
return [(...l) => {
|
|
872
|
-
const c = Date.now(),
|
|
873
|
-
|
|
872
|
+
const c = Date.now(), d = c - n;
|
|
873
|
+
d >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
|
|
874
874
|
a = null, i(o);
|
|
875
|
-
}, r -
|
|
875
|
+
}, r - d)));
|
|
876
876
|
}, () => o && i(o)];
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const Le = (t, e, n = 3) => {
|
|
879
879
|
let r = 0;
|
|
880
880
|
const o = aa(50, 250);
|
|
881
881
|
return ia((a) => {
|
|
882
882
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
|
|
883
883
|
r = i;
|
|
884
|
-
const
|
|
884
|
+
const d = {
|
|
885
885
|
loaded: i,
|
|
886
886
|
total: s,
|
|
887
887
|
progress: s ? i / s : void 0,
|
|
@@ -892,7 +892,7 @@ const Be = (t, e, n = 3) => {
|
|
|
892
892
|
lengthComputable: s != null,
|
|
893
893
|
[e ? "download" : "upload"]: !0
|
|
894
894
|
};
|
|
895
|
-
t(
|
|
895
|
+
t(d);
|
|
896
896
|
}, n);
|
|
897
897
|
}, Yt = (t, e) => {
|
|
898
898
|
const n = t != null;
|
|
@@ -945,14 +945,14 @@ const tr = (t) => t instanceof F ? { ...t } : t;
|
|
|
945
945
|
function Y(t, e) {
|
|
946
946
|
e = e || {};
|
|
947
947
|
const n = {};
|
|
948
|
-
function r(l, c,
|
|
949
|
-
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless:
|
|
948
|
+
function r(l, c, d, p) {
|
|
949
|
+
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;
|
|
950
950
|
}
|
|
951
|
-
function o(l, c,
|
|
951
|
+
function o(l, c, d, p) {
|
|
952
952
|
if (f.isUndefined(c)) {
|
|
953
953
|
if (!f.isUndefined(l))
|
|
954
|
-
return r(void 0, l,
|
|
955
|
-
} else return r(l, c,
|
|
954
|
+
return r(void 0, l, d, p);
|
|
955
|
+
} else return r(l, c, d, p);
|
|
956
956
|
}
|
|
957
957
|
function a(l, c) {
|
|
958
958
|
if (!f.isUndefined(c))
|
|
@@ -964,10 +964,10 @@ function Y(t, e) {
|
|
|
964
964
|
return r(void 0, l);
|
|
965
965
|
} else return r(void 0, c);
|
|
966
966
|
}
|
|
967
|
-
function s(l, c,
|
|
968
|
-
if (
|
|
967
|
+
function s(l, c, d) {
|
|
968
|
+
if (d in e)
|
|
969
969
|
return r(l, c);
|
|
970
|
-
if (
|
|
970
|
+
if (d in t)
|
|
971
971
|
return r(void 0, l);
|
|
972
972
|
}
|
|
973
973
|
const u = {
|
|
@@ -999,11 +999,11 @@ function Y(t, e) {
|
|
|
999
999
|
socketPath: i,
|
|
1000
1000
|
responseEncoding: i,
|
|
1001
1001
|
validateStatus: s,
|
|
1002
|
-
headers: (l, c,
|
|
1002
|
+
headers: (l, c, d) => o(tr(l), tr(c), d, !0)
|
|
1003
1003
|
};
|
|
1004
1004
|
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
1005
|
-
const
|
|
1006
|
-
f.isUndefined(
|
|
1005
|
+
const d = u[c] || o, p = d(t[c], e[c], c);
|
|
1006
|
+
f.isUndefined(p) && d !== s || (n[c] = p);
|
|
1007
1007
|
}), n;
|
|
1008
1008
|
}
|
|
1009
1009
|
const Yr = (t) => {
|
|
@@ -1018,7 +1018,7 @@ const Yr = (t) => {
|
|
|
1018
1018
|
if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
|
|
1019
1019
|
i.setContentType(void 0);
|
|
1020
1020
|
else if ((u = i.getContentType()) !== !1) {
|
|
1021
|
-
const [l, ...c] = u ? u.split(";").map((
|
|
1021
|
+
const [l, ...c] = u ? u.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1022
1022
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
@@ -1032,7 +1032,7 @@ const Yr = (t) => {
|
|
|
1032
1032
|
const o = Yr(t);
|
|
1033
1033
|
let a = o.data;
|
|
1034
1034
|
const i = F.from(o.headers).normalize();
|
|
1035
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c,
|
|
1035
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, d, p, v, y;
|
|
1036
1036
|
function m() {
|
|
1037
1037
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1038
1038
|
}
|
|
@@ -1074,7 +1074,7 @@ const Yr = (t) => {
|
|
|
1074
1074
|
)), h = null;
|
|
1075
1075
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1076
1076
|
h.setRequestHeader(A, T);
|
|
1077
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([
|
|
1077
|
+
}), 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) => {
|
|
1078
1078
|
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1079
1079
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1080
1080
|
const E = oa(o.url);
|
|
@@ -1148,10 +1148,10 @@ const Yr = (t) => {
|
|
|
1148
1148
|
s(), u.close();
|
|
1149
1149
|
return;
|
|
1150
1150
|
}
|
|
1151
|
-
let
|
|
1151
|
+
let d = c.byteLength;
|
|
1152
1152
|
if (n) {
|
|
1153
|
-
let
|
|
1154
|
-
n(
|
|
1153
|
+
let p = a += d;
|
|
1154
|
+
n(p);
|
|
1155
1155
|
}
|
|
1156
1156
|
u.enqueue(new Uint8Array(c));
|
|
1157
1157
|
} catch (l) {
|
|
@@ -1219,8 +1219,8 @@ const wa = async (t) => {
|
|
|
1219
1219
|
onUploadProgress: u,
|
|
1220
1220
|
responseType: l,
|
|
1221
1221
|
headers: c,
|
|
1222
|
-
withCredentials:
|
|
1223
|
-
fetchOptions:
|
|
1222
|
+
withCredentials: d = "same-origin",
|
|
1223
|
+
fetchOptions: p
|
|
1224
1224
|
} = Yr(t);
|
|
1225
1225
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1226
1226
|
let v = da([o, a && a.toAbortSignal()], i), y;
|
|
@@ -1238,32 +1238,32 @@ const wa = async (t) => {
|
|
|
1238
1238
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1239
1239
|
const [N, q] = Yt(
|
|
1240
1240
|
h,
|
|
1241
|
-
|
|
1241
|
+
Le(er(u))
|
|
1242
1242
|
);
|
|
1243
1243
|
r = rr(A.body, nr, N, q);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
f.isString(
|
|
1246
|
+
f.isString(d) || (d = d ? "include" : "omit");
|
|
1247
1247
|
const S = "credentials" in Request.prototype;
|
|
1248
1248
|
y = new Request(e, {
|
|
1249
|
-
...
|
|
1249
|
+
...p,
|
|
1250
1250
|
signal: v,
|
|
1251
1251
|
method: n.toUpperCase(),
|
|
1252
1252
|
headers: c.normalize().toJSON(),
|
|
1253
1253
|
body: r,
|
|
1254
1254
|
duplex: "half",
|
|
1255
|
-
credentials: S ?
|
|
1255
|
+
credentials: S ? d : void 0
|
|
1256
1256
|
});
|
|
1257
|
-
let E = await fetch(y,
|
|
1257
|
+
let E = await fetch(y, p);
|
|
1258
1258
|
const g = Pt && (l === "stream" || l === "response");
|
|
1259
1259
|
if (Pt && (s || g && m)) {
|
|
1260
1260
|
const A = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((
|
|
1262
|
-
A[
|
|
1261
|
+
["status", "statusText", "headers"].forEach((U) => {
|
|
1262
|
+
A[U] = E[U];
|
|
1263
1263
|
});
|
|
1264
1264
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && Yt(
|
|
1265
1265
|
_,
|
|
1266
|
-
|
|
1266
|
+
Le(er(s), !0)
|
|
1267
1267
|
) || [];
|
|
1268
1268
|
E = new Response(
|
|
1269
1269
|
rr(E.body, nr, N, () => {
|
|
@@ -1293,7 +1293,7 @@ const wa = async (t) => {
|
|
|
1293
1293
|
) : w.from(S, S && S.code, t, y);
|
|
1294
1294
|
}
|
|
1295
1295
|
}), Tt = {
|
|
1296
|
-
http:
|
|
1296
|
+
http: Uo,
|
|
1297
1297
|
xhr: pa,
|
|
1298
1298
|
fetch: Sa
|
|
1299
1299
|
};
|
|
@@ -1402,7 +1402,7 @@ function Aa(t, e, n) {
|
|
|
1402
1402
|
const De = {
|
|
1403
1403
|
assertOptions: Aa,
|
|
1404
1404
|
validators: Ke
|
|
1405
|
-
},
|
|
1405
|
+
}, B = De.validators;
|
|
1406
1406
|
let X = class {
|
|
1407
1407
|
constructor(e) {
|
|
1408
1408
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1439,17 +1439,17 @@ let X = class {
|
|
|
1439
1439
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1440
1440
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1441
1441
|
r !== void 0 && De.assertOptions(r, {
|
|
1442
|
-
silentJSONParsing:
|
|
1443
|
-
forcedJSONParsing:
|
|
1444
|
-
clarifyTimeoutError:
|
|
1442
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1443
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1444
|
+
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1445
1445
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1446
1446
|
serialize: o
|
|
1447
1447
|
} : De.assertOptions(o, {
|
|
1448
|
-
encode:
|
|
1449
|
-
serialize:
|
|
1448
|
+
encode: B.function,
|
|
1449
|
+
serialize: B.function
|
|
1450
1450
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1451
|
-
baseUrl:
|
|
1452
|
-
withXsrfToken:
|
|
1451
|
+
baseUrl: B.spelling("baseURL"),
|
|
1452
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1453
1453
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1454
1454
|
let i = a && f.merge(
|
|
1455
1455
|
a.common,
|
|
@@ -1470,17 +1470,17 @@ let X = class {
|
|
|
1470
1470
|
this.interceptors.response.forEach(function(m) {
|
|
1471
1471
|
l.push(m.fulfilled, m.rejected);
|
|
1472
1472
|
});
|
|
1473
|
-
let c,
|
|
1473
|
+
let c, d = 0, p;
|
|
1474
1474
|
if (!u) {
|
|
1475
1475
|
const y = [ar.bind(this), void 0];
|
|
1476
|
-
for (y.unshift(...s), y.push(...l),
|
|
1477
|
-
c = c.then(y[
|
|
1476
|
+
for (y.unshift(...s), y.push(...l), p = y.length, c = Promise.resolve(n); d < p; )
|
|
1477
|
+
c = c.then(y[d++], y[d++]);
|
|
1478
1478
|
return c;
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1480
|
+
p = s.length;
|
|
1481
1481
|
let v = n;
|
|
1482
|
-
for (
|
|
1483
|
-
const y = s[
|
|
1482
|
+
for (d = 0; d < p; ) {
|
|
1483
|
+
const y = s[d++], m = s[d++];
|
|
1484
1484
|
try {
|
|
1485
1485
|
v = y(v);
|
|
1486
1486
|
} catch (h) {
|
|
@@ -1493,8 +1493,8 @@ let X = class {
|
|
|
1493
1493
|
} catch (y) {
|
|
1494
1494
|
return Promise.reject(y);
|
|
1495
1495
|
}
|
|
1496
|
-
for (
|
|
1497
|
-
c = c.then(l[
|
|
1496
|
+
for (d = 0, p = l.length; d < p; )
|
|
1497
|
+
c = c.then(l[d++], l[d++]);
|
|
1498
1498
|
return c;
|
|
1499
1499
|
}
|
|
1500
1500
|
getUri(e) {
|
|
@@ -1748,7 +1748,7 @@ const Ca = {}, _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1748
1748
|
__proto__: null,
|
|
1749
1749
|
default: Ca
|
|
1750
1750
|
}, Symbol.toStringTag, { value: "Module" })), Na = /* @__PURE__ */ xa(_a);
|
|
1751
|
-
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, $a = typeof WeakMap == "function" && WeakMap.prototype, he = $a ? WeakMap.prototype.has : null, Fa = typeof WeakSet == "function" && WeakSet.prototype, me = Fa ? WeakSet.prototype.has : null, Da = typeof WeakRef == "function" && WeakRef.prototype, ur = Da ? WeakRef.prototype.deref : null, Ia = Boolean.prototype.valueOf,
|
|
1751
|
+
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, $a = typeof WeakMap == "function" && WeakMap.prototype, he = $a ? WeakMap.prototype.has : null, Fa = typeof WeakSet == "function" && WeakSet.prototype, me = Fa ? WeakSet.prototype.has : null, Da = typeof WeakRef == "function" && WeakRef.prototype, ur = Da ? WeakRef.prototype.deref : null, Ia = Boolean.prototype.valueOf, Ua = Object.prototype.toString, Ba = Function.prototype.toString, La = String.prototype.match, jt = String.prototype.slice, J = String.prototype.replace, Ma = String.prototype.toUpperCase, fr = String.prototype.toLowerCase, sn = RegExp.prototype.test, pr = Array.prototype.concat, k = Array.prototype.join, ka = 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) {
|
|
1752
1752
|
return t.__proto__;
|
|
1753
1753
|
} : null);
|
|
1754
1754
|
function hr(t, e) {
|
|
@@ -1807,12 +1807,12 @@ var Nt = Na, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1807
1807
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1808
1808
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1809
1809
|
return $t(e) ? "[Array]" : "[Object]";
|
|
1810
|
-
var
|
|
1810
|
+
var d = ai(a, r);
|
|
1811
1811
|
if (typeof o > "u")
|
|
1812
1812
|
o = [];
|
|
1813
1813
|
else if (pn(o, e) >= 0)
|
|
1814
1814
|
return "[Circular]";
|
|
1815
|
-
function
|
|
1815
|
+
function p(D, W, j) {
|
|
1816
1816
|
if (W && (o = ka.call(o), o.push(W)), j) {
|
|
1817
1817
|
var pe = {
|
|
1818
1818
|
depth: a.depth
|
|
@@ -1822,7 +1822,7 @@ var Nt = Na, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1822
1822
|
return t(D, a, r + 1, o);
|
|
1823
1823
|
}
|
|
1824
1824
|
if (typeof e == "function" && !vr(e)) {
|
|
1825
|
-
var v = Qa(e), y = Ce(e,
|
|
1825
|
+
var v = Qa(e), y = Ce(e, p);
|
|
1826
1826
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1827
1827
|
}
|
|
1828
1828
|
if (fn(e)) {
|
|
@@ -1837,12 +1837,12 @@ var Nt = Na, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1837
1837
|
if ($t(e)) {
|
|
1838
1838
|
if (e.length === 0)
|
|
1839
1839
|
return "[]";
|
|
1840
|
-
var g = Ce(e,
|
|
1841
|
-
return
|
|
1840
|
+
var g = Ce(e, p);
|
|
1841
|
+
return d && !oi(g) ? "[" + Ft(g, d) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1842
1842
|
}
|
|
1843
1843
|
if (Ha(e)) {
|
|
1844
|
-
var T = Ce(e,
|
|
1845
|
-
return !("cause" in Error.prototype) && "cause" in e && !ln.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " +
|
|
1844
|
+
var T = Ce(e, p);
|
|
1845
|
+
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, ", ") + " }";
|
|
1846
1846
|
}
|
|
1847
1847
|
if (typeof e == "object" && i) {
|
|
1848
1848
|
if (gr && typeof e[gr] == "function" && Nt)
|
|
@@ -1853,14 +1853,14 @@ var Nt = Na, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1853
1853
|
if (Xa(e)) {
|
|
1854
1854
|
var A = [];
|
|
1855
1855
|
return lr && lr.call(e, function(D, W) {
|
|
1856
|
-
A.push(
|
|
1857
|
-
}), wr("Map", ke.call(e), A,
|
|
1856
|
+
A.push(p(W, e, !0) + " => " + p(D, e));
|
|
1857
|
+
}), wr("Map", ke.call(e), A, d);
|
|
1858
1858
|
}
|
|
1859
1859
|
if (ei(e)) {
|
|
1860
1860
|
var _ = [];
|
|
1861
1861
|
return cr && cr.call(e, function(D) {
|
|
1862
|
-
_.push(
|
|
1863
|
-
}), wr("Set", qe.call(e), _,
|
|
1862
|
+
_.push(p(D, e));
|
|
1863
|
+
}), wr("Set", qe.call(e), _, d);
|
|
1864
1864
|
}
|
|
1865
1865
|
if (Za(e))
|
|
1866
1866
|
return lt("WeakMap");
|
|
@@ -1869,20 +1869,20 @@ var Nt = Na, mr = Nt.custom, gr = fn(mr) ? mr : null, cn = {
|
|
|
1869
1869
|
if (Ya(e))
|
|
1870
1870
|
return lt("WeakRef");
|
|
1871
1871
|
if (Ga(e))
|
|
1872
|
-
return ye(
|
|
1872
|
+
return ye(p(Number(e)));
|
|
1873
1873
|
if (Va(e))
|
|
1874
|
-
return ye(
|
|
1874
|
+
return ye(p(Ct.call(e)));
|
|
1875
1875
|
if (Ja(e))
|
|
1876
1876
|
return ye(Ia.call(e));
|
|
1877
1877
|
if (Wa(e))
|
|
1878
|
-
return ye(
|
|
1878
|
+
return ye(p(String(e)));
|
|
1879
1879
|
if (typeof window < "u" && e === window)
|
|
1880
1880
|
return "{ [object Window] }";
|
|
1881
1881
|
if (typeof globalThis < "u" && e === globalThis || typeof sr < "u" && e === sr)
|
|
1882
1882
|
return "{ [object globalThis] }";
|
|
1883
1883
|
if (!za(e) && !vr(e)) {
|
|
1884
|
-
var N = Ce(e,
|
|
1885
|
-
return N.length === 0 ? re + "{}" :
|
|
1884
|
+
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 || []), ": ") + "] " : "");
|
|
1885
|
+
return N.length === 0 ? re + "{}" : d ? re + "{" + Ft(N, d) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1886
1886
|
}
|
|
1887
1887
|
return String(e);
|
|
1888
1888
|
};
|
|
@@ -1946,12 +1946,12 @@ function z(t, e) {
|
|
|
1946
1946
|
return Ka.call(t, e);
|
|
1947
1947
|
}
|
|
1948
1948
|
function V(t) {
|
|
1949
|
-
return
|
|
1949
|
+
return Ua.call(t);
|
|
1950
1950
|
}
|
|
1951
1951
|
function Qa(t) {
|
|
1952
1952
|
if (t.name)
|
|
1953
1953
|
return t.name;
|
|
1954
|
-
var e =
|
|
1954
|
+
var e = La.call(Ba.call(t), /^function\s*([\w$]+)/);
|
|
1955
1955
|
return e ? e[1] : null;
|
|
1956
1956
|
}
|
|
1957
1957
|
function pn(t, e) {
|
|
@@ -2175,14 +2175,14 @@ if (Ie)
|
|
|
2175
2175
|
} catch {
|
|
2176
2176
|
Ie = null;
|
|
2177
2177
|
}
|
|
2178
|
-
var hn = Ie,
|
|
2179
|
-
if (
|
|
2178
|
+
var hn = Ie, Ue = Object.defineProperty || !1;
|
|
2179
|
+
if (Ue)
|
|
2180
2180
|
try {
|
|
2181
|
-
|
|
2181
|
+
Ue({}, "a", { value: 1 });
|
|
2182
2182
|
} catch {
|
|
2183
|
-
|
|
2183
|
+
Ue = !1;
|
|
2184
2184
|
}
|
|
2185
|
-
var Ci =
|
|
2185
|
+
var Ci = Ue, ct, br;
|
|
2186
2186
|
function _i() {
|
|
2187
2187
|
return br || (br = 1, ct = function() {
|
|
2188
2188
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -2238,19 +2238,19 @@ var $i = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2238
2238
|
for (var a = 0; a < n.length; a += 1)
|
|
2239
2239
|
r[a + e.length] = n[a];
|
|
2240
2240
|
return r;
|
|
2241
|
-
},
|
|
2241
|
+
}, Ui = function(e, n) {
|
|
2242
2242
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
2243
2243
|
r[a] = e[o];
|
|
2244
2244
|
return r;
|
|
2245
|
-
},
|
|
2245
|
+
}, Bi = function(t, e) {
|
|
2246
2246
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
2247
2247
|
n += t[r], r + 1 < t.length && (n += e);
|
|
2248
2248
|
return n;
|
|
2249
|
-
},
|
|
2249
|
+
}, Li = function(e) {
|
|
2250
2250
|
var n = this;
|
|
2251
2251
|
if (typeof n != "function" || Fi.apply(n) !== Ii)
|
|
2252
2252
|
throw new TypeError($i + n);
|
|
2253
|
-
for (var r =
|
|
2253
|
+
for (var r = Ui(arguments, 1), o, a = function() {
|
|
2254
2254
|
if (this instanceof o) {
|
|
2255
2255
|
var c = n.apply(
|
|
2256
2256
|
this,
|
|
@@ -2264,13 +2264,13 @@ var $i = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2264
2264
|
);
|
|
2265
2265
|
}, i = Di(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
2266
2266
|
s[u] = "$" + u;
|
|
2267
|
-
if (o = Function("binder", "return function (" +
|
|
2267
|
+
if (o = Function("binder", "return function (" + Bi(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2268
2268
|
var l = function() {
|
|
2269
2269
|
};
|
|
2270
2270
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
2271
2271
|
}
|
|
2272
2272
|
return o;
|
|
2273
|
-
}, Mi =
|
|
2273
|
+
}, Mi = Li, Ze = Function.prototype.bind || Mi, zt = Function.prototype.call, dt, Rr;
|
|
2274
2274
|
function vn() {
|
|
2275
2275
|
return Rr || (Rr = 1, dt = Function.prototype.apply), dt;
|
|
2276
2276
|
}
|
|
@@ -2533,24 +2533,24 @@ var vs = function t(e) {
|
|
|
2533
2533
|
throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2534
2534
|
var r = Os(e), o = r.length > 0 ? r[0] : "", a = Rs("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2535
2535
|
l && (o = l[0], bs(r, ws([0, 1], l)));
|
|
2536
|
-
for (var c = 1,
|
|
2537
|
-
var
|
|
2536
|
+
for (var c = 1, d = !0; c < r.length; c += 1) {
|
|
2537
|
+
var p = r[c], v = ze(p, 0, 1), y = ze(p, -1);
|
|
2538
2538
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2539
2539
|
throw new le("property names with quotes must have matching quotes");
|
|
2540
|
-
if ((
|
|
2540
|
+
if ((p === "constructor" || !d) && (u = !0), o += "." + p, i = "%" + o + "%", je(Z, i))
|
|
2541
2541
|
s = Z[i];
|
|
2542
2542
|
else if (s != null) {
|
|
2543
|
-
if (!(
|
|
2543
|
+
if (!(p in s)) {
|
|
2544
2544
|
if (!n)
|
|
2545
2545
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2546
2546
|
return;
|
|
2547
2547
|
}
|
|
2548
2548
|
if (be && c + 1 >= r.length) {
|
|
2549
|
-
var m = be(s,
|
|
2550
|
-
|
|
2549
|
+
var m = be(s, p);
|
|
2550
|
+
d = !!m, d && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[p];
|
|
2551
2551
|
} else
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
d = je(s, p), s = s[p];
|
|
2553
|
+
d && !u && (Z[i] = s);
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
2556
|
return s;
|
|
@@ -2589,13 +2589,13 @@ function() {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
return n;
|
|
2592
|
-
}, Is = Ht, Ye = On,
|
|
2592
|
+
}, Is = Ht, Ye = On, Us = Qe, _e = Rn, Bs = fe, oe = Is("%WeakMap%", !0), Ls = Ye("WeakMap.prototype.get", !0), Ms = Ye("WeakMap.prototype.set", !0), ks = Ye("WeakMap.prototype.has", !0), qs = Ye("WeakMap.prototype.delete", !0), js = oe ? (
|
|
2593
2593
|
/** @type {Exclude<import('.'), false>} */
|
|
2594
2594
|
function() {
|
|
2595
2595
|
var e, n, r = {
|
|
2596
2596
|
assert: function(o) {
|
|
2597
2597
|
if (!r.has(o))
|
|
2598
|
-
throw new
|
|
2598
|
+
throw new Bs("Side channel does not contain " + Us(o));
|
|
2599
2599
|
},
|
|
2600
2600
|
delete: function(o) {
|
|
2601
2601
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2606,7 +2606,7 @@ function() {
|
|
|
2606
2606
|
return !1;
|
|
2607
2607
|
},
|
|
2608
2608
|
get: function(o) {
|
|
2609
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2609
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Ls(e, o) : n && n.get(o);
|
|
2610
2610
|
},
|
|
2611
2611
|
has: function(o) {
|
|
2612
2612
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? ks(e, o) : !!n && n.has(o);
|
|
@@ -2652,7 +2652,7 @@ function() {
|
|
|
2652
2652
|
},
|
|
2653
2653
|
RFC1738: wt.RFC1738,
|
|
2654
2654
|
RFC3986: wt.RFC3986
|
|
2655
|
-
}, Zs = Wt, bt = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2655
|
+
}, Zs = Wt, bt = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2656
2656
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2657
2657
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2658
2658
|
return t;
|
|
@@ -2716,25 +2716,25 @@ function() {
|
|
|
2716
2716
|
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2717
2717
|
});
|
|
2718
2718
|
for (var s = "", u = 0; u < i.length; u += St) {
|
|
2719
|
-
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [],
|
|
2720
|
-
var
|
|
2721
|
-
if (
|
|
2722
|
-
c[c.length] = l.charAt(
|
|
2719
|
+
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [], d = 0; d < l.length; ++d) {
|
|
2720
|
+
var p = l.charCodeAt(d);
|
|
2721
|
+
if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || a === Zs.RFC1738 && (p === 40 || p === 41)) {
|
|
2722
|
+
c[c.length] = l.charAt(d);
|
|
2723
2723
|
continue;
|
|
2724
2724
|
}
|
|
2725
|
-
if (
|
|
2726
|
-
c[c.length] =
|
|
2725
|
+
if (p < 128) {
|
|
2726
|
+
c[c.length] = L[p];
|
|
2727
2727
|
continue;
|
|
2728
2728
|
}
|
|
2729
|
-
if (
|
|
2730
|
-
c[c.length] =
|
|
2729
|
+
if (p < 2048) {
|
|
2730
|
+
c[c.length] = L[192 | p >> 6] + L[128 | p & 63];
|
|
2731
2731
|
continue;
|
|
2732
2732
|
}
|
|
2733
|
-
if (
|
|
2734
|
-
c[c.length] =
|
|
2733
|
+
if (p < 55296 || p >= 57344) {
|
|
2734
|
+
c[c.length] = L[224 | p >> 12] + L[128 | p >> 6 & 63] + L[128 | p & 63];
|
|
2735
2735
|
continue;
|
|
2736
2736
|
}
|
|
2737
|
-
|
|
2737
|
+
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];
|
|
2738
2738
|
}
|
|
2739
2739
|
s += c.join("");
|
|
2740
2740
|
}
|
|
@@ -2770,7 +2770,7 @@ function() {
|
|
|
2770
2770
|
isRegExp: al,
|
|
2771
2771
|
maybeMap: ll,
|
|
2772
2772
|
merge: el
|
|
2773
|
-
}, xn = Ks,
|
|
2773
|
+
}, xn = Ks, Be = Tn, ve = Wt, cl = Object.prototype.hasOwnProperty, Cn = {
|
|
2774
2774
|
brackets: function(e) {
|
|
2775
2775
|
return e + "[]";
|
|
2776
2776
|
},
|
|
@@ -2794,7 +2794,7 @@ function() {
|
|
|
2794
2794
|
delimiter: "&",
|
|
2795
2795
|
encode: !0,
|
|
2796
2796
|
encodeDotInKeys: !1,
|
|
2797
|
-
encoder:
|
|
2797
|
+
encoder: Be.encode,
|
|
2798
2798
|
encodeValuesOnly: !1,
|
|
2799
2799
|
filter: void 0,
|
|
2800
2800
|
format: $r,
|
|
@@ -2808,7 +2808,7 @@ function() {
|
|
|
2808
2808
|
strictNullHandling: !1
|
|
2809
2809
|
}, pl = function(e) {
|
|
2810
2810
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2811
|
-
}, Et = {}, dl = function t(e, n, r, o, a, i, s, u, l, c,
|
|
2811
|
+
}, Et = {}, dl = function t(e, n, r, o, a, i, s, u, l, c, d, p, v, y, m, h, S, E) {
|
|
2812
2812
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Et)) !== void 0 && !_; ) {
|
|
2813
2813
|
var N = T.get(e);
|
|
2814
2814
|
if (A += 1, typeof N < "u") {
|
|
@@ -2818,31 +2818,31 @@ function() {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
typeof T.get(Et) > "u" && (A = 0);
|
|
2820
2820
|
}
|
|
2821
|
-
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g =
|
|
2821
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Be.maybeMap(g, function(tt) {
|
|
2822
2822
|
return tt instanceof Date ? v(tt) : tt;
|
|
2823
2823
|
})), g === null) {
|
|
2824
2824
|
if (i)
|
|
2825
2825
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2826
2826
|
g = "";
|
|
2827
2827
|
}
|
|
2828
|
-
if (pl(g) ||
|
|
2828
|
+
if (pl(g) || Be.isBuffer(g)) {
|
|
2829
2829
|
if (l) {
|
|
2830
2830
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2831
2831
|
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2832
2832
|
}
|
|
2833
2833
|
return [m(n) + "=" + m(String(g))];
|
|
2834
2834
|
}
|
|
2835
|
-
var
|
|
2835
|
+
var U = [];
|
|
2836
2836
|
if (typeof g > "u")
|
|
2837
|
-
return
|
|
2837
|
+
return U;
|
|
2838
2838
|
var H;
|
|
2839
2839
|
if (r === "comma" && M(g))
|
|
2840
|
-
h && l && (g =
|
|
2840
|
+
h && l && (g = Be.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2841
2841
|
else if (M(c))
|
|
2842
2842
|
H = c;
|
|
2843
2843
|
else {
|
|
2844
2844
|
var xe = Object.keys(g);
|
|
2845
|
-
H =
|
|
2845
|
+
H = d ? xe.sort(d) : xe;
|
|
2846
2846
|
}
|
|
2847
2847
|
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2848
2848
|
if (a && M(g) && g.length === 0)
|
|
@@ -2850,10 +2850,10 @@ function() {
|
|
|
2850
2850
|
for (var W = 0; W < H.length; ++W) {
|
|
2851
2851
|
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2852
2852
|
if (!(s && pe === null)) {
|
|
2853
|
-
var et =
|
|
2853
|
+
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 + "]");
|
|
2854
2854
|
E.set(e, A);
|
|
2855
2855
|
var Jt = xn();
|
|
2856
|
-
Jt.set(Et, E), _n(
|
|
2856
|
+
Jt.set(Et, E), _n(U, t(
|
|
2857
2857
|
pe,
|
|
2858
2858
|
In,
|
|
2859
2859
|
r,
|
|
@@ -2864,8 +2864,8 @@ function() {
|
|
|
2864
2864
|
u,
|
|
2865
2865
|
r === "comma" && h && M(g) ? null : l,
|
|
2866
2866
|
c,
|
|
2867
|
-
p,
|
|
2868
2867
|
d,
|
|
2868
|
+
p,
|
|
2869
2869
|
v,
|
|
2870
2870
|
y,
|
|
2871
2871
|
m,
|
|
@@ -2875,7 +2875,7 @@ function() {
|
|
|
2875
2875
|
));
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
|
-
return
|
|
2878
|
+
return U;
|
|
2879
2879
|
}, yl = function(e) {
|
|
2880
2880
|
if (!e)
|
|
2881
2881
|
return P;
|
|
@@ -2930,10 +2930,10 @@ function() {
|
|
|
2930
2930
|
var s = Cn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2931
2931
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2932
2932
|
for (var l = xn(), c = 0; c < o.length; ++c) {
|
|
2933
|
-
var
|
|
2934
|
-
r.skipNulls &&
|
|
2935
|
-
d,
|
|
2933
|
+
var d = o[c], p = n[d];
|
|
2934
|
+
r.skipNulls && p === null || _n(i, dl(
|
|
2936
2935
|
p,
|
|
2936
|
+
d,
|
|
2937
2937
|
s,
|
|
2938
2938
|
u,
|
|
2939
2939
|
r.allowEmptyArrays,
|
|
@@ -3001,10 +3001,10 @@ function() {
|
|
|
3001
3001
|
i[u].indexOf("utf8=") === 0 && (i[u] === vl ? l = "utf-8" : i[u] === gl && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3002
3002
|
for (u = 0; u < i.length; ++u)
|
|
3003
3003
|
if (u !== s) {
|
|
3004
|
-
var c = i[u],
|
|
3005
|
-
|
|
3004
|
+
var c = i[u], d = c.indexOf("]="), p = d === -1 ? c.indexOf("=") : d + 1, v, y;
|
|
3005
|
+
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(
|
|
3006
3006
|
Nn(
|
|
3007
|
-
c.slice(
|
|
3007
|
+
c.slice(p + 1),
|
|
3008
3008
|
n,
|
|
3009
3009
|
Fr(r[v]) ? r[v].length : 0
|
|
3010
3010
|
),
|
|
@@ -3028,8 +3028,8 @@ function() {
|
|
|
3028
3028
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
3029
3029
|
else {
|
|
3030
3030
|
u = n.plainObjects ? { __proto__: null } : {};
|
|
3031
|
-
var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l,
|
|
3032
|
-
!n.parseArrays &&
|
|
3031
|
+
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);
|
|
3032
|
+
!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);
|
|
3033
3033
|
}
|
|
3034
3034
|
i = u;
|
|
3035
3035
|
}
|
|
@@ -3042,8 +3042,8 @@ function() {
|
|
|
3042
3042
|
return;
|
|
3043
3043
|
c.push(l);
|
|
3044
3044
|
}
|
|
3045
|
-
for (var
|
|
3046
|
-
if (
|
|
3045
|
+
for (var d = 0; r.depth > 0 && (u = s.exec(a)) !== null && d < r.depth; ) {
|
|
3046
|
+
if (d += 1, !r.plainObjects && Dt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3047
3047
|
return;
|
|
3048
3048
|
c.push(u[1]);
|
|
3049
3049
|
}
|
|
@@ -3193,9 +3193,9 @@ const Nl = {
|
|
|
3193
3193
|
_appCode: "framework"
|
|
3194
3194
|
}
|
|
3195
3195
|
};
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3196
|
+
Un(Nl);
|
|
3197
|
+
Ut.extend(Hn);
|
|
3198
|
+
Ut.extend(Wn);
|
|
3199
3199
|
const Gt = Dr(), $n = Gt.sso ?? !0, $l = Gt.i18n ?? !0, Fn = Gt.noRedireLogin ?? !1, Fl = (t) => {
|
|
3200
3200
|
var e, n, r;
|
|
3201
3201
|
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;
|
|
@@ -3218,43 +3218,43 @@ const Gt = Dr(), $n = Gt.sso ?? !0, $l = Gt.i18n ?? !0, Fn = Gt.noRedireLogin ??
|
|
|
3218
3218
|
}, Il = async (t) => {
|
|
3219
3219
|
var n;
|
|
3220
3220
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3221
|
-
},
|
|
3222
|
-
var
|
|
3223
|
-
let n = ((
|
|
3221
|
+
}, Ul = async (t, e) => {
|
|
3222
|
+
var l, c, d, p, v;
|
|
3223
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3224
3224
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3225
|
-
let i = ((
|
|
3226
|
-
const s = kn("code") || "", u = (e == null ? void 0 : e.noRedireLogin) ??
|
|
3227
|
-
if (!s &&
|
|
3225
|
+
let i = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3226
|
+
const s = kn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? Fn);
|
|
3227
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3228
3228
|
$n ? qn({ ...zn, redirect_uri: jn }) : Dn(), o = i;
|
|
3229
3229
|
else {
|
|
3230
3230
|
if (t.response) {
|
|
3231
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3232
|
-
const
|
|
3233
|
-
|
|
3231
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3232
|
+
const m = new FileReader();
|
|
3233
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3234
3234
|
try {
|
|
3235
|
-
|
|
3235
|
+
y(JSON.parse(m.result || "{}"));
|
|
3236
3236
|
} catch {
|
|
3237
|
-
|
|
3237
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3238
3238
|
}
|
|
3239
3239
|
};
|
|
3240
3240
|
})), i.code) {
|
|
3241
3241
|
n = i.code;
|
|
3242
|
-
const
|
|
3243
|
-
if ($l &&
|
|
3244
|
-
const
|
|
3245
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3242
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3243
|
+
if ($l && y) {
|
|
3244
|
+
const m = (i == null ? void 0 : i.status) ?? (i == null ? void 0 : i.msg) ?? "";
|
|
3245
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3246
3246
|
} else
|
|
3247
3247
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3248
3248
|
o = i;
|
|
3249
3249
|
}
|
|
3250
3250
|
r || (r = a[t.response.status] || t.message);
|
|
3251
3251
|
} 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("请求配置异常");
|
|
3252
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3252
|
+
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 }));
|
|
3253
3253
|
}
|
|
3254
3254
|
return { ...o, code: n, msg: r, error: t };
|
|
3255
3255
|
}, fc = (t, e) => {
|
|
3256
3256
|
const n = R.create();
|
|
3257
|
-
return Dl(n),
|
|
3257
|
+
return Dl(n), Ln(n, async (r) => {
|
|
3258
3258
|
const o = Dr();
|
|
3259
3259
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3260
3260
|
let l = "";
|
|
@@ -3264,7 +3264,7 @@ const Gt = Dr(), $n = Gt.sso ?? !0, $l = Gt.i18n ?? !0, Fn = Gt.noRedireLogin ??
|
|
|
3264
3264
|
}
|
|
3265
3265
|
$n ? l || (l = await Mn(r)) : (l || (l = Vn()), l || Dn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3266
3266
|
}
|
|
3267
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError =
|
|
3267
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Ul), (r.csrf ?? !1) && (r.headers["csrf-token"] = _l.get("csrf-token"));
|
|
3268
3268
|
const s = r.params || {};
|
|
3269
3269
|
if (s.project === void 0) {
|
|
3270
3270
|
let l = 0;
|
|
@@ -3275,7 +3275,7 @@ const Gt = Dr(), $n = Gt.sso ?? !0, $l = Gt.i18n ?? !0, Fn = Gt.noRedireLogin ??
|
|
|
3275
3275
|
const { instanceInfo: l } = Jn();
|
|
3276
3276
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3277
3277
|
}
|
|
3278
|
-
return r.params = s, r.headers.Timezone =
|
|
3278
|
+
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;
|
|
3279
3279
|
});
|
|
3280
3280
|
};
|
|
3281
3281
|
export {
|